chenrui  2 rokov pred
rodič
commit
02823d8d0e

+ 4 - 4
src/views/BasicsData/airportInfo/airportInfoChild/index.vue

@@ -241,7 +241,7 @@ const getQuery = async () => {
       id: DATACONTENT_ID.terminalTableId,
       needPage: ++page.value,
       dataContent: [
-        route.query.IATACode ? route.query.IATACode : Cookies.get("IATACode"),
+        route.query.IATACode ? tableForm.airportCode : Cookies.get("IATACode"),
       ],
     });
     if (code === "0") {
@@ -257,8 +257,8 @@ const getQuery = async () => {
       }
       tableData.value.push(...returnData.listValues);
       tableData.value.forEach((element) => {
-        element.abbreviation = route.query.abbreviation
-          ? route.query.abbreviation
+        element.abbreviation = tableForm.abbreviation
+          ? tableForm.abbreviation
           : Cookies.get("abbreviation");
       });
       tableCols.value = returnData.columnSet;
@@ -297,7 +297,7 @@ const resetTable = () => {
 const generalDataReception = async (data) => {
   try {
     let obj = {
-      IATACode: route.query.IATACode,
+      IATACode: tableForm.airportCode,
     };
     data = {
       ...data,

+ 2 - 2
src/views/BasicsData/airportInfo/index.vue

@@ -439,8 +439,8 @@ const btnClick = (row, index, param) => {
     tableForm.companyName = index.companyName;
     tableForm.event = index.event;
   } else if (param === 4) {
-    Cookies.set("IATACode", index.IATACode);
-    Cookies.set("abbreviation", index.abbreviation);
+    // Cookies.set("IATACode", index.IATACode);
+    // Cookies.set("abbreviation", index.abbreviation);
     router.push({
       path: "/BasicsData/airportInfoChild",
       query: {

+ 3 - 1
src/views/BasicsData/index.vue

@@ -1,5 +1,7 @@
 <template>
   <div>
-    <router-view />
+    <keep-alive include="AirportInfoChild">
+      <router-view />
+    </keep-alive>
   </div>
 </template>