|
@@ -24,19 +24,38 @@
|
|
|
<el-col :span="8">
|
|
|
<div class="top_left">
|
|
|
<!-- 电机电压 -->
|
|
|
- <oneline ref="voltage" :id="92" title="电机电压" unit="V" type="dianya_after"></oneline>
|
|
|
+ <oneline
|
|
|
+ ref="voltage"
|
|
|
+ :id="92"
|
|
|
+ title="电机电压"
|
|
|
+ unit="V"
|
|
|
+ type="dianya_after"
|
|
|
+ ></oneline>
|
|
|
</div>
|
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
|
<div class="top_center">
|
|
|
<!-- 电机电流 -->
|
|
|
- <oneline ref="current" :id="92" title="电机电流" unit="A" type="dianliu_after"></oneline>
|
|
|
+ <oneline
|
|
|
+ ref="current"
|
|
|
+ :id="92"
|
|
|
+ title="电机电流"
|
|
|
+ unit="A"
|
|
|
+ type="dianliu_after"
|
|
|
+ ></oneline>
|
|
|
</div>
|
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
|
<div class="top_right">
|
|
|
<!-- 电机前后轴温 -->
|
|
|
- <twoline ref="bearing" :id="92" title="电机前后轴温" unit="°C" :type="bearingType" :legend="bearingLegand"></twoline>
|
|
|
+ <twoline
|
|
|
+ ref="bearing"
|
|
|
+ :id="92"
|
|
|
+ title="电机前后轴温"
|
|
|
+ unit="°C"
|
|
|
+ :type="bearingType"
|
|
|
+ :legend="bearingLegand"
|
|
|
+ ></twoline>
|
|
|
</div>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
@@ -47,19 +66,38 @@
|
|
|
<el-col :span="8">
|
|
|
<div class="center_left">
|
|
|
<!-- 电机振动 -->
|
|
|
- <oneline ref="virbrate" :id="92" title="电机振动" unit="mm/s" type="zhendong_after"></oneline>
|
|
|
+ <oneline
|
|
|
+ ref="virbrate"
|
|
|
+ :id="92"
|
|
|
+ title="电机振动"
|
|
|
+ unit="mm/s"
|
|
|
+ type="zhendong_after"
|
|
|
+ ></oneline>
|
|
|
</div>
|
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
|
<div class="center_center">
|
|
|
<!-- 水泵出口管道压力 -->
|
|
|
- <twoline ref="pressure" :id="93" title="水泵出口管道压力" unit="Mpa" :type="pressureType" :legend="pressureLegand"></twoline>
|
|
|
+ <twoline
|
|
|
+ ref="pressure"
|
|
|
+ :id="93"
|
|
|
+ title="水泵出口管道压力"
|
|
|
+ unit="Mpa"
|
|
|
+ :type="pressureType"
|
|
|
+ :legend="pressureLegand"
|
|
|
+ ></twoline>
|
|
|
</div>
|
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
|
<div class="center_right">
|
|
|
<!-- 水仓水位 -->
|
|
|
- <oneline ref="water_level" :id="94" title="水仓水位" unit="m" type="shuiwei_after"></oneline>
|
|
|
+ <oneline
|
|
|
+ ref="water_level"
|
|
|
+ :id="94"
|
|
|
+ title="水仓水位"
|
|
|
+ unit="m"
|
|
|
+ type="shuiwei_after"
|
|
|
+ ></oneline>
|
|
|
</div>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
@@ -86,15 +124,15 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import oneline from '@/common/oneline'
|
|
|
-import twoline from '@/common/twoline'
|
|
|
-import threeline from '@/common/threeline'
|
|
|
+import oneline from "@/common/oneline";
|
|
|
+import twoline from "@/common/twoline";
|
|
|
+import threeline from "@/common/threeline";
|
|
|
import faultAlarm from "./faultAlarm";
|
|
|
import runningMsg from "./runningMsg";
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
|
- currentComId: "1号水泵",
|
|
|
+ currentComId: this.title,
|
|
|
pumpOptions: [
|
|
|
{
|
|
|
id: "1",
|
|
@@ -109,18 +147,25 @@ export default {
|
|
|
label: "3号水泵",
|
|
|
},
|
|
|
],
|
|
|
-
|
|
|
- pressureType:["zhengya_after","fuya_after"],
|
|
|
- pressureLegand:["正压","负压"],
|
|
|
- bearingType:["qianzhouwen_after","houzhouwen_after"],
|
|
|
- bearingLegand:["电机前轴温","电机后轴温"]
|
|
|
|
|
|
+ pressureType: ["zhengya_after", "fuya_after"],
|
|
|
+ pressureLegand: ["正压", "负压"],
|
|
|
+ bearingType: ["qianzhouwen_after", "houzhouwen_after"],
|
|
|
+ bearingLegand: ["电机前轴温", "电机后轴温"],
|
|
|
};
|
|
|
},
|
|
|
+ props: ["title"],
|
|
|
methods: {
|
|
|
selectChart(val) {
|
|
|
- let chartRefs =["voltage","current","bearing","virbrate","pressure","water_level"];
|
|
|
- for (let i = 0; i < chartRefs.length; i++) {
|
|
|
+ let chartRefs = [
|
|
|
+ "voltage",
|
|
|
+ "current",
|
|
|
+ "bearing",
|
|
|
+ "virbrate",
|
|
|
+ "pressure",
|
|
|
+ "water_level",
|
|
|
+ ];
|
|
|
+ for (let i = 0; i < chartRefs.length; i++) {
|
|
|
this.$refs[chartRefs[i]].clearData();
|
|
|
this.$refs[chartRefs[i]].idChange(val);
|
|
|
}
|