wang_xy 10 月之前
父节点
当前提交
c04d38c821
共有 1 个文件被更改,包括 36 次插入36 次删除
  1. 36 36
      src/views/zdsz/touchOperationEngineering/index.vue

+ 36 - 36
src/views/zdsz/touchOperationEngineering/index.vue

@@ -393,18 +393,18 @@ export default {
     },
     },
     updateviewSource(e) {
     updateviewSource(e) {
       this.currentId = e.id
       this.currentId = e.id
-      let dists ;
-      if ("地埋扳孔"  == e.modeOperation){
-        dists="bury_the_wrench_hole";
-      }else if ("架空扳孔"  == e.modeOperation){
-        dists="aerial_wrench_hole";
-      }else if ("停气作业"  == e.modeOperation){
-        dists="shutdown_operation";
-      }else if ("PE 封堵"  == e.modeOperation){
-        dists="pe_plugging";
-      }else if ("钢管带气封堵"  == e.modeOperation){
-        dists="the_steel_pipe_sealed_with_gas";
-      }
+      let dists = e.modeOperation;
+      // if ("地埋扳孔"  == e.modeOperation){
+      //   dists="bury_the_wrench_hole";
+      // }else if ("架空扳孔"  == e.modeOperation){
+      //   dists="aerial_wrench_hole";
+      // }else if ("停气作业"  == e.modeOperation){
+      //   dists="shutdown_operation";
+      // }else if ("PE 封堵"  == e.modeOperation){
+      //   dists="pe_plugging";
+      // }else if ("钢管带气封堵"  == e.modeOperation){
+      //   dists="the_steel_pipe_sealed_with_gas";
+      // }
       getDicts(dists).then(res => {
       getDicts(dists).then(res => {
         this.nodeList = res.data
         this.nodeList = res.data
         let dict = []
         let dict = []
@@ -422,18 +422,18 @@ export default {
     handleHistory(e, type = null){
     handleHistory(e, type = null){
       this.currentId = e.id
       this.currentId = e.id
       let dict = []
       let dict = []
-      let dists ;
-      if ("地埋扳孔"  == e.modeOperation){
-        dists="bury_the_wrench_hole";
-      }else if ("架空扳孔"  == e.modeOperation){
-        dists="aerial_wrench_hole";
-      }else if ("停气作业"  == e.modeOperation){
-        dists="shutdown_operation";
-      }else if ("PE 封堵"  == e.modeOperation){
-        dists="pe_plugging";
-      }else if ("钢管带气封堵"  == e.modeOperation){
-        dists="the_steel_pipe_sealed_with_gas";
-      }
+      let dists = e.modeOperation;
+      // if ("地埋扳孔"  == e.modeOperation){
+      //   dists="bury_the_wrench_hole";
+      // }else if ("架空扳孔"  == e.modeOperation){
+      //   dists="aerial_wrench_hole";
+      // }else if ("停气作业"  == e.modeOperation){
+      //   dists="shutdown_operation";
+      // }else if ("PE 封堵"  == e.modeOperation){
+      //   dists="pe_plugging";
+      // }else if ("钢管带气封堵"  == e.modeOperation){
+      //   dists="the_steel_pipe_sealed_with_gas";
+      // }
       getDicts(dists).then(res => {
       getDicts(dists).then(res => {
         this.nodeList = res.data
         this.nodeList = res.data
         for (let i = 0; i < this.nodeList.length; i++) {
         for (let i = 0; i < this.nodeList.length; i++) {
@@ -544,18 +544,18 @@ export default {
         this.form = response.data;
         this.form = response.data;
         this.open = true;
         this.open = true;
         this.title = "添加碰口作业用料信息";
         this.title = "添加碰口作业用料信息";
-        let dists ;
-        if ("地埋扳孔"  == response.data.modeOperation){
-          dists="bury_the_wrench_hole";
-        }else if ("架空扳孔"  == response.data.modeOperation){
-          dists="aerial_wrench_hole";
-        }else if ("停气作业"  == response.data.modeOperation){
-          dists="shutdown_operation";
-        }else if ("PE 封堵"  == response.data.modeOperation){
-          dists="pe_plugging";
-        }else if ("钢管带气封堵"  == response.data.modeOperation){
-          dists="the_steel_pipe_sealed_with_gas";
-        }
+        let dists = response.data.modeOperation;
+        // if ("地埋扳孔"  == response.data.modeOperation){
+        //   dists="bury_the_wrench_hole";
+        // }else if ("架空扳孔"  == response.data.modeOperation){
+        //   dists="aerial_wrench_hole";
+        // }else if ("停气作业"  == response.data.modeOperation){
+        //   dists="shutdown_operation";
+        // }else if ("PE 封堵"  == response.data.modeOperation){
+        //   dists="pe_plugging";
+        // }else if ("钢管带气封堵"  == response.data.modeOperation){
+        //   dists="the_steel_pipe_sealed_with_gas";
+        // }
         getDicts(dists).then(res => {
         getDicts(dists).then(res => {
           this.nodeList = res.data
           this.nodeList = res.data
         })
         })