Browse Source

个人信息调整-新增自动展开详情和提交按钮文字修改

huangguoce 3 weeks ago
parent
commit
a758d772e1

+ 9 - 0
src/views/human/enrollment/registration/EnrollmentRegistrationEditForm.vue

@@ -2431,6 +2431,7 @@ export default {
 				userId: this.inputForm.userId
 				userId: this.inputForm.userId
 			}).then(res => {
 			}).then(res => {
 				this.inputForm.eduInfoList = res
 				this.inputForm.eduInfoList = res
+				this.activeNames[0] = this.inputForm.eduInfoList.map(item => item.id)
 			})
 			})
 		},
 		},
 		// 工作经历处理
 		// 工作经历处理
@@ -2465,6 +2466,7 @@ export default {
 				userId: this.inputForm.userId
 				userId: this.inputForm.userId
 			}).then(res => {
 			}).then(res => {
 				this.inputForm.workInfoList = res
 				this.inputForm.workInfoList = res
+				this.activeNames[1] = this.inputForm.workInfoList.map(item => item.id)
 			})
 			})
 		},
 		},
 		//培训经历处理
 		//培训经历处理
@@ -2499,6 +2501,7 @@ export default {
 				userId: this.inputForm.userId
 				userId: this.inputForm.userId
 			}).then(res => {
 			}).then(res => {
 				this.inputForm.trainingInfoList = res
 				this.inputForm.trainingInfoList = res
+				this.activeNames[2] = this.inputForm.trainingInfoList.map(item => item.id)
 			})
 			})
 		},
 		},
 		//资质证书处理
 		//资质证书处理
@@ -2533,6 +2536,7 @@ export default {
 				userId: this.inputForm.userId
 				userId: this.inputForm.userId
 			}).then(res => {
 			}).then(res => {
 				this.inputForm.certificateInfoList = res
 				this.inputForm.certificateInfoList = res
+				this.activeNames[3] = this.inputForm.certificateInfoList.map(item => item.id)
 			})
 			})
 		},
 		},
 		//专业技能处理
 		//专业技能处理
@@ -2567,6 +2571,7 @@ export default {
 				userId: this.inputForm.userId
 				userId: this.inputForm.userId
 			}).then(res => {
 			}).then(res => {
 				this.inputForm.skillInfoList = res
 				this.inputForm.skillInfoList = res
+				this.activeNames[4] = this.inputForm.skillInfoList.map(item => item.id)
 			})
 			})
 		},
 		},
 		//语言能力处理
 		//语言能力处理
@@ -2601,6 +2606,7 @@ export default {
 				userId: this.inputForm.userId
 				userId: this.inputForm.userId
 			}).then(res => {
 			}).then(res => {
 				this.inputForm.languageInfoList = res
 				this.inputForm.languageInfoList = res
+				this.activeNames[5] = this.inputForm.languageInfoList.map(item => item.id)
 			})
 			})
 		},
 		},
 		//家庭成员处理
 		//家庭成员处理
@@ -2635,6 +2641,7 @@ export default {
 				userId: this.inputForm.userId
 				userId: this.inputForm.userId
 			}).then(res => {
 			}).then(res => {
 				this.inputForm.familyInfoList = res
 				this.inputForm.familyInfoList = res
+				this.activeNames[6] = this.inputForm.familyInfoList.map(item => item.id)
 			})
 			})
 		},
 		},
 		//表彰与奖励处理
 		//表彰与奖励处理
@@ -2669,6 +2676,7 @@ export default {
 				userId: this.inputForm.userId
 				userId: this.inputForm.userId
 			}).then(res => {
 			}).then(res => {
 				this.inputForm.rewardInfoList = res
 				this.inputForm.rewardInfoList = res
+				this.activeNames[7] = this.inputForm.rewardInfoList.map(item => item.id)
 			})
 			})
 		},
 		},
 		//表彰与奖励处理
 		//表彰与奖励处理
@@ -2703,6 +2711,7 @@ export default {
 				userId: this.inputForm.userId
 				userId: this.inputForm.userId
 			}).then(res => {
 			}).then(res => {
 				this.inputForm.laborContractInfoList = res
 				this.inputForm.laborContractInfoList = res
+				this.activeNames[8] = this.inputForm.laborContractInfoList.map(item => item.id)
 			})
 			})
 		},
 		},
 		// 日期格式化
 		// 日期格式化

+ 37 - 7
src/views/sys/user/UserInfo.vue

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

+ 1 - 1
src/views/sys/user/components/CertificateInfo.vue

@@ -76,7 +76,7 @@
 				<span class="dialog-footer">
 				<span class="dialog-footer">
 					<el-button @click="close()" icon="el-icon-circle-close">关闭</el-button>
 					<el-button @click="close()" icon="el-icon-circle-close">关闭</el-button>
 					<el-button v-if="method === 'edit' || method == 'add'" type="primary" icon="el-icon-circle-check"
 					<el-button v-if="method === 'edit' || method == 'add'" type="primary" icon="el-icon-circle-check"
-						@click="doSubmit()">确定</el-button>
+						@click="doSubmit()">暂存</el-button>
 				</span>
 				</span>
 			</template>
 			</template>
 		</el-dialog>
 		</el-dialog>

+ 1 - 1
src/views/sys/user/components/EducationInfo.vue

