|
@@ -191,7 +191,7 @@
|
|
|
size="mini"
|
|
|
type="danger"
|
|
|
:disabled="batchAuditBtnDisabled"
|
|
|
- @click="batchAudit('nopass')"
|
|
|
+ @click="openBatchAudit()"
|
|
|
>
|
|
|
<i class="el-icon-error"></i> 不通过
|
|
|
</el-button>
|
|
@@ -417,6 +417,51 @@
|
|
|
</div>
|
|
|
</el-form>
|
|
|
</el-dialog>
|
|
|
+ <el-dialog
|
|
|
+ title="审核"
|
|
|
+ :visible.sync="dialogBatchFormVisible"
|
|
|
+ @closed="batchAuditDialogClosed"
|
|
|
+ >
|
|
|
+ <el-form ref="batchAuditForm" :model="batchAuditForm">
|
|
|
+ <el-form-item
|
|
|
+ label="违纪类型"
|
|
|
+ prop="illegallyTypeId"
|
|
|
+ :rules="[
|
|
|
+ { required: true, message: '请选择违纪类型', trigger: 'change' },
|
|
|
+ ]"
|
|
|
+ >
|
|
|
+ <el-select
|
|
|
+ v-model="batchAuditForm.illegallyTypeId"
|
|
|
+ filterable
|
|
|
+ remote
|
|
|
+ :remote-method="getDisciplineTypeList"
|
|
|
+ clearable
|
|
|
+ placeholder="请选择"
|
|
|
+ size="small"
|
|
|
+ @clear="getDisciplineTypeList"
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="item in disciplineTypeList"
|
|
|
+ :key="item.id"
|
|
|
+ :label="item.name"
|
|
|
+ :value="item.id"
|
|
|
+ ></el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="详情描述" style="margin-top: 15px">
|
|
|
+ <el-input
|
|
|
+ v-model="batchAuditForm.disciplineDetail"
|
|
|
+ type="textarea"
|
|
|
+ :autosize="{ minRows: 6, maxRows: 10 }"
|
|
|
+ placeholder="请输入内容"
|
|
|
+ ></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <div class="dialog-footer margin-top-10 text-center">
|
|
|
+ <el-button type="primary" @click="doBatchAudit">确 定</el-button>
|
|
|
+ <el-button @click="dialogBatchFormVisible = false">取 消</el-button>
|
|
|
+ </div>
|
|
|
+ </el-form>
|
|
|
+ </el-dialog>
|
|
|
</el-main>
|
|
|
</el-container>
|
|
|
</template>
|
|
@@ -433,6 +478,7 @@ export default {
|
|
|
total: 0,
|
|
|
tableLoading: false,
|
|
|
exportLoading: false,
|
|
|
+ dialogBatchFormVisible: false,
|
|
|
dialogFormVisible: false,
|
|
|
showAllCondition: false,
|
|
|
form: {
|
|
@@ -467,6 +513,12 @@ export default {
|
|
|
disciplineDetail: "",
|
|
|
isPass: null,
|
|
|
},
|
|
|
+ batchAuditForm: {
|
|
|
+ examRecordDataIds: null,
|
|
|
+ illegallyTypeId: null,
|
|
|
+ disciplineDetail: "",
|
|
|
+ isPass: null,
|
|
|
+ },
|
|
|
getExamCondition: {
|
|
|
params: {
|
|
|
name: "",
|
|
@@ -644,6 +696,19 @@ export default {
|
|
|
isPass: false,
|
|
|
};
|
|
|
},
|
|
|
+ openBatchAudit() {
|
|
|
+ this.dialogBatchFormVisible = true;
|
|
|
+ var examRecordDataIds = [];
|
|
|
+ for (var i = 0; i < this.multipleSelection.length; i++) {
|
|
|
+ examRecordDataIds.push(this.multipleSelection[i].dataId);
|
|
|
+ }
|
|
|
+ this.batchAuditForm = {
|
|
|
+ examRecordDataIds: examRecordDataIds,
|
|
|
+ illegallyTypeId: null,
|
|
|
+ disciplineDetail: "",
|
|
|
+ isPass: false,
|
|
|
+ };
|
|
|
+ },
|
|
|
doAudit() {
|
|
|
this.$refs["auditForm"].validate((valid) => {
|
|
|
if (valid) {
|
|
@@ -665,9 +730,39 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
+ doBatchAudit() {
|
|
|
+ this.$refs["batchAuditForm"].validate((valid) => {
|
|
|
+ if (valid) {
|
|
|
+ this.$confirm("确定执行?", "提示", {
|
|
|
+ confirmButtonText: "确定",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ type: "warning",
|
|
|
+ }).then(() => {
|
|
|
+ var param = new URLSearchParams(this.batchAuditForm);
|
|
|
+ this.$http
|
|
|
+ .post("/api/ecs_oe_admin/exam/audit/batch/audit", param)
|
|
|
+ .then(() => {
|
|
|
+ this.$notify({
|
|
|
+ title: "成功",
|
|
|
+ message: "操作成功",
|
|
|
+ type: "success",
|
|
|
+ duration: 5000,
|
|
|
+ });
|
|
|
+ this.dialogBatchFormVisible = false;
|
|
|
+ this.search();
|
|
|
+ });
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
auditDialogClosed() {
|
|
|
this.$refs["auditForm"].resetFields();
|
|
|
},
|
|
|
+ batchAuditDialogClosed() {
|
|
|
+ this.$refs["batchAuditForm"].resetFields();
|
|
|
+ },
|
|
|
/**
|
|
|
* 审核通过
|
|
|
*/
|