|
@@ -210,7 +210,7 @@
|
|
<el-dialog
|
|
<el-dialog
|
|
class="modify-task-apply"
|
|
class="modify-task-apply"
|
|
:visible.sync="auditDialogShow"
|
|
:visible.sync="auditDialogShow"
|
|
- title="审核意见"
|
|
|
|
|
|
+ title="审核不通过"
|
|
width="500px"
|
|
width="500px"
|
|
:close-on-click-modal="false"
|
|
:close-on-click-modal="false"
|
|
:close-on-press-escape="false"
|
|
:close-on-press-escape="false"
|
|
@@ -349,12 +349,21 @@ export default {
|
|
this.$message.error("请选择要审核的记录!");
|
|
this.$message.error("请选择要审核的记录!");
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
- if (isPass) {
|
|
|
|
- this.auditApply("PASS", this.multipleSelection);
|
|
|
|
- } else {
|
|
|
|
- this.auditModal.reason = "";
|
|
|
|
- this.auditDialogShow = true;
|
|
|
|
- }
|
|
|
|
|
|
+ const actionName = isPass ? "通过" : "不通过";
|
|
|
|
+ this.$confirm(`确定${actionName}这些申请吗?`, "提示", {
|
|
|
|
+ cancelButtonClass: "el-button--danger is-plain",
|
|
|
|
+ confirmButtonClass: "el-button--primary",
|
|
|
|
+ type: "warning"
|
|
|
|
+ })
|
|
|
|
+ .then(() => {
|
|
|
|
+ this.auditModal.reason = "";
|
|
|
|
+ if (isPass) {
|
|
|
|
+ this.auditApply("PASS", this.multipleSelection);
|
|
|
|
+ } else {
|
|
|
|
+ this.auditDialogShow = true;
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ .catch(() => {});
|
|
},
|
|
},
|
|
async auditNotPass() {
|
|
async auditNotPass() {
|
|
const valid = await this.$refs.AuditForm.validate().catch(() => {});
|
|
const valid = await this.$refs.AuditForm.validate().catch(() => {});
|