From 17cae4457a301ca79ff3a2975641d5989c127b13 Mon Sep 17 00:00:00 2001
From: shj <1790240199@qq.com>
Date: 星期一, 11 四月 2022 17:11:34 +0800
Subject: [PATCH] 新增
---
src/views/majorHazardSourceMonitoring/productionEquipment/index.vue | 20 +++++++++++++++-----
1 files changed, 15 insertions(+), 5 deletions(-)
diff --git a/src/views/majorHazardSourceMonitoring/productionEquipment/index.vue b/src/views/majorHazardSourceMonitoring/productionEquipment/index.vue
index ede80cb..46f0476 100644
--- a/src/views/majorHazardSourceMonitoring/productionEquipment/index.vue
+++ b/src/views/majorHazardSourceMonitoring/productionEquipment/index.vue
@@ -64,7 +64,7 @@
</template>
</el-table-column>
</el-table>
- <div style="text-align:right">
+ <div style="text-align:right;margin-top: 20px;">
<el-pagination
v-show="recordTotal>0"
@size-change="handleSizeChange"
@@ -80,6 +80,7 @@
<el-dialog
:title="title"
:visible.sync="dialogVisible"
+ :close-on-click-modal="false"
width="40%"
>
<el-form ref="form" :rules="rules" :model="form" label-width="80px">
@@ -145,7 +146,7 @@
<el-button type="primary" class="btns" @click="AddelementManagement()"
>确 定</el-button
>
- <el-button @click="dialogVisible = false">取 消</el-button>
+ <el-button @click="cancel()">取 消</el-button>
</span>
</el-dialog>
</div>
@@ -227,7 +228,6 @@
this.$nextTick(() => {
this.$refs["form"].clearValidate();
});
-
if (type == "新增") {
this.title = "新增";
this.form = {
@@ -239,7 +239,7 @@
};
} else {
this.title = "编辑";
- this.form = value;
+ this.form=JSON.parse(JSON.stringify(value));
}
},
AddelementManagement() {
@@ -275,7 +275,7 @@
title: "成功",
});
} else {
- his.$message({
+ this.$message({
type: "warning",
message: res.data.message,
});
@@ -301,12 +301,22 @@
type: "success",
duration: 2000,
});
+ }else {
+ this.$message({
+ type: "warning",
+ message: res.data.message,
+ });
+
}
});
})
.catch(error =>{
});
},
+ cancel(){
+ this.elementManagementL();
+ this.dialogVisible = false;
+ },
find(){
this.elementManagementL();
},
--
Gitblit v1.9.2