|
|
@@ -88,7 +88,7 @@
|
|
|
<div class="detail-item">
|
|
|
<div class="detail-label">工作经验</div>
|
|
|
<div class="detail-value" v-if="!isEditingExperience">
|
|
|
- {{ positionData.experience || '暂无' }}
|
|
|
+ {{ positionData.work_experience_required || '暂无' }}
|
|
|
<el-button type="text" class="edit-title-btn" @click="startEditExperience">
|
|
|
<el-icon><Edit /></el-icon>
|
|
|
</el-button>
|
|
|
@@ -114,7 +114,7 @@
|
|
|
<div class="detail-item">
|
|
|
<div class="detail-label">学历要求</div>
|
|
|
<div class="detail-value" v-if="!isEditingEducation">
|
|
|
- {{ positionData.education || '暂无' }}
|
|
|
+ {{ positionData.education_required || '暂无' }}
|
|
|
<el-button type="text" class="edit-title-btn" @click="startEditEducation">
|
|
|
<el-icon><Edit /></el-icon>
|
|
|
</el-button>
|
|
|
@@ -1310,8 +1310,8 @@ const positionData = reactive({
|
|
|
department: '',
|
|
|
end_date: '',
|
|
|
description: '',
|
|
|
- experience: '',
|
|
|
- education: '',
|
|
|
+ work_experience_required: '',
|
|
|
+ education_required: '',
|
|
|
competency_tags: []
|
|
|
});
|
|
|
|
|
|
@@ -2307,7 +2307,7 @@ const editingExperience = ref('');
|
|
|
|
|
|
// 开始编辑工作经验
|
|
|
const startEditExperience = () => {
|
|
|
- editingExperience.value = positionData.experience || '';
|
|
|
+ editingExperience.value = positionData.work_experience_required || '';
|
|
|
isEditingExperience.value = true;
|
|
|
};
|
|
|
|
|
|
@@ -2322,11 +2322,11 @@ const saveExperience = async () => {
|
|
|
const id = route.query.id;
|
|
|
await api.UpdateObj({
|
|
|
id: id,
|
|
|
- experience: editingExperience.value
|
|
|
+ work_experience_required: editingExperience.value
|
|
|
});
|
|
|
|
|
|
// 更新本地数据
|
|
|
- positionData.experience = editingExperience.value;
|
|
|
+ positionData.work_experience_required = editingExperience.value;
|
|
|
isEditingExperience.value = false;
|
|
|
ElMessage.success('工作经验已更新');
|
|
|
} catch (error) {
|
|
|
@@ -2341,7 +2341,7 @@ const editingEducation = ref('');
|
|
|
|
|
|
// 开始编辑学历要求
|
|
|
const startEditEducation = () => {
|
|
|
- editingEducation.value = positionData.education || '';
|
|
|
+ editingEducation.value = positionData.education_required || '';
|
|
|
isEditingEducation.value = true;
|
|
|
};
|
|
|
|
|
|
@@ -2356,11 +2356,11 @@ const saveEducation = async () => {
|
|
|
const id = route.query.id;
|
|
|
await api.UpdateObj({
|
|
|
id: id,
|
|
|
- education: editingEducation.value
|
|
|
+ education_required: editingEducation.value
|
|
|
});
|
|
|
|
|
|
// 更新本地数据
|
|
|
- positionData.education = editingEducation.value;
|
|
|
+ positionData.education_required = editingEducation.value;
|
|
|
isEditingEducation.value = false;
|
|
|
ElMessage.success('学历要求已更新');
|
|
|
} catch (error) {
|