<template>
|
<div id="center">
|
<div class="up">
|
<div style="width: 100%;font-size: 30px;text-align: center;height: 52px">订单号</div>
|
<div style="width: 100%;font-size: 30px;text-align: center;height: 52px">{{workOrderNo}}</div>
|
<div style="width: 50%;font-size: 30px;text-align: center;height: 52px">计划数量</div>
|
<div style="width: 50%;font-size: 30px;text-align: center;height: 52px">{{planQty}}</div>
|
<div style="width: 50%;font-size: 30px;text-align: center;height: 52px">完成数量</div>
|
<div style="width: 50%;font-size: 30px;text-align: center;height: 52px">{{actualQty}}</div>
|
<div style="width: 99%;height: 200px;">
|
<dv-water-level-pond class="dv-wa-le-po" :config="water" />
|
</div>
|
</div>
|
<div class="down">
|
</div>
|
</div>
|
</template>
|
|
<script>
|
export default {
|
data() {
|
return {
|
planQty: 60,
|
actualQty: 23,
|
workOrderNo: "TZ180XSDSZX012409180000001",
|
water: {
|
data: [46, 46],
|
// shape: 'round',
|
formatter: '{value}%',
|
waveNum: 3
|
},
|
}
|
},
|
mounted() {
|
this.tops();
|
this.changeTiming();
|
},
|
methods: {
|
tops(){
|
this.$http.get('http://192.168.0.249:8083/productionOrdeInfo/center1')
|
.then((response)=>{
|
this.water = { data: response.data.data.waterLevel}
|
this.planQty = response.data.data.planQty;
|
this.actualQty = response.data.data.actualQty;
|
this.workOrderNo = response.data.data.workOrderNo;
|
console.log("----------!!!!!!!!"+response.data.data.planQty)
|
})
|
},
|
changeTiming() {
|
setInterval(() => {
|
this.tops();
|
}, 60000)
|
},
|
}
|
}
|
</script>
|
|
<style lang="scss" scoped>
|
#center {
|
display: flex;
|
flex-direction: column;
|
.up {
|
width: 100%;
|
display: flex;
|
flex-wrap: wrap;
|
justify-content: space-around;
|
}
|
.dv-wa-le-po {
|
height: 100%;
|
}
|
}
|
</style>
|