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
e1cf0e44
authored
Aug 03, 2024
by
allen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复运营模块数据不实时更新的问题
parent
1b036e84
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
src/views/mall/home/components/OperationDataCard.vue
+15
-0
No files found.
src/views/mall/home/components/OperationDataCard.vue
View file @
e1cf0e44
...
...
@@ -53,10 +53,18 @@ const data = reactive({
/** 查询订单数据 */
const
getOrderData
=
async
()
=>
{
const
orderCount
=
await
TradeStatisticsApi
.
getOrderCount
()
if
(
orderCount
.
undelivered
!=
null
)
{
data
.
orderUndelivered
.
value
=
orderCount
.
undelivered
}
if
(
orderCount
.
afterSaleApply
!=
null
)
{
data
.
orderAfterSaleApply
.
value
=
orderCount
.
afterSaleApply
}
if
(
orderCount
.
pickUp
!=
null
)
{
data
.
orderWaitePickUp
.
value
=
orderCount
.
pickUp
}
if
(
orderCount
.
auditingWithdraw
!=
null
)
{
data
.
withdrawAuditing
.
value
=
orderCount
.
auditingWithdraw
}
}
/** 查询商品数据 */
...
...
@@ -83,6 +91,13 @@ const handleClick = (routerName: string) => {
router
.
push
({
name
:
routerName
})
}
/** 激活时 */
onActivated
(()
=>
{
getOrderData
()
getProductData
()
getWalletRechargeData
()
})
/** 初始化 **/
onMounted
(()
=>
{
getOrderData
()
...
...
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