diff --git a/src/api/cs-harmonic-boot/datatrend.ts b/src/api/cs-harmonic-boot/datatrend.ts index 7512a58..8b382eb 100644 --- a/src/api/cs-harmonic-boot/datatrend.ts +++ b/src/api/cs-harmonic-boot/datatrend.ts @@ -1,22 +1,31 @@ -import createAxios from '@/utils/request' - -// 查询设备数据趋势 -export function getDeviceDataTrend(data: any) { - return createAxios({ - url: '/cs-harmonic-boot/datatrend/querydatatrend', - method: 'POST', - data - }) -} - - - -// 波形下载 -export function getFileZip(params: any) { - return createAxios({ - url: '/cs-harmonic-boot/event/getFileZip', - method: 'get', - params, - responseType: 'blob' - }) -} +import createAxios from '@/utils/request' + +// 查询设备数据趋势 +export function getDeviceDataTrend(data: any) { + return createAxios({ + url: '/cs-harmonic-boot/datatrend/querydatatrend', + method: 'POST', + data + }) +} + + + +// 波形下载 +export function getFileZip(params: any) { + return createAxios({ + url: '/cs-harmonic-boot/event/getFileZip', + method: 'get', + params, + responseType: 'blob' + }) +} + +export function exportModel(data: any) { + return createAxios({ + url: '/cs-harmonic-boot/exportmodel/exportModel', + method: 'post', + data: data, + responseType: 'blob' + }) +} diff --git a/src/assets/img/jss.png b/src/assets/img/jss.png new file mode 100644 index 0000000..b3512ea Binary files /dev/null and b/src/assets/img/jss.png differ diff --git a/src/components/cockpit/directionStatistics/index.vue b/src/components/cockpit/directionStatistics/index.vue index 344d1e9..a4e9900 100644 --- a/src/components/cockpit/directionStatistics/index.vue +++ b/src/components/cockpit/directionStatistics/index.vue @@ -102,8 +102,8 @@ const tableStore: any = new TableStore({ }, legend: { orient: 'vertical', - top: 'center', - right: '5%', + top: '50', + right: '10', formatter: function (name: string) { const item = chartData.value.find((i: any) => i.name === name) return item ? `${name} ${item.value}次` : name diff --git a/src/components/cockpit/transientStatistics/index.vue b/src/components/cockpit/transientStatistics/index.vue index 0c88236..580cbe2 100644 --- a/src/components/cockpit/transientStatistics/index.vue +++ b/src/components/cockpit/transientStatistics/index.vue @@ -106,8 +106,8 @@ const eventEcharts = () => { }, legend: { orient: 'vertical', - top: 'center', - right: '5%', + top: '50', + right: '10', formatter: function (e: any) { return e + ' ' + data.value.filter((item: any) => item.name == e)[0].value + '次' } diff --git a/src/components/tree/govern/pointTreeWx.vue b/src/components/tree/govern/pointTreeWx.vue index 1698ae7..9f8d506 100644 --- a/src/components/tree/govern/pointTreeWx.vue +++ b/src/components/tree/govern/pointTreeWx.vue @@ -1,181 +1,196 @@ - - - - + + + + diff --git a/src/views/govern/cloudDeviceEntry/index.vue b/src/views/govern/cloudDeviceEntry/index.vue index 2550504..5321cda 100644 --- a/src/views/govern/cloudDeviceEntry/index.vue +++ b/src/views/govern/cloudDeviceEntry/index.vue @@ -855,6 +855,31 @@ + + + + + + + + + + @@ -1059,6 +1084,7 @@ interface LineInfo { monitorUser: string monitorObj: string govern: string | number + runStatus: string | number basicCapacity: number shortCircuitCapacity: number devCapacity: number @@ -1437,6 +1463,7 @@ const add = () => { devMac: '', monitorObj: '', govern: 0, + runStatus: 0, basicCapacity: 0, shortCircuitCapacity: 0, devCapacity: 0, @@ -1612,6 +1639,7 @@ const updateLineFunc = (id: any) => { monitorUser: currentLine.monitorUser || '', monitorObj: currentLine.monitorObj || '', govern: currentLine.govern , + runStatus: currentLine.runStatus , basicCapacity: currentLine.basicCapacity || 0, shortCircuitCapacity: currentLine.shortCircuitCapacity || 0, devCapacity: currentLine.devCapacity || 0, @@ -1805,6 +1833,7 @@ const next = async () => { devMac: '', monitorObj: '', govern: 0, + runStatus: 0, basicCapacity: 0, shortCircuitCapacity: 0, devCapacity: 0, @@ -2215,6 +2244,7 @@ const resetAllForms = () => { line.monitorUser = '' line.monitorObj = '' line.govern = 0 + line.runStatus = 0 line.basicCapacity = 0 line.shortCircuitCapacity = 0 line.devCapacity = 0 @@ -2381,6 +2411,7 @@ const submitData = () => { monitorUser: currentLine.monitorUser, monitorObj: currentLine.monitorObj, govern: currentLine.govern, + runStatus: currentLine.runStatus, basicCapacity: currentLine.basicCapacity, shortCircuitCapacity: currentLine.shortCircuitCapacity, devCapacity: currentLine.devCapacity, @@ -2567,6 +2598,7 @@ const handleLineTabsEdit = (targetName: any, action: any) => { monitorUser: '', monitorObj: '', govern: 0, + runStatus: 0, basicCapacity: 0, shortCircuitCapacity: 0, devCapacity: 0, diff --git a/src/views/govern/reportCore/report/index.vue b/src/views/govern/reportCore/report/index.vue new file mode 100644 index 0000000..a4e4a8e --- /dev/null +++ b/src/views/govern/reportCore/report/index.vue @@ -0,0 +1,180 @@ + + + +