manage-client 3.1.13 → 3.1.14-ls

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.
Files changed (209) hide show
  1. package/.gradle/6.1.1/fileHashes/fileHashes.bin +0 -0
  2. package/build/dev-server.js +174 -178
  3. package/package.json +101 -101
  4. package/src/components/SellReport/ManageBusSummary.vue +150 -187
  5. package/src/components/SellReport/ManageDayGas.vue +120 -120
  6. package/src/components/SellReport/ManageMonthGas.vue +124 -124
  7. package/src/components/SellReport/ManageOtherCharge.vue +121 -121
  8. package/src/components/SellReport/ManageSellType.vue +133 -133
  9. package/src/components/SellReport/ReportItems.vue +1 -2
  10. package/src/components/SellReport/jingwei/ManageHandSellMoney.vue +120 -120
  11. package/src/components/handReport/GeneraHandReport.vue +235 -0
  12. package/src/components/qinhua/BarChart.vue +26 -74
  13. package/src/components/qinhua/Style/qinhuaStyle.less +4 -111
  14. package/src/components/sale/businessquery/AccountQuery/GasReimbursementRate.vue +1 -1
  15. package/src/components/sale/businessquery/BusinesQuery.vue +3 -3
  16. package/src/components/sale/businessquery/BusinessManage.vue +0 -3
  17. package/src/components/sale/businessquery/CancellationQuery.vue +1 -1
  18. package/src/components/sale/businessquery/CardHandplanQuery.vue +1 -1
  19. package/src/components/sale/businessquery/ChangeMeterQuery.vue +1 -12
  20. package/src/components/sale/businessquery/ChangeUserQuery.vue +1 -7
  21. package/src/components/sale/businessquery/DisableQuery.vue +1 -1
  22. package/src/components/sale/businessquery/EnableQuery.vue +1 -1
  23. package/src/components/sale/businessquery/FillCardQuery.vue +1 -1
  24. package/src/components/sale/businessquery/FillGasQuery.vue +1 -1
  25. package/src/components/sale/businessquery/GasInspection.vue +1 -1
  26. package/src/components/sale/businessquery/HandGasPropertiesQuery.vue +19 -10
  27. package/src/components/sale/businessquery/HandplanQuery.vue +1 -1
  28. package/src/components/sale/businessquery/InspectListGas.vue +1 -1
  29. package/src/components/sale/businessquery/InspectListUser.vue +1 -1
  30. package/src/components/sale/businessquery/MoveMeterQuery.vue +1 -1
  31. package/src/components/sale/businessquery/OtherChargeQuery.vue +1 -1
  32. package/src/components/sale/businessquery/ReverseQuery.vue +1 -1
  33. package/src/components/sale/businessquery/SellingHand.vue +1 -1
  34. package/src/components/sale/businessquery/SendbookQuery.vue +1 -1
  35. package/src/components/sale/businessquery/SuspiciousUserQuery.vue +1 -1
  36. package/src/components/sale/businessquery/TransferQuery.vue +1 -1
  37. package/src/components/sale/businessquery/UserInsured.vue +1 -1
  38. package/src/components/sale/businessquery/overDueQuery.vue +1 -1
  39. package/src/components/sale/businessquery/priceadjustQuery.vue +1 -1
  40. package/src/components/sale/config/exportConfig.js +518 -527
  41. package/src/components/sale/filesquery/ArchivesManage.vue +0 -3
  42. package/src/components/sale/filesquery/DeviceQuery.vue +1 -1
  43. package/src/components/sale/filesquery/MeterQuery.vue +1 -1
  44. package/src/components/sale/filesquery/RecordInfoQuery.vue +9 -83
  45. package/src/components/sale/filesquery/UserDeviceQuery.vue +1 -1
  46. package/src/components/sale/filesquery/UserQuery.vue +0 -46
  47. package/src/components/webmeter/DrillData/LostContactAnalysisList.vue +28 -19
  48. package/src/components/webmeter/DrillData/LostContactEcharts.vue +14 -32
  49. package/src/components/webmeter/DrillData/UserGasAll.vue +10 -6
  50. package/src/components/webmeter/DrillData/UserGasEcharts.vue +7 -8
  51. package/src/components/webmeter/DrillData/UserLostContactAnalysis.vue +27 -13
  52. package/src/components/webmeter/instruction/NewQueryInstructMain.vue +1 -1
  53. package/src/components/webmeter/newwebmeter/NewException/MeterExceptionList.vue +1 -1
  54. package/src/components/webmeter/newwebmeter/NewException/NewExceptionEcharsTotal.vue +566 -753
  55. package/src/components/webmeter/newwebmeter/NewException/TotalExceptionByMeter.vue +2 -6
  56. package/src/components/webmeter/newwebmeter/UserGasEchartsList.vue +3 -10
  57. package/src/components/webmeter/newwebmeter/UserGasList.vue +10 -12
  58. package/src/components/webmeter/newwebmeter/UserInstructList.vue +1 -1
  59. package/src/components/webmeter/newwebmeter/signAnalysisEcharts.vue +18 -26
  60. package/src/components/webmeter/newwebmeter/signAnalysisEform.vue +1 -1
  61. package/src/components/webmeter/newwebmeter/signAnalysisListMain.vue +14 -15
  62. package/src/components/webmeter/report/ReportList.vue +1 -1
  63. package/src/filiale/WEINAN/MeterQuery.vue +1 -1
  64. package/src/filiale/WEINAN/RecordInfoQuery.vue +1 -1
  65. package/src/filiale/WEINAN/manage/ChangeMeterQuery.vue +1 -1
  66. package/src/filiale/gongyi/sale/businessquery/BusinessManage.vue +19 -19
  67. package/src/filiale/gongyi/sale/businessquery/ChangeMeterQuery.vue +0 -11
  68. package/src/filiale/gongyi/sale/filesquery/UserQuery.vue +0 -17
  69. package/src/filiale/jingwei/RecordInfoQuery.vue +1 -1
  70. package/src/filiale/jingzhou/ChargeQuery.vue +5 -15
  71. package/src/filiale/jingzhou/HandplanQuery.vue +1 -1
  72. package/src/filiale/jingzhou/config/exportConfig.js +13 -17
  73. package/src/filiale/liaoyuan/RecordInfoQuery.vue +14 -55
  74. package/src/filiale/liaoyuan/ReportList.vue +1 -1
  75. package/src/filiale/macheng/MeterQuery.vue +1 -1
  76. package/src/filiale/meihekou/CardHandplanQuery.vue +1 -1
  77. package/src/filiale/meihekou/ChargeQuery.vue +4 -4
  78. package/src/filiale/meihekou/HandplanQuery.vue +1 -1
  79. package/src/filiale/meihekou/RecordInfoQuery.vue +21 -3
  80. package/src/filiale/meihekou/sale.js +1 -5
  81. package/src/filiale/pingxiang/ChangeUserQuery.vue +1 -1
  82. package/src/filiale/shaoguan/HandplanQuery.vue +1 -1
  83. package/src/filiale/shaoguan/errorHandplanQuery.vue +1 -1
  84. package/src/filiale/shaoguan/overDueQuery.vue +1 -1
  85. package/src/filiale/shaoguan/sale/businessquery/ChangeUserQuery.vue +1 -1
  86. package/src/main.js +66 -66
  87. package/src/newmanage.js +3 -37
  88. package/src/reportManage.js +4 -0
  89. package/src/saleManage.js +0 -9
  90. package/src/components/daping/BarChart.vue +0 -256
  91. package/src/components/daping/BarChartLine.vue +0 -284
  92. package/src/components/daping/CallCenter.vue +0 -368
  93. package/src/components/daping/DataManagement.vue +0 -697
  94. package/src/components/daping/DataManagement1.vue +0 -345
  95. package/src/components/daping/DataStatistics.vue +0 -241
  96. package/src/components/daping/ExpireMeter.vue +0 -272
  97. package/src/components/daping/GMap.vue +0 -636
  98. package/src/components/daping/ManageMain.vue +0 -255
  99. package/src/components/daping/Pie.vue +0 -171
  100. package/src/components/daping/ResidentsSecurity.vue +0 -132
  101. package/src/components/daping/Ring.vue +0 -227
  102. package/src/components/daping/SafeCheckRing.vue +0 -160
  103. package/src/components/daping/SafecheckBarChart.vue +0 -294
  104. package/src/components/daping/Scada.vue +0 -198
  105. package/src/components/daping/SellBarEcharts.vue +0 -220
  106. package/src/components/daping/SellEcharts.vue +0 -219
  107. package/src/components/daping/Style/qinhuaStyle.less +0 -224
  108. package/src/components/daping/Style//346/261/211/344/273/252/350/217/261/345/277/203/344/275/223/347/256/200.ttf +0 -0
  109. package/src/components/daping/XianMap.vue +0 -275
  110. package/src/components/daping/js/AMap.js +0 -19
  111. package/src/components/daping/js/BMap.js +0 -13
  112. package/src/components/daping/json/mapStyle.json +0 -1299
  113. package/src/components/daping/json/xian.json +0 -1
  114. package/src/components/daping/qinHuaMap.vue +0 -338
  115. package/src/components/sale/businessquery/PriceChange.vue +0 -411
  116. package/src/components/sale/businessquery/iotStateSearch/iotStateQuery.vue +0 -334
  117. package/src/components/sale/filesquery/PriceChangeQuery.vue +0 -357
  118. package/src/filiale/meihekou/OtherChargeDetailQuery.vue +0 -74
  119. package/src/filiale/meihekou/OtherChargeQuery.vue +0 -613
  120. package/src/filiale/meihekou/UserGasEform.vue +0 -267
  121. package/src/filiale/rongchuang/SellingTable.vue +0 -250
  122. package/src/filiale/rongchuang/reportManage.js +0 -11
  123. package/src/filiale/tongchuan/UserQuery.vue +0 -846
  124. package/src/filiale/tongchuan/config/DefaultPrint.js +0 -6
  125. package/src/filiale/tongchuan/config/exportConfig.js +0 -857
  126. package/src/filiale/tongchuan/sale.js +0 -11
  127. package/src/filiale/zhoukou/CardHandplanQuery.vue +0 -457
  128. package/src/filiale/zhoukou/sale.js +0 -11
  129. package/src/plugins/transformer.js +0 -117
  130. package/static/NewManageHome/NewManageHome/01.png +0 -0
  131. package/static/NewManageHome/NewManageHome/02.png +0 -0
  132. package/static/NewManageHome/NewManageHome/03.png +0 -0
  133. package/static/NewManageHome/NewManageHome/04.png +0 -0
  134. package/static/NewManageHome/NewManageHome/1.gif +0 -0
  135. package/static/NewManageHome/NewManageHome/2.gif +0 -0
  136. package/static/NewManageHome/NewManageHome/3.gif +0 -0
  137. package/static/NewManageHome/NewManageHome/5gif.gif +0 -0
  138. package/static/NewManageHome/NewManageHome/6gif.gif +0 -0
  139. package/static/NewManageHome/NewManageHome/7.gif +0 -0
  140. package/static/NewManageHome/NewManageHome/8.gif +0 -0
  141. package/static/NewManageHome/NewManageHome/9.gif +0 -0
  142. package/static/NewManageHome/NewManageHome/background_qinhua.png +0 -0
  143. package/static/NewManageHome/NewManageHome/green.png +0 -0
  144. package/static/NewManageHome/NewManageHome/map.png +0 -0
  145. package/static/NewManageHome/NewManageHome/map1.png +0 -0
  146. package/static/NewManageHome/NewManageHome/mpa.png +0 -0
  147. package/static/NewManageHome/NewManageHome/sell_1.png +0 -0
  148. package/static/NewManageHome/NewManageHome/sell_2.png +0 -0
  149. package/static/NewManageHome/NewManageHome/title.png +0 -0
  150. package/static/NewManageHome/NewManageHome/title_left.png +0 -0
  151. package/static/NewManageHome/NewManageHome/title_right.png +0 -0
  152. package/static/NewManageHome/NewManageHome//345/210/206/345/205/254/345/217/270/345/271/264/345/272/246/350/264/255/350/277/233/351/207/217.png +0 -0
  153. package/static/NewManageHome/NewManageHome//345/212/240/350/275/275.gif +0 -0
  154. package/static/NewManageHome/NewManageHome//345/212/250/346/225/210.gif +0 -0
  155. package/static/NewManageHome/NewManageHome//345/215/203/351/230/263/345/216/2771.png +0 -0
  156. package/static/NewManageHome/NewManageHome//345/215/203/351/230/263/345/216/2772.png +0 -0
  157. package/static/NewManageHome/NewManageHome//345/215/242/346/260/217/345/216/2771.png +0 -0
  158. package/static/NewManageHome/NewManageHome//345/215/242/346/260/217/345/216/2772.png +0 -0
  159. package/static/NewManageHome/NewManageHome//345/217/263/344/270/212.png +0 -0
  160. package/static/NewManageHome/NewManageHome//345/217/263/344/270/213.png +0 -0
  161. package/static/NewManageHome/NewManageHome//345/233/272/345/256/232/350/265/204/344/272/247.png +0 -0
  162. package/static/NewManageHome/NewManageHome//345/233/276/345/261/2020.png +0 -0
  163. package/static/NewManageHome/NewManageHome//345/233/276/345/261/20212.png +0 -0
  164. package/static/NewManageHome/NewManageHome//345/233/276/345/261/2024.png +0 -0
  165. package/static/NewManageHome/NewManageHome//345/233/276/345/261/2025.png +0 -0
  166. package/static/NewManageHome/NewManageHome//345/233/276/345/261/202527.png +0 -0
  167. package/static/NewManageHome/NewManageHome//345/234/206/350/247/222/347/237/251/345/275/2421163.png +0 -0
  168. package/static/NewManageHome/NewManageHome//345/237/216/344/270/2341.png +0 -0
  169. package/static/NewManageHome/NewManageHome//345/237/216/344/270/2342.png +0 -0
  170. package/static/NewManageHome/NewManageHome//345/237/216/345/214/2271.png +0 -0
  171. package/static/NewManageHome/NewManageHome//345/237/216/345/214/2272.png +0 -0
  172. package/static/NewManageHome/NewManageHome//345/237/216/345/215/2271.png +0 -0
  173. package/static/NewManageHome/NewManageHome//345/237/216/345/215/2272.png +0 -0
  174. package/static/NewManageHome/NewManageHome//345/237/216/350/245/2771.png +0 -0
  175. package/static/NewManageHome/NewManageHome//345/237/216/350/245/2772.png +0 -0
  176. package/static/NewManageHome/NewManageHome//345/267/246/344/270/212.png +0 -0
  177. package/static/NewManageHome/NewManageHome//345/267/246/344/270/213.png +0 -0
  178. package/static/NewManageHome/NewManageHome//345/271/263/345/210/251/345/216/2771.png +0 -0
  179. package/static/NewManageHome/NewManageHome//345/271/263/345/210/251/345/216/2772.png +0 -0
  180. package/static/NewManageHome/NewManageHome//346/200/273/345/205/254/345/217/270/351/224/200/345/224/256/350/266/213/345/212/277.png +0 -0
  181. package/static/NewManageHome/NewManageHome//347/224/250/346/210/267.png +0 -0
  182. package/static/NewManageHome/NewManageHome//347/237/251/345/275/2421173/346/213/267/350/264/235.png +0 -0
  183. package/static/NewManageHome/NewManageHome//347/237/251/345/275/2421186.png +0 -0
  184. package/static/NewManageHome/NewManageHome//347/237/251/345/275/2421186/346/213/267/350/264/235.png +0 -0
  185. package/static/NewManageHome/NewManageHome//347/237/251/345/275/24211/346/213/267/350/264/2353.png +0 -0
  186. package/static/NewManageHome/NewManageHome//347/237/251/345/275/24211/346/213/267/350/264/2356.png +0 -0
  187. package/static/NewManageHome/NewManageHome//347/237/251/345/275/24211/346/213/267/350/264/2357.png +0 -0
  188. package/static/NewManageHome/NewManageHome//347/237/251/345/275/24211/346/213/267/350/264/2359.png +0 -0
  189. package/static/NewManageHome/NewManageHome//347/237/251/345/275/24216/346/213/267/350/264/23511.png +0 -0
  190. package/static/NewManageHome/NewManageHome//347/237/251/345/275/24216/346/213/267/350/264/23516.png +0 -0
  191. package/static/NewManageHome/NewManageHome//347/237/251/345/275/24216/346/213/267/350/264/23522.png +0 -0
  192. package/static/NewManageHome/NewManageHome//347/237/251/345/275/2426/346/213/267/350/264/2353.png +0 -0
  193. package/static/NewManageHome/NewManageHome//347/237/251/345/275/2426/346/213/267/350/264/2354.png +0 -0
  194. package/static/NewManageHome/NewManageHome//347/273/20420.png +0 -0
  195. package/static/NewManageHome/NewManageHome//347/273/20437.png +0 -0
  196. package/static/NewManageHome/NewManageHome//347/273/20443.png +0 -0
  197. package/static/NewManageHome/NewManageHome//347/273/20445.png +0 -0
  198. package/static/NewManageHome/NewManageHome//350/203/214/346/231/2571.png +0 -0
  199. package/static/NewManageHome/NewManageHome//350/220/245/344/270/232/346/224/266/345/205/245.png +0 -0
  200. package/static/NewManageHome/NewManageHome//351/224/200/345/224/256/346/260/224/351/207/217.png +0 -0
  201. package/static/NewManageHome/green.png +0 -0
  202. package/static/NewManageHome/title.png +0 -0
  203. package/static/NewManageHome/title_wujie.png +0 -0
  204. package/static/NewManageHome//345/233/276/345/261/202527.png +0 -0
  205. package/static/NewManageHome//347/237/251/345/275/2426/346/213/267/350/264/2353.png +0 -0
  206. package/static/NewManageHome//347/237/251/345/275/2426/346/213/267/350/264/2354.png +0 -0
  207. package/static/NewManageHome//347/273/20443.png +0 -0
  208. package/static/NewManageHome//347/273/20445.png +0 -0
  209. package/static/newStyle/position.png +0 -0
