diff --git a/SafeCampus.WEB/src/api/modules/sysconfig/ability.ts b/SafeCampus.WEB/src/api/modules/sysconfig/ability.ts index 6cd3629..1dc8437 100644 --- a/SafeCampus.WEB/src/api/modules/sysconfig/ability.ts +++ b/SafeCampus.WEB/src/api/modules/sysconfig/ability.ts @@ -18,6 +18,14 @@ const http = moduleRequest("/business/warn/"); const http1 = moduleRequest("/violation/analysis/"); const abilityApi = { + /* 推送配置保存 */ + pushConfig(params: any) { + return http.post("setWarnPushSetting", params); + }, + // 获取推送信息 + getPushInfo(params: any) { + return http.get("getWarnPushSetting", params); + }, /** 获取告警分组 */ warnGroup(params: ReqId) { return http.get("getWarnGroup", params); diff --git a/SafeCampus.WEB/src/components/TreeFilter/index.vue b/SafeCampus.WEB/src/components/TreeFilter/index.vue index 149726a..21290dd 100644 --- a/SafeCampus.WEB/src/components/TreeFilter/index.vue +++ b/SafeCampus.WEB/src/components/TreeFilter/index.vue @@ -86,8 +86,8 @@ const setSelected = () => { }; onBeforeMount(async () => { - await getRequestData(); setSelected(); + await getRequestData(); }); // 使用 nextTick 防止打包后赋值不生效,开发环境是正常的 diff --git a/SafeCampus.WEB/src/layouts/components/Header/ToolBarRight.vue b/SafeCampus.WEB/src/layouts/components/Header/ToolBarRight.vue index 7799242..5079dac 100644 --- a/SafeCampus.WEB/src/layouts/components/Header/ToolBarRight.vue +++ b/SafeCampus.WEB/src/layouts/components/Header/ToolBarRight.vue @@ -33,7 +33,7 @@ import SearchMenu from "./components/SearchMenu.vue"; const userStore = useUserStore(); const username = computed(() => userStore.userInfo?.name); function open() { - window.open("http://8.141.155.183:91/view/1808743138258845697"); + window.open("/#/screen"); } function opens() { window.open("http://192.168.10.101:1234/"); diff --git a/SafeCampus.WEB/src/views/sysconfig/push/index.vue b/SafeCampus.WEB/src/views/sysconfig/push/index.vue index 1092593..70de8fb 100644 --- a/SafeCampus.WEB/src/views/sysconfig/push/index.vue +++ b/SafeCampus.WEB/src/views/sysconfig/push/index.vue @@ -15,14 +15,14 @@ :size="formSize" status-icon > - - + +
推送规则
当日预警每达到 - + 条时进行推送
当日预警数据每达到设置的条数后,会进行消息推送。
@@ -35,32 +35,33 @@