Browse Source

首页修改

caojunjie 2 years ago
parent
commit
4612ca5f4c

+ 6 - 1
src/views/wel/components/sales-trend.vue

@@ -207,7 +207,12 @@ export default {
       })
     },
     init() {
-      this.getsalesTrend();
+        if (this.tradeType == null) {
+            return
+        }else {
+            this.getsalesTrend();
+        }
+
     },
     getSysType() {
       const sysType = localStorage.getItem("sysitemType");

+ 6 - 1
src/views/wel/components/xinsales-trend.vue

@@ -125,7 +125,12 @@ export default {
       })
     },
     init() {
-      this.getsalesTrend();
+        if (this.tradeType == null) {
+            return
+        }else {
+            this.getsalesTrend();
+        }
+
     },
     getSysType() {
       const sysType = localStorage.getItem("sysitemType");