“yueshang” пре 1 година
родитељ
комит
8c88d5b461
2 измењених фајлова са 10 додато и 7 уклоњено
  1. 4 3
      src/views/backend/taskInfo/index.vue
  2. 6 4
      src/views/backend/taskInfos/index.vue

+ 4 - 3
src/views/backend/taskInfo/index.vue

@@ -1327,14 +1327,15 @@ export default {
         this.queryParams.iscycle = "1";
         console.log(this.queryParams, "query");
         getTaskInfoPage(this.queryParams).then((response) => {
-          this.list = response.data.list;
+          this.list = response.data!=null?response.data.list:[];
           this.total = response.data.total;
           this.loading = false;
         });
       } else {
+        console.log('this.queryParams', this.queryParams)
         // 执行查询
-        getNoPeriodicityPage(this.queryParams).then((response) => {
-          this.list = response.data.list;
+        getNoPeriodicityPage(JSON.stringify(this.queryParams)).then((response) => {
+          this.list = response.data!=null?response.data.list:[];
           console.log(response.data.list, "query1");
           this.total = response.data.total;
           this.loading = false;

+ 6 - 4
src/views/backend/taskInfos/index.vue

@@ -1251,6 +1251,7 @@ export default {
       this.taskStatus = type;
 
       this.queryParams.taskStatus = type;
+      console.log('type', type)
       switch (type) {
         case "1":
           this.selectedTab = "type1";
@@ -1268,7 +1269,7 @@ export default {
           this.selectedTab = "type0";
           this.getList();
           break;
-        case "4":
+        case "9":
           this.selectedTab = "type4";
           this.getList();
           break;
@@ -1326,14 +1327,15 @@ export default {
         this.queryParams.iscycle = "1";
         console.log(this.queryParams, "query");
         getTaskInfoPage(this.queryParams).then((response) => {
-          this.list = response.data.list;
+          this.list = response.data!=null?response.data.list:[];
           this.total = response.data.total;
           this.loading = false;
         });
       } else {
+        console.log('this.queryParams', this.queryParams)
         // 执行查询
-        getNoPeriodicityPage(this.queryParams).then((response) => {
-          this.list = response.data.list;
+        getNoPeriodicityPage(JSON.stringify(this.queryParams)).then((response) => {
+          this.list = response.data!=null?response.data.list:[];
           console.log(response.data.list, "query1");
           this.total = response.data.total;
           this.loading = false;