浏览代码

住户显示问题

Shannon_mu 3 年之前
父节点
当前提交
0ee2e2a240
共有 1 个文件被更改,包括 1 次插入5 次删除
  1. 1 5
      operationSupport/src/views/ownerManagement/stepPage/newAdd.vue

+ 1 - 5
operationSupport/src/views/ownerManagement/stepPage/newAdd.vue

@@ -118,11 +118,7 @@
                     <div class="formContent-formList house" v-for="(item, index) in formData.houseList" :key="index">
                         <div class="block-title">
                             <div class="floor list-title">
-                                {{
-                                    `${item.buildingName} ${
-                                        item.unitName.indexOf('单元') !== -1 ? item.unitName : !!item.unitName ? item.unitName + '单元' : ''
-                                    }${item.roomNumber}`
-                                }}
+                                {{ `${item.buildingName} ${!!item.unitName ? CheckChinese(item.unitName, '单元') : ''}${item.roomNumber}` }}
                             </div>
                             <!-- <span class="remove list-title" @click="removeHouse(index)">移除</span> -->
                             <img class="bg-img" src="@/assets/img/ownerManagement/bg_card@2x.png" alt="" />