商品列表排序

feature/0423
fanfan 8 months ago
parent b7a362f332
commit 071c486367
  1. 21
      src/views/goods/Index.vue

@ -119,7 +119,8 @@ import CategoryModel from '@/common/model/Category'
const columns = [ const columns = [
{ {
title: '商品ID', title: '商品ID',
dataIndex: 'goods_id' dataIndex: 'goods_id',
sorter: true,
}, },
{ {
title: '商品图片', title: '商品图片',
@ -135,20 +136,24 @@ const columns = [
{ {
title: '商品价格', title: '商品价格',
dataIndex: 'goods_price_min', dataIndex: 'goods_price_min',
scopedSlots: { customRender: 'goods_price_min' } scopedSlots: { customRender: 'goods_price_min' },
sorter: true,
}, },
{ {
title: '成本价', title: '成本价',
dataIndex: 'cost_price', dataIndex: 'cost_price',
scopedSlots: { customRender: 'cost_price' } scopedSlots: { customRender: 'cost_price' },
sorter: true,
}, },
{ {
title: '总销量', title: '总销量',
dataIndex: 'sales_actual' dataIndex: 'sales_actual',
sorter: true,
}, },
{ {
title: '库存总量', title: '库存总量',
dataIndex: 'stock_total' dataIndex: 'stock_total',
sorter: true,
}, },
{ {
title: '状态', title: '状态',
@ -157,12 +162,14 @@ const columns = [
}, },
{ {
title: '排序', title: '排序',
dataIndex: 'sort' dataIndex: 'sort',
sorter: true,
}, },
{ {
title: '添加时间', title: '添加时间',
width: '180px', width: '180px',
dataIndex: 'create_time' dataIndex: 'create_time',
sorter: true,
}, },
{ {
title: '操作', title: '操作',

Loading…
Cancel
Save