|
@@ -28,6 +28,12 @@
|
|
|
</el-select>
|
|
|
</div>
|
|
|
</div>
|
|
|
+ <div class="query-item">
|
|
|
+ <div class="lable">风机型号:</div>
|
|
|
+ <div class="lable">
|
|
|
+ {{modelid}}
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
<div class="query-actions">
|
|
|
<button class="btn green" @click="query(0)">查询</button>
|
|
|
</div>
|
|
@@ -83,17 +89,17 @@
|
|
|
</panel>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
-
|
|
|
</el-col>
|
|
|
<el-col :span="12">
|
|
|
<panel title="残差 【预测记录】" :showLine="false">
|
|
|
- <double-line-chart height="35vh" :list='ccChart' />
|
|
|
+ <double-line-chart height="25vh" :list='ccChart' />
|
|
|
+ <double-line-chart height="20vh" :list='ccLineChart' />
|
|
|
<div class="green text">
|
|
|
- 依据当前的模型,油温误差大于0.1,预计在[时间],齿轮箱会发生油温故障
|
|
|
+ 依据当前的模型,{{forekonw?'油温误差大于0.1,预计在'+forekonw+',齿轮箱会发生油温异常':'没有油温误差大于0.1的齿轮箱油温异常'}}。
|
|
|
</div>
|
|
|
</panel>
|
|
|
<panel title="油温 【预测记录】" :showLine="false">
|
|
|
- <double-line-chart height="35vh" :list='ywChart' />
|
|
|
+ <double-line-chart height="25vh" :list='ywChart' />
|
|
|
<div class="green text">
|
|
|
预计未来10分钟的油温走势,当前时间为{{new Date(endTs).formatDate("yyyy-MM-dd hh:mm")}},当前油温: {{ywChartHtml[0]}}
|
|
|
℃,未来10分钟油温:{{ywChartHtml[1]}} ℃ 。
|
|
@@ -134,22 +140,26 @@
|
|
|
smooth: true,
|
|
|
value: []
|
|
|
}, {
|
|
|
- title: "油温残差",
|
|
|
+ title: "理论油温",
|
|
|
smooth: true,
|
|
|
value: []
|
|
|
- }, {
|
|
|
- title: "理论油温",
|
|
|
+ }],
|
|
|
+ ccLineChart:[{
|
|
|
+ title: "油温残差",
|
|
|
smooth: true,
|
|
|
value: []
|
|
|
}],
|
|
|
startTs: '',
|
|
|
endTs: '',
|
|
|
date: [],
|
|
|
- uniformCodes: ['CI0671', 'AI041'],
|
|
|
+ uniformCodes: ['CI0671', 'AI041','YWCH','LLYW'],
|
|
|
interval: null,
|
|
|
+ interval2: null,
|
|
|
flag: 1,
|
|
|
ccS: [],
|
|
|
- ywS: []
|
|
|
+ ywS: [],
|
|
|
+ modelid:'',
|
|
|
+ forekonw:0
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
@@ -179,7 +189,16 @@
|
|
|
that.ccChart[0].value = items;
|
|
|
}
|
|
|
if (uniformCode === 'CI0671') {
|
|
|
- that.ywChart[1].value = items
|
|
|
+ that.ywChart[1].value = items;
|
|
|
+ }
|
|
|
+ if (uniformCode === 'YWCH') {
|
|
|
+ that.ccLineChart[0].value = items;
|
|
|
+ if(items.pop().value >= 0.1){
|
|
|
+ that.forekonw = item.value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (uniformCode === 'LLYW') {
|
|
|
+ that.ccChart[1].value = items;
|
|
|
}
|
|
|
},
|
|
|
async list(thingId) { //一秒一次
|
|
@@ -218,12 +237,22 @@
|
|
|
this.mxjl();
|
|
|
},
|
|
|
ywYc() { //油温预测记录
|
|
|
- this.ywChart[0].value = [];
|
|
|
- this.ywChart[1].value = [];
|
|
|
+ this.ccChart[0].value = [];
|
|
|
+ this.ccChart[1].value = [];
|
|
|
+ this.ccLineChart[0].value = [];
|
|
|
this.uniformCodes.forEach(ele => {
|
|
|
this.history(this.fj, ele);
|
|
|
})
|
|
|
-
|
|
|
+ clearInterval(this.interval2);
|
|
|
+ this.interval2 = null;
|
|
|
+ this.interval2 = setInterval(() => {
|
|
|
+ this.uniformCodes.forEach(ele => {
|
|
|
+ this.history(this.fj, ele);
|
|
|
+ })
|
|
|
+ }, 60000);
|
|
|
+//////上面残差,下面油温
|
|
|
+ this.ywChart[0].value = [];
|
|
|
+ this.ywChart[1].value = [];
|
|
|
this.list(this.fj);
|
|
|
clearInterval(this.interval);
|
|
|
this.interval = null;
|
|
@@ -244,11 +273,10 @@
|
|
|
let data = {
|
|
|
name: ele.name,
|
|
|
time: ele.name.split('_')[1],
|
|
|
- faultIds: ele.faultIds ? ele.faultIds : '暂无数据 '
|
|
|
+ faultIds: ele.faultIds ? ele.faultIds : '暂无数据'
|
|
|
};
|
|
|
ele.name.split('_')[0] === '残差' ? cc.push(data) : yw.push(data);
|
|
|
})
|
|
|
-
|
|
|
that.ccS = cc;
|
|
|
that.ywS = yw;
|
|
|
},
|
|
@@ -273,11 +301,13 @@
|
|
|
}
|
|
|
},
|
|
|
});
|
|
|
- },
|
|
|
+ }
|
|
|
},
|
|
|
unmounted() {
|
|
|
clearInterval(this.interval);
|
|
|
this.interval = null;
|
|
|
+ clearInterval(this.interval2);
|
|
|
+ this.interval2 = null;
|
|
|
},
|
|
|
watch: {
|
|
|
// YWCH 油温残差
|
|
@@ -306,6 +336,19 @@
|
|
|
date(e) {
|
|
|
this.startTs = e[0].valueOf();
|
|
|
this.endTs = e[1].valueOf();
|
|
|
+ },
|
|
|
+ fj(e){
|
|
|
+ let that = this;
|
|
|
+ that.API.requestData({ //风机型号
|
|
|
+ method: "GET",
|
|
|
+ subUrl: "windturbine/getWindturbine",
|
|
|
+ data: {
|
|
|
+ windturbineid: e,
|
|
|
+ },
|
|
|
+ success(res) {
|
|
|
+ that.modelid = res.data.modelid;
|
|
|
+ }
|
|
|
+ });
|
|
|
}
|
|
|
}
|
|
|
};
|