Jelajahi Sumber

家装人员主管任务列表添加暂存标识

zhujindu 4 bulan lalu
induk
melakukan
3372e92a01

+ 2 - 2
src/views/week/VisitSummary.vue

@@ -483,12 +483,12 @@ export default {
       if (row.status == '0') {
         this.$router.push({
           path: '/VisitSummaryStorageDetail',
-          query: { userSummaryId: row.userSummaryId },
+          query: { userSummaryId: row.userSummaryId, source: '/VisitSummary' },
         });
       } else {
         this.$router.push({
           path: '/VisitSummaryDetail',
-          query: { userSummaryId: row.userSummaryId, source: 'VisitSummary' },
+          query: { userSummaryId: row.userSummaryId, source: '/VisitSummary' },
         });
       }
     },

+ 2 - 2
src/views/week/VisitSummaryDetail.vue

@@ -254,7 +254,7 @@ export default {
           if (res.code == 200) {
             this.$toast('操作成功!');
             this.$router.replace({
-              path: '/VisitSummary',
+              path: this.source,
             });
           } else {
             this.$toast(res.msg);
@@ -292,7 +292,7 @@ export default {
           if (res.code == 200) {
             this.$toast('操作成功!');
             this.$router.replace({
-              path: '/VisitSummary',
+              path: this.source,
             });
           } else {
             this.$toast(res.msg);

+ 3 - 3
src/views/week/VisitSummaryMy.vue

@@ -117,7 +117,7 @@ export default {
     };
   },
 
-  created() {
+  activated() {
     this.userList = [];
     this.formData.startTime = this.getThreeDaysAgo();
     this.strtcurrentDate = new Date(this.getThreeDaysAgo());
@@ -238,12 +238,12 @@ export default {
       if (row.status == '0') {
         this.$router.push({
           path: '/VisitSummaryStorageDetail',
-          query: { userSummaryId: row.userSummaryId },
+          query: { userSummaryId: row.userSummaryId, source: '/VisitSummaryMy' },
         });
       } else {
         this.$router.push({
           path: '/VisitSummaryDetail',
-          query: { userSummaryId: row.userSummaryId, source: 'VisitSummary' },
+          query: { userSummaryId: row.userSummaryId, source: '/VisitSummaryMy' },
         });
       }
     },

+ 5 - 3
src/views/week/VisitSummaryStorageDetail.vue

@@ -209,7 +209,7 @@ export default {
             if (res.code == 200) {
               this.$toast('操作成功!');
               this.$router.replace({
-                path: '/VisitSummary',
+                path: this.source,
               });
             } else {
               this.$toast(res.msg);
@@ -231,7 +231,7 @@ export default {
             if (res.code == 200) {
               this.$toast('操作成功!');
               this.$router.replace({
-                path: '/VisitSummary',
+                path: this.source,
               });
             } else {
               this.$toast(res.msg);
@@ -276,7 +276,9 @@ export default {
             .then((res) => {
               if (res.code == 200) {
                 this.$toast('操作成功!');
-                this.onClickLeft();
+                this.$router.replace({
+                  path: this.source,
+                });
               } else {
                 this.$toast(res.msg);
               }