column.js
1.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
import { tableConfig } from '@/utils'
const columns = [{
...tableConfig,
title: "序号",
dataIndex: "index",
key: "index",
fixed: "left",
width: '60px',
customRender: (text, record, index) => `${index + 1}`
},
{
...tableConfig,
title: "商品名称",
dataIndex: "productName",
key: "productName",
width: 150,
scopedSlots: {
customRender: "productName"
}
},
{
...tableConfig,
title: "一级分类",
dataIndex: "firstCategoryName",
width: 150,
key: "firstCategoryName"
},
{
...tableConfig,
title: "二级分类",
key: "secondCategoryName",
width: 150,
dataIndex: "secondCategoryName"
},
{
...tableConfig,
title: "所属店铺",
key: "storeName",
width: 150,
dataIndex: "storeName",
},
{
...tableConfig,
title: "审核说明",
dataIndex: "description",
width: 200,
key: "description",
customRender: (text) => text || '--'
},
{
...tableConfig,
title: "使用链接",
key: "link",
width: 200,
dataIndex: "link",
customRender: text => text || '--'
},
{
...tableConfig,
title: "操作",
key: "operation",
fixed: "right",
width: '100px',
scopedSlots: {
customRender: "action"
},
}
]
export default columns