This commit is contained in:
parent
701789b705
commit
894920d2dc
|
@ -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();
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue