Skip to content

Commit a003b59

Browse files
committed
review 秒杀、拼团活动的 CRUD
1 parent d7f0554 commit a003b59

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

src/api/mall/promotion/combination/combinationactivity.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import request from '@/config/axios'
22
import { Sku, Spu } from '@/api/mall/product/spu'
33

4+
// TODO @puhui999: combinationActivity.ts
5+
46
export interface CombinationActivityVO {
57
id?: number
68
name?: string

src/views/mall/promotion/combination/activity/index.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,10 @@ const handleDelete = (id: number) => {
9898
tableMethods.delList(id, false)
9999
}
100100
101+
// TODO @puhui999:要不还是使用原生的 element plus 做。感觉 crud schema 复杂界面,做起来麻烦
101102
/** 初始化 **/
102103
onMounted(() => {
103-
/*
104+
/**
104105
TODO
105106
后面准备封装成一个函数来操作 tableColumns 重新排列:比如说需求是表单上商品选择是在后面的而列表展示的时候需要调到位置。
106107
封装效果支持批量操作,给出 field 和需要插入的位置,例:[{field:'spuId',index: 1}] 效果为把 field 为 spuId 的 column 移动到第一个位置

src/views/mall/promotion/components/SpuAndSkuList.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,10 @@ const spuData = ref<Spu[]>([]) // spu 详情数据列表
5050
const skuListRef = ref() // 商品属性列表Ref
5151
const spuPropertyList = ref<SpuProperty<T>[]>([]) // spuId 对应的 sku 的属性列表
5252
const expandRowKeys = ref<number[]>() // 控制展开行需要设置 row-key 属性才能使用,该属性为展开行的 keys 数组。
53+
5354
/**
5455
* 获取所有 sku 活动配置
56+
*
5557
* @param extendedAttribute 在 sku 上扩展的属性,例:秒杀活动 sku 扩展属性 productConfig 请参考 seckillActivity.ts
5658
*/
5759
const getSkuConfigs = (extendedAttribute: string) => {

0 commit comments

Comments
 (0)