diff --git a/src/components/userinfo/usercenter/components/dataStatistics.vue b/src/components/userinfo/usercenter/components/dataStatistics.vue index 8a1cd41..858c231 100644 --- a/src/components/userinfo/usercenter/components/dataStatistics.vue +++ b/src/components/userinfo/usercenter/components/dataStatistics.vue @@ -379,17 +379,24 @@ export default { // scopedSlots: { customRender: 'userName' }, customRender: (text, row, index) => { let sex - switch (row.sex) { - case 0: - sex = '男女不限' - case 1: - sex = '男' - case 2: - sex = '女' + if(row.sex == '1'){ + sex ='男' + }else if(row.sex == '2'){ + sex = '女' + }else{ + sex = "未知" + } + // switch (row.sex) { + // case 0: + // sex = '男女不限' + // case 1: + // sex = '男' + // case 2: + // sex = '女' - default: - break - } + // default: + // break + // } return text.trim() + '/' + (sex ? sex + '/' : '') + (row.age ? row.age + '/' : '') + (row.nation ? row.nation : '') }, }, @@ -809,6 +816,10 @@ export default {