|
@@ -37,7 +37,7 @@
|
|
<el-radio v-model="houseForm.openState" :label="0">不公开</el-radio>
|
|
<el-radio v-model="houseForm.openState" :label="0">不公开</el-radio>
|
|
<el-radio v-model="houseForm.openState" :label="1">公开</el-radio>
|
|
<el-radio v-model="houseForm.openState" :label="1">公开</el-radio>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
- <el-form-item label="启用日期">
|
|
|
|
|
|
+ <el-form-item label="启用日期" prop="invocationDate" :rules="[{required: true, message: '请选择启用日期'}]">
|
|
<el-date-picker v-model="houseForm.invocationDate" value-format="yyyy-MM-dd" type="date"
|
|
<el-date-picker v-model="houseForm.invocationDate" value-format="yyyy-MM-dd" type="date"
|
|
placeholder="请选择启用日期">
|
|
placeholder="请选择启用日期">
|
|
</el-date-picker>
|
|
</el-date-picker>
|
|
@@ -157,14 +157,15 @@
|
|
this.$refs.projectItem.submit((projectData, valids) => {
|
|
this.$refs.projectItem.submit((projectData, valids) => {
|
|
this.$refs.houseForm.validate((valid) => {
|
|
this.$refs.houseForm.validate((valid) => {
|
|
if (valid && valids) {
|
|
if (valid && valids) {
|
|
|
|
+ if (this.$refs.cc.list.length === 0) return this.$message.warning('请添加房源负责人');
|
|
|
|
+ if (!this.$refs.tag.tagIds()) return this.$message.warning('请至少选择一个标签');
|
|
let postData = JSON.parse(JSON.stringify(this.houseForm));
|
|
let postData = JSON.parse(JSON.stringify(this.houseForm));
|
|
postData['picture'] = JSON.stringify(this.$refs.image.fileList);
|
|
postData['picture'] = JSON.stringify(this.$refs.image.fileList);
|
|
postData['video'] = JSON.stringify(this.$refs.video.fileList);
|
|
postData['video'] = JSON.stringify(this.$refs.video.fileList);
|
|
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['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);
|