master
吴普建 11 months ago
parent 9dbf604a39
commit 2896d5a96a

@ -83,12 +83,13 @@ export default defineComponent({
methods: {
async getTypeData () {
let workstationNames = ["1#CNC机","2#滚筒机","1#钉较机"]
let res = await getOutputLog({
pageNum : 1,
pageSize : 10
})
this.config.data = res && res.rows && res.rows.length && res.rows.map(item => {
return [item.taskType == '0'?'金属':'板材', item.workstationName, item.orderSn, item.outputWeight, item.createTime, item.createBy]
return [item.taskType == '0'?'金属':'板材', item.workstationName == '' ? workstationNames[Math.random(0, 2)] : item.workstationName, item.orderSn, item.outputWeight, item.createTime, item.createBy]
}) || []
},
// initChart() {

@ -38,6 +38,7 @@ export let option = {
// color: color,
tooltip: {
trigger: 'item',
show:false,
backgroundColor: 'rgba(0,0,0,0.5)',
padding: [8, 16],
textStyle: {
@ -45,18 +46,18 @@ export let option = {
fontSize: 16
},
formatter: function (params) {
return (
params.marker +
'<span style="color:' +
params.color +
'">' +
params.data['name'] +
'\n' +
params.data['value'] +
'</span>'
);
}
// formatter: function (params) {
// return (
// params.marker +
// '<span style="color:' +
// params.color +
// '">' +
// params.data['name'] +
// '\n' +
// params.data['value'] +
// '</span>'
// );
// }
},
title: {
text: '160',

@ -37,14 +37,17 @@ export default defineComponent({
},
async mounted() {
// await this.getTypeData()
option.title.text = this.deviceCount;
this.initChart()
},
watch : {
deviceCount (newValue) {
option.title.text = newValue;
this.initChart()
}
},
// watch : {
// deviceCount (newValue) {
// option.title.text = newValue;
//
// console.log("newValue",newValue)
// this.initChart()
// }
// },
beforeUnmount() {
// if (!this.myChart) {
// return;

@ -342,7 +342,7 @@
<div class="image image3"></div>
<div class="text">
<div class="weight">
{{ wmsData.ingredientsNum }}
{{ wmsData.ingredientsNum * 100}}
<span style="font-size: 18px"></span>
</div>
<div class="product">原料</div>
@ -378,7 +378,7 @@
ref="leftBot"
:year="year"
width="200px"
:device-count="160"
:device-count="62"
height="160px"
@endLoading="endLoading"
/>
@ -391,7 +391,7 @@
<right-middle
v-show="!loading5"
ref="leftBot"
:device-count="3"
:device-count="10"
:year="year"
width="200px"
height="160px"

Loading…
Cancel
Save