Shannon_mu 3 years ago
parent
commit
e38db78c78
1 changed files with 4 additions and 2 deletions
  1. 4 2
      operationSupport/src/views/ownerManagement/index.vue

+ 4 - 2
operationSupport/src/views/ownerManagement/index.vue

@@ -65,7 +65,7 @@
             >
                 <template slot-scope="scope" slot="roomNumber">
                     <div class="table-list" v-for="(item, index) in scope.row.houseList" :key="index">
-                        {{ item.buildingName }}-{{ item.unitName }}-{{ item.roomNumber }}
+                        {{ item.buildingName }}-{{ item.unitName.indexOf('单元') === -1 ? item.unitName + '单元' : item.unitName }}-{{ item.roomNumber }}
                     </div>
                 </template>
                 <template slot-scope="scope" slot="householdType">
@@ -270,7 +270,9 @@ export default {
             if (row.residentStatus === 0) {
                 status = 1;
             }
-            let title = `您确定要修改状态住户“${buildingName}${unitName}${roomNumber}”`;
+            let title = `您确定要修改状态住户“${buildingName}${
+                unitName.indexOf('单元') === -1 ? unitName + '单元' : unitName
+            }${roomNumber}”`;
             this.$msgBox('是否修改住户状态', title)
                 .then(() => {
                     this.$http