zhouwx
2024-10-21 c36b440848d5d78f29c583080e0b86a51488917c
修改
已修改1个文件
52 ■■■■■ 文件已修改
src/views/onlineEducation/questionManage/index.vue 52 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/onlineEducation/questionManage/index.vue
@@ -1,5 +1,33 @@
<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" />
@@ -50,7 +78,7 @@
<script>
import { delPlat } from '@/api/onlineEducation/plat'
import { delPlat, listPlatSelect } from '@/api/onlineEducation/plat'
import { getQuestion } from '@/api/onlineEducation/question'
export default {
@@ -68,15 +96,19 @@
      expertTypes: [],
      dataList: [],
      queryParams: {
        name: '',
        institutionId: null,
        pageNum: 1,
        pageSize: 10,
      },
      platformList: [],
      btnLoading:false,
      showDialog:false,
      chooseItem: {}
    };
  },
  created() {
    this.getPlat();
    this.getList();
  },
  methods: {
@@ -95,14 +127,28 @@
        }
      })
    },
    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('确认立即组卷该题库?', '提示', {