diff --git a/src/api/commodity.ts b/src/api/commodity.ts index 7b617f9..d319a6b 100644 --- a/src/api/commodity.ts +++ b/src/api/commodity.ts @@ -30,6 +30,7 @@ const login = { * 商品管理 */ getCommodityList: ['/product/list'], // 获取商品列表 + sortCommodity: ['/product/order'], // 商品排序 getCommodityDetail: ['/product/detail'], // 获取商品详情 addOrUpdateCommodity: ['/product/insertOrUpadate'], // 修改商品详情 changeCommodityInfo: ['/product/onlyUpdateProduct'], // 修改商品信息(列表页) diff --git a/src/views/goods/commodity/config.ts b/src/views/goods/commodity/config.ts index cdc6484..8123e00 100644 --- a/src/views/goods/commodity/config.ts +++ b/src/views/goods/commodity/config.ts @@ -3,7 +3,7 @@ export const initConfig = () => { configData.value = pageConfig({ search: { title: { label: '标题', clearable: true }, - comCategoryId: { label: '类目', option: [], clearable: true } + adminCategoryId: { label: '类目', slot: 'adminCategoryId' } }, table: { id: { label: '产品ID' }, @@ -11,6 +11,13 @@ export const initConfig = () => { showSaleCount: { label: '销量' }, showPromotionPrice: { label: '价格' }, showSalePrice: { label: '促销价' }, + status: { + label: '在线', + slot: 'status' + }, + frontPage: { label: '加入首页', slot: 'frontPage' }, + isNew: { label: '新品', slot: 'isNew' }, + isFlash: { label: '限时秒杀', slot: 'isFlash' }, btn: { types: ['primary', 'info', 'warning', 'success', 'danger'], names: ['编辑', '复制', '加入首页', '上下架', '删除'], diff --git a/src/views/goods/commodity/index.vue b/src/views/goods/commodity/index.vue index a3e74fa..9ec343e 100644 --- a/src/views/goods/commodity/index.vue +++ b/src/views/goods/commodity/index.vue @@ -4,6 +4,25 @@ + + + + + @@ -23,7 +58,9 @@