优化房屋显示

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 class="ibox-content">
<div> <div>
<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"> <div class="form-group row">
<label class="col-sm-2 col-form-label">房屋编号</label> <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> <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"> <div class="col-sm-10">
<select class="custom-select" disabled="disabled" readonly="true" v-model="editRoomInfo.state"> <select class="custom-select" disabled="disabled" readonly="true" v-model="editRoomInfo.state">
<option selected value="">必填,请选择房屋状态</option> <option selected value="">必填,请选择房屋状态</option>
<option value="2001">出售</option> <option value="2001">入住</option>
<option value="2002">出售</option> <option value="2002">入住</option>
<option value="2003">已交定金</option> <option value="2003">已交定金</option>
<option value="2004">已出租</option> <option value="2004">已出租</option>
</select> </select>

View File

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

View File

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