| | |
| | | >导出 |
| | | </el-button> |
| | | </template> |
| | | <template slot-scope="{ type, size, row }" slot="menu"> |
| | | <el-button |
| | | :type="type" |
| | | :size="size" |
| | | icon="el-icon-edit" |
| | | :disabled="row.examinationType!=1" |
| | | @click="handleAuditDesc(row)" |
| | | >审查异常备注 |
| | | </el-button> |
| | | </template> |
| | | </avue-crud> |
| | | |
| | | <el-dialog |
| | | title="审查异常备注" |
| | | append-to-body |
| | | :visible.sync="dialogAudit" |
| | | width="900px" |
| | | @close="closeDialog" |
| | | > |
| | | <avue-form |
| | | ref="formAudit" |
| | | v-model="audit" |
| | | :option="optionAuditDesc" |
| | | @reset-change="emptytChange" |
| | | @submit="submitAudit" |
| | | ></avue-form> |
| | | </el-dialog> |
| | | </basic-container> |
| | | </template> |
| | | |
| | | <script> |
| | | import { mapGetters } from "vuex"; |
| | | import { getListSecurity } from "@/api/system/user"; |
| | | import { getListSecurity,updateUser } from "@/api/system/user"; |
| | | import Qs from "qs"; |
| | | import { getToken } from "@/util/auth"; |
| | | export default { |
| | |
| | | currentPage: 1, |
| | | total: 0, |
| | | }, |
| | | id:"", |
| | | batchAudit: {}, |
| | | dialogAudit: false, |
| | | optionAuditDesc: { |
| | | height: "auto", |
| | | filterBtn: true, |
| | | calcHeight: 30, |
| | | dialogWidth: 950, |
| | | tip: false, |
| | | searchShow: true, |
| | | searchMenuSpan: 6, |
| | | border: true, //liu |
| | | index: true, |
| | | stripe: true, |
| | | viewBtn: true, |
| | | selection: false, |
| | | excelBtn: false, |
| | | menuWidth: 380, |
| | | dialogClickModal: false, |
| | | column: [ |
| | | { |
| | | label: "审核明细", |
| | | span: 24, |
| | | type: "textarea", |
| | | prop: "emails", |
| | | }, |
| | | ], |
| | | }, |
| | | selectionList: [], |
| | | option: { |
| | | // 操作栏多余按钮去除 |
| | |
| | | editBtn: false, |
| | | addBtn: false, |
| | | selection: true, |
| | | menu: false, |
| | | menu: true, |
| | | menuWidth:150, |
| | | searchShowBtn: false, |
| | | align: "center", |
| | | height: "auto", |
| | |
| | | prop: "auditTime", |
| | | // hide: true, |
| | | }, |
| | | // { |
| | | // label: "是否在职", |
| | | // prop: "status", |
| | | // // labelWidth: 120, |
| | | // // display: false, |
| | | // }, |
| | | { |
| | | label: "审查异常备注", |
| | | prop: "emails", |
| | | }, |
| | | ], |
| | | }, |
| | | data: [ |
| | |
| | | ...mapGetters(["permission", "userInfo"]), |
| | | permissionList() { |
| | | return { |
| | | addBtn: this.vaildData(this.permission.post_add, false), |
| | | viewBtn: this.vaildData(this.permission.post_view, false), |
| | | delBtn: this.vaildData(this.permission.post_delete, false), |
| | | editBtn: this.vaildData(this.permission.post_edit, false), |
| | | addBtn: this.vaildData(null, false), |
| | | viewBtn: this.vaildData(null, false), |
| | | delBtn: this.vaildData(null, false), |
| | | editBtn: this.vaildData(null, false), |
| | | }; |
| | | }, |
| | | ids() { |
| | |
| | | this.search["examinationType"] = "1"; |
| | | }, |
| | | methods: { |
| | | //证书批量审核 |
| | | handleAuditDesc(row) { |
| | | console.log(row,123); |
| | | this.id = row.id; |
| | | |
| | | this.dialogAudit = true; |
| | | }, |
| | | //审查异常备注提交 |
| | | submitAudit(row, done, loading) { |
| | | var that = this; |
| | | const data = { |
| | | id: this.id, |
| | | emails: row.emails |
| | | }; |
| | | //提交申请 |
| | | updateUser(data).then( |
| | | () => { |
| | | this.onLoad(this.page); |
| | | that.$refs.formAudit.resetFields(); |
| | | that.dialogAudit = false; |
| | | this.$message({ |
| | | type: "success", |
| | | message: "操作成功", |
| | | }); |
| | | done(); |
| | | }, |
| | | (error) => { |
| | | window.console.log(error); |
| | | loading(); |
| | | } |
| | | ); |
| | | }, |
| | | //导出 |
| | | handleExport() { |
| | | this.$confirm("是否导出审查信息?", "提示", { |