|
@@ -2814,10 +2814,8 @@ export default {
|
|
});
|
|
});
|
|
},
|
|
},
|
|
handleAddEduInfo(row) {
|
|
handleAddEduInfo(row) {
|
|
- console.log(row);
|
|
|
|
-
|
|
|
|
|
|
+ const { id } = row
|
|
let index = this.eduInfoList.findIndex(item => item.id === row.id)
|
|
let index = this.eduInfoList.findIndex(item => item.id === row.id)
|
|
-
|
|
|
|
if (index === -1) {
|
|
if (index === -1) {
|
|
// 不存在就新增
|
|
// 不存在就新增
|
|
this.eduInfoList.push(row)
|
|
this.eduInfoList.push(row)
|
|
@@ -2827,7 +2825,11 @@ export default {
|
|
this.eduInfoList[index].degreeFile = row.degreeFile
|
|
this.eduInfoList[index].degreeFile = row.degreeFile
|
|
this.eduInfoList[index].educationFile = row.educationFile
|
|
this.eduInfoList[index].educationFile = row.educationFile
|
|
}
|
|
}
|
|
|
|
+ if (!this.activeNames[0].includes(id)) {
|
|
|
|
+ this.activeNames[0].push(id);
|
|
|
|
+ }
|
|
this.uploadKey = Date.now().toString();
|
|
this.uploadKey = Date.now().toString();
|
|
|
|
+
|
|
},
|
|
},
|
|
handleGetEduInfo() {
|
|
handleGetEduInfo() {
|
|
enrollmentRegistrationService.findEduInfo({
|
|
enrollmentRegistrationService.findEduInfo({
|
|
@@ -2855,14 +2857,19 @@ export default {
|
|
});
|
|
});
|
|
},
|
|
},
|
|
handleAddWorkInfo(row) {
|
|
handleAddWorkInfo(row) {
|
|
|
|
+ const { id } = row
|
|
let index = this.workInfoList.findIndex(item => item.id === row.id)
|
|
let index = this.workInfoList.findIndex(item => item.id === row.id)
|
|
if (index === -1) {
|
|
if (index === -1) {
|
|
// 不存在就新增
|
|
// 不存在就新增
|
|
this.workInfoList.push(row)
|
|
this.workInfoList.push(row)
|
|
|
|
+ this.activeNames[1].push(row.id)
|
|
} else {
|
|
} else {
|
|
// 存在就更新
|
|
// 存在就更新
|
|
this.workInfoList[index] = row
|
|
this.workInfoList[index] = row
|
|
}
|
|
}
|
|
|
|
+ if (!this.activeNames[1].includes(id)) {
|
|
|
|
+ this.activeNames[1].push(id);
|
|
|
|
+ }
|
|
this.uploadKey = Date.now().toString();
|
|
this.uploadKey = Date.now().toString();
|
|
},
|
|
},
|
|
handleGetWorkInfo() {
|
|
handleGetWorkInfo() {
|
|
@@ -2891,6 +2898,7 @@ export default {
|
|
});
|
|
});
|
|
},
|
|
},
|
|
handleAddTrainingInfo(row) {
|
|
handleAddTrainingInfo(row) {
|
|
|
|
+ const { id } = row;
|
|
let index = this.trainingInfoList.findIndex(item => item.id === row.id)
|
|
let index = this.trainingInfoList.findIndex(item => item.id === row.id)
|
|
if (index === -1) {
|
|
if (index === -1) {
|
|
// 不存在就新增
|
|
// 不存在就新增
|
|
@@ -2899,6 +2907,10 @@ export default {
|
|
// 存在就更新
|
|
// 存在就更新
|
|
this.trainingInfoList[index] = row
|
|
this.trainingInfoList[index] = row
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ if (!this.activeNames[2].includes(id)) {
|
|
|
|
+ this.activeNames[2].push(id);
|
|
|
|
+ }
|
|
this.uploadKey = Date.now().toString();
|
|
this.uploadKey = Date.now().toString();
|
|
},
|
|
},
|
|
handleGetTrainingInfo() {
|
|
handleGetTrainingInfo() {
|
|
@@ -2927,6 +2939,7 @@ export default {
|
|
});
|
|
});
|
|
},
|
|
},
|
|
handleAddCertificateInfo(row) {
|
|
handleAddCertificateInfo(row) {
|
|
|
|
+ const { id } = row
|
|
let index = this.certificateInfoList.findIndex(item => item.id === row.id)
|
|
let index = this.certificateInfoList.findIndex(item => item.id === row.id)
|
|
if (index === -1) {
|
|
if (index === -1) {
|
|
// 不存在就新增
|
|
// 不存在就新增
|
|
@@ -2935,6 +2948,9 @@ export default {
|
|
// 存在就更新
|
|
// 存在就更新
|
|
this.certificateInfoList[index] = row
|
|
this.certificateInfoList[index] = row
|
|
}
|
|
}
|
|
|
|
+ if (!this.activeNames[3].includes(id)) {
|
|
|
|
+ this.activeNames[3].push(id);
|
|
|
|
+ }
|
|
this.uploadKey = Date.now().toString();
|
|
this.uploadKey = Date.now().toString();
|
|
},
|
|
},
|
|
handleGetCertificateInfo() {
|
|
handleGetCertificateInfo() {
|
|
@@ -2963,7 +2979,8 @@ export default {
|
|
});
|
|
});
|
|
},
|
|
},
|
|
handleAddSkillInfo(row) {
|
|
handleAddSkillInfo(row) {
|
|
- let index = this.skillInfoList.findIndex(item => item.id === row.id)
|
|
|
|
|
|
+ const { id } = row
|
|
|
|
+ let index = this.skillInfoList.findIndex(item => item.id === id)
|
|
if (index === -1) {
|
|
if (index === -1) {
|
|
// 不存在就新增
|
|
// 不存在就新增
|
|
this.skillInfoList.push(row)
|
|
this.skillInfoList.push(row)
|
|
@@ -2971,6 +2988,9 @@ export default {
|
|
// 存在就更新
|
|
// 存在就更新
|
|
this.skillInfoList[index] = row
|
|
this.skillInfoList[index] = row
|
|
}
|
|
}
|
|
|
|
+ if (!this.activeNames[4].includes(id)) {
|
|
|
|
+ this.activeNames[4].push(id);
|
|
|
|
+ }
|
|
this.uploadKey = Date.now().toString();
|
|
this.uploadKey = Date.now().toString();
|
|
},
|
|
},
|
|
handleGetSkillInfo() {
|
|
handleGetSkillInfo() {
|
|
@@ -2999,7 +3019,8 @@ export default {
|
|
});
|
|
});
|
|
},
|
|
},
|
|
handleAddLanguageInfo(row) {
|
|
handleAddLanguageInfo(row) {
|
|
- let index = this.languageInfoList.findIndex(item => item.id === row.id)
|
|
|
|
|
|
+ const { id } = row
|
|
|
|
+ let index = this.languageInfoList.findIndex(item => item.id === id)
|
|
if (index === -1) {
|
|
if (index === -1) {
|
|
// 不存在就新增
|
|
// 不存在就新增
|
|
this.languageInfoList.push(row)
|
|
this.languageInfoList.push(row)
|
|
@@ -3007,6 +3028,9 @@ export default {
|
|
// 存在就更新
|
|
// 存在就更新
|
|
this.languageInfoList[index] = row
|
|
this.languageInfoList[index] = row
|
|
}
|
|
}
|
|
|
|
+ if (!this.activeNames[5].includes(id)) {
|
|
|
|
+ this.activeNames[5].push(id);
|
|
|
|
+ }
|
|
this.uploadKey = Date.now().toString();
|
|
this.uploadKey = Date.now().toString();
|
|
},
|
|
},
|
|
handleGetLanguageInfo() {
|
|
handleGetLanguageInfo() {
|
|
@@ -3035,6 +3059,7 @@ export default {
|
|
});
|
|
});
|
|
},
|
|
},
|
|
handleAddFamilyInfo(row) {
|
|
handleAddFamilyInfo(row) {
|
|
|
|
+ const { id } = row
|
|
let index = this.familyInfoList.findIndex(item => item.id === row.id)
|
|
let index = this.familyInfoList.findIndex(item => item.id === row.id)
|
|
if (index === -1) {
|
|
if (index === -1) {
|
|
// 不存在就新增
|
|
// 不存在就新增
|
|
@@ -3043,6 +3068,9 @@ export default {
|
|
// 存在就更新
|
|
// 存在就更新
|
|
this.familyInfoList[index] = row
|
|
this.familyInfoList[index] = row
|
|
}
|
|
}
|
|
|
|
+ if (!this.activeNames[6].includes(id)) {
|
|
|
|
+ this.activeNames[6].push(id);
|
|
|
|
+ }
|
|
this.uploadKey = Date.now().toString();
|
|
this.uploadKey = Date.now().toString();
|
|
},
|
|
},
|
|
handleGetFamilyInfo(row) {
|
|
handleGetFamilyInfo(row) {
|
|
@@ -3071,8 +3099,7 @@ export default {
|
|
});
|
|
});
|
|
},
|
|
},
|
|
handleAddRewardInfo(row) {
|
|
handleAddRewardInfo(row) {
|
|
- console.log(row);
|
|
|
|
-
|
|
|
|
|
|
+ const { id } = row
|
|
let index = this.rewardInfoList.findIndex(item => item.id === row.id)
|
|
let index = this.rewardInfoList.findIndex(item => item.id === row.id)
|
|
if (index === -1) {
|
|
if (index === -1) {
|
|
// 不存在就新增
|
|
// 不存在就新增
|
|
@@ -3081,6 +3108,9 @@ export default {
|
|
// 存在就更新
|
|
// 存在就更新
|
|
this.rewardInfoList[index] = row
|
|
this.rewardInfoList[index] = row
|
|
}
|
|
}
|
|
|
|
+ if (!this.activeNames[7].includes(id)) {
|
|
|
|
+ this.activeNames[7].push(id);
|
|
|
|
+ }
|
|
this.uploadKey = Date.now().toString();
|
|
this.uploadKey = Date.now().toString();
|
|
},
|
|
},
|
|
handleGetRewardInfo() {
|
|
handleGetRewardInfo() {
|