|
@@ -352,7 +352,7 @@ export default {
|
|
|
this.rentSaleType = data.salesType == 1 ? '可租可售' : data.salesType == 2 ? '只租' : '只售';
|
|
|
this.houseType = data.buildingType == 1 ? '住宅' : '商用';
|
|
|
this.floor = data.floorNumber;
|
|
|
- this.orientation = data.orientationOfRoom == 1 ? '东' : data.orientationOfRoom == 2 ? '南' : data.orientationOfRoom == 3 ? '西' : data.orientationOfRoom == 4 ? '北' : data.orientationOfRoom == 5 ? '东南' : data.orientationOfRoom == 6 ? '西南' : data.orientationOfRoom == 7 ? '西北' : '东北';
|
|
|
+ this.orientation = data.orientationOfRoom == 1 ? '东' : data.orientationOfRoom == 2 ? '南' : data.orientationOfRoom == 3 ? '西' : data.orientationOfRoom == 4 ? '北' : data.orientationOfRoom == 5 ? '东南' : data.orientationOfRoom == 6 ? '西南' : data.orientationOfRoom == 7 ? '西北' : data.orientationOfRoom == 8 ? '东北' : '-';
|
|
|
if (data.housingType != null) {
|
|
|
let housingTypes = data.housingType.split(':');
|
|
|
this.house = (housingTypes[0] == '' ? '-' : housingTypes[0]) + '室' + (housingTypes[1] == '' ? '-' : housingTypes[1]) + '厅' + (housingTypes[2] == '' ? '-' : housingTypes[2]) + '卫'
|
|
@@ -384,10 +384,8 @@ export default {
|
|
|
houseRentFind () {
|
|
|
this.$http.post(`/czc-community/house/rent/out/find/${this.params.data.rentOutId}`).then(({ status, data, msg }) => {
|
|
|
if (status == 0) {
|
|
|
- // debugger
|
|
|
var dataHouseId = data.houseId;
|
|
|
this.formData = data;
|
|
|
-
|
|
|
this.formData.config = (data.config).split(',');
|
|
|
this.formData.highLights = (data.highLights).split(',');
|
|
|
this.formData.requirement = (data.requirement).split(',');
|
|
@@ -398,7 +396,7 @@ export default {
|
|
|
this.formData.leaseType = this.formData.leaseType + '';
|
|
|
|
|
|
this.formData.houseId = [];
|
|
|
- if (data.unitName != null) {
|
|
|
+ if (data.unitName != null && data.unitName != '') {
|
|
|
this.formData.houseId.push(data.communityId + '');
|
|
|
this.formData.houseId.push(data.buildingId + '');
|
|
|
this.formData.houseId.push(data.unitName);
|