|
@@ -37,15 +37,15 @@
|
|
|
type="primary"
|
|
|
icon="el-icon-search"
|
|
|
@click="resetPageAndSearch"
|
|
|
- >查询</el-button
|
|
|
- >
|
|
|
+ >查询
|
|
|
+ </el-button>
|
|
|
<el-button
|
|
|
size="small"
|
|
|
type="primary"
|
|
|
icon="el-icon-plus"
|
|
|
@click="showAddOrgSetting"
|
|
|
- >新增</el-button
|
|
|
- >
|
|
|
+ >新增
|
|
|
+ </el-button>
|
|
|
<el-button
|
|
|
size="small"
|
|
|
type="primary"
|
|
@@ -63,8 +63,8 @@
|
|
|
导入
|
|
|
</el-button>
|
|
|
<el-button size="small" type="primary" @click="back"
|
|
|
- >返 回</el-button
|
|
|
- >
|
|
|
+ >返 回
|
|
|
+ </el-button>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
|
|
@@ -95,6 +95,14 @@
|
|
|
@click="batchDelete"
|
|
|
>删除
|
|
|
</el-button>
|
|
|
+ <el-button
|
|
|
+ size="small"
|
|
|
+ type="danger"
|
|
|
+ icon="el-icon-delete"
|
|
|
+ :disabled="total == 0"
|
|
|
+ @click="deleteAll"
|
|
|
+ >删除所有
|
|
|
+ </el-button>
|
|
|
|
|
|
<div style="width: 100%;margin-bottom: 10px;"></div>
|
|
|
|
|
@@ -265,11 +273,11 @@
|
|
|
<el-row>
|
|
|
<div style="text-align:center;">
|
|
|
<el-button type="primary" @click="addOrgSetting"
|
|
|
- >确 定</el-button
|
|
|
- >
|
|
|
+ >确 定
|
|
|
+ </el-button>
|
|
|
<el-button @click="addOrgSettingDialog = false"
|
|
|
- >取 消</el-button
|
|
|
- >
|
|
|
+ >取 消
|
|
|
+ </el-button>
|
|
|
</div>
|
|
|
</el-row>
|
|
|
</el-form>
|
|
@@ -340,11 +348,11 @@
|
|
|
<el-row>
|
|
|
<div style="margin-left:30%">
|
|
|
<el-button type="primary" @click="updateOrgSetting"
|
|
|
- >确 定</el-button
|
|
|
- >
|
|
|
+ >确 定
|
|
|
+ </el-button>
|
|
|
<el-button @click="updateOrgSettingDialog = false"
|
|
|
- >取 消</el-button
|
|
|
- >
|
|
|
+ >取 消
|
|
|
+ </el-button>
|
|
|
</div>
|
|
|
</el-row>
|
|
|
</el-form>
|
|
@@ -377,8 +385,8 @@
|
|
|
slot="trigger"
|
|
|
type="primary"
|
|
|
icon="el-icon-search"
|
|
|
- >选择文件</el-button
|
|
|
- >
|
|
|
+ >选择文件
|
|
|
+ </el-button>
|
|
|
<el-button
|
|
|
size="small"
|
|
|
style="margin-left:10px;"
|
|
@@ -541,6 +549,24 @@ export default {
|
|
|
});
|
|
|
});
|
|
|
},
|
|
|
+ deleteAll() {
|
|
|
+ this.$confirm("删除所有学习中心特殊设置?", "提示", {
|
|
|
+ confirmButtonText: "确定",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ type: "warning"
|
|
|
+ }).then(() => {
|
|
|
+ let url =
|
|
|
+ EXAM_WORK_API + "/exam/deleteAllExamOrgSettings/" + this.examId;
|
|
|
+ this.$httpWithMsg.put(url).then(response => {
|
|
|
+ console.log(response);
|
|
|
+ this.$notify({
|
|
|
+ type: "success",
|
|
|
+ message: "删除成功"
|
|
|
+ });
|
|
|
+ this.search();
|
|
|
+ });
|
|
|
+ });
|
|
|
+ },
|
|
|
selectChange(row) {
|
|
|
this.selectedOrgSettings = [];
|
|
|
row.forEach((element, index) => {
|