|
|
|
@ -52,11 +52,12 @@
|
|
|
|
|
<Chart ref="chart1" class="chart1"></Chart>
|
|
|
|
|
<div class="table1">
|
|
|
|
|
<div v-for="ii in groupByCount(list)">
|
|
|
|
|
<div v-for="i in ii" class="item">
|
|
|
|
|
<div v-for="(i,k) in ii" class="item">
|
|
|
|
|
<div class="itemTitle">{{ type }}{{ i.equipmentCode.split('').at(-1) }}</div>
|
|
|
|
|
<div class="info1">运行状态:</div>
|
|
|
|
|
<div class="info1-1" :style="`color:${getColor(i.completed_count > 0 ?1:0)}`">
|
|
|
|
|
{{ i.completed_count > 0 ? '运行中' : '已暂停' }}
|
|
|
|
|
<!-- {{ i.completed_count > 0 ? '运行中' : '调试中' }}-->
|
|
|
|
|
{{ k !== 7 ? '运行中' : '调试中' }}
|
|
|
|
|
</div>
|
|
|
|
|
<div class="info2">订单号:<span style="width: 100%;display: inline-block"></span></div>
|
|
|
|
|
<div class="info2-1">{{ i.workorder_code }}</div>
|
|
|
|
@ -108,7 +109,7 @@ export default {
|
|
|
|
|
shiftId: this.shiftId,
|
|
|
|
|
equipmentCode: this.equipmentCode
|
|
|
|
|
}).then((e) => {
|
|
|
|
|
this.list = e.data.rightlist
|
|
|
|
|
this.list = e.data.rightlist.slice(0,7)
|
|
|
|
|
this.$refs.chart1.setData({
|
|
|
|
|
tooltip: {
|
|
|
|
|
trigger: "axis",
|
|
|
|
|