|
@@ -72,6 +72,9 @@
|
|
:tagActive="houseForm.tagIds ? houseForm.tagIds.split(',') : []">
|
|
:tagActive="houseForm.tagIds ? houseForm.tagIds.split(',') : []">
|
|
</tag>
|
|
</tag>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
|
+ <el-form-item label="房源负责人" class="hui-textarea">
|
|
|
|
+ <cc ref="cc" type="insert" :ccList="ccList" label="房源负责人" :maxLen="1"></cc>
|
|
|
|
+ </el-form-item>
|
|
<el-form-item label="自定义信息" class="hui-textarea">
|
|
<el-form-item label="自定义信息" class="hui-textarea">
|
|
<custom-data ref="customData" :list="customList"></custom-data>
|
|
<custom-data ref="customData" :list="customList"></custom-data>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
@@ -95,6 +98,7 @@
|
|
import tag from '@/components/common/tag'
|
|
import tag from '@/components/common/tag'
|
|
import projectItem from '@/components/common/projectItem'
|
|
import projectItem from '@/components/common/projectItem'
|
|
import customData from '@/components/common/customData'
|
|
import customData from '@/components/common/customData'
|
|
|
|
+ import cc from '@/components/common/cc'
|
|
export default {
|
|
export default {
|
|
props: ['isUpdate', 'detailId'],
|
|
props: ['isUpdate', 'detailId'],
|
|
data() {
|
|
data() {
|
|
@@ -123,7 +127,8 @@
|
|
responsibility: [],
|
|
responsibility: [],
|
|
videoList: [],
|
|
videoList: [],
|
|
customList: [],
|
|
customList: [],
|
|
- showPicture: []
|
|
|
|
|
|
+ showPicture: [],
|
|
|
|
+ ccList: []
|
|
}
|
|
}
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
@@ -136,6 +141,13 @@
|
|
if (this.houseForm.video) this.videoList = JSON.parse(this.houseForm.video);
|
|
if (this.houseForm.video) this.videoList = JSON.parse(this.houseForm.video);
|
|
if (this.houseForm.showPicture) this.showPicture = JSON.parse(this.houseForm.showPicture);
|
|
if (this.houseForm.showPicture) this.showPicture = JSON.parse(this.houseForm.showPicture);
|
|
if (this.houseForm.data) this.customList = JSON.parse(this.houseForm.data);
|
|
if (this.houseForm.data) this.customList = JSON.parse(this.houseForm.data);
|
|
|
|
+ if (this.houseForm.chargePersonId) {
|
|
|
|
+ this.ccList = [{
|
|
|
|
+ id: this.houseForm.chargePersonId,
|
|
|
|
+ name: this.houseForm.chargePersonName,
|
|
|
|
+ portrait: ''
|
|
|
|
+ }]
|
|
|
|
+ }
|
|
}
|
|
}
|
|
})
|
|
})
|
|
}
|
|
}
|
|
@@ -151,6 +163,8 @@
|
|
postData['showPicture'] = JSON.stringify(this.$refs.showPicture.fileList);
|
|
postData['showPicture'] = JSON.stringify(this.$refs.showPicture.fileList);
|
|
postData['data'] = JSON.stringify(this.$refs.customData.listData);
|
|
postData['data'] = JSON.stringify(this.$refs.customData.listData);
|
|
postData['tagIds'] = this.$refs.tag.tagIds();
|
|
postData['tagIds'] = this.$refs.tag.tagIds();
|
|
|
|
+ if (this.$refs.cc.list.length > 0) postData['chargePersonId'] = this.$refs.cc
|
|
|
|
+ .list[0].id;
|
|
postData = Object.assign(postData, projectData);
|
|
postData = Object.assign(postData, projectData);
|
|
if (this.isUpdate) {
|
|
if (this.isUpdate) {
|
|
updateHouse(postData).then(this.successFunc);
|
|
updateHouse(postData).then(this.successFunc);
|
|
@@ -175,7 +189,8 @@
|
|
upload,
|
|
upload,
|
|
tag,
|
|
tag,
|
|
projectItem,
|
|
projectItem,
|
|
- customData
|
|
|
|
|
|
+ customData,
|
|
|
|
+ cc
|
|
},
|
|
},
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|