|
@@ -3,7 +3,7 @@
|
|
|
<img :src="require('@assets/png/3dback.png')" class="i3dback" />
|
|
|
<!-- <img :src="require('@assets/png/3dcloud.png')" class="i3dcloud" /> -->
|
|
|
<StBack></StBack>
|
|
|
- <ThreeModel1 class="three-model-layer" @when="when"></ThreeModel1>
|
|
|
+ <ThreeModel1 class="three-model-layer" :data="mapSource" @when="when"></ThreeModel1>
|
|
|
<div class="sand-table-left" v-if="showPanel">
|
|
|
<PanelSand
|
|
|
class="left-panel"
|
|
@@ -88,11 +88,161 @@
|
|
|
</PanelSandToolbar>
|
|
|
</div>
|
|
|
<div class="sand-table-bottom" v-if="showPanel">
|
|
|
- <Ppanel title="利用小时"></Ppanel>
|
|
|
- <Ppanel title="设备可利用率" class="stb-p"></Ppanel>
|
|
|
- <Ppanel title="MTBF" class="stb-p"></Ppanel>
|
|
|
- <Ppanel title="MTTR" class="stb-p"></Ppanel>
|
|
|
- <Ppanel title="MTTF" class="stb-p"></Ppanel>
|
|
|
+ <!-- <Ppanel
|
|
|
+ title="利用小时"
|
|
|
+ :data="riseNumber(gxkmap.bg_dxkyss)"
|
|
|
+ :dataColor="gxkmap.bg_dxkyss < 0 ? '#f25656' : '#05BB4C'"
|
|
|
+ :days="gxkmap.ydxkyss"
|
|
|
+ :data1Icon="gxkmap.tb_dxkyss < 0 ? 'svg-arrow-dpwn-1' : 'svg-arrow-up-1'"
|
|
|
+ :data1IconClass="gxkmap.tb_dxkyss < 0 ? 'svg-icon-sm svg-icon-yellow' : 'svg-icon-sm svg-icon-green'"
|
|
|
+ :data2Icon="gxkmap.hb_dxkyss < 0 ? 'svg-arrow-dpwn-1' : 'svg-arrow-up-1'"
|
|
|
+ :data2IconClass="gxkmap.hb_dxkyss < 0 ? 'svg-icon-sm svg-icon-yellow' : 'svg-icon-sm svg-icon-green'"
|
|
|
+ ></Ppanel>
|
|
|
+ <Ppanel title="设备可利用率"
|
|
|
+ class="stb-p"
|
|
|
+ :data="riseNumber(gxkmap.bg_sbklyl)"
|
|
|
+ :dataColor="gxkmap.bg_sbklyl < 0 ? '#f25656' : '#05BB4C'"
|
|
|
+ :days="gxkmap.ysbklyl"
|
|
|
+ :data1Icon="gxkmap.hb_sbklyl < 0 ? 'svg-arrow-dpwn-1' : 'svg-arrow-up-1'"
|
|
|
+ :data1IconClass="gxkmap.hb_sbklyl < 0 ? 'svg-icon-sm svg-icon-yellow' : 'svg-icon-sm svg-icon-green'"
|
|
|
+ :data2Icon="gxkmap.tb_sbklyl < 0 ? 'svg-arrow-dpwn-1' : 'svg-arrow-up-1'"
|
|
|
+ :data2IconClass="gxkmap.tb_sbklyl < 0 ? 'svg-icon-sm svg-icon-yellow' : 'svg-icon-sm svg-icon-green'"
|
|
|
+ ></Ppanel>
|
|
|
+ <Ppanel
|
|
|
+ title="MTBF"
|
|
|
+ class="stb-p"
|
|
|
+ :data="riseNumber(gxkmap.bg_mtbf)"
|
|
|
+ :dataColor="gxkmap.bg_mtbf < 0 ? '#f25656' : '#05BB4C'"
|
|
|
+ :days="gxkmap.mtbf"
|
|
|
+ :data1Icon="gxkmap.hb_mtbf < 0 ? 'svg-arrow-dpwn-1' : 'svg-arrow-up-1'"
|
|
|
+ :data1IconClass="gxkmap.hb_mtbf < 0 ? 'svg-icon-sm svg-icon-yellow' : 'svg-icon-sm svg-icon-green'"
|
|
|
+ :data2Icon="gxkmap.tb_mtbf < 0 ? 'svg-arrow-dpwn-1' : 'svg-arrow-up-1'"
|
|
|
+ :data2IconClass="gxkmap.tb_mtbf < 0 ? 'svg-icon-sm svg-icon-yellow' : 'svg-icon-sm svg-icon-green'"
|
|
|
+ ></Ppanel>
|
|
|
+ <Ppanel
|
|
|
+ title="MTTR"
|
|
|
+ class="stb-p"
|
|
|
+ :data="riseNumber(gxkmap.bg_mttr)"
|
|
|
+ :dataColor="gxkmap.bg_mttr < 0 ? '#f25656' : '#05BB4C'"
|
|
|
+ :days="gxkmap.mttr"
|
|
|
+ :data1Icon="gxkmap.hb_mttr < 0 ? 'svg-arrow-dpwn-1' : 'svg-arrow-up-1'"
|
|
|
+ :data1IconClass="gxkmap.hb_mttr < 0 ? 'svg-icon-sm svg-icon-yellow' : 'svg-icon-sm svg-icon-green'"
|
|
|
+ :data2Icon="gxkmap.tb_mttr < 0 ? 'svg-arrow-dpwn-1' : 'svg-arrow-up-1'"
|
|
|
+ :data2IconClass="gxkmap.tb_mttr < 0 ? 'svg-icon-sm svg-icon-yellow' : 'svg-icon-sm svg-icon-green'"
|
|
|
+ ></Ppanel>
|
|
|
+ <Ppanel
|
|
|
+ title="MTTF"
|
|
|
+ class="stb-p"
|
|
|
+ :data="riseNumber(gxkmap.bg_mttf)"
|
|
|
+ :dataColor="gxkmap.bg_mttf < 0 ? '#f25656' : '#05BB4C'"
|
|
|
+ :days="gxkmap.mttf"
|
|
|
+ :data1Icon="gxkmap.hb_mttf < 0 ? 'svg-arrow-dpwn-1' : 'svg-arrow-up-1'"
|
|
|
+ :data1IconClass="gxkmap.hb_mttf < 0 ? 'svg-icon-sm svg-icon-yellow' : 'svg-icon-sm svg-icon-green'"
|
|
|
+ :data2Icon="gxkmap.tb_mttf < 0 ? 'svg-arrow-dpwn-1' : 'svg-arrow-up-1'"
|
|
|
+ :data2IconClass="gxkmap.tb_mttf < 0 ? 'svg-icon-sm svg-icon-yellow' : 'svg-icon-sm svg-icon-green'"
|
|
|
+ ></Ppanel> -->
|
|
|
+ <Ppanel
|
|
|
+ title="利用小时"
|
|
|
+ :data="riseNumber(gxkmap.bg_dxkyss)"
|
|
|
+ :dataColor="gxkmap.bg_dxkyss < 0 ? '#f25656' : '#05BB4C'"
|
|
|
+ :days="gxkmap.ydxkyss"
|
|
|
+ :data1Icon="
|
|
|
+ gxkmap.tb_dxkyss < 0 ? 'svg-arrow-dpwn-1' : 'svg-arrow-up-1'
|
|
|
+ "
|
|
|
+ :data1IconClass="
|
|
|
+ gxkmap.tb_dxkyss < 0
|
|
|
+ ? 'svg-icon-sm svg-icon-yellow'
|
|
|
+ : 'svg-icon-sm svg-icon-green'
|
|
|
+ "
|
|
|
+ :data2Icon="
|
|
|
+ gxkmap.hb_dxkyss < 0 ? 'svg-arrow-dpwn-1' : 'svg-arrow-up-1'
|
|
|
+ "
|
|
|
+ :data2IconClass="
|
|
|
+ gxkmap.hb_dxkyss < 0
|
|
|
+ ? 'svg-icon-sm svg-icon-yellow'
|
|
|
+ : 'svg-icon-sm svg-icon-green'
|
|
|
+ "
|
|
|
+ ></Ppanel>
|
|
|
+ <Ppanel
|
|
|
+ title="设备可利用率"
|
|
|
+ class="stb-p"
|
|
|
+ :data="riseNumber(gxkmap.bg_sbklyl)"
|
|
|
+ :dataColor="gxkmap.bg_sbklyl < 0 ? '#f25656' : '#05BB4C'"
|
|
|
+ :days="gxkmap.ysbklyl"
|
|
|
+ :data1Icon="
|
|
|
+ gxkmap.hb_sbklyl < 0 ? 'svg-arrow-dpwn-1' : 'svg-arrow-up-1'
|
|
|
+ "
|
|
|
+ :data1IconClass="
|
|
|
+ gxkmap.hb_sbklyl < 0
|
|
|
+ ? 'svg-icon-sm svg-icon-yellow'
|
|
|
+ : 'svg-icon-sm svg-icon-green'
|
|
|
+ "
|
|
|
+ :data2Icon="
|
|
|
+ gxkmap.tb_sbklyl < 0 ? 'svg-arrow-dpwn-1' : 'svg-arrow-up-1'
|
|
|
+ "
|
|
|
+ :data2IconClass="
|
|
|
+ gxkmap.tb_sbklyl < 0
|
|
|
+ ? 'svg-icon-sm svg-icon-yellow'
|
|
|
+ : 'svg-icon-sm svg-icon-green'
|
|
|
+ "
|
|
|
+ ></Ppanel>
|
|
|
+ <Ppanel
|
|
|
+ title="MTBF"
|
|
|
+ class="stb-p"
|
|
|
+ :data="riseNumber(gxkmap.bg_mtbf)"
|
|
|
+ :dataColor="gxkmap.bg_mtbf < 0 ? '#f25656' : '#05BB4C'"
|
|
|
+ :days="gxkmap.mtbf"
|
|
|
+ :data1Icon="gxkmap.hb_mtbf < 0 ? 'svg-arrow-dpwn-1' : 'svg-arrow-up-1'"
|
|
|
+ :data1IconClass="
|
|
|
+ gxkmap.hb_mtbf < 0
|
|
|
+ ? 'svg-icon-sm svg-icon-yellow'
|
|
|
+ : 'svg-icon-sm svg-icon-green'
|
|
|
+ "
|
|
|
+ :data2Icon="gxkmap.tb_mtbf < 0 ? 'svg-arrow-dpwn-1' : 'svg-arrow-up-1'"
|
|
|
+ :data2IconClass="
|
|
|
+ gxkmap.tb_mtbf < 0
|
|
|
+ ? 'svg-icon-sm svg-icon-yellow'
|
|
|
+ : 'svg-icon-sm svg-icon-green'
|
|
|
+ "
|
|
|
+ ></Ppanel>
|
|
|
+ <Ppanel
|
|
|
+ title="MTTR"
|
|
|
+ class="stb-p"
|
|
|
+ :data="riseNumber(gxkmap.bg_mttr)"
|
|
|
+ :dataColor="gxkmap.bg_mttr < 0 ? '#f25656' : '#05BB4C'"
|
|
|
+ :days="gxkmap.mttr"
|
|
|
+ :data1Icon="gxkmap.hb_mttr < 0 ? 'svg-arrow-dpwn-1' : 'svg-arrow-up-1'"
|
|
|
+ :data1IconClass="
|
|
|
+ gxkmap.hb_mttr < 0
|
|
|
+ ? 'svg-icon-sm svg-icon-yellow'
|
|
|
+ : 'svg-icon-sm svg-icon-green'
|
|
|
+ "
|
|
|
+ :data2Icon="gxkmap.tb_mttr < 0 ? 'svg-arrow-dpwn-1' : 'svg-arrow-up-1'"
|
|
|
+ :data2IconClass="
|
|
|
+ gxkmap.tb_mttr < 0
|
|
|
+ ? 'svg-icon-sm svg-icon-yellow'
|
|
|
+ : 'svg-icon-sm svg-icon-green'
|
|
|
+ "
|
|
|
+ ></Ppanel>
|
|
|
+ <Ppanel
|
|
|
+ title="MTTF"
|
|
|
+ class="stb-p"
|
|
|
+ :data="riseNumber(gxkmap.bg_mttf)"
|
|
|
+ :dataColor="gxkmap.bg_mttf < 0 ? '#f25656' : '#05BB4C'"
|
|
|
+ :days="gxkmap.mttf"
|
|
|
+ :data1Icon="gxkmap.hb_mttf < 0 ? 'svg-arrow-dpwn-1' : 'svg-arrow-up-1'"
|
|
|
+ :data1IconClass="
|
|
|
+ gxkmap.hb_mttf < 0
|
|
|
+ ? 'svg-icon-sm svg-icon-yellow'
|
|
|
+ : 'svg-icon-sm svg-icon-green'
|
|
|
+ "
|
|
|
+ :data2Icon="gxkmap.tb_mttf < 0 ? 'svg-arrow-dpwn-1' : 'svg-arrow-up-1'"
|
|
|
+ :data2IconClass="
|
|
|
+ gxkmap.tb_mttf < 0
|
|
|
+ ? 'svg-icon-sm svg-icon-yellow'
|
|
|
+ : 'svg-icon-sm svg-icon-green'
|
|
|
+ "
|
|
|
+ ></Ppanel>
|
|
|
</div>
|
|
|
<el-dialog
|
|
|
top="50px"
|
|
@@ -103,13 +253,13 @@
|
|
|
:destroy-on-close="true"
|
|
|
:before-close="
|
|
|
(done) => {
|
|
|
- videoDialogClass = 'modal animated bounceOut';
|
|
|
- delaylyFn(650, done);
|
|
|
+ videoDialogClass = 'modal animated a1 bounceOut';
|
|
|
+ delaylyFn(450, done);
|
|
|
}
|
|
|
"
|
|
|
@closed="
|
|
|
dialogVideoUrl = '';
|
|
|
- videoDialogClass = 'modal animated bounceIn';
|
|
|
+ videoDialogClass = 'modal animated a1 bounceIn';
|
|
|
"
|
|
|
>
|
|
|
<iframe
|
|
@@ -121,10 +271,20 @@
|
|
|
</el-dialog>
|
|
|
<el-dialog
|
|
|
title="停机详情"
|
|
|
- custom-class="modal modal1 animated slideInLeft"
|
|
|
+ :custom-class="tableDialogClass"
|
|
|
v-model="showTableDialog"
|
|
|
width="80%"
|
|
|
:destroy-on-close="true"
|
|
|
+ :before-close="
|
|
|
+ (done) => {
|
|
|
+ tableDialogClass = 'modal animated a1 fadeOutLeftBig';
|
|
|
+ delaylyFn(450, done);
|
|
|
+ }
|
|
|
+ "
|
|
|
+ @closed="
|
|
|
+ dialogVideoUrl = '';
|
|
|
+ tableDialogClass = 'modal animated a1 fadeInLeftBig';
|
|
|
+ "
|
|
|
>
|
|
|
<el-form style="margin: 30px 0" label-width="120px" inline>
|
|
|
<el-form-item label="风机ID" style="width: 45%; margin-bottom: 25px">
|
|
@@ -188,11 +348,14 @@ export default {
|
|
|
exchangeBtn1: false,
|
|
|
timmer1: null,
|
|
|
showTableDialog: false,
|
|
|
- videoDialogClass: "modal animated bounceIn",
|
|
|
+ videoDialogClass: "modal animated a1 bounceIn",
|
|
|
+ tableDialogClass: "modal animated a1 fadeInLeftBig",
|
|
|
timeStr: "",
|
|
|
wpId: "0",
|
|
|
tqmap1: {},
|
|
|
+ gxkmap: {},
|
|
|
tableItem: {},
|
|
|
+ mapSource:{},
|
|
|
videoArray: [
|
|
|
[
|
|
|
{
|
|
@@ -382,7 +545,7 @@ export default {
|
|
|
wpId: that.wpId,
|
|
|
},
|
|
|
success(res) {
|
|
|
- console.log(123123, res);
|
|
|
+ console.log(11111, res);
|
|
|
|
|
|
that.tqmap1 = res.data.tqmap1;
|
|
|
|
|
@@ -396,12 +559,28 @@ export default {
|
|
|
});
|
|
|
|
|
|
that.sels.data = res.data.sels;
|
|
|
+ that.gxkmap = res.data.gxkmap;
|
|
|
+ },
|
|
|
+ });
|
|
|
+ },
|
|
|
+
|
|
|
+ // 获取中部地图数据
|
|
|
+ getWpHealthInfo() {
|
|
|
+ let that = this;
|
|
|
+ that.API.requestData({
|
|
|
+ method: "POST",
|
|
|
+ subUrl: "sandtable/judgeWpHealth",
|
|
|
+ data: {
|
|
|
+ wpId: that.wpId,
|
|
|
+ },
|
|
|
+ success(res) {
|
|
|
+ console.log(222222, res);
|
|
|
+ that.mapSource = res.data;
|
|
|
},
|
|
|
});
|
|
|
},
|
|
|
|
|
|
clickRow(row) {
|
|
|
- console.log(111, row);
|
|
|
this.tableItem = row;
|
|
|
this.showTableDialog = true;
|
|
|
},
|
|
@@ -412,6 +591,14 @@ export default {
|
|
|
}, time);
|
|
|
},
|
|
|
|
|
|
+ riseNumber(number) {
|
|
|
+ if (number < 0) {
|
|
|
+ return (number - number * 2) / 100;
|
|
|
+ } else {
|
|
|
+ return number / 100;
|
|
|
+ }
|
|
|
+ },
|
|
|
+
|
|
|
when: function () {
|
|
|
this.showPanel = true;
|
|
|
},
|
|
@@ -430,6 +617,7 @@ export default {
|
|
|
},
|
|
|
created() {
|
|
|
this.getWtInfo();
|
|
|
+ this.getWpHealthInfo();
|
|
|
this.timeStr = new Date().formatDate("MM-dd hh:mm");
|
|
|
this.timmer1 = setInterval(() => {
|
|
|
this.timeStr = new Date().formatDate("MM-dd hh:mm");
|
|
@@ -574,8 +762,12 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- .animated {
|
|
|
- // animation-duration: 0.5s;
|
|
|
+ .animated.a0 {
|
|
|
+ animation-duration: 0.35s;
|
|
|
+ }
|
|
|
+
|
|
|
+ .animated.a1 {
|
|
|
+ animation-duration: 0.5s;
|
|
|
}
|
|
|
|
|
|
.el-overlay {
|
|
@@ -619,8 +811,4 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
-.modal1 {
|
|
|
- animation-duration: 0.5s;
|
|
|
-}
|
|
|
</style>
|