Commit 868770c1aa34eab31fdc12fac8bfd5400d4a8219

Authored by 舒述军
1 parent 2d631337

修改门店显示

src/pages/order3/RetailTaskConfiguration/api.ts
... ... @@ -6,6 +6,7 @@ export interface List {
6 6 id?: number // id
7 7 retailRate?: number // 线索到店零售占比
8 8 shopList?: ShopList[] // 门店列表
  9 + displayName?: string // 门店名称集合
9 10 }
10 11  
11 12 export interface ShopList {
... ...
src/pages/order3/RetailTaskConfiguration/components/List.tsx
1   -import React, { useState } from "react";
  1 +import React from "react";
2 2 import { message, Popconfirm, Table, Space } from "antd";
3   -import moment from "moment";
4 3 import { useStore } from '../index';
5 4 import { fetchDeleteConfigApi, List } from '../api';
6 5 import { isNil } from 'lodash';
... ... @@ -41,8 +40,8 @@ export default function TableList() {
41 40 <Column
42 41 title="适用门店"
43 42 align="left"
44   - dataIndex="shopList"
45   - render={(_text, record) => <span onClick={() => handleLookShop(record)} style={{color: "#4189FD"}}>查看</span>}
  43 + dataIndex="displayName"
  44 + render={(_text, record) => <span onClick={() => handleLookShop(record)} style={{color: "#4189FD"}}>{_text}</span>}
46 45 />
47 46 <Column
48 47 title="线索到店零售台数占比"
... ...