|
|
@ -293,6 +293,8 @@ import { |
|
|
|
couldUserInfoAdd, |
|
|
|
couldUserInfoAdd, |
|
|
|
couldBookAdd, |
|
|
|
couldBookAdd, |
|
|
|
couldBookUpdate, |
|
|
|
couldBookUpdate, |
|
|
|
|
|
|
|
couldApply, |
|
|
|
|
|
|
|
delBook |
|
|
|
} from '@/api/tester/TesterApply' |
|
|
|
} from '@/api/tester/TesterApply' |
|
|
|
|
|
|
|
|
|
|
|
export default { |
|
|
|
export default { |
|
|
@ -325,7 +327,7 @@ export default { |
|
|
|
], |
|
|
|
], |
|
|
|
}, |
|
|
|
}, |
|
|
|
// 工作经历 |
|
|
|
// 工作经历 |
|
|
|
workList: [{}], |
|
|
|
workList: [], |
|
|
|
workRules: { |
|
|
|
workRules: { |
|
|
|
name: [{ required: true, message: '请输入公司名称', trigger: 'blur' }], |
|
|
|
name: [{ required: true, message: '请输入公司名称', trigger: 'blur' }], |
|
|
|
startTime: [{ required: true, message: '请输入开始时间', trigger: 'blur' }], |
|
|
|
startTime: [{ required: true, message: '请输入开始时间', trigger: 'blur' }], |
|
|
@ -350,7 +352,6 @@ export default { |
|
|
|
userRules: { |
|
|
|
userRules: { |
|
|
|
testSkills: [{ required: true, message: '请输入技能方向', trigger: 'blur' }], |
|
|
|
testSkills: [{ required: true, message: '请输入技能方向', trigger: 'blur' }], |
|
|
|
personalAdvantage: [{ required: true, message: '请输入个人优势', trigger: 'blur' }], |
|
|
|
personalAdvantage: [{ required: true, message: '请输入个人优势', trigger: 'blur' }], |
|
|
|
city: [{ required: true, message: '请选择城市', trigger: 'change' }], |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
province: '北京市', |
|
|
|
province: '北京市', |
|
|
|
city: '北京市', |
|
|
|
city: '北京市', |
|
|
@ -362,7 +363,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' }], |
|
|
|
}, |
|
|
|
}, |
|
|
|
// 教育经历 |
|
|
|
// 教育经历 |
|
|
@ -393,10 +394,18 @@ export default { |
|
|
|
this.getCloudAllList() |
|
|
|
this.getCloudAllList() |
|
|
|
}, |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
methods: { |
|
|
|
|
|
|
|
// 提交审核 |
|
|
|
|
|
|
|
saveInfo() { |
|
|
|
|
|
|
|
if (this.userForm.status == 1) return this.$message.warning('正在审核,请勿重复提交') |
|
|
|
|
|
|
|
if (this.userForm.status == 2) return this.$message.warning('审核已通过,请勿重复提交') |
|
|
|
|
|
|
|
couldApply().then((res) => { |
|
|
|
|
|
|
|
this.$message.success('提交审核成功') |
|
|
|
|
|
|
|
this.getCloudAllList() |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
}, |
|
|
|
// 获取简历信息 |
|
|
|
// 获取简历信息 |
|
|
|
getCloudAllList() { |
|
|
|
getCloudAllList() { |
|
|
|
getCloudAll().then((res) => { |
|
|
|
getCloudAll().then((res) => { |
|
|
|
console.log(res) |
|
|
|
|
|
|
|
// 经历 |
|
|
|
// 经历 |
|
|
|
this.projectList = res.experience.filter((it) => it.type == 0) |
|
|
|
this.projectList = res.experience.filter((it) => it.type == 0) |
|
|
|
if (!this.projectList.length) { |
|
|
|
if (!this.projectList.length) { |
|
|
@ -404,7 +413,7 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
this.workList = res.experience.filter((it) => it.type == 1) |
|
|
|
this.workList = res.experience.filter((it) => it.type == 1) |
|
|
|
if (!this.workList.length) { |
|
|
|
if (!this.workList.length) { |
|
|
|
this.workList = [{}] |
|
|
|
this.workList = [] |
|
|
|
} |
|
|
|
} |
|
|
|
this.educationList = res.experience.filter((it) => it.type == 2) |
|
|
|
this.educationList = res.experience.filter((it) => it.type == 2) |
|
|
|
if (!this.educationList.length) { |
|
|
|
if (!this.educationList.length) { |
|
|
@ -415,6 +424,15 @@ export default { |
|
|
|
this.province = this.userForm.city.split('-')[0] |
|
|
|
this.province = this.userForm.city.split('-')[0] |
|
|
|
this.city = this.userForm.city.split('-')[1] |
|
|
|
this.city = this.userForm.city.split('-')[1] |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 审核状态 1审核通过 2不通过 没有或者0待审核 |
|
|
|
|
|
|
|
if (res.personalInfo.status === 0) { |
|
|
|
|
|
|
|
} else if (res.personalInfo.status === 1) { |
|
|
|
|
|
|
|
this.active = 6 |
|
|
|
|
|
|
|
} else if (res.personalInfo.status === 2) { |
|
|
|
|
|
|
|
this.active = 6 |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// 证书 |
|
|
|
// 证书 |
|
|
|
this.certificateList = res.credentials.map((it) => { |
|
|
|
this.certificateList = res.credentials.map((it) => { |
|
|
|
return { |
|
|
|
return { |
|
|
@ -472,6 +490,7 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
// 返回上一步 |
|
|
|
// 返回上一步 |
|
|
|
back() { |
|
|
|
back() { |
|
|
|
|
|
|
|
if (this.userForm.status == 1 || this.userForm.status == 2) return |
|
|
|
if (this.active == 0) return |
|
|
|
if (this.active == 0) return |
|
|
|
this.active-- |
|
|
|
this.active-- |
|
|
|
}, |
|
|
|
}, |
|
|
@ -486,6 +505,7 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
// 工作经历添加 |
|
|
|
// 工作经历添加 |
|
|
|
addWork() { |
|
|
|
addWork() { |
|
|
|
|
|
|
|
if (this.workList.length >= 10) return this.$message.warning('工作经历最多添加10条') |
|
|
|
this.workList.push({}) |
|
|
|
this.workList.push({}) |
|
|
|
}, |
|
|
|
}, |
|
|
|
// 工作经历保存 |
|
|
|
// 工作经历保存 |
|
|
@ -529,7 +549,6 @@ export default { |
|
|
|
this.getCloudAllList() |
|
|
|
this.getCloudAllList() |
|
|
|
}) |
|
|
|
}) |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
if (this.workList.length == 1) return this.$message.warning('最少有一项') |
|
|
|
|
|
|
|
this.workList.splice(i, 1) |
|
|
|
this.workList.splice(i, 1) |
|
|
|
this.$message({ |
|
|
|
this.$message({ |
|
|
|
type: 'success', |
|
|
|
type: 'success', |
|
|
@ -540,6 +559,7 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
// 项目经历添加 |
|
|
|
// 项目经历添加 |
|
|
|
addProject() { |
|
|
|
addProject() { |
|
|
|
|
|
|
|
if (this.projectList.length >= 20) return this.$message.warning('项目经历最多添加20条') |
|
|
|
this.projectList.push({}) |
|
|
|
this.projectList.push({}) |
|
|
|
}, |
|
|
|
}, |
|
|
|
// 项目经历保存 |
|
|
|
// 项目经历保存 |
|
|
@ -643,8 +663,26 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
// 资格证书删除 |
|
|
|
// 资格证书删除 |
|
|
|
delCertificate(i) { |
|
|
|
delCertificate(i) { |
|
|
|
if (this.certificateList.length == 1) return this.$message.warning('最少有一项') |
|
|
|
this.$confirm('此操作将永久删除, 是否继续?', '提示', { |
|
|
|
this.certificateList.splice(i, 1) |
|
|
|
confirmButtonText: '确定', |
|
|
|
|
|
|
|
cancelButtonText: '取消', |
|
|
|
|
|
|
|
type: 'warning', |
|
|
|
|
|
|
|
}).then(() => { |
|
|
|
|
|
|
|
if (this.certificateList[i].fileId) { |
|
|
|
|
|
|
|
delBook(this.certificateList[i].fileId).then((res) => { |
|
|
|
|
|
|
|
this.$message.success('资格证书删除成功') |
|
|
|
|
|
|
|
this.getCloudAllList() |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
this.certificateList.splice(i, 1) |
|
|
|
|
|
|
|
this.$message({ |
|
|
|
|
|
|
|
type: 'success', |
|
|
|
|
|
|
|
message: '删除成功!', |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
// 教育经历添加 |
|
|
|
// 教育经历添加 |
|
|
|
addEducation() { |
|
|
|
addEducation() { |
|
|
|