Ver código fonte

主管任务暂存

zhujindu 5 meses atrás
pai
commit
43ae428e64
1 arquivos alterados com 8 adições e 43 exclusões
  1. 8 43
      src/views/week/VisitSummary.vue

+ 8 - 43
src/views/week/VisitSummary.vue

@@ -241,8 +241,6 @@ export default {
     };
   },
   activated() {
-    this.approvalStatus = this.approvalStatusList[0];
-    this.storageStatus = this.storageStatusList[0];
     this.userList = [];
     this.formData.startTime = this.getThreeDaysAgo();
     // this.formData.startTime = this.GetPreMonthDay(this.parseTime(new Date(), '{y}-{m}-{d}'),2)
@@ -300,46 +298,10 @@ export default {
   },
   watch: {
     $route(to, from) {
-      // if(to.path=="/VisitSummary"&&from.path!="/My/index"){
-      //     this.userList=[]
-      //     this.formData.pageNum=1
-      //     this.list = [];
-      //     this.tableList=[];
-      //     this.regionName="全部大区"
-      //     this.regionCode=""
-      //     this.deptName="全部销售部"
-      //     this.deptCode=""
-      //     this.userCode=""
-      //     this.userName="全部业务员"
-      //     this.powerGrade = localStorage.getItem("powerGrade")
-      //     this.getDeptInfo("dept")
-      //     if(this.powerGrade==5){
-      //       setTimeout(()=>{
-      //         if(this.$route.query.userCode==undefined){
-      //           this.companyName=this.companyList[0].deptName;
-      //           this.companyCode=this.companyList[0].deptId;}
-      //         this.getDeptInfo("dept",1)
-      //       },1000)
-      //     }
-      //     if(this.powerGrade==4){
-      //       setTimeout(()=>{
-      //         this.getDeptInfo("dept",1)
-      //       },1000)
-      //     }
-      //     if(this.powerGrade==3){
-      //       setTimeout(()=>{
-      //         this.getDeptInfo("dept",2)
-      //       },1000)
-      //     }
-      //     if(this.powerGrade==2||this.powerGrade==1){
-      //       setTimeout(()=>{
-      //         this.getDeptInfo("user")
-      //       },2000)
-      //     }
-      //     setTimeout(()=>{
-      //       this.searchBtn()
-      //     },1000)
-      //   }
+      if (from.path == '/My/index') {
+        this.approvalStatus = this.approvalStatusList[0];
+        this.storageStatus = this.storageStatusList[0];
+      }
     },
   },
   methods: {
@@ -515,6 +477,7 @@ export default {
       });
     },
     dailyFn(row) {
+      // 暂存
       if (row.status == '0') {
         this.$router.push({
           path: '/VisitSummaryStorageDetail',
@@ -528,7 +491,9 @@ export default {
       }
     },
     onClickLeft() {
-      this.$router.go(-1);
+      this.$router.replace({
+        path: '/My/index',
+      });
     },
     regionClick() {
       // if(this.powerGrade>4){