调整现场部署报错问题

This commit is contained in:
guanj
2025-12-02 15:23:56 +08:00
parent 5443996fa9
commit c779bec0cb
8 changed files with 487 additions and 484 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.9 KiB

View File

@@ -7,7 +7,7 @@ import Array from '@/components/baInput/components/array.vue'
import RemoteSelect from '@/components/baInput/components/remoteSelect.vue' import RemoteSelect from '@/components/baInput/components/remoteSelect.vue'
import IconSelector from '@/components/baInput/components/iconSelector.vue' import IconSelector from '@/components/baInput/components/iconSelector.vue'
import Editor from '@/components/baInput/components/editor.vue' import Editor from '@/components/baInput/components/editor.vue'
import { getArea } from '@/api/common' // import { getArea } from '@/api/common'
export default defineComponent({ export default defineComponent({
name: 'baInput', name: 'baInput',

View File

@@ -202,6 +202,8 @@ const tableStore: any = new TableStore({
} }
}) })
tableStore.table.params.deptId = dictData.state.area[0].id tableStore.table.params.deptId = dictData.state.area[0].id
tableStore.table.params.alarmDayLimit = 5
tableStore.table.params.warnDayLimit = 1
const echart = () => { const echart = () => {
percentage.value = { percentage.value = {
color: ['#FF9100'], color: ['#FF9100'],

View File

@@ -13,7 +13,7 @@
<script> <script>
import { mapState } from 'pinia' import { mapState } from 'pinia'
import { globalStore } from '@/stores/indexs' // import { globalStore } from '@/stores/indexs'
const FormContainerTypeEnum = { const FormContainerTypeEnum = {
DRAWER: 'drawer', DRAWER: 'drawer',
@@ -29,7 +29,7 @@ export default {
} }
}, },
computed: { computed: {
...mapState(globalStore, ['formStyle']), // ...mapState(globalStore, ['formStyle']),
slotKeys() { slotKeys() {
return Object.keys(this.$slots) return Object.keys(this.$slots)
}, },

View File

@@ -9,7 +9,7 @@
label-position="left" label-position="left"
:inline="true" :inline="true"
> >
<el-form-item v-if="datePicker" style="grid-column: span 2; max-width: 620px"> <el-form-item v-if="datePicker" style="grid-column: span 2; max-width: 630px">
<template #label> <template #label>
<el-checkbox v-if="showTimeAll" v-model="timeAll" label="时间" /> <el-checkbox v-if="showTimeAll" v-model="timeAll" label="时间" />
<span v-else>{{ dateLabel }}</span> <span v-else>{{ dateLabel }}</span>

View File

@@ -34,7 +34,11 @@
<div class="divBox"> <div class="divBox">
<span class="iconfont icon-qiyezongshu" style="color: #57bc6e"></span> <span class="iconfont icon-qiyezongshu" style="color: #57bc6e"></span>
<span class="divBox_title">监测点总数</span> <span class="divBox_title">监测点总数</span>
<span class="divBox_num text-style" style="color: #57bc6e" @click="totalTable(101, '')"> <span
class="divBox_num text-style"
style="color: #57bc6e"
@click="totalTable(100001, '')"
>
{{ monitoringPoints.runNum }} {{ monitoringPoints.runNum }}
</span> </span>
</div> </div>
@@ -105,7 +109,7 @@
<span <span
style="width: 90px; color: #388e3c" style="width: 90px; color: #388e3c"
class="text text-style" class="text text-style"
@click="renderTable(o.detailList, 101, o.citName + '_')" @click="renderTable(o.detailList, 100001, o.citName + '_')"
> >
{{ o.citTotalNum }} {{ o.citTotalNum }}
</span> </span>
@@ -156,7 +160,7 @@
</span> </span>
</template> </template>
</vxe-column> </vxe-column>
<vxe-column field="cit" title="参数地市" width="110px"></vxe-column> <vxe-column field="cit" title="所在地市" width="110px"></vxe-column>
<vxe-column field="company" title="供电公司"></vxe-column> <vxe-column field="company" title="供电公司"></vxe-column>
<vxe-column field="subStation" title="变电站"></vxe-column> <vxe-column field="subStation" title="变电站"></vxe-column>
<vxe-column field="manufacturer" title="终端厂家"></vxe-column> <vxe-column field="manufacturer" title="终端厂家"></vxe-column>
@@ -242,7 +246,6 @@ const runFlagList = [
{ id: 3, name: '调试' }, { id: 3, name: '调试' },
{ id: 4, name: '退运' } { id: 4, name: '退运' }
] ]
// Statistical_Type
const segmented = ref('Power_Network') const segmented = ref('Power_Network')
@@ -261,7 +264,6 @@ const tableStore = new TableStore({
tableStore.table.params.statisticalType = segmentedList.filter(item => item.code === segmented.value)[0] tableStore.table.params.statisticalType = segmentedList.filter(item => item.code === segmented.value)[0]
}, },
loadCallback: () => { loadCallback: () => {
// tableStore.table.data
monitoringPoints.value.runNum = tableStore.table.data.totalNum monitoringPoints.value.runNum = tableStore.table.data.totalNum
monitoringPoints.value.abnormalNum = tableStore.table.data.belowNum monitoringPoints.value.abnormalNum = tableStore.table.data.belowNum
monitoringPoints.value.totalOnlineRate = tableStore.table.data.totalOnlineRate - 0 monitoringPoints.value.totalOnlineRate = tableStore.table.data.totalOnlineRate - 0
@@ -272,14 +274,14 @@ const tableStore = new TableStore({
.map((item: any) => item.detailList) .map((item: any) => item.detailList)
.flat() .flat()
.reduce((map: any, item: any) => { .reduce((map: any, item: any) => {
if (!map.has(item.deviceId)) { if (!map.has(item.lineId)) {
map.set(item.deviceId, item) map.set(item.lineId, item)
} }
return map return map
}, new Map()) }, new Map())
.values() .values()
) )
totalTable(101, '') totalTable(100001, '')
echart() echart()
} }
}) })
@@ -346,7 +348,7 @@ const echart = () => {
name: '异常占比', name: '异常占比',
type: 'bar', type: 'bar',
barWidth: 13, barWidth: 13,
data: [monitoringPoints.value.totalOnlineRate ==0?'':monitoringPoints.value.totalOnlineRate], data: [monitoringPoints.value.totalOnlineRate == 0 ? '' : monitoringPoints.value.totalOnlineRate],
z: 0, z: 0,
zlevel: 0, zlevel: 0,
itemStyle: { itemStyle: {

View File

@@ -34,7 +34,7 @@
<div class="divBox"> <div class="divBox">
<span class="iconfont icon-qiyezongshu" style="color: #57bc6e"></span> <span class="iconfont icon-qiyezongshu" style="color: #57bc6e"></span>
<span class="divBox_title">终端总数</span> <span class="divBox_title">终端总数</span>
<span class="divBox_num text-style" style="color: #57bc6e" @click="totalTable(101, '')"> <span class="divBox_num text-style" style="color: #57bc6e" @click="totalTable(100001, '')">
{{ monitoringPoints.runNum }} {{ monitoringPoints.runNum }}
</span> </span>
</div> </div>
@@ -105,7 +105,7 @@
<span <span
style="width: 90px; color: #388e3c" style="width: 90px; color: #388e3c"
class="text text-style" class="text text-style"
@click="renderTable(o.detailList, 101, o.citName + '_')" @click="renderTable(o.detailList, 100001, o.citName + '_')"
> >
{{ o.citTotalNum }} {{ o.citTotalNum }}
</span> </span>
@@ -156,7 +156,7 @@
</span> </span>
</template> </template>
</vxe-column> </vxe-column>
<vxe-column field="cit" title="参数地市" width="110px"></vxe-column> <vxe-column field="cit" title="所在地市" width="110px"></vxe-column>
<vxe-column field="company" title="供电公司"></vxe-column> <vxe-column field="company" title="供电公司"></vxe-column>
<vxe-column field="subStation" title="变电站"></vxe-column> <vxe-column field="subStation" title="变电站"></vxe-column>
<vxe-column field="manufacturer" title="终端厂家"></vxe-column> <vxe-column field="manufacturer" title="终端厂家"></vxe-column>
@@ -259,7 +259,6 @@ const tableStore = new TableStore({
tableStore.table.params.statisticalType = segmentedList.filter(item => item.code === segmented.value)[0] tableStore.table.params.statisticalType = segmentedList.filter(item => item.code === segmented.value)[0]
}, },
loadCallback: () => { loadCallback: () => {
// tableStore.table.data
monitoringPoints.value.runNum = tableStore.table.data.totalNum monitoringPoints.value.runNum = tableStore.table.data.totalNum
monitoringPoints.value.abnormalNum = tableStore.table.data.belowNum monitoringPoints.value.abnormalNum = tableStore.table.data.belowNum
monitoringPoints.value.totalOnlineRate = tableStore.table.data.totalOnlineRate - 0 monitoringPoints.value.totalOnlineRate = tableStore.table.data.totalOnlineRate - 0
@@ -278,7 +277,7 @@ const tableStore = new TableStore({
.values() .values()
) )
totalTable(101, '') totalTable(100001, '')
echart() echart()
} }
}) })

View File

@@ -138,7 +138,7 @@
</span> </span>
</template> </template>
</vxe-column> </vxe-column>
<vxe-column field="cit" title="参数地市" width="110px"></vxe-column> <vxe-column field="cit" title="所在地市" width="110px"></vxe-column>
<vxe-column field="company" title="供电公司"></vxe-column> <vxe-column field="company" title="供电公司"></vxe-column>
<vxe-column field="subName" title="变电站"></vxe-column> <vxe-column field="subName" title="变电站"></vxe-column>
<vxe-column field="manufacturer" title="终端厂家"></vxe-column> <vxe-column field="manufacturer" title="终端厂家"></vxe-column>