|
|
|
@ -40,13 +40,26 @@ export default defineComponent({
|
|
|
|
chartOptions: {}
|
|
|
|
chartOptions: {}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
},
|
|
|
|
},
|
|
|
|
async mounted() {
|
|
|
|
|
|
|
|
this.chartOptions = JSON.parse(JSON.stringify(option));
|
|
|
|
watch:{
|
|
|
|
let newValue = this.productionData
|
|
|
|
productionData: {
|
|
|
|
|
|
|
|
handler(newValue){
|
|
|
|
|
|
|
|
console.log("this.productionData",newValue)
|
|
|
|
let seriesData = [newValue.schedulingWorkorder,newValue.productionWorkorder,newValue.completeWorkorder]
|
|
|
|
let seriesData = [newValue.schedulingWorkorder,newValue.productionWorkorder,newValue.completeWorkorder]
|
|
|
|
|
|
|
|
console.log("seriesData", seriesData)
|
|
|
|
option.series[0].data = seriesData
|
|
|
|
option.series[0].data = seriesData
|
|
|
|
// await this.getTypeData()
|
|
|
|
|
|
|
|
this.initChart()
|
|
|
|
this.initChart()
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
async mounted() {
|
|
|
|
|
|
|
|
// this.chartOptions = JSON.parse(JSON.stringify(option));
|
|
|
|
|
|
|
|
// let newValue = this.productionData
|
|
|
|
|
|
|
|
// let seriesData = [newValue.schedulingWorkorder, newValue.productionWorkorder, newValue.completeWorkorder]
|
|
|
|
|
|
|
|
// console.log("seriesData", seriesData)
|
|
|
|
|
|
|
|
// option.series[0].data = seriesData
|
|
|
|
|
|
|
|
// // await this.getTypeData()
|
|
|
|
|
|
|
|
// this.initChart()
|
|
|
|
},
|
|
|
|
},
|
|
|
|
beforeUnmount() {
|
|
|
|
beforeUnmount() {
|
|
|
|
// if (!this.myChart) {
|
|
|
|
// if (!this.myChart) {
|
|
|
|
|