Commit 242501d34a395618faa688f21d3f480a6a62f91e

Authored by yangzhi
1 parent ff5fd682

刚才没改好 我是个憨批

src/views/resume/femalestaff.vue
@@ -381,11 +381,11 @@ export default { @@ -381,11 +381,11 @@ export default {
381 } 381 }
382 382
383 this.natureList = natureList; 383 this.natureList = natureList;
384 - this.abilityList = this.abilityList; 384 + this.abilityList = abilityList;
385 this.user = user; 385 this.user = user;
386 this.$nextTick(() => { 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,6 +294,7 @@ export default {
294 computed: { 294 computed: {
295 abilityEchart1VisibleComputed(){ 295 abilityEchart1VisibleComputed(){
296 return this.abilityList.reduce((total,item)=>{ 296 return this.abilityList.reduce((total,item)=>{
  297 + console.log(total,item);
297 return total + item.value; 298 return total + item.value;
298 },0)>0; 299 },0)>0;
299 }, 300 },
@@ -303,9 +304,12 @@ export default { @@ -303,9 +304,12 @@ export default {
303 },0)>0; 304 },0)>0;
304 }, 305 },
305 natureEchartVisibleComputed(){ 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 return total + item.value; 309 return total + item.value;
308 - },0)>0; 310 + },0);
  311 + console.log('natureEchartVisibleComputed total',total);
  312 + return total>0;
309 }, 313 },
310 userDetail() { 314 userDetail() {
311 let user = {...this.user}; 315 let user = {...this.user};
@@ -361,17 +365,14 @@ export default { @@ -361,17 +365,14 @@ export default {
361 } 365 }
362 366
363 this.natureList = natureList; 367 this.natureList = natureList;
364 - this.abilityList = this.abilityList; 368 + this.abilityList = abilityList;
365 this.user = user; 369 this.user = user;
366 this.$nextTick(() => { 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 initXinggeEchart(list) { 376 initXinggeEchart(list) {
376 let dom = document.getElementById("echarts3"); 377 let dom = document.getElementById("echarts3");
377 if(!dom){ 378 if(!dom){
@@ -386,6 +387,7 @@ export default { @@ -386,6 +387,7 @@ export default {
386 myChart.setOption(this.echartOption3); 387 myChart.setOption(this.echartOption3);
387 }, 388 },
388 initNengliEchart(list) { 389 initNengliEchart(list) {
  390 + console.log('initNengliEchart',list);
389 let dom = document.getElementById("echarts1"); 391 let dom = document.getElementById("echarts1");
390 if(!dom){ 392 if(!dom){
391 return; 393 return;