优化房屋显示

This commit is contained in:
java110 2020-05-17 16:43:25 +08:00
parent d5800d46bf
commit 4a6cf56806
3 changed files with 18 additions and 14 deletions

View File

@ -6,6 +6,10 @@
<div class="ibox-content">
<div>
<div>
<div class="form-group row">
<label class="col-sm-2 col-form-label">房屋ID</label>
<div class="col-sm-10"><input v-model="editRoomInfo.roomId" disabled="disabled" type="text" placeholder="必填,请填写房屋编号" class="form-control"></div>
</div>
<div class="form-group row">
<label class="col-sm-2 col-form-label">房屋编号</label>
<div class="col-sm-10"><input v-model="editRoomInfo.roomNum" type="text" placeholder="必填,请填写房屋编号" class="form-control"></div>
@ -71,8 +75,8 @@
<div class="col-sm-10">
<select class="custom-select" disabled="disabled" readonly="true" v-model="editRoomInfo.state">
<option selected value="">必填,请选择房屋状态</option>
<option value="2001">出售</option>
<option value="2002">出售</option>
<option value="2001">入住</option>
<option value="2002">入住</option>
<option value="2003">已交定金</option>
<option value="2004">已出租</option>
</select>

View File

@ -102,7 +102,7 @@
data-page-size="10">
<thead>
<tr>
<th>房屋ID</th>
<!-- <th>房屋ID</th> -->
<th data-hide="phone">楼栋编号</th>
<th data-hide="phone">单元</th>
<th data-hide="phone">房屋编号</th>
@ -118,29 +118,29 @@
</thead>
<tbody>
<tr v-for="room in roomInfo.rooms">
<td>
<!-- <td>
{{room.roomId}}
</td> -->
<td>
{{room.floorNum}}号楼
</td>
<td>
{{room.floorNum}}
{{room.unitNum}}单元
</td>
<td>
{{room.unitNum}}
{{room.roomNum}}室
</td>
<td>
{{room.roomNum}}
</td>
<td>
{{room.layer}}
{{room.layer}}层
</td>
<!--<td>
{{room.apartment}}
</td>-->
<td>
{{room.builtUpArea}}
{{room.builtUpArea}}平方米
</td>
<td>
{{room.unitPrice != '0.00'?room.unitPrice:'0'}}
{{room.unitPrice != '0.00'?room.unitPrice:'0'}}
</td>
<td>
{{vc.component.showState(room.state)}}

View File

@ -130,9 +130,9 @@
},
showState:function(_state){
if(_state == '2001'){
return "房屋已售";
return "已入住";
}else if(_state == '2002'){
return "房屋未售";
return "未入驻";
}else if(_state == '2003'){
return "已交定金";
}