修改设备看板页面

yangwl
LAPTOP-R6EHHS26\86155 9 months ago
parent 4139d7a058
commit 5acb40935f

@ -216,7 +216,7 @@
<td style="width: 8%;">排名</td> <td style="width: 8%;">排名</td>
<td style="width: 12%;">设备名称</td> <td style="width: 12%;">设备名称</td>
<td style="width: 12%;">设备编码</td> <td style="width: 12%;">设备编码</td>
<td style="width: 12%;">设备OEE</td> <td style="width: 12%;">MTTR</td>
</tr> </tr>
</thead> </thead>
@ -230,7 +230,7 @@
<td style="width: 8%;">{{ index + 1 }}</td> <td style="width: 8%;">{{ index + 1 }}</td>
<td style="width: 12%;">{{ n.equipmentName }}</td> <td style="width: 12%;">{{ n.equipmentName }}</td>
<td style="width: 12%;">{{ n.equipmentCode }}</td> <td style="width: 12%;">{{ n.equipmentCode }}</td>
<td style="width: 12%;">{{ n.rapairQuantity != null ? n.rapairQuantity + '%' : '--' }}</td> <td style="width: 12%;">{{ n.rapairQuantity != null ? n.rapairQuantity + 'h' : '--' }}</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
@ -306,6 +306,8 @@ export default {
}; };
}, },
created() { created() {
this.getdictlist()
}, },
destroyed() { destroyed() {
clearInterval(this.time1); clearInterval(this.time1);
@ -316,7 +318,7 @@ export default {
//console.log('zhuanhuahou',this.dateRangeone) //console.log('zhuanhuahou',this.dateRangeone)
this.selectFactorylist(); this.selectFactorylist();
this.getdictlist()
this.gettime(); this.gettime();
}, },
methods: { methods: {
@ -391,10 +393,10 @@ export default {
} }
}); });
if (item.failureRate) { if (item.failureRate) {
item.failureRate = item.failureRate.toFix(2) item.failureRate = parseFloat(item.failureRate).toFixed(2)
} }
if (item.utilizationRatio) { if (item.utilizationRatio) {
item.utilizationRatio = item.utilizationRatio.toFix(2) item.utilizationRatio = parseFloat(item.utilizationRatio).toFixed(2)
} }
}); });
} }

Loading…
Cancel
Save