bug
luohairen
2024-10-30 ac9608cb94979d632caa6b6ae2e91a5879824e6f
src/views/exam/paper/edit.vue
@@ -123,13 +123,13 @@
      </el-form-item>
    </el-form>
    <el-dialog :visible.sync="questionPage.showDialog" width="70%">
    <el-dialog :visible.sync="questionPage.showDialog" width="70%" :close-on-click-modal="false">
      <el-form :model="questionPage.queryParam" ref="queryForm" :inline="true">
        <el-form-item label="ID:">
          <el-input v-model="questionPage.queryParam.id" clearable></el-input>
          <el-input v-model="questionPage.queryParam.id" clearable @input="queryForm"></el-input>
        </el-form-item>
        <el-form-item label="学科:">
          <el-select v-model="questionPage.queryParam.subjectIdInt" placeholder="学科">
          <el-select v-model="questionPage.queryParam.subjectIdInt" placeholder="学科" @change="queryForm">
            <el-option v-for="item in subjects" :key="item.id" :label="item.name" :value="item.id"/>
          </el-select>
        </el-form-item>
@@ -415,8 +415,12 @@
    },
    queryForm () {
      this.questionPage.queryParam.pageIndex = 1
      this.questionPage.queryParam.subjectId = [this.questionPage.queryParam.subjectIdInt]
      this.search()
      if (!this.questionPage.queryParam.subjectIdInt){
        this.search()
      }else{
        this.questionPage.queryParam.subjectId = [this.questionPage.queryParam.subjectIdInt]
        this.search()
      }
    },
    confirmQuestionSelect () {
      let _this = this