Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
2dcd1310
authored
Jan 18, 2024
by
YunaiV
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
✨
调整启动命令,恢复 npm run dev;如果要连接远程服务
parent
9fa769b1
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
20 deletions
+8
-20
.env.local
+0
-0
package.json
+3
-3
src/api/mall/promotion/combination/combinationRecord.ts
+1
-6
src/views/mall/promotion/combination/record/CombinationRecordListDialog.vue
+1
-10
src/views/mall/promotion/combination/record/index.vue
+3
-1
No files found.
.env.local
-dev
→
.env.local
View file @
2dcd1310
File moved
package.json
View file @
2dcd1310
...
@@ -6,11 +6,11 @@
...
@@ -6,11 +6,11 @@
"private"
:
false
,
"private"
:
false
,
"scripts"
:
{
"scripts"
:
{
"i"
:
"pnpm install"
,
"i"
:
"pnpm install"
,
"
local-
dev"
:
"vite --mode local-dev"
,
"dev"
:
"vite --mode local-dev"
,
"dev"
:
"vite --mode dev"
,
"dev
-server
"
:
"vite --mode dev"
,
"ts:check"
:
"vue-tsc --noEmit"
,
"ts:check"
:
"vue-tsc --noEmit"
,
"build:local-dev"
:
"node --max_old_space_size=8192 ./node_modules/vite/bin/vite.js build --mode local-dev"
,
"build:local-dev"
:
"node --max_old_space_size=8192 ./node_modules/vite/bin/vite.js build --mode local-dev"
,
"build:dev"
:
"node --max_old_space_size=8192 ./node_modules/vite/bin/vite.js build --mode dev"
,
"build:dev"
:
"node --max_old_space_size=8192 ./node_modules/vite/bin/vite.js build --mode
local-
dev"
,
"build:test"
:
"node --max_old_space_size=8192 ./node_modules/vite/bin/vite.js build --mode test"
,
"build:test"
:
"node --max_old_space_size=8192 ./node_modules/vite/bin/vite.js build --mode test"
,
"build:stage"
:
"node --max_old_space_size=8192 ./node_modules/vite/bin/vite.js build --mode stage"
,
"build:stage"
:
"node --max_old_space_size=8192 ./node_modules/vite/bin/vite.js build --mode stage"
,
"build:prod"
:
"node --max_old_space_size=8192 ./node_modules/vite/bin/vite.js build --mode prod"
,
"build:prod"
:
"node --max_old_space_size=8192 ./node_modules/vite/bin/vite.js build --mode prod"
,
...
...
src/api/mall/promotion/combination/combinationRecord.ts
View file @
2dcd1310
...
@@ -18,15 +18,10 @@ export interface CombinationRecordVO {
...
@@ -18,15 +18,10 @@ export interface CombinationRecordVO {
}
}
// 查询拼团记录列表
// 查询拼团记录列表
export
const
getCombinationRecordPage
=
async
(
params
)
=>
{
export
const
getCombinationRecordPage
=
async
(
params
:
any
)
=>
{
return
await
request
.
get
({
url
:
'/promotion/combination-record/page'
,
params
})
return
await
request
.
get
({
url
:
'/promotion/combination-record/page'
,
params
})
}
}
// 查询一个拼团的完整拼团记录
export
const
getCombinationRecordPageByHeadId
=
async
(
params
)
=>
{
return
await
request
.
get
({
url
:
'/promotion/combination-record/page-by-headId'
,
params
})
}
// 获得拼团记录的概要信息
// 获得拼团记录的概要信息
export
const
getCombinationRecordSummary
=
async
()
=>
{
export
const
getCombinationRecordSummary
=
async
()
=>
{
return
await
request
.
get
({
url
:
'/promotion/combination-record/get-summary'
})
return
await
request
.
get
({
url
:
'/promotion/combination-record/get-summary'
})
...
...
src/views/mall/promotion/combination/record/CombinationRecordListDialog.vue
View file @
2dcd1310
...
@@ -53,13 +53,10 @@
...
@@ -53,13 +53,10 @@
import
{
dateFormatter
}
from
'@/utils/formatTime'
import
{
dateFormatter
}
from
'@/utils/formatTime'
import
*
as
CombinationRecordApi
from
'@/api/mall/promotion/combination/combinationRecord'
import
*
as
CombinationRecordApi
from
'@/api/mall/promotion/combination/combinationRecord'
import
{
DICT_TYPE
}
from
'@/utils/dict'
import
{
DICT_TYPE
}
from
'@/utils/dict'
import
{
createImageViewer
}
from
'@/components/ImageViewer'
/** 助力列表 */
/** 助力列表 */
defineOptions
({
name
:
'CombinationRecordListDialog'
})
defineOptions
({
name
:
'CombinationRecordListDialog'
})
const
message
=
useMessage
()
// 消息弹窗
const
loading
=
ref
(
true
)
// 列表的加载中
const
loading
=
ref
(
true
)
// 列表的加载中
const
total
=
ref
(
0
)
// 列表的总页数
const
total
=
ref
(
0
)
// 列表的总页数
const
list
=
ref
([])
// 列表的数据
const
list
=
ref
([])
// 列表的数据
...
@@ -82,17 +79,11 @@ defineExpose({ open }) // 提供 open 方法,用于打开弹窗
...
@@ -82,17 +79,11 @@ defineExpose({ open }) // 提供 open 方法,用于打开弹窗
const
getList
=
async
()
=>
{
const
getList
=
async
()
=>
{
loading
.
value
=
true
loading
.
value
=
true
try
{
try
{
const
data
=
await
CombinationRecordApi
.
getCombinationRecordPage
ByHeadId
(
queryParams
)
const
data
=
await
CombinationRecordApi
.
getCombinationRecordPage
(
queryParams
)
list
.
value
=
data
.
list
list
.
value
=
data
.
list
total
.
value
=
data
.
total
total
.
value
=
data
.
total
}
finally
{
}
finally
{
loading
.
value
=
false
loading
.
value
=
false
}
}
}
}
/** 商品图预览 */
const
imagePreview
=
(
imgUrl
:
string
)
=>
{
createImageViewer
({
urlList
:
[
imgUrl
]
})
}
</
script
>
</
script
>
src/views/mall/promotion/combination/record/index.vue
View file @
2dcd1310
...
@@ -242,9 +242,11 @@ const getSummary = async () => {
...
@@ -242,9 +242,11 @@ const getSummary = async () => {
recordSummary
.
value
=
await
CombinationRecordApi
.
getCombinationRecordSummary
()
recordSummary
.
value
=
await
CombinationRecordApi
.
getCombinationRecordSummary
()
}
}
/** 查看拼团详情 */
const
openRecordListDialog
=
(
row
:
CombinationRecordApi
.
CombinationRecordVO
)
=>
{
const
openRecordListDialog
=
(
row
:
CombinationRecordApi
.
CombinationRecordVO
)
=>
{
combinationRecordListRef
.
value
?.
open
(
row
.
headId
)
combinationRecordListRef
.
value
?.
open
(
row
.
headId
||
row
.
id
)
// 多表达式的原因,团长的 headId 为空,就是自身的情况
}
}
/** 搜索按钮操作 */
/** 搜索按钮操作 */
const
handleQuery
=
()
=>
{
const
handleQuery
=
()
=>
{
queryParams
.
value
.
pageNo
=
1
queryParams
.
value
.
pageNo
=
1
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment