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