manage-client 3.1.41 → 3.1.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.
@@ -85,7 +85,7 @@ export default {
85
85
  textStyle: {
86
86
  fontSize: 12
87
87
  },
88
- data: [ '日均户均用气量(成功)(m³)','日均户均用气量(在用)(m³)','抄表成功率%']
88
+ data: [ '日均用气量(m³)','抄表成功率%']
89
89
  },
90
90
  toolbox: {
91
91
  show: true,
@@ -150,40 +150,15 @@ export default {
150
150
  top: '20%'
151
151
  },
152
152
  series: [
153
+
153
154
  {
154
- name: '日均户均用气量(成功)(m³)',
155
- nameTextStyle: {
156
- fontSize: 10
157
- },
158
- type: 'bar',
159
- data: f_gas,
160
- markPoint: {
161
- data: [
162
- {type: 'max', name: '最大值'},
163
- {type: 'min', name: '最小值'}
164
- ]
165
- },
166
- markLine: {
167
- data: [
168
- {type: 'average', name: '平均值'}
169
- ]
170
- },
171
- itemStyle: {
172
- normal: {
173
- color: '#7d8000'
174
- }
175
- },
176
- barWidth: 'auto',
177
- barGap: '0'
178
- },
179
- {
180
- name: '日均户均用气量(在用)(m³)',
155
+ name: '日均用气量(m³)',
181
156
  nameTextStyle: {
182
157
  fontSize: 10
183
158
  },
184
159
  type: 'bar',
185
160
  data: f_gas1,
186
- barWidth: 'auto',
161
+ barWidth: 30,
187
162
  markPoint: {
188
163
  data: [
189
164
  {type: 'max', name: '最大值'},
@@ -87,7 +87,7 @@
87
87
  textStyle: {
88
88
  fontSize: 12
89
89
  },
90
- data: ['指令成功表具数','总表具数','表具指令成功率%','指令成功率%','综合指令成功率%']
90
+ data: ['成功表具数','总表具数','指令成功率%']
91
91
  },
92
92
  toolbox: {
93
93
  show: true,
@@ -153,7 +153,7 @@
153
153
  },
154
154
  'series': [
155
155
  {
156
- 'name': '指令成功表具数',
156
+ 'name': '成功表具数',
157
157
  nameTextStyle: {
158
158
  fontSize: 15
159
159
  },
@@ -204,19 +204,6 @@
204
204
  },
205
205
  'barGap': '0'
206
206
  },
207
- {
208
- 'name': '表具指令成功率%',
209
- 'type': 'line',
210
- 'yAxisIndex': 1,
211
- 'data': f_bv1,
212
- 'itemStyle': {
213
- 'normal': {
214
- 'color': '#ffaa00',
215
- fontSize: 15
216
- }
217
- },
218
- 'smooth': true
219
- },
220
207
  {
221
208
  'name': '指令成功率%',
222
209
  'type': 'line',
@@ -229,19 +216,6 @@
229
216
  }
230
217
  },
231
218
  'smooth': true
232
- },
233
- {
234
- 'name': '综合指令成功率%',
235
- 'type': 'line',
236
- 'yAxisIndex': 1,
237
- 'data': f_bv0,
238
- 'itemStyle': {
239
- 'normal': {
240
- 'color': '#ff0000',
241
- fontSize: 15
242
- }
243
- },
244
- 'smooth': true
245
219
  }
246
220
  ]
247
221
  })
@@ -298,7 +298,7 @@
298
298
  <new-exception-eform-total :condition="condition" :startdate="startDate"
299
299
  :enddate="endDate"></new-exception-eform-total>
300
300
  </div>-->
301
- <div v-show="echarts" style="width: 100%;height: 90%;">
301
+ <div v-show="echarts" style="width: 100%;height: 98%;">
302
302
  <new-exception-echarts :condition="condition" :startdate="startDate" :groupname="groupname[0]"
303
303
  :enddate="endDate" :echarts="echarts"></new-exception-echarts>
304
304
  </div>
@@ -373,7 +373,7 @@
373
373
  },
