From 1e639cac633c098df19436ef9ecb4b7913a5e3ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E6=99=AE=E5=BB=BA?= <450837357@qq.com> Date: Mon, 7 Apr 2025 11:31:12 +0800 Subject: [PATCH] first --- .../board/kanBan/compents/midMidFirst.vue | 25 ++++++++++++++----- src/views/board/kanBan/index.vue | 2 +- 2 files changed, 20 insertions(+), 7 deletions(-) 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... - +