manage-client 3.2.38 → 3.2.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.gradle/{5.2.1 → 5.4.1}/fileChanges/last-build.bin +0 -0
- package/.gradle/5.4.1/fileHashes/fileHashes.lock +0 -0
- package/.gradle/{5.2.1 → 5.4.1}/gc.properties +0 -0
- package/build/dev-server.js +26 -6
- package/package.json +1 -1
- package/src/.idea/misc.xml +9 -0
- package/src/.idea/modules.xml +8 -0
- package/src/.idea/src.iml +9 -0
- package/src/.idea/vcs.xml +6 -0
- package/src/.idea/workspace.xml +93 -0
- package/src/components/sale/businessquery/BusinesQuery.vue +358 -358
- package/src/components/sale/businessquery/ChangeMeterQuery.vue +632 -632
- package/src/components/sale/businessquery/ChangeUserQuery.vue +357 -357
- package/src/components/sale/businessquery/DisableQuery.vue +451 -451
- package/src/components/sale/businessquery/EnableQuery.vue +408 -408
- package/src/components/sale/businessquery/FillCardQuery.vue +486 -486
- package/src/components/sale/businessquery/FillGasQuery.vue +511 -511
- package/src/components/sale/businessquery/InspectListUser.vue +1 -1
- package/src/components/sale/businessquery/OtherChargeQuery.vue +634 -634
- package/src/components/sale/businessquery/ReverseQuery.vue +402 -402
- package/src/components/sale/businessquery/SalesGasClassification.vue +168 -168
- package/src/components/sale/businessquery/TransferQuery.vue +418 -418
- package/src/components/sale/businessquery/iotStateSearch/iotStateQuery.vue +308 -308
- package/src/components/sale/filesquery/DeviceQuery.vue +534 -534
- package/src/components/sale/filesquery/RecordInfoQuery.vue +1260 -1260
- package/src/components/sale/report/aode/YearByUserType.vue +272 -272
- package/src/components/statistical/DendrogramManage.vue +239 -239
- package/src/filiale/WEINAN/OtherChargeQuery.vue +521 -521
- package/src/filiale/WEINAN/config/tableConfig.js +20 -20
- package/src/filiale/jingwei/RecordInfoQuery.vue +1142 -1142
- package/src/filiale/pingxiang/sale.js +9 -9
- package/src/filiale/qingtongxia/sale.js +13 -13
- package/src/filiale/rongcheng/UserQuery.vue +827 -827
- package/src/filiale/shaoguan/HandplanQuery.vue +1314 -1314
- package/src/filiale/shaoguan/TransferQuery.vue +403 -403
- package/src/filiale/shaoguan/config/exportConfig.js +433 -433
- package/src/filiale/shaoguan/errorHandplanQuery.vue +366 -366
- package/src/filiale/shaoguan/sale/businessquery/ExemptQuery.vue +314 -314
- package/src/filiale/shaoguan/sale/businessquery/FMYGasQuery.vue +687 -687
- package/src/filiale/shaoguan/sale/businessquery/PaymentChangeQuery.vue +338 -338
- package/src/filiale/shaoguan/sale/businessquery/ReconcileQuery.vue +426 -426
- package/src/filiale/tongchuan/ChargeQuery.vue +1283 -1277
- package/src/filiale/tongchuan/FillGasQuery.vue +523 -523
- package/src/filiale/tongchuan/ReportList.vue +472 -472
- package/src/filiale/tongchuan/config/exportConfig.js +857 -857
- package/src/filiale/tongchuan/sale.js +16 -16
- package/src/filiale/zhongsheng/ChargeQuery.vue +1255 -0
- package/src/filiale/zhongsheng/config/exportConfig.js +899 -0
- package/src/filiale/zhongsheng/sale.js +10 -0
- package/src/main.js +66 -66
- package/.gradle/5.2.1/executionHistory/executionHistory.bin +0 -0
- package/.gradle/5.2.1/executionHistory/executionHistory.lock +0 -0
- package/.gradle/5.2.1/fileHashes/fileHashes.bin +0 -0
- package/.gradle/5.2.1/fileHashes/fileHashes.lock +0 -0
- package/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
|
@@ -1,239 +1,239 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div>
|
|
3
|
-
<div class="text-1">
|
|
4
|
-
<div id="charts"></div>
|
|
5
|
-
</div>
|
|
6
|
-
</div>
|
|
7
|
-
</template>
|
|
8
|
-
|
|
9
|
-
<script>
|
|
10
|
-
import {HttpResetClass} from "vue-client";
|
|
11
|
-
|
|
12
|
-
export default {
|
|
13
|
-
title: "用户分布",
|
|
14
|
-
data() {
|
|
15
|
-
return {
|
|
16
|
-
model : {},
|
|
17
|
-
company:"",
|
|
18
|
-
fencompany:"",
|
|
19
|
-
usertype:"",
|
|
20
|
-
metertype:"",
|
|
21
|
-
userstreet: "",
|
|
22
|
-
residential:"",
|
|
23
|
-
userinfo:"",
|
|
24
|
-
slicearea:"",
|
|
25
|
-
meterTypeArea:"",
|
|
26
|
-
meterTypeUser:""
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
methods: {
|
|
30
|
-
setBar() {
|
|
31
|
-
console.log('进入画图~~~~~~~~~~~~~~~~~~~')
|
|
32
|
-
console.log(this.model)
|
|
33
|
-
this.xc = this.$echarts.init(document.getElementById('charts'))
|
|
34
|
-
this.xc.setOption({
|
|
35
|
-
tooltip: {
|
|
36
|
-
trigger: 'item',
|
|
37
|
-
triggerOn: 'mousemove'
|
|
38
|
-
},
|
|
39
|
-
legend: {
|
|
40
|
-
top: '2%',
|
|
41
|
-
left: '3%',
|
|
42
|
-
orient: 'vertical',
|
|
43
|
-
data: [{
|
|
44
|
-
name: 'tree1',
|
|
45
|
-
icon: 'rectangle'
|
|
46
|
-
}],
|
|
47
|
-
borderColor: '#c23531'
|
|
48
|
-
},
|
|
49
|
-
series:[
|
|
50
|
-
{
|
|
51
|
-
type: 'tree',
|
|
52
|
-
|
|
53
|
-
name: 'tree1',
|
|
54
|
-
|
|
55
|
-
data: [this.model],
|
|
56
|
-
|
|
57
|
-
top: '5%',
|
|
58
|
-
left: '7%',
|
|
59
|
-
bottom: '2%',
|
|
60
|
-
right: '20%',
|
|
61
|
-
|
|
62
|
-
symbolSize: 7,
|
|
63
|
-
|
|
64
|
-
label: {
|
|
65
|
-
position: 'left',
|
|
66
|
-
verticalAlign: 'middle',
|
|
67
|
-
align: 'right'
|
|
68
|
-
},
|
|
69
|
-
|
|
70
|
-
leaves: {
|
|
71
|
-
label: {
|
|
72
|
-
position: 'right',
|
|
73
|
-
verticalAlign: 'middle',
|
|
74
|
-
align: 'left'
|
|
75
|
-
}
|
|
76
|
-
},
|
|
77
|
-
|
|
78
|
-
emphasis: {
|
|
79
|
-
focus: 'descendant'
|
|
80
|
-
},
|
|
81
|
-
|
|
82
|
-
expandAndCollapse: true,
|
|
83
|
-
|
|
84
|
-
animationDuration: 550,
|
|
85
|
-
animationDurationUpdate: 750
|
|
86
|
-
|
|
87
|
-
},
|
|
88
|
-
]
|
|
89
|
-
})
|
|
90
|
-
},
|
|
91
|
-
async getcompany() {
|
|
92
|
-
let HttpReset = new HttpResetClass()
|
|
93
|
-
//获取表具总数
|
|
94
|
-
let getcompany = await HttpReset.load('post','rs/sql/getCompany',{data:{}})
|
|
95
|
-
this.company=getcompany.data
|
|
96
|
-
},
|
|
97
|
-
async getfencompany(){
|
|
98
|
-
let HttpReset = new HttpResetClass()
|
|
99
|
-
//获取分公司总表具数
|
|
100
|
-
let getfencompany =await HttpReset.load('post','rs/sql/getFencompany',{data:{}})
|
|
101
|
-
this.fencompany=getfencompany.data
|
|
102
|
-
},
|
|
103
|
-
async getslicearea(){
|
|
104
|
-
let HttpReset = new HttpResetClass()
|
|
105
|
-
//获取分公司大区总表具数
|
|
106
|
-
let getslicearea =await HttpReset.load('post','rs/sql/getSlicearea',{data:{}})
|
|
107
|
-
this.slicearea=getslicearea.data
|
|
108
|
-
},
|
|
109
|
-
async getusertype(){
|
|
110
|
-
let HttpReset = new HttpResetClass()
|
|
111
|
-
//获取分公司大区民用和非民用总表具数
|
|
112
|
-
let getusertype =await HttpReset.load('post','rs/sql/getUsertype',{data:{}})
|
|
113
|
-
this.usertype=getusertype.data
|
|
114
|
-
},
|
|
115
|
-
async getmetertype() {
|
|
116
|
-
let HttpReset = new HttpResetClass()
|
|
117
|
-
//获取分公司民用和非民用各自表品牌总表具数
|
|
118
|
-
let getmetertype = await HttpReset.load('post', 'rs/sql/getMetertype', {data: {}})
|
|
119
|
-
this.metertype=getmetertype.data
|
|
120
|
-
},
|
|
121
|
-
async getmetertypeArea() {
|
|
122
|
-
let HttpReset = new HttpResetClass()
|
|
123
|
-
|
|
124
|
-
let meterTypeArea = await HttpReset.load('post', 'rs/sql/getMeterTypeArea', {data: {}})
|
|
125
|
-
this.meterTypeArea=meterTypeArea.data
|
|
126
|
-
},
|
|
127
|
-
async getmetertypeUser() {
|
|
128
|
-
let HttpReset = new HttpResetClass()
|
|
129
|
-
|
|
130
|
-
let meterTypeUser = await HttpReset.load('post', 'rs/sql/getMeterTypeUser', {data: {}})
|
|
131
|
-
this.meterTypeUser=meterTypeUser.data
|
|
132
|
-
},
|
|
133
|
-
|
|
134
|
-
dataGeneration () {
|
|
135
|
-
let model = {
|
|
136
|
-
name: '渭南天然气公司' + `\n (${this.company[0].sumnum})`,
|
|
137
|
-
value: this.company[0].sumnum,
|
|
138
|
-
children: []
|
|
139
|
-
}
|
|
140
|
-
for (let row1 of this.fencompany) {
|
|
141
|
-
let obj1 = {
|
|
142
|
-
name: row1.name + `\n (${row1.num})`,
|
|
143
|
-
value: row1.num,
|
|
144
|
-
children: []
|
|
145
|
-
}
|
|
146
|
-
const filter1 = this.conditionGenerate(this.slicearea, 'name', row1.name)
|
|
147
|
-
for (let row2 of filter1) {
|
|
148
|
-
let obj2 = {
|
|
149
|
-
name: row2.f_slice_area + `\n (${row2.num})`,
|
|
150
|
-
value: row2.num,
|
|
151
|
-
children: []
|
|
152
|
-
}
|
|
153
|
-
obj1.children.push(obj2)
|
|
154
|
-
const filter2 = this.conditionGenerate(this.usertype, ['name', 'f_slice_area'], [row1.name, row2.f_slice_area])
|
|
155
|
-
for (let row3 of filter2) {
|
|
156
|
-
let obj3 = {
|
|
157
|
-
name: row3.f_user_type + `(${row3.num})`,
|
|
158
|
-
value: row3.num,
|
|
159
|
-
children: []
|
|
160
|
-
}
|
|
161
|
-
obj2.children.push(obj3)
|
|
162
|
-
const filter3 = this.conditionGenerate(this.metertype, ['name', 'f_slice_area','f_user_type'], [row1.name, row2.f_slice_area,row3.f_user_type])
|
|
163
|
-
for (let row4 of filter3) {
|
|
164
|
-
let odj4 = {
|
|
165
|
-
name: row4.f_meter_brand + `(${row4.num})`,
|
|
166
|
-
value: row4.num,
|
|
167
|
-
children: []
|
|
168
|
-
}
|
|
169
|
-
obj3.children.push(odj4)
|
|
170
|
-
const filter4 = this.conditionGenerate(this.meterTypeArea, ['name', 'f_slice_area','f_user_type'], [row1.name, row2.f_slice_area,row3.f_user_type,row4.f_meter_brand])
|
|
171
|
-
for (let row5 of filter4) {
|
|
172
|
-
let obj5 = {
|
|
173
|
-
name: row5.f_residential_area + `(${row5.num})`,
|
|
174
|
-
value: row5.num,
|
|
175
|
-
children: []
|
|
176
|
-
}
|
|
177
|
-
odj4.children.push(obj5)
|
|
178
|
-
// const filter5 = this.conditionGenerate(this.meterTypeUser, ['name', 'f_slice_area','f_user_type'], [row1.name, row2.f_slice_area,row3.f_user_type,row4.f_meter_brand,row5.f_residential_area])
|
|
179
|
-
// console.log()
|
|
180
|
-
// for (let row6 of filter5) {
|
|
181
|
-
// let obj6 = {
|
|
182
|
-
// name: row6.f_user_name + `(${row6.num})`,
|
|
183
|
-
// value: row6.num,
|
|
184
|
-
// children: []
|
|
185
|
-
// }
|
|
186
|
-
// obj5.children.push(obj6)
|
|
187
|
-
// }
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
model.children.push(obj1)
|
|
193
|
-
}
|
|
194
|
-
this.model = model
|
|
195
|
-
},
|
|
196
|
-
/**
|
|
197
|
-
* 数组筛选
|
|
198
|
-
* @param data 要筛选的数组
|
|
199
|
-
* @param key 筛选的key,可以是数组
|
|
200
|
-
* @param value 筛选key对应的value值,可以是数组
|
|
201
|
-
* @returns {Array}
|
|
202
|
-
*/
|
|
203
|
-
conditionGenerate (data, key, value) {
|
|
204
|
-
const group = []
|
|
205
|
-
for (let row of data) {
|
|
206
|
-
if (key instanceof Array) {
|
|
207
|
-
let flag = true
|
|
208
|
-
for (let [index, item] of key.entries()) {
|
|
209
|
-
if (row[item] != value[index]) {
|
|
210
|
-
flag = false
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
|
-
if (flag) group.push(row)
|
|
214
|
-
} else {
|
|
215
|
-
if (row[key] == value) {
|
|
216
|
-
group.push(row)
|
|
217
|
-
}
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
return group
|
|
221
|
-
}
|
|
222
|
-
},
|
|
223
|
-
async ready(){
|
|
224
|
-
await this.getcompany() //总公司
|
|
225
|
-
await this.getfencompany() //分公司
|
|
226
|
-
await this.getslicearea() //大区
|
|
227
|
-
await this.getusertype() //用户类型
|
|
228
|
-
await this.getmetertype() //表型
|
|
229
|
-
await this.getmetertypeArea()
|
|
230
|
-
// await this.getmetertypeUser()
|
|
231
|
-
this.dataGeneration()
|
|
232
|
-
this.setBar()
|
|
233
|
-
},
|
|
234
|
-
}
|
|
235
|
-
</script>
|
|
236
|
-
|
|
237
|
-
<style scoped>
|
|
238
|
-
|
|
239
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<div class="text-1">
|
|
4
|
+
<div id="charts"></div>
|
|
5
|
+
</div>
|
|
6
|
+
</div>
|
|
7
|
+
</template>
|
|
8
|
+
|
|
9
|
+
<script>
|
|
10
|
+
import {HttpResetClass} from "vue-client";
|
|
11
|
+
|
|
12
|
+
export default {
|
|
13
|
+
title: "用户分布",
|
|
14
|
+
data() {
|
|
15
|
+
return {
|
|
16
|
+
model : {},
|
|
17
|
+
company:"",
|
|
18
|
+
fencompany:"",
|
|
19
|
+
usertype:"",
|
|
20
|
+
metertype:"",
|
|
21
|
+
userstreet: "",
|
|
22
|
+
residential:"",
|
|
23
|
+
userinfo:"",
|
|
24
|
+
slicearea:"",
|
|
25
|
+
meterTypeArea:"",
|
|
26
|
+
meterTypeUser:""
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
methods: {
|
|
30
|
+
setBar() {
|
|
31
|
+
console.log('进入画图~~~~~~~~~~~~~~~~~~~')
|
|
32
|
+
console.log(this.model)
|
|
33
|
+
this.xc = this.$echarts.init(document.getElementById('charts'))
|
|
34
|
+
this.xc.setOption({
|
|
35
|
+
tooltip: {
|
|
36
|
+
trigger: 'item',
|
|
37
|
+
triggerOn: 'mousemove'
|
|
38
|
+
},
|
|
39
|
+
legend: {
|
|
40
|
+
top: '2%',
|
|
41
|
+
left: '3%',
|
|
42
|
+
orient: 'vertical',
|
|
43
|
+
data: [{
|
|
44
|
+
name: 'tree1',
|
|
45
|
+
icon: 'rectangle'
|
|
46
|
+
}],
|
|
47
|
+
borderColor: '#c23531'
|
|
48
|
+
},
|
|
49
|
+
series:[
|
|
50
|
+
{
|
|
51
|
+
type: 'tree',
|
|
52
|
+
|
|
53
|
+
name: 'tree1',
|
|
54
|
+
|
|
55
|
+
data: [this.model],
|
|
56
|
+
|
|
57
|
+
top: '5%',
|
|
58
|
+
left: '7%',
|
|
59
|
+
bottom: '2%',
|
|
60
|
+
right: '20%',
|
|
61
|
+
|
|
62
|
+
symbolSize: 7,
|
|
63
|
+
|
|
64
|
+
label: {
|
|
65
|
+
position: 'left',
|
|
66
|
+
verticalAlign: 'middle',
|
|
67
|
+
align: 'right'
|
|
68
|
+
},
|
|
69
|
+
|
|
70
|
+
leaves: {
|
|
71
|
+
label: {
|
|
72
|
+
position: 'right',
|
|
73
|
+
verticalAlign: 'middle',
|
|
74
|
+
align: 'left'
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
|
|
78
|
+
emphasis: {
|
|
79
|
+
focus: 'descendant'
|
|
80
|
+
},
|
|
81
|
+
|
|
82
|
+
expandAndCollapse: true,
|
|
83
|
+
|
|
84
|
+
animationDuration: 550,
|
|
85
|
+
animationDurationUpdate: 750
|
|
86
|
+
|
|
87
|
+
},
|
|
88
|
+
]
|
|
89
|
+
})
|
|
90
|
+
},
|
|
91
|
+
async getcompany() {
|
|
92
|
+
let HttpReset = new HttpResetClass()
|
|
93
|
+
//获取表具总数
|
|
94
|
+
let getcompany = await HttpReset.load('post','rs/sql/getCompany',{data:{}})
|
|
95
|
+
this.company=getcompany.data
|
|
96
|
+
},
|
|
97
|
+
async getfencompany(){
|
|
98
|
+
let HttpReset = new HttpResetClass()
|
|
99
|
+
//获取分公司总表具数
|
|
100
|
+
let getfencompany =await HttpReset.load('post','rs/sql/getFencompany',{data:{}})
|
|
101
|
+
this.fencompany=getfencompany.data
|
|
102
|
+
},
|
|
103
|
+
async getslicearea(){
|
|
104
|
+
let HttpReset = new HttpResetClass()
|
|
105
|
+
//获取分公司大区总表具数
|
|
106
|
+
let getslicearea =await HttpReset.load('post','rs/sql/getSlicearea',{data:{}})
|
|
107
|
+
this.slicearea=getslicearea.data
|
|
108
|
+
},
|
|
109
|
+
async getusertype(){
|
|
110
|
+
let HttpReset = new HttpResetClass()
|
|
111
|
+
//获取分公司大区民用和非民用总表具数
|
|
112
|
+
let getusertype =await HttpReset.load('post','rs/sql/getUsertype',{data:{}})
|
|
113
|
+
this.usertype=getusertype.data
|
|
114
|
+
},
|
|
115
|
+
async getmetertype() {
|
|
116
|
+
let HttpReset = new HttpResetClass()
|
|
117
|
+
//获取分公司民用和非民用各自表品牌总表具数
|
|
118
|
+
let getmetertype = await HttpReset.load('post', 'rs/sql/getMetertype', {data: {}})
|
|
119
|
+
this.metertype=getmetertype.data
|
|
120
|
+
},
|
|
121
|
+
async getmetertypeArea() {
|
|
122
|
+
let HttpReset = new HttpResetClass()
|
|
123
|
+
|
|
124
|
+
let meterTypeArea = await HttpReset.load('post', 'rs/sql/getMeterTypeArea', {data: {}})
|
|
125
|
+
this.meterTypeArea=meterTypeArea.data
|
|
126
|
+
},
|
|
127
|
+
async getmetertypeUser() {
|
|
128
|
+
let HttpReset = new HttpResetClass()
|
|
129
|
+
|
|
130
|
+
let meterTypeUser = await HttpReset.load('post', 'rs/sql/getMeterTypeUser', {data: {}})
|
|
131
|
+
this.meterTypeUser=meterTypeUser.data
|
|
132
|
+
},
|
|
133
|
+
|
|
134
|
+
dataGeneration () {
|
|
135
|
+
let model = {
|
|
136
|
+
name: '渭南天然气公司' + `\n (${this.company[0].sumnum})`,
|
|
137
|
+
value: this.company[0].sumnum,
|
|
138
|
+
children: []
|
|
139
|
+
}
|
|
140
|
+
for (let row1 of this.fencompany) {
|
|
141
|
+
let obj1 = {
|
|
142
|
+
name: row1.name + `\n (${row1.num})`,
|
|
143
|
+
value: row1.num,
|
|
144
|
+
children: []
|
|
145
|
+
}
|
|
146
|
+
const filter1 = this.conditionGenerate(this.slicearea, 'name', row1.name)
|
|
147
|
+
for (let row2 of filter1) {
|
|
148
|
+
let obj2 = {
|
|
149
|
+
name: row2.f_slice_area + `\n (${row2.num})`,
|
|
150
|
+
value: row2.num,
|
|
151
|
+
children: []
|
|
152
|
+
}
|
|
153
|
+
obj1.children.push(obj2)
|
|
154
|
+
const filter2 = this.conditionGenerate(this.usertype, ['name', 'f_slice_area'], [row1.name, row2.f_slice_area])
|
|
155
|
+
for (let row3 of filter2) {
|
|
156
|
+
let obj3 = {
|
|
157
|
+
name: row3.f_user_type + `(${row3.num})`,
|
|
158
|
+
value: row3.num,
|
|
159
|
+
children: []
|
|
160
|
+
}
|
|
161
|
+
obj2.children.push(obj3)
|
|
162
|
+
const filter3 = this.conditionGenerate(this.metertype, ['name', 'f_slice_area','f_user_type'], [row1.name, row2.f_slice_area,row3.f_user_type])
|
|
163
|
+
for (let row4 of filter3) {
|
|
164
|
+
let odj4 = {
|
|
165
|
+
name: row4.f_meter_brand + `(${row4.num})`,
|
|
166
|
+
value: row4.num,
|
|
167
|
+
children: []
|
|
168
|
+
}
|
|
169
|
+
obj3.children.push(odj4)
|
|
170
|
+
const filter4 = this.conditionGenerate(this.meterTypeArea, ['name', 'f_slice_area','f_user_type'], [row1.name, row2.f_slice_area,row3.f_user_type,row4.f_meter_brand])
|
|
171
|
+
for (let row5 of filter4) {
|
|
172
|
+
let obj5 = {
|
|
173
|
+
name: row5.f_residential_area + `(${row5.num})`,
|
|
174
|
+
value: row5.num,
|
|
175
|
+
children: []
|
|
176
|
+
}
|
|
177
|
+
odj4.children.push(obj5)
|
|
178
|
+
// const filter5 = this.conditionGenerate(this.meterTypeUser, ['name', 'f_slice_area','f_user_type'], [row1.name, row2.f_slice_area,row3.f_user_type,row4.f_meter_brand,row5.f_residential_area])
|
|
179
|
+
// console.log()
|
|
180
|
+
// for (let row6 of filter5) {
|
|
181
|
+
// let obj6 = {
|
|
182
|
+
// name: row6.f_user_name + `(${row6.num})`,
|
|
183
|
+
// value: row6.num,
|
|
184
|
+
// children: []
|
|
185
|
+
// }
|
|
186
|
+
// obj5.children.push(obj6)
|
|
187
|
+
// }
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
model.children.push(obj1)
|
|
193
|
+
}
|
|
194
|
+
this.model = model
|
|
195
|
+
},
|
|
196
|
+
/**
|
|
197
|
+
* 数组筛选
|
|
198
|
+
* @param data 要筛选的数组
|
|
199
|
+
* @param key 筛选的key,可以是数组
|
|
200
|
+
* @param value 筛选key对应的value值,可以是数组
|
|
201
|
+
* @returns {Array}
|
|
202
|
+
*/
|
|
203
|
+
conditionGenerate (data, key, value) {
|
|
204
|
+
const group = []
|
|
205
|
+
for (let row of data) {
|
|
206
|
+
if (key instanceof Array) {
|
|
207
|
+
let flag = true
|
|
208
|
+
for (let [index, item] of key.entries()) {
|
|
209
|
+
if (row[item] != value[index]) {
|
|
210
|
+
flag = false
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
if (flag) group.push(row)
|
|
214
|
+
} else {
|
|
215
|
+
if (row[key] == value) {
|
|
216
|
+
group.push(row)
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
return group
|
|
221
|
+
}
|
|
222
|
+
},
|
|
223
|
+
async ready(){
|
|
224
|
+
await this.getcompany() //总公司
|
|
225
|
+
await this.getfencompany() //分公司
|
|
226
|
+
await this.getslicearea() //大区
|
|
227
|
+
await this.getusertype() //用户类型
|
|
228
|
+
await this.getmetertype() //表型
|
|
229
|
+
await this.getmetertypeArea()
|
|
230
|
+
// await this.getmetertypeUser()
|
|
231
|
+
this.dataGeneration()
|
|
232
|
+
this.setBar()
|
|
233
|
+
},
|
|
234
|
+
}
|
|
235
|
+
</script>
|
|
236
|
+
|
|
237
|
+
<style scoped>
|
|
238
|
+
|
|
239
|
+
</style>
|