374
374
  ready() {
375
375
  readySomething(this)
376
- this.$refs.paged.$refs.cri.model.startDate = Util.addDate(new Date(),-6).substring(0,10) + ' 00:00:00'
376
+ this.$refs.paged.$refs.cri.model.startDate = Util.addDate(new Date(),-2).substring(0,10) + ' 00:00:00'
377
377
  // this.$refs.paged.$refs.cri.model.startDate = Util.toStandardDateString() + ' 00:00:00'
378
378
  this.$refs.paged.$refs.cri.model.endDate = Util.toStandardDateString() + ' 23:59:59'
379
379
  // console.log("type:"+this.$refs.paged.$refs.cri.model.f_error_type)
@@ -1,286 +1,242 @@
1
- <template lang="html">
2
- <div>
3
- <div id="userinstruct" style=" height: 98%;width: 98%;padding: 1% 1%;"></div>
4
- </div>
5
- </template>
6
-
7
- <script>
8
- import * as Util from '../../../Util'
9
- import co from 'co'
10
- import echarts from 'echarts'
11
- import { HttpResetClass } from 'vue-client'
12
-
13
- let getData = function * (self) {
14
- let load = new HttpResetClass()
15
- load.load('POST','rs/sql/webmeter_getNewInstructChanceList',
16
- {data:{condition: self.condition, startDate: self.startdate, endDate: self.enddate}},
17
- {resolveMsg: null, rejectMsg: null}).then((res) => {
18
- // every_time,f_bv1,f_bv2,f_bv3,f_gas
19
- let every_time = []
20
- let f_bv0 = []
21
- let f_bv1 = []
22
- let f_bv2 = []
23
- let c = []
24
- let c0 = []
25
- for (var i = 0; i < res.data.length; i++) {
26
- every_time[i] = res.data[i].f_insert_date
27
- f_bv0[i] = res.data[i].f_bv0
28
- f_bv1[i] = res.data[i].f_bv1
29
- f_bv2[i] = res.data[i].f_bv2
30
- c[i] = res.data[i].c
31
- c0[i] = res.data[i].c0
32
- }
33
- self.set(every_time, f_bv0, f_bv1, f_bv2, c, c0)
34
- })
35
- }
36
- export default {
37
- props: {
38
- echarts: {
39
- type: Boolean,
40
- default:false
41
- },
42
- startdate: {
43
- type: String,
44
- default: Util.toStandardDateString()
45
- },
46
- enddate: {
47
- type: String,
48
- default: Util.toStandardDateString()
49
- },
50
- condition: {
51
- type: String,
52
- default: '1=1'
53
- }
54
- },
55
- data () {
56
- return {
57
- xc: ''
58
- }
59
- },
60
- methods: {
61
- // every_time: 日期 f_bv1: 抄表成功率 f_bv2: 指令成功率 f_bv3: 综合成功率 f_gas: 日用气量
62
- set (every_time, f_bv0, f_bv1, f_bv2, c, c0) {
63
-
64
- this.xc = echarts.init(document.getElementById('userinstruct'))
65
- this.xc.setOption({
66
- 'title': {
67
- 'text': '指令成功率分析',
68
- 'left': 'center',
69
- 'y': '10',
70
- 'textStyle': {
71
- 'color': '#696969',
72
- fontSize: 20
73
- }
74
- },
75
- 'backgroundColor': '#F8F8FF',
76
- 'color': '#384757',
77
- 'tooltip': {
78
- 'trigger': 'axis',
79
- 'extraCssText': 'width: auto;height: auto;'
80
- },
81
- 'legend': {
82
- 'data': [
83
- {
84
- 'name': '指令成功表具数',
85
- 'icon': 'circle',
86
- 'textStyle': {
87
- 'color': '#5b5',
88
- fontSize: 20
89
- }
90
- },
91
- {
92
- 'name': '总表具数',
93
- 'icon': 'circle',
94
- 'textStyle': {
95
- 'color': '#233564',
96
- fontSize: 20
97
- }
98
- },
99
- {
100
- 'name': '表具指令成功率%',
101
- 'icon': 'circle',
102
- 'textStyle': {
103
- 'color': '#ffaa00',
104
- fontSize: 20
105
- }
106
- },
107
- {
108
- 'name': '指令成功率%',
109
- 'icon': 'circle',
110
- 'textStyle': {
111
- 'color': '#ffaaff',
112
- fontSize: 20
113
- }
114
- },
115
- {
116
- 'name': '综合指令成功率%',
117
- 'icon': 'circle',
118
- 'textStyle': {
119
- 'color': '#ff0000',
120
- fontSize: 20
121
- }
122
- }
123
- ],
124
- 'top': '10%',
125
- 'textStyle': {
126
- 'color': '#fff'
127
- }
128
- },
129
- 'xAxis': [
130
- {
131
- 'type': 'category',
132
- 'data': every_time,
133
- 'axisPointer': {
134
- 'type': 'shadow'
135
- },
136
- 'axisLabel': {
137
- 'show': true,
138
- 'textStyle': {
139
- 'color': '#7d838b',
140
- fontSize: 15
141
- }
142
- }
143
- }
144
- ],
145
- 'yAxis': [
146
- {
147
- 'type': 'value',
148
- 'name': '表具数',
149
- nameTextStyle: {
150
- fontSize: 10
151
- },
152
- 'show': true,
153
- 'axisLabel': {
154
- 'show': true,
155
- 'textStyle': {
156
- 'color': '#7d838b',
157
- fontSize: 10
158
- }
159
- }
160
- },
161
- {
162
- 'type': 'value',
163
- 'name': '成功率%',
164
- nameTextStyle: {
165
- fontSize: 15
166
- },
167
- 'show': true,
168
- 'axisLabel': {
169
- 'show': true,
170
- 'textStyle': {
171
- 'color': '#ffaa00',
172
- fontSize: 15
173
- }
174
- }
175
- }
176
- ],
177
- 'grid': {
178
- 'top': '20%'
179
- },
180
- 'series': [
181
- {
182
- 'name': '指令成功表具数',
183
- nameTextStyle: {
184
- fontSize: 15
185
- },
186
- 'type': 'bar',
187
- 'data': c0,
188
- 'markPoint': {
189
- data: [
190
- {type: 'max', name: '最大值'},
191
- {type: 'min', name: '最小值'}
192
- ]
193
- },
194
- markLine: {
195
- data: [
196
- {type: 'average', name: '平均值'}
197
- ]
198
- },
199
- 'barWidth': 'auto',
200
- 'itemStyle': {
201
- 'normal': {
202
- 'color': '#5b5'
203
- }
204
- },
205
- 'barGap': '0'
206
- },
207
- {
208
- 'name': '总表具数',
209
- nameTextStyle: {
210
- fontSize: 15
211
- },
212
- 'type': 'bar',
213
- 'data': c,
214
- 'markPoint': {
215
- data: [
216
- {type: 'max', name: '最大值'},
217
- {type: 'min', name: '最小值'}
218
- ]
219
- },
220
- markLine: {
221
- data: [
222
- {type: 'average', name: '平均值'}
223
- ]
224
- },
225
- 'barWidth': 'auto',
226
- 'itemStyle': {
227
- 'normal': {
228
- 'color': '#233564'
229
- }
230
- },
231
- 'barGap': '0'
232
- },
233
- {
234
- 'name': '表具指令成功率%',
235
- 'type': 'line',
236
- 'yAxisIndex': 1,
237
- 'data': f_bv1,
238
- 'itemStyle': {
239
- 'normal': {
240
- 'color': '#ffaa00',
241
- fontSize: 15
242
- }
243
- },
244
- 'smooth': true
245
- },
246
- {
247
- 'name': '指令成功率%',
248
- 'type': 'line',
249
- 'yAxisIndex': 1,
250
- 'data': f_bv2,
251
- 'itemStyle': {
252
- 'normal': {
253
- 'color': '#ffaaff',
254
- fontSize: 15
255
- }
256
- },
257
- 'smooth': true
258
- },
259
- {
260
- 'name': '综合指令成功率%',
261
- 'type': 'line',
262
- 'yAxisIndex': 1,
263
- 'data': f_bv0,
264
- 'itemStyle': {
265
- 'normal': {
266
- 'color': '#ff0000',
267
- fontSize: 15
268
- }
269
- },
270
- 'smooth': true
271
- }
272
- ]
273
- })
274
- },
275
- searchdata () {
276
- let getGen = getData(this)
277
- co(getGen)
278
- }
279
- },
280
- watch: {
281
- 'echarts' () {
282
- this.searchdata()
283
- }
284
- }
285
- }
286
- </script>
1
+ <template lang="html">
2
+ <div>
3
+ <div id="userinstruct" style=" height: 98%;width: 98%;padding: 1% 1%;"></div>
4
+ </div>
5
+ </template>
6
+
7
+ <script>
8
+ import * as Util from '../../../Util'
9
+ import co from 'co'
10
+ import echarts from 'echarts'
11
+ import { HttpResetClass } from 'vue-client'
12
+
13
+ let getData = function * (self) {
14
+ let load = new HttpResetClass()
15
+ load.load('POST','rs/sql/webmeter_getNewInstructChanceList',
16
+ {data:{condition: self.condition, startDate: self.startdate, endDate: self.enddate}},
17
+ {resolveMsg: null, rejectMsg: null}).then((res) => {
18
+ // every_time,f_bv1,f_bv2,f_bv3,f_gas
19
+ let every_time = []
20
+ let f_bv0 = []
21
+ let f_bv1 = []
22
+ let f_bv2 = []
23
+ let c = []
24
+ let c0 = []
25
+ for (var i = 0; i < res.data.length; i++) {
26
+ every_time[i] = res.data[i].f_insert_date
27
+ f_bv0[i] = res.data[i].f_bv0
28
+ f_bv1[i] = res.data[i].f_bv1
29
+ f_bv2[i] = res.data[i].f_bv2
30
+ c[i] = res.data[i].c
31
+ c0[i] = res.data[i].c0
32
+ }
33
+ self.set(every_time, f_bv0, f_bv1, f_bv2, c, c0)
34
+ })
35
+ }
36
+ export default {
37
+ props: {
38
+ echarts: {
39
+ type: Boolean,
40
+ default:false
41
+ },
42
+ startdate: {
43
+ type: String,
44
+ default: Util.toStandardDateString()
45
+ },
46
+ enddate: {
47
+ type: String,
48
+ default: Util.toStandardDateString()
49
+ },
50
+ condition: {
51
+ type: String,
52
+ default: '1=1'
53
+ }
54
+ },
55
+ data () {
56
+ return {
57
+ xc: ''
58
+ }
59
+ },
60
+ methods: {
61
+ // every_time: 日期 f_bv1: 抄表成功率 f_bv2: 指令成功率 f_bv3: 综合成功率 f_gas: 日用气量
62
+ set (every_time, f_bv0, f_bv1, f_bv2, c, c0) {
63
+
64
+ this.xc = echarts.init(document.getElementById('userinstruct'))
65
+ this.xc.setOption({
66
+ 'title': {
67
+ 'text': '指令成功率分析',
68
+ 'left': 'center',
69
+ 'y': '10',
70
+ 'textStyle': {
71
+ 'color': '#696969',
72
+ fontSize: 20
73
+ }
74
+ },
75
+ 'tooltip': {
76
+ 'trigger': 'axis',
77
+ 'extraCssText': 'width: auto;height: auto;'
78
+ },
79
+ 'legend': {
80
+ 'data': [
81
+ {
82
+ 'name': '成功表具数',
83
+ 'icon': 'circle',
84
+ 'textStyle': {
85
+ 'color': '#5b5',
86
+ fontSize: 20
87
+ }
88
+ },
89
+ {
90
+ 'name': '总表具数',
91
+ 'icon': 'circle',
92
+ 'textStyle': {
93
+ 'color': '#233564',
94
+ fontSize: 20
95
+ }
96
+ },
97
+ {
98
+ 'name': '指令成功率%',
99
+ 'icon': 'circle',
100
+ 'textStyle': {
101
+ 'color': '#ffaaff',
102
+ fontSize: 20
103
+ }
104
+ }
105
+ ],
106
+ 'top': '10%',
107
+ 'textStyle': {
108
+ 'color': '#fff'
109
+ }
110
+ },
111
+ 'xAxis': [
112
+ {
113
+ 'type': 'category',
114
+ 'data': every_time,
115
+ 'axisPointer': {
116
+ 'type': 'shadow'
117
+ },
118
+ 'axisLabel': {
119
+ 'show': true,
120
+ 'textStyle': {
121
+ 'color': '#7d838b',
122
+ fontSize: 15
123
+ }
124
+ }
125
+ }
126
+ ],
127
+ 'yAxis': [
128
+ {
129
+ 'type': 'value',
130
+ 'name': '表具数',
131
+ nameTextStyle: {
132
+ fontSize: 10
133
+ },
134
+ 'show': true,
135
+ 'axisLabel': {
136
+ 'show': true,
137
+ 'textStyle': {
138
+ 'color': '#7d838b',
139
+ fontSize: 10
140
+ }
141
+ }
142
+ },
143
+ {
144
+ 'type': 'value',
145
+ 'name': '成功率%',
146
+ nameTextStyle: {
147
+ fontSize: 15
148
+ },
149
+ 'show': true,
150
+ 'axisLabel': {
151
+ 'show': true,
152
+ 'textStyle': {
153
+ 'color': '#ffaa00',
154
+ fontSize: 15
155
+ }
156
+ }
157
+ }
158
+ ],
159
+ 'grid': {
160
+ 'top': '20%'
161
+ },
162
+ 'series': [
163
+ {
164
+ 'name': '成功表具数',
165
+ nameTextStyle: {
166
+ fontSize: 15
167
+ },
168
+ 'type': 'bar',
169
+ 'data': c0,
170
+ 'markPoint': {
171
+ data: [
172
+ {type: 'max', name: '最大值'},
173
+ {type: 'min', name: '最小值'}
174
+ ]
175
+ },
176
+ markLine: {
177
+ data: [
178
+ {type: 'average', name: '平均值'}
179
+ ]
180
+ },
181
+ 'barWidth': 'auto',
182
+ 'itemStyle': {
183
+ 'normal': {
184
+ 'color': '#5b5'
185
+ }
186
+ },
187
+ 'barGap': '0'
188
+ },
189
+ {
190
+ 'name': '总表具数',
191
+ nameTextStyle: {
192
+ fontSize: 15
193
+ },
194
+ 'type': 'bar',
195
+ 'data': c,
196
+ 'markPoint': {
197
+ data: [
198
+ {type: 'max', name: '最大值'},
199
+ {type: 'min', name: '最小值'}
200
+ ]
201
+ },
202
+ markLine: {
203
+ data: [
204
+ {type: 'average', name: '平均值'}
205
+ ]
206
+ },
207
+ 'barWidth': 'auto',
208
+ 'itemStyle': {
209
+ 'normal': {
210
+ 'color': '#233564'
211
+ }
212
+ },
213
+ 'barGap': '0'
214
+ },
215
+ {
216
+ 'name': '指令成功率%',
217
+ 'type': 'line',
218
+ 'yAxisIndex': 1,
219
+ 'data': f_bv2,
220
+ 'itemStyle': {
221
+ 'normal': {
222
+ 'color': '#ffaaff',
223
+ fontSize: 15
224
+ }
225
+ },
226
+ 'smooth': true
227
+ }
228
+ ]
229
+ })
230
+ },
231
+ searchdata () {
232
+ let getGen = getData(this)
233
+ co(getGen)
234
+ }
235
+ },
236
+ watch: {
237
+ 'echarts' () {
238
+ this.searchdata()
239
+ }
240
+ }
241
+ }
242
+ </script>