|
@@ -5,7 +5,7 @@
|
|
|
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" label-width="68px">
|
|
|
<el-form-item label="服务区" prop="areaCode">
|
|
|
<el-select v-model="queryParams.areaCode" placeholder="请选择服务区" @change="handleQuery">
|
|
|
- <el-option v-for="item in areaOptions" :key="item.id" :label="item.label" :value="item.id" />
|
|
|
+ <el-option v-for="item in areaOptions" :key="item.areaCode" :label="item.areaName" :value="item.areaCode" />
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
@@ -36,7 +36,7 @@
|
|
|
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" label-width="68px">
|
|
|
<el-form-item label="服务区" prop="areaCode">
|
|
|
<el-select v-model="queryParams.areaCode" placeholder="请选择服务区" @change="handleQuery">
|
|
|
- <el-option v-for="item in areaOptions" :key="item.id" :label="item.label" :value="item.id" />
|
|
|
+ <el-option v-for="item in areaOptions" :key="item.areaCode" :label="item.areaName" :value="item.areaCode" />
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
@@ -67,7 +67,7 @@
|
|
|
<script>
|
|
|
import { listPgSupplyH, listPvSupplyH } from '@/api/mgr/pgSupplyH'
|
|
|
import BaseChart from '@/components/BaseChart'
|
|
|
-import { areaTreeSelect } from '@/api/basecfg/area'
|
|
|
+import { areaWithFacsType } from '@/api/basecfg/area'
|
|
|
export default {
|
|
|
name: 'PgSupplyH',
|
|
|
dicts: ['meter_type'],
|
|
@@ -81,6 +81,8 @@ export default {
|
|
|
loading: true,
|
|
|
// 总条数
|
|
|
total: 0,
|
|
|
+ facsType: '',
|
|
|
+ facsSubType: '',
|
|
|
pgSupplyHList: [],
|
|
|
pvSupplyHList: [],
|
|
|
// 查询参数
|
|
@@ -251,15 +253,16 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
async created() {
|
|
|
- await this.getAreaList('Area')
|
|
|
+ this.facsType = 'W'
|
|
|
+ await this.getAreaList()
|
|
|
this.getList()
|
|
|
},
|
|
|
methods: {
|
|
|
// 查询区域列表
|
|
|
- async getAreaList(tier) {
|
|
|
- await areaTreeSelect(tier).then(response => {
|
|
|
+ async getAreaList() {
|
|
|
+ await areaWithFacsType(this.facsType, this.facsSubType).then(response => {
|
|
|
this.areaOptions = response.data
|
|
|
- this.queryParams.areaCode = this.areaOptions[0].id
|
|
|
+ this.queryParams.areaCode = this.areaOptions[0].areaCode
|
|
|
})
|
|
|
},
|
|
|
getList() {
|