浏览代码

性别 为空情况

魏熙美 5 年前
父节点
当前提交
b4afb7cde2
共有 3 个文件被更改,包括 3 次插入3 次删除
  1. 1
    1
      src/views/customer/drift.vue
  2. 1
    1
      src/views/customer/list.vue
  3. 1
    1
      src/views/customer/recommendCustomer.vue

+ 1
- 1
src/views/customer/drift.vue 查看文件

@@ -22,7 +22,7 @@
22 22
       <el-table-column
23 23
               prop="sex"
24 24
               label="性别">
25
-        <template slot-scope="scope">{{ scope.row.sex === 1 ? '男' : '女' }}</template>
25
+        <template slot-scope="scope">{{ scope.row.sex === 1 ? '男' : scope.row.sex === 2 ? '女' : '' }}</template>
26 26
       </el-table-column>
27 27
     </el-table>
28 28
     <el-pagination

+ 1
- 1
src/views/customer/list.vue 查看文件

@@ -51,7 +51,7 @@
51 51
       <el-table-column
52 52
               prop="sex"
53 53
               label="性别">
54
-        <template slot-scope="scope">{{ scope.row.sex === 1 ? '男' : '女' }}</template>
54
+        <template slot-scope="scope">{{ scope.row.sex === 1 ? '男' : scope.row.sex === 2 ? '女' : '' }}</template>
55 55
       </el-table-column>
56 56
       <el-table-column  label="置业顾问">
57 57
         <template slot-scope="scope">

+ 1
- 1
src/views/customer/recommendCustomer.vue 查看文件

@@ -58,7 +58,7 @@
58 58
         prop="sex"
59 59
         width="100"
60 60
         label="性别">
61
-        <template slot-scope="scope">{{ scope.row.sex === 1 ? '男' : '女' }}</template>
61
+        <template slot-scope="scope">{{ scope.row.sex === 1 ? '男' : scope.row.sex === 2 ? '女' : '' }}</template>
62 62
       </el-table-column>
63 63
       <el-table-column
64 64
         prop="intention"