diff --git a/dist.zip b/dist.zip index e0e3280..20234fd 100644 Binary files a/dist.zip and b/dist.zip differ diff --git a/src/views/form/monitoringpoints.vue b/src/views/form/monitoringpoints.vue index cab9203..b2fa7dc 100644 --- a/src/views/form/monitoringpoints.vue +++ b/src/views/form/monitoringpoints.vue @@ -52,6 +52,7 @@ title="监测点管理" width="30%" destroy-on-close + @close="stateMonitoring" >
+ 取消 提交 @@ -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(); });