Browse Source

选择题判分给分规则默认设置更新

dengshaobo 1 month ago
parent
commit
cdc933a916
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/views/exam/question.vue

+ 3 - 1
src/views/exam/question.vue

@@ -43,7 +43,7 @@
                 <el-input v-model="queryParams.groupName" placeholder="请输入"  class="select_width" ></el-input>
             </div>
             <div class="item_search" v-if="queryParams.questionType == 2" >
-            (给分规则:少选得<el-input v-model="shaoxuan" @input="(val: any) => HandleScoreInput(null,'shaoxuan', val)"  style="width: 50px;" maxlength="4" @change="ScoreYanzheng()"></el-input>分
+            (给分规则:少选得<el-input v-model="shaoxuan"   style="width: 50px;" maxlength="4" @change="ScoreYanzheng()"></el-input>分
             )
             </div>
             <div class="item_search">
@@ -797,6 +797,8 @@ const EnterSetQuestion=()=>{
         questionType: queryParams.value.questionType,
         fullScore: queryParams.value.fullMark,
         groupName: queryParams.value.groupName,
+        multipleRule: queryParams.value.questionType==2?'1':null,
+        multipleRuleDesc: shaoxuan.value,
     };
     setQuestion(params).then((res) => {
         console.log("打印设置题目结果",res)