湖里大屏(劳务管理):人员类型添加监听

This commit is contained in:
骆乐 2022-08-16 17:21:46 +08:00
parent a64b64b06a
commit 0b0b511106
2 changed files with 11 additions and 0 deletions

View File

@ -56,6 +56,7 @@ export default {
educationPersonNum: 0, educationPersonNum: 0,
workercount: { workercount: {
lwPersonYesterdayAdd: 0, lwPersonYesterdayAdd: 0,
lwAndGlPersonTotal:0,
eduPersonTotal: 0, eduPersonTotal: 0,
jfGlPersonTotal: 0, jfGlPersonTotal: 0,
age18: 0, age18: 0,

View File

@ -24,6 +24,16 @@ export default {
mounted() { mounted() {
this.initMyChart(); this.initMyChart();
}, },
watch:{
statisticsCount:{
handler(newVal,oldVal){
if(newVal!=oldVal){
this.initMyChart();
}
},
deep:true,
}
},
methods: { methods: {
initMyChart() { initMyChart() {
const myChart = echarts.init(this.$refs.myChart); const myChart = echarts.init(this.$refs.myChart);