Commit 8f16b6dfb92276da323fc3739a90178cb485eb3c

Authored by yangzhi
1 parent 242501d3

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

src/views/resume/femalestaff.vue
... ... @@ -313,17 +313,17 @@ export default {
313 313 },
314 314 computed: {
315 315 abilityEchart1VisibleComputed(){
316   - return this.abilityList.reduce((total,item)=>{
  316 + return this.natureList.reduce((total,item)=>{
317 317 return total + item.value;
318 318 },0)>0;
319 319 },
320 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 322 return total + item.value;
323 323 },0)>0;
324 324 },
325 325 natureEchartVisibleComputed(){
326   - return this.natureList.reduce((total,item)=>{
  326 + return this.abilityList.reduce((total,item)=>{
327 327 return total + item.value;
328 328 },0)>0;
329 329 },
... ... @@ -384,8 +384,8 @@ export default {
384 384 this.abilityList = abilityList;
385 385 this.user = user;
386 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 293 },
294 294 computed: {
295 295 abilityEchart1VisibleComputed(){
296   - return this.abilityList.reduce((total,item)=>{
  296 + return this.natureList.reduce((total,item)=>{
297 297 console.log(total,item);
298 298 return total + item.value;
299 299 },0)>0;
300 300 },
301 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 303 return total + item.value;
304 304 },0)>0;
305 305 },
306 306 natureEchartVisibleComputed(){
307 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 309 return total + item.value;
310 310 },0);
311   - console.log('natureEchartVisibleComputed total',total);
312 311 return total>0;
313 312 },
314 313 userDetail() {
... ... @@ -368,8 +367,8 @@ export default {
368 367 this.abilityList = abilityList;
369 368 this.user = user;
370 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 },
... ...