소스 검색

节点标识

chenrui  2 년 전
부모
커밋
5c9544cc20
3개의 변경된 파일21개의 추가작업 그리고 21개의 파일을 삭제
  1. 9 9
      src/components/Table/index.vue
  2. 9 9
      src/components/Table/indexcopy.vue
  3. 3 3
      src/views/BasicsData/views/deployNode/deployNodeChild.vue

+ 9 - 9
src/components/Table/index.vue

@@ -766,8 +766,8 @@ export default {
         this.tableType = "add";
         this.tableTitle = "新增";
         this.tableForm = {};
-        if (this.dataContent.nodeID) {
-          this.tableForm.nodeCode = this.dataContent.nodeID;
+        if (this.dataContent.nodeCode) {
+          this.tableForm.nodeCode = this.dataContent.nodeCode;
         }
         if (this.dataContent.companyID) {
           this.tableForm.companyID = this.dataContent.companyID;
@@ -777,8 +777,8 @@ export default {
         }
         // this.tableForm.
       } else {
-        if (this.dataContent.nodeID) {
-          this.tableForm.nodeCode = this.dataContent.nodeID;
+        if (this.dataContent.nodeCode) {
+          this.tableForm.nodeCode = this.dataContent.nodeCode;
         }
         if (this.dataContent.IATACode) {
           this.tableForm.IATACode = this.dataContent.IATACode;
@@ -800,8 +800,8 @@ export default {
             row.queryTemplateColumnSetID
           );
           this.tableForm = JSON.parse(JSON.stringify(data));
-          if (this.dataContent.nodeID) {
-            this.tableForm.nodeCode = this.dataContent.nodeID;
+          if (this.dataContent.nodeCode) {
+            this.tableForm.nodeCode = this.dataContent.nodeCode;
           }
           if (this.dataContent.companyID) {
             this.tableForm.companyID = this.dataContent.companyID;
@@ -815,8 +815,8 @@ export default {
           // })
         } else {
           this.tableForm = JSON.parse(JSON.stringify(row));
-          if (this.dataContent.nodeID) {
-            this.tableForm.nodeCode = this.dataContent.nodeID;
+          if (this.dataContent.nodeCode) {
+            this.tableForm.nodeCode = this.dataContent.nodeCode;
           }
           if (this.dataContent.companyID) {
             this.tableForm.companyID = this.dataContent.companyID;
@@ -910,7 +910,7 @@ export default {
       this.$router.push({
         path: "/BasicsData/deployNodeChild",
         query: {
-          nodeID: row.nodeID,
+          nodeID: row.nodeCode,
         },
       });
     },

+ 9 - 9
src/components/Table/indexcopy.vue

@@ -766,8 +766,8 @@ export default {
         this.tableType = "add";
         this.tableTitle = "新增";
         this.tableForm = {};
-        if (this.dataContent.nodeID) {
-          this.tableForm.nodeCode = this.dataContent.nodeID;
+        if (this.dataContent.nodeCode) {
+          this.tableForm.nodeCode = this.dataContent.nodeCode;
         }
         if (this.dataContent.companyID) {
           this.tableForm.companyID = this.dataContent.companyID;
@@ -777,8 +777,8 @@ export default {
         }
         // this.tableForm.
       } else {
-        if (this.dataContent.nodeID) {
-          this.tableForm.nodeCode = this.dataContent.nodeID;
+        if (this.dataContent.nodeCode) {
+          this.tableForm.nodeCode = this.dataContent.nodeCode;
         }
         if (this.dataContent.IATACode) {
           this.tableForm.IATACode = this.dataContent.IATACode;
@@ -800,8 +800,8 @@ export default {
             row.queryTemplateColumnSetID
           );
           this.tableForm = JSON.parse(JSON.stringify(data));
-          if (this.dataContent.nodeID) {
-            this.tableForm.nodeCode = this.dataContent.nodeID;
+          if (this.dataContent.nodeCode) {
+            this.tableForm.nodeCode = this.dataContent.nodeCode;
           }
           if (this.dataContent.companyID) {
             this.tableForm.companyID = this.dataContent.companyID;
@@ -815,8 +815,8 @@ export default {
           // })
         } else {
           this.tableForm = JSON.parse(JSON.stringify(row));
-          if (this.dataContent.nodeID) {
-            this.tableForm.nodeCode = this.dataContent.nodeID;
+          if (this.dataContent.nodeCode) {
+            this.tableForm.nodeCode = this.dataContent.nodeCode;
           }
           if (this.dataContent.companyID) {
             this.tableForm.companyID = this.dataContent.companyID;
@@ -910,7 +910,7 @@ export default {
       this.$router.push({
         path: "/BasicsData/deployNodeChild",
         query: {
-          nodeID: row.nodeID,
+          nodeCode: row.nodeCode,
         },
       });
     },

+ 3 - 3
src/views/BasicsData/views/deployNode/deployNodeChild.vue

@@ -3,7 +3,7 @@
     <div class="wrap">
       <DataTable
         data-id="60"
-        :data-content="{ nodeID }"
+        :data-content="{ nodeCode }"
         :rows="24"
         label-width="80px"
         :min-height="70"
@@ -18,7 +18,7 @@ export default {
   components: { DataTable },
   data() {
     return {
-      nodeID: null,
+      nodeCode: null,
     };
   },
   created() {
@@ -26,7 +26,7 @@ export default {
     //   this.$router.push("/systemSettings/queryTemplate");
     //   return;
     // }
-    this.nodeID = Number(this.$route.query.nodeID);
+    this.nodeCode = Number(this.$route.query.nodeCode);
   },
 };
 </script>