@@ -142,7 +142,7 @@
 				<span class="dialog-footer">
 				<span class="dialog-footer">
 					<el-button @click="close()" icon="el-icon-circle-close">关闭</el-button>
 					<el-button @click="close()" icon="el-icon-circle-close">关闭</el-button>
 					<el-button v-if="method === 'edit' || method == 'add'" type="primary" icon="el-icon-circle-check"
 					<el-button v-if="method === 'edit' || method == 'add'" type="primary" icon="el-icon-circle-check"
-						@click="doSubmit()">确定</el-button>
+						@click="doSubmit()">暂存</el-button>
 				</span>
 				</span>
 			</template>
 			</template>
 		</el-dialog>
 		</el-dialog>

+ 1 - 1
src/views/sys/user/components/FamilyInfo.vue

@@ -60,7 +60,7 @@
 				<span class="dialog-footer">
 				<span class="dialog-footer">
 					<el-button @click="close()" icon="el-icon-circle-close">关闭</el-button>
 					<el-button @click="close()" icon="el-icon-circle-close">关闭</el-button>
 					<el-button v-if="method === 'edit' || method == 'add'" type="primary" icon="el-icon-circle-check"
 					<el-button v-if="method === 'edit' || method == 'add'" type="primary" icon="el-icon-circle-check"
-						@click="doSubmit()">确定</el-button>
+						@click="doSubmit()">暂存</el-button>
 				</span>
 				</span>
 			</template>
 			</template>
 		</el-dialog>
 		</el-dialog>

+ 1 - 1
src/views/sys/user/components/LanguageInfo.vue

@@ -57,7 +57,7 @@
 				<span class="dialog-footer">
 				<span class="dialog-footer">
 					<el-button @click="close()" icon="el-icon-circle-close">关闭</el-button>
 					<el-button @click="close()" icon="el-icon-circle-close">关闭</el-button>
 					<el-button v-if="method === 'edit' || method == 'add'" type="primary" icon="el-icon-circle-check"
 					<el-button v-if="method === 'edit' || method == 'add'" type="primary" icon="el-icon-circle-check"
-						@click="doSubmit()">确定</el-button>
+						@click="doSubmit()">暂存</el-button>
 				</span>
 				</span>
 			</template>
 			</template>
 		</el-dialog>
 		</el-dialog>

+ 1 - 1
src/views/sys/user/components/RewardInfo.vue

@@ -39,7 +39,7 @@
 				<span class="dialog-footer">
 				<span class="dialog-footer">
 					<el-button @click="close()" icon="el-icon-circle-close">关闭</el-button>
 					<el-button @click="close()" icon="el-icon-circle-close">关闭</el-button>
 					<el-button v-if="method === 'edit' || method == 'add'" type="primary" icon="el-icon-circle-check"
 					<el-button v-if="method === 'edit' || method == 'add'" type="primary" icon="el-icon-circle-check"
-						@click="doSubmit()">确定</el-button>
+						@click="doSubmit()">暂存</el-button>
 				</span>
 				</span>
 			</template>
 			</template>
 		</el-dialog>
 		</el-dialog>

+ 1 - 1
src/views/sys/user/components/SkillInfo.vue

@@ -41,7 +41,7 @@
 				<span class="dialog-footer">
 				<span class="dialog-footer">
 					<el-button @click="close()" icon="el-icon-circle-close">关闭</el-button>
 					<el-button @click="close()" icon="el-icon-circle-close">关闭</el-button>
 					<el-button v-if="method === 'edit' || method == 'add'" type="primary" icon="el-icon-circle-check"
 					<el-button v-if="method === 'edit' || method == 'add'" type="primary" icon="el-icon-circle-check"
-						@click="doSubmit()">确定</el-button>
+						@click="doSubmit()">暂存</el-button>
 				</span>
 				</span>
 			</template>
 			</template>
 		</el-dialog>
 		</el-dialog>

+ 1 - 1
src/views/sys/user/components/TrainingInfo.vue

@@ -37,7 +37,7 @@
 				<span class="dialog-footer">
 				<span class="dialog-footer">
 					<el-button @click="close()" icon="el-icon-circle-close">关闭</el-button>
 					<el-button @click="close()" icon="el-icon-circle-close">关闭</el-button>
 					<el-button v-if="method === 'edit' || method == 'add'" type="primary" icon="el-icon-circle-check"
 					<el-button v-if="method === 'edit' || method == 'add'" type="primary" icon="el-icon-circle-check"
-						@click="doSubmit()">确定</el-button>
+						@click="doSubmit()">暂存</el-button>
 				</span>
 				</span>
 			</template>
 			</template>
 		</el-dialog>
 		</el-dialog>

+ 1 - 1
src/views/sys/user/components/WorkInfo.vue

@@ -56,7 +56,7 @@
 				<span class="dialog-footer">
 				<span class="dialog-footer">
 					<el-button @click="close()" icon="el-icon-circle-close">关闭</el-button>
 					<el-button @click="close()" icon="el-icon-circle-close">关闭</el-button>
 					<el-button v-if="method === 'edit' || method == 'add'" type="primary" icon="el-icon-circle-check"
 					<el-button v-if="method === 'edit' || method == 'add'" type="primary" icon="el-icon-circle-check"
-						@click="doSubmit()">确定</el-button>
+						@click="doSubmit()">暂存</el-button>
 				</span>
 				</span>
 			</template>
 			</template>
 		</el-dialog>
 		</el-dialog>