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;