|
@@ -98,9 +98,29 @@
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column prop="updateTime" width="155" label="更新时间">
|
|
<el-table-column prop="updateTime" width="155" label="更新时间">
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column label="操作" width="100">
|
|
|
|
|
|
+ <el-table-column label="操作" width="200">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<div>
|
|
<div>
|
|
|
|
+ <el-button
|
|
|
|
+ v-if="scope.row.examLimit"
|
|
|
|
+ size="mini"
|
|
|
|
+ type="primary"
|
|
|
|
+ plain
|
|
|
|
+ icon="el-icon-edit"
|
|
|
|
+ @click="updateExamLimit(scope.row)"
|
|
|
|
+ >
|
|
|
|
+ 开考
|
|
|
|
+ </el-button>
|
|
|
|
+ <el-button
|
|
|
|
+ v-else
|
|
|
|
+ size="mini"
|
|
|
|
+ type="primary"
|
|
|
|
+ plain
|
|
|
|
+ icon="el-icon-edit"
|
|
|
|
+ @click="updateExamLimit(scope.row)"
|
|
|
|
+ >
|
|
|
|
+ 禁考
|
|
|
|
+ </el-button>
|
|
<el-button
|
|
<el-button
|
|
size="mini"
|
|
size="mini"
|
|
type="primary"
|
|
type="primary"
|
|
@@ -354,6 +374,13 @@ export default {
|
|
this.loadingOrg4InsertOrUpdate = false;
|
|
this.loadingOrg4InsertOrUpdate = false;
|
|
});
|
|
});
|
|
},
|
|
},
|
|
|
|
+ updateExamLimit(row) {
|
|
|
|
+ row.examLimit = !row.examLimit;
|
|
|
|
+ let url = EXAM_WORK_API + "/exam/examOrgSettings";
|
|
|
|
+ this.$httpWithMsg.post(url, row).then(response => {
|
|
|
|
+ row.updateTime = response.data.updateTime;
|
|
|
|
+ });
|
|
|
|
+ },
|
|
updateOrgSetting() {
|
|
updateOrgSetting() {
|
|
this.orgSetting.beginTime = this.orgSettingDatetimeRange[0];
|
|
this.orgSetting.beginTime = this.orgSettingDatetimeRange[0];
|
|
this.orgSetting.endTime = this.orgSettingDatetimeRange[1];
|
|
this.orgSetting.endTime = this.orgSettingDatetimeRange[1];
|