From 0c0cad7e3063e7859cd266446f2ef1998bb2a0de Mon Sep 17 00:00:00 2001 From: lmj <3407000732@qq.com> Date: Fri, 23 Dec 2022 16:43:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=80=83=E8=AF=95=E7=AE=A1?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/exam/ExamList.vue | 46 +++++++++++++++++++++++++++++-------- 1 file changed, 36 insertions(+), 10 deletions(-) diff --git a/src/views/exam/ExamList.vue b/src/views/exam/ExamList.vue index ad63dc95..7a38af7d 100644 --- a/src/views/exam/ExamList.vue +++ b/src/views/exam/ExamList.vue @@ -63,21 +63,26 @@ @@ -112,18 +117,19 @@ --> - + - + + - + - @@ -157,7 +163,7 @@ - + --> - + 测试模式 练习模式 @@ -680,6 +686,7 @@ export default { }, data() { return { + swichpublished:false, toScoreTow, qnum:0,//这里默认是30吧 examDateTime:[], @@ -762,6 +769,24 @@ export default { this.loadData() }, methods: { + open(row,num) { + this.$confirm('确定要下架改考试么?', '提示', { + confirmButtonText: '确定', + cancelButtonText: '取消', + type: 'warning' + }).then(() => { + this.enableddata(row,num); + this.$message({ + type: 'success', + message: '下架成功!' + }); + }).catch(() => { + this.$message({ + type: 'info', + message: '已取消下架' + }); + }); + }, exportsList(){ if(this.answerData.data.length == 0){ return this.$message.warning('暂无导出数据!') @@ -993,6 +1018,7 @@ export default { } }, editData(row) { + this.swichpublished = row.published; if(this.questDirOptions.length==0){ this.findPapers();//获取试卷列表 }