From b25515b5db28b0446f611a85c7f1496a963b3412 Mon Sep 17 00:00:00 2001 From: sjl <1716605279@qq.com> Date: Fri, 27 Feb 2026 08:49:57 +0800 Subject: [PATCH] =?UTF-8?q?=E7=B3=BB=E7=BB=9F=E7=9B=B8=E5=85=B3=E9=85=8D?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/admin/user.js | 78 +++ src/api/device-boot/sensitiveLoadMange.ts | 28 + src/api/system-boot/area.ts | 37 ++ src/utils/mqtt.ts | 1 + src/utils/tableStore.ts | 1 + .../terminal/sensitiveLoadMange/detail.vue | 107 ++++ .../terminal/sensitiveLoadMange/index.vue | 117 ++++ .../area/TransientEventList/index.vue | 33 +- .../area/getIntegrityData/index.vue | 2 +- .../online/xiebopingpu/index.vue | 4 + .../reportForms/passing/index.vue | 4 +- src/views/pqs/panorama/components/boundary.ts | 89 ++- src/views/pqs/panorama/components/map.vue | 20 +- .../components/assess/information.vue | 1 + .../assessment/components/uese/tabFrom.vue | 1 + .../pqs/voltageSags/Region/severity/index.vue | 1 + .../components/Administration.vue | 93 ++- .../components/disposition.vue | 89 ++- src/views/system/area/index.vue | 259 ++++++++ src/views/system/auth/userList/popupEdit.vue | 12 +- src/views/system/strategyManage/index.vue | 568 +++++++++++++++--- 21 files changed, 1403 insertions(+), 142 deletions(-) create mode 100644 src/api/device-boot/sensitiveLoadMange.ts create mode 100644 src/api/system-boot/area.ts create mode 100644 src/views/pqs/business/terminal/sensitiveLoadMange/detail.vue create mode 100644 src/views/pqs/business/terminal/sensitiveLoadMange/index.vue create mode 100644 src/views/system/area/index.vue diff --git a/src/api/admin/user.js b/src/api/admin/user.js index 1ec67194..f521786f 100644 --- a/src/api/admin/user.js +++ b/src/api/admin/user.js @@ -1,5 +1,6 @@ import createAxios from '@/utils/request' + // 密码规则修改 export function ruleUpdate(data) { return createAxios({ @@ -24,3 +25,80 @@ export function unlockRoot(data) { data }) } + +//根据客户端名查询信息 +export function getClientInfoByPath() { + + return createAxios({ + url: '/user-boot/authClient/getAuthClientByName/njcn', + method: 'GET', + headers: { + 'Content-Type': 'application/x-www-form-urlencoded' + } + + }) +} + +//客户端会话配置更新 +export function updateClientSessionConfig(data) { + return createAxios({ + url: '/user-boot/authClient/sessionConfigUpdate', + method: 'post', + data + }) +} + +//获取用户配置 +export function getUserConfig() { + return createAxios({ + url: '/user-boot/password/getUserStrategyList', + method: 'post' + }) +} + +//查询系统列表 +export function getSystemList() { + return createAxios({ + url: '/system-boot/config/getSysConfigData', + method: 'get' + }) +} + +//激活系统配置 +export function activeSystemConfig(data) { + return createAxios({ + url: '/system-boot/config/updateSysConfig', + method: 'post', + data + }) +} + +//删除系统配置 +export function deleteSystemConfig( data) { + return createAxios({ + url: '/system-boot/config/removeSysConfigById', + method: 'get', + params: data + }) +} + + + + +//新增系统配置 +export function addSystemConfig(data) { + return createAxios({ + url: '/system-boot/config/addSysConfig', + method: 'post', + data + }) +} + +//修改系统配置 +export function updateSystemConfig(data) { + return createAxios({ + url: '/system-boot/config/updateSysConfig', + method: 'post', + data + }) +} \ No newline at end of file diff --git a/src/api/device-boot/sensitiveLoadMange.ts b/src/api/device-boot/sensitiveLoadMange.ts new file mode 100644 index 00000000..fe0d04b1 --- /dev/null +++ b/src/api/device-boot/sensitiveLoadMange.ts @@ -0,0 +1,28 @@ +import request from '@/utils/request' + +// 新增敏感用户 +export function saveUser(data: any) { + return request({ + url: '/device-boot/pqSensitiveUser/save', + method: 'post', + data: data + }) +} + +// 修改敏感用户 +export function updateUser(data: any) { + return request({ + url: '/device-boot/pqSensitiveUser/update', + method: 'post', + data: data + }) +} + +// 删除敏感用户 +export function deleteUser(data: any) { + return request({ + url: '/device-boot/pqSensitiveUser/delete', + method: 'post', + data: data + }) +} diff --git a/src/api/system-boot/area.ts b/src/api/system-boot/area.ts new file mode 100644 index 00000000..1e01eb6a --- /dev/null +++ b/src/api/system-boot/area.ts @@ -0,0 +1,37 @@ +import request from '@/utils/request' +//区域树形表格接口 +export function areaTree(data: any) { + return request({ + url: '/system-boot/area/areaTree', + method: 'post', + params: data, + }) +} +export function areaAdd(data: any) { + return request({ + url: '/system-boot/area/add', + method: 'post', + data: data, + }) +} +export function areaDelete(data: any) { + return request({ + url: '/system-boot/area/delete', + method: 'post', + data: data, + }) +} +export function update(data: any) { + return request({ + url: '/system-boot/area/update', + method: 'post', + data: data, + }) +} +export function selectPid(data: any) { + return request({ + url: '/system-boot/area/selectPid', + method: 'post', + data: data, + }) +} \ No newline at end of file diff --git a/src/utils/mqtt.ts b/src/utils/mqtt.ts index 582c77c8..9ae8d5c6 100644 --- a/src/utils/mqtt.ts +++ b/src/utils/mqtt.ts @@ -57,6 +57,7 @@ class MQTT { // ? 'ws://192.168.1.68:8083/mqtt' // : localStorage.getItem('MqttUrl') const mqttUrl = localStorage.getItem('MqttUrl') + console.log('MQTT URL:', mqttUrl) if (mqttUrl == 'null' || mqttUrl == null) return this.client = mqtt.connect(mqttUrl, this.defaultOptions as IClientOptions) this.setupEventListeners() diff --git a/src/utils/tableStore.ts b/src/utils/tableStore.ts index da8c63b8..47590f1b 100644 --- a/src/utils/tableStore.ts +++ b/src/utils/tableStore.ts @@ -137,6 +137,7 @@ export default class TableStore { this.table.params.pageNum = 1 this.index() + console.log('search') } ], [ diff --git a/src/views/pqs/business/terminal/sensitiveLoadMange/detail.vue b/src/views/pqs/business/terminal/sensitiveLoadMange/detail.vue new file mode 100644 index 00000000..d2e8f7ea --- /dev/null +++ b/src/views/pqs/business/terminal/sensitiveLoadMange/detail.vue @@ -0,0 +1,107 @@ + + diff --git a/src/views/pqs/business/terminal/sensitiveLoadMange/index.vue b/src/views/pqs/business/terminal/sensitiveLoadMange/index.vue new file mode 100644 index 00000000..01bf1c91 --- /dev/null +++ b/src/views/pqs/business/terminal/sensitiveLoadMange/index.vue @@ -0,0 +1,117 @@ + + diff --git a/src/views/pqs/harmonicMonitoring/area/TransientEventList/index.vue b/src/views/pqs/harmonicMonitoring/area/TransientEventList/index.vue index 5be670d0..f39d8e58 100644 --- a/src/views/pqs/harmonicMonitoring/area/TransientEventList/index.vue +++ b/src/views/pqs/harmonicMonitoring/area/TransientEventList/index.vue @@ -129,14 +129,22 @@ const tableStore = new TableStore({ { field: 'subName', title: '变电站', minWidth: '150' }, { field: 'ip', title: '网络参数' ,width:'120px' }, { field: 'scale', title: '电压等级', minWidth: '110' }, - // { - // field: 'advanceType', - // title: '触发类型', - // minWidth: '90', - // formatter: (row: any) => { - // return row.cellValue || '其他' - // } - // }, + { + field: 'advanceType', + title: '暂降类型', + minWidth: '90', + formatter: (row: any) => { + return row.cellValue || '其他' + } + }, + { + field: 'eventType', + title: '触发类型', + minWidth: '120', + formatter: (row: any) => { + return eventList.filter(item => item.id === row.cellValue)[0]?.name + } + }, { field: 'advanceReason', title: '暂降原因', @@ -145,14 +153,7 @@ const tableStore = new TableStore({ return row.cellValue || '其他' } }, - { - field: 'eventType', - title: '触发类型', - minWidth: '120', - formatter: (row: any) => { - return eventList.filter(item => item.id === row.cellValue)[0]?.name - } - }, + // { // field: 'severity', title: '严重度', minWidth: "80", formatter: (row: any) => { // return row.cellValue.toFixed(2) diff --git a/src/views/pqs/harmonicMonitoring/area/getIntegrityData/index.vue b/src/views/pqs/harmonicMonitoring/area/getIntegrityData/index.vue index 58df1076..e80b3d9c 100644 --- a/src/views/pqs/harmonicMonitoring/area/getIntegrityData/index.vue +++ b/src/views/pqs/harmonicMonitoring/area/getIntegrityData/index.vue @@ -55,7 +55,7 @@ - +