From a003b59e3920dfd4a3536b7314857a5c2f5838fd Mon Sep 17 00:00:00 2001 From: YunaiV Date: Wed, 26 Jul 2023 19:22:26 +0800 Subject: [PATCH] =?UTF-8?q?review=20=E7=A7=92=E6=9D=80=E3=80=81=E6=8B=BC?= =?UTF-8?q?=E5=9B=A2=E6=B4=BB=E5=8A=A8=E7=9A=84=20CRUD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/mall/promotion/combination/combinationactivity.ts | 2 ++ src/views/mall/promotion/combination/activity/index.vue | 3 ++- src/views/mall/promotion/components/SpuAndSkuList.vue | 2 ++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/api/mall/promotion/combination/combinationactivity.ts b/src/api/mall/promotion/combination/combinationactivity.ts index 1e211c86..71d5d2a4 100644 --- a/src/api/mall/promotion/combination/combinationactivity.ts +++ b/src/api/mall/promotion/combination/combinationactivity.ts @@ -1,6 +1,8 @@ import request from '@/config/axios' import { Sku, Spu } from '@/api/mall/product/spu' +// TODO @puhui999: combinationActivity.ts + export interface CombinationActivityVO { id?: number name?: string diff --git a/src/views/mall/promotion/combination/activity/index.vue b/src/views/mall/promotion/combination/activity/index.vue index e5b6f86d..c76f1787 100644 --- a/src/views/mall/promotion/combination/activity/index.vue +++ b/src/views/mall/promotion/combination/activity/index.vue @@ -98,9 +98,10 @@ const handleDelete = (id: number) => { tableMethods.delList(id, false) } +// TODO @puhui999:要不还是使用原生的 element plus 做。感觉 crud schema 复杂界面,做起来麻烦 /** 初始化 **/ onMounted(() => { - /* + /** TODO 后面准备封装成一个函数来操作 tableColumns 重新排列:比如说需求是表单上商品选择是在后面的而列表展示的时候需要调到位置。 封装效果支持批量操作,给出 field 和需要插入的位置,例:[{field:'spuId',index: 1}] 效果为把 field 为 spuId 的 column 移动到第一个位置 diff --git a/src/views/mall/promotion/components/SpuAndSkuList.vue b/src/views/mall/promotion/components/SpuAndSkuList.vue index 8efb7f83..db29de2d 100644 --- a/src/views/mall/promotion/components/SpuAndSkuList.vue +++ b/src/views/mall/promotion/components/SpuAndSkuList.vue @@ -50,8 +50,10 @@ const spuData = ref([]) // spu 详情数据列表 const skuListRef = ref() // 商品属性列表Ref const spuPropertyList = ref[]>([]) // spuId 对应的 sku 的属性列表 const expandRowKeys = ref() // 控制展开行需要设置 row-key 属性才能使用,该属性为展开行的 keys 数组。 + /** * 获取所有 sku 活动配置 + * * @param extendedAttribute 在 sku 上扩展的属性,例:秒杀活动 sku 扩展属性 productConfig 请参考 seckillActivity.ts */ const getSkuConfigs = (extendedAttribute: string) => {