| | |
| | | <CountView :total-object="totalObject"></CountView> |
| | | </template> |
| | | <template #leftBlock4> |
| | | <OrderCompleteRadio></OrderCompleteRadio> |
| | | <OrderCompleteRadio |
| | | :order-complete-object="orderCompleteObject" |
| | | ></OrderCompleteRadio> |
| | | </template> |
| | | <template #leftBlock5> |
| | | <WorkOrderProgress></WorkOrderProgress> |
| | |
| | | ], |
| | | // 左中数据统计对象 |
| | | totalObject: {}, |
| | | // 订单完成比率 |
| | | orderCompleteObject: { |
| | | startIndex: 0, |
| | | orderCompleteList: [], |
| | | }, |
| | | dataindex: 0, |
| | | }; |
| | | }, |
| | | mounted() { |
| | | this.getDashboard(); |
| | | setInterval(() => { |
| | | this.getDashboard(); |
| | | }, 300000); |
| | | }, 10000); |
| | | }, |
| | | watch: {}, |
| | | methods: { |
| | |
| | | this.setLeftBlock1(res.data); |
| | | // 左中数据统计值 |
| | | this.setLeftBlock3(res.data); |
| | | // 订单完成比率 |
| | | this.setLeftBlock4(res.data); |
| | | }); |
| | | }, |
| | | // 处理左上数据 |
| | |
| | | RealProductionAmount: data?.RealProductionAmount ?? 0, |
| | | }; |
| | | }, |
| | | // 订单完成比率 |
| | | setLeftBlock4(data) { |
| | | this.orderCompleteObject.startIndex = 0; |
| | | // 此处后面会替换成真实后端返回数据 |
| | | if (this.dataindex == 1) { |
| | | this.orderCompleteObject.orderCompleteList = [ |
| | | { title: "SSSSDD19070047", radio: 20.6 }, |
| | | { title: "SDD19070048", radio: 79 }, |
| | | { title: "SDD19070049", radio: 100 }, |
| | | { title: "SDD19070050", radio: 30 }, |
| | | { title: "DD19070047", radio: 20.6 }, |
| | | { title: "DD19070048", radio: 49 }, |
| | | { title: "DD19070049", radio: 60 }, |
| | | { title: "SSDD19070050", radio: 10 }, |
| | | { title: "SDD19070047", radio: 33.6 }, |
| | | { title: "DD19070048", radio: 69 }, |
| | | { title: "SDD19070049", radio: 70 }, |
| | | { title: "DD19070050", radio: 20 }, |
| | | { title: "SDD19070047", radio: 66.6 }, |
| | | { title: "DD19070048", radio: 46 }, |
| | | ]; |
| | | this.dataindex = 0; |
| | | } else { |
| | | this.orderCompleteObject.orderCompleteList = [ |
| | | { title: "fffffDD19070047", radio: 50.6 }, |
| | | { title: "DD19070043", radio: 89 }, |
| | | { title: "DD15566649", radio: 100 }, |
| | | { title: "ASD5555550", radio: 30 }, |
| | | { title: "DD19070047", radio: 30.6 }, |
| | | { title: "DD19070048", radio: 49 }, |
| | | { title: "DD19070049", radio: 60 }, |
| | | { title: "DD19070050", radio: 10 }, |
| | | { title: "DD19070047", radio: 33.6 }, |
| | | { title: "DD19070048", radio: 69 }, |
| | | { title: "DD19070049", radio: 70 }, |
| | | { title: "DD19070050", radio: 20 }, |
| | | { title: "DD19070047", radio: 66.6 }, |
| | | { title: "DD19070048", radio: 96 }, |
| | | ]; |
| | | this.dataindex = 1; |
| | | } |
| | | }, |
| | | }, |
| | | }; |
| | | </script> |