|
@@ -10,7 +10,7 @@
|
|
style="width: 100%"
|
|
style="width: 100%"
|
|
clearable
|
|
clearable
|
|
filterable
|
|
filterable
|
|
- @change="handleSearch"
|
|
|
|
|
|
+ @change="groupChange"
|
|
>
|
|
>
|
|
<el-option
|
|
<el-option
|
|
v-for="item in groupOption"
|
|
v-for="item in groupOption"
|
|
@@ -29,7 +29,7 @@
|
|
style="width: 100%"
|
|
style="width: 100%"
|
|
clearable
|
|
clearable
|
|
filterable
|
|
filterable
|
|
- @change="handleSearch"
|
|
|
|
|
|
+ @change="discChange"
|
|
>
|
|
>
|
|
<el-option
|
|
<el-option
|
|
v-for="item in discOption"
|
|
v-for="item in discOption"
|
|
@@ -39,6 +39,25 @@
|
|
/>
|
|
/>
|
|
</el-select>
|
|
</el-select>
|
|
</el-col>
|
|
</el-col>
|
|
|
|
+ <el-col :span="2">
|
|
|
|
+ <div style="text-align: center"><span>单元/楼栋</span></div>
|
|
|
|
+ </el-col>
|
|
|
|
+ <el-col :span="4">
|
|
|
|
+ <el-select
|
|
|
|
+ v-model="search.buildId"
|
|
|
|
+ style="width: 100%"
|
|
|
|
+ clearable
|
|
|
|
+ filterable
|
|
|
|
+ @change="handleSearch"
|
|
|
|
+ >
|
|
|
|
+ <el-option
|
|
|
|
+ v-for="item in buildOption"
|
|
|
|
+ :key="item.value"
|
|
|
|
+ :label="item.label"
|
|
|
|
+ :value="item.value"
|
|
|
|
+ />
|
|
|
|
+ </el-select>
|
|
|
|
+ </el-col>
|
|
<el-col :span="2">
|
|
<el-col :span="2">
|
|
<div style="text-align: center"><span>关键字</span></div>
|
|
<div style="text-align: center"><span>关键字</span></div>
|
|
</el-col>
|
|
</el-col>
|
|
@@ -132,14 +151,27 @@ export default {
|
|
},
|
|
},
|
|
mounted() {
|
|
mounted() {
|
|
this.getGroupOption()
|
|
this.getGroupOption()
|
|
- this.getDiscOption()
|
|
|
|
- this.getBuildOption()
|
|
|
|
|
|
+ // this.getDiscOption()
|
|
|
|
+ // this.getBuildOption()
|
|
this.initDict(this.dc_key).then((res) => {
|
|
this.initDict(this.dc_key).then((res) => {
|
|
this.getData()
|
|
this.getData()
|
|
})
|
|
})
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
-
|
|
|
|
|
|
+ groupChange() {
|
|
|
|
+ this.handleSearch()
|
|
|
|
+ const data = {
|
|
|
|
+ groupId: this.search.groupId
|
|
|
|
+ }
|
|
|
|
+ this.getDiscOption(data)
|
|
|
|
+ },
|
|
|
|
+ discChange() {
|
|
|
|
+ this.handleSearch()
|
|
|
|
+ const data = {
|
|
|
|
+ discId: this.search.discId
|
|
|
|
+ }
|
|
|
|
+ this.getBuildOption(data)
|
|
|
|
+ },
|
|
getData: function() {
|
|
getData: function() {
|
|
const _this = this
|
|
const _this = this
|
|
_this.loading = true
|
|
_this.loading = true
|
|
@@ -219,8 +251,8 @@ export default {
|
|
})
|
|
})
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- getDiscOption() {
|
|
|
|
- this.baseDiscRequest('listAll', {}).then((res) => {
|
|
|
|
|
|
+ getDiscOption(data) {
|
|
|
|
+ this.baseDiscRequest('listAll', data).then((res) => {
|
|
const data = res.data
|
|
const data = res.data
|
|
this.discOption = []
|
|
this.discOption = []
|
|
data.forEach(item => {
|
|
data.forEach(item => {
|
|
@@ -233,8 +265,8 @@ export default {
|
|
})
|
|
})
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- getBuildOption() {
|
|
|
|
- this.baseBuildRequest('listAll', {}).then((res) => {
|
|
|
|
|
|
+ getBuildOption(data) {
|
|
|
|
+ this.baseBuildRequest('listAll', data).then((res) => {
|
|
const data = res.data
|
|
const data = res.data
|
|
this.buildOption = []
|
|
this.buildOption = []
|
|
data.forEach(item => {
|
|
data.forEach(item => {
|