diff --git a/src/views/perfManage/perfThreshold/index.vue b/src/views/perfManage/perfThreshold/index.vue index 4197e6ce..b25c4f41 100644 --- a/src/views/perfManage/perfThreshold/index.vue +++ b/src/views/perfManage/perfThreshold/index.vue @@ -311,6 +311,7 @@ function fnModalVisibleByEdit(id?: string) { modalState.confirmLoading = false; hide(); if (res.code === RESULT_CODE_SUCCESS && res.data) { + fnSelectPerformanceInit(res.data.neType) modalState.from = Object.assign(modalState.from, res.data); modalState.title = t('views.perfManage.perfThreshold.editThre'); modalState.visibleByEdit = true; diff --git a/src/views/perfManage/taskManage/index.vue b/src/views/perfManage/taskManage/index.vue index bb5456dc..84ed3ea3 100644 --- a/src/views/perfManage/taskManage/index.vue +++ b/src/views/perfManage/taskManage/index.vue @@ -490,6 +490,7 @@ function fnModalVisibleByEdit(id?: string) { } modalState.neType = [res.data.neType, JSON.parse(res.data.neIds)[0]]; + fnSelectPerformanceInit(res.data.neType) //初始性能测量数据 modalState.from.neId=JSON.parse(res.data.neIds)[0]; modalState.timeRangePicker = [res.data.startTime, res.data.endTime]; modalState.from = Object.assign(modalState.from, res.data); @@ -559,6 +560,7 @@ function fnModalOk() { duration: 3, }); } + fnModalCancel(); }) .finally(() => { hide();