diff --git a/src/views/board/kanBan/compents/midMidFirst.vue b/src/views/board/kanBan/compents/midMidFirst.vue index 13ea4cd..56c74de 100644 --- a/src/views/board/kanBan/compents/midMidFirst.vue +++ b/src/views/board/kanBan/compents/midMidFirst.vue @@ -40,13 +40,26 @@ export default defineComponent({ chartOptions: {} }; }, + + watch:{ + productionData: { + handler(newValue){ + console.log("this.productionData",newValue) + let seriesData = [newValue.schedulingWorkorder,newValue.productionWorkorder,newValue.completeWorkorder] + console.log("seriesData", seriesData) + option.series[0].data = seriesData + this.initChart() + } + } + }, async mounted() { - this.chartOptions = JSON.parse(JSON.stringify(option)); - let newValue = this.productionData - let seriesData = [newValue.schedulingWorkorder, newValue.productionWorkorder, newValue.completeWorkorder] - option.series[0].data = seriesData - // await this.getTypeData() - this.initChart() + // 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() { // if (!this.myChart) { diff --git a/src/views/board/kanBan/index.vue b/src/views/board/kanBan/index.vue index 1f0ccc2..f2c5ca7 100644 --- a/src/views/board/kanBan/index.vue +++ b/src/views/board/kanBan/index.vue @@ -213,7 +213,7 @@
Loading... - +