From 2ea3b1a95efc140e43734437cc16fc7f6240b9bd Mon Sep 17 00:00:00 2001
From: Kxc0822a <kxc000822>
Date: Thu, 31 Mar 2022 09:12:41 +0800
Subject: [PATCH] 重大
---
src/views/contingencyplan/index.vue | 44 ++++++++++++++++++++++----------------------
1 files changed, 22 insertions(+), 22 deletions(-)
diff --git a/src/views/contingencyplan/index.vue b/src/views/contingencyplan/index.vue
index 9e07de8..962fd5c 100644
--- a/src/views/contingencyplan/index.vue
+++ b/src/views/contingencyplan/index.vue
@@ -54,6 +54,7 @@
:page-size="pageSize"
layout="total, sizes, prev, pager, next, jumper"
:total="recordTotal"
+ style="text-align: right;margin-top: 20px;"
>
</el-pagination>
<el-dialog :title="title" :visible.sync="dialogVisible" width="40%">
@@ -125,9 +126,9 @@
name: [
{ required: true, message: "预案名称不能为空", trigger: "change" },
],
- remark: [
- { required: true, message: "责任人不能为空", trigger: "blur" },
- ],
+ // remark: [
+ // { required: true, message: "备注不能为空", trigger: "blur" },
+ // ],
},
};
},
@@ -215,11 +216,6 @@
message: "新增成功",
title: "成功",
});
- } else {
- this.$message({
- type: "warning",
- message: res.data.message,
- });
}
});
}
@@ -234,11 +230,6 @@
message: "编辑成功",
title: "成功",
});
- } else {
- this.$message({
- type: "warning",
- message: res.data.message,
- });
}
});
}
@@ -246,15 +237,24 @@
});
},
deleteById(val) {
- emergencyPlanDel({ id: val }).then(() => {
- this.emergencyPlan();
- this.$notify({
- title: "成功",
- message: "删除成功",
- type: "success",
- duration: 2000,
- });
- });
+ this.$confirm('确认删除吗','提示', {
+ confirmButtonText: '确认',
+ cancelButtonText: '取消',
+ type: 'warning'
+ })
+ .then(()=>{
+ emergencyPlanDel({ id: val }).then(() => {
+ this.emergencyPlan();
+ this.$notify({
+ title: "成功",
+ message: "删除成功",
+ type: "success",
+ duration: 2000,
+ });
+ });
+ })
+ .catch(error =>{
+ });
},
find() {
this.emergencyPlan();
--
Gitblit v1.9.2