chenrui  2 жил өмнө
parent
commit
e8356d3119

+ 3 - 2
src/components/Table/index.vue

@@ -545,7 +545,8 @@ export default {
     //初始化表格
     initTableData() {
       this.tableColsCopy = this.tableCols.filter((item) => item.needShow);
-      // console.log(this.tableColsCopy)
+      // console.log(this.tableColsCopy);
+      // debugger;
       this.tableDataCopy = _.cloneDeep(this.tableData);
       const datas = _.cloneDeep(this.tableColsCopy);
       // const reqUts = [];
@@ -790,7 +791,7 @@ export default {
       this.$router.push({
         path: "/BasicsData/airportInfoChild",
         query: {
-          queryTemplateID: row.dataStructureID,
+          queryTemplateID: row.IATACode,
         },
       });
     },

+ 3 - 0
src/views/BasicsData/views/airport/airportInfo.vue

@@ -362,6 +362,9 @@ export default {
             "companyID"
           );
           this.data = arr;
+          if (!this.companyID.length) {
+            this.companyID = arr[0].companyID;
+          }
         } else {
           this.$message.error(res.message ?? "失败");
         }

+ 2 - 3
src/views/BasicsData/views/airport/airportInfoChild.vue

@@ -2,8 +2,7 @@
   <div class="queryItemSettings_home">
     <div class="wrap">
       <DataTable
-        data-id="44"
-        edit-id="45"
+        data-id="61"
         :data-content="{ queryTemplateID }"
         :rows="12"
         label-width="140px"
@@ -27,7 +26,7 @@ export default {
     //   this.$router.push("/systemSettings/queryTemplate");
     //   return;
     // }
-    this.queryTemplateID = Number(this.$route.query.queryTemplateID);
+    this.queryTemplateID = this.$route.query.queryTemplateID;
   },
 };
 </script>

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

@@ -2,7 +2,7 @@
   <div class="queryItemSettings_home">
     <div class="wrap">
       <DataTable
-        data-id="59"
+        data-id="60"
         :data-content="{ queryTemplateID }"
         :rows="12"
         label-width="140px"