File tree Expand file tree Collapse file tree 5 files changed +8
-20
lines changed
api/mall/promotion/combination
views/mall/promotion/combination/record Expand file tree Collapse file tree 5 files changed +8
-20
lines changed File renamed without changes.
Original file line number Diff line number Diff line change 6
6
"private" : false ,
7
7
"scripts" : {
8
8
"i" : " pnpm install" ,
9
- "local- dev" : " vite --mode local-dev" ,
10
- "dev" : " vite --mode dev" ,
9
+ "dev" : " vite --mode local-dev" ,
10
+ "dev-server " : " vite --mode dev" ,
11
11
"ts:check" : " vue-tsc --noEmit" ,
12
12
"build:local-dev" : " node --max_old_space_size=8192 ./node_modules/vite/bin/vite.js build --mode local-dev" ,
13
- "build:dev" : " node --max_old_space_size=8192 ./node_modules/vite/bin/vite.js build --mode dev" ,
13
+ "build:dev" : " node --max_old_space_size=8192 ./node_modules/vite/bin/vite.js build --mode local- dev" ,
14
14
"build:test" : " node --max_old_space_size=8192 ./node_modules/vite/bin/vite.js build --mode test" ,
15
15
"build:stage" : " node --max_old_space_size=8192 ./node_modules/vite/bin/vite.js build --mode stage" ,
16
16
"build:prod" : " node --max_old_space_size=8192 ./node_modules/vite/bin/vite.js build --mode prod" ,
Original file line number Diff line number Diff line change @@ -18,15 +18,10 @@ export interface CombinationRecordVO {
18
18
}
19
19
20
20
// 查询拼团记录列表
21
- export const getCombinationRecordPage = async ( params ) => {
21
+ export const getCombinationRecordPage = async ( params : any ) => {
22
22
return await request . get ( { url : '/promotion/combination-record/page' , params } )
23
23
}
24
24
25
- // 查询一个拼团的完整拼团记录
26
- export const getCombinationRecordPageByHeadId = async ( params ) => {
27
- return await request . get ( { url : '/promotion/combination-record/page-by-headId' , params } )
28
- }
29
-
30
25
// 获得拼团记录的概要信息
31
26
export const getCombinationRecordSummary = async ( ) => {
32
27
return await request . get ( { url : '/promotion/combination-record/get-summary' } )
Original file line number Diff line number Diff line change 53
53
import { dateFormatter } from ' @/utils/formatTime'
54
54
import * as CombinationRecordApi from ' @/api/mall/promotion/combination/combinationRecord'
55
55
import { DICT_TYPE } from ' @/utils/dict'
56
- import { createImageViewer } from ' @/components/ImageViewer'
57
56
58
57
/** 助力列表 */
59
58
defineOptions ({ name: ' CombinationRecordListDialog' })
60
59
61
- const message = useMessage () // 消息弹窗
62
-
63
60
const loading = ref (true ) // 列表的加载中
64
61
const total = ref (0 ) // 列表的总页数
65
62
const list = ref ([]) // 列表的数据
@@ -82,17 +79,11 @@ defineExpose({ open }) // 提供 open 方法,用于打开弹窗
82
79
const getList = async () => {
83
80
loading .value = true
84
81
try {
85
- const data = await CombinationRecordApi .getCombinationRecordPageByHeadId (queryParams )
82
+ const data = await CombinationRecordApi .getCombinationRecordPage (queryParams )
86
83
list .value = data .list
87
84
total .value = data .total
88
85
} finally {
89
86
loading .value = false
90
87
}
91
88
}
92
- /** 商品图预览 */
93
- const imagePreview = (imgUrl : string ) => {
94
- createImageViewer ({
95
- urlList: [imgUrl ]
96
- })
97
- }
98
89
</script >
Original file line number Diff line number Diff line change @@ -242,9 +242,11 @@ const getSummary = async () => {
242
242
recordSummary .value = await CombinationRecordApi .getCombinationRecordSummary ()
243
243
}
244
244
245
+ /** 查看拼团详情 */
245
246
const openRecordListDialog = (row : CombinationRecordApi .CombinationRecordVO ) => {
246
- combinationRecordListRef .value ?.open (row .headId )
247
+ combinationRecordListRef .value ?.open (row .headId || row . id ) // 多表达式的原因,团长的 headId 为空,就是自身的情况
247
248
}
249
+
248
250
/** 搜索按钮操作 */
249
251
const handleQuery = () => {
250
252
queryParams .value .pageNo = 1
You can’t perform that action at this time.
0 commit comments