|
|
@ -469,6 +469,7 @@ export default { |
|
|
|
components: { imageUpload }, |
|
|
|
components: { imageUpload }, |
|
|
|
data() { |
|
|
|
data() { |
|
|
|
return { |
|
|
|
return { |
|
|
|
|
|
|
|
iseditfirst: true, |
|
|
|
active: 0, |
|
|
|
active: 0, |
|
|
|
// 实名认证 |
|
|
|
// 实名认证 |
|
|
|
certifform: {}, |
|
|
|
certifform: {}, |
|
|
@ -529,7 +530,7 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
// 资格证书 |
|
|
|
// 资格证书 |
|
|
|
materialServerAddr: '', |
|
|
|
materialServerAddr: '', |
|
|
|
certificateList: [{}], |
|
|
|
certificateList: [], |
|
|
|
certificateRules: { |
|
|
|
certificateRules: { |
|
|
|
// credentialsName: [{ required: true, message: '请输入证书名称', trigger: 'blur' }], |
|
|
|
// credentialsName: [{ required: true, message: '请输入证书名称', trigger: 'blur' }], |
|
|
|
url: [{ required: true, message: '请上传证书', trigger: 'blur' }], |
|
|
|
url: [{ required: true, message: '请上传证书', trigger: 'blur' }], |
|
|
@ -611,7 +612,7 @@ export default { |
|
|
|
this.active = 6 |
|
|
|
this.active = 6 |
|
|
|
} else if (res.personalInfo.status === 2) { |
|
|
|
} else if (res.personalInfo.status === 2) { |
|
|
|
this.active = 6 |
|
|
|
this.active = 6 |
|
|
|
} else if (res.personalInfo.status === 3) { |
|
|
|
} else if (res.personalInfo.status === 3 && this.iseditfirst) { |
|
|
|
this.active = 6 |
|
|
|
this.active = 6 |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -635,6 +636,45 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
getCloudAllList1() { |
|
|
|
|
|
|
|
getCloudAll(this.userId).then((res) => { |
|
|
|
|
|
|
|
// 经历 |
|
|
|
|
|
|
|
this.projectList = res.experience.filter((it) => it.type == 0) |
|
|
|
|
|
|
|
if (!this.projectList.length) { |
|
|
|
|
|
|
|
this.projectList = [{ type: 0 }] |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
this.workList = res.experience.filter((it) => it.type == 1) |
|
|
|
|
|
|
|
if (!this.workList.length) { |
|
|
|
|
|
|
|
this.workList = [] |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
this.educationList = res.experience.filter((it) => it.type == 2) |
|
|
|
|
|
|
|
if (!this.educationList.length) { |
|
|
|
|
|
|
|
this.educationList = [{ type: 2 }] |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
// 个人简介 |
|
|
|
|
|
|
|
if (res.personalInfo) { |
|
|
|
|
|
|
|
this.userForm.testSkills = res.personalInfo.testSkills |
|
|
|
|
|
|
|
this.userForm.personalAdvantage = res.personalInfo.personalAdvantage |
|
|
|
|
|
|
|
if (res.personalInfo.city) { |
|
|
|
|
|
|
|
this.province = this.userForm.city.split('-')[0] |
|
|
|
|
|
|
|
this.city = this.userForm.city.split('-')[1] |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
this.province = '北京市' |
|
|
|
|
|
|
|
this.city = '北京市' |
|
|
|
|
|
|
|
this.userForm.city = '北京市-北京市' |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 证书 |
|
|
|
|
|
|
|
this.certificateList = res.credentials.map((it) => { |
|
|
|
|
|
|
|
return { |
|
|
|
|
|
|
|
url: this.base + it.filePath, |
|
|
|
|
|
|
|
credentialsName: it.fileName, |
|
|
|
|
|
|
|
fileId: it.fileId, |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
}, |
|
|
|
// 查询用户认证信息 |
|
|
|
// 查询用户认证信息 |
|
|
|
searchApply() { |
|
|
|
searchApply() { |
|
|
|
gettesterId(this.userinform.userId).then((res) => { |
|
|
|
gettesterId(this.userinform.userId).then((res) => { |
|
|
@ -715,13 +755,13 @@ export default { |
|
|
|
if (this.workList[0].caseId) { |
|
|
|
if (this.workList[0].caseId) { |
|
|
|
// 修改 |
|
|
|
// 修改 |
|
|
|
updateLists(this.workList).then((res) => { |
|
|
|
updateLists(this.workList).then((res) => { |
|
|
|
this.getCloudAllList() |
|
|
|
this.getCloudAllList1() |
|
|
|
this.active++ |
|
|
|
this.active++ |
|
|
|
this.$message.success('保存成功') |
|
|
|
this.$message.success('保存成功') |
|
|
|
}) |
|
|
|
}) |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
addLists(this.workList).then((res) => { |
|
|
|
addLists(this.workList).then((res) => { |
|
|
|
this.getCloudAllList() |
|
|
|
this.getCloudAllList1() |
|
|
|
this.active++ |
|
|
|
this.active++ |
|
|
|
this.$message.success('保存成功') |
|
|
|
this.$message.success('保存成功') |
|
|
|
}) |
|
|
|
}) |
|
|
@ -752,13 +792,13 @@ export default { |
|
|
|
if (this.projectList[0].caseId) { |
|
|
|
if (this.projectList[0].caseId) { |
|
|
|
// 修改 |
|
|
|
// 修改 |
|
|
|
updateLists(this.projectList).then((res) => { |
|
|
|
updateLists(this.projectList).then((res) => { |
|
|
|
this.getCloudAllList() |
|
|
|
this.getCloudAllList1() |
|
|
|
this.active++ |
|
|
|
this.active++ |
|
|
|
this.$message.success('保存成功') |
|
|
|
this.$message.success('保存成功') |
|
|
|
}) |
|
|
|
}) |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
addLists(this.projectList).then((res) => { |
|
|
|
addLists(this.projectList).then((res) => { |
|
|
|
this.getCloudAllList() |
|
|
|
this.getCloudAllList1() |
|
|
|
this.active++ |
|
|
|
this.active++ |
|
|
|
this.$message.success('保存成功') |
|
|
|
this.$message.success('保存成功') |
|
|
|
}) |
|
|
|
}) |
|
|
@ -775,7 +815,7 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
couldUserInfoAdd(this.userForm).then((res) => { |
|
|
|
couldUserInfoAdd(this.userForm).then((res) => { |
|
|
|
this.$message.success('保存个人简介成功') |
|
|
|
this.$message.success('保存个人简介成功') |
|
|
|
this.getCloudAllList() |
|
|
|
this.getCloudAllList1() |
|
|
|
this.active++ |
|
|
|
this.active++ |
|
|
|
return |
|
|
|
return |
|
|
|
}) |
|
|
|
}) |
|
|
@ -801,13 +841,13 @@ export default { |
|
|
|
if (this.educationList[0].caseId) { |
|
|
|
if (this.educationList[0].caseId) { |
|
|
|
// 修改 |
|
|
|
// 修改 |
|
|
|
updateLists(this.educationList).then((res) => { |
|
|
|
updateLists(this.educationList).then((res) => { |
|
|
|
this.getCloudAllList() |
|
|
|
this.getCloudAllList1() |
|
|
|
this.active++ |
|
|
|
this.active++ |
|
|
|
this.$message.success('保存成功') |
|
|
|
this.$message.success('保存成功') |
|
|
|
}) |
|
|
|
}) |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
addLists(this.educationList).then((res) => { |
|
|
|
addLists(this.educationList).then((res) => { |
|
|
|
this.getCloudAllList() |
|
|
|
this.getCloudAllList1() |
|
|
|
this.active++ |
|
|
|
this.active++ |
|
|
|
this.$message.success('保存成功') |
|
|
|
this.$message.success('保存成功') |
|
|
|
}) |
|
|
|
}) |
|
|
@ -838,13 +878,13 @@ export default { |
|
|
|
if (this.certificateList[0].fileId) { |
|
|
|
if (this.certificateList[0].fileId) { |
|
|
|
// 修改 |
|
|
|
// 修改 |
|
|
|
couldBookUpdate({ credentialsList: this.certificateList }).then((res) => { |
|
|
|
couldBookUpdate({ credentialsList: this.certificateList }).then((res) => { |
|
|
|
this.getCloudAllList() |
|
|
|
this.getCloudAllList1() |
|
|
|
this.active++ |
|
|
|
this.active++ |
|
|
|
this.$message.success('保存成功') |
|
|
|
this.$message.success('保存成功') |
|
|
|
}) |
|
|
|
}) |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
couldBookAdd({ credentialsList: this.certificateList }).then((res) => { |
|
|
|
couldBookAdd({ credentialsList: this.certificateList }).then((res) => { |
|
|
|
this.getCloudAllList() |
|
|
|
this.getCloudAllList1() |
|
|
|
this.active++ |
|
|
|
this.active++ |
|
|
|
this.$message.success('保存成功') |
|
|
|
this.$message.success('保存成功') |
|
|
|
}) |
|
|
|
}) |
|
|
@ -869,11 +909,21 @@ export default { |
|
|
|
cancelButtonText: '取消', |
|
|
|
cancelButtonText: '取消', |
|
|
|
type: 'warning', |
|
|
|
type: 'warning', |
|
|
|
}).then(() => { |
|
|
|
}).then(() => { |
|
|
|
|
|
|
|
if (this.workList[i].caseId) { |
|
|
|
|
|
|
|
couldInfoDelete(this.workList[i].caseId).then(() => { |
|
|
|
|
|
|
|
this.$message({ |
|
|
|
|
|
|
|
type: 'success', |
|
|
|
|
|
|
|
message: '删除成功!', |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
this.getCloudAllList1() |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
} else { |
|
|
|
this.workList.splice(i, 1) |
|
|
|
this.workList.splice(i, 1) |
|
|
|
this.$message({ |
|
|
|
this.$message({ |
|
|
|
type: 'success', |
|
|
|
type: 'success', |
|
|
|
message: '删除成功!', |
|
|
|
message: '删除成功!', |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
}, |
|
|
|
// 项目经历添加 |
|
|
|
// 项目经历添加 |
|
|
@ -888,12 +938,22 @@ export default { |
|
|
|
cancelButtonText: '取消', |
|
|
|
cancelButtonText: '取消', |
|
|
|
type: 'warning', |
|
|
|
type: 'warning', |
|
|
|
}).then(() => { |
|
|
|
}).then(() => { |
|
|
|
|
|
|
|
if (this.projectList[i].caseId) { |
|
|
|
|
|
|
|
couldInfoDelete(this.projectList[i].caseId).then(() => { |
|
|
|
|
|
|
|
this.$message({ |
|
|
|
|
|
|
|
type: 'success', |
|
|
|
|
|
|
|
message: '删除成功!', |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
this.getCloudAllList1() |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
} else { |
|
|
|
if (this.projectList.length == 1) return this.$message.warning('最少有一项') |
|
|
|
if (this.projectList.length == 1) return this.$message.warning('最少有一项') |
|
|
|
this.projectList.splice(i, 1) |
|
|
|
this.projectList.splice(i, 1) |
|
|
|
this.$message({ |
|
|
|
this.$message({ |
|
|
|
type: 'success', |
|
|
|
type: 'success', |
|
|
|
message: '删除成功!', |
|
|
|
message: '删除成功!', |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
}, |
|
|
|
// 资格证书添加 |
|
|
|
// 资格证书添加 |
|
|
@ -908,11 +968,18 @@ export default { |
|
|
|
cancelButtonText: '取消', |
|
|
|
cancelButtonText: '取消', |
|
|
|
type: 'warning', |
|
|
|
type: 'warning', |
|
|
|
}).then(() => { |
|
|
|
}).then(() => { |
|
|
|
|
|
|
|
if (this.certificateList[i].fileId) { |
|
|
|
|
|
|
|
delBook(this.certificateList[i].fileId).then((res) => { |
|
|
|
|
|
|
|
this.$message.success('资格证书删除成功') |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
this.getCloudAllList1() |
|
|
|
|
|
|
|
} else { |
|
|
|
this.certificateList.splice(i, 1) |
|
|
|
this.certificateList.splice(i, 1) |
|
|
|
this.$message({ |
|
|
|
this.$message({ |
|
|
|
type: 'success', |
|
|
|
type: 'success', |
|
|
|
message: '删除成功!', |
|
|
|
message: '删除成功!', |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
}, |
|
|
|
// 教育经历添加 |
|
|
|
// 教育经历添加 |
|
|
@ -926,12 +993,22 @@ export default { |
|
|
|
cancelButtonText: '取消', |
|
|
|
cancelButtonText: '取消', |
|
|
|
type: 'warning', |
|
|
|
type: 'warning', |
|
|
|
}).then(() => { |
|
|
|
}).then(() => { |
|
|
|
|
|
|
|
if (this.educationList[i].caseId) { |
|
|
|
|
|
|
|
couldInfoDelete(this.educationList[i].caseId).then(() => { |
|
|
|
|
|
|
|
this.$message({ |
|
|
|
|
|
|
|
type: 'success', |
|
|
|
|
|
|
|
message: '删除成功!', |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
this.getCloudAllList1() |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
} else { |
|
|
|
if (this.educationList.length == 1) return this.$message.warning('最少有一项') |
|
|
|
if (this.educationList.length == 1) return this.$message.warning('最少有一项') |
|
|
|
this.educationList.splice(i, 1) |
|
|
|
this.educationList.splice(i, 1) |
|
|
|
this.$message({ |
|
|
|
this.$message({ |
|
|
|
type: 'success', |
|
|
|
type: 'success', |
|
|
|
message: '删除成功!', |
|
|
|
message: '删除成功!', |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
}, |
|
|
|
// 省 |
|
|
|
// 省 |
|
|
|