Selaa lähdekoodia

更新 搜索条件筛选保留

wzh 3 vuotta sitten
vanhempi
commit
c451114898

+ 1 - 2
src/views/cargoOwnerManage/cargoOwnerDetail.vue

@@ -143,7 +143,7 @@ export default {
     let contactName = ref();
     let userPhone = ref();
     let status = ref(1);
-    let term = ref();
+    let term = ref("");
     let currentPage = ref(1);
     const tableData = ref();
     async function getUserDetail() {
@@ -169,7 +169,6 @@ export default {
         currentPage: currentPage.value,
         size: 10,
       });
-      term.value = "";
       if (res.data.status == 0) {
         tableData.value = res.data.result;
       } else {

+ 0 - 1
src/views/cargoOwnerManage/cargoOwnerList.vue

@@ -164,7 +164,6 @@ export default {
         size: 10,
         term: term.value,
       });
-      term.value = "";
       if (res.data.status == 0) {
         tableData.value = res.data.result;
         total.value = res.data.total;

+ 1 - 2
src/views/index/Blockchain.vue

@@ -97,7 +97,7 @@ import md5 from "md5";
 import api from "../../apis/fetch";
 
 let currentPage = ref(1);
-let term = ref();
+let term = ref("");
 let tableData = ref();
 let total = ref();
 async function getBlockChainList() {
@@ -107,7 +107,6 @@ async function getBlockChainList() {
     size: 10,
     term: term.value,
   });
-  term.value = "";
   if (res.data.status == 0) {
     tableData.value = res.data.result;
     total.value = res.data.total;

+ 1 - 2
src/views/shipInfo/shipDetail.vue

@@ -411,7 +411,7 @@ export default {
     }
     let currentbtn = ref(true);
     let currentPage = ref(1);
-    let term = ref();
+    let term = ref("");
     let tableData = ref();
     let total = ref(0);
     let status = ref(1);
@@ -426,7 +426,6 @@ export default {
         currentPage: currentPage.value,
         size: 10,
       });
-      term.value = "";
       if (res.data.status == 0) {
         tableData.value = res.data.result;
       }

+ 1 - 2
src/views/shipInfo/shipList.vue

@@ -96,7 +96,7 @@ import api from "../../apis/fetch";
 export default {
   setup() {
     let currentPage = ref(1);
-    let term = ref();
+    let term = ref("");
     let tableData = ref();
     let total = ref();
     async function getShipList() {
@@ -106,7 +106,6 @@ export default {
         size: 10,
         term: term.value,
       });
-      term.value = "";
       if (res.data.status == 0) {
         tableData.value = res.data.result;
         total.value = res.data.total;

+ 1 - 2
src/views/shipOwnerManage/shipOwnerList.vue

@@ -175,7 +175,7 @@ export default {
       });
     }
     let currentPage = ref(1);
-    let term = ref();
+    let term = ref("");
     let tableData = ref();
     let total = ref();
     async function getShipOwnerList() {
@@ -186,7 +186,6 @@ export default {
         size: 10,
         term: term.value,
       });
-      term.value = "";
       if (res.data.status == 0) {
         tableData.value = res.data.result;
         total.value = res.data.total;

+ 0 - 2
src/views/voyage/voyageList.vue

@@ -413,7 +413,6 @@ async function getVoyageList() {
     currentPage: currentPage.value,
     size: pageSize.value,
   });
-  term.value = "";
   if (res.data.status == 0) {
     tableData.value = res.data.result;
     total.value = res.data.total;
@@ -425,7 +424,6 @@ async function getVoyageList() {
   }
 }
 function changeVoyageType(s) {
-  term.value = "";
   currentPage.value = 1;
   status.value = s;
   getVoyageList();