|
@@ -49,9 +49,9 @@ export default {
|
|
|
data() {
|
|
|
let data = {
|
|
|
backStageIp:"192.168.1.104" ,
|
|
|
- backStagePort:"8082" ,
|
|
|
+ backStagePort:"8082",
|
|
|
targetName:"日发电量",
|
|
|
- targetUnit:"kw/h",
|
|
|
+ targetUnit:"万kwh",
|
|
|
pointKey:"HB_GD_KBF_JS_P4_L19_220_CI0136",
|
|
|
targetdetail_visable: { targetdetail_target: true, targetdetail_curve: true, targetdetail_histogram: true},
|
|
|
targetdetail: { targetdetail_target: '', targetdetail_curve: '', targetdetail_histogram: ''},
|
|
@@ -91,9 +91,10 @@ export default {
|
|
|
onReady() {},
|
|
|
|
|
|
methods: {
|
|
|
- targetInformation(callTargetName,callTargetUnit){
|
|
|
+ targetInformation(pointKey,callTargetName,callTargetUnit){
|
|
|
this.address = this.getWindPowerStationNameToSessionStorage();
|
|
|
this.windPowerStationId = uni.getStorageSync('windPowerStationId');
|
|
|
+ this.pointKey = pointKey;
|
|
|
this.targetName = callTargetName;
|
|
|
this.targetUnit = callTargetUnit;
|
|
|
this.targetdetail_target();
|
|
@@ -126,7 +127,7 @@ export default {
|
|
|
this.socketTask_targetdetail_target.onMessage(res => {
|
|
|
//console.log("收到服务器内容:" + res.data);
|
|
|
_this.targetdetail.targetdetail_target =JSON.parse(res.data)[ip];
|
|
|
- console.log(_this.targetdetail.targetdetail_target);
|
|
|
+ //console.log(_this.targetdetail.targetdetail_target);
|
|
|
});
|
|
|
});
|
|
|
// 这里仅是事件监听【如果socket关闭了会执行】
|