Quellcode durchsuchen

首页增加提示类tab,B类指标页优化,我的-增加业务员日常工作统计

zhujindu vor 1 Jahr
Ursprung
Commit
6f32f90015

+ 12 - 0
src/App.vue

@@ -42,3 +42,15 @@ export default {
   methods: {},
 };
 </script>
+<style lang="scss">
+#wm_div_id {
+  position: fixed;
+  top: 0;
+  right: 0;
+  bottom: 0;
+  left: 0;
+  width: 100%;
+  height: 100%;
+  z-index: 9999999;
+}
+</style>

Datei-Diff unterdrückt, da er zu groß ist
+ 1735 - 0
src/views/home/ABtarget.vue


+ 28 - 11
src/views/home/hintTabPage/index.vue

@@ -185,6 +185,12 @@ export default {
       userInfo: (state) => state.user.userInfo,
     }),
   },
+  props: {
+    tabVal: {
+      type: [String, Number],
+      default: '-1',
+    },
+  },
   data() {
     return {
       empLevel: '', //员工级别,1大区主管2销售部主管3业务员4其他 ***其他级别4,不显示日报、周报、半月报和色卡
@@ -394,19 +400,30 @@ export default {
       },
     };
   },
-  activated() {
-    if (!this.userInfo) return;
-    this.empLevel = this.userInfo.empLevel;
-    // 获取拜访数据
-    this.getVisitCollapseData();
-    // 获取建店数据
-    this.getSelectBuildingStore();
-    // 获取汇报数据 日报、周报、半月报
-    this.getReportData();
-    // 获取色卡数据
-    this.getPantoneData();
+  watch: {
+    tabVal: {
+      handler(val) {
+        if (val == -1) {
+          this.initData();
+        }
+      },
+      immediate: true,
+    },
   },
+  activated() {},
   methods: {
+    initData() {
+      if (!this.userInfo) return;
+      this.empLevel = this.userInfo.empLevel;
+      // 获取拜访数据
+      this.getVisitCollapseData();
+      // 获取建店数据
+      this.getSelectBuildingStore();
+      // 获取汇报数据 日报、周报、半月报
+      this.getReportData();
+      // 获取色卡数据
+      this.getPantoneData();
+    },
     getVisitCollapseData() {
       selectVisitsRealTime().then((res) => {
         this.visitCollapse.resData = res.data;

+ 3 - 0
src/views/home/hintTabPage/noVisit.vue

@@ -338,6 +338,9 @@ export default {
 </script>
 <style lang="scss" scoped>
 .noVisit {
+  height: 100%;
+  width: 100%;
+  /* overflow-y: auto; */
   .content {
     padding: 8px 10px;
     .item {

+ 3 - 0
src/views/home/hintTabPage/pantoneNoGet.vue

@@ -90,6 +90,9 @@ export default {
 </script>
 <style lang="scss" scoped>
 .pantoneNoGet {
+  height: 100%;
+  width: 100%;
+  /* overflow-y: auto; */
   .content {
     padding: 8px 10px;
     .item {

Datei-Diff unterdrückt, da er zu groß ist
+ 76 - 1752
src/views/home/index.vue