This commit is contained in:
陈鹏鹏 2023-09-27 18:50:23 +08:00
parent 701789b705
commit 894920d2dc
2 changed files with 9 additions and 0 deletions

BIN
dist.zip

Binary file not shown.

View File

@ -52,6 +52,7 @@
title="监测点管理"
width="30%"
destroy-on-close
@close="stateMonitoring"
>
<el-form
class="form"
@ -89,6 +90,7 @@
</el-select>
</el-form-item>
<div style="display: flex; justify-content: center">
<el-button @click="stateMonitoring()">取消</el-button>
<el-button type="primary" @click="onAffirm(ruleFormRef)"
>提交</el-button
>
@ -298,6 +300,7 @@ const onFinish = () => {
if (res.code === 200) {
ElMessage.success(res.message);
state.Monitoring = false;
state.formState = {}
get();
} else {
ElMessage.error(res.message);
@ -311,11 +314,13 @@ const onAlter = () => {
channelId: state.formState.channelId,
monitoringPointCode: state.formState.monitoringPointCode,
monitoringPointName: state.formState.monitoringPointName,
type:state.formState.type,
})
.then((res) => {
if (res.code === 200) {
ElMessage.success(res.message);
state.Monitoring = false;
state.formState = {}
get();
} else {
ElMessage.error(res.message);
@ -345,6 +350,10 @@ const remove = (data) => {
}
});
};
const stateMonitoring = () =>{
state.Monitoring = false;
state.formState = {}
}
onMounted(() => {
get();
});