mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-11 03:46:44 +08:00
Merge branch 'exam' of https://codeup.aliyun.com/6265f483e4166464dc2f9c14/boeu/portal into exam
This commit is contained in:
@@ -63,6 +63,10 @@
|
|||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<!-- v-if="scope.row.collectNumber === 0" -->
|
<!-- v-if="scope.row.collectNumber === 0" -->
|
||||||
<el-button type="text" v-if="!scope.row.published" @click="releaseData(scope.row,true)">发布</el-button>
|
<el-button type="text" v-if="!scope.row.published" @click="releaseData(scope.row,true)">发布</el-button>
|
||||||
|
<el-button type="text" v-if="scope.row.enabled == false" @click="enableddata(scope.row,true)">上架</el-button>
|
||||||
|
<el-button type="text" v-if="scope.row.enabled == true" @click="enableddata(scope.row,false)">下架</el-button>
|
||||||
|
|
||||||
|
|
||||||
<!-- // 成绩控制需要结束状态 -->
|
<!-- // 成绩控制需要结束状态 -->
|
||||||
<el-button type="text" v-if="scope.row.published" @click="viewResults(scope.row)">成绩</el-button>
|
<el-button type="text" v-if="scope.row.published" @click="viewResults(scope.row)">成绩</el-button>
|
||||||
<el-button type="text" v-if="scope.row.published" @click="pushResults(scope.row)">推送</el-button>
|
<el-button type="text" v-if="scope.row.published" @click="pushResults(scope.row)">推送</el-button>
|
||||||
@@ -218,9 +222,10 @@
|
|||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
<el-form-item label="试题排列">
|
<el-form-item label="试题排列">
|
||||||
<el-radio-group v-model="examForm.arrange">
|
<el-radio-group v-model="examForm.arrange">
|
||||||
<el-radio :label="1">试题乱序</el-radio>
|
<el-radio :label="1" style="margin-right: 15px">试题乱序</el-radio>
|
||||||
<el-radio :label="2">选项乱序</el-radio>
|
<el-radio :label="2" style="margin-right: 15px">选项乱序</el-radio>
|
||||||
<el-radio :label="3">全部乱序</el-radio>
|
<el-radio :label="3" style="margin-right: 15px">全部乱序</el-radio>
|
||||||
|
<el-radio :label="4" style="margin-right: 15px">不乱序</el-radio>
|
||||||
</el-radio-group>
|
</el-radio-group>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
@@ -1040,6 +1045,20 @@ export default {
|
|||||||
})
|
})
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
enableddata(row,num){
|
||||||
|
console.log(row,num)
|
||||||
|
let query = {
|
||||||
|
id:row.id,
|
||||||
|
enabled:num
|
||||||
|
}
|
||||||
|
console.log(query)
|
||||||
|
apiTest.enabled(query).then(res =>{
|
||||||
|
if(res.status == 200){
|
||||||
|
|
||||||
|
}
|
||||||
|
})
|
||||||
|
this.loadData();
|
||||||
|
},
|
||||||
releaseData(row,num) {
|
releaseData(row,num) {
|
||||||
let publish = num;
|
let publish = num;
|
||||||
this.$confirm(`正在${publish? '':'取消'}发布考试, 是否继续?`, '提示', {
|
this.$confirm(`正在${publish? '':'取消'}发布考试, 是否继续?`, '提示', {
|
||||||
|
|||||||
Reference in New Issue
Block a user