|
@@ -3141,7 +3141,7 @@ const deleteProcessStep = (step: any,index: number) => {
|
|
|
if(step.type=='common_sense'){ // 处理综合素质考察删除
|
|
|
UpdateConfig({
|
|
|
id: getConfigId.value,
|
|
|
- enable_single_choice: false, // 删除综合素质考察时,将enable_scoring_questions设置为false
|
|
|
+ enable_single_choice: false, // 删除综合素质考察时,将enable_scoring_questions设置为
|
|
|
enable_multiple_choice: false,
|
|
|
enable_image_choice: false,
|
|
|
enable_fill_blank:false,
|
|
@@ -3153,6 +3153,18 @@ const deleteProcessStep = (step: any,index: number) => {
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
+ if(step.type=='resume_collection'){
|
|
|
+ UpdateConfig({
|
|
|
+ id: getConfigId.value,
|
|
|
+ require_resume_upload: false // 删除综合素质考察时,将enable_scoring_questions设置为false
|
|
|
+ }).then((res:any) => {
|
|
|
+ if(res.code == 2000) {
|
|
|
+ ElMessage.success('删除成功');
|
|
|
+ } else {
|
|
|
+ ElMessage.error('删除失败');
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
recruitmentProcess.splice(index, 1);
|
|
|
};
|
|
|
|
|
@@ -3214,7 +3226,7 @@ const getJobTypeText = (type: number) => {
|
|
|
const showStepOptions = (index: number, event: MouseEvent) => {
|
|
|
currentAddIndex.value = index;
|
|
|
showOptionsMenu.value = true;
|
|
|
-
|
|
|
+ console.log(index,event)
|
|
|
// 计算菜单位置 - 获取按钮元素
|
|
|
const button = event.currentTarget as HTMLElement;
|
|
|
// 获取对话框元素,作为相对定位的参考
|
|
@@ -3302,6 +3314,20 @@ const addSelectedStepType = async (type: string, label: string) => {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
+ if(type=='resume_collection'){
|
|
|
+ UpdateConfig({
|
|
|
+ id: getConfigId.value,
|
|
|
+ require_resume_upload: true // 删除综合素质考察时,将enable_scoring_questions设置为false
|
|
|
+ }).then((res:any) => {
|
|
|
+ if(res.code == 2000) {
|
|
|
+ recruitmentProcess[0].visible = true;
|
|
|
+ ElMessage.success('新增成功');
|
|
|
+ } else {
|
|
|
+ ElMessage.error('删除失败');
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
const existingStep = recruitmentProcess.find(step => {
|
|
|
if (step.type && step.type === type) {
|
|
|
return true;
|
|
@@ -3313,7 +3339,7 @@ const addSelectedStepType = async (type: string, label: string) => {
|
|
|
});
|
|
|
|
|
|
if (existingStep) {
|
|
|
- ElMessage.warning(`"${label}"步骤已存在,不能重复添加`);
|
|
|
+ /* ElMessage.warning(`"${label}"步骤已存在,不能重复添加`); */
|
|
|
showOptionsMenu.value = false;
|
|
|
return;
|
|
|
}
|
|
@@ -4049,6 +4075,7 @@ const initializeConfigState = async () => {
|
|
|
|
|
|
|
|
|
// 可以在这里添加其他配置状态的同步
|
|
|
+ recruitmentProcess[0].visible = config.data.require_resume_upload;
|
|
|
}
|
|
|
}
|
|
|
} catch (error) {
|