manage-client 3.2.49 → 3.2.53

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 (412) hide show
  1. package/.babelrc +5 -5
  2. package/.classpath +6 -6
  3. package/.editorconfig +9 -9
  4. package/.eslintrc.js +20 -20
  5. package/.gradle/buildOutputCleanup/cache.properties +2 -2
  6. package/.project +18 -18
  7. package/CHANGELOG.md +15 -15
  8. package/DOC//345/212/237/350/203/275/350/257/264/346/230/216.md +13 -13
  9. package/DOC//347/211/210/346/234/254/344/277/241/346/201/257.md +8 -8
  10. package/ManageClient.iml +13 -13
  11. package/README.md +38 -38
  12. package/build/dev-server.js +178 -174
  13. package/build/webpack.base.conf.js +82 -82
  14. package/build.gradle +13 -13
  15. package/config/dev.env.js +6 -6
  16. package/config/index.js +40 -40
  17. package/config/prod.env.js +3 -3
  18. package/config/test.env.js +6 -6
  19. package/gradle/wrapper/gradle-wrapper.properties +5 -5
  20. package/gradlew.bat +100 -100
  21. package/index.html +28 -28
  22. package/package.json +1 -1
  23. package/release.bat +5 -5
  24. package/src/ManageHome.js +269 -269
  25. package/src/Staff/StaffCompileList.vue +334 -334
  26. package/src/Staff/StaffList.vue +161 -161
  27. package/src/Staff/StaffListManage.vue +49 -49
  28. package/src/Util.js +367 -367
  29. package/src/components/BasisEcharts/BarChart.vue +247 -247
  30. package/src/components/BasisEcharts/LineChart.vue +243 -243
  31. package/src/components/ManageHome/CustomerService/ContentmentStatistics.vue +135 -135
  32. package/src/components/ManageHome/CustomerService/ExcepCollect.vue +174 -174
  33. package/src/components/ManageHome/CustomerService/ReasonComplaint.vue +116 -116
  34. package/src/components/ManageHome/CustomerService/ReasonConsultation.vue +115 -115
  35. package/src/components/ManageHome/CustomerService/ServiceFix.vue +155 -155
  36. package/src/components/ManageHome/CustomerService/ServiceHome.vue +179 -179
  37. package/src/components/ManageHome/CustomerService/ServiceStatistics.vue +147 -147
  38. package/src/components/ManageHome/CustomerService/TrafficStatistics.vue +160 -160
  39. package/src/components/ManageHome/Drill/DrillData.vue +791 -791
  40. package/src/components/ManageHome/Drill/DrillList.vue +320 -320
  41. package/src/components/ManageHome/Drill/DrillPool.vue +129 -129
  42. package/src/components/ManageHome/Home/CallCenter.vue +124 -124
  43. package/src/components/ManageHome/Home/CallFix.vue +172 -172
  44. package/src/components/ManageHome/Home/CallStatistics.vue +147 -147
  45. package/src/components/ManageHome/Home/GasValue.vue +233 -233
  46. package/src/components/ManageHome/Home/Home.vue +138 -138
  47. package/src/components/ManageHome/Home/Monitor.vue +329 -329
  48. package/src/components/ManageHome/Home/NetWork.vue +202 -202
  49. package/src/components/ManageHome/Home/SafeCheck.vue +249 -249
  50. package/src/components/ManageHome/Home/UserModule.vue +367 -367
  51. package/src/components/ManageHome/ImportSupplygas/AddSupply.vue +206 -206
  52. package/src/components/ManageHome/ImportSupplygas/SuppleManagement.vue +43 -43
  53. package/src/components/ManageHome/ImportSupplygas/SupplySelect.vue +85 -85
  54. package/src/components/ManageHome/ImportSupplygas/UpdateSupply.vue +187 -187
  55. package/src/components/ManageHome/ManageHome.vue +292 -292
  56. package/src/components/ManageHome/Monitor/BuySub.vue +311 -311
  57. package/src/components/ManageHome/Monitor/Caveat.vue +300 -300
  58. package/src/components/ManageHome/Monitor/ComparedGas.vue +264 -264
  59. package/src/components/ManageHome/Monitor/MeterBrand.vue +211 -211
  60. package/src/components/ManageHome/Monitor/MonitorCenter.vue +132 -132
  61. package/src/components/ManageHome/Monitor/MonitorHome.vue +188 -188
  62. package/src/components/ManageHome/Monitor/NoBuyGas.vue +223 -223
  63. package/src/components/ManageHome/Monitor/NoContact.vue +233 -233
  64. package/src/components/ManageHome/Monitor/NoGas.vue +202 -202
  65. package/src/components/ManageHome/NetWork/LineInspection.vue +267 -267
  66. package/src/components/ManageHome/NetWork/NetDanger.vue +258 -258
  67. package/src/components/ManageHome/NetWork/NetHome.vue +84 -84
  68. package/src/components/ManageHome/NetWork/SupplyGas.vue +204 -204
  69. package/src/components/ManageHome/SecurityCheck/CheckHome.vue +94 -94
  70. package/src/components/ManageHome/SecurityCheck/CustomerType.vue +244 -244
  71. package/src/components/ManageHome/SecurityCheck/LatentDanger.vue +218 -218
  72. package/src/components/ManageHome/SecurityCheck/PlanStatistics.vue +231 -231
  73. package/src/components/ManageHome/SecurityCheck/StateStatistics.vue +237 -237
  74. package/src/components/ManageHome/SecurityCheck/TaskStatistics.vue +303 -303
  75. package/src/components/ManageHome/User/GasDistri.vue +271 -271
  76. package/src/components/ManageHome/User/InspecDistri.vue +272 -272
  77. package/src/components/ManageHome/User/SaleProportion.vue +309 -309
  78. package/src/components/ManageHome/User/UseHome.vue +155 -155
  79. package/src/components/ManageHome/User/UserGascontrast.vue +223 -223
  80. package/src/components/ManageHome/User/UserNumber.vue +519 -519
  81. package/src/components/ManageHome/User/UsernumIncrease.vue +243 -243
  82. package/src/components/ManageHome/loading.vue +23 -23
  83. package/src/components/ManageHomeCS/Cockpit.vue +43 -43
  84. package/src/components/ManageHomeCS/CustomerService/ContentmentStatistics.vue +161 -161
  85. package/src/components/ManageHomeCS/CustomerService/ExcepCollect.vue +201 -201
  86. package/src/components/ManageHomeCS/CustomerService/ReasonComplaint.vue +146 -146
  87. package/src/components/ManageHomeCS/CustomerService/ReasonConsultation.vue +148 -148
  88. package/src/components/ManageHomeCS/CustomerService/ServiceFix.vue +242 -242
  89. package/src/components/ManageHomeCS/CustomerService/ServiceHome.vue +176 -176
  90. package/src/components/ManageHomeCS/CustomerService/ServiceStatistics.vue +277 -277
  91. package/src/components/ManageHomeCS/CustomerService/TrafficStatistics.vue +226 -226
  92. package/src/components/ManageHomeCS/Drill/DrillData.vue +918 -918
  93. package/src/components/ManageHomeCS/Drill/DrillList.vue +320 -320
  94. package/src/components/ManageHomeCS/Drill/DrillPool.vue +129 -129
  95. package/src/components/ManageHomeCS/Home/CallCenter.vue +206 -206
  96. package/src/components/ManageHomeCS/Home/CallFix.vue +172 -172
  97. package/src/components/ManageHomeCS/Home/CallStatistics.vue +147 -147
  98. package/src/components/ManageHomeCS/Home/GasValue.vue +466 -466
  99. package/src/components/ManageHomeCS/Home/Home.vue +57 -57
  100. package/src/components/ManageHomeCS/Home/Monitor.vue +423 -423
  101. package/src/components/ManageHomeCS/Home/NetWork.vue +223 -223
  102. package/src/components/ManageHomeCS/Home/SafeCheck.vue +446 -446
  103. package/src/components/ManageHomeCS/Home/ShanxiMap.vue +432 -432
  104. package/src/components/ManageHomeCS/Home/UserModule.vue +511 -511
  105. package/src/components/ManageHomeCS/Home/YulinMap.vue +424 -424
  106. package/src/components/ManageHomeCS/ImportSupplygas/AddSupply.vue +206 -206
  107. package/src/components/ManageHomeCS/ImportSupplygas/SuppleManagement.vue +43 -43
  108. package/src/components/ManageHomeCS/ImportSupplygas/SupplySelect.vue +85 -85
  109. package/src/components/ManageHomeCS/ImportSupplygas/UpdateSupply.vue +187 -187
  110. package/src/components/ManageHomeCS/Monitor/BuySub.vue +339 -339
  111. package/src/components/ManageHomeCS/Monitor/Caveat.vue +301 -301
  112. package/src/components/ManageHomeCS/Monitor/ComparedGas.vue +276 -276
  113. package/src/components/ManageHomeCS/Monitor/MeterBrand.vue +220 -220
  114. package/src/components/ManageHomeCS/Monitor/MonitorCenter.vue +139 -139
  115. package/src/components/ManageHomeCS/Monitor/MonitorHome.vue +188 -188
  116. package/src/components/ManageHomeCS/Monitor/NoBuyGas.vue +218 -218
  117. package/src/components/ManageHomeCS/Monitor/NoContact.vue +217 -217
  118. package/src/components/ManageHomeCS/Monitor/NoGas.vue +214 -214
  119. package/src/components/ManageHomeCS/NetWork/LineInspection.vue +268 -268
  120. package/src/components/ManageHomeCS/NetWork/NetDanger.vue +258 -258
  121. package/src/components/ManageHomeCS/NetWork/NetHome.vue +106 -106
  122. package/src/components/ManageHomeCS/NetWork/NetWork.vue +222 -222
  123. package/src/components/ManageHomeCS/NetWork/NetWorkMap.vue +86 -86
  124. package/src/components/ManageHomeCS/NetWork/SupplyGas.vue +291 -291
  125. package/src/components/ManageHomeCS/NewHome/GasProperties.vue +314 -314
  126. package/src/components/ManageHomeCS/NewHome/NewManageHome.vue +182 -182
  127. package/src/components/ManageHomeCS/NewHome/TextBusiness.vue +267 -267
  128. package/src/components/ManageHomeCS/NewHome/TextChildsellgas.vue +209 -209
  129. package/src/components/ManageHomeCS/NewHome/TextProfit.vue +298 -298
  130. package/src/components/ManageHomeCS/NewHome/TextSellgas.vue +82 -82
  131. package/src/components/ManageHomeCS/NewHome/TextShanximap.vue +389 -389
  132. package/src/components/ManageHomeCS/NewHome/TextTotalsellgas.vue +406 -406
  133. package/src/components/ManageHomeCS/NewHome/TextUser.vue +378 -378
  134. package/src/components/ManageHomeCS/NewHome/yulin.vue +425 -425
  135. package/src/components/ManageHomeCS/Poor/PoorHome.vue +176 -176
  136. package/src/components/ManageHomeCS/SecurityCheck/CheckHome.vue +94 -94
  137. package/src/components/ManageHomeCS/SecurityCheck/CustomerType.vue +246 -246
  138. package/src/components/ManageHomeCS/SecurityCheck/LatentDanger.vue +220 -220
  139. package/src/components/ManageHomeCS/SecurityCheck/PlanStatistics.vue +306 -306
  140. package/src/components/ManageHomeCS/SecurityCheck/StateStatistics.vue +239 -239
  141. package/src/components/ManageHomeCS/SecurityCheck/TaskStatistics.vue +311 -311
  142. package/src/components/ManageHomeCS/User/FMYInspecDistri.vue +269 -269
  143. package/src/components/ManageHomeCS/User/GasDistri.vue +220 -220
  144. package/src/components/ManageHomeCS/User/MYInspecDistri.vue +269 -269
  145. package/src/components/ManageHomeCS/User/SaleProportion.vue +384 -384
  146. package/src/components/ManageHomeCS/User/UseHome.vue +162 -162
  147. package/src/components/ManageHomeCS/User/UserGascontrast.vue +221 -221
  148. package/src/components/ManageHomeCS/User/UserNumber.vue +600 -600
  149. package/src/components/ManageHomeCS/User/UsernumIncrease.vue +277 -277
  150. package/src/components/ManageHomeCS/loading.vue +39 -39
  151. package/src/components/ManageHomeCS/test.vue +88 -88
  152. package/src/components/MeterManage/ChangeMeterQuery.vue +82 -82
  153. package/src/components/MeterManage/ChargeQuery.vue +79 -79
  154. package/src/components/MeterManage/FillCardQuery.vue +80 -80
  155. package/src/components/MeterManage/FillGasQuery.vue +80 -80
  156. package/src/components/MeterManage/HandQuery.vue +72 -72
  157. package/src/components/MeterManage/MeterInfoManage.vue +107 -107
  158. package/src/components/MeterManage/MeterList.vue +336 -336
  159. package/src/components/MeterManage/MeterMsg.vue +181 -181
  160. package/src/components/MeterManage/OtherChargeQuery.vue +78 -78
  161. package/src/components/MeterManage/ReversalQuery.vue +77 -77
  162. package/src/components/MeterManage/TransferQuery.vue +72 -72
  163. package/src/components/SellReport/BankManager.vue +146 -146
  164. package/src/components/SellReport/CaiManageDayGas.vue +280 -280
  165. package/src/components/SellReport/ChManageBusSummary.vue +273 -273
  166. package/src/components/SellReport/ChManageHandSellMoney.vue +274 -274
  167. package/src/components/SellReport/ChManageMonthGas.vue +285 -285
  168. package/src/components/SellReport/ChOtherfee.vue +251 -251
  169. package/src/components/SellReport/CollectFee.vue +184 -184
  170. package/src/components/SellReport/Contrast.vue +188 -188
  171. package/src/components/SellReport/DayStairMoney.vue +256 -256
  172. package/src/components/SellReport/FenxiangSell.vue +183 -183
  173. package/src/components/SellReport/FxGasTable.vue +220 -220
  174. package/src/components/SellReport/GasCollect.vue +174 -174
  175. package/src/components/SellReport/GaspriceHas.vue +141 -141
  176. package/src/components/SellReport/HandCollect.vue +189 -189
  177. package/src/components/SellReport/JinChengBusSummary.vue +182 -182
  178. package/src/components/SellReport/JinChengHandGas.vue +182 -182
  179. package/src/components/SellReport/JinChengOperSummary.vue +182 -182
  180. package/src/components/SellReport/JinChengSliceSumgas.vue +182 -182
  181. package/src/components/SellReport/ManageBusTable.vue +207 -207
  182. package/src/components/SellReport/ManageGasFee.vue +247 -247
  183. package/src/components/SellReport/ManageGasFeeOperator.vue +236 -236
  184. package/src/components/SellReport/ManageHandSellInputtor.vue +241 -241
  185. package/src/components/SellReport/ManageMonthGas.vue +249 -249
  186. package/src/components/SellReport/ManageNewGasPrice.vue +245 -245
  187. package/src/components/SellReport/ManageReceivable.vue +254 -254
  188. package/src/components/SellReport/ManageUserCollect.vue +183 -183
  189. package/src/components/SellReport/MeterBill.vue +185 -185
  190. package/src/components/SellReport/MeterGasMoney.vue +226 -226
  191. package/src/components/SellReport/MeterInput.vue +250 -250
  192. package/src/components/SellReport/MonthStairMoney.vue +256 -256
  193. package/src/components/SellReport/OweAging.vue +174 -174
  194. package/src/components/SellReport/ReportHistory.vue +80 -80
  195. package/src/components/SellReport/ReportPool.vue +60 -60
  196. package/src/components/SellReport/Selling.vue +188 -188
  197. package/src/components/SellReport/SiteManager.vue +147 -147
  198. package/src/components/SellReport/UserStateStatistics.vue +188 -188
  199. package/src/components/SellReport/UsertypePie.vue +101 -101
  200. package/src/components/SellReport/XianYangDate.vue +227 -227
  201. package/src/components/SellReport/XianYangOperator.vue +228 -228
  202. package/src/components/SellReport/XyDateCharge.vue +227 -227
  203. package/src/components/SellReport/XyOperatorCharge.vue +256 -256
  204. package/src/components/SellReport/YuShouTableTwo.vue +309 -309
  205. package/src/components/SellReport/jingwei/CardCharge.vue +142 -142
  206. package/src/components/SellReport/jingwei/MachineCharge.vue +141 -141
  207. package/src/components/SellReport/jingwei/PaymentNotice.vue +479 -479
  208. package/src/components/SellReport/jingwei/handplanReport.vue +280 -280
  209. package/src/components/SellReport/jingwei/widegt/PaymentNoticePrint.vue +198 -198
  210. package/src/components/SellReport/jingwei/widegt/handplanPrint.vue +143 -143
  211. package/src/components/SellReport/pengan/ManageBusSummaryPeng.vue +241 -241
  212. package/src/components/WebReport/AbnormalInfo.vue +197 -197
  213. package/src/components/WebReport/AbnormalInfoEcharts.vue +120 -120
  214. package/src/components/WebReport/BatteryLow.vue +148 -148
  215. package/src/components/WebReport/BusinessHall.vue +85 -85
  216. package/src/components/WebReport/BussinessType.vue +137 -137
  217. package/src/components/WebReport/Communication.vue +131 -131
  218. package/src/components/WebReport/CompanyUser.vue +79 -79
  219. package/src/components/WebReport/EchartsBox.vue +110 -110
  220. package/src/components/WebReport/ElectroMagnetic.vue +142 -142
  221. package/src/components/WebReport/GaspriceHas.vue +141 -141
  222. package/src/components/WebReport/HandplanPrint.vue +167 -167
  223. package/src/components/WebReport/NotUpload.vue +165 -165
  224. package/src/components/WebReport/OweQuery.vue +169 -169
  225. package/src/components/WebReport/PaymentDistributed.vue +176 -176
  226. package/src/components/WebReport/Paymentpie.vue +157 -157
  227. package/src/components/WebReport/ReportWorklist.vue +220 -220
  228. package/src/components/WebReport/SellType.vue +89 -89
  229. package/src/components/WebReport/Telemanlist.vue +221 -221
  230. package/src/components/WebReport/UserGasAll.vue +214 -214
  231. package/src/components/WebReport/UserGasEcharts.vue +107 -107
  232. package/src/components/WebReport/UsertypePie.vue +105 -105
  233. package/src/components/WebReport/ValueEcharts.vue +99 -99
  234. package/src/components/WebReport/ValueInfo.vue +194 -194
  235. package/src/components/qinhua/BarChartLine.vue +288 -288
  236. package/src/components/qinhua/ManageMain.vue +162 -162
  237. package/src/components/qinhua/Ring.vue +165 -165
  238. package/src/components/qinhua/SafeCheckRing.vue +149 -149
  239. package/src/components/qinhua/SafecheckBarChart.vue +209 -209
  240. package/src/components/qinhua/Scada.vue +93 -93
  241. package/src/components/safecheck/analysis/SafeHiddenAnaly.vue +932 -932
  242. package/src/components/safecheck/planCheck/chanceSituation.vue +149 -149
  243. package/src/components/safecheck/planCheck/checkFamily.vue +217 -217
  244. package/src/components/safecheck/planCheck/hidderDanger.vue +179 -179
  245. package/src/components/safecheck/planCheck/inFamily.vue +185 -185
  246. package/src/components/sale/businessquery/AccountQuery/TransactionSummary.vue +373 -373
  247. package/src/components/sale/businessquery/BalanceQuery.vue +456 -456
  248. package/src/components/sale/businessquery/ChangeMeterQuery.vue +645 -644
  249. package/src/components/sale/businessquery/InspectManage.vue +47 -47
  250. package/src/components/sale/businessquery/NewAccountQuery.vue +409 -409
  251. package/src/components/sale/businessquery/OtherChargeDetailQuery.vue +74 -74
  252. package/src/components/sale/businessquery/ResourceOperatingQuery.vue +317 -317
  253. package/src/components/sale/businessquery/TongjiManage.vue +74 -74
  254. package/src/components/sale/businessquery/UserTongjiQuery.vue +358 -358
  255. package/src/components/sale/businessquery/YearGasQuery.vue +422 -422
  256. package/src/components/sale/businessquery/analysisquery/AnalysisManage.vue +65 -65
  257. package/src/components/sale/businessquery/gasPriceQuery.vue +340 -372
  258. package/src/components/sale/businessquery/weChatBind.vue +361 -361
  259. package/src/components/sale/common/PrintData.vue +171 -171
  260. package/src/components/sale/common/PrintDataSelf.vue +225 -225
  261. package/src/components/sale/common/PrintTable.vue +228 -228
  262. package/src/components/sale/common/PrintTableSelf.vue +251 -251
  263. package/src/components/sale/common/TabButton.vue +155 -155
  264. package/src/components/sale/common/Tabs.vue +67 -67
  265. package/src/components/sale/common/handplanUser.vue +112 -112
  266. package/src/components/sale/config/DefaultPrint.js +6 -6
  267. package/src/components/sale/filesquery/detail/UserBaseInfo.vue +69 -69
  268. package/src/components/sale/filesquery/detail/UserDetail.vue +41 -41
  269. package/src/components/sale/filesquery/detail/UserOperInfo.vue +76 -76
  270. package/src/components/sale/filesquery/detail/oper/ChangeMessage.vue +46 -46
  271. package/src/components/sale/filesquery/detail/oper/ExchangeOper.vue +66 -66
  272. package/src/components/sale/filesquery/detail/oper/HandOper.vue +46 -46
  273. package/src/components/sale/filesquery/detail/oper/HandleMessage.vue +46 -46
  274. package/src/components/sale/filesquery/detail/oper/OtherCharge.vue +54 -54
  275. package/src/components/sale/filesquery/detail/oper/ReplaceCard.vue +51 -51
  276. package/src/components/sale/filesquery/detail/oper/SellOper.vue +56 -56
  277. package/src/components/sale/filesquery/detail/oper/TransferMessage.vue +55 -55
  278. package/src/components/sale/filesquery/filequerydetail/BlackListQueryDetail.vue +219 -219
  279. package/src/components/sale/filesquery/filequerydetail/ChangeMeterQueryDetail.vue +246 -246
  280. package/src/components/sale/filesquery/filequerydetail/ChargeQueryDetail.vue +239 -239
  281. package/src/components/sale/filesquery/filequerydetail/DeviceQueryDetail.vue +126 -126
  282. package/src/components/sale/filesquery/filequerydetail/DisableQueryDetail.vue +272 -272
  283. package/src/components/sale/filesquery/filequerydetail/EnableQueryDetail.vue +274 -274
  284. package/src/components/sale/filesquery/filequerydetail/FillCardQueryDetail.vue +80 -80
  285. package/src/components/sale/filesquery/filequerydetail/FillGasQueryDetail.vue +80 -80
  286. package/src/components/sale/filesquery/filequerydetail/HandQueryDetail.vue +302 -302
  287. package/src/components/sale/filesquery/filequerydetail/MeterQueryDetail.vue +158 -158
  288. package/src/components/sale/filesquery/filequerydetail/OtherChargeQueryDetail.vue +198 -198
  289. package/src/components/sale/filesquery/filequerydetail/RecordQueryDetail.vue +125 -125
  290. package/src/components/sale/filesquery/filequerydetail/SellingHandDetail.vue +280 -280
  291. package/src/components/sale/filesquery/filequerydetail/TransferQueryDetail.vue +160 -160
  292. package/src/components/sale/filesquery/filequerydetail/UserQueryDetail.vue +155 -155
  293. package/src/components/sale/report/aode/DayReport.vue +50 -50
  294. package/src/components/sale/report/aode/DayReportSummary.vue +75 -75
  295. package/src/components/sale/report/aode/MonthByChargeType.vue +446 -446
  296. package/src/components/sale/report/aode/MonthByUserType.vue +413 -413
  297. package/src/components/sale/report/aode/YearByChargeTpye.vue +215 -215
  298. package/src/components/sale/report/aode/YearByUserType.vue +272 -272
  299. package/src/components/sale/report/aode/life/LifeDayReport.vue +50 -50
  300. package/src/components/sale/report/aode/life/LifeDayReportList.vue +241 -241
  301. package/src/components/sale/report/aode/life/LifeDayReportSummary.vue +49 -49
  302. package/src/components/sale/report/aode/life/LifeMonthReport.vue +303 -303
  303. package/src/components/sale/report/aode/life/LifeYearReport.vue +175 -175
  304. package/src/components/sale/report/aode/widget/LifeDayReportListPrint.vue +189 -189
  305. package/src/components/sale/report/aode/widget/LifeMonthPrint.vue +153 -153
  306. package/src/components/sale/report/aode/widget/LifeYearPrint.vue +143 -143
  307. package/src/components/sale/report/aode/widget/MonthByChargePrint.vue +236 -236
  308. package/src/components/sale/report/aode/widget/MonthByUserPrint.vue +232 -232
  309. package/src/components/sale/report/aode/widget/YearByChargePrint.vue +203 -203
  310. package/src/components/sale/report/aode/widget/YearByUserPrint.vue +225 -225
  311. package/src/components/scada/CaculateGasConsumputionByDay/CaculateGasConsumputionByDay.vue +290 -290
  312. package/src/components/scada/ChartDisplay/ChartDisplayManage.vue +55 -55
  313. package/src/components/scada/ChartDisplay/ChartThreeDayContrast.vue +164 -164
  314. package/src/components/scada/CumulativeFlow/CumulativeFlowHeatPlant.vue +400 -400
  315. package/src/components/scada/CumulativeFlow/CumulativeFlowManage.vue +59 -59
  316. package/src/components/scada/CumulativeFlow/CumulativeFlowRegulatorStation.vue +504 -504
  317. package/src/components/scada/CumulativeFlow/CumulativeFlowStation.vue +248 -248
  318. package/src/components/scada/GasSupplyRunning/GasSupplyRunningByDay.vue +297 -297
  319. package/src/components/scada/InstantaneousFlow/InstantaneousFlowHeatPlant.vue +389 -389
  320. package/src/components/scada/InstantaneousFlow/InstantaneousFlowManage.vue +57 -57
  321. package/src/components/scada/InstantaneousFlow/InstantaneousFlowRegulatorStation.vue +503 -503
  322. package/src/components/scada/InstantaneousFlow/InstantaneousFlowStation.vue +244 -244
  323. package/src/components/scada/OnTimePressure/OnTimePressureHeatPlant.vue +356 -356
  324. package/src/components/scada/OnTimePressure/OnTimePressureManage.vue +51 -51
  325. package/src/components/scada/OnTimePressure/OnTimePressureRegulatorStation.vue +526 -526
  326. package/src/components/scada/ThreeDayContrast/ThreeDayContrastManage.vue +282 -282
  327. package/src/components/webmeter/DrillData/LargeScreenAnalysisEcharts.vue +710 -710
  328. package/src/components/webmeter/DrillData/LostContactAnalysis.vue +531 -531
  329. package/src/components/webmeter/DrillData/LostContactAnalysisManage.vue +30 -30
  330. package/src/components/webmeter/DrillData/LostContactEform.vue +190 -190
  331. package/src/components/webmeter/dataCollection/DataCollection.vue +676 -676
  332. package/src/components/webmeter/gasAnalysis/GasAnalysisEcharts.vue +144 -144
  333. package/src/components/webmeter/gasAnalysis/GasAnalysisSummary.vue +162 -162
  334. package/src/components/webmeter/handplan/NewWebMeterHandPlan.vue +745 -745
  335. package/src/components/webmeter/handplan/NewWebmeterHandPlanMain.vue +59 -59
  336. package/src/components/webmeter/indicatorStatisticsEchars.vue +204 -204
  337. package/src/components/webmeter/indicatorStatisticsMain.vue +257 -257
  338. package/src/components/webmeter/instruction/NewQueryInstruct.vue +440 -443
  339. package/src/components/webmeter/meterinfo/NewMeterList.vue +414 -414
  340. package/src/components/webmeter/meterinfo/NewMeterListMain.vue +53 -53
  341. package/src/components/webmeter/newwebmeter/NewException/NewExceptionEform.vue +149 -149
  342. package/src/components/webmeter/newwebmeter/NewException/NewExceptionEformTotal.vue +211 -211
  343. package/src/components/webmeter/newwebmeter/NewException/NewMeterException.vue +449 -449
  344. package/src/components/yulin/GuanWang.vue +24 -24
  345. package/src/components/yulin/SingleBarLine.vue +352 -352
  346. package/src/components/yulin/Weather.vue +157 -157
  347. package/src/expandcss.less +26 -26
  348. package/src/filiale/WEINAN/InspectListUser.vue +492 -492
  349. package/src/filiale/WEINAN/OtherChargeQuery.vue +521 -521
  350. package/src/filiale/aode/ArchivesManage.vue +38 -38
  351. package/src/filiale/aode/BusinessManage.vue +94 -94
  352. package/src/filiale/aode/DefaultPrint.js +6 -6
  353. package/src/filiale/aode/HandplanQuery.vue +632 -632
  354. package/src/filiale/aode/Tabs.vue +67 -67
  355. package/src/filiale/aode/UserQuery.vue +599 -599
  356. package/src/filiale/aode/sale.js +17 -17
  357. package/src/filiale/ceshi/ArrearsQuery.vue +642 -642
  358. package/src/filiale/ceshi/ChManageBusSummary.vue +293 -293
  359. package/src/filiale/ceshi/CollectManage.vue +94 -94
  360. package/src/filiale/ceshi/MeterRateQuery.vue +633 -633
  361. package/src/filiale/ceshi/TabButton.vue +149 -149
  362. package/src/filiale/ceshi/Tabs.vue +69 -69
  363. package/src/filiale/ceshi/reportManage.js +5 -5
  364. package/src/filiale/ceshi/sale.js +11 -11
  365. package/src/filiale/gaomi/config/DefaultPrint.js +6 -6
  366. package/src/filiale/gaomi/config/tableConfig.js +47 -47
  367. package/src/filiale/gongyi/sale/businessquery/exportConfig.js +17 -17
  368. package/src/filiale/gongyi/sale/filesquery/MeterQuery.vue +718 -718
  369. package/src/filiale/liaoyuan/sale.js +11 -11
  370. package/src/filiale/macheng/config/DefaultPrint.js +12 -12
  371. package/src/filiale/qingtongxia/config/DefaultPrint.js +6 -6
  372. package/src/filiale/qingtongxia/sale.js +13 -13
  373. package/src/filiale/shaoguan/HandplanQuery.vue +1314 -1314
  374. package/src/filiale/shaoguan/OtherChargeDetailQuery.vue +74 -74
  375. package/src/filiale/shaoguan/config/DefaultPrint.js +6 -6
  376. package/src/filiale/shaoguan/config/exportConfig.js +11 -0
  377. package/src/filiale/shaoguan/errorHandplanQuery.vue +385 -366
  378. package/src/filiale/shennongjia/config/DefaultPrint.js +6 -6
  379. package/src/filiale/shennongjia/config/tableConfig.js +47 -47
  380. package/src/filiale/shennongjia/sale.js +10 -10
  381. package/src/main.js +66 -66
  382. package/src/plugins/GetLoginInfoService.js +505 -505
  383. package/src/plugins/LodopFuncs.js +124 -124
  384. package/src/plugins/getAllInputtor.js +29 -29
  385. package/src/safeCheck.js +63 -63
  386. package/src/stores/AppData.js +62 -62
  387. package/src/stores/DataSql.js +585 -585
  388. package/src/stores/DrillECharts.js +602 -602
  389. package/src/stores/DrillSql.js +888 -888
  390. package/src/stores/GetParames.js +15 -15
  391. package/src/stores/MagGetSaleParams.js +156 -156
  392. package/src/stores/MagLoadParams.js +63 -63
  393. package/src/stores/Util.js +132 -132
  394. package/src/stores/shanxi1.js +26 -26
  395. package/src/stores/yulin.js +27 -27
  396. package/static/china.json +1 -1
  397. package/static/qh.json +2410 -2410
  398. package/static/res.json +58411 -58411
  399. package/static/shanxi1.json +1 -1
  400. package/static/yulin.json +1 -1
  401. package/static//345/261/261/344/270/234/347/234/201.json +1 -1
  402. package/test/unit/.eslintrc +5 -5
  403. package/test/unit/TestUtil.js +35 -35
  404. package/test/unit/context.html +20 -20
  405. package/test/unit/index.js +13 -13
  406. package/test/unit/init.js +11 -11
  407. package/test/unit/karma.conf.js +45 -45
  408. package/test/unit/specs/components/CallReport/Repair.spec.js +25 -25
  409. package/test/unit/specs/components/ManageBusiness/EquipmentQuery.spec.js +21 -21
  410. package/test/unit/specs/components/ManageBusiness/TableWithQuery.spec.js +21 -21
  411. package/test/unit/specs/components/ManageBusiness/UserQuery.spec.js +21 -21
  412. package/webstorm.config.js +13 -13
