Compare commits

...

2 Commits

Author SHA1 Message Date
夜笙歌 af0f0db921 修改显示 3 days ago
夜笙歌 21d3a6a68c 修改显示 3 days ago

@ -83,10 +83,10 @@
生产中 生产中
</div> </div>
<div class="infoModel" :style="`display:${loopIndex === k?'inline-block':''}`"> <div class="infoModel" :style="`display:${loopIndex === k?'inline-block':''}`">
<div class="title">{{ i.equName }}</div> <div class="title">{{ (i||{}).equName }}</div>
<div class="equipmentOutput"><span style="color: #fff9">设备产量:</span> {{ i.quantity }}</div> <div class="equipmentOutput"><span style="color: #fff9">设备产量:</span> {{ (i||{}).quantity }}</div>
<div class="equipmentInfo"><span style="color: #fff9">设备状态:</span> {{ <div class="equipmentInfo"><span style="color: #fff9">设备状态:</span> {{
parseFloat(i.quantity) > 0 ? '运行' : '停机' parseFloat((i||{}).quantity) > 0 ? '运行' : '停机'
}} }}
</div> </div>
</div> </div>
@ -96,10 +96,10 @@
:style="`top: ${equipmentLocation[k].top}%;left: ${equipmentLocation[k].left}%;`"> :style="`top: ${equipmentLocation[k].top}%;left: ${equipmentLocation[k].left}%;`">
<div :class="equipmentLocation[k].isRight?`equipmentName1`:`equipmentName`" <div :class="equipmentLocation[k].isRight?`equipmentName1`:`equipmentName`"
:style="`display:${loopIndex === 18+k?'inline-block':''}`"> :style="`display:${loopIndex === 18+k?'inline-block':''}`">
<div class="title">{{ i.equName }}</div> <div class="title">{{ (i||{}).equName }}</div>
<div class="equipmentOutput"><span style="color: #fff9">设备产量:</span> {{ i.quantity }}</div> <div class="equipmentOutput"><span style="color: #fff9">设备产量:</span> {{ (i||{}).quantity }}</div>
<div class="equipmentInfo"><span style="color: #fff9">设备状态:</span> {{ <div class="equipmentInfo"><span style="color: #fff9">设备状态:</span> {{
parseFloat(i.quantity) > 0 ? '运行' : '停机' parseFloat((i||{}).quantity) > 0 ? '运行' : '停机'
}} }}
</div> </div>
</div> </div>
@ -108,7 +108,7 @@
v-for="(i,k) in ringLocation"></div> v-for="(i,k) in ringLocation"></div>
<div :class="`${i.IsLoad? 'agv2':'agv1'}`" v-for="i in agvData" v-show="i.show" <div :class="`${i.IsLoad? 'agv2':'agv1'}`" v-for="i in agvData" v-show="i.show && !(i.x>0.3&&i.x<0.62 && i.y <0.8)"
:style="`${getLocation(i.x,i.y)}transform: rotate(${parseFloat(i.rotate )- 180}deg);`"></div> :style="`${getLocation(i.x,i.y)}transform: rotate(${parseFloat(i.rotate )- 180}deg);`"></div>
</div> </div>
</div> </div>
@ -350,6 +350,8 @@ export default {
}, },
getData() { getData() {
let time = parseTime(new Date(), '{h}-{i}').split('-') let time = parseTime(new Date(), '{h}-{i}').split('-')
let i = parseFloat(time[0]) || 0 let i = parseFloat(time[0]) || 0
let s = parseFloat(time [1]) || 0 let s = parseFloat(time [1]) || 0
@ -382,6 +384,8 @@ export default {
} }
this.hfData = hfArr this.hfData = hfArr
this.equipmentData = equipmentArr this.equipmentData = equipmentArr
console.log(this.hfData)
console.log(this.equipmentData)
}) })
} }
}, },

@ -134,7 +134,7 @@ export default {
methods: { methods: {
getData() { getData() {
dryRoomDataCarousel().then(e => { dryRoomDataCarousel().then(e => {
this.table1Data = e.data.dryingroomList || [] this.table1Data = e.data.dryingroomList.filter(v=>parseFloat(v.expend/v.yield)) || []
}) })
EnergyExpend().then(e => { EnergyExpend().then(e => {
this.expend = e.map(v => v.expend).reduce((a, b) => a + b, 0).toFixed(2) this.expend = e.map(v => v.expend).reduce((a, b) => a + b, 0).toFixed(2)
@ -206,7 +206,8 @@ export default {
axisLabel: { axisLabel: {
color: '#ccc' color: '#ccc'
}, },
data: e.checkList.map(v => v.machineName), // data: e.checkList.map(v => v.machineName),
data: e.checkList.map((v,k) => '产品'+k),
}, },
series: [ series: [
{ {

Loading…
Cancel
Save