Commit 8f16b6dfb92276da323fc3739a90178cb485eb3c

Authored by yangzhi
1 parent 242501d3

超哥坑我千百遍 我待超哥如初恋

src/views/resume/femalestaff.vue
@@ -313,17 +313,17 @@ export default { @@ -313,17 +313,17 @@ export default {
313 }, 313 },
314 computed: { 314 computed: {
315 abilityEchart1VisibleComputed(){ 315 abilityEchart1VisibleComputed(){
316 - return this.abilityList.reduce((total,item)=>{ 316 + return this.natureList.reduce((total,item)=>{
317 return total + item.value; 317 return total + item.value;
318 },0)>0; 318 },0)>0;
319 }, 319 },
320 abilityEchart2VisibleComputed(){ 320 abilityEchart2VisibleComputed(){
321 - return this.abilityList.length>6 && this.abilityList.slice(6).reduce((total,item)=>{ 321 + return this.natureList.length>6 && this.natureList.slice(6).reduce((total,item)=>{
322 return total + item.value; 322 return total + item.value;
323 },0)>0; 323 },0)>0;
324 }, 324 },
325 natureEchartVisibleComputed(){ 325 natureEchartVisibleComputed(){
326 - return this.natureList.reduce((total,item)=>{ 326 + return this.abilityList.reduce((total,item)=>{
327 return total + item.value; 327 return total + item.value;
328 },0)>0; 328 },0)>0;
329 }, 329 },
@@ -384,8 +384,8 @@ export default { @@ -384,8 +384,8 @@ export default {
384 this.abilityList = abilityList; 384 this.abilityList = abilityList;
385 this.user = user; 385 this.user = user;
386 this.$nextTick(() => { 386 this.$nextTick(() => {
387 - this.initNengliEchart(abilityList);  
388 - this.initXinggeEchart(natureList); 387 + this.initNengliEchart(natureList);
  388 + this.initXinggeEchart(abilityList);
389 }); 389 });
390 }); 390 });
391 }, 391 },
src/views/resume/malestaff.vue
@@ -293,22 +293,21 @@ export default { @@ -293,22 +293,21 @@ export default {
293 }, 293 },
294 computed: { 294 computed: {
295 abilityEchart1VisibleComputed(){ 295 abilityEchart1VisibleComputed(){
296 - return this.abilityList.reduce((total,item)=>{ 296 + return this.natureList.reduce((total,item)=>{
297 console.log(total,item); 297 console.log(total,item);
298 return total + item.value; 298 return total + item.value;
299 },0)>0; 299 },0)>0;
300 }, 300 },
301 abilityEchart2VisibleComputed(){ 301 abilityEchart2VisibleComputed(){
302 - return this.abilityList.length>6 && this.abilityList.slice(6).reduce((total,item)=>{ 302 + return this.natureList.length>6 && this.natureList.slice(6).reduce((total,item)=>{
303 return total + item.value; 303 return total + item.value;
304 },0)>0; 304 },0)>0;
305 }, 305 },
306 natureEchartVisibleComputed(){ 306 natureEchartVisibleComputed(){
307 console.log('natureEchartVisibleComputed this.natureList',this.natureList); 307 console.log('natureEchartVisibleComputed this.natureList',this.natureList);
308 - let total = this.natureList.reduce((total,item)=>{ 308 + let total = this.abilityList.reduce((total,item)=>{
309 return total + item.value; 309 return total + item.value;
310 },0); 310 },0);
311 - console.log('natureEchartVisibleComputed total',total);  
312 return total>0; 311 return total>0;
313 }, 312 },
314 userDetail() { 313 userDetail() {
@@ -368,8 +367,8 @@ export default { @@ -368,8 +367,8 @@ export default {
368 this.abilityList = abilityList; 367 this.abilityList = abilityList;
369 this.user = user; 368 this.user = user;
370 this.$nextTick(() => { 369 this.$nextTick(() => {
371 - this.initNengliEchart(abilityList);  
372 - this.initXinggeEchart(natureList); 370 + this.initNengliEchart(natureList);
  371 + this.initXinggeEchart(abilityList);
373 }); 372 });
374 }); 373 });
375 }, 374 },