@@ -1,519 +1,519 @@
1
- <template>
2
- <div>
3
- <div class="label t1" @click="drillclick">{{title}}</div>
4
- <div style="height: 50%;width: 100%;padding: 2%;">
5
- <div id="usernum" class="d0"></div>
6
- <!--<div class="d1">-->
7
- <!--&lt;!&ndash;<div class="flex" style="height: 30%; text-align: center; padding-top: 5%;" v-for="item in model">&ndash;&gt;-->
8
- <!--&lt;!&ndash;<span class="f24">{{item.num}}</span>&ndash;&gt;-->
9
- <!--&lt;!&ndash;<span class="f12">{{item.name}}</span>&ndash;&gt;-->
10
- <!--&lt;!&ndash;</div>&ndash;&gt;-->
11
- <!--</div>-->
12
- </div>
13
- <div style="height: 49%; width: 100%;padding: 2%;">
14
- <div id="userdatatwo"></div>
15
- </div>
16
- </div>
17
- </template>
18
-
19
- <script>
20
- import co from 'co'
21
- import * as DataSql from '../../../stores/DataSql'
22
- import * as Util from '../../../stores/Util'
23
-
24
- export default {
25
- name: "user-number",
26
- props: {
27
- increaseuser: Number,
28
- listenheight: String,
29
- },
30
- data() {
31
- return {
32
- title: '用户数量',
33
- usernum: [],
34
- increaseuser: 0,
35
- totaluser: [
36
- {name: '现有总用户', value: 0},
37
- {name: '开发用户数', value: 0},
38
- {name: '潜在用户数', value: 0},
39
- ],
40
- totaluserstring: [
41
- {name: '现有总用户', value: 0},
42
- {name: '开发用户数', value: 0},
43
- {name: '潜在用户数', value: 0},
44
- ],
45
- barscale: [],
46
- usernumstring: [],
47
- usertag0: false,
48
- usertag5: false,
49
- resdata: [],
50
- resdataapply: [],
51
- }
52
- },
53
- methods: {
54
- //绘制echarts图
55
- setBar(id) {
56
- this.xc = this.$echarts.init(document.getElementById(id))
57
- this.BarScale()
58
- DataSql.dataunitarray(this, 'totaluser', 'totaluserstring')
59
- var echartsData = this.totaluserstring
60
- var scale = 0.8
61
- var warnImg = "../../../../static/ManageHomePic/椭圆4.png"
62
- var grade = ['图片', '图片', '图片']
63
- let cost = []
64
- var l = this.barscale.length
65
- for (var i = 0; i < l; i++) {
66
- cost[l - 1 - i] = this.barscale[i]
67
- }
68
- var data = {
69
- grade: grade,
70
- visits: this.totaluser,
71
- totalCost: [1, 1, 1],
72
- cost: cost,
73
- }
74
- var rich = {
75
- yellow: {
76
- align: 'center',
77
- color: '#f3c832',
78
- padding: [3, 0],
79
- fontSize: 16 * scale
80
- },
81
- white: {
82
- align: 'center',
83
- color: '#fff',
84
- fontSize: 12 * scale
85
- },
86
- }
87
- this.xc.setOption({
88
- title: {
89
- text: '',
90
- x: 'left',
91
- y: 'top',
92
- textStyle: {
93
- color: '#fff',
94
- fontSize: 20
95
- }
96
- },
97
- grid: {left: '16%', top: "12%", bottom: "5%", right: "30%", containLabel: true},
98
- xAxis: {
99
- show: false,
100
- },
101
- yAxis: {
102
- type: 'category',
103
- axisLabel: {
104
- formatter: function (value) {
105
- //判断是否要显示预警
106
- return '{warnValue|}'
107
- },
108
- rich: {
109
- //这里的rich,下面有解释
110
- warnValue: {
111
- //这里的warnValue对应上面的标签名
112
- height: 20,
113
- align: 'center',
114
- backgroundColor: {
115
- image: warnImg //这个warnImg是上面定义的图片var warnImg = "img/warn.png";
116
- }
117
- }
118
- },
119
- margin: 10,
120
- show: true,
121
- color: '#15dce2',
122
- fontSize: 12
123
- },
124
- axisTick: {
125
- show: false,
126
- },
127
- axisLine: {
128
- show: false,
129
- },
130
- data: data.grade
131
- },
132
- series: [{
133
- type: 'bar',
134
- barGap: '-100%',
135
- label: {
136
- normal: {
137
- show: true,
138
- position: 'right',
139
- formatter: function (param) {
140
-
141
- var l = data.visits.length
142
- return '{yellow|' + echartsData[l - 1 - param.dataIndex]['value'] + '}\n{white|' + echartsData[l - 1 - param.dataIndex]['name'] + '}';
143
- },
144
- rich: rich,
145
- }
146
- },
147
- barWidth: '20%',
148
- itemStyle: {
149
- normal: {
150
- borderColor: 'rgba(1,207,242,0.05)',
151
- borderWidth: 2,
152
- barBorderRadius: 15,
153
- color: '#003d4c',
154
- },
155
- },
156
- z: 1,
157
- data: data.totalCost,
158
- }, {
159
- type: 'bar',
160
- barGap: '-99%',
161
- barWidth: '20%',
162
- itemStyle: {
163
- normal: {
164
- barBorderRadius: 12,
165
- color: {
166
- type: 'linear',
167
- x: 0,
168
- x1: 1,
169
- colorStops: [{
170
- offset: 0,
171
- color: '#02ddff'
172
- }, {
173
- offset: 1,
174
- color: '#00feff'
175
- }]
176
- }
177
- },
178
- },
179
- max: 1,
180
- labelLine: {
181
- show: true,
182
- },
183
- z: 2,
184
- data: data.cost,
185
- }]
186
- }, true)
187
- },
188
- //绘制用户类型分布饼图
189
- setUserType() {
190
- this.xc = this.$echarts.init(document.getElementById('userdatatwo'))
191
- var scale = 0.8
192
- DataSql.dataunitarray(this, 'usernum', 'usernumstring')
193
- var echartData = this.usernum
194
- var echartData1 = this.usernumstring
195
- var legendname = []
196
- this.usernum.forEach(function (s) {
197
- legendname.push(s.name)
198
- })
199
- var rich = {
200
- blue: {
201
- color: '#15dce2',
202
- fontSize: 12 * scale,
203
- align: 'center',
204
- padding: [10, 0]
205
- }
206
- }
207
- var scale = 0.8
208
- var total = 0; //用户总和
209
- var result = ''
210
- echartData.forEach(function (value) {
211
- total += value.value;
212
- });
213
- var index = total.toString().length
214
- if (index > 4) {
215
- var t = total.toString().substring(0, index - 4)
216
- var s = total.toString().substring(index - 4, index - 3)
217
- var l = total.toString().substring(index - 3, index - 2)
218
- if (l > 4) {
219
- s = eval(s + '+1')
220
- }
221
- if (s > 9) {
222
- s = 0
223
- t = eval(t + '+1')
224
- }
225
- result = t + '.' + s + '万'
226
- } else {
227
- result = value
228
- }
229
- this.xc.setOption({
230
- title: [
231
- {
232
- text: '总用户数',
233
- x: '42%',
234
- y: '22%',
235
- textStyle: {
236
- color: '#ffffff',
237
- fontSize: 12 * scale,
238
- }
239
- },
240
- {
241
- text: result,
242
- x: '38%',
243
- y: '27%',
244
- padding: [15, 20],
245
- textStyle: {
246
- color: '#00e2ea',
247
- fontSize: 12 * scale,
248
-
249
- }
250
- }],
251
- legend: {
252
- orient: 'horizontal',
253
- icon: 'circle',
254
- x: 'center',
255
- y: '70%',
256
- itemWidth: 20 * scale,
257
- itemHeight: 10 * scale,
258
- textStyle: {
259
- fontSize: 12 * scale,
260
- padding: [0, 0, 0, 4],
261
- color: '#ffffff'
262
- },
263
- data: legendname
264
- },
265
- series: [
266
- {
267
- name: 'Line 1',
268
- type: 'pie',
269
- animation: false,
270
- clockWise: false,
271
- radius: ['25%', '26%'],
272
- center: ['50%', '30%'],
273
- itemStyle: {
274
- normal: {
275
- label: {
276
- show: false
277
- },
278
- labelLine: {
279
- show: false
280
- },
281
- }
282
- },
283
- hoverAnimation: false,
284
- tooltip: {
285
- trigger: 'axis'
286
- },
287
- data: [{
288
- value: 100,
289
- name: '02',
290
- itemStyle: {
291
- normal: {
292
- color: '#29b7ff',//未完成的圆环的颜色
293
- label: {
294
- show: false
295
- },
296
- labelLine: {
297
- show: false
298
- }
299
- }
300
- }
301
- }]
302
- },
303
- {
304
- name: '总用户数',
305
- type: 'pie',
306
- radius: ['30%', '40%'],
307
- center: ['50%', '30%'],
308
- hoverAnimation: false,
309
- color: ['#6fd9d0', '#ede61f', '#6d9bdc'],
310
- minAngle: 15,//最小角度
311
- startAngle: 60, //起始角度
312
- label: {
313
- normal: {
314
- borderWidth: 20 * scale,
315
- borderRadius: 4,
316
- formatter: function (params, ticket, callback) {
317
- for (var i = 0; i < echartData1.length; i++) {
318
- if (echartData1[i].name == params.name) {
319
- return '{blue|' + params.name + '}{blue|' + echartData1[i].value + '}\n';
320
- }
321
- }
322
- },
323
- padding: [0, -102 * scale],
324
- rich: rich,
325
- }
326
- },
327
-
328
- labelLine: {
329
- normal: {
330
- length: 15 * scale,
331
- length2: 100 * scale,
332
- lineStyle: {
333
- formatter: function (params, ticket, callback) {
334
- var total = 0; //用户总数量
335
- var percent = 0; //用户占比
336
- echartData.forEach(function (value, index, array) {
337
- total += value.value;
338
- });
339
- percent = ((params.value / total) * 100).toFixed(1);
340
- return '{white| ' + params.name + '}\n{hr|}\n{yellow| ' + params.value + '}\n{blue| ' + percent + '%}';
341
- },
342
- }
343
- }
344
- },
345
- data: echartData
346
- }, {
347
- name: 'Line 2',
348
- type: 'pie',
349
- animation: false,
350
- clockWise: false,
351
- radius: ['44%', '45%'],
352
- center: ['50%', '30%'],
353
- itemStyle: {
354
- normal: {label: {show: false}, labelLine: {show: false},}
355
- },
356
- hoverAnimation: false,
357
- tooltip: {
358
- show: false
359
- },
360
- data: [{
361
- value: 100,
362
- name: '02',
363
- itemStyle: {
364
- normal: {color: '#29b7ff', label: {show: false}, labelLine: {show: false}}
365
- }
366
- }]
367
- }]
368
- }, true)
369
- },
370
- //请求后台数据
371
- searchdata() {
372
- var self = this
373
- let sqldata = DataSql.getData(this, 'usernum',{}, "resdata")
374
- co(sqldata)
375
- let sqldataone = DataSql.getData(this,'userapply',{}, 'resdataapply')
376
- co(sqldataone)
377
- },
378
- // 用户数据比例化
379
- BarScale() {
380
- var s = this.totaluser[0]
381
- for (var i = 1; i < this.totaluser.length; i++) {
382
- if (s.value < this.totaluser[i].value) {
383
- s = this.totaluser[i]
384
- }
385
- }
386
- var l = s.value * 1.3
387
- this.barscale = []
388
- for (var i = 0; i < this.totaluser.length; i++) {
389
- if (l == 0) {
390
- this.barscale.push(0)
391
- }
392
- this.barscale.push(this.totaluser[i].value / l)
393
- }
394
- },
395
- // 三级页面点击入口
396
- drillclick() {
397
- var initdatatr = {
398
- startDate: eval(Util.toStandardDateString().toString().substring(0, 4) + '-4') + '-01-01 00:00:00',
399
- endDate: Util.toStandardDateString() + ' 00:00:00',
400
- param: '',
401
- param1: '',
402
- listparam: '',
403
- }
404
- this.$emit('drill', 'usernum', 'usernumbers', this.title, initdatatr)
405
- this.$emit('drilldata', this.totaluser)
406
- },
407
- },
408
- watch: {
409
- 'resdata': {
410
- deep: true,
411
- handler(val) {
412
- this.usernum = []
413
- let result = {}
414
- result.name = '民用'
415
- result.value = this.resdata[0]['民用']
416
- this.usernum.push(result)
417
- let result1 = {}
418
- result1.name = '非民用'
419
- result1.value = this.resdata[0]['非民用']
420
- this.usernum.push(result1)
421
- let result2 = {}
422
- result2.name = '民用锅炉'
423
- result2.value = this.resdata[0]['民用锅炉']
424
- this.usernum.push(result2)
425
- }
426
- },
427
- // 监听用户数据并进行绘图
428
- 'usernum': {
429
- deep: true,
430
- handler(val) {
431
- var value = this.usernum[0].value + this.usernum[1].value + this.usernum[2].value
432
- this.totaluser[0].value = value
433
- this.setUserType()
434
- this.$parent.loaddata++
435
- }
436
- },
437
- //监听用户增长模块的数据,更新计算潜在用户数
438
- 'increaseuser': {
439
- deep: true,
440
- handler(val) {
441
- console.log(this.increaseuser, '潜在用户数据')
442
- this.totaluser[2].value = this.increaseuser
443
- },
444
- immediate: true
445
- },
446
- // 监听用户数据并进行绘图
447
- 'totaluser': {
448
- deep: true,
449
- handler(val) {
450
- if (this.totaluser[0].value > 0 && this.totaluser[1].value > 0 && this.totaluser[2].value > 0) {
451
-
452
- this.setBar('usernum')
453
-
454
- this.$parent.loaddata++
455
- }
456
- },
457
- },
458
- //监听浏览器大小变化
459
- 'listenheight': {
460
- deep: true,
461
- handler(val) {
462
- if (this.listenheight !== '') {
463
- // this.$parent.$parent.changeresize(this.xc)
464
- }
465
- },
466
- },
467
- 'resdataapply': {
468
- deep: true,
469
- handler(val) {
470
- if (this.resdataapply[0].totalnum > 0) {
471
- this.totaluser[1].value = this.resdataapply[0].totalnum
472
- }
473
-
474
- console.log(this.resdataapply, '报建数据')
475
-
476
- }
477
- }
478
- },
479
- ready() {
480
- this.searchdata()
481
- }
482
- }
483
- </script>
484
-
485
- <style scoped>
486
- .label {
487
- margin-left: 1%;
488
- font-size: 0.85em;
489
- color: #fff;
490
- width: 100%;
491
- height: 9%;
492
- }
493
-
494
- .d1 {
495
- margin-top: 10%;
496
- width: 30%;
497
- height: 80%;
498
- float: right;
499
- }
500
-
501
- .d0 {
502
- width: 100%;
503
- height: 100%;
504
- float: left;
505
- }
506
-
507
- .f24 {
508
- font-size: 0.85em;
509
- color: #f3c832;
510
- }
511
-
512
- .f12 {
513
- font-size: 0.85em;
514
- color: #ffffff;
515
- }
516
- .t1{
517
- color: #4bf2ff;
518
- }
519
- </style>
1
+ <template>
2
+ <div>
3
+ <div class="label t1" @click="drillclick">{{title}}</div>
4
+ <div style="height: 50%;width: 100%;padding: 2%;">
5
+ <div id="usernum" class="d0"></div>
6
+ <!--<div class="d1">-->
7
+ <!--&lt;!&ndash;<div class="flex" style="height: 30%; text-align: center; padding-top: 5%;" v-for="item in model">&ndash;&gt;-->
8
+ <!--&lt;!&ndash;<span class="f24">{{item.num}}</span>&ndash;&gt;-->
9
+ <!--&lt;!&ndash;<span class="f12">{{item.name}}</span>&ndash;&gt;-->
10
+ <!--&lt;!&ndash;</div>&ndash;&gt;-->
11
+ <!--</div>-->
12
+ </div>
13
+ <div style="height: 49%; width: 100%;padding: 2%;">
14
+ <div id="userdatatwo"></div>
15
+ </div>
16
+ </div>
17
+ </template>
18
+
19
+ <script>
20
+ import co from 'co'
21
+ import * as DataSql from '../../../stores/DataSql'
22
+ import * as Util from '../../../stores/Util'
23
+
24
+ export default {
25
+ name: "user-number",
26
+ props: {
27
+ increaseuser: Number,
28
+ listenheight: String,
29
+ },
30
+ data() {
31
+ return {
32
+ title: '用户数量',
33
+ usernum: [],
34
+ increaseuser: 0,
35
+ totaluser: [
36
+ {name: '现有总用户', value: 0},
37
+ {name: '开发用户数', value: 0},
38
+ {name: '潜在用户数', value: 0},
39
+ ],
40
+ totaluserstring: [
41
+ {name: '现有总用户', value: 0},
42
+ {name: '开发用户数', value: 0},
43
+ {name: '潜在用户数', value: 0},
44
+ ],
45
+ barscale: [],
46
+ usernumstring: [],
47
+ usertag0: false,
48
+ usertag5: false,
49
+ resdata: [],
50
+ resdataapply: [],
51
+ }
52
+ },
53
+ methods: {
54
+ //绘制echarts图
55
+ setBar(id) {
56
+ this.xc = this.$echarts.init(document.getElementById(id))
57
+ this.BarScale()
58
+ DataSql.dataunitarray(this, 'totaluser', 'totaluserstring')
59
+ var echartsData = this.totaluserstring
60
+ var scale = 0.8
61
+ var warnImg = "../../../../static/ManageHomePic/椭圆4.png"
62
+ var grade = ['图片', '图片', '图片']
63
+ let cost = []
64
+ var l = this.barscale.length
65
+ for (var i = 0; i < l; i++) {
66
+ cost[l - 1 - i] = this.barscale[i]
67
+ }
68
+ var data = {
69
+ grade: grade,
70
+ visits: this.totaluser,
71
+ totalCost: [1, 1, 1],
72
+ cost: cost,
73
+ }
74
+ var rich = {
75
+ yellow: {
76
+ align: 'center',
77
+ color: '#f3c832',
78
+ padding: [3, 0],
79
+ fontSize: 16 * scale
80
+ },
81
+ white: {
82
+ align: 'center',
83
+ color: '#fff',
84
+ fontSize: 12 * scale
85
+ },
86
+ }
87
+ this.xc.setOption({
88
+ title: {
89
+ text: '',
90
+ x: 'left',
91
+ y: 'top',
92
+ textStyle: {
93
+ color: '#fff',
94
+ fontSize: 20
95
+ }
96
+ },
97
+ grid: {left: '16%', top: "12%", bottom: "5%", right: "30%", containLabel: true},
98
+ xAxis: {
99
+ show: false,
100
+ },
101
+ yAxis: {
102
+ type: 'category',
103
+ axisLabel: {
104
+ formatter: function (value) {
105
+ //判断是否要显示预警
106
+ return '{warnValue|}'
107
+ },
108
+ rich: {
109
+ //这里的rich,下面有解释
110
+ warnValue: {
111
+ //这里的warnValue对应上面的标签名
112
+ height: 20,
113
+ align: 'center',
114
+ backgroundColor: {
115
+ image: warnImg //这个warnImg是上面定义的图片var warnImg = "img/warn.png";
116
+ }
117
+ }
118
+ },
119
+ margin: 10,
120
+ show: true,
121
+ color: '#15dce2',
122
+ fontSize: 12
123
+ },
124
+ axisTick: {
125
+ show: false,
126
+ },
127
+ axisLine: {
128
+ show: false,
129
+ },
130
+ data: data.grade
131
+ },
132
+ series: [{
133
+ type: 'bar',
134
+ barGap: '-100%',
135
+ label: {
136
+ normal: {
137
+ show: true,
138
+ position: 'right',
139
+ formatter: function (param) {
140
+
141
+ var l = data.visits.length
142
+ return '{yellow|' + echartsData[l - 1 - param.dataIndex]['value'] + '}\n{white|' + echartsData[l - 1 - param.dataIndex]['name'] + '}';
143
+ },
144
+ rich: rich,
145
+ }
146
+ },
147
+ barWidth: '20%',
148
+ itemStyle: {
149
+ normal: {
150
+ borderColor: 'rgba(1,207,242,0.05)',
151
+ borderWidth: 2,
152
+ barBorderRadius: 15,
153
+ color: '#003d4c',
154
+ },
155
+ },
156
+ z: 1,
157
+ data: data.totalCost,
158
+ }, {
159
+ type: 'bar',
160
+ barGap: '-99%',
161
+ barWidth: '20%',
162
+ itemStyle: {
163
+ normal: {
164
+ barBorderRadius: 12,
165
+ color: {
166
+ type: 'linear',
167
+ x: 0,
168
+ x1: 1,
169
+ colorStops: [{
170
+ offset: 0,
171
+ color: '#02ddff'
172
+ }, {
173
+ offset: 1,
174
+ color: '#00feff'
175
+ }]
176
+ }
177
+ },
178
+ },
179
+ max: 1,
180
+ labelLine: {
181
+ show: true,
182
+ },
183
+ z: 2,
184
+ data: data.cost,
185
+ }]
186
+ }, true)
187
+ },
188
+ //绘制用户类型分布饼图
189
+ setUserType() {
190
+ this.xc = this.$echarts.init(document.getElementById('userdatatwo'))
191
+ var scale = 0.8
192
+ DataSql.dataunitarray(this, 'usernum', 'usernumstring')
193
+ var echartData = this.usernum
194
+ var echartData1 = this.usernumstring
195
+ var legendname = []
196
+ this.usernum.forEach(function (s) {
197
+ legendname.push(s.name)
198
+ })
199
+ var rich = {
200
+ blue: {
201
+ color: '#15dce2',
202
+ fontSize: 12 * scale,
203
+ align: 'center',
204
+ padding: [10, 0]
205
+ }
206
+ }
207
+ var scale = 0.8
208
+ var total = 0; //用户总和
209
+ var result = ''
210
+ echartData.forEach(function (value) {
211
+ total += value.value;
212
+ });
213
+ var index = total.toString().length
214
+ if (index > 4) {
215
+ var t = total.toString().substring(0, index - 4)
216
+ var s = total.toString().substring(index - 4, index - 3)
217
+ var l = total.toString().substring(index - 3, index - 2)
218
+ if (l > 4) {
219
+ s = eval(s + '+1')
220
+ }
221
+ if (s > 9) {
222
+ s = 0
223
+ t = eval(t + '+1')
224
+ }
225
+ result = t + '.' + s + '万'
226
+ } else {
227
+ result = value
228
+ }
229
+ this.xc.setOption({
230
+ title: [
231
+ {
232
+ text: '总用户数',
233
+ x: '42%',
234
+ y: '22%',
235
+ textStyle: {
236
+ color: '#ffffff',
237
+ fontSize: 12 * scale,
238
+ }
239
+ },
240
+ {
241
+ text: result,
242
+ x: '38%',
243
+ y: '27%',
244
+ padding: [15, 20],
245
+ textStyle: {
246
+ color: '#00e2ea',
247
+ fontSize: 12 * scale,
248
+
249
+ }
250
+ }],
251
+ legend: {
252
+ orient: 'horizontal',
253
+ icon: 'circle',
254
+ x: 'center',
255
+ y: '70%',
256
+ itemWidth: 20 * scale,
257
+ itemHeight: 10 * scale,
258
+ textStyle: {
259
+ fontSize: 12 * scale,
260
+ padding: [0, 0, 0, 4],
261
+ color: '#ffffff'
262
+ },
263
+ data: legendname
264
+ },
265
+ series: [
266
+ {
267
+ name: 'Line 1',
268
+ type: 'pie',
269
+ animation: false,
270
+ clockWise: false,
271
+ radius: ['25%', '26%'],
272
+ center: ['50%', '30%'],
273
+ itemStyle: {
274
+ normal: {
275
+ label: {
276
+ show: false
277
+ },
278
+ labelLine: {
279
+ show: false
280
+ },
281
+ }
282
+ },
283
+ hoverAnimation: false,
284
+ tooltip: {
285
+ trigger: 'axis'
286
+ },
287
+ data: [{
288
+ value: 100,
289
+ name: '02',
290
+ itemStyle: {
291
+ normal: {
292
+ color: '#29b7ff',//未完成的圆环的颜色
293
+ label: {
294
+ show: false
295
+ },
296
+ labelLine: {
297
+ show: false
298
+ }
299
+ }
300
+ }
301
+ }]
302
+ },
303
+ {
304
+ name: '总用户数',
305
+ type: 'pie',
306
+ radius: ['30%', '40%'],
307
+ center: ['50%', '30%'],
308
+ hoverAnimation: false,
309
+ color: ['#6fd9d0', '#ede61f', '#6d9bdc'],
310
+ minAngle: 15,//最小角度
311
+ startAngle: 60, //起始角度
312
+ label: {
313
+ normal: {
314
+ borderWidth: 20 * scale,
315
+ borderRadius: 4,
316
+ formatter: function (params, ticket, callback) {
317
+ for (var i = 0; i < echartData1.length; i++) {
318
+ if (echartData1[i].name == params.name) {
319
+ return '{blue|' + params.name + '}{blue|' + echartData1[i].value + '}\n';
320
+ }
321
+ }
322
+ },
323
+ padding: [0, -102 * scale],
324
+ rich: rich,
325
+ }
326
+ },
327
+
328
+ labelLine: {
329
+ normal: {
330
+ length: 15 * scale,
331
+ length2: 100 * scale,
332
+ lineStyle: {
333
+ formatter: function (params, ticket, callback) {
334
+ var total = 0; //用户总数量
335
+ var percent = 0; //用户占比
336
+ echartData.forEach(function (value, index, array) {
337
+ total += value.value;
338
+ });
339
+ percent = ((params.value / total) * 100).toFixed(1);
340
+ return '{white| ' + params.name + '}\n{hr|}\n{yellow| ' + params.value + '}\n{blue| ' + percent + '%}';
341
+ },
342
+ }
343
+ }
344
+ },
345
+ data: echartData
346
+ }, {
347
+ name: 'Line 2',
348
+ type: 'pie',
349
+ animation: false,
350
+ clockWise: false,
351
+ radius: ['44%', '45%'],
352
+ center: ['50%', '30%'],
353
+ itemStyle: {
354
+ normal: {label: {show: false}, labelLine: {show: false},}
355
+ },
356
+ hoverAnimation: false,
357
+ tooltip: {
358
+ show: false
359
+ },
360
+ data: [{
361
+ value: 100,
362
+ name: '02',
363
+ itemStyle: {
364
+ normal: {color: '#29b7ff', label: {show: false}, labelLine: {show: false}}
365
+ }
366
+ }]
367
+ }]
368
+ }, true)
369
+ },
370
+ //请求后台数据
371
+ searchdata() {
372
+ var self = this
373
+ let sqldata = DataSql.getData(this, 'usernum',{}, "resdata")
374
+ co(sqldata)
375
+ let sqldataone = DataSql.getData(this,'userapply',{}, 'resdataapply')
376
+ co(sqldataone)
377
+ },
378
+ // 用户数据比例化
379
+ BarScale() {
380
+ var s = this.totaluser[0]
381
+ for (var i = 1; i < this.totaluser.length; i++) {
382
+ if (s.value < this.totaluser[i].value) {
383
+ s = this.totaluser[i]
384
+ }
385
+ }
386
+ var l = s.value * 1.3
387
+ this.barscale = []
388
+ for (var i = 0; i < this.totaluser.length; i++) {
389
+ if (l == 0) {
390
+ this.barscale.push(0)
391
+ }
392
+ this.barscale.push(this.totaluser[i].value / l)
393
+ }
394
+ },
395
+ // 三级页面点击入口
396
+ drillclick() {
397
+ var initdatatr = {
398
+ startDate: eval(Util.toStandardDateString().toString().substring(0, 4) + '-4') + '-01-01 00:00:00',
399
+ endDate: Util.toStandardDateString() + ' 00:00:00',
400
+ param: '',
401
+ param1: '',
402
+ listparam: '',
403
+ }
404
+ this.$emit('drill', 'usernum', 'usernumbers', this.title, initdatatr)
405
+ this.$emit('drilldata', this.totaluser)
406
+ },
407
+ },
408
+ watch: {
409
+ 'resdata': {
410
+ deep: true,
411
+ handler(val) {
412
+ this.usernum = []
413
+ let result = {}
414
+ result.name = '民用'
415
+ result.value = this.resdata[0]['民用']
416
+ this.usernum.push(result)
417
+ let result1 = {}
418
+ result1.name = '非民用'
419
+ result1.value = this.resdata[0]['非民用']
420
+ this.usernum.push(result1)
421
+ let result2 = {}
422
+ result2.name = '民用锅炉'
423
+ result2.value = this.resdata[0]['民用锅炉']
424
+ this.usernum.push(result2)
425
+ }
426
+ },
427
+ // 监听用户数据并进行绘图
428
+ 'usernum': {
429
+ deep: true,
430
+ handler(val) {
431
+ var value = this.usernum[0].value + this.usernum[1].value + this.usernum[2].value
432
+ this.totaluser[0].value = value
433
+ this.setUserType()
434
+ this.$parent.loaddata++
435
+ }
436
+ },
437
+ //监听用户增长模块的数据,更新计算潜在用户数
438
+ 'increaseuser': {
439
+ deep: true,
440
+ handler(val) {
441
+ console.log(this.increaseuser, '潜在用户数据')
442
+ this.totaluser[2].value = this.increaseuser
443
+ },
444
+ immediate: true
445
+ },
446
+ // 监听用户数据并进行绘图
447
+ 'totaluser': {
448
+ deep: true,
449
+ handler(val) {
450
+ if (this.totaluser[0].value > 0 && this.totaluser[1].value > 0 && this.totaluser[2].value > 0) {
451
+
452
+ this.setBar('usernum')
453
+
454
+ this.$parent.loaddata++
455
+ }
456
+ },
457
+ },
458
+ //监听浏览器大小变化
459
+ 'listenheight': {
460
+ deep: true,
461
+ handler(val) {
462
+ if (this.listenheight !== '') {
463
+ // this.$parent.$parent.changeresize(this.xc)
464
+ }
465
+ },
466
+ },
467
+ 'resdataapply': {
468
+ deep: true,
469
+ handler(val) {
470
+ if (this.resdataapply[0].totalnum > 0) {
471
+ this.totaluser[1].value = this.resdataapply[0].totalnum
472
+ }
473
+
474
+ console.log(this.resdataapply, '报建数据')
475
+
476
+ }
477
+ }
478
+ },
479
+ ready() {
480
+ this.searchdata()
481
+ }
482
+ }
483
+ </script>
484
+
485
+ <style scoped>
486
+ .label {
487
+ margin-left: 1%;
488
+ font-size: 0.85em;
489
+ color: #fff;
490
+ width: 100%;
491
+ height: 9%;
492
+ }
493
+
494
+ .d1 {
495
+ margin-top: 10%;
496
+ width: 30%;
497
+ height: 80%;
498
+ float: right;
499
+ }
500
+
501
+ .d0 {
502
+ width: 100%;
503
+ height: 100%;
504
+ float: left;
505
+ }
506
+
507
+ .f24 {
508
+ font-size: 0.85em;
509
+ color: #f3c832;
510
+ }
511
+
512
+ .f12 {
513
+ font-size: 0.85em;
514
+ color: #ffffff;
515
+ }
516
+ .t1{
517
+ color: #4bf2ff;
518
+ }
519
+ </style>