| | |
| | | </el-form-item> |
| | | <el-form-item label="课目:" > |
| | | <el-select v-model="queryParam.subjectId" clearable> |
| | | <el-option v-for="item in subjectFilter" :key="item.id" :value="item.id" :label="item.name+' ( '+item.levelName+' )'"></el-option> |
| | | <el-option v-for="item in subjectFilter" :key="item.id" :value="item.id" :label="item.name+' '"></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item> |
| | |
| | | created () { |
| | | this.initSubject() |
| | | this.search() |
| | | this.queryParam.subjectId = null |
| | | this.subjectFilter = this.subjects |
| | | }, |
| | | methods: { |
| | | submitForm () { |
| | |
| | | }, |
| | | levelChange () { |
| | | this.queryParam.subjectId = null |
| | | this.subjectFilter = this.subjects.filter(data => data.level === this.queryParam.level) |
| | | this.subjectFilter = this.subjects |
| | | }, |
| | | subjectFormatter (row, column, cellValue, index) { |
| | | console.log(row, column, cellValue, index) |
| | | return this.subjectEnumFormat(cellValue) |
| | | }, |
| | | ...mapActions('exam', { initSubject: 'initSubject' }) |