diff --git a/src/components/cockpit/monitoringPointList/index.vue b/src/components/cockpit/monitoringPointList/index.vue
index 8b11b69..1d002ad 100644
--- a/src/components/cockpit/monitoringPointList/index.vue
+++ b/src/components/cockpit/monitoringPointList/index.vue
@@ -62,7 +62,7 @@ import OverLimitDetails from '@/components/cockpit/monitoringPointList/component
import TableHeader from '@/components/table/header/index.vue'
import { uploadReport, getReportUrl } from '@/api/harmonic-boot/cockpit/cockpit'
import { getTime } from '@/utils/formatTime'
-import { useDictData } from '@/stores/dictData'
+
const prop = defineProps({
w: { type: [String, Number] },
h: { type: [String, Number] },
@@ -72,8 +72,7 @@ const prop = defineProps({
timeValue: { type: Object },
interval: { type: Number }
})
-const dictData = useDictData()
-const monitorObjList = dictData.getBasicData('Line_Position')
+
const headerHeight = ref(57)
const TableHeaderRef = ref()
@@ -123,19 +122,19 @@ const tableStore: any = new TableStore({
},
{
title: '监测点名称',
- field: 'name',
+ field: 'lineName',
minWidth: '120',
render: 'customTemplate',
customTemplate: (row: any) => {
- return `${row.name}`
+ return `${row.lineName}`
}
},
{
- title: '监测位置',
+ title: '监测类型',
field: 'position',
minWidth: '80',
formatter: (row: any) => {
- return monitorObjList.filter(item => item.id == row.cellValue)[0]?.name || '/'
+ return row.cellValue || '/'
}
},
// {
@@ -154,19 +153,21 @@ const tableStore: any = new TableStore({
width: 100,
custom: {
- 0: 'success',
- 1: 'warning',
- 2: 'danger',
- 3: 'warning',
- 4: 'danger',
+ 停运: 'danger',
+ 退运: 'danger',
+ 运行: 'success',
+ 中断: 'warning',
+ 检修: 'warning',
+ 调试: 'warning',
null: 'info'
},
replaceValue: {
- 0: '运行',
- 1: '检修',
- 2: '停运',
- 3: '调试',
- 4: '退运',
+ 运行: '运行',
+ 退运: '退运',
+ 停运: '停运',
+ 中断: '中断',
+ 检修: '检修',
+ 调试: '调试',
null: '/'
}
},
@@ -182,10 +183,7 @@ const tableStore: any = new TableStore({
{
title: '电压等级',
field: 'volGrade',
- minWidth: '80',
- formatter: (row: any) => {
- return row.cellValue || '/'
- }
+ minWidth: '80'
},
{
title: '是否治理',
@@ -313,7 +311,7 @@ const setTime = () => {
// 点击行
const cellClickEvent = ({ row, column }: any) => {
- if (column.field == 'name') {
+ if (column.field == 'lineName') {
OverLimitDetailsRef.value.open(
row,
tableStore.table.params.searchBeginTime || prop.timeValue?.[0],