You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@streampark.apache.org by be...@apache.org on 2022/11/19 06:12:19 UTC
[incubator-streampark] branch dev updated: [Fix] Alert setting api error (#2065)
This is an automated email from the ASF dual-hosted git repository.
benjobs pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/incubator-streampark.git
The following commit(s) were added to refs/heads/dev by this push:
new 4d052fa50 [Fix] Alert setting api error (#2065)
4d052fa50 is described below
commit 4d052fa502baa71f8224a78c703b82b0d06d7b3a
Author: WSZ <wa...@outlook.com>
AuthorDate: Sat Nov 19 14:12:15 2022 +0800
[Fix] Alert setting api error (#2065)
---
.../streampark-console-webapp/src/api/flink/setting/alert.ts | 10 +---------
.../src/views/flink/setting/components/SettingList.vue | 2 +-
.../src/views/flink/setting/components/SystemSetting.vue | 2 +-
3 files changed, 3 insertions(+), 11 deletions(-)
diff --git a/streampark-console/streampark-console-webapp/src/api/flink/setting/alert.ts b/streampark-console/streampark-console-webapp/src/api/flink/setting/alert.ts
index 1d70b41b5..5edfc282d 100644
--- a/streampark-console/streampark-console-webapp/src/api/flink/setting/alert.ts
+++ b/streampark-console/streampark-console-webapp/src/api/flink/setting/alert.ts
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-import { AlertCreate, AlertSetting, AlertUpdateParam } from './types/alert.type';
+import { AlertCreate, AlertSetting } from './types/alert.type';
import { Result } from '/#/axios';
import { defHttp } from '/@/utils/http/axios';
import { AxiosResponse } from 'axios';
@@ -77,11 +77,3 @@ export function fetchAlertUpdate(data: AlertCreate): Promise<AxiosResponse<Resul
return defHttp.postJson({ url: ALERT_APi.UPDATE, data }, { isReturnNativeResponse: true });
}
-/**
- * Update system settings
- * @param {AlertUpdateParam} data key
- * @returns {Promise<boolean>}
- */
-export function fetchSystemSettingUpdate(data: AlertUpdateParam): Promise<boolean> {
- return defHttp.post({ url: ALERT_APi.UPDATE, data });
-}
diff --git a/streampark-console/streampark-console-webapp/src/views/flink/setting/components/SettingList.vue b/streampark-console/streampark-console-webapp/src/views/flink/setting/components/SettingList.vue
index 0e02b77d9..8ea220d1f 100644
--- a/streampark-console/streampark-console-webapp/src/views/flink/setting/components/SettingList.vue
+++ b/streampark-console/streampark-console-webapp/src/views/flink/setting/components/SettingList.vue
@@ -119,7 +119,7 @@
checked-children="ON"
un-checked-children="OFF"
style="float: right; margin-right: 30px"
- :default-checked="item.settingValue === 'true'"
+ :checked="item.settingValue === 'true'"
@change="handleSwitch(item)"
/>
</template>
diff --git a/streampark-console/streampark-console-webapp/src/views/flink/setting/components/SystemSetting.vue b/streampark-console/streampark-console-webapp/src/views/flink/setting/components/SystemSetting.vue
index e0461d619..1d947eed6 100644
--- a/streampark-console/streampark-console-webapp/src/views/flink/setting/components/SystemSetting.vue
+++ b/streampark-console/streampark-console-webapp/src/views/flink/setting/components/SystemSetting.vue
@@ -26,7 +26,7 @@
import { fetchSystemSetting } from '/@/api/flink/setting';
import { SystemSetting } from '/@/api/flink/setting/types/setting.type';
import SettingList from './SettingList.vue';
- import { fetchSystemSettingUpdate } from '/@/api/flink/setting/alert';
+ import { fetchSystemSettingUpdate } from '/@/api/flink/setting';
import { useMessage } from '/@/hooks/web/useMessage';
const CollapsePane = Collapse.Panel;