@@ -1,256 +0,0 @@
1
- <template>
2
- <div id="barchart" style="height: 100%;width:100%">
3
- </div>
4
- </template>
5
-
6
- <script>
7
- import {HttpResetClass} from 'vue-client'
8
- export default {
9
- title: '收费',
10
- data() {
11
- return{
12
- xData : ['1', '2', '3', '4', '5', '6'],
13
- yData1 : [12944, 72188, 55748, 36948, 28498, 27358],
14
- yData2 : [25968, 13128, 47838, 23148, 23498, 26538],
15
- }
16
- },
17
- methods: {
18
- init() {
19
- var xData = this.xData,
20
- yData1 = this.yData1,
21
- yData2 = this.yData2,
22
- borderData = [],
23
- legend = ['民用', '非民用'],
24
- colorArr = [{
25
- start: 'rgba(242,153,97)',
26
- mid: 'rgba(242,153,97,0.7)',
27
- end: 'rgba(0, 0, 0,0.5)'
28
- },
29
- {
30
- end: 'rgba(0, 0, 0,0.5)',
31
- mid: 'rgba(111,217,208,0.7)',
32
- start: 'rgba(111,217,208)'
33
- },
34
- {
35
- color: '#00EAFF'
36
- }
37
- ]
38
- let normalColor = 'rgba(8,115,142)'
39
- let seriesData = []
40
- var borderHeight = 4
41
- xData.forEach(element => {
42
- borderData.push(borderHeight)
43
- });
44
- [yData1, yData2].forEach((item, index) => {
45
- var obj1 = {}
46
- obj1 = {
47
- name: legend[index],
48
- type: 'bar',
49
- stack: legend[index],
50
- data: item,
51
- barWidth: '12px',
52
- itemStyle: {
53
- normal: {
54
- barBorderRadius: [30, 30, 0, 0],
55
- color: {
56
- type: 'linear',
57
- x: 0,
58
- y: 0,
59
- x2: 0,
60
- y2: 1,
61
- colorStops: [{
62
- offset: 0,
63
- color: colorArr[index].start
64
- },
65
- {
66
- offset: 1,
67
- color: colorArr[index].start
68
- },
69
- {
70
- offset: 1,
71
- color: colorArr[index].start
72
- }
73
- ],
74
- globalCoord: false
75
- }
76
- }
77
- }
78
- }
79
- seriesData.push(obj1)
80
- })
81
- console.log(seriesData)
82
- // 更改柱状图位置
83
- let option = {
84
- title:{
85
- text:'用户售气量分布',
86
- x:'center',
87
- y:'20',
88
- backgroundColor: '#002c45', //标题背景颜色,默认'rgba(0,0,0,0)'透明
89
-             borderColor: '#01fee8', //标题边框颜色,默认'#ccc'
90
-             borderWidth: 1, //标题边框线宽,单位px,默认为0(无边框)
91
- padding:5,
92
- textStyle: {
93
- fontSize: 12,
94
- fontWeight: 'normal',
95
- fontFamily: 'pFBold',
96
- lineHeight: 26,
97
- color: '#24d4d4',
98
- align: 'center'
99
- }},
100
- backgroundColor: '#ffffff00',
101
- grid: {
102
- left: '2%',
103
- top: '20%',
104
- right: '10%',
105
- bottom: '2%',
106
- containLabel: true
107
- },
108
- legend: {
109
- show: true,
110
- icon: 'rect',
111
- itemWidth: 15,
112
- itemHeight: 10,
113
- top: '10%',
114
- right:'10%',
115
- textStyle: {
116
- color: '#fff'
117
- },
118
- data: legend
119
- },
120
- tooltip: {
121
- position: function (pos, params, dom, rect, size) {
122
- let yPos = '20%'
123
- let xPos = 0
124
- if (pos[0] < size.viewSize[0] / 2) {
125
- xPos = pos[0] + 10
126
- } else {
127
- xPos = pos[0] - dom.offsetWidth - 10
128
- }
129
- return [xPos, yPos]
130
- },
131
- trigger: 'axis',
132
- extraCssText: 'width:auto;height:30%;border:1px solid #015999;background:#032f53 ',
133
- formatter: function (params) {
134
- var str = ''
135
- for (var i = 0; i < params.length; i++) {
136
- if (params[i].seriesName !== '') {
137
- str += `<span>${params[i].seriesName}:</span><span style="color:gold">${params[i].value}</span> <br />`
138
- }
139
- }
140
- return str
141
- }
142
- },
143
- xAxis: [{
144
- name: '近6月',
145
- type: 'category',
146
- nameTextStyle: {
147
- color: '#95bad7',
148
- fontSize: 12
149
- },
150
- data: xData,
151
- interval: 0,
152
- axisPointer: {
153
- type: 'shadow'
154
- },
155
- axisLabel: {
156
- textStyle: {
157
- color: '#95bad7',
158
- fontSize: '1vw'
159
- }
160
- },
161
- axisLine: {
162
- lineStyle: {
163
- color: normalColor
164
- }
165
- },
166
- axisTick: {
167
- show: false
168
- },
169
- splitLine: {
170
- show: false
171
- }
172
- }],
173
- yAxis: [{
174
- name: '单位(万方)',
175
- type: 'value',
176
- nameTextStyle: {
177
- color: '#95bad7',
178
- fontSize: 12
179
- },
180
- splitNumber : 3,
181
- // 'min': 0,
182
- // 'max': 50,
183
- axisLabel: {
184
- formatter: '{value}',
185
- textStyle: {
186
- color: '#95bad7',
187
- fontSize: '1vw'
188
- }
189
- },
190
- axisLine: {
191
- lineStyle: {
192
- color: normalColor
193
- }
194
- },
195
- axisTick: {
196
- show: false
197
- },
198
- splitLine: {
199
- show: false,
200
- lineStyle: {
201
- type: 'dashed',
202
- color: normalColor
203
- }
204
- }
205
- }],
206
- series: seriesData
207
- }
208
- console.log(option)
209
- let barchart = this.$echarts.init(document.getElementById('barchart'))
210
- console.log(option)
211
- barchart.setOption(option)
212
- var index = 0
213
- // var mTime = setInterval(function () {
214
- // barchart.dispatchAction({
215
- // type: 'showTip',
216
- // seriesIndex: 0,
217
- // dataIndex: index
218
- // })
219
- // index++
220
- // if (index > xData.length) {
221
- // index = 0
222
- // }
223
- // }, 1000)
224
- }
225
- },
226
- ready() {
227
- let http = new HttpResetClass()
228
- http.load('post', '/rs/sql/getSellSumByMonth', {data:{}}, {rejectMsg: null, resolveMsg: null}).then((res)=>{
229
- this.yData1 = res.data.map((item)=>item.sum1)
230
- console.log(this.yData1)
231
- this.yData1 =[]
232
- this.yData2=[]
233
- this.xData = []
234
- for(let i=0;i<res.data.length;i++){
235
- if(res.data[i].natures==='民用'){
236
- this.xData.push(res.data[i].time)
237
- this.yData1.push((res.data[i].sumgas/10000).toFixed(2))
238
- }
239
- if(res.data[i].natures==='非民用'){
240
- this.yData2.push((res.data[i].sumgas/10000).toFixed(2))
241
- }
242
-
243
- }
244
- this.init()
245
-
246
- })
247
- },
248
- props: {}
249
- }
250
- </script>
251
- <style scoped>
252
- /*div{*/
253
- /*height: auto;*/
254
- /*}*/
255
- </style>
256
-
@@ -1,284 +0,0 @@
1
- <template>
2
- <div id="barchart-line" style="width: 100%;height: 100%">
3
-
4
- </div>
5
- </template>
6
-
7
- <script>
8
- import {HttpResetClass} from 'vue-client'
9
- export default {
10
- title: '收费',
11
- data() {
12
- return{
13
- xData : ['1', '2', '3', '4', '5', '6'],
14
- yData1 : [12944, 72188, 55748, 36948, 28498, 27358],
15
- yData2 : [25968, 13128, 47838, 23148, 23498, 26538],
16
- yData3 : [33357, 14893, 32526, 32559, 37335, 36626]
17
- }
18
-
19
- },
20
- methods: {
21
- init() {
22
- var xData = this.xData,
23
- yData1 = this.yData1,
24
- yData2 = this.yData2,
25
- yData3 = this.yData3,
26
- borderData = [],
27
- legend = ['呼入量', '人工接听量','报修量'],
28
- colorArr = [{
29
- start: 'rgba(242,153,97)',
30
- mid: 'rgba(242,153,97,0.7)',
31
- end: 'rgba(0, 0, 0,0.5)'
32
- },
33
- {
34
- end: 'rgba(0, 0, 0,0.5)',
35
- mid: 'rgba(111,217,208,0.7)',
36
- start: 'rgba(111,217,208)'
37
- },
38
- {
39
- color: '#ffd71f'
40
- }
41
- ]
42
- let normalColor = 'rgba(8,115,142)'
43
- let seriesData = []
44
- var borderHeight = 4
45
- xData.forEach(element => {
46
- borderData.push(borderHeight)
47
- });
48
- [yData1, yData2, yData3].forEach((item, index) => {
49
- var obj1 = {}
50
- if (index < 2) {
51
- obj1 = {
52
- name: legend[index],
53
- type: 'bar',
54
- stack: legend[index],
55
- data: item,
56
- barWidth: '12',
57
- itemStyle: {
58
- normal: {
59
- barBorderRadius: [30, 30, 0, 0],
60
- color: {
61
- type: 'linear',
62
- x: 0,
63
- y: 0,
64
- x2: 0,
65
- y2: 1,
66
- colorStops: [{
67
- offset: 0,
68
- color: colorArr[index].start
69
- },
70
- {
71
- offset: 0.5,
72
- color: colorArr[index].start
73
- },
74
- {
75
- offset: 1,
76
- color: colorArr[index].start
77
- }
78
- ],
79
- globalCoord: false
80
- }
81
- }
82
- }
83
- }
84
- seriesData.push(obj1)
85
- } else {
86
- var obj3 = {
87
- data: item,
88
- type: 'line',
89
- smooth: true,
90
- name: legend[index],
91
- symbol: 'circle',
92
- symbolSize: 8,
93
- itemStyle:{
94
- normal:{
95
- color:'orange',
96
- borderColor:'orange',
97
- }
98
- },
99
- lineStyle: {
100
- color: colorArr[index].color,
101
- width: 1,
102
- shadowColor: '#e5925e', //设置折线阴影
103
- shadowBlur: 15,
104
- shadowOffsetY: 20,
105
- }
106
- }
107
- seriesData.push(obj3)
108
- }
109
- })
110
- console.log(seriesData)
111
- // 更改柱状图位置
112
- let option = {
113
- title: {
114
- text:'近7天热线情况',
115
-
116
- x: '12%',
117
- y: '15',
118
- backgroundColor: '#002c45', //标题背景颜色,默认'rgba(0,0,0,0)'透明
119
- borderColor: '#01fee8', //标题边框颜色,默认'#ccc'
120
- borderWidth: 1, //标题边框线宽,单位px,默认为0(无边框)
121
- padding:5,
122
- textStyle: {
123
- fontSize: 12,
124
- fontWeight: 'normal',
125
- fontFamily: 'pFBold',
126
- lineHeight: 20,
127
- color: '#24d4d4',
128
- align: 'center'
129
- }
130
- },
131
- backgroundColor: '#ffffff00',
132
- grid: {
133
- left: '2%',
134
- top: '20%',
135
- right: '10%',
136
- bottom: '2%',
137
- containLabel: true
138
- },
139
- legend: {
140
- show: true,
141
- icon: 'rect',
142
- itemWidth: 15,
143
- itemHeight: 10,
144
- top: '5%',
145
- right:'10%',
146
- textStyle: {
147
- color: '#fff'
148
- },
149
- data: legend
150
- },
151
- tooltip: {
152
- position: function (pos, params, dom, rect, size) {
153
- let yPos = '20%'
154
- let xPos = 0
155
- if (pos[0] < size.viewSize[0] / 2) {
156
- xPos = pos[0] + 10
157
- } else {
158
- xPos = pos[0] - dom.offsetWidth - 10
159
- }
160
- return [xPos, yPos]
161
- },
162
- trigger: 'axis',
163
- extraCssText: 'width:auto;height:50%;border:1px solid #015999;background:#032f53 ',
164
- formatter: function (params) {
165
- var str = ''
166
- for (var i = 0; i < params.length; i++) {
167
- if (params[i].seriesName !== '') {
168
- str += `<span>${params[i].seriesName}:</span><span style="color:gold">${params[i].value}</span> <br />`
169
- }
170
- }
171
- return str
172
- }
173
- },
174
- xAxis: [{
175
- name: '近7天',
176
- type: 'category',
177
- nameTextStyle: {
178
- color: '#95bad7',
179
- fontSize: 12
180
- },
181
- data: xData,
182
- interval: 0,
183
- axisPointer: {
184
- type: 'shadow'
185
- },
186
- axisLabel: {
187
- textStyle: {
188
- color: '#95bad7',
189
- fontSize: 12
190
- }
191
- },
192
- axisLine: {
193
- lineStyle: {
194
- color: '#95bad7',
195
- }
196
- },
197
- axisTick: {
198
- show: false
199
- },
200
- splitLine: {
201
- show: false
202
- }
203
- }],
204
- yAxis: [{
205
- type: 'value',
206
- nameTextStyle: {
207
- color: '#95bad7',
208
- fontSize: 12
209
- },
210
-
211
- splitNumber : 3,
212
- // 'min': 0,
213
- // 'max': 50,
214
- axisLabel: {
215
- formatter: '{value}',
216
- textStyle: {
217
- color: '#95bad7',
218
- fontSize: 12
219
- }
220
- },
221
- axisLine: {
222
- lineStyle: {
223
- color: '#95bad7',
224
- }
225
- },
226
- axisTick: {
227
- show: false
228
- },
229
- splitLine: {
230
- show: false,
231
- lineStyle: {
232
- type: 'dashed',
233
- color: normalColor
234
- }
235
- }
236
- }],
237
- series: seriesData
238
- }
239
- console.log(option)
240
- let barchart = this.$echarts.init(document.getElementById('barchart-line'))
241
- console.log(option)
242
- barchart.setOption(option)
243
- var index = 0
244
- // var mTime = setInterval(function () {
245
- // barchart.dispatchAction({
246
- // type: 'showTip',
247
- // seriesIndex: 0,
248
- // dataIndex: index
249
- // })
250
- // index++
251
- // if (index > xData.length) {
252
- // index = 0
253
- // }
254
- // }, 1000)
255
- }
256
- },
257
- ready() {
258
- let http = new HttpResetClass()
259
- http.load('post', '/rs/sql/getCallSumByDay', {data:{}}, {rejectMsg: null, resolveMsg: null}).then((res)=>{
260
- this.yData1 = res.data.map((item)=>item.sum1)
261
- console.log(this.yData1)
262
- this.yData1 =[]
263
- this.yData2=[]
264
- this.yData3=[]
265
- this.xData = []
266
- for(let i=0;i<res.data.length;i++){
267
- this.xData.push(res.data[i].time)
268
- this.yData1.push(res.data[i].sum1)
269
- this.yData2.push(res.data[i].sum2)
270
- this.yData3.push(res.data[i].sum3)
271
- }
272
- this.init()
273
-
274
- })
275
-
276
- },
277
- props: {}
278
- }
279
- </script>
280
- <style scoped>
281
- /*div{*/
282
- /*height: auto;*/
283
- /*}*/
284
- </style>