diff --git a/src/store/modules/user.js b/src/store/modules/user.js index 7eeee04..70c6c5e 100644 --- a/src/store/modules/user.js +++ b/src/store/modules/user.js @@ -70,7 +70,6 @@ const user = { commit("SET_TOKEN", res.token); // 判断是否是初始密码 if (password == "Yingji@123") { - console.log("SET_IS_ORG_PWD"); commit("SET_IS_ORG_PWD", true); } resolve(); @@ -120,6 +119,7 @@ const user = { getInfo() .then((res) => { const user = res.user; + sessionStorage.setItem("USER_INFO", JSON.stringify(user)) commit("get_dept", user.dept); const avatar = user.avatar == "" || user.avatar == null diff --git a/src/views/components/AddDialog/tab1.vue b/src/views/components/AddDialog/tab1.vue index dc5723b..6393286 100644 --- a/src/views/components/AddDialog/tab1.vue +++ b/src/views/components/AddDialog/tab1.vue @@ -265,8 +265,15 @@ export default { }, // 加入草稿箱 handleAddDrafts(row) { - // console.log("1", row); this.resetPlanEnterprise(); + + let userInfo = JSON.parse(sessionStorage.getItem("USER_INFO")); + // console.log(userInfo.lawSort); + + this.formPlanEnterprise.lawSort = userInfo.lawSort; + this.formPlanEnterprise.lawAreas = userInfo.lawAreas; + this.formPlanEnterprise.lawLevel = userInfo.lawLevel; + this.formPlanEnterprise.lawHierarchy = userInfo.userName; this.formPlanEnterprise.plannedYear = this.$moment(new Date()).format( "yyyy" ); diff --git a/src/views/yingji/echarts/executive.vue b/src/views/yingji/echarts/executive.vue index 2e6d051..2a38a43 100644 --- a/src/views/yingji/echarts/executive.vue +++ b/src/views/yingji/echarts/executive.vue @@ -56,9 +56,8 @@ export default { this.district = "" }, treeList() { - if (this.dept.parentId == 0 || this.dept.leader == "admin") { + // if (this.dept.parentId == 0 || this.dept.leader == "admin") { let treeData = JSON.parse(localStorage.getItem("TREE_DATA")); - // console.log(treeData); treeData.forEach((value, index) => { this.compartment.push({ value: value.districtCode, @@ -74,7 +73,7 @@ export default { }); } }); - } + // } this.$emit("quhuadizhi", this.compartment); }, getData(e) {