From 8b3dc0a94cb8f3189191c50090b809b302f889ea Mon Sep 17 00:00:00 2001
From: Kxc0822a <kxc000822>
Date: Thu, 31 Mar 2022 09:33:37 +0800
Subject: [PATCH] 重大
---
src/views/majorHazardSourceMonitoring/equipmentAlarm/index.vue | 23 ++++++++++++-----------
1 files changed, 12 insertions(+), 11 deletions(-)
diff --git a/src/views/majorHazardSourceMonitoring/equipmentAlarm/index.vue b/src/views/majorHazardSourceMonitoring/equipmentAlarm/index.vue
index 8b80821..6f82523 100644
--- a/src/views/majorHazardSourceMonitoring/equipmentAlarm/index.vue
+++ b/src/views/majorHazardSourceMonitoring/equipmentAlarm/index.vue
@@ -74,6 +74,7 @@
:page-size="pageSize"
layout="total, sizes, prev, pager, next, jumper"
:total="recordTotal"
+ style="margin-top: 20px;"
>
</el-pagination>
</div>
@@ -113,6 +114,7 @@
:key="item.value"
:label="item.label"
:value="item.value"
+ @change="statusChange"
>
</el-option>
</el-select>
@@ -151,7 +153,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>
@@ -197,7 +199,7 @@
alarmInfo: { required: true, message: "请输入报警信息", trigger: "change"},
},
equipmentName:[],
- unitIdOptions:[{label:"已处理",value:0},{label:"未处理",value:1}]
+ unitIdOptions:[{label:"已处理",value:0},{label:"未处理",value:1}],
};
},
created() {
@@ -210,6 +212,9 @@
console.log(res)
this.equipmentName=res.data.result
})
+ },
+ statusChange(e){
+ this.$forceUpdate()
},
async elementManagementL() {
var res = await majorEquipmentList(this.listQuery);
@@ -255,10 +260,6 @@
title: "成功",
});
} else {
- this.$message({
- type: "warning",
- message: res.data.message,
- });
}
});
} else {
@@ -272,17 +273,17 @@
message: "编辑成功",
title: "成功",
});
- } else {
- his.$message({
- type: "warning",
- message: res.data.message,
- });
+ }else {
}
});
}
}
});
},
+ cancel(){
+ this.elementManagementL();
+ this.dialogVisible = false
+ },
deleteById(val) {
this.$confirm('确认删除吗','提示', {
confirmButtonText: '确认',
--
Gitblit v1.9.2