Browse Source

[Feat 0000] 测点页面-测点在成功添加/编辑后刷新内嵌的测点模块

houzekong 1 year ago
parent
commit
71cde7cef7
1 changed files with 5 additions and 0 deletions
  1. 5 0
      src/views/vent/monitor/site/index.vue

+ 5 - 0
src/views/vent/monitor/site/index.vue

@@ -89,6 +89,11 @@
   function handleSave(formData: SaveMonitorSiteParams) {
     saveMonitorSite(formData).then(() => {
       notification.success({ message: '保存成功' });
+      // 成功保存后刷新
+      postMonitorOperation(iframeRef.value!, {
+        clickType: 'refreshPoint',
+        from: 'tank',
+      });
     });
   }