diff --git a/src/views/dashboard/components/PanelGroup.vue b/src/views/dashboard/components/PanelGroup.vue index 4fe4e3f..7d39cbb 100644 --- a/src/views/dashboard/components/PanelGroup.vue +++ b/src/views/dashboard/components/PanelGroup.vue @@ -10,8 +10,8 @@
总数
-
- +
@@ -28,8 +28,8 @@
总数
-
- +
@@ -45,46 +45,85 @@
总数
-
- +
-
--> -
-
- 预警提醒 - -
-
-
总数
-
-
-
- -
-
-
-
-
-
- 到期提醒 - -
-
-
总数
-
-
-
- -
-
-
-
- +
--> +
+
+ 预警提醒 + +
+
+
总数
+
+
+
+ +
+
+
+
+
+
+ 到期提醒 + +
+
+
总数
+
+
+
+ +
+
+
+
+ +
+
+ 员工人数 + +
+
+
+
+
总人数
+
+
+
+ +
+
+
+
+
+
管理人员人数
+
+
+
+ +
+
+
+
+
+
服务人员人数
+
+
+
+ +
+
+
+
+
+
+ + @@ -101,11 +140,16 @@ totaldata: { type: Object, default: { - // recordsTotal:0, - // organizesTotal:0, - // areasTotal:0, - status1Total:0, - dateTotal:0 + // recordsTotal:0, + // organizesTotal:0, + // areasTotal:0, + status1Total: 0, + dateTotal: 0, + person: { + total: 0, + manage: 0, + serve: 0 + } } } }, @@ -115,15 +159,15 @@ methods: { handleRoute(type) { this.$emit('handleRoute', type) - }, - toUrl(type){ - if(type==1 && this.totaldata.status1Total>0){ - this.$router.push('/record/index?status1Total=1') - } - if(type==2 && this.totaldata.dateTotal>0){ - this.$router.push('/record/index?dateTotal=1') - } - + }, + toUrl(type) { + if (type == 1 && this.totaldata.status1Total > 0) { + this.$router.push('/record/index?status1Total=1') + } + if (type == 2 && this.totaldata.dateTotal > 0) { + this.$router.push('/record/index?dateTotal=1') + } + }, toCaculateper(f1, f2) { return ((f1 / (f2 == 0 ? 1 : f2)) * 100).toFixed(2) + "%" @@ -134,7 +178,7 @@