yangg 1 hete
szülő
commit
ea0882aa37

+ 25 - 8
src/views/position/detail/index.vue

@@ -403,11 +403,12 @@
               <div>{{ step.name }}</div>
               <div class="process-edit-desc">{{ step.description }}</div>
             </div><!--  v-if="step.name=='AI考察'" -->
-            <div class="process-edit-btn">
+            <div class="process-edit-btn" v-if="step.name!='已通过' && step.name!='已淘汰'">
                <el-button 
                 type="info" 
                 size="small" 
                 plain 
+                
                 @click="editProcessStep(step, index)"
               >
                 修改
@@ -1140,7 +1141,7 @@
 
     <!-- 在 template 中添加问题编辑弹框 -->
     <el-dialog
-      title="编辑问题"
+      title="查看问题"
       v-model="showQuestionDialog"
       width="500px"
       :close-on-click-modal="false"
@@ -1158,6 +1159,7 @@
             placeholder="请描述一次你如何在紧迫的时间内完成一个复杂的后端开发任务的经历"
             maxlength="300"
             show-word-limit
+            :disabled="true"
           />
         </div>
 
@@ -1168,6 +1170,7 @@
             placeholder="请选择胜任力标签"
             class="full-width"
             multiple
+            :disabled="true"
           >
             <el-option 
               v-for="tag in competencyTagOptions" 
@@ -1204,6 +1207,7 @@
                 :min="0" 
                 :max="100" 
                 :step="1" 
+                :disabled="true"
                 controls-position="right"
                 @change="(value) => handleWeightChange(index, value)"
               /> %
@@ -1229,6 +1233,7 @@
             v-model="questionForm.type"
             placeholder="开放问题"
             class="full-width"
+            :disabled="true"
             @change="handleQuestionTypeChange"
           >
             <el-option label="开放问题" value="open" />
@@ -1246,6 +1251,7 @@
             v-model="questionForm.position"
             placeholder="请选择适用职位类型"
             class="full-width"
+            :disabled="true"
             multiple
           >
             <el-option 
@@ -1273,12 +1279,14 @@
               <el-input 
                 v-model="option.text" 
                 placeholder="请输入选项内容" 
+                :disabled="true"
                 style="flex: 1; margin-right: 10px;"
               />
               <el-tooltip 
                 content="设置为正确答案" 
                 placement="top" 
                 effect="light"
+                :disabled="true"
               >
                 <div 
                   @click="() => {
@@ -1297,6 +1305,7 @@
                   <template v-if="questionForm.question_form === 1">
                     <!-- 单选题使用单选按钮 -->
                     <el-radio 
+                    :disabled="true"
                       v-model="option.is_correct"
                       :label="true"
                     />
@@ -1304,15 +1313,17 @@
                   <template v-else>
                     <!-- 多选题使用复选框 -->
                     <el-checkbox 
+                    :disabled="true"
                       v-model="option.is_correct"
                     />
                   </template>
                 </div>
               </el-tooltip>
             </div>
-            <div style="display: flex; justify-content: space-between; margin-top: 10px;">
+            <!-- <div style="display: flex; justify-content: space-between; margin-top: 10px;">
               <el-button 
                 type="primary" 
+                :disabled="true"
                 @click="() => {
                   // 确保options数组已初始化
                   if (!questionForm.options) {
@@ -1330,13 +1341,14 @@
               <el-button 
                 v-if="questionForm.options && questionForm.options.length > 2"
                 type="danger" 
+                :disabled="true"
                 @click="() => {
                   questionForm.options.pop();
                 }"
               >
                 删除最后一项
               </el-button>
-            </div>
+            </div> -->
           </div>
           <div class="form-tip">添加选项并设置正确答案,单选题只能有一个正确答案,多选题可以有多个正确答案</div>
         </div>
@@ -1347,6 +1359,7 @@
             v-model="questionForm.category"
             placeholder="请选择题目分类"
             class="full-width"
+            :disabled="true"
           >
             <el-option 
               v-for="cat in categoryOptions" 
@@ -1365,6 +1378,7 @@
             placeholder="请选择标签"
             class="full-width"
             multiple
+            :disabled="true"
           >
             <el-option 
               v-for="tag in tagOptions" 
@@ -1385,12 +1399,14 @@
             controls-position="right"
             placeholder="请输入建议回答时长"
             class="full-width"
+            :disabled="true"
           />
           <div class="form-tip">建议回答题目的时长,单位为秒</div>
         </div>
         <div class="form-item">
           <div class="form-label">评价标准</div>
           <el-input v-model="questionForm.scoring_reference"  type="textarea"
+          :disabled="true"
           rows="4" placeholder="评分标准说明,例如:【团队协作能力】1.优秀:xxxxxx。2.xxxx。3.一般:xxxxx。" class="full-width" />
           <div class="form-tip">评分标准说明,例如:【团队协作能力】1.优秀:xxxxxx。2.xxxx。3.一般:xxxxx。</div>
         </div>
@@ -1399,7 +1415,7 @@
       <template #footer>
         <span class="dialog-footer">
           <el-button @click="cancelAddQuestion">取消</el-button>
-          <el-button type="primary" @click="confirmAddQuestion">确认</el-button>
+         <!--  <el-button type="primary" @click="confirmAddQuestion">确认</el-button> -->
         </span>
       </template>
     </el-dialog>
@@ -2225,7 +2241,7 @@
             rows="3"
             placeholder="请输入环节描述"
             maxlength="200"
-            show-word-limit
+            
           />
           <div class="form-tip">向候选人说明此环节的目的和意义</div>
         </div>
@@ -3920,6 +3936,7 @@ const editQuestion = (index: number) => {
   const question = chatQuestions.value[index];
   console.log(question);
   Object.assign(questionForm, question);
+  console.log(chatQuestions);
   showQuestionDialog.value = true;
   distributeWeightsEvenly()
 };
@@ -4662,10 +4679,10 @@ const editAIVideo = async (step: AIVideoStep) => {
       updateFieldConfig(fieldConfig, response.data.profile_fields_config as ProfileFieldsConfig);
       showDataCollectionDialog.value = true;
       showOptionsMenu.value = false;
-    }else{
+     }/*else{
       showDataCollectionDialog.value = true;
       showOptionsMenu.value = false;
-    }
+    } */
     return;
   }
 

+ 3 - 0
src/views/questionBank/list/components/BlankAnswerEditor.vue

@@ -21,6 +21,9 @@
           v-model="blank.score"
           :min="0"
           :max="100"
+          :step="1"
+          :precision="0"
+          :controls="false"
           style="width: 120px;"
           placeholder="分值"
         />