seimin 3 years ago
parent
commit
6d7e77d720
3 changed files with 17 additions and 7 deletions
  1. 2 0
      src/views/incidentList.vue
  2. 11 3
      src/views/indes.vue
  3. 4 4
      src/views/my.vue

+ 2 - 0
src/views/incidentList.vue

@@ -273,6 +273,8 @@ export default {
273 273
           formatDate(new Date(), "yyyy-MM-dd") + " 00:00:00";
274 274
         postData.incident.acceptDateEnd =
275 275
           formatDate(new Date(), "yyyy-MM-dd") + " 23:59:59";
276
+      } else if (this.type === "todoAll") {
277
+        postData.searchType = "todoAll";
276 278
       }
277 279
 
278 280
       that.$http

+ 11 - 3
src/views/indes.vue

@@ -34,13 +34,21 @@
34 34
         v-if="!newStatisticsLoading && isShowNewStatistics"
35 35
       >
36 36
         <div class="buildOrder">
37
-          <router-link class="buildOrderItem" :to="{ path: '/main/incidentList/today' }" tag="div">
37
+          <router-link
38
+            class="buildOrderItem"
39
+            :to="{ path: '/main/incidentList/today' }"
40
+            tag="div"
41
+          >
38 42
             <div class="s_num">{{ newStatistics.createOrders }}</div>
39 43
             <div>今日建单</div>
40 44
           </router-link>
41
-          <router-link class="buildOrderItem" :to="{ path: '/main/incidentList/all' }" tag="div">
45
+          <router-link
46
+            class="buildOrderItem"
47
+            :to="{ path: '/main/incidentList/todoAll' }"
48
+            tag="div"
49
+          >
42 50
             <div class="s_num">{{ newStatistics.todoOrders }}</div>
43
-            <div>处理中</div>
51
+            <div>处理</div>
44 52
           </router-link>
45 53
         </div>
46 54
         <router-link

+ 4 - 4
src/views/my.vue

@@ -152,10 +152,10 @@ export default {
152 152
       });
153 153
       toast.show();
154 154
       let address = "";
155
-      let addressResult = await this.getLocation();
156
-      if (addressResult.status === 0) {
157
-        address = addressResult.result.formatted_addresses.recommend;
158
-      }
155
+      // let addressResult = await this.getLocation();
156
+      // if (addressResult.status === 0) {
157
+      //   address = addressResult.result.formatted_addresses.recommend;
158
+      // }
159 159
       online = online == 1 ? 0 : 1;
160 160
       this.$http
161 161
         .post("service/auth/online", { onlion: online, address })