|
@@ -64,7 +64,7 @@
|
|
|
:on-error="roomAreaUploadError"
|
|
|
:before-upload="roomAreaUploadBefore"
|
|
|
>
|
|
|
- <img v-if="area.img_url" :src="area.img_url" class="img" @click="roomAreaUploadImg(one, two, three)">
|
|
|
+ <img v-if="area.img_url" :src="area.img_url + '_adm0'" class="img" @click="roomAreaUploadImg(one, two, three)">
|
|
|
<i v-else class="el-icon-plus icon" @click="roomAreaUploadImg(one, two, three)"/>
|
|
|
<img :src="area.img_url" class="ri-img-big">
|
|
|
</el-upload>
|
|
@@ -362,6 +362,7 @@ export default {
|
|
|
{ label: '楼盘图', key: 'pri_image', class: 'c-3', type: 'upload', rules: 1 },
|
|
|
{ label: '简评', key: 'remarked', class: 'c-3s', type: 'textarea' },
|
|
|
]
|
|
|
+ params.pri_image = this.IMadd(params.pri_image)
|
|
|
this.setDefaultValue(params)
|
|
|
},
|
|
|
close (str) {
|
|
@@ -414,6 +415,7 @@ export default {
|
|
|
}
|
|
|
let apiStr = 'admestateadd'
|
|
|
if (this.curObj.id) apiStr = 'admestateedit'
|
|
|
+ newForm.pri_image = this.IMdel(newForm.pri_image)
|
|
|
this.$api.house[apiStr](newForm).then(data => {
|
|
|
this.$msgs(newForm.id ? '编辑成功' : '新增成功')
|
|
|
this.productData = []
|