| | |
| | | </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> |
| | |
| | | }, |
| | | 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 |