wangzhihui 4 лет назад
Родитель
Сommit
de49ccf420
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      src/views/voyage/voyageList.vue

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

@@ -206,7 +206,6 @@ export default {
       if (res.data.status == 0) {
       if (res.data.status == 0) {
         tableData.value = res.data.result;
         tableData.value = res.data.result;
       } else {
       } else {
-        tableData.value = [];
         ElNotification({
         ElNotification({
           type: "error",
           type: "error",
           title: res.data.msg,
           title: res.data.msg,
@@ -214,7 +213,9 @@ export default {
       }
       }
     }
     }
     function changeVoyageType(s) {
     function changeVoyageType(s) {
+      tableData.value = [];
       term.value = "";
       term.value = "";
+      currentPage.value = 1;
       currentbtn.value = s == 1;
       currentbtn.value = s == 1;
       status.value = s;
       status.value = s;
       getVoyageList();
       getVoyageList();