|
@@ -7,11 +7,11 @@
|
|
|
:visible.sync="isShow"
|
|
|
:title="curObj.id ? '编辑房源' : '新增房源'"
|
|
|
:fullscreen="false"
|
|
|
- width="960px"
|
|
|
+ :width="estate_id ? '960px' : '360px'"
|
|
|
custom-class="xl-dialog"
|
|
|
center
|
|
|
>
|
|
|
- <base-form ref="ruleForm" class="lib-edit" :data="formData" :is-inline="false" label-width="110px" :insertSlotArr="[8]">
|
|
|
+ <base-form ref="ruleForm" :class="estate_id ? 'lib-edit' : 'lib-edit scoped-le2' " :data="formData" :is-inline="false" label-width="110px" :insertSlotArr="[8]">
|
|
|
<div slot="OI8">
|
|
|
<div class="scoped-img-area">
|
|
|
<div class="sia-op" v-for="(imgsrc,index) in imagesArr" :key="index">
|
|
@@ -70,6 +70,7 @@ export default {
|
|
|
isShowMap: false,
|
|
|
imagesArr: [],
|
|
|
roomAreaList: [],
|
|
|
+ estate_id: '',
|
|
|
}
|
|
|
},
|
|
|
watch: {
|
|
@@ -119,6 +120,7 @@ export default {
|
|
|
}
|
|
|
if (!params.custom_tag) params.custom_tag = '洪楼房源'
|
|
|
if (params.estate_id) {
|
|
|
+ this.estate_id = params.estate_id
|
|
|
this.formData = [
|
|
|
{ label: '所属楼盘', key: 'estate_id', rules: 1, type: 'selectRemote', changeHandle: this.estateChange,
|
|
|
remoteParams: { skey: 'estate_name', api: `house.admestatelist?estate_tag=二手`, opKey: 'estate_name', opVal: 'id' },
|
|
@@ -203,6 +205,7 @@ export default {
|
|
|
},
|
|
|
estateChange (estate_id, op, cur) {
|
|
|
if (estate_id) {
|
|
|
+ this.estate_id = estate_id
|
|
|
this.$api.house.admestatehousearealist({estate_id}).then(res => {
|
|
|
const list = res.list || []
|
|
|
const htObj = arrToObj(this.$dictData.house_type)
|
|
@@ -227,6 +230,8 @@ export default {
|
|
|
this.cObj.HT = ''
|
|
|
this.getDef('edit')
|
|
|
})
|
|
|
+ } else {
|
|
|
+ this.estate_id = ''
|
|
|
}
|
|
|
},
|
|
|
htChange (val) {
|
|
@@ -303,6 +308,9 @@ export default {
|
|
|
padding-top: 0;
|
|
|
padding-left: 0;
|
|
|
padding-bottom: 40px;
|
|
|
+ &.scoped-le2 {
|
|
|
+ width: 300px;
|
|
|
+ }
|
|
|
::v-deep .el-form-item {
|
|
|
margin-bottom: 10px;
|
|
|
}
|