|
@@ -5,32 +5,13 @@
|
|
|
:show-close="false"
|
|
|
:close-on-click-modal="false"
|
|
|
:visible.sync="isShow"
|
|
|
- :title="curObj.id ? '编辑楼盘动态' : '新增楼盘动态'"
|
|
|
+ :title="curObj.id ? '编辑楼盘置业顾问' : '新增楼盘置业顾问'"
|
|
|
:fullscreen="false"
|
|
|
width="700px"
|
|
|
custom-class="xl-dialog"
|
|
|
center
|
|
|
>
|
|
|
<base-form ref="ruleForm" class="lib-edit" :data="formData" :is-inline="false" label-width="110px">
|
|
|
- <div slot="otherItem">
|
|
|
- <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">
|
|
|
- <span class="close" @click="imgDel(index)"></span>
|
|
|
- </div>
|
|
|
- <el-upload
|
|
|
- class="sia-img"
|
|
|
- :action="`${domainUrl}/adm/upload/cloud`"
|
|
|
- :data="{logic_type: 'estate', token}"
|
|
|
- name="upload"
|
|
|
- :show-file-list="false"
|
|
|
- :on-success="roomAreaUploadSuccess"
|
|
|
- :before-upload="roomAreaUploadBefore"
|
|
|
- >
|
|
|
- <i class="el-icon-plus icon"/>
|
|
|
- </el-upload>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
</base-form>
|
|
|
<div class="xl-form">
|
|
|
<div class="xl-form-footer">
|
|
@@ -77,7 +58,7 @@ export default {
|
|
|
this.formData = [
|
|
|
{ label: '销售列表', key: 'sale_id', type: 'selectRemote',
|
|
|
remoteParams: { skey: 'sale_name', api: `user.admsaleuserlist`, opKey: 'sale_name', opVal: 'id' },
|
|
|
- remoteOptions: [{ keyRO: item.sale_name, valRO: item.sale_id }]
|
|
|
+ remoteOptions: [{ keyRO: params.sale_name, valRO: params.sale_id }]
|
|
|
},
|
|
|
]
|
|
|
this.setDefaultValue(params)
|
|
@@ -88,7 +69,7 @@ export default {
|
|
|
if (valid) {
|
|
|
const oldform = this.$refs.ruleForm.baseForm
|
|
|
const newForm = { ...oldform }
|
|
|
- if (this.curObj.id) newForm.sale_id = this.curObj.id
|
|
|
+ if (this.curObj.id) newForm.id = this.curObj.id
|
|
|
newForm.estate_id = this.parentData.searchForm.estate_id
|
|
|
let apiStr = 'admestatesaleadd'
|
|
|
if (this.curObj.id) apiStr = 'admestatesaleedit'
|