diff --git a/src/views/report/talent/Index.vue b/src/views/report/talent/Index.vue index c982b59cdbd372339b2d6a1532367eab6076986b..cff512bc5d8f3699d8631aed331e3840651e2a79 100644 --- a/src/views/report/talent/Index.vue +++ b/src/views/report/talent/Index.vue @@ -165,6 +165,17 @@ export default { this.visibleView = false } }, + recordClick (record, type) { + if (type === 'view') { + this.id = record.id + this.visibleView = true + } else if (type === 'edit') { + this.id = record.id + this.visibleEdit = true + } else if (type === 'delete') { + + } + }, exportData() { } diff --git a/src/views/report/talent/components/talentEdit.vue b/src/views/report/talent/components/talentEdit.vue index dd663d8c56f98761a900619713687d6e815c747c..680314a9063d49c56712af99aa7a9e7313668c37 100644 --- a/src/views/report/talent/components/talentEdit.vue +++ b/src/views/report/talent/components/talentEdit.vue @@ -340,6 +340,13 @@ </a-row> </div> <div v-if="stepsArray[1].showStatus"> + <a-row> + <a-col :span="24" style="border-top: 0px;text-align: center;"> + <div class="main-title"> + <span>申报人简历</span> + </div> + </a-col> + </a-row> </div> <div v-if="stepsArray[2].showStatus"> </div> @@ -472,6 +479,15 @@ export default { getTalentApplyById() { this.$api.talent.getTalentApplyById({ id: this.value }).then(({ data = {} }) => { if (data) { + console.log(data) + // 处理字符串转数组 + if (typeof data.talentType === 'string' && data.talentType) { + data.talentType = data.talentType.split(',') + } + if (typeof data.graduateTeacher === 'string' && data.graduateTeacher) { + data.graduateTeacher = data.graduateTeacher.split(',') + } + this.formData = data this.$emit('onStepChange', { step: 0, state: data.completeStatus }) this.loadList()