|
|
@ -52,6 +52,7 @@ |
|
|
|
placeholder="楼号" |
|
|
|
size="small" |
|
|
|
clearable |
|
|
|
style="width: 120px;" |
|
|
|
class="resi-cell-select" |
|
|
|
:disabled="changeVDisabled" |
|
|
|
@clear="handleClearBuild" |
|
|
@ -65,12 +66,13 @@ |
|
|
|
> |
|
|
|
</el-option> |
|
|
|
</el-select> |
|
|
|
<!-- <el-select |
|
|
|
<el-select |
|
|
|
v-model.trim="form.UNIT_ID" |
|
|
|
:disabled="changeBDisabled" |
|
|
|
placeholder="单元" |
|
|
|
size="small" |
|
|
|
clearable |
|
|
|
style="width: 120px;" |
|
|
|
class="resi-cell-select" |
|
|
|
@click="handleClearDan" |
|
|
|
@change="handleChangeD" |
|
|
@ -86,9 +88,10 @@ |
|
|
|
<el-select |
|
|
|
v-model.trim="form.HOME_ID" |
|
|
|
:disabled="changeDDisabled" |
|
|
|
placeholder="楼号" |
|
|
|
placeholder="房号" |
|
|
|
size="small" |
|
|
|
clearable |
|
|
|
style="width: 120px;" |
|
|
|
class="resi-cell-select" |
|
|
|
> |
|
|
|
<el-option |
|
|
@ -98,7 +101,7 @@ |
|
|
|
:value="item.value" |
|
|
|
> |
|
|
|
</el-option> |
|
|
|
</el-select> --> |
|
|
|
</el-select> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</el-col> |
|
|
@ -190,6 +193,7 @@ |
|
|
|
</el-col> --> |
|
|
|
<el-col :span="24"> |
|
|
|
<el-button type="primary" size="small" @click="handleSearch">查询</el-button> |
|
|
|
<el-button class="diy-button--reset" size="small" @click="resetForm">重置</el-button> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
<div class="resi-down" @click="handleOpenSearch"> |
|
|
@ -372,6 +376,12 @@ export default { |
|
|
|
this.form.UNIT_ID = '' |
|
|
|
this.form.HOME_ID = '' |
|
|
|
}, |
|
|
|
resetForm(formName) { |
|
|
|
for(const n in this.form) { |
|
|
|
this.form[n] = '' |
|
|
|
} |
|
|
|
this.handleSearch() |
|
|
|
}, |
|
|
|
handleSearch() { |
|
|
|
// console.log('formmmmm---', this.form) |
|
|
|
const itemTypes = ['daterange', 'timerange'] |
|
|
@ -435,9 +445,13 @@ export default { |
|
|
|
if (n === val) { |
|
|
|
if (this.fixedList.length > 0) { |
|
|
|
let _item = {} |
|
|
|
let hasVal = false |
|
|
|
this.fixedList.forEach((item, index) => { |
|
|
|
if (item.columnName === val) { |
|
|
|
if (item.columnName == val) { |
|
|
|
hasVal = true |
|
|
|
item.columnValue[0] = this.form[val] |
|
|
|
if (!this.form[val]) this.fixedList.splice(index, 1) |
|
|
|
console.log('fixedList----val', this.fixedList) |
|
|
|
} else { |
|
|
|
_item = { |
|
|
|
queryType: 'equal', |
|
|
@ -445,10 +459,11 @@ export default { |
|
|
|
columnName: val, |
|
|
|
columnValue: [this.form[val]] |
|
|
|
} |
|
|
|
console.log('fixedList----else', _item) |
|
|
|
// this.$set(this.fixedList, index, _item) |
|
|
|
} |
|
|
|
}) |
|
|
|
if (Object.keys(_item).length > 0) this.fixedList.push(_item) |
|
|
|
if (Object.keys(_item).length > 0 && !hasVal) this.fixedList.push(_item) |
|
|
|
} else { |
|
|
|
this.$set(this.fixedList, 0, { |
|
|
|
queryType: 'equal', |
|
|
|