From ddf054e34e02574edc14ee5b62694915e36dbaf9 Mon Sep 17 00:00:00 2001 From: wwp <782568523@qq.com> Date: Mon, 12 Aug 2024 14:59:56 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A8=E9=80=81=E9=85=8D=E7=BD=AE=E6=A8=A1?= =?UTF-8?q?=E5=9D=97=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/api/modules/sysconfig/ability.ts | 8 +++ .../src/components/TreeFilter/index.vue | 2 +- .../components/Header/ToolBarRight.vue | 2 +- .../src/views/sysconfig/push/index.vue | 50 ++++++++++++------- .../src/views/userManage/dormitory/index.vue | 1 + 5 files changed, 43 insertions(+), 20 deletions(-) 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 @@