|
@@ -360,7 +360,7 @@
|
|
|
:class="{ 'disabled': !step.active }"
|
|
|
v-show="step.visible"
|
|
|
>
|
|
|
- <div class="step-number">{{ index + 1 }}</div>
|
|
|
+ <div class="step-number">{{ getVisibleStepNumber(index) }}</div>
|
|
|
<div class="step-content">
|
|
|
<div class="step-title">{{ step.name }}</div>
|
|
|
<!-- <div class="step-desc">{{ step.description }}</div> -->
|
|
@@ -398,7 +398,7 @@
|
|
|
class="process-edit-item"
|
|
|
:class="{ 'highlight': step.active }"
|
|
|
>
|
|
|
- <div class="process-number">{{ index + 1 }}</div>
|
|
|
+ <div class="process-number">{{ getVisibleStepNumber(index) }}</div>
|
|
|
<div class="process-edit-content">
|
|
|
<div>{{ step.name }}</div>
|
|
|
<div class="process-edit-desc">{{ step.description }}</div>
|
|
@@ -2438,6 +2438,15 @@ const positionId = ref(route.query.id as string);
|
|
|
const positionStatus = ref(false);
|
|
|
const drag = ref(false); // 添加拖拽状态变量
|
|
|
|
|
|
+// 计算可见步骤的序号
|
|
|
+const getVisibleStepNumber = (index: number) => {
|
|
|
+ // 计算在当前索引之前有多少个可见的步骤
|
|
|
+ return recruitmentProcess
|
|
|
+ .slice(0, index + 1)
|
|
|
+ .filter(step => step.visible)
|
|
|
+ .length;
|
|
|
+};
|
|
|
+
|
|
|
// 职位数据
|
|
|
const positionData = reactive({
|
|
|
title: '',
|
|
@@ -2496,15 +2505,15 @@ const showProcessDialog = ref(false);
|
|
|
|
|
|
// 定义可选的流程步骤类型
|
|
|
const processStepOptions = [
|
|
|
- { label: 'AI考察', value: 'ai_video' },
|
|
|
{ label: '视频宣讲', value: 'video_presentation' },
|
|
|
- { label: '肢体检测', value: 'body_detection' }, // 新增肢体检测选项
|
|
|
- /* { label: 'AI实时对话', value: 'ai_chat' },*/
|
|
|
- { label: '资料收集', value: 'data_collection' },
|
|
|
{ label: '简历收集', value: 'resume_collection' },
|
|
|
- { label: '候选人提问', value: 'candidate_questions' },
|
|
|
- { label: '心理问题', value: 'psychological_problem' },
|
|
|
+ { label: '资料收集', value: 'data_collection' },
|
|
|
+ { label: 'AI考察', value: 'ai_video' },
|
|
|
{ label: '综合素质考察', value: 'common_sense' },
|
|
|
+ { label: '心理问题', value: 'psychological_problem' },
|
|
|
+ { label: '候选人提问', value: 'candidate_questions' },
|
|
|
+ { label: '肢体检测', value: 'body_detection' }, // 新增肢体检测选项
|
|
|
+ /* { label: 'AI实时对话', value: 'ai_chat' },*/
|
|
|
/* { label: '代码测试', value: 'code_test' },
|
|
|
{ label: '打字测试', value: 'typing_test' } */
|
|
|
];
|