ソースを参照

优化viewTag刷新

Joe 4 年 前
コミット
43380e9512

+ 16 - 5
src/components/SelectDept/index.vue

@@ -225,16 +225,27 @@ export default {
       }
     },
     refreshTagView() {
+      console.log('哈哈',this.$route.path);
+      const proArr = []
       this.$store.state.tagsView.visitedViews.map((view) => {
-        this.$store.dispatch("tagsView/delCachedView", view).then(() => {
-          const { fullPath } = view;
+        proArr.push(this.$store.dispatch("tagsView/delCachedView", view))
+        // this.$store.dispatch("tagsView/delCachedView", view).then(() => {
+        //   const { fullPath } = view;
+        //   console.log(fullPath);
+        //   // this.$nextTick(() => {
+        //   //   this.$router.replace({
+        //   //     path: "/redirect" + fullPath,
+        //   //   });
+        //   // });
+        // });
+      });
+      Promise.all(proArr).then(()=>{
           this.$nextTick(() => {
             this.$router.replace({
-              path: "/redirect" + fullPath,
+              path: "/redirect" + this.$route.path,
             });
           });
-        });
-      });
+      })
     },
   },
 };

+ 0 - 1
src/views/customer/Customer_Info.vue

@@ -145,7 +145,6 @@ export default {
     this.getList();
     listPrice().then((response) => {
       this.oilNameOptions = response.rows;
-      console.log('oilNameOptions', this.oilNameOptions);
     });
   },
   methods: {

+ 0 - 2
src/views/market/Market_Discount.vue

@@ -409,7 +409,6 @@ export default {
   name: "Market_Discount",
   data() {
     const validatorGasoilDiscountAmt = (rule, value, callback) => {
-      console.log(this.updateForm.discountTerm);
       if (this.discountSetting == 3) {
         if (
           this.updateForm.discountTerm === undefined ||
@@ -629,7 +628,6 @@ export default {
       };
       listPlan(query).then((response) => {
         this.discountList = response.rows;
-        console.log(this.discountList);
         this.total = response.total;
       });
     },