| | |
| | | <template> |
| | | <div class="app-container"> |
| | | <div style="display: flex"> |
| | | <div> |
| | | <span style="font-size: 14px;margin-right:10px">题库名称:</span> |
| | | <el-input v-model="queryParams.name" style="width: 200px" placeholder="请输入题库名称" clearable></el-input> |
| | | <span style="font-size: 14px;margin: 0 20px">平台:</span> |
| | | <el-select v-model="queryParams.institutionId" placeholder="请选择平台" clearable> |
| | | <el-option |
| | | v-for="item in platformList" |
| | | :key="item.id" |
| | | :label="item.institutionalName" |
| | | :value="item.id"> |
| | | </el-option> |
| | | </el-select> |
| | | <el-button |
| | | size="small" |
| | | type="primary" |
| | | style="margin-bottom: 10px;margin-left: 20px" |
| | | @click="handleQuery()" |
| | | >查询</el-button> |
| | | <el-button |
| | | plain |
| | | size="small" |
| | | type="primary" |
| | | style="margin-bottom: 10px" |
| | | @click="resetQuery()" |
| | | >重置</el-button> |
| | | </div> |
| | | </div> |
| | | <el-table v-loading="loading" :data="dataList"> |
| | | <el-table-column label="序号" align="center" type="index" width="80" /> |
| | | <el-table-column label="更新时间" align="center" prop="updateTime" /> |
| | |
| | | |
| | | <script> |
| | | |
| | | import { delPlat } from '@/api/onlineEducation/plat' |
| | | import { delPlat, listPlatSelect } from '@/api/onlineEducation/plat' |
| | | import { getQuestion } from '@/api/onlineEducation/question' |
| | | |
| | | export default { |
| | |
| | | expertTypes: [], |
| | | dataList: [], |
| | | queryParams: { |
| | | name: '', |
| | | institutionId: null, |
| | | pageNum: 1, |
| | | pageSize: 10, |
| | | }, |
| | | platformList: [], |
| | | btnLoading:false, |
| | | showDialog:false, |
| | | chooseItem: {} |
| | | }; |
| | | }, |
| | | created() { |
| | | this.getPlat(); |
| | | this.getList(); |
| | | }, |
| | | methods: { |
| | |
| | | } |
| | | }) |
| | | }, |
| | | getPlat() { |
| | | listPlatSelect().then((res) => { |
| | | if (res.code == 200) { |
| | | this.platformList = res.data |
| | | } |
| | | }) |
| | | |
| | | }, |
| | | handleChange(){ |
| | | |
| | | }, |
| | | handleQuery(){ |
| | | |
| | | this.getList(); |
| | | }, |
| | | resetQuery(){ |
| | | |
| | | this.queryParams = { |
| | | pageNum: 1, |
| | | pageSize: 10, |
| | | institutionId: '', |
| | | name: '' |
| | | } |
| | | this.getList(); |
| | | }, |
| | | groupExam(row){ |
| | | this.$confirm('确认立即组卷该题库?', '提示', { |