Explorar el Código

feat:链接

liujt hace 1 semana
padre
commit
80c441fcbe
Se han modificado 1 ficheros con 15 adiciones y 4 borrados
  1. 15 4
      src/views/bpm/vis-page/pcsData/index.vue

+ 15 - 4
src/views/bpm/vis-page/pcsData/index.vue

@@ -56,7 +56,7 @@
             <div class="left-section">
               <!-- 综合数据 -->
               <div class="panel data-panel">
-                <div class="panel-title" style="cursor: pointer" @click="handelRouterTo('/page-pcs/productionRecords?type=2')">
+                <div class="panel-title" style="cursor: pointer" @click="handelRouterTo('/page-pcs/productionRecords')">
                   <div class="panel-icon"></div>
                   综合数据
                 </div>
@@ -128,7 +128,7 @@
                 v-for="(boiler, index) in boilerData"
                 :key="index"
               >
-                <div class="param-title">{{ boiler.title }}</div>
+                <div class="param-title" style="cursor: pointer" @click="handelRouterTo('', boiler.title)">{{ boiler.title }}</div>
                 <div class="param-list">
                   <div
                     class="param-item"
@@ -320,8 +320,19 @@
       Object.values(this.charts).forEach((chart) => chart && chart.dispose());
     },
     methods: {
-      handelRouterTo(path) {
-        window.history.pushState(null, '', path);
+      handelRouterTo(path, item) {
+        let url = path;
+        if(url == '') {
+          if(item == '锅炉运行参数') {
+            url = '/page-pcs/boilerOperationRecord'
+          } else if(item == '生产记录') {
+            url = '/page-pcs/productionRecords'
+          } else if(item == '蒸汽质量检查记录') {
+            url = '/page-pcs/qualityTestRecords'
+          }
+        } else {
+          window.history.pushState(null, '', url);
+        }
       },
       energyTabsCahnge(val) {
         this.activeEnergyTab = val;