|
@@ -48,7 +48,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import WindturbineDetailPages from '../WindturbineDetailPages.vue'
|
|
|
+import WindturbineDetailPages from "../WindturbineDetailPages.vue";
|
|
|
export default {
|
|
|
name: "ControlMatrixCard",
|
|
|
props: { title: String, datas: Object, operateStyle: Number },
|
|
@@ -56,7 +56,7 @@ export default {
|
|
|
return {
|
|
|
values: [],
|
|
|
dialogVisible: false,
|
|
|
- currentWindturbine:{},
|
|
|
+ currentWindturbine: {},
|
|
|
};
|
|
|
},
|
|
|
components: {
|
|
@@ -73,7 +73,7 @@ export default {
|
|
|
|
|
|
sendMsg: function (itm) {
|
|
|
this.dialogVisible = true;
|
|
|
- this.currentWindturbine=itm;
|
|
|
+ this.currentWindturbine = itm;
|
|
|
},
|
|
|
|
|
|
/* 获取选中的项目 */
|
|
@@ -143,7 +143,7 @@ export default {
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
- val[item]=0;
|
|
|
+ val[item] = 0;
|
|
|
var obj = {
|
|
|
active: active,
|
|
|
status: status,
|
|
@@ -156,19 +156,22 @@ export default {
|
|
|
stationId: data.stationId,
|
|
|
controlType: this.operateStyle,
|
|
|
};
|
|
|
+ if (obj.modelId.indexOf("105") >= 0) {
|
|
|
+ obj.rollSpeed *= 9.55;
|
|
|
+ }
|
|
|
// 替换实时刷新的值
|
|
|
this.values.splice(i, 1, obj);
|
|
|
});
|
|
|
|
|
|
var lls = new Array();
|
|
|
- for(var i1 = 0;i1<this.values.length;++i1){
|
|
|
+ for (var i1 = 0; i1 < this.values.length; ++i1) {
|
|
|
var vvv = this.values[i1];
|
|
|
- if(typeof(val[vvv.windturbineId])==='undefined'){
|
|
|
+ if (typeof val[vvv.windturbineId] === "undefined") {
|
|
|
lls.push(i1);
|
|
|
}
|
|
|
}
|
|
|
- for(var v2 in lls){
|
|
|
- this.values.splice(v2,1);
|
|
|
+ for (var v2 in lls) {
|
|
|
+ this.values.splice(v2, 1);
|
|
|
}
|
|
|
},
|
|
|
},
|