浏览代码

BUG修复

seimin 3 年之前
父节点
当前提交
9455859dcc
共有 2 个文件被更改,包括 6 次插入3 次删除
  1. 5 2
      src/views/incidentList.vue
  2. 1 1
      src/views/indes.vue

+ 5 - 2
src/views/incidentList.vue

@@ -219,6 +219,11 @@ export default {
219 219
       }
220 220
       if (this.$route.params.type) {
221 221
         this.type = this.$route.params.type;
222
+        if (this.type === "todo") {
223
+          this.searchType = "todo";
224
+        } else {
225
+          this.searchType = "userAll";
226
+        }
222 227
       }
223 228
     },
224 229
     stateChange() {
@@ -273,8 +278,6 @@ export default {
273 278
           formatDate(new Date(), "yyyy-MM-dd") + " 00:00:00";
274 279
         postData.incident.acceptDateEnd =
275 280
           formatDate(new Date(), "yyyy-MM-dd") + " 23:59:59";
276
-      } else if (this.type === "todoAll") {
277
-        postData.searchType = "todoAll";
278 281
       }
279 282
 
280 283
       that.$http

+ 1 - 1
src/views/indes.vue

@@ -44,7 +44,7 @@
44 44
           </router-link>
45 45
           <router-link
46 46
             class="buildOrderItem"
47
-            :to="{ path: '/main/incidentList/todoAll' }"
47
+            :to="{ path: '/main/incidentList/todo' }"
48 48
             tag="div"
49 49
           >
50 50
             <div class="s_num">{{ newStatistics.todoOrders }}</div>