消息推送
This commit is contained in:
@@ -156,32 +156,7 @@ export default {
|
||||
dictData: [],
|
||||
isPrimaryUser: 0,
|
||||
userInfo: {},
|
||||
topolodyData: [
|
||||
{
|
||||
label: '电网侧',
|
||||
linePostion: 'cb23b9ede3b652cd6da194fd7b318124',
|
||||
lat: '',
|
||||
lng: '',
|
||||
showKey: ['Pq_ThdU(%)', 'Pq_ThdI(%)'], //要展示的指标key
|
||||
value: [],// 展示的指标值
|
||||
},
|
||||
{
|
||||
label: '负载侧',
|
||||
linePostion: '32624d4bb3a86f2b9a01bab272e50125',
|
||||
lat: '',
|
||||
lng: '',
|
||||
showKey: ['Pq_ThdU(%)', 'Pq_ThdI(%)'], //要展示的指标key
|
||||
value: [],
|
||||
},
|
||||
{
|
||||
label: '输出侧',
|
||||
linePostion: '26eae70fb5ff1c090d2dc7c3a0743948',
|
||||
lat: '',
|
||||
lng: '',
|
||||
showKey: ['Apf_ThdA_Load(%)', 'Apf_ThdA_Sys(%)'], //要展示的指标key
|
||||
value: [],
|
||||
},
|
||||
],
|
||||
topolodyData: [],
|
||||
basicData: [],
|
||||
IOData: [],
|
||||
}
|
||||
@@ -268,7 +243,7 @@ export default {
|
||||
this.deviceInfo = res.data
|
||||
this.downloadImg()
|
||||
uni.setNavigationBarTitle({title: this.deviceInfo.devName || '设备详情'})
|
||||
this.topolodyData.filter((item) => {
|
||||
this.topolodyData = this.topolodyData.filter((item) => {
|
||||
let index = this.deviceInfo.appsLineTopologyDiagramPO.findIndex((element) => {
|
||||
element.label = element.name
|
||||
item.label = element.name
|
||||
@@ -283,6 +258,7 @@ export default {
|
||||
return false
|
||||
}
|
||||
})
|
||||
console.log(this.topolodyData)
|
||||
if (this.client) {
|
||||
this.loading = false
|
||||
} else {
|
||||
@@ -379,18 +355,19 @@ export default {
|
||||
})
|
||||
},
|
||||
handlerData(data) {
|
||||
this.basicData = data
|
||||
this.topolodyData.forEach((element) => {
|
||||
let arr = []
|
||||
element.showKey.forEach((key) => {
|
||||
data.forEach((item) => {
|
||||
if (item.statisticalName === key && item.phase === 'avg' && element.linePostion === item.position) {
|
||||
if (item.statisticalName === key && item.phase === 'avg' ) {
|
||||
arr.push(key + ':' + item.statisticalData)
|
||||
}
|
||||
})
|
||||
})
|
||||
element.value = arr
|
||||
})
|
||||
this.basicData = data
|
||||
console.log(this.topolodyData)
|
||||
this.$forceUpdate()
|
||||
},
|
||||
},
|
||||
@@ -434,6 +411,32 @@ export default {
|
||||
text: '用户',
|
||||
})
|
||||
}
|
||||
this.topolodyData = this.$util.getDictData('Line_Position').map(item => {
|
||||
switch (item.name) {
|
||||
case '电网侧':
|
||||
item.showKey = ['Apf_ThdA_Sys(%)']
|
||||
break
|
||||
case '负载侧':
|
||||
item.showKey = ['Apf_ThdA_Load(%)']
|
||||
break
|
||||
case '输出侧':
|
||||
item.showKey = ['Apf_RmsI_TolOut(A)']
|
||||
break
|
||||
case 'PCC公共点':
|
||||
item.showKey = []
|
||||
break
|
||||
default:
|
||||
break
|
||||
}
|
||||
return {
|
||||
label: item.name,
|
||||
linePostion: item.id,
|
||||
lat: '',
|
||||
lng: '',
|
||||
showKey: item.showKey, //要展示的指标key
|
||||
value: [],
|
||||
}
|
||||
})
|
||||
this.init()
|
||||
},
|
||||
}
|
||||
@@ -455,6 +458,7 @@ export default {
|
||||
position: relative;
|
||||
width: 375px;
|
||||
margin: 0 auto;
|
||||
overflow: hidden;
|
||||
|
||||
image {
|
||||
image-rendering: -moz-crisp-edges;
|
||||
|
||||
Reference in New Issue
Block a user