添加需求

main
fanfan 8 months ago
parent 2c46fedac3
commit bf42104159
  1. 19
      src/views/dataCenter/goods/Index.vue

@ -237,6 +237,15 @@
{{ text == 0 ? '待处理' : text == 1 ? '已入池' : '未入池' }} {{ text == 0 ? '待处理' : text == 1 ? '已入池' : '未入池' }}
</p> </p>
</span> </span>
<span slot="cate_status" slot-scope="text">
<p
class="twoline-hide"
style="width: 40px"
:style="{ color: text == 0 ? 'red' : 'green'}"
>
{{ text == 0 ? '待处理' : '已归类' }}
</p>
</span>
<!-- 商品状态 --> <!-- 商品状态 -->
<span slot="is_sale" slot-scope="text, item"> <span slot="is_sale" slot-scope="text, item">
<a-tag class="cur-p" :color="text == 0 ? 'red' : text == 1 ? 'green' : 'gray'">{{ <a-tag class="cur-p" :color="text == 0 ? 'red' : text == 1 ? 'green' : 'gray'">{{
@ -322,9 +331,17 @@ const columns = [
sorter: true, sorter: true,
}, },
{ {
title: '商品池', title: '类别',
width: '80px', width: '80px',
dataIndex: 'cate_status',
sorter: true,
scopedSlots: { customRender: 'cate_status' },
},
{
title: '商品池',
width: '100px',
dataIndex: 'is_pool', dataIndex: 'is_pool',
sorter: true,
scopedSlots: { customRender: 'is_pool' }, scopedSlots: { customRender: 'is_pool' },
}, },
{ {

Loading…
Cancel
Save