|
@@ -204,6 +204,7 @@
|
|
:disabled="isView"
|
|
:disabled="isView"
|
|
style="width: 100%;"
|
|
style="width: 100%;"
|
|
:options="options"
|
|
:options="options"
|
|
|
|
+ clearable
|
|
@change="buildChange"
|
|
@change="buildChange"
|
|
/>
|
|
/>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
@@ -290,6 +291,7 @@
|
|
popper-class="statistic_base"
|
|
popper-class="statistic_base"
|
|
placeholder=""
|
|
placeholder=""
|
|
filterable
|
|
filterable
|
|
|
|
+ clearable
|
|
:disabled="isView"
|
|
:disabled="isView"
|
|
>
|
|
>
|
|
<el-option
|
|
<el-option
|
|
@@ -318,6 +320,7 @@
|
|
v-model="houseForm.decorationSituation"
|
|
v-model="houseForm.decorationSituation"
|
|
placeholder=""
|
|
placeholder=""
|
|
filterable
|
|
filterable
|
|
|
|
+ clearable
|
|
:disabled="isView"
|
|
:disabled="isView"
|
|
:popper-append-to-body="false"
|
|
:popper-append-to-body="false"
|
|
popper-class="statistic_base"
|
|
popper-class="statistic_base"
|
|
@@ -343,12 +346,12 @@
|
|
<el-row>
|
|
<el-row>
|
|
<el-col :span="2" class="col-txt"><span>户型</span></el-col>
|
|
<el-col :span="2" class="col-txt"><span>户型</span></el-col>
|
|
<el-col :span="10" class="col-input">
|
|
<el-col :span="10" class="col-input">
|
|
- <el-form-item :disabled="isView">
|
|
|
|
|
|
+ <el-form-item>
|
|
<el-select
|
|
<el-select
|
|
v-model="houseForm.houseTypeId"
|
|
v-model="houseForm.houseTypeId"
|
|
placeholder=""
|
|
placeholder=""
|
|
filterable
|
|
filterable
|
|
- :disabled="isView"
|
|
|
|
|
|
+ clearable
|
|
:popper-append-to-body="false"
|
|
:popper-append-to-body="false"
|
|
popper-class="statistic_base"
|
|
popper-class="statistic_base"
|
|
@change="houseTypeChange"
|
|
@change="houseTypeChange"
|
|
@@ -382,7 +385,7 @@
|
|
:on-exceed="handleExceed"
|
|
:on-exceed="handleExceed"
|
|
disabled
|
|
disabled
|
|
>
|
|
>
|
|
-<!-- <i class="el-icon-plus" />-->
|
|
|
|
|
|
+ <!-- <i class="el-icon-plus" />-->
|
|
<div slot="tip" class="el-upload__tip">
|
|
<div slot="tip" class="el-upload__tip">
|
|
只能上传jpg/png文件,限制上传9张
|
|
只能上传jpg/png文件,限制上传9张
|
|
</div>
|
|
</div>
|
|
@@ -410,6 +413,7 @@
|
|
placeholder="请选择"
|
|
placeholder="请选择"
|
|
size="small"
|
|
size="small"
|
|
:disabled="isView"
|
|
:disabled="isView"
|
|
|
|
+ clearable
|
|
:popper-append-to-body="false"
|
|
:popper-append-to-body="false"
|
|
popper-class="statistic_base"
|
|
popper-class="statistic_base"
|
|
>
|
|
>
|
|
@@ -479,6 +483,7 @@ export default {
|
|
},
|
|
},
|
|
options: [],
|
|
options: [],
|
|
houseForm: {
|
|
houseForm: {
|
|
|
|
+ houseTypeId: null
|
|
},
|
|
},
|
|
DeptTree: [],
|
|
DeptTree: [],
|
|
urlStr: 'add',
|
|
urlStr: 'add',
|
|
@@ -627,6 +632,7 @@ export default {
|
|
this.urlStr = 'add'
|
|
this.urlStr = 'add'
|
|
this.dialogVisible = true
|
|
this.dialogVisible = true
|
|
this.fileList = []
|
|
this.fileList = []
|
|
|
|
+ this.houseTypeOption = []
|
|
this.dialogTitle = '新增房间'
|
|
this.dialogTitle = '新增房间'
|
|
},
|
|
},
|
|
handleEdit: function(val) {
|
|
handleEdit: function(val) {
|
|
@@ -634,6 +640,7 @@ export default {
|
|
this.urlStr = 'edit'
|
|
this.urlStr = 'edit'
|
|
this.houseForm = val
|
|
this.houseForm = val
|
|
this.fileList = []
|
|
this.fileList = []
|
|
|
|
+ this.houseTypeOption = []
|
|
this.dialogVisible = true
|
|
this.dialogVisible = true
|
|
this.dialogTitle = '编辑房间'
|
|
this.dialogTitle = '编辑房间'
|
|
this.loadingFlag = true
|
|
this.loadingFlag = true
|
|
@@ -867,11 +874,11 @@ export default {
|
|
})
|
|
})
|
|
},
|
|
},
|
|
houseTypeChange(val) {
|
|
houseTypeChange(val) {
|
|
|
|
+ this.fileList = []
|
|
const obj = this.houseTypeOption.find(item =>
|
|
const obj = this.houseTypeOption.find(item =>
|
|
item.value === val
|
|
item.value === val
|
|
)
|
|
)
|
|
if (obj !== undefined) {
|
|
if (obj !== undefined) {
|
|
- this.fileList = []
|
|
|
|
const files = JSON.parse(obj.files)
|
|
const files = JSON.parse(obj.files)
|
|
files.forEach(v => {
|
|
files.forEach(v => {
|
|
if (v) {
|
|
if (v) {
|