From 1a09c3166909b6f2292647de979174cdb13f2aaf Mon Sep 17 00:00:00 2001 From: guanj Date: Thu, 11 Jun 2026 20:27:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=B5=8B=E8=AF=95=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/cs-device-boot/csLedger.ts | 10 +- src/api/cs-system-boot/device.ts | 2 +- src/components/cockpit/F47Curve/index.vue | 25 +- src/components/cockpit/ITICurve/index.vue | 439 +++++++++++++++++ .../cockpit/directionStatistics/index.vue | 28 +- .../cockpit/exceedanceLevel/index.vue | 49 +- .../cockpit/governanceReport/index.vue | 116 +++-- .../components/harmonicRatio‌.vue | 92 ++-- .../components/overLimitDetails.vue | 15 +- .../cockpit/gridSideStatistics/index.vue | 43 +- .../cockpit/indicatorCrossingTime/index.vue | 114 ++--- .../cockpit/indicatorDistribution/index.vue | 116 ++--- .../components/harmonicRatio‌.vue | 93 ++-- .../components/overLimitDetails.vue | 32 +- .../cockpit/indicatorFittingChart/index.vue | 59 +-- .../listOfMainMonitoringPoints/index.vue | 27 +- .../components/overLimitDetails.vue | 15 +- .../cockpit/monitoringPointList/index.vue | 117 ++--- .../components/overLimitDetails.vue | 15 +- .../cockpit/overLimitStatistics/index.vue | 9 +- .../cockpit/sensitiveLoad/index.vue | 42 +- .../components/transientList.vue | 379 ++++++++------- .../cockpit/transientDetails/index.vue | 2 +- .../cockpit/transientDistribution/index.vue | 58 +-- .../components/transientStatisticsDetail.vue | 348 ++++++++------ .../cockpit/transientStatistics/index.vue | 68 +-- .../cockpit/trendComparison/index.vue | 192 ++++---- src/components/echarts/MyEchart.vue | 6 +- src/components/echarts/rmsboxi.vue | 10 +- src/components/echarts/shushiboxi.vue | 8 +- src/components/table/header/index.vue | 4 +- src/components/tree/govern/APFTree.vue | 168 +++++++ src/utils/request.ts | 6 +- src/views/govern/alarm/Device.vue | 12 +- src/views/govern/alarm/Front.vue | 24 +- src/views/govern/alarm/Transient.vue | 46 +- src/views/govern/alarm/index.vue | 9 +- src/views/govern/alarm/multiCondition.vue | 59 ++- src/views/govern/analyze/APF/APF.vue | 448 +++++++++++++++++ src/views/govern/analyze/APF/index.vue | 449 +----------------- src/views/govern/analyze/DVR/index.vue | 295 ++++++------ src/views/govern/cloudDeviceEntry/index.vue | 121 +++-- src/views/govern/device/control/index.vue | 1 + .../device/control/nearRealTimeData.vue | 330 ++++++++----- .../govern/device/control/tabs/event.vue | 20 +- .../govern/device/control/tabs/trend.vue | 2 + .../device/planData/components/transient.vue | 15 +- .../planData/components/treeTransfers.vue | 40 +- src/views/govern/log/components/front.vue | 93 ++++ .../components/governance.vue} | 0 src/views/govern/log/debug.vue | 103 +--- .../govern/manage/components/factoryForm.vue | 256 ++++++++++ src/views/govern/manage/factory.vue | 360 ++++---------- src/views/govern/manage/monthly.vue | 36 +- .../reportCore/statisticsWx/index_zl.vue | 282 ++++++----- src/views/govern/sensitiveLoadMange/index.vue | 7 +- .../homePage/components/routingConfig.vue | 15 +- src/views/pqs/cockpit/realTimeData/index.vue | 4 +- src/views/setting/dictionary/list/detail.vue | 23 +- src/views/setting/dictionary/list/index.vue | 10 +- src/views/setting/dictionary/tree/index.vue | 32 +- 61 files changed, 3393 insertions(+), 2406 deletions(-) create mode 100644 src/components/cockpit/ITICurve/index.vue create mode 100644 src/components/tree/govern/APFTree.vue create mode 100644 src/views/govern/analyze/APF/APF.vue create mode 100644 src/views/govern/log/components/front.vue rename src/views/govern/{alarm/Abnormal.vue => log/components/governance.vue} (100%) create mode 100644 src/views/govern/manage/components/factoryForm.vue diff --git a/src/api/cs-device-boot/csLedger.ts b/src/api/cs-device-boot/csLedger.ts index b8e070c..25c0db3 100644 --- a/src/api/cs-device-boot/csLedger.ts +++ b/src/api/cs-device-boot/csLedger.ts @@ -25,7 +25,6 @@ export function objTree() { }) } - //云设备录入树 export function getCldTree() { return createAxios({ @@ -40,4 +39,11 @@ export function lineTree() { method: 'POST' }) } - +//APF报表树 +export function getUserDevTree(data) { + return createAxios({ + url: '/cs-harmonic-boot/pqSensitiveUser/getUserDevTree', + method: 'POST', + params: data + }) +} diff --git a/src/api/cs-system-boot/device.ts b/src/api/cs-system-boot/device.ts index 80c0fdf..fa59ec2 100644 --- a/src/api/cs-system-boot/device.ts +++ b/src/api/cs-system-boot/device.ts @@ -35,7 +35,7 @@ export const editEquipmentDelivery = (data: any) => { return createAxios({ url: '/cs-device-boot/EquipmentDelivery/updateEquipmentDelivery', method: 'POST', - data: data + data }) } diff --git a/src/components/cockpit/F47Curve/index.vue b/src/components/cockpit/F47Curve/index.vue index 2302853..aed511c 100644 --- a/src/components/cockpit/F47Curve/index.vue +++ b/src/components/cockpit/F47Curve/index.vue @@ -106,9 +106,9 @@ const tableStore: any = new TableStore({ text: `F47曲线` }, legend: { - data: ['可容忍事件', '不可容忍事件'], - itemWidth: 10, - itemHeight: 10, + data: ['分割线', '可容忍事件', '不可容忍事件'], + // itemWidth: 10, + // itemHeight: 10, itemGap: 15 }, tooltip: { @@ -132,9 +132,14 @@ const tableStore: any = new TableStore({ formatter: function (a: any) { var relVal = `${a.seriesName}
` - relVal += "发生时间:" + a.value[2] + '
' - relVal += "持续时间:" + a.value[0] + 's
' - relVal += "特征幅值:" + Math.floor(a.value[1] * 100) / 100 + '%' + relVal += "发生时间:" + a.value[2] + '
' + relVal += "特征幅值:" + Math.floor(a.value[1] * 100) / 100 + '%
' + relVal += "持续时间:" + a.value[0] + 's
' + relVal += "监测点名称:" + (a.value[4] || '/') + '
' + relVal += "设备名称:" + (a.value[5] || '/') + '
' + relVal += "项目名称:" + (a.value[6] || '/') + '
' + relVal += "工程名称:" + (a.value[7] || '/') + '' + return relVal } }, @@ -171,7 +176,7 @@ const tableStore: any = new TableStore({ dataZoom: null, series: [ { - name: '边界线', + name: '分割线', type: 'line', data: [ [0.05, 0], @@ -184,6 +189,7 @@ const tableStore: any = new TableStore({ [1000, 80] ], showSymbol: false, + tooltips: { show: false } @@ -268,8 +274,11 @@ function gongfunction(arr: any) { let time = arr[i].time let eventId = arr[i].eventId let lineName = arr[i].lineName + let equipmentName = arr[i].equipmentName + let projectName = arr[i].projectName + let engineeringName = arr[i].engineeringName // let index =arr[i].eventDetailIndex; - point = [xx, yy, time, eventId, lineName] + point = [xx, yy, time, eventId, lineName, equipmentName, projectName, engineeringName] if (xx <= 0.003) { let line = 0 diff --git a/src/components/cockpit/ITICurve/index.vue b/src/components/cockpit/ITICurve/index.vue new file mode 100644 index 0000000..44bf1d4 --- /dev/null +++ b/src/components/cockpit/ITICurve/index.vue @@ -0,0 +1,439 @@ + + + diff --git a/src/components/cockpit/directionStatistics/index.vue b/src/components/cockpit/directionStatistics/index.vue index 2894ee2..2044f2d 100644 --- a/src/components/cockpit/directionStatistics/index.vue +++ b/src/components/cockpit/directionStatistics/index.vue @@ -1,20 +1,10 @@ diff --git a/src/components/cockpit/exceedanceLevel/index.vue b/src/components/cockpit/exceedanceLevel/index.vue index 89a9db1..13480eb 100644 --- a/src/components/cockpit/exceedanceLevel/index.vue +++ b/src/components/cockpit/exceedanceLevel/index.vue @@ -81,51 +81,68 @@ const tableStore: any = new TableStore({ { title: '指标名称', field: 'name', - minWidth: '90' + minWidth: 120 + }, + { + title: '越限最高监测点', + field: 'lineName', + minWidth: 120, + formatter: (row: any) => { + return row.cellValue || '/' + } + }, + { + title: '设备名称', field: 'devName', minWidth: 130, align: 'center', formatter: (row: any) => { + return row.cellValue || '/' + } + }, + { + title: '项目名称', field: 'projectName', minWidth: 130, align: 'center', formatter: (row: any) => { + return row.cellValue || '/' + } + }, + { + title: '工程名称', field: 'engineeringName', minWidth: 130, align: 'center', formatter: (row: any) => { + return row.cellValue || '/' + } }, - { title: '越限最大值', field: 'maxValue', - minWidth: '70', + minWidth: 100, render: 'customTemplate', customTemplate: (row: any) => { const extentValue = row.maxValue !== null && row.maxValue !== undefined && row.maxValue !== '' ? Math.floor(row.maxValue * 100) / 100 : '/' - return `${extentValue}` + return extentValue=='/' ? '/' : `${extentValue}` } }, { title: '国标限值', field: 'internationalValue', - minWidth: '60' + minWidth: 100, formatter: (row: any) => { + return row.cellValue || '/' + } }, { title: '越限程度(%)', field: 'extent', - minWidth: '70', + minWidth: 100, formatter: (row: any) => { - return Math.floor(row.cellValue * 100) / 100 + return row.cellValue? Math.floor(row.cellValue * 100) / 100 : '/' } }, { title: '越限时间', field: 'time', - minWidth: '60', + minWidth: 100, formatter: (row: any) => { return row.cellValue || '/' } }, - { - title: '越限最高监测点', - field: 'lineName', - minWidth: '90', - formatter: (row: any) => { - return row.cellValue || '/' - } - } + ], beforeSearchFun: () => { setTime() diff --git a/src/components/cockpit/governanceReport/index.vue b/src/components/cockpit/governanceReport/index.vue index 0ec14ec..f44ad42 100644 --- a/src/components/cockpit/governanceReport/index.vue +++ b/src/components/cockpit/governanceReport/index.vue @@ -1,33 +1,44 @@ diff --git a/src/components/cockpit/indicatorCrossingTime/index.vue b/src/components/cockpit/indicatorCrossingTime/index.vue index 92e862c..5698468 100644 --- a/src/components/cockpit/indicatorCrossingTime/index.vue +++ b/src/components/cockpit/indicatorCrossingTime/index.vue @@ -1,47 +1,32 @@ @@ -59,7 +45,7 @@ import TableHeader from '@/components/table/header/index.vue' import MyEchart from '@/components/echarts/MyEchart.vue' import { limitProbabilityData, cslineList } from '@/api/harmonic-boot/cockpit/cockpit' import { getTime } from '@/utils/formatTime' - +import PointTree from '@/components/tree/govern/pointTree.vue' const prop = defineProps({ w: { type: [String, Number] }, h: { type: [String, Number] }, @@ -67,7 +53,8 @@ const prop = defineProps({ height: { type: [String, Number] }, timeKey: { type: Array as () => string[] }, timeValue: { type: Object }, - interval: { type: Number } + interval: { type: Number }, + flag: { type: Boolean } }) // const options = ref(JSON.parse(window.localStorage.getItem('lineIdList') || '[]')) @@ -106,17 +93,28 @@ const echartList1 = ref() const probabilityData = ref() -const initLineList = async () => { - cslineList({}).then(res => { - if (res.data.length == 0) { - lineShow.value = false - return (tableStore.table.loading = false) - } - lineShow.value = true - lineList.value = res.data - tableStore.table.params.lineId = lineList.value[0].lineId +// const initLineList = async () => { +// cslineList({}).then(res => { +// if (res.data.length == 0) { +// lineShow.value = false +// return (tableStore.table.loading = false) +// } +// lineShow.value = true +// lineList.value = res.data +// tableStore.table.params.lineId = lineList.value[0].lineId +// tableStore.index() +// }) +// } +const nodeClick = (e: any) => { + if (e == undefined) { + } + if (e.level == 3) { + tableStore.table.params.lineId = e.id tableStore.index() - }) + } +} +const pointTypeChange = (val: any, obj: any) => { + nodeClick(obj) } // 越限程度概率分布 @@ -438,7 +436,7 @@ const tableStore: any = new TableStore({ provide('tableStore', tableStore) onMounted(() => { - initLineList() + // initLineList() }) const setTime = () => { @@ -475,6 +473,14 @@ watch( } ) -const addMenu = () => {} +const addMenu = () => { } - + diff --git a/src/components/cockpit/indicatorDistribution/index.vue b/src/components/cockpit/indicatorDistribution/index.vue index 1bfe037..f6c52fe 100644 --- a/src/components/cockpit/indicatorDistribution/index.vue +++ b/src/components/cockpit/indicatorDistribution/index.vue @@ -1,46 +1,31 @@ - + diff --git a/src/components/cockpit/indicatorFittingChart/components/harmonicRatio‌.vue b/src/components/cockpit/indicatorFittingChart/components/harmonicRatio‌.vue index 6565f44..15b586a 100644 --- a/src/components/cockpit/indicatorFittingChart/components/harmonicRatio‌.vue +++ b/src/components/cockpit/indicatorFittingChart/components/harmonicRatio‌.vue @@ -1,5 +1,5 @@