Commit 242501d34a395618faa688f21d3f480a6a62f91e
1 parent
ff5fd682
刚才没改好 我是个憨批
Showing
2 changed files
with
13 additions
and
11 deletions
src/views/resume/femalestaff.vue
| ... | ... | @@ -381,11 +381,11 @@ export default { |
| 381 | 381 | } |
| 382 | 382 | |
| 383 | 383 | this.natureList = natureList; |
| 384 | - this.abilityList = this.abilityList; | |
| 384 | + this.abilityList = abilityList; | |
| 385 | 385 | this.user = user; |
| 386 | 386 | this.$nextTick(() => { |
| 387 | - this.initNengliEchart(natureList); | |
| 388 | - this.initXinggeEchart(abilityList); | |
| 387 | + this.initNengliEchart(abilityList); | |
| 388 | + this.initXinggeEchart(natureList); | |
| 389 | 389 | }); |
| 390 | 390 | }); |
| 391 | 391 | }, | ... | ... |
src/views/resume/malestaff.vue
| ... | ... | @@ -294,6 +294,7 @@ export default { |
| 294 | 294 | computed: { |
| 295 | 295 | abilityEchart1VisibleComputed(){ |
| 296 | 296 | return this.abilityList.reduce((total,item)=>{ |
| 297 | + console.log(total,item); | |
| 297 | 298 | return total + item.value; |
| 298 | 299 | },0)>0; |
| 299 | 300 | }, |
| ... | ... | @@ -303,9 +304,12 @@ export default { |
| 303 | 304 | },0)>0; |
| 304 | 305 | }, |
| 305 | 306 | natureEchartVisibleComputed(){ |
| 306 | - return this.natureList.reduce((total,item)=>{ | |
| 307 | + console.log('natureEchartVisibleComputed this.natureList',this.natureList); | |
| 308 | + let total = this.natureList.reduce((total,item)=>{ | |
| 307 | 309 | return total + item.value; |
| 308 | - },0)>0; | |
| 310 | + },0); | |
| 311 | + console.log('natureEchartVisibleComputed total',total); | |
| 312 | + return total>0; | |
| 309 | 313 | }, |
| 310 | 314 | userDetail() { |
| 311 | 315 | let user = {...this.user}; |
| ... | ... | @@ -361,17 +365,14 @@ export default { |
| 361 | 365 | } |
| 362 | 366 | |
| 363 | 367 | this.natureList = natureList; |
| 364 | - this.abilityList = this.abilityList; | |
| 368 | + this.abilityList = abilityList; | |
| 365 | 369 | this.user = user; |
| 366 | 370 | this.$nextTick(() => { |
| 367 | - this.initNengliEchart(natureList); | |
| 368 | - this.initXinggeEchart(abilityList); | |
| 371 | + this.initNengliEchart(abilityList); | |
| 372 | + this.initXinggeEchart(natureList); | |
| 369 | 373 | }); |
| 370 | 374 | }); |
| 371 | 375 | }, |
| 372 | - initEchart() { | |
| 373 | - this.initNengliEchart(); | |
| 374 | - }, | |
| 375 | 376 | initXinggeEchart(list) { |
| 376 | 377 | let dom = document.getElementById("echarts3"); |
| 377 | 378 | if(!dom){ |
| ... | ... | @@ -386,6 +387,7 @@ export default { |
| 386 | 387 | myChart.setOption(this.echartOption3); |
| 387 | 388 | }, |
| 388 | 389 | initNengliEchart(list) { |
| 390 | + console.log('initNengliEchart',list); | |
| 389 | 391 | let dom = document.getElementById("echarts1"); |
| 390 | 392 | if(!dom){ |
| 391 | 393 | return; | ... | ... |