Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
zc-qiyewx-app
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
杨勇飞
zc-qiyewx-app
Commits
dde14e60
Commit
dde14e60
authored
Feb 18, 2025
by
杨勇飞
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
解决异步的问题
parent
a23aa2ca
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
bossCard.vue
components/bossCard/bossCard.vue
+4
-4
No files found.
components/bossCard/bossCard.vue
View file @
dde14e60
...
@@ -702,8 +702,8 @@
...
@@ -702,8 +702,8 @@
return
(
monthly
/
total
*
100
).
toFixed
(
2
)
+
'%'
return
(
monthly
/
total
*
100
).
toFixed
(
2
)
+
'%'
}
}
},
},
mounted
()
{
async
mounted
()
{
this
.
initData
()
await
this
.
initData
()
this
.
initLeaderChart
()
this
.
initLeaderChart
()
this
.
initProjectChart
()
this
.
initProjectChart
()
// 在 Vue 的下一个 DOM 更新循环中执行
// 在 Vue 的下一个 DOM 更新循环中执行
...
@@ -722,7 +722,7 @@
...
@@ -722,7 +722,7 @@
})
})
},
},
methods
:
{
methods
:
{
initData
()
{
async
initData
()
{
this
.
staffCode
=
uni
.
getStorageSync
(
`staffCode`
);
this
.
staffCode
=
uni
.
getStorageSync
(
`staffCode`
);
const
data
=
{
const
data
=
{
"aux"
:
{
"aux"
:
{
...
@@ -730,7 +730,7 @@
...
@@ -730,7 +730,7 @@
"staffCode"
:
this
.
staffCode
"staffCode"
:
this
.
staffCode
}
}
}
}
searchBossCard
(
data
).
then
(
res
=>
{
await
searchBossCard
(
data
).
then
(
res
=>
{
this
.
searchDatas
=
res
.
data
.
data
this
.
searchDatas
=
res
.
data
.
data
console
.
log
()
console
.
log
()
...
...
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