Browse Source

bug#561居民分类重复点击无法选中问题

V1.0
mk 3 years ago
parent
commit
7376eed64a
  1. 41
      src/views/components/resiForm.vue

41
src/views/components/resiForm.vue

@ -1150,20 +1150,20 @@ export default {
opction: [
]
},
{
label: "参战时间开始日期",
itemType: "datepicker1",
formName: "joinWarStartTime",
opction: [
]
},
{
label: "参战时间截止日期",
itemType: "datepicker1",
formName: "joinWarEndTime",
opction: [
]
},
// {
// label: "",
// itemType: "datepicker1",
// formName: "joinWarStartTime",
// opction: [
// ]
// },
// {
// label: "",
// itemType: "datepicker1",
// formName: "joinWarEndTime",
// opction: [
// ]
// },
{
label: "现就业情况",
itemType: "input1",
@ -1867,6 +1867,7 @@ export default {
this.handleTabShow(item, val)
},
handleTabShow (item, val) {
console.log(item,val);
const mapping = {
partyFlag: { label: '党员', id: '0', groupId: 'parymemberInfoDto' },
ensureHouseFlag: { label: '保障房信息', id: '1', groupId: 'ensureHouseDto' },
@ -1885,7 +1886,17 @@ export default {
this.tabsList.push(mapping[item.formName]);
} else if (val != 1 && mapping[item.formName]) {
this.tabsList = this.tabsList.filter(tab => tab.id !== mapping[item.formName].id);
delete this.form[mapping[item.formName].groupId];
// delete this.form[mapping[item.formName].groupId];
let group = this.form[mapping[item.formName].groupId];
for (let key in group) {
if (group.hasOwnProperty(key)) {
if (typeof group[key] === "string") {
group[key] = "";
} else if (typeof group[key] === "number") {
group[key] = null;
}
}
}
}
},

Loading…
Cancel
Save