浏览代码

qhj-修改获取单位角色的代码

qiaohj 1 周之前
父节点
当前提交
d20b47e723
共有 2 个文件被更改,包括 6 次插入3 次删除
  1. 2 1
      .gitignore
  2. 4 2
      src/views/home/index.vue

+ 2 - 1
.gitignore

@@ -1,2 +1,3 @@
 node_modules
-.idea/
+.idea/
+dist/

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

@@ -723,7 +723,7 @@
         cbjsInfoVisible: false,
         cbjsInfoData: null,
         mainDetailsVisible: false,
-        curOrg: '',
+        curOrg: '企业单位',
         // 填报任务弹窗相关
         taskFillInVisible: false,
         currentTaskInfo: {},
@@ -747,10 +747,12 @@
         }
       },
     },
+    created() {
+      this.curOrg = this.$store.state.user.userInfo.curOrg
+    },
     mounted() {
       this.$el.querySelector('div.el-calendar__header').remove()
       let user = this.$permission.getUserInfo()
-      this.curOrg = this.$store.state.user.userInfo.curOrg
       if (user.dataScope === 0) {
         this.areaCode = user.provinceCode
       } else if (user.dataScope === 1) {