|
@@ -23,15 +23,15 @@
|
|
|
<tr style="background-color:transparent">
|
|
|
<td style="border:0">
|
|
|
<div class="littleFont">产线<span style="color:#27e6ff">(开动)</span></div>
|
|
|
- <div style="font-size: 32px;">{{ deviceStatData.status.openProd||'-' }}<span style="font-size: 12px;">条</span></div>
|
|
|
+ <div style="font-size: 32px;">{{ ReplaceNull(deviceStatData.status.openProd,'-') }}<span style="font-size: 12px;">条</span></div>
|
|
|
</td>
|
|
|
<td style="border:0;padding-left: 40px;">
|
|
|
<div class="littleFont">设备<span style="color:#27e6ff">(开机)</span></div>
|
|
|
- <div style="font-size:24px;height: 38px;line-height: 48px;color: #27e6ff;">{{ deviceStatData.status.open||'-' }}<span style="font-size: 12px;"> 台</span></div>
|
|
|
+ <div style="font-size:24px;height: 38px;line-height: 48px;color: #27e6ff;">{{ ReplaceNull(deviceStatData.status.open,'-') }}<span style="font-size: 12px;"> 台</span></div>
|
|
|
</td>
|
|
|
<td style="border:0;padding-left: 40px;">
|
|
|
<div class="littleFont">设备<span style="color:#27e6ff">(总数)</span></div>
|
|
|
- <div style="font-size:24px;height: 38px;line-height: 48px;color: #27e6ff;">{{ deviceStatData.status.total||'-' }}<span style="font-size: 12px;"> 台</span></div>
|
|
|
+ <div style="font-size:24px;height: 38px;line-height: 48px;color: #27e6ff;">{{ ReplaceNull(deviceStatData.status.total,'-') }}<span style="font-size: 12px;"> 台</span></div>
|
|
|
</td>
|
|
|
</tr>
|
|
|
</tbody>
|
|
@@ -44,15 +44,15 @@
|
|
|
<tr style="background-color:transparent">
|
|
|
<td style="border:0">
|
|
|
<div class="littleFont">白坯<span style="color:#27e6ff">(投放量)</span></div>
|
|
|
- <div style="font-size: 32px;">{{ deviceStatData.status.baiPei||'-' }}<span style="font-size: 12px;">米</span></div>
|
|
|
+ <div style="font-size: 32px;">{{ ReplaceNull(deviceStatData.status.baiPei,'-') }}<span style="font-size: 12px;">米</span></div>
|
|
|
</td>
|
|
|
<td style="border:0;padding-left: 40px;">
|
|
|
<div class="littleFont">产量<span style="color:#27e6ff">(米数)</span></div>
|
|
|
- <div style="font-size:24px;height: 38px;line-height: 48px;color: #27e6ff;">{{ deviceStatData.status.length||'-' }}<span style="font-size: 12px;"> 米</span></div>
|
|
|
+ <div style="font-size:24px;height: 38px;line-height: 48px;color: #27e6ff;">{{ ReplaceNull(deviceStatData.status.length,'-') }}<span style="font-size: 12px;"> 米</span></div>
|
|
|
</td>
|
|
|
<td style="border:0;padding-left: 40px;">
|
|
|
<div class="littleFont">产量<span style="color:#27e6ff">(重量)</span></div>
|
|
|
- <div style="font-size:24px;height: 38px;line-height: 48px;color: #27e6ff;">{{ deviceStatData.status.weight||'-' }}<span style="font-size: 12px;"> 吨</span></div>
|
|
|
+ <div style="font-size:24px;height: 38px;line-height: 48px;color: #27e6ff;">{{ReplaceNull(deviceStatData.status.weight,'-') }}<span style="font-size: 12px;"> 吨</span></div>
|
|
|
</td>
|
|
|
</tr>
|
|
|
</tbody>
|
|
@@ -64,8 +64,8 @@
|
|
|
<div class="title_row" style="font-weight: normal;margin-top: 10px;"><span style="font-size: 48px;letter-spacing: 5px;margin-right: 20%;">{{currentCXNo==0?'全部':currentCXNo+'号'}}</span><span style="color:#fff;line-height: 48px;">产线</span></div>
|
|
|
<div style="padding-left: 5px;color: #27e6ff;margin-top: calc(52px*var(--hRate));width: 88%;">
|
|
|
<div style="color: #fff;"><span>开机数</span><span style="float: right;">总数</span></div>
|
|
|
- <div style="font-size: 22px;margin-top: calc(16px*var(--hRate));"><span>{{ effInfo.open }}<span class="littleFont">台</span></span>
|
|
|
- <span style="float: right;">{{ effInfo.total }}<span class="littleFont">台</span></span>
|
|
|
+ <div style="font-size: 22px;margin-top: calc(16px*var(--hRate));"><span>{{ ReplaceNull(effInfo.open,'-') }}<span class="littleFont">台</span></span>
|
|
|
+ <span style="float: right;">{{ ReplaceNull(effInfo.total,'-') }}<span class="littleFont">台</span></span>
|
|
|
</div>
|
|
|
<div style="position: relative;margin-top: calc(16px*var(--hRate));">
|
|
|
<div class="abs fac_progress_value" :style="{width:(effInfo.open/effInfo.total*100)+'%'}"></div>
|
|
@@ -76,11 +76,11 @@
|
|
|
<div style="width: 30%;height: 100%;margin-left: 4%;">
|
|
|
<div style="color: #fff;"><span>单位能耗</span></div>
|
|
|
<div style="font-size: 22px;margin-top: calc(16px*var(--hRate));;color: red;">
|
|
|
- <span>{{ effInfo.energy }}<span class="littleFont">元/米</span></span>
|
|
|
+ <span>{{ ReplaceNull(effInfo.energy,'-') }}<span class="littleFont">元/米</span></span>
|
|
|
</div>
|
|
|
<div style="color: #fff;margin-top: calc(26px*var(--hRate));"><span>开机率</span></div>
|
|
|
<div style="font-size: 22px;margin-top: calc(16px*var(--hRate));color:#27e6ff ;">
|
|
|
- <span>{{ effInfo.ratio }}<span class="littleFont">%</span></span>
|
|
|
+ <span>{{ ReplaceNull(effInfo.ratio,'-') }}<span class="littleFont">%</span></span>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -100,17 +100,17 @@
|
|
|
<tbody>
|
|
|
<tr style="font-weight:normal;background-color:transparent;color: #ffffff;font-size: 14px;">
|
|
|
<td style="border:0">A班</td>
|
|
|
- <td style="border:0">{{ effInfo.timeA ||'-' }}</td>
|
|
|
- <td style="border:0">{{ effInfo.lengthA ||'-' }}</td>
|
|
|
- <td style="border:0">{{ effInfo.weightA ||'-' }}</td>
|
|
|
- <td style="border:0">{{ (effInfo.effA*100).toFixed(0) ||'-' }}%</td>
|
|
|
+ <td style="border:0">{{ ReplaceNull(effInfo.timeA,'-') }}</td>
|
|
|
+ <td style="border:0">{{ ReplaceNull(effInfo.lengthA,'-') }}</td>
|
|
|
+ <td style="border:0">{{ ReplaceNull(effInfo.weightA,'-') }}</td>
|
|
|
+ <td style="border:0">{{ ReplaceNull((effInfo.effA*100).toFixed(0),'-') }}%</td>
|
|
|
</tr>
|
|
|
<tr style="font-weight:normal;background-color:transparent;color: #ffffff;background-color: #2dbcd436;font-size: 14px;">
|
|
|
<td style="border:0">B班</td>
|
|
|
- <td style="border:0">{{ effInfo.timeB ||'-' }}</td>
|
|
|
- <td style="border:0">{{ effInfo.lengthB ||'-' }}</td>
|
|
|
- <td style="border:0">{{ effInfo.weightB ||'-' }}</td>
|
|
|
- <td style="border:0">{{ (effInfo.effB*100).toFixed(0) ||'-' }}%</td>
|
|
|
+ <td style="border:0">{{ ReplaceNull(effInfo.timeB,'-') }}</td>
|
|
|
+ <td style="border:0">{{ ReplaceNull(effInfo.lengthB,'-') }}</td>
|
|
|
+ <td style="border:0">{{ ReplaceNull(effInfo.weightB,'-') }}</td>
|
|
|
+ <td style="border:0">{{ ReplaceNull((effInfo.effB*100).toFixed(0),'-') }}%</td>
|
|
|
</tr>
|
|
|
</tbody>
|
|
|
</table>
|
|
@@ -118,13 +118,13 @@
|
|
|
<div style="width: 50%;">
|
|
|
<div style="color: #fff;"><span>米数</span></div>
|
|
|
<div style="font-size: 22px;color:#27e6ff">
|
|
|
- <span>{{ effInfo.length }}<span class="littleFont">米</span></span>
|
|
|
+ <span>{{ ReplaceNull(effInfo.length,'-') }}<span class="littleFont">米</span></span>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div style="width: 50%;">
|
|
|
<div style="color: #fff;"><span>重量</span></div>
|
|
|
<div style="font-size: 22px;color:#27e6ff">
|
|
|
- <span>{{ effInfo.weight }}<span class="littleFont">吨</span></span>
|
|
|
+ <span>{{ ReplaceNull(effInfo.weight,'-') }}<span class="littleFont">吨</span></span>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -257,8 +257,8 @@ export default {
|
|
|
}
|
|
|
deviceStatData.value = res.data;
|
|
|
effInfo.value = res.data.eff[currentCXNo.value]; //产线信息
|
|
|
- LoadSCLine('Length');
|
|
|
- LoadUsedLine('price');
|
|
|
+ LoadSCLine(buttonCode1.value=='' ? 'Length':buttonCode1.value);
|
|
|
+ LoadUsedLine(buttonCode2.value==''?'price':buttonCode2.value);
|
|
|
});
|
|
|
}
|
|
|
}
|
|
@@ -621,6 +621,7 @@ export default {
|
|
|
}
|
|
|
function backMasterViewByFac(){
|
|
|
if(player==null || player.Native==null) return;
|
|
|
+ if(window.CurrentTargetType!='IN03') return
|
|
|
if(BODY_H_RATE>0.9){
|
|
|
//全屏模式下的视角
|
|
|
player.Native.Camera.moveTo([-91.64839019242504, -186.23753805841608, 166.78946395819892],
|
|
@@ -635,7 +636,7 @@ export default {
|
|
|
// 使用异步函数
|
|
|
(async () => {
|
|
|
setTimeout(function() {
|
|
|
- player.Native.Camera.setAnchorPos([-80.69618225097656,21.59876251220703,11.815500259399414]);
|
|
|
+ if(window.CurrentTargetType=='IN03') player.Native.Camera.setAnchorPos([-80.69618225097656,21.59876251220703,11.815500259399414]);
|
|
|
}, 3000);
|
|
|
})();
|
|
|
}
|