|
@@ -292,12 +292,38 @@
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
<el-dialog title="审核" :visible.sync="dialogFormVisible">
|
|
|
- <auditVue :auditForm="auditForm">
|
|
|
+ <el-form :model="auditForm" ref="auditForm">
|
|
|
+ <el-form-item
|
|
|
+ label="违纪类型"
|
|
|
+ prop="disciplineType"
|
|
|
+ :rules="[
|
|
|
+ { required: true, message: '请选择违纪类型', trigger: 'change' }
|
|
|
+ ]"
|
|
|
+ >
|
|
|
+ <el-select v-model="auditForm.disciplineType" placeholder="请选择">
|
|
|
+ <el-option
|
|
|
+ v-for="item in disciplineTypeList"
|
|
|
+ :key="item.name"
|
|
|
+ :label="item.desc"
|
|
|
+ :value="item.name"
|
|
|
+ >
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="详情描述" style="margin-top:15px;">
|
|
|
+ <el-input
|
|
|
+ v-model="auditForm.disciplineDetail"
|
|
|
+ type="textarea"
|
|
|
+ :autosize="{ minRows: 6, maxRows: 10 }"
|
|
|
+ placeholder="请输入内容"
|
|
|
+ >
|
|
|
+ </el-input>
|
|
|
+ </el-form-item>
|
|
|
<div class="dialog-footer">
|
|
|
<el-button @click="dialogFormVisible = false">取 消</el-button>
|
|
|
<el-button type="primary" @click="doAudit">确 定</el-button>
|
|
|
</div>
|
|
|
- </auditVue>
|
|
|
+ </el-form>
|
|
|
</el-dialog>
|
|
|
</el-main>
|
|
|
</el-container>
|
|
@@ -306,11 +332,10 @@
|
|
|
import { mapState } from "vuex";
|
|
|
import pagePrivilege from "../mixin/pagePrivilege.js";
|
|
|
import commonFormVue from "../component/commonForm.vue";
|
|
|
-import auditVue from "../component/audit.vue";
|
|
|
-
|
|
|
+import { DISCIPLINE_TYPE_LIST } from "../constants/constants";
|
|
|
export default {
|
|
|
mixins: [pagePrivilege],
|
|
|
- components: { commonFormVue, auditVue },
|
|
|
+ components: { commonFormVue },
|
|
|
data() {
|
|
|
return {
|
|
|
total: 0,
|
|
@@ -358,7 +383,8 @@ export default {
|
|
|
PANEING_BATCHAUDIT: false,
|
|
|
PENDING_OPERATE: false,
|
|
|
SNAPSHOT_DETAILS: false
|
|
|
- }
|
|
|
+ },
|
|
|
+ disciplineTypeList: DISCIPLINE_TYPE_LIST
|
|
|
};
|
|
|
},
|
|
|
computed: {
|
|
@@ -489,18 +515,24 @@ export default {
|
|
|
};
|
|
|
},
|
|
|
doAudit() {
|
|
|
- var param = new URLSearchParams(this.auditForm);
|
|
|
- this.$http
|
|
|
- .post("/api/ecs_oe_admin/exam/audit/single/audit", param)
|
|
|
- .then(() => {
|
|
|
- this.$notify({
|
|
|
- title: "成功",
|
|
|
- message: "操作成功",
|
|
|
- type: "success"
|
|
|
- });
|
|
|
- this.dialogFormVisible = false;
|
|
|
- this.search();
|
|
|
- });
|
|
|
+ this.$refs["auditForm"].validate(valid => {
|
|
|
+ if (valid) {
|
|
|
+ var param = new URLSearchParams(this.auditForm);
|
|
|
+ this.$http
|
|
|
+ .post("/api/ecs_oe_admin/exam/audit/single/audit", param)
|
|
|
+ .then(() => {
|
|
|
+ this.$notify({
|
|
|
+ title: "成功",
|
|
|
+ message: "操作成功",
|
|
|
+ type: "success"
|
|
|
+ });
|
|
|
+ this.dialogFormVisible = false;
|
|
|
+ this.search();
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ });
|
|
|
},
|
|
|
/**
|
|
|
* 审核通过
|