Przeglądaj źródła

优化我的任务

wyh 2 lat temu
rodzic
commit
e969c9fa19
1 zmienionych plików z 151 dodań i 2 usunięć
  1. 151 2
      itdmWeb/src/views/dashboard/IndexBdc.vue

+ 151 - 2
itdmWeb/src/views/dashboard/IndexBdc.vue

@@ -86,6 +86,11 @@
                 <a-card title="便捷导航" class="daoHang">
                   <div style="margin-bottom: 15px;">
                     <trend flag>
+                      <a slot="term" @click="$router.push({path:'/firstIndex'})">首页</a>
+                    </trend>
+                  </div>
+                  <div style="margin-bottom: 15px;">
+                    <trend flag>
                       <a slot="term" @click="$router.push({path:'/itdmGongdanMaster/itdmGongdanMasterList'})">拆解工单</a>
                     </trend>
                   </div>
@@ -483,7 +488,7 @@ import ItdmTaskList from '../module-iTDM/itdmFirstPage/ItdmTaskList.vue'
         for (var i = 0; i < wsData.length; i++) {
           console.log(11111122222,wsData[i].name)
           if (wsData[i].name == '打开大屏') {
-            console.log('打开大屏',wsData[i].data)
+            // console.log('打开大屏',wsData[i].data)
 
             // let routeDate = this.$router.resolve({path: '/itdmScreen/itdmScreenIndex'})
             // window.open(routerDate.href,'_blank')
@@ -498,6 +503,150 @@ import ItdmTaskList from '../module-iTDM/itdmFirstPage/ItdmTaskList.vue'
 
             }
           }
+          if (wsData[i].name == '委托登记') {
+            if (wsData[i].data == 1) {
+              this.$router.push({path: '/weituo/itdmWeituoInfoList'})
+              this.socket.close()
+            }
+          }
+          if (wsData[i].name == '委托审核') {
+            if (wsData[i].data == 1) {
+              this.$router.push({path: '/weituoshenhe/ItdmWeituoshenheInfoList'})
+              this.socket.close()
+            }
+          }
+          if (wsData[i].name == '委托查询') {
+            if (wsData[i].data == 1) {
+              this.$router.push({path: '/weituochaxun/ItdmWeituoYangpinList'})
+              this.socket.close()
+            }
+          }
+          if (wsData[i].name == '委托结项') {
+            if (wsData[i].data == 1) {
+              this.$router.push({path: '/weituojiexiang'})
+              this.socket.close()
+            }
+          }
+          if (wsData[i].name == '计划排期') {
+            if (wsData[i].data == 1) {
+              this.$router.push({path: '/itdmTestPlan/itdmTestPlanList'})
+              this.socket.close()
+            }
+          }
+          if (wsData[i].name == '拆解工单') {
+            if (wsData[i].data == 1) {
+              this.$router.push({path: '/itdmGongdanMaster/itdmGongdanMasterList'})
+              this.socket.close()
+            }
+          }
+          if (wsData[i].name == '工单查询') {
+            if (wsData[i].data == 1) {
+              this.$router.push({path: '/itdmGongdanDetail/ItdmGongdanDetailList'})
+              this.socket.close()
+            }
+          }
+          if (wsData[i].name == '条码打印') {
+            if (wsData[i].data == 1) {
+              this.$router.push({path: '/tiaomadayin'})
+              this.socket.close()
+            }
+          }
+          if (wsData[i].name == '工单确认') {
+            if (wsData[i].data == 1) {
+              this.$router.push({path: '/gongdandetail/itdmGongdanDetailList'})
+              this.socket.close()
+            }
+          }
+          if (wsData[i].name == '数据确认') {
+            if (wsData[i].data == 1) {
+              this.$router.push({path: '/gongdanshuju/ItdmGongdanShujuList'})
+              this.socket.close()
+            }
+          }
+          if (wsData[i].name == '模板管理') {
+            if (wsData[i].data == 1) {
+              this.$router.push({path: '/moban/itdmMobanList'})
+              this.socket.close()
+            }
+          }
+          if (wsData[i].name == '报告生成') {
+            if (wsData[i].data == 1) {
+              this.$router.push({path: '/baogao/itdmBaogaoList'})
+              this.socket.close()
+            }
+          }
+          if (wsData[i].name == '运行时间') {
+            if (wsData[i].data == 1) {
+              this.$router.push({path: '/itdmDeviceRun/itdmDeviceRunList'})
+              this.socket.close()
+            }
+          }
+          if (wsData[i].name == '报警统计') {
+            if (wsData[i].data == 1) {
+              this.$router.push({path: '/itdmAlarmTotal/itdmAlarmTotalList'})
+              this.socket.close()
+            }
+          }
+          if (wsData[i].name == '历史报警') {
+            if (wsData[i].data == 1) {
+              this.$router.push({path: '/itdmAlarm/itdmAlarmList'})
+              this.socket.close()
+            }
+          }
+          if (wsData[i].name == '设备数据') {
+            if (wsData[i].data == 1) {
+              this.$router.push({path: '/itdmDevicedata/itdmDeviceDataList'})
+              this.socket.close()
+            }
+          }
+          if (wsData[i].name == '环境数据') {
+            if (wsData[i].data == 1) {
+              this.$router.push({path: '/itdmEnvironmentData/itdmEnvironmentData'})
+              this.socket.close()
+            }
+          }
+          if (wsData[i].name == '流程设计') {
+            if (wsData[i].data == 1) {
+              this.$router.push({path: '/views/activiti/ActivitiList'})
+              this.socket.close()
+            }
+          }
+          if (wsData[i].name == '流程部署') {
+            if (wsData[i].data == 1) {
+              this.$router.push({path: '/views/activiti/ActivitiFileList'})
+              this.socket.close()
+            }
+          }
+          if (wsData[i].name == '常用流程') {
+            if (wsData[i].data == 1) {
+              this.$router.push({path: '/views/activiti/ActivitiCommonModel'})
+              this.socket.close()
+            }
+          }
+          if (wsData[i].name == '我的代办') {
+            if (wsData[i].data == 1) {
+              this.$router.push({path: '/views/activiti/ActivitiDaibanList'})
+              this.socket.close()
+            }
+          }
+          if (wsData[i].name == '历史记录') {
+            if (wsData[i].data == 1) {
+              this.$router.push({path: '/views/activiti/ActivitiHisList'})
+              this.socket.close()
+            }
+          }
+          if (wsData[i].name == '自定义表单') {
+            if (wsData[i].data == 1) {
+              this.$router.push({path: '/views/activiti/CustomForm'})
+              this.socket.close()
+            }
+          }
+          if (wsData[i].name == '表单查询') {
+            if (wsData[i].data == 1) {
+              this.$router.push({path: '/views/customform/CustomFormList'})
+              this.socket.close()
+            }
+          }
         }
       }
     }
@@ -535,7 +684,7 @@ import ItdmTaskList from '../module-iTDM/itdmFirstPage/ItdmTaskList.vue'
   }
   .daoHang {
     width: 300px;
-    height: 200px;
+    height: 240px;
     border-radius: 5px;
     margin-left: 40px;
   }