From faac12615d24c4413f5b79f70d888f1046a995b8 Mon Sep 17 00:00:00 2001 From: guanj Date: Tue, 26 May 2026 16:23:18 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/algorithm-boot/scopeConfig.ts | 42 +++ src/api/cs-system-boot/appinfo.ts | 99 +++++-- .../admin/components/popup/adminInfo.vue | 102 +++---- src/template/dialog.vue | 2 +- src/views/auth/userList/popupEdit.vue | 2 +- src/views/govern/alarm/alarmConfig/form.vue | 129 +++++++++ src/views/govern/alarm/alarmConfig/index.vue | 152 ++++++++++ src/views/govern/alarm/scopeConfig/form.vue | 270 ++++++++++++++++++ src/views/govern/alarm/scopeConfig/index.vue | 193 +++++++++++++ .../govern/device/control/tabs/event.vue | 2 +- src/views/govern/manage/basic/dictionary.vue | 52 +--- .../govern/manage/basic/popupDictionary.vue | 18 +- src/views/govern/manage/factory.vue | 4 +- .../govern/sensitiveLoadMange/detail.vue | 2 +- .../govern/setting/statisticalType/index.vue | 2 +- .../dictionary/list/popupDetailEdit.vue | 2 +- .../setting/dictionary/tree/popupForm.vue | 2 +- .../setting/dictionary/version/index.vue | 2 +- src/views/system/scheduledTasks/form.vue | 2 +- src/views/system/subject/form/index.vue | 2 +- 20 files changed, 941 insertions(+), 140 deletions(-) create mode 100644 src/api/algorithm-boot/scopeConfig.ts create mode 100644 src/views/govern/alarm/alarmConfig/form.vue create mode 100644 src/views/govern/alarm/alarmConfig/index.vue create mode 100644 src/views/govern/alarm/scopeConfig/form.vue create mode 100644 src/views/govern/alarm/scopeConfig/index.vue diff --git a/src/api/algorithm-boot/scopeConfig.ts b/src/api/algorithm-boot/scopeConfig.ts new file mode 100644 index 0000000..8e9232a --- /dev/null +++ b/src/api/algorithm-boot/scopeConfig.ts @@ -0,0 +1,42 @@ +import createAxios from '@/utils/request' + +/** + * 删除数据合理范围 + **/ +export const pqDelete = (data: any) => { + return createAxios({ + url: '/algorithm-boot/pqReasonableRange/delete', + method: 'post', + params: data + }) +} +/** + * 按条件获取数据合理范围 + **/ +export const getData = (data: any) => { + return createAxios({ + url: '/algorithm-boot/pqReasonableRange/getData', + method: 'post', + data + }) +} +/** + * 新增数据合理范围 + **/ +export const save = (data: any) => { + return createAxios({ + url: '/algorithm-boot/pqReasonableRange/save', + method: 'post', + data + }) +} +/** + * 更新数据合理范围 + **/ +export const update = (data: any) => { + return createAxios({ + url: '/algorithm-boot/pqReasonableRange/update', + method: 'post', + data + }) +} diff --git a/src/api/cs-system-boot/appinfo.ts b/src/api/cs-system-boot/appinfo.ts index 77b953c..fc20db9 100644 --- a/src/api/cs-system-boot/appinfo.ts +++ b/src/api/cs-system-boot/appinfo.ts @@ -1,30 +1,69 @@ -import createAxios from '@/utils/request' - -/** - * 查询app个人中心信息详情 - * @param id - */ -export const queryAppInfo = (type: string) => { - let form = new FormData() - form.append('type', type) - return createAxios({ - url: '/cs-system-boot/appinfo/queryAppInfoByType', - method: 'post', - headers: { - 'Content-Type': 'application/x-www-form-urlencoded' - }, - data: form - }) -} - - -/** - * 新增app基础信息 - **/ -export const addAppInfo = (data: { type: string, content: string }) => { - return createAxios({ - url: '/cs-system-boot/appinfo/addAppInfo', - method: 'post', - data: data - }) -} +import createAxios from '@/utils/request' + +/** + * 查询app个人中心信息详情 + * @param id + */ +export const queryAppInfo = (type: string) => { + let form = new FormData() + form.append('type', type) + return createAxios({ + url: '/cs-system-boot/appinfo/queryAppInfoByType', + method: 'post', + headers: { + 'Content-Type': 'application/x-www-form-urlencoded' + }, + data: form + }) +} + +/** + * 新增app基础信息 + **/ +export const addAppInfo = (data: { type: string; content: string }) => { + return createAxios({ + url: '/cs-system-boot/appinfo/addAppInfo', + method: 'post', + data: data + }) +} +/** + * 切换告警配置启用状态 + **/ +export const toggleActive = (data: any) => { + return createAxios({ + url: '/cs-system-boot/csAlarmSet/toggleActive', + method: 'post', + params: data + }) +} +/** + * 切换告警配置启用状态 + **/ +export const csDelete = (data: any) => { + return createAxios({ + url: '/cs-system-boot/csAlarmSet/delete', + method: 'post', + params: data + }) +} +/** + * 新增告警配置 + **/ +export const add = (data: any) => { + return createAxios({ + url: '/cs-system-boot/csAlarmSet/add', + method: 'post', + data: data + }) +} +/** + * 修改告警配置 + **/ +export const update = (data: any) => { + return createAxios({ + url: '/cs-system-boot/csAlarmSet/update', + method: 'post', + data: data + }) +} diff --git a/src/layouts/admin/components/popup/adminInfo.vue b/src/layouts/admin/components/popup/adminInfo.vue index b65e6a8..867fb71 100644 --- a/src/layouts/admin/components/popup/adminInfo.vue +++ b/src/layouts/admin/components/popup/adminInfo.vue @@ -1,51 +1,51 @@ - - + + diff --git a/src/template/dialog.vue b/src/template/dialog.vue index 87e4bc9..6e69e1f 100644 --- a/src/template/dialog.vue +++ b/src/template/dialog.vue @@ -1,5 +1,5 @@