加入草稿,加字段

zhangtao
laozt 1 year ago
parent 6648eec5a9
commit 1701f748a4

@ -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

@ -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"
);

@ -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) {

Loading…
Cancel
Save