Commit 9c12db6e authored by 郭志伟's avatar 郭志伟

tijiao

parent 1071ac40
......@@ -218,9 +218,6 @@ export default {
this.$forceUpdate();
}
}
},
familyList() {
this.relationChange();
}
},
computed: {
......@@ -265,24 +262,20 @@ export default {
this.selfInfoReadonly = true;
}
});
let userArray = this.familyList.filter(item => {
if (item.userInfoSecId === sessionStorage.getItem(this.detailType + "userInfoSecId")) {
this.formData.relation = "" + item.relation;
return item;
}
});
let userArray = this.familyList.filter(
item => item.userInfoSecId === sessionStorage.getItem(this.detailType + "userInfoSecId")
);
if (!userArray.length) {
userArray = this.familyList.filter(item => item.relation === +relation);
} else {
this.formData.relation = sessionStorage.getItem(this.detailType + "relation");
sessionStorage.removeItem(this.detailType + "userInfoSecId");
sessionStorage.removeItem(this.detailType + "relation");
}
let [name, idNo, userInfoSecId, socialSecurity] = ["", "", "", ""];
if (
relation ===
(localStorage.get(this.autoSaveKey) && localStorage.get(this.autoSaveKey).relation)
) {
sessionStorage.removeItem(this.detailType + "userInfoSecId");
const {
name: cachename,
idNo: cacheidNo,
......@@ -329,6 +322,7 @@ export default {
//
}
}
// sessionStorage.removeItem(this.detailType + "relation");
},
async getFamilyList() {
this.mongoToken = localStorage.get("mongoToken");
......@@ -341,6 +335,9 @@ export default {
this.getSaveInfoHandler(this.autoSaveKey, AUTO_SAVE_TARGET);
} else {
let relation = this.formData.relation;
if (sessionStorage.getItem(this.detailType + "relation")) {
relation = sessionStorage.getItem(this.detailType + "relation");
}
(this.showAuthXyqb || this.mongoToken) && this.relationChange(relation);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment