manage-client 3.2.248 → 3.2.250

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.
@@ -5,30 +5,30 @@
5
5
  </template>
6
6
 
7
7
  <script>
8
- /* eslint-disable indent,key-spacing,no-labels */
8
+ /* eslint-disable indent,key-spacing,no-labels */
9
9
 
10
- import * as Util from '../../Util'
10
+ import * as Util from '../../Util'
11
11
  import co from 'co'
12
12
  import echarts from 'echarts'
13
- import {HttpResetClass } from 'vue-client'
13
+ import {HttpResetClass} from 'vue-client'
14
14
 
15
- let getData = function * (self) {
15
+ let getData = function* (self) {
16
16
  let load = new HttpResetClass()
17
- load.load('POST','rs/sql/BusinessType',
18
- {data: {startDate: self.startdate, endDate: self.enddate,f_orgid: self.orgid}},
19
- {resolveMsg: null, rejectMsg: null})
20
- .then((res) => {
21
- self.texttile = '用户类型'
22
- let arrparams = []
23
- let numdata = []
24
- let pricedata = []
25
- for (var i = 0; i < res.data.length; i++) {
17
+ load.load('POST', 'rs/sql/BusinessType',
18
+ {data: {startDate: self.startdate, endDate: self.enddate, f_orgid: self.orgid}},
19
+ {resolveMsg: null, rejectMsg: null})
20
+ .then((res) => {
21
+ self.texttile = '用户类型'
22
+ let arrparams = []
23
+ let numdata = []
24
+ let pricedata = []
25
+ for (var i = 0; i < res.data.length; i++) {
26
26
  arrparams[i] = res.data[i].name
27
27
  numdata[i] = res.data[i].num
28
28
  pricedata[i] = res.data[i].money
29
- }
30
- self.set(arrparams,numdata,pricedata)
31
- })
29
+ }
30
+ self.set(arrparams, numdata, pricedata)
31
+ })
32
32
  }
33
33
  export default {
34
34
  props: {
@@ -44,24 +44,24 @@ export default {
44
44
  type: String
45
45
  }
46
46
  },
47
- data () {
47
+ data () {
48
48
  title: '业务类型'
49
- return {
50
- texttile: '',
51
- xc: ''
52
- }
53
- },
54
- methods: {
55
- set (arrparams,numdata,pricedata) {
56
- this.xc = echarts.init(document.getElementById('sm'))
57
- this.xc.setOption({
58
- color: [ '#A7C2B9', '#E4B1F7' ],
59
- title : {
60
- text: '其他业务散列图',
61
- subtext: '数据查询来源',
62
- x: 'left'
63
- },
64
- tooltip:{
49
+ return {
50
+ texttile: '',
51
+ xc: ''
52
+ }
53
+ },
54
+ methods: {
55
+ set (arrparams, numdata, pricedata) {
56
+ this.xc = echarts.init(document.getElementById('sm'))
57
+ this.xc.setOption({
58
+ color: ['#FE974B', '#3D72FF'],
59
+ title: {
60
+ text: '其他业务散列图',
61
+ subtext: '数据查询来源',
62
+ x: 'left'
63
+ },
64
+ tooltip: {
65
65
  trigger: 'axis',
66
66
  formatter: function (params) {
67
67
  var str = ''
@@ -76,75 +76,75 @@ export default {
76
76
  return str
77
77
  }
78
78
  },
79
- legend: {
80
- x: 'left',
81
- y: 'bottom',
82
- data: ['数量','金额']
83
- },
84
- toolbox: {
85
- show : true,
86
- feature : {
87
- dataView : {show: true, readOnly: false},
88
- magicType : {show: true, type: ['line', 'bar']},
89
- restore : {show: true},
90
- saveAsImage : {show: true}
91
- }
92
- },
93
- calculable : true,
94
- xAxis : [
95
- {
96
- type : 'category',
97
- data : arrparams
98
- }
99
- ],
100
- yAxis : [
101
- {
102
- type : 'value'
103
- }
104
- ],
105
- series : [
106
- {
107
- name:'数量',
108
- type:'bar',
109
- data:numdata,
110
- markLine : {
111
- data : [
112
- {type : 'average', name: '平均值'}
113
- ]
79
+ legend: {
80
+ x: 'left',
81
+ y: 'bottom',
82
+ data: ['数量', '金额']
83
+ },
84
+ toolbox: {
85
+ show: true,
86
+ feature: {
87
+ dataView: {show: true, readOnly: false},
88
+ magicType: {show: true, type: ['line', 'bar']},
89
+ restore: {show: true},
90
+ saveAsImage: {show: true}
114
91
  }
115
92
  },
116
- {
117
- name:'金额',
118
- type:'bar',
119
- data:pricedata,
120
- markLine : {
121
- data : [
122
- {type : 'average', name : '平均值'}
123
- ]
93
+ calculable: true,
94
+ xAxis: [
95
+ {
96
+ type: 'category',
97
+ data: arrparams
98
+ }
99
+ ],
100
+ yAxis: [
101
+ {
102
+ type: 'value'
103
+ }
104
+ ],
105
+ series: [
106
+ {
107
+ name: '数量',
108
+ type: 'bar',
109
+ data: numdata,
110
+ markLine: {
111
+ data: [
112
+ {type: 'average', name: '平均值'}
113
+ ]
114
+ }
115
+ },
116
+ {
117
+ name: '金额',
118
+ type: 'bar',
119
+ data: pricedata,
120
+ markLine: {
121
+ data: [
122
+ {type: 'average', name: '平均值'}
123
+ ]
124
+ }
124
125
  }
125
- }
126
- ]
127
- })
128
- },
129
- searchdata () {
130
- let getGen = getData(this)
131
- co(getGen)
132
- }
133
- },
134
- ready () {
135
- this.searchdata()
136
- },
137
- watch: {
138
- 'startdate' (val) {
139
- this.searchdata()
140
- },
141
- 'enddate' (val) {
142
- this.searchdata()
143
- },
144
- 'orgid' (val) {
145
- this.searchdata()
146
- }
147
- }
126
+ ]
127
+ })
128
+ },
129
+ searchdata () {
130
+ let getGen = getData(this)
131
+ co(getGen)
132
+ }
133
+ },
134
+ ready () {
135
+ this.searchdata()
136
+ },
137
+ watch: {
138
+ 'startdate' (val) {
139
+ this.searchdata()
140
+ },
141
+ 'enddate' (val) {
142
+ this.searchdata()
143
+ },
144
+ 'orgid' (val) {
145
+ this.searchdata()
146
+ }
147
+ }
148
148
 
149
149
  }
150
150
  </script>
@@ -9,12 +9,12 @@
9
9
  import * as Util from '../../Util'
10
10
  import co from 'co'
11
11
  import echarts from 'echarts'
12
- import { HttpResetClass } from 'vue-client'
12
+ import {HttpResetClass} from 'vue-client'
13
13
 
14
- let getData = function * (self) {
14
+ let getData = function* (self) {
15
15
  let load = new HttpResetClass()
16
- load.load('POST','rs/sql/sellinggasvalue',
17
- {data: {startDate: self.startdate, endDate: self.enddate,key:'f_user_type',f_orgid:self.orgid}},
16
+ load.load('POST', 'rs/sql/sellinggasvalue',
17
+ {data: {startDate: self.startdate, endDate: self.enddate, key: 'f_user_nature', f_orgid: self.orgid}},
18
18
  {resolveMsg: null, rejectMsg: null})
19
19
  .then((res) => {
20
20
  let arrparams = []
@@ -26,26 +26,26 @@ let getData = function * (self) {
26
26
  item.value = res.data[i].gas_value
27
27
  gasdata.push(item)
28
28
  }
29
- console.log("加载echars组件")
30
- self.setGas(arrparams,gasdata)
29
+ console.log('加载echars组件')
30
+ self.setGas(arrparams, gasdata)
31
31
  })
32
32
  let load1 = new HttpResetClass()
33
- load1.load('POST','rs/sql/sellinggasvalue',
34
- {data: {startDate: self.startdate, endDate: self.enddate,key:'f_payment',f_orgid:self.orgid}},
35
- {resolveMsg: null, rejectMsg: null})
36
- .then((res) => {
37
- let arrparams = []
38
- let moneydata = []
39
- for (var i = 0; i < res.data.length; i++) {
40
- let item1={}
33
+ load1.load('POST', 'rs/sql/sellinggasvalue',
34
+ {data: {startDate: self.startdate, endDate: self.enddate, key: 'f_payment', f_orgid: self.orgid}},
35
+ {resolveMsg: null, rejectMsg: null})
36
+ .then((res) => {
37
+ let arrparams = []
38
+ let moneydata = []
39
+ for (var i = 0; i < res.data.length; i++) {
40
+ let item1 = {}
41
41
  arrparams[i] = res.data[i].name
42
42
  item1.name = res.data[i].name
43
43
  item1.value = res.data[i].money_value
44
44
  moneydata.push(item1)
45
- }
46
- console.log("加载echars组件")
47
- self.setMoney(arrparams,moneydata)
48
- })
45
+ }
46
+ console.log('加载echars组件')
47
+ self.setMoney(arrparams, moneydata)
48
+ })
49
49
  }
50
50
  export default {
51
51
  props: {
@@ -60,135 +60,136 @@ export default {
60
60
  orgid: {
61
61
  type: String
62
62
  }
63
- },
64
- data () {
65
- return {
66
- xc: '',
67
- xd: ''
68
- }
69
- },
70
- methods: {
63
+ },
64
+ data () {
65
+ return {
66
+ xc: '',
67
+ xd: ''
68
+ }
69
+ },
70
+ methods: {
71
71
 
72
- setGas (arrparams,gasdata) {
73
- console.log("进入组件")
74
- let option1 = {
75
- title: [
76
- {
77
- text: '收费来源气量金额饼状图',
78
- x: '0%',
79
- y: '0%',
80
- textStyle: {
81
- color: '#010606',
82
- fontSize: 18,
83
- }
84
- }, {
85
- text: '气量分布',
86
- x: '40%',
87
- y: '18%',
88
- textStyle: {
89
- color: '#010606',
90
- fontSize: 16,
91
- }
92
- }],
93
- tooltip: {
94
- trigger: 'item',
95
- formatter: '{a} <br/>{b}: ({c}m³) ({d}%)'
96
- },
97
- legend: {
98
- orient: 'horizontal',
99
- icon: 'circle',
100
- x: 'center',
101
- y: '80%',
72
+ setGas (arrparams, gasdata) {
73
+ console.log('进入组件')
74
+ let option1 = {
75
+ color: ['#FE974B', '#3D72FF', '#00C953'],
76
+ title: [
77
+ {
78
+ text: '收费来源气量金额饼状图',
79
+ x: '0%',
80
+ y: '0%',
81
+ textStyle: {
82
+ color: '#010606',
83
+ fontSize: 18
84
+ }
85
+ }, {
86
+ text: '气量分布',
87
+ x: '40%',
88
+ y: '18%',
89
+ textStyle: {
90
+ color: '#010606',
91
+ fontSize: 16
92
+ }
93
+ }],
94
+ tooltip: {
95
+ trigger: 'item',
96
+ formatter: '{a} <br/>{b}: ({c}m³) ({d}%)'
97
+ },
98
+ legend: {
99
+ orient: 'horizontal',
100
+ icon: 'circle',
101
+ x: 'center',
102
+ y: '80%',
102
103
 
103
- textStyle: {
104
- padding: [0, 0, 0, 4],
105
- color: '#010606'
106
- },
107
- data: arrparams
108
- },
109
- series : [
110
- {
111
- name: '气量',
112
- type: 'pie',
113
- radius: ['0%', '40%'],
114
- center: ['50%', '50%'],
115
- hoverAnimation: true,
116
- minAngle: 15,//最小角度
117
- startAngle: 60, //起始角度
118
- label: {normal: {show:true,}},
119
- labelLine: { normal: {show:true,}},
120
- data: gasdata
121
- },
122
- ]
104
+ textStyle: {
105
+ padding: [0, 0, 0, 4],
106
+ color: '#010606'
107
+ },
108
+ data: arrparams
109
+ },
110
+ series: [
111
+ {
112
+ name: '气量',
113
+ type: 'pie',
114
+ radius: ['0%', '40%'],
115
+ center: ['50%', '50%'],
116
+ hoverAnimation: true,
117
+ minAngle: 15, // 最小角度
118
+ startAngle: 60, // 起始角度
119
+ label: {normal: {show: true}},
120
+ labelLine: {normal: {show: true}},
121
+ data: gasdata
122
+ }
123
+ ]
123
124
 
124
- }
125
- this.xd = echarts.init(document.getElementById('ps'))
126
- this.xd.setOption(option1,true)
127
- },
128
- setMoney (arrparams,moneydata) {
129
- console.log("进入组件")
130
- let option = {
131
- title: [
132
- {
133
- text: '',
134
- x: '0%',
135
- y: '0%',
136
- textStyle: {
137
- color: '#010606',
138
- fontSize: 18,
139
- }
140
- }, {
141
- text: '金额分布',
142
- x: '40%',
143
- y: '18%',
144
- textStyle: {
145
- color: '#010606',
146
- fontSize: 16,
147
- }
148
- }],
149
- tooltip: {
150
- trigger: 'item',
151
- formatter: '{a} <br/>{b}: ({c}元) ({d}%)'
152
- },
153
- legend: {
154
- orient: 'horizontal',
155
- icon: 'circle',
156
- x: 'center',
157
- y: '80%',
125
+ }
126
+ this.xd = echarts.init(document.getElementById('ps'))
127
+ this.xd.setOption(option1, true)
128
+ },
129
+ setMoney (arrparams, moneydata) {
130
+ console.log('进入组件')
131
+ let option = {
132
+ title: [
133
+ {
134
+ text: '',
135
+ x: '0%',
136
+ y: '0%',
137
+ textStyle: {
138
+ color: '#010606',
139
+ fontSize: 18
140
+ }
141
+ }, {
142
+ text: '金额分布',
143
+ x: '40%',
144
+ y: '18%',
145
+ textStyle: {
146
+ color: '#010606',
147
+ fontSize: 16
148
+ }
149
+ }],
150
+ tooltip: {
151
+ trigger: 'item',
152
+ formatter: '{a} <br/>{b}: ({c}元) ({d}%)'
153
+ },
154
+ legend: {
155
+ orient: 'horizontal',
156
+ icon: 'circle',
157
+ x: 'center',
158
+ y: '80%',
158
159
 
159
- textStyle: {
160
- padding: [0, 0, 0, 4],
161
- color: '#010606'
162
- },
163
- data: arrparams
164
- },
165
- series : [
166
- {
167
- name: '金额',
168
- type: 'pie',
169
- radius: ['0%', '40%'],
170
- center: ['50%', '50%'],
171
- hoverAnimation: true,
172
- minAngle: 15,//最小角度
173
- startAngle: 60, //起始角度
174
- label: {normal: {show:true,}},
175
- labelLine: { normal: {show:true,}},
176
- data: moneydata
177
- }
178
- ]
160
+ textStyle: {
161
+ padding: [0, 0, 0, 4],
162
+ color: '#010606'
163
+ },
164
+ data: arrparams
165
+ },
166
+ series: [
167
+ {
168
+ name: '金额',
169
+ type: 'pie',
170
+ radius: ['0%', '40%'],
171
+ center: ['50%', '50%'],
172
+ hoverAnimation: true,
173
+ minAngle: 15, // 最小角度
174
+ startAngle: 60, // 起始角度
175
+ label: {normal: {show: true}},
176
+ labelLine: {normal: {show: true}},
177
+ data: moneydata
178
+ }
179
+ ]
179
180
 
180
- }
181
- this.xc = echarts.init(document.getElementById('pp'))
182
- this.xc.setOption(option,true)
183
- },
184
- searchdata () {
185
- let getGen =getData(this);
186
- co(getGen);
187
- }
188
- },
189
- ready () {
190
- this.searchdata()
191
- },
181
+ }
182
+ this.xc = echarts.init(document.getElementById('pp'))
183
+ this.xc.setOption(option, true)
184
+ },
185
+ searchdata () {
186
+ let getGen = getData(this)
187
+ co(getGen)
188
+ }
189
+ },
190
+ ready () {
191
+ this.searchdata()
192
+ },
192
193
  watch: {
193
194
  'startdate' (val) {
194
195
  this.searchdata()