|
@@ -91,12 +91,20 @@
|
|
|
<el-table-column label="考试ID" width="120">
|
|
|
<template slot-scope="scope">
|
|
|
<el-button
|
|
|
- v-show="currentPagePrivileges.SNAPSHOT_DETAILS"
|
|
|
+ v-show="
|
|
|
+ scope.row.examType == 'ONLINE' &&
|
|
|
+ currentPagePrivileges.SNAPSHOT_DETAILS
|
|
|
+ "
|
|
|
@click="gotoCaptureDetail(scope.row.dataId)"
|
|
|
type="text"
|
|
|
>{{ scope.row.dataId }}
|
|
|
</el-button>
|
|
|
- <span v-show="!currentPagePrivileges.SNAPSHOT_DETAILS">
|
|
|
+ <span
|
|
|
+ v-show="
|
|
|
+ scope.row.examType != 'ONLINE' ||
|
|
|
+ !currentPagePrivileges.SNAPSHOT_DETAILS
|
|
|
+ "
|
|
|
+ >
|
|
|
{{ scope.row.dataId }}
|
|
|
</span>
|
|
|
</template>
|
|
@@ -315,7 +323,11 @@
|
|
|
>
|
|
|
</el-pagination></div></el-col
|
|
|
></el-row>
|
|
|
- <el-dialog title="审核" :visible.sync="dialogAuditFormVisible">
|
|
|
+ <el-dialog
|
|
|
+ title="审核"
|
|
|
+ :visible.sync="dialogAuditFormVisible"
|
|
|
+ @closed="auditDialogClosed"
|
|
|
+ >
|
|
|
<el-form :model="auditForm" ref="redoAuditForm">
|
|
|
<el-form-item
|
|
|
label="违纪类型"
|
|
@@ -343,11 +355,11 @@
|
|
|
>
|
|
|
</el-input>
|
|
|
</el-form-item>
|
|
|
- <div class="dialog-footer">
|
|
|
- <el-button @click="dialogAuditFormVisible = false">取 消</el-button>
|
|
|
+ <div class="dialog-footer margin-top-10 text-center">
|
|
|
<el-button type="primary" @click="doRedoAuditNoPass"
|
|
|
- >确 定</el-button
|
|
|
- >
|
|
|
+ >确 定
|
|
|
+ </el-button>
|
|
|
+ <el-button @click="dialogAuditFormVisible = false">取 消</el-button>
|
|
|
</div>
|
|
|
</el-form>
|
|
|
</el-dialog>
|
|
@@ -548,6 +560,17 @@ export default {
|
|
|
type: "success"
|
|
|
});
|
|
|
this.search();
|
|
|
+ })
|
|
|
+ .catch(res => {
|
|
|
+ var errorMsg = "操作失败";
|
|
|
+ if (res.response && res.response.data) {
|
|
|
+ errorMsg = res.response.data.desc;
|
|
|
+ }
|
|
|
+ this.$notify({
|
|
|
+ title: "提示",
|
|
|
+ message: errorMsg,
|
|
|
+ type: "error"
|
|
|
+ });
|
|
|
});
|
|
|
}
|
|
|
},
|
|
@@ -568,20 +591,39 @@ export default {
|
|
|
message: "操作成功",
|
|
|
type: "success"
|
|
|
});
|
|
|
- this.auditForm = {
|
|
|
- examRecordDataId: null,
|
|
|
- disciplineType: "",
|
|
|
- disciplineDetail: "",
|
|
|
- isPass: null
|
|
|
- };
|
|
|
- this.dialogAuditFormVisible = false;
|
|
|
+ this.doRedoAuditNoPassPostProcess();
|
|
|
this.search();
|
|
|
+ })
|
|
|
+ .catch(res => {
|
|
|
+ var errorMsg = "操作失败";
|
|
|
+ if (res.response && res.response.data) {
|
|
|
+ errorMsg = res.response.data.desc;
|
|
|
+ }
|
|
|
+ this.doRedoAuditNoPassPostProcess();
|
|
|
+ this.$notify({
|
|
|
+ title: "提示",
|
|
|
+ message: errorMsg,
|
|
|
+ type: "error"
|
|
|
+ });
|
|
|
});
|
|
|
} else {
|
|
|
return false;
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
+ doRedoAuditNoPassPostProcess() {
|
|
|
+ this.auditForm = {
|
|
|
+ examRecordDataId: null,
|
|
|
+ disciplineType: "",
|
|
|
+ disciplineDetail: "",
|
|
|
+ isPass: null
|
|
|
+ };
|
|
|
+ this.$refs["redoAuditForm"].resetFields();
|
|
|
+ this.dialogAuditFormVisible = false;
|
|
|
+ },
|
|
|
+ auditDialogClosed() {
|
|
|
+ this.$refs["redoAuditForm"].resetFields();
|
|
|
+ },
|
|
|
backFill() {
|
|
|
var formData = this.$route.query;
|
|
|
if (formData && formData.examId) {
|