浏览代码

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

zhujindu 1 年之前
父节点
当前提交
e102c307a1
共有 1 个文件被更改,包括 4 次插入2 次删除
  1. 4 2
      src/views/home/index.vue

+ 4 - 2
src/views/home/index.vue

@@ -62,7 +62,10 @@ export default {
     // 监听切换用户
     // 监听切换用户
     'userInfo.userName': {
     'userInfo.userName': {
       handler(val) {
       handler(val) {
-        if (val) this.getDict();
+        if (val) {
+          this.getDict();
+          this.getReportInfo();
+        }
       },
       },
       immediete: true,
       immediete: true,
     },
     },
@@ -79,7 +82,6 @@ export default {
   },
   },
   created() {
   created() {
     this.getDict();
     this.getDict();
-    this.getReportInfo();
   },
   },
   methods: {
   methods: {
     async getDict() {
     async getDict() {