From 242501d34a395618faa688f21d3f480a6a62f91e Mon Sep 17 00:00:00 2001 From: yangzhi <765157588@qq.com> Date: Wed, 7 Dec 2022 16:32:54 +0800 Subject: [PATCH] 刚才没改好 我是个憨批 --- src/views/resume/femalestaff.vue | 6 +++--- src/views/resume/malestaff.vue | 18 ++++++++++-------- 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/src/views/resume/femalestaff.vue b/src/views/resume/femalestaff.vue index 5e321d2..d7a876a 100644 --- a/src/views/resume/femalestaff.vue +++ b/src/views/resume/femalestaff.vue @@ -381,11 +381,11 @@ export default { } this.natureList = natureList; - this.abilityList = this.abilityList; + this.abilityList = abilityList; this.user = user; this.$nextTick(() => { - this.initNengliEchart(natureList); - this.initXinggeEchart(abilityList); + this.initNengliEchart(abilityList); + this.initXinggeEchart(natureList); }); }); }, diff --git a/src/views/resume/malestaff.vue b/src/views/resume/malestaff.vue index 1d85735..7e602ff 100644 --- a/src/views/resume/malestaff.vue +++ b/src/views/resume/malestaff.vue @@ -294,6 +294,7 @@ export default { computed: { abilityEchart1VisibleComputed(){ return this.abilityList.reduce((total,item)=>{ + console.log(total,item); return total + item.value; },0)>0; }, @@ -303,9 +304,12 @@ export default { },0)>0; }, natureEchartVisibleComputed(){ - return this.natureList.reduce((total,item)=>{ + console.log('natureEchartVisibleComputed this.natureList',this.natureList); + let total = this.natureList.reduce((total,item)=>{ return total + item.value; - },0)>0; + },0); + console.log('natureEchartVisibleComputed total',total); + return total>0; }, userDetail() { let user = {...this.user}; @@ -361,17 +365,14 @@ export default { } this.natureList = natureList; - this.abilityList = this.abilityList; + this.abilityList = abilityList; this.user = user; this.$nextTick(() => { - this.initNengliEchart(natureList); - this.initXinggeEchart(abilityList); + this.initNengliEchart(abilityList); + this.initXinggeEchart(natureList); }); }); }, - initEchart() { - this.initNengliEchart(); - }, initXinggeEchart(list) { let dom = document.getElementById("echarts3"); if(!dom){ @@ -386,6 +387,7 @@ export default { myChart.setOption(this.echartOption3); }, initNengliEchart(list) { + console.log('initNengliEchart',list); let dom = document.getElementById("echarts1"); if(!dom){ return; -- libgit2 0.21.4