|
@@ -11,8 +11,8 @@
|
|
|
custom-class="xl-dialog"
|
|
|
center
|
|
|
>
|
|
|
- <base-form ref="ruleForm" class="lib-edit" :data="formData" :is-inline="false" label-width="110px" :insertSlotArr="[9]">
|
|
|
- <div slot="OI9">
|
|
|
+ <base-form ref="ruleForm" class="lib-edit" :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">
|
|
|
<img class="img" :src="imgsrc + '_adm0'" alt="img">
|
|
@@ -31,7 +31,7 @@
|
|
|
</el-upload>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div slot="OI9" class="scoped-other-form">
|
|
|
+ <div slot="OI8" class="scoped-other-form">
|
|
|
<el-form-item label="点位坐标" class="scoped-item-two item">
|
|
|
纬度N<el-input v-model="cObj.latitude" disabled />
|
|
|
经度E<el-input v-model="cObj.longitude" disabled />
|
|
@@ -120,15 +120,13 @@ export default {
|
|
|
if (!params.custom_tag) params.custom_tag = '洪楼房源'
|
|
|
if (params.estate_id) {
|
|
|
this.formData = [
|
|
|
- { label: '所属楼盘', key: 'estate_id', rules: 1, class: 'c-3', type: 'selectRemote', changeHandle: this.estateChange,
|
|
|
+ { 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' },
|
|
|
remoteOptions: [
|
|
|
{ keyRO: params.estate_name, valRO: params.estate_id }
|
|
|
]
|
|
|
},
|
|
|
- { label: '区域', key: 'area_type', class: 'c-3', type: 'select', options: this.$dictData.area_type},
|
|
|
- { label: '产品类型', key: 'product_type', class: 'c-3', type: 'select', options: this.$dictData.product_type},
|
|
|
- { label: `产品户型`, label2: `快捷选择工具`, key: `HT`, class: 'c-3', type: 'select', options: this.roomAreaList, changeHandle: this.htChange,},
|
|
|
+ { label: `面积产品户型`, label2: `快捷选择工具`, key: `HT`, type: 'select', options: this.roomAreaList, changeHandle: this.htChange,},
|
|
|
{ label: '面积', key: 'area', class: 'c-3', type: 'inputFont', appendFont: '㎡', rules: [
|
|
|
{ validator: (rule, value, callback) => {
|
|
|
if (Number(value) < 0 || isNaN(Number(value))) {
|
|
@@ -138,17 +136,19 @@ export default {
|
|
|
}
|
|
|
}, trigger: 'blur' },
|
|
|
]},
|
|
|
+ { label: '产品类型', key: 'product_type', class: 'c-3', type: 'select', options: this.$dictData.product_type},
|
|
|
{ label: '房源户型', key: 'house_type', class: 'c-3', type: 'select', options: this.$dictData.house_type},
|
|
|
- { label: '房源标题', key: 'title'},
|
|
|
+ { label: '房源标题', key: 'title', rules: 1},
|
|
|
{ label: '户型图', key: 'house_img', class: 'c-3', type: 'upload' },
|
|
|
- { label: '房源主图', key: 'pri_image', rules: 1, class: 'c-3', type: 'cuImg',
|
|
|
+ { label: '房源封面', key: 'pri_image', rules: 1, class: 'c-3', type: 'cuImg',
|
|
|
options: {
|
|
|
w: 375,
|
|
|
h: 250,
|
|
|
SY: 1,
|
|
|
}
|
|
|
},
|
|
|
- { label: '房源地址', key: 'address' },
|
|
|
+ { label: '房源地址', key: 'address', class: 'c-3s' },
|
|
|
+ { label: '区域', key: 'area_type', class: 'c-3', type: 'select', options: this.$dictData.area_type},
|
|
|
{ label: '总价', key: 'price', class: 'c-3', type: 'inputFont', appendFont: '万元', rules: [
|
|
|
{ validator: (rule, value, callback) => {
|
|
|
if (Number(value) < 0 || isNaN(Number(value))) {
|
|
@@ -178,7 +178,7 @@ export default {
|
|
|
] },
|
|
|
{ label: '详细地址', label2: '如:1栋2单元305室', class: 'c-3', key: 'detail_address' },
|
|
|
{ label: '满几年', key: 'how_many_year', class: 'c-3', type: 'select', options: this.$dictData.house_room_year },
|
|
|
- { label: '是否装修', key: 'is_dec', class: 'c-3', type: 'select', options: this.$dictData.sys_yesno },
|
|
|
+ { label: '装修状态', key: 'is_dec', class: 'c-3', type: 'select', options: this.$dictData.room_dec },
|
|
|
{ label: '业主称呼', class: 'c-3', key: 'owner' },
|
|
|
{ label: '业主电话', class: 'c-3', key: 'phone' },
|
|
|
{ label: '自定义标签', class: 'c-3', key: 'custom_tag', rules: 1 },
|
|
@@ -208,7 +208,7 @@ export default {
|
|
|
const htObj = arrToObj(this.$dictData.house_type)
|
|
|
const ptObj = arrToObj(this.$dictData.product_type)
|
|
|
list.map(item => {
|
|
|
- item.key = `${htObj[item.house_type]}${item.area}㎡-${ptObj[item.product_type]}`
|
|
|
+ item.key = `${item.area}㎡-${ptObj[item.product_type]}-${htObj[item.house_type]}`
|
|
|
item.key2 = `${htObj[item.house_type]}`
|
|
|
item.val = item.id
|
|
|
})
|
|
@@ -237,7 +237,7 @@ export default {
|
|
|
this.cObj.area = ra.area
|
|
|
this.cObj.house_img = ra.pri_image
|
|
|
this.cObj.HT = val
|
|
|
- this.cObj.title = `${ra.key}-${this.cObj.estate_name}(${arrToObj(this.$dictData.area_type)[this.cObj.area_type]})`
|
|
|
+ this.cObj.title = `${ra.key}(${arrToObj(this.$dictData.area_type)[this.cObj.area_type]})`
|
|
|
this.getDef('edit')
|
|
|
}
|
|
|
return
|