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();//获取试卷列表
}