Procházet zdrojové kódy

Merge branch 'dev' of http://git.ycjcjy.com/zhiyuxing/estateagents-admin-manager into dev

zhoulisen před 5 roky
rodič
revize
d9a38d45ad

+ 1
- 1
src/pages/statistical/consultant/homePagePersons.jsx Zobrazit soubor

@@ -93,7 +93,7 @@ function record(props) {
93 93
             dataIndex: 'sex',
94 94
             key: 'sex',
95 95
             align: 'center',
96
-            render: (_, record) => <span>{record.sex == 1 ? '男' : '女'}</span>,
96
+            render: (_, record) => <span>{record.sex === 1 ? '男' : record.sex === 2 ? '女' : '未知'}</span>,
97 97
         },
98 98
         {
99 99
             title: '访问次数',

+ 1
- 1
src/pages/statistical/consultant/table.jsx Zobrazit soubor

@@ -109,7 +109,7 @@ function record(props) {
109 109
             dataIndex: 'sex',
110 110
             key: 'sex',
111 111
             align: 'center',
112
-            render: (_, record) => <span>{record.sex == 1 ? '男' : '女'}</span>,
112
+            render: (_, record) => <span>{record.sex === 1 ? '男' : record.sex === 2 ? '女' : '未知'}</span>,
113 113
         },
114 114
     ]
115 115
 

+ 1
- 1
src/pages/statistical/consultant/visitNum.jsx Zobrazit soubor

@@ -139,7 +139,7 @@ function record(props) {
139 139
             dataIndex: 'sex',
140 140
             key: 'sex',
141 141
             align: 'center',
142
-            render: (_, record) => <span>{record.sex == null ? '未知': (record.sex == 1 ? '男' : '女')}</span>,
142
+            render: (_, record) => <span>{record.sex === 1 ? '男' : record.sex === 2 ? '女' : '未知'}</span>,
143 143
         },
144 144
         {
145 145
             title: '访问时间',

+ 1
- 1
src/pages/statistical/consultant/visitPersons.jsx Zobrazit soubor

@@ -85,7 +85,7 @@ function record(props) {
85 85
             dataIndex: 'sex',
86 86
             key: 'sex',
87 87
             align: 'center',
88
-            render: (_, record) => <span>{record.sex == 1 ? '男' : '女'}</span>,
88
+            render: (_, record) => <span>{record.sex === 1 ? '男' : record.sex === 2 ? '女' : '未知'}</span>,
89 89
         },
90 90
         {
91 91
             title: '访问次数',