用户协议优化
This commit is contained in:
@@ -488,31 +488,33 @@ export default {
|
||||
})
|
||||
}
|
||||
}
|
||||
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.$util.getDictData('Line_Position').then((res) => {
|
||||
this.topolodyData = res.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()
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user