Browse Source

暂无注释

wangmengwei@gyee-china.com 3 years ago
parent
commit
6accbee344

+ 1 - 1
public/static/config/modeConfig.js

@@ -16,7 +16,7 @@ const tilesMaxLevel = 18;
 const adapterUrl = "http://10.155.32.4:8011/";
 
 // 切换模块时是否提示当前模块名称(用于对内介绍项目时便捷显示模块名称)
-const showModuleName = 1;
+const showModuleName = 0;
 
 if (localTest) {
     // baseURL = "http://192.168.10.13:8082/" // 联机调试 - 石林

File diff suppressed because it is too large
+ 91 - 65
src/components/other/healthReport/index.vue


+ 1 - 1
src/router/index.js

@@ -577,7 +577,7 @@ const routes = [{
 },
 {
 	path: "/health/MalfunctionWarning/diagnose", //齿轮箱故障诊断
-	name: "Supervised",
+	name: "diagnose",
 	component: () => import("../views/MalfunctionWarning/diagnose.vue")
 },
 /***********************************************************智慧检修************************************************************* */

+ 59 - 16
src/views/MalfunctionWarning/diagnose.vue

@@ -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;
+					}
+				});
 			}
 		}
 	};

+ 2 - 2
src/views/layout/Menu.vue

@@ -308,9 +308,9 @@ export default {
                   path: "/decision/zzhcydl",
                 },
                 {
-                  text: "节能减排API",
+                  text: "节能减排KPI",
                   icon: "svg-wind-site",
-                  path: "/decision/zzhcydl",
+                  path: "/decision/zbtjfx",
                 },
               ],
             },

+ 1 - 1
src/views/powerCurve/index.vue

@@ -160,7 +160,7 @@ export default {
           month: that.recorddate.split("-")[1],
         },
         success(res) {
-          if (res.data.line.length) {
+          if (res.data.line.length||res.data.scatter.length) {
             let chartLineData = {
               xTitle: "风速",
               yTitle: "功率",