feat(dashboard): dashboard visible after getRole
This commit is contained in:
parent
0d6e8d0d2a
commit
74c2c3577e
|
@ -1,5 +1,5 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="summary-dashboard">
|
<div v-show="visible" class="summary-dashboard">
|
||||||
<topBar
|
<topBar
|
||||||
v-if="topList.length > 0 && userInfo.userType != 9"
|
v-if="topList.length > 0 && userInfo.userType != 9"
|
||||||
:top-list="topList"
|
:top-list="topList"
|
||||||
|
@ -144,11 +144,13 @@ export default {
|
||||||
dailyPerformance: {},
|
dailyPerformance: {},
|
||||||
monthlyPerformance: {},
|
monthlyPerformance: {},
|
||||||
defaultTabItem: 'summaryDashboard',
|
defaultTabItem: 'summaryDashboard',
|
||||||
userInfo: {}
|
userInfo: {},
|
||||||
|
visible: false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.getRoles().then(() => {
|
this.getRoles().then(() => {
|
||||||
|
this.visible = true
|
||||||
this.getMemberSummary()
|
this.getMemberSummary()
|
||||||
this.getDailyPerformance()
|
this.getDailyPerformance()
|
||||||
this.getMonthlyPerformance()
|
this.getMonthlyPerformance()
|
||||||
|
|
Loading…
Reference in New Issue