|
@@ -67,7 +67,7 @@
|
|
|
<script>
|
|
|
import { listPgSupplyH, listPvSupplyH } from '@/api/mgr/pgSupplyH'
|
|
|
import BaseChart from '@/components/BaseChart'
|
|
|
-import { areaWithFacsType } from '@/api/basecfg/area'
|
|
|
+import { areaWithFacsCategory } from '@/api/basecfg/area'
|
|
|
export default {
|
|
|
name: 'PgSupplyH',
|
|
|
dicts: ['meter_type'],
|
|
@@ -81,8 +81,8 @@ export default {
|
|
|
loading: true,
|
|
|
// 总条数
|
|
|
total: 0,
|
|
|
- facsType: '',
|
|
|
- facsSubType: '',
|
|
|
+ facsCategory: '',
|
|
|
+ facsSubCategory: '',
|
|
|
pgSupplyHList: [],
|
|
|
pvSupplyHList: [],
|
|
|
// 查询参数
|
|
@@ -253,14 +253,14 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
async created() {
|
|
|
- this.facsType = 'W'
|
|
|
+ this.facsCategory = 'W'
|
|
|
await this.getAreaList()
|
|
|
this.getList()
|
|
|
},
|
|
|
methods: {
|
|
|
// 查询区域列表
|
|
|
async getAreaList() {
|
|
|
- await areaWithFacsType(this.facsType, this.facsSubType).then(response => {
|
|
|
+ await areaWithFacsCategory(this.facsCategory, this.facsSubCategory).then(response => {
|
|
|
this.areaOptions = response.data
|
|
|
this.queryParams.areaCode = this.areaOptions[0].areaCode
|
|
|
})
|
|
@@ -268,11 +268,13 @@ export default {
|
|
|
getList() {
|
|
|
this.loading = true
|
|
|
if (this.activeName === 'first') {
|
|
|
+ areaWithFacsCategory('W', '')
|
|
|
listPgSupplyH(this.queryParams).then(response => {
|
|
|
this.pgSupplyHList = response.rows
|
|
|
this.loading = false
|
|
|
})
|
|
|
} else {
|
|
|
+ areaWithFacsCategory('E', '')
|
|
|
listPvSupplyH(this.queryParams).then(response => {
|
|
|
this.pvSupplyHList = response.data
|
|
|
this.loading = false
|