feat: 仪表盘徽标数
This commit is contained in:
parent
7b3d071fd3
commit
b208634e40
@ -40,6 +40,11 @@
|
||||
<li @click="toggleRoute('dashboard')" :class="classNameRoute('dashboard')">
|
||||
<i class="taskfont"></i>
|
||||
<div class="menu-title">{{$L('仪表盘')}}</div>
|
||||
<Badge
|
||||
v-if="projectStatistics.today > 0 || projectStatistics.overdue > 0"
|
||||
class="menu-badge"
|
||||
:type="projectStatistics.overdue > 0 ? '' : 'primary'"
|
||||
:count="projectStatistics.today + projectStatistics.overdue"></Badge>
|
||||
</li>
|
||||
<li @click="toggleRoute('calendar')" :class="classNameRoute('calendar')">
|
||||
<i class="taskfont"></i>
|
||||
@ -224,6 +229,7 @@ export default {
|
||||
//
|
||||
this.$store.dispatch("getUserInfo");
|
||||
this.$store.dispatch("getTaskPriority");
|
||||
this.$store.dispatch("getProjectStatistics");
|
||||
//
|
||||
this.notificationInit();
|
||||
this.onVisibilityChange();
|
||||
@ -245,6 +251,7 @@ export default {
|
||||
'dialogs',
|
||||
'projects',
|
||||
'projectTotal',
|
||||
'projectStatistics',
|
||||
'taskId',
|
||||
'dialogMsgPush',
|
||||
]),
|
||||
|
Loading…
x
Reference in New Issue
Block a user