Browse Source

首页优化

wyh 1 year ago
parent
commit
6b2fc2cbf5
1 changed files with 10 additions and 1 deletions
  1. 10 1
      src/views/dashboard/Analysis.vue

+ 10 - 1
src/views/dashboard/Analysis.vue

@@ -27,6 +27,7 @@
             <div class="common-title u-flex">
               <span class="text">报警通知</span>
             </div>
+            <a-button type="link" size="small" @click="chakan">处理/查看</a-button>
             <!-- <router-link to="/alarmManage/handleAlarm">
               <a-button style="float: right; padding: 3px 0" type="text">处理/查看</a-button>
             </router-link> -->
@@ -65,6 +66,7 @@
             <div class="common-title u-flex">
               <span class="text">消息通知</span>
             </div>
+            <a-button type="link" size="small" @click="chakan2">处理/查看</a-button>
             <!-- <router-link to="/alarmManage/notice">
               <a-button style="float: right; padding: 3px 0" type="text">处理/查看</a-button>
             </router-link> -->
@@ -168,7 +170,7 @@ export default {
       // 运维统计前端绘制
       operaContent: [
         { type: 'repair', title: '设备当前运行数', completed: 'machineCompleted', completedTitle: 'machineCompleted', incomplete: 'machineIncomplete', 
-          incompleteTitle: 'machineIncomplete', legend: 'hdd', class: 'spotcheck', to: '/equipment/equipmentstatus' },
+          incompleteTitle: 'machineIncomplete', legend: 'hdd', class: 'spotcheck', to: '/ehm/status' },
         // { type: 'repair', title: '未处理报警', completed: 'alarmCompleted', completedTitle: 'alarmCompleted', incomplete: 'alarmIncomplete', 
         //   incompleteTitle: 'alarmIncomplete', legend: 'a-icon-warning warning', to: '/alarmManage/handleAlarm' },
         { type: 'repair', title: '待维修任务', completed: 'repairCompleted', completedTitle: 'repairCompleted', incomplete: 'repairIncomplete', 
@@ -248,6 +250,13 @@ export default {
     //   this.getInfo();
         this.getTest();
     },
+    // 处理/查看
+    chakan(){
+      this.$router.push({path: '/msgcharge'})
+    },
+    chakan2(){
+      this.$router.push({path: '/msgnotice'})
+    },
     // 正式需要删除
     getTest() {
         if (emsdata.homedata.RepairSum != null) {