From 9b0cdc49f16ff49e050ed161da9a8ce9207da97f Mon Sep 17 00:00:00 2001
From: zhouwx <1175765986@qq.com>
Date: Sat, 12 Oct 2024 13:28:10 +0800
Subject: [PATCH] 修改
---
src/views/onlineEducation/questionManage/index.vue | 115 +++++++++++++++++++++++++++++++++++----------------------
1 files changed, 71 insertions(+), 44 deletions(-)
diff --git a/src/views/onlineEducation/questionManage/index.vue b/src/views/onlineEducation/questionManage/index.vue
index 33e35a8..8ff1ee9 100644
--- a/src/views/onlineEducation/questionManage/index.vue
+++ b/src/views/onlineEducation/questionManage/index.vue
@@ -1,36 +1,51 @@
<template>
<div class="app-container">
- <el-table v-loading="loading" :data="expertList">
- <el-table-column label="月份" align="center" prop="month" />
- <el-table-column label="平台名称" align="center" prop="name" />
- <el-table-column label="上月题库总题目数" align="center" prop="totalNum" />
- <el-table-column label="新增题目数量" align="center" prop="addQuestionNum" />
- <el-table-column label="减少题目数" align="center" prop="reduceQuestionNum" />
- <el-table-column label="刷题应用率" align="center" prop="brushQuestionsRate" />
- <el-table-column label="组卷应用率" align="center" prop="testPaperRate" />
- <el-table-column label="上报时间" align="center" prop="time" />
- <el-table-column label="组卷预览" align="center" class-name="small-padding fixed-width">
+ <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" />
+ <el-table-column label="平台名称" align="center" prop="institutionName" />
+ <el-table-column label="题库名称" align="center" prop="subjectName" />
+ <el-table-column label="题目数量" align="center" prop="subjectCount" />
+ <el-table-column label="类型" align="center" prop="type" >
+ <template #default="scope">
+ {{scope.row.type == 1 ? '单选' : scope.row.type == 2 ?'多选' :scope.row.type == 3 ? '判断':scope.row.type == 4 ? '简答':scope.row.type == 5 ? '混合' : '其他'}}
+ </template>
+ </el-table-column>
+ <el-table-column label="模拟考核组卷" align="center" class-name="small-padding fixed-width">
<template #default="scope">
<el-button
- size="mini"
- type="text"
- style="color: #1890ff"
- @click="handleView(scope.row)"
- >点击预览</el-button>
+ :loading="btnLoading"
+ type="primary"
+ @click="groupExam(scope.row)"
+ >立即组卷</el-button>
</template>
</el-table-column>
</el-table>
<pagination
v-show="total>0"
:total="total"
- :page.sync="queryParams.pageIndex"
+ :page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize"
@pagination="getList"
/>
+ <el-dialog
+ :visible.sync="showDialog"
+ width="500px"
+ :before-close="handleClose">
+ <div style="font-size: 16px">
+ <div>已向 <span class="titleText">{{chooseItem.institutionName}}</span> 发送基于题库 <span class="titleText">{{chooseItem.subjectName}}</span> 的组卷要求,学员可登录平台进行模拟考试。</div>
+ </div>
+ <span slot="footer" class="dialog-footer">
+ <el-button type="primary" @click="handleClose">确 定</el-button>
+ </span>
+ </el-dialog>
</div>
</template>
<script>
+
+import { delPlat } from '@/api/onlineEducation/plat'
+
export default {
name: "nPeopleManage",
dicts: [],
@@ -44,11 +59,14 @@
addForm: false,
total: 0,
expertTypes: [],
- expertList: [],
+ dataList: [],
queryParams: {
- pageIndex: 1,
- pageSize: 10
+ pageNum: 1,
+ pageSize: 10,
},
+ btnLoading:false,
+ showDialog:false,
+ chooseItem: {}
};
},
created() {
@@ -57,34 +75,17 @@
methods: {
getList(){
this.loading = true;
- this.expertList = [
+ this.dataList = [
{
id: 1,
- month: '2024年6月',
- name: '测试数据1',
- totalNum: 120,
- addQuestionNum: 20,
- reduceQuestionNum: 10,
- brushQuestionsRate: '80%',
- testPaperRate: '75%',
- time: '2024-6-11 10:32:00 '
-
- },
- {
- id: 2,
- month: '2024年6月',
- name: '测试数据2',
- totalNum: 100,
- addQuestionNum: 10,
- reduceQuestionNum: 15,
- brushQuestionsRate: '90%',
- testPaperRate: '85%',
- time: '2024-6-11 10:32:00 '
+ updateTime: '2024-08-10 10:30:30',
+ institutionName: '链工宝学习平台',
+ subjectName: '高压电工作业',
+ subjectCount: 50,
+ type: 1
}
]
- this.total = 2
this.loading = false;
-
},
handleChange(){
@@ -95,9 +96,35 @@
resetQuery(){
},
- handleView(){
-
+ groupExam(row){
+ this.$confirm('确认立即组卷该题库?', '提示', {
+ confirmButtonText: '确定',
+ cancelButtonText: '取消',
+ type: 'warning'
+ }).then(() => {
+ this.btnLoading = true
+ setTimeout(() => {
+ this.chooseItem = row
+ console.log('row',row)
+ this.showDialog = true
+ this.btnLoading = false
+ }, 2000);
+ })
+ },
+ handleClose() {
+ this.showDialog = false
}
}
};
</script>
+<style lang="scss" scoped>
+.titleText{
+ font-size: 16px;
+ font-weight: 600;
+ color: #1890ff;
+}
+.dialog-footer{
+ display: flex;
+ justify-content: center;
+}
+</style>
--
Gitblit v1.9.2