xiangpei
2024-05-27 f034175e69ab511c253e47b6a3882af4ba329e6d
路由名字调整、导出题目增加loading
2个文件已修改
9 ■■■■■ 已修改文件
src/router.js 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/exam/question/list.vue 5 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/router.js
@@ -494,13 +494,13 @@
        path: 'departmentExamine/list',
        component: () => import('@/views/user/departmentExamine/list'),
        name: 'departmentExamineList',
        meta: { title: '调动审核', noCache: true }
        meta: { title: '调动提审记录', noCache: true }
      },
      {
        path: 'UserConditionExamine/list',
        component: () => import('@/views/user/UserConditionExamine/list'),
        name: 'UserConditionExamineList',
        meta: { title: '状态审核', noCache: true }
        meta: { title: '状态提审记录', noCache: true }
      },
    ]
  },
src/views/exam/question/list.vue
@@ -39,7 +39,7 @@
              </el-select>
            </el-form-item>
            <el-form-item>
              <el-button type="primary" @click="exportQuestion">导出</el-button>
              <el-button type="primary" @click="exportQuestion" v-loading="exportLoading">导出</el-button>
            </el-form-item>
          </el-form>
          <el-button slot="reference" class="op-item" type="success">导出</el-button>
@@ -96,6 +96,7 @@
  components: { Pagination, QuestionShow },
  data () {
    return {
      exportLoading: false,
      subjectIdList: [],
      timeRange: [],
      exportForm: {
@@ -134,8 +135,10 @@
  methods: {
    // 导出题目
    exportQuestion () {
      this.exportLoading = true
      questionApi.exportQuestion(this.exportForm).then(res => {
        downloadExcel(res, '题目导出')
        this.exportLoading = false
      })
    },
    // 下载导入模板