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 @@ - +