manage-client 3.1.32 → 3.1.36

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 (523) 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 +174 -181
  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/App.vue +28 -29
  25. package/src/ManageHome.js +269 -269
  26. package/src/Staff/StaffCompileList.vue +334 -334
  27. package/src/Staff/StaffList.vue +161 -161
  28. package/src/Staff/StaffListManage.vue +49 -49
  29. package/src/Util.js +367 -367
  30. package/src/components/BasisEcharts/LineChart.vue +243 -243
  31. package/src/components/BasisEcharts/RingChart.vue +196 -196
  32. package/src/components/ManageHome/CustomerService/ContentmentStatistics.vue +135 -135
  33. package/src/components/ManageHome/CustomerService/ExcepCollect.vue +174 -174
  34. package/src/components/ManageHome/CustomerService/ReasonComplaint.vue +116 -116
  35. package/src/components/ManageHome/CustomerService/ReasonConsultation.vue +115 -115
  36. package/src/components/ManageHome/CustomerService/ServiceFix.vue +155 -155
  37. package/src/components/ManageHome/CustomerService/ServiceHome.vue +179 -179
  38. package/src/components/ManageHome/CustomerService/ServiceStatistics.vue +147 -147
  39. package/src/components/ManageHome/CustomerService/TrafficStatistics.vue +160 -160
  40. package/src/components/ManageHome/Drill/DrillData.vue +791 -791
  41. package/src/components/ManageHome/Drill/DrillList.vue +320 -320
  42. package/src/components/ManageHome/Drill/DrillPool.vue +129 -129
  43. package/src/components/ManageHome/Home/CallCenter.vue +124 -124
  44. package/src/components/ManageHome/Home/CallFix.vue +172 -172
  45. package/src/components/ManageHome/Home/CallStatistics.vue +147 -147
  46. package/src/components/ManageHome/Home/GasValue.vue +233 -233
  47. package/src/components/ManageHome/Home/Home.vue +138 -138
  48. package/src/components/ManageHome/Home/Monitor.vue +329 -329
  49. package/src/components/ManageHome/Home/NetWork.vue +202 -202
  50. package/src/components/ManageHome/Home/SafeCheck.vue +249 -249
  51. package/src/components/ManageHome/Home/UserModule.vue +367 -367
  52. package/src/components/ManageHome/ImportSupplygas/AddSupply.vue +206 -206
  53. package/src/components/ManageHome/ImportSupplygas/SuppleManagement.vue +43 -43
  54. package/src/components/ManageHome/ImportSupplygas/SupplySelect.vue +85 -85
  55. package/src/components/ManageHome/ImportSupplygas/UpdateSupply.vue +187 -187
  56. package/src/components/ManageHome/ManageHome.vue +292 -292
  57. package/src/components/ManageHome/Monitor/BuySub.vue +311 -311
  58. package/src/components/ManageHome/Monitor/Caveat.vue +300 -300
  59. package/src/components/ManageHome/Monitor/ComparedGas.vue +264 -264
  60. package/src/components/ManageHome/Monitor/MeterBrand.vue +211 -211
  61. package/src/components/ManageHome/Monitor/MonitorCenter.vue +132 -132
  62. package/src/components/ManageHome/Monitor/MonitorHome.vue +188 -188
  63. package/src/components/ManageHome/Monitor/NoBuyGas.vue +223 -223
  64. package/src/components/ManageHome/Monitor/NoContact.vue +233 -233
  65. package/src/components/ManageHome/Monitor/NoGas.vue +202 -202
  66. package/src/components/ManageHome/NetWork/LineInspection.vue +267 -267
  67. package/src/components/ManageHome/NetWork/NetDanger.vue +258 -258
  68. package/src/components/ManageHome/NetWork/NetHome.vue +84 -84
  69. package/src/components/ManageHome/NetWork/SupplyGas.vue +204 -204
  70. package/src/components/ManageHome/SecurityCheck/CheckHome.vue +94 -94
  71. package/src/components/ManageHome/SecurityCheck/CustomerType.vue +244 -244
  72. package/src/components/ManageHome/SecurityCheck/LatentDanger.vue +218 -218
  73. package/src/components/ManageHome/SecurityCheck/PlanStatistics.vue +231 -231
  74. package/src/components/ManageHome/SecurityCheck/StateStatistics.vue +237 -237
  75. package/src/components/ManageHome/SecurityCheck/TaskStatistics.vue +303 -303
  76. package/src/components/ManageHome/User/GasDistri.vue +271 -271
  77. package/src/components/ManageHome/User/InspecDistri.vue +272 -272
  78. package/src/components/ManageHome/User/SaleProportion.vue +309 -309
  79. package/src/components/ManageHome/User/UseHome.vue +155 -155
  80. package/src/components/ManageHome/User/UserGascontrast.vue +223 -223
  81. package/src/components/ManageHome/User/UserNumber.vue +519 -519
  82. package/src/components/ManageHome/User/UsernumIncrease.vue +243 -243
  83. package/src/components/ManageHome/loading.vue +23 -23
  84. package/src/components/ManageHomeCS/Cockpit.vue +43 -43
  85. package/src/components/ManageHomeCS/CustomerService/ContentmentStatistics.vue +161 -161
  86. package/src/components/ManageHomeCS/CustomerService/ExcepCollect.vue +201 -201
  87. package/src/components/ManageHomeCS/CustomerService/ReasonComplaint.vue +146 -146
  88. package/src/components/ManageHomeCS/CustomerService/ReasonConsultation.vue +148 -148
  89. package/src/components/ManageHomeCS/CustomerService/ServiceFix.vue +242 -242
  90. package/src/components/ManageHomeCS/CustomerService/ServiceHome.vue +176 -176
  91. package/src/components/ManageHomeCS/CustomerService/ServiceStatistics.vue +277 -277
  92. package/src/components/ManageHomeCS/CustomerService/TrafficStatistics.vue +226 -226
  93. package/src/components/ManageHomeCS/Drill/DrillData.vue +918 -918
  94. package/src/components/ManageHomeCS/Drill/DrillList.vue +320 -320
  95. package/src/components/ManageHomeCS/Drill/DrillPool.vue +129 -129
  96. package/src/components/ManageHomeCS/Home/CallCenter.vue +206 -206
  97. package/src/components/ManageHomeCS/Home/CallFix.vue +172 -172
  98. package/src/components/ManageHomeCS/Home/CallStatistics.vue +147 -147
  99. package/src/components/ManageHomeCS/Home/GasValue.vue +466 -466
  100. package/src/components/ManageHomeCS/Home/Home.vue +57 -57
  101. package/src/components/ManageHomeCS/Home/Monitor.vue +423 -423
  102. package/src/components/ManageHomeCS/Home/NetWork.vue +223 -223
  103. package/src/components/ManageHomeCS/Home/SafeCheck.vue +446 -446
  104. package/src/components/ManageHomeCS/Home/ShanxiMap.vue +432 -432
  105. package/src/components/ManageHomeCS/Home/UserModule.vue +511 -511
  106. package/src/components/ManageHomeCS/Home/YulinMap.vue +424 -424
  107. package/src/components/ManageHomeCS/ImportSupplygas/AddSupply.vue +206 -206
  108. package/src/components/ManageHomeCS/ImportSupplygas/SuppleManagement.vue +43 -43
  109. package/src/components/ManageHomeCS/ImportSupplygas/SupplySelect.vue +85 -85
  110. package/src/components/ManageHomeCS/ImportSupplygas/UpdateSupply.vue +187 -187
  111. package/src/components/ManageHomeCS/Monitor/BuySub.vue +339 -339
  112. package/src/components/ManageHomeCS/Monitor/Caveat.vue +301 -301
  113. package/src/components/ManageHomeCS/Monitor/ComparedGas.vue +276 -276
  114. package/src/components/ManageHomeCS/Monitor/MeterBrand.vue +220 -220
  115. package/src/components/ManageHomeCS/Monitor/MonitorCenter.vue +139 -139
  116. package/src/components/ManageHomeCS/Monitor/MonitorHome.vue +188 -188
  117. package/src/components/ManageHomeCS/Monitor/NoBuyGas.vue +218 -218
  118. package/src/components/ManageHomeCS/Monitor/NoContact.vue +217 -217
  119. package/src/components/ManageHomeCS/Monitor/NoGas.vue +214 -214
  120. package/src/components/ManageHomeCS/NetWork/LineInspection.vue +268 -268
  121. package/src/components/ManageHomeCS/NetWork/NetDanger.vue +258 -258
  122. package/src/components/ManageHomeCS/NetWork/NetHome.vue +106 -106
  123. package/src/components/ManageHomeCS/NetWork/NetWork.vue +222 -222
  124. package/src/components/ManageHomeCS/NetWork/NetWorkMap.vue +86 -86
  125. package/src/components/ManageHomeCS/NetWork/SupplyGas.vue +291 -291
  126. package/src/components/ManageHomeCS/NewHome/GasProperties.vue +314 -314
  127. package/src/components/ManageHomeCS/NewHome/NewManageHome.vue +182 -182
  128. package/src/components/ManageHomeCS/NewHome/TextBusiness.vue +267 -267
  129. package/src/components/ManageHomeCS/NewHome/TextChildsellgas.vue +209 -209
  130. package/src/components/ManageHomeCS/NewHome/TextProfit.vue +298 -298
  131. package/src/components/ManageHomeCS/NewHome/TextSellgas.vue +82 -82
  132. package/src/components/ManageHomeCS/NewHome/TextShanximap.vue +389 -389
  133. package/src/components/ManageHomeCS/NewHome/TextTotalsellgas.vue +406 -406
  134. package/src/components/ManageHomeCS/NewHome/TextUser.vue +378 -378
  135. package/src/components/ManageHomeCS/NewHome/yulin.vue +425 -425
  136. package/src/components/ManageHomeCS/Poor/PoorHome.vue +176 -176
  137. package/src/components/ManageHomeCS/SecurityCheck/CheckHome.vue +94 -94
  138. package/src/components/ManageHomeCS/SecurityCheck/CustomerType.vue +246 -246
  139. package/src/components/ManageHomeCS/SecurityCheck/LatentDanger.vue +220 -220
  140. package/src/components/ManageHomeCS/SecurityCheck/PlanStatistics.vue +306 -306
  141. package/src/components/ManageHomeCS/SecurityCheck/StateStatistics.vue +239 -239
  142. package/src/components/ManageHomeCS/SecurityCheck/TaskStatistics.vue +311 -311
  143. package/src/components/ManageHomeCS/User/FMYInspecDistri.vue +269 -269
  144. package/src/components/ManageHomeCS/User/GasDistri.vue +220 -220
  145. package/src/components/ManageHomeCS/User/MYInspecDistri.vue +269 -269
  146. package/src/components/ManageHomeCS/User/SaleProportion.vue +384 -384
  147. package/src/components/ManageHomeCS/User/UseHome.vue +162 -162
  148. package/src/components/ManageHomeCS/User/UserGascontrast.vue +221 -221
  149. package/src/components/ManageHomeCS/User/UserNumber.vue +600 -600
  150. package/src/components/ManageHomeCS/User/UsernumIncrease.vue +277 -277
  151. package/src/components/ManageHomeCS/loading.vue +39 -39
  152. package/src/components/ManageHomeCS/test.vue +88 -88
  153. package/src/components/MeterManage/ChangeMeterQuery.vue +82 -82
  154. package/src/components/MeterManage/ChargeQuery.vue +79 -79
  155. package/src/components/MeterManage/FillCardQuery.vue +80 -80
  156. package/src/components/MeterManage/FillGasQuery.vue +80 -80
  157. package/src/components/MeterManage/HandQuery.vue +72 -72
  158. package/src/components/MeterManage/MeterInfoManage.vue +107 -107
  159. package/src/components/MeterManage/MeterList.vue +336 -336
  160. package/src/components/MeterManage/MeterMsg.vue +181 -181
  161. package/src/components/MeterManage/OtherChargeQuery.vue +78 -78
  162. package/src/components/MeterManage/ReversalQuery.vue +77 -77
  163. package/src/components/MeterManage/TransferQuery.vue +72 -72
  164. package/src/components/SellReport/AmountGas.vue +257 -257
  165. package/src/components/SellReport/BankManager.vue +146 -146
  166. package/src/components/SellReport/BonSummary.vue +244 -244
  167. package/src/components/SellReport/BusinessClassify.vue +251 -251
  168. package/src/components/SellReport/BusinessMoneyReport.vue +268 -268
  169. package/src/components/SellReport/BusinessReport.vue +256 -256
  170. package/src/components/SellReport/CaiManageDayGas.vue +280 -280
  171. package/src/components/SellReport/ChManageBusSummary.vue +273 -273
  172. package/src/components/SellReport/ChManageHandSellMoney.vue +274 -274
  173. package/src/components/SellReport/ChManageMonthGas.vue +285 -285
  174. package/src/components/SellReport/ChOtherfee.vue +251 -251
  175. package/src/components/SellReport/ChSellReport.vue +251 -251
  176. package/src/components/SellReport/ChargeDayTable.vue +258 -258
  177. package/src/components/SellReport/ChargeMonthTable.vue +257 -257
  178. package/src/components/SellReport/ChargePrick.vue +279 -279
  179. package/src/components/SellReport/ChargeYearTable.vue +252 -252
  180. package/src/components/SellReport/CollectFee.vue +184 -184
  181. package/src/components/SellReport/Contrast.vue +188 -188
  182. package/src/components/SellReport/DayStairMoney.vue +256 -256
  183. package/src/components/SellReport/DepartmentPrick.vue +261 -262
  184. package/src/components/SellReport/DeptHomePage.vue +299 -299
  185. package/src/components/SellReport/FenxiangSell.vue +183 -183
  186. package/src/components/SellReport/FinanceSellType.vue +254 -0
  187. package/src/components/SellReport/FxGasTable.vue +220 -220
  188. package/src/components/SellReport/GasBaozhuangFee.vue +237 -237
  189. package/src/components/SellReport/GasCollect.vue +174 -174
  190. package/src/components/SellReport/GasMeterBrand.vue +228 -228
  191. package/src/components/SellReport/GasPrice.vue +244 -244
  192. package/src/components/SellReport/GasPriceGroup.vue +228 -228
  193. package/src/components/SellReport/GasSummary.vue +257 -257
  194. package/src/components/SellReport/Gasc.vue +257 -257
  195. package/src/components/SellReport/GaspriceHas.vue +141 -141
  196. package/src/components/SellReport/GetUserNum.vue +240 -240
  197. package/src/components/SellReport/HandCollect.vue +189 -189
  198. package/src/components/SellReport/HandplanBili.vue +241 -241
  199. package/src/components/SellReport/HandplanUserCount.vue +227 -227
  200. package/src/components/SellReport/JinChengBusSummary.vue +182 -182
  201. package/src/components/SellReport/JinChengHandGas.vue +182 -182
  202. package/src/components/SellReport/JinChengOperSummary.vue +182 -182
  203. package/src/components/SellReport/JinChengSliceSumgas.vue +182 -182
  204. package/src/components/SellReport/ManageBusSummary.vue +25 -16
  205. package/src/components/SellReport/ManageBusTable.vue +207 -207
  206. package/src/components/SellReport/ManageGasFee.vue +247 -247
  207. package/src/components/SellReport/ManageGasFeeOperator.vue +236 -236
  208. package/src/components/SellReport/ManageGasPrice.vue +241 -241
  209. package/src/components/SellReport/ManageGasSumChangeTwo.vue +271 -271
  210. package/src/components/SellReport/ManageGasSumOtherCharge.vue +244 -244
  211. package/src/components/SellReport/ManageHandInputtor.vue +281 -281
  212. package/src/components/SellReport/ManageHandSellInputtor.vue +241 -241
  213. package/src/components/SellReport/ManageMonthGas.vue +249 -249
  214. package/src/components/SellReport/ManageNewGasPrice.vue +245 -245
  215. package/src/components/SellReport/ManageOtherCharge.vue +1 -1
  216. package/src/components/SellReport/ManageReceivable.vue +254 -254
  217. package/src/components/SellReport/ManageSellType.vue +284 -284
  218. package/src/components/SellReport/ManageUserCollect.vue +183 -183
  219. package/src/components/SellReport/ManageUserCount.vue +347 -347
  220. package/src/components/SellReport/MarketMonth.vue +251 -251
  221. package/src/components/SellReport/MeterBill.vue +185 -185
  222. package/src/components/SellReport/MeterGasMoney.vue +226 -226
  223. package/src/components/SellReport/MeterInput.vue +250 -250
  224. package/src/components/SellReport/MeterPrice.vue +244 -244
  225. package/src/components/SellReport/MeterReader.vue +231 -231
  226. package/src/components/SellReport/MonthStairMoney.vue +256 -256
  227. package/src/components/SellReport/OperatorSellReport.vue +268 -268
  228. package/src/components/SellReport/OutletTable.vue +258 -258
  229. package/src/components/SellReport/OweAging.vue +174 -174
  230. package/src/components/SellReport/PaymentDistribute.vue +228 -228
  231. package/src/components/SellReport/PaymentMethod.vue +274 -274
  232. package/src/components/SellReport/QibiaoShouqi.vue +282 -282
  233. package/src/components/SellReport/ReportHistory.vue +80 -80
  234. package/src/components/SellReport/ReportPool.vue +60 -60
  235. package/src/components/SellReport/SaleMonthReport.vue +1 -1
  236. package/src/components/SellReport/Selling.vue +188 -188
  237. package/src/components/SellReport/SellingTable.vue +220 -220
  238. package/src/components/SellReport/SiteManager.vue +147 -147
  239. package/src/components/SellReport/UserClassify.vue +251 -251
  240. package/src/components/SellReport/UserSellingGas.vue +251 -251
  241. package/src/components/SellReport/UserStateStatistics.vue +188 -188
  242. package/src/components/SellReport/UsertypePie.vue +101 -101
  243. package/src/components/SellReport/WeiNanYuShou.vue +246 -246
  244. package/src/components/SellReport/XianYangDate.vue +227 -227
  245. package/src/components/SellReport/XianYangOperator.vue +228 -228
  246. package/src/components/SellReport/XyDateCharge.vue +227 -227
  247. package/src/components/SellReport/XyOperatorCharge.vue +256 -256
  248. package/src/components/SellReport/YuShouTable.vue +298 -298
  249. package/src/components/SellReport/YuShouTableTwo.vue +309 -309
  250. package/src/components/SellReport/chargeSchedule.vue +410 -410
  251. package/src/components/SellReport/jingwei/CardCharge.vue +142 -142
  252. package/src/components/SellReport/jingwei/MachineCharge.vue +141 -141
  253. package/src/components/SellReport/jingwei/PaymentNotice.vue +479 -479
  254. package/src/components/SellReport/jingwei/handplanReport.vue +280 -280
  255. package/src/components/SellReport/jingwei/widegt/PaymentNoticePrint.vue +198 -198
  256. package/src/components/SellReport/jingwei/widegt/handplanPrint.vue +143 -143
  257. package/src/components/SellReport/pengan/ManageBusPeng.vue +280 -280
  258. package/src/components/SellReport/pengan/ManageBusSummaryPeng.vue +241 -241
  259. package/src/components/SellReport/userholds.vue +257 -257
  260. package/src/components/WebReport/AbnormalInfo.vue +197 -197
  261. package/src/components/WebReport/AbnormalInfoEcharts.vue +120 -120
  262. package/src/components/WebReport/BatteryLow.vue +148 -148
  263. package/src/components/WebReport/BusinessHall.vue +85 -85
  264. package/src/components/WebReport/BussinessType.vue +137 -137
  265. package/src/components/WebReport/Communication.vue +131 -131
  266. package/src/components/WebReport/CompanyUser.vue +79 -79
  267. package/src/components/WebReport/EchartsBox.vue +110 -110
  268. package/src/components/WebReport/ElectroMagnetic.vue +142 -142
  269. package/src/components/WebReport/GaspriceHas.vue +141 -141
  270. package/src/components/WebReport/HandplanPrint.vue +167 -167
  271. package/src/components/WebReport/NotUpload.vue +165 -165
  272. package/src/components/WebReport/OweQuery.vue +169 -169
  273. package/src/components/WebReport/PaymentDistributed.vue +176 -176
  274. package/src/components/WebReport/Paymentpie.vue +157 -157
  275. package/src/components/WebReport/ReportWorklist.vue +220 -220
  276. package/src/components/WebReport/SellType.vue +89 -89
  277. package/src/components/WebReport/Telemanlist.vue +221 -221
  278. package/src/components/WebReport/UserGasAll.vue +214 -214
  279. package/src/components/WebReport/UserGasEcharts.vue +107 -107
  280. package/src/components/WebReport/UsertypePie.vue +105 -105
  281. package/src/components/WebReport/ValueEcharts.vue +99 -99
  282. package/src/components/WebReport/ValueInfo.vue +194 -194
  283. package/src/components/daping/CallCenter.vue +366 -366
  284. package/src/components/daping/DataManagement.vue +537 -548
  285. package/src/components/daping/GMap.vue +636 -636
  286. package/src/components/daping/ManageMain.vue +270 -267
  287. package/src/components/daping/NetWork.vue +238 -238
  288. package/src/components/daping/RedactDaPing.vue +468 -454
  289. package/src/components/daping/Ring.vue +212 -212
  290. package/src/components/daping/SafeCheck.vue +446 -446
  291. package/src/components/daping/SafeCheckRing.vue +166 -166
  292. package/src/components/daping/SafecheckBarChart.vue +233 -233
  293. package/src/components/daping/WuHaiMap.vue +418 -418
  294. package/src/components/qinhua/BarChart.vue +256 -256
  295. package/src/components/qinhua/BarChartLine.vue +288 -288
  296. package/src/components/qinhua/ManageMain.vue +162 -162
  297. package/src/components/qinhua/Pie.vue +132 -132
  298. package/src/components/qinhua/Ring.vue +165 -165
  299. package/src/components/qinhua/SafeCheckRing.vue +149 -149
  300. package/src/components/qinhua/SafecheckBarChart.vue +209 -209
  301. package/src/components/qinhua/Scada.vue +93 -93
  302. package/src/components/qinhua/SellEcharts.vue +115 -115
  303. package/src/components/qinhua/qinHuaMap.vue +414 -414
  304. package/src/components/safecheck/analysis/SafeHiddenAnaly.vue +932 -932
  305. package/src/components/safecheck/planCheck/chanceSituation.vue +149 -149
  306. package/src/components/safecheck/planCheck/checkFamily.vue +217 -217
  307. package/src/components/safecheck/planCheck/hidderDanger.vue +179 -179
  308. package/src/components/safecheck/planCheck/inFamily.vue +185 -185
  309. package/src/components/sale/businessquery/AccountQuery/TransactionSummary.vue +373 -373
  310. package/src/components/sale/businessquery/BalanceQuery.vue +456 -456
  311. package/src/components/sale/businessquery/BusinessManage.vue +3 -0
  312. package/src/components/sale/businessquery/ChangeMeterQuery.vue +15 -5
  313. package/src/components/sale/businessquery/CollectManage.vue +135 -135
  314. package/src/components/sale/businessquery/FMYGasQuery.vue +713 -713
  315. package/src/components/sale/businessquery/FillGasQuery.vue +35 -1
  316. package/src/components/sale/businessquery/InfoOperateRecord.vue +291 -0
  317. package/src/components/sale/businessquery/InspectManage.vue +47 -47
  318. package/src/components/sale/businessquery/MonthGasQuery.vue +467 -467
  319. package/src/components/sale/businessquery/NewAccountQuery.vue +409 -409
  320. package/src/components/sale/businessquery/OtherChargeDetailQuery.vue +74 -74
  321. package/src/components/sale/businessquery/OtherChargeQuery.vue +619 -619
  322. package/src/components/sale/businessquery/ProceedsOper.vue +377 -377
  323. package/src/components/sale/businessquery/ResourceOperatingQuery.vue +317 -317
  324. package/src/components/sale/businessquery/TongjiManage.vue +74 -74
  325. package/src/components/sale/businessquery/UserTongjiQuery.vue +358 -358
  326. package/src/components/sale/businessquery/YearGasQuery.vue +422 -422
  327. package/src/components/sale/businessquery/YingShouMingXi.vue +525 -525
  328. package/src/components/sale/businessquery/analysisquery/AnalysisManage.vue +65 -65
  329. package/src/components/sale/businessquery/weChatBind.vue +361 -361
  330. package/src/components/sale/common/PrintData.vue +171 -171
  331. package/src/components/sale/common/PrintDataSelf.vue +225 -225
  332. package/src/components/sale/common/PrintTable.vue +228 -228
  333. package/src/components/sale/common/PrintTableSelf.vue +251 -251
  334. package/src/components/sale/common/TabButton.vue +155 -155
  335. package/src/components/sale/common/Tabs.vue +67 -67
  336. package/src/components/sale/common/handplanUser.vue +112 -112
  337. package/src/components/sale/config/DefaultPrint.js +6 -6
  338. package/src/components/sale/config/exportConfig.js +1 -1
  339. package/src/components/sale/config/tableConfig.js +48 -48
  340. package/src/components/sale/filesquery/detail/UserBaseInfo.vue +69 -69
  341. package/src/components/sale/filesquery/detail/UserDetail.vue +41 -41
  342. package/src/components/sale/filesquery/detail/UserOperInfo.vue +76 -76
  343. package/src/components/sale/filesquery/detail/oper/ChangeMessage.vue +46 -46
  344. package/src/components/sale/filesquery/detail/oper/ExchangeOper.vue +66 -66
  345. package/src/components/sale/filesquery/detail/oper/HandOper.vue +46 -46
  346. package/src/components/sale/filesquery/detail/oper/HandleMessage.vue +46 -46
  347. package/src/components/sale/filesquery/detail/oper/OtherCharge.vue +54 -54
  348. package/src/components/sale/filesquery/detail/oper/ReplaceCard.vue +51 -51
  349. package/src/components/sale/filesquery/detail/oper/SellOper.vue +56 -56
  350. package/src/components/sale/filesquery/detail/oper/TransferMessage.vue +55 -55
  351. package/src/components/sale/filesquery/filequerydetail/BlackListQueryDetail.vue +219 -219
  352. package/src/components/sale/filesquery/filequerydetail/ChangeMeterQueryDetail.vue +246 -246
  353. package/src/components/sale/filesquery/filequerydetail/ChargeQueryDetail.vue +239 -239
  354. package/src/components/sale/filesquery/filequerydetail/DeviceQueryDetail.vue +126 -126
  355. package/src/components/sale/filesquery/filequerydetail/DisableQueryDetail.vue +272 -272
  356. package/src/components/sale/filesquery/filequerydetail/EnableQueryDetail.vue +274 -274
  357. package/src/components/sale/filesquery/filequerydetail/FillCardQueryDetail.vue +80 -80
  358. package/src/components/sale/filesquery/filequerydetail/FillGasQueryDetail.vue +80 -80
  359. package/src/components/sale/filesquery/filequerydetail/HandQueryDetail.vue +302 -302
  360. package/src/components/sale/filesquery/filequerydetail/MeterQueryDetail.vue +158 -158
  361. package/src/components/sale/filesquery/filequerydetail/OtherChargeQueryDetail.vue +198 -198
  362. package/src/components/sale/filesquery/filequerydetail/RecordQueryDetail.vue +125 -125
  363. package/src/components/sale/filesquery/filequerydetail/SellingHandDetail.vue +280 -280
  364. package/src/components/sale/filesquery/filequerydetail/TransferQueryDetail.vue +160 -160
  365. package/src/components/sale/filesquery/filequerydetail/UserQueryDetail.vue +155 -155
  366. package/src/components/sale/report/aode/DayReport.vue +50 -50
  367. package/src/components/sale/report/aode/DayReportSummary.vue +75 -75
  368. package/src/components/sale/report/aode/MonthByChargeType.vue +446 -446
  369. package/src/components/sale/report/aode/MonthByUserType.vue +413 -413
  370. package/src/components/sale/report/aode/YearByChargeTpye.vue +215 -215
  371. package/src/components/sale/report/aode/YearByUserType.vue +272 -272
  372. package/src/components/sale/report/aode/life/LifeDayReport.vue +50 -50
  373. package/src/components/sale/report/aode/life/LifeDayReportList.vue +241 -241
  374. package/src/components/sale/report/aode/life/LifeDayReportSummary.vue +49 -49
  375. package/src/components/sale/report/aode/life/LifeMonthReport.vue +303 -303
  376. package/src/components/sale/report/aode/life/LifeYearReport.vue +175 -175
  377. package/src/components/sale/report/aode/widget/LifeDayReportListPrint.vue +189 -189
  378. package/src/components/sale/report/aode/widget/LifeMonthPrint.vue +153 -153
  379. package/src/components/sale/report/aode/widget/LifeYearPrint.vue +143 -143
  380. package/src/components/sale/report/aode/widget/MonthByChargePrint.vue +236 -236
  381. package/src/components/sale/report/aode/widget/MonthByUserPrint.vue +232 -232
  382. package/src/components/sale/report/aode/widget/YearByChargePrint.vue +203 -203
  383. package/src/components/sale/report/aode/widget/YearByUserPrint.vue +225 -225
  384. package/src/components/scada/CaculateGasConsumputionByDay/CaculateGasConsumputionByDay.vue +290 -290
  385. package/src/components/scada/ChartDisplay/ChartDisplayManage.vue +55 -55
  386. package/src/components/scada/ChartDisplay/ChartThreeDayContrast.vue +164 -164
  387. package/src/components/scada/CumulativeFlow/CumulativeFlowHeatPlant.vue +400 -400
  388. package/src/components/scada/CumulativeFlow/CumulativeFlowManage.vue +59 -59
  389. package/src/components/scada/CumulativeFlow/CumulativeFlowRegulatorStation.vue +504 -504
  390. package/src/components/scada/CumulativeFlow/CumulativeFlowStation.vue +248 -248
  391. package/src/components/scada/GasSupplyRunning/GasSupplyRunningByDay.vue +297 -297
  392. package/src/components/scada/InstantaneousFlow/InstantaneousFlowHeatPlant.vue +389 -389
  393. package/src/components/scada/InstantaneousFlow/InstantaneousFlowManage.vue +57 -57
  394. package/src/components/scada/InstantaneousFlow/InstantaneousFlowRegulatorStation.vue +503 -503
  395. package/src/components/scada/InstantaneousFlow/InstantaneousFlowStation.vue +244 -244
  396. package/src/components/scada/OnTimePressure/OnTimePressureHeatPlant.vue +356 -356
  397. package/src/components/scada/OnTimePressure/OnTimePressureManage.vue +51 -51
  398. package/src/components/scada/OnTimePressure/OnTimePressureRegulatorStation.vue +526 -526
  399. package/src/components/scada/ThreeDayContrast/ThreeDayContrastManage.vue +282 -282
  400. package/src/components/statistical/StatisticalAnalysis.vue +247 -247
  401. package/src/components/webmeter/DrillData/LargeScreenAnalysisEcharts.vue +710 -710
  402. package/src/components/webmeter/DrillData/LostContactAnalysis.vue +531 -531
  403. package/src/components/webmeter/DrillData/LostContactAnalysisList.vue +633 -633
  404. package/src/components/webmeter/DrillData/LostContactAnalysisManage.vue +30 -30
  405. package/src/components/webmeter/DrillData/LostContactEcharts.vue +177 -177
  406. package/src/components/webmeter/DrillData/LostContactEform.vue +190 -190
  407. package/src/components/webmeter/DrillData/UserGasAll.vue +596 -596
  408. package/src/components/webmeter/DrillData/UserGasEcharts.vue +210 -210
  409. package/src/components/webmeter/DrillData/UserGasEform.vue +227 -227
  410. package/src/components/webmeter/DrillData/UserLostContactAnalysis.vue +585 -585
  411. package/src/components/webmeter/dataCollection/DataCollection.vue +676 -676
  412. package/src/components/webmeter/gasAnalysis/GasAnalysisEcharts.vue +144 -144
  413. package/src/components/webmeter/gasAnalysis/GasAnalysisSummary.vue +162 -162
  414. package/src/components/webmeter/handplan/NewWebMeterHandPlan.vue +745 -745
  415. package/src/components/webmeter/handplan/NewWebmeterHandPlanMain.vue +59 -59
  416. package/src/components/webmeter/indicatorStatisticsEchars.vue +204 -204
  417. package/src/components/webmeter/indicatorStatisticsMain.vue +257 -257
  418. package/src/components/webmeter/instruction/NewQueryInstruct.vue +52 -3
  419. package/src/components/webmeter/meterinfo/NewMeterList.vue +414 -414
  420. package/src/components/webmeter/meterinfo/NewMeterListMain.vue +53 -53
  421. package/src/components/webmeter/newwebmeter/NewException/NewContactEcharts.vue +170 -170
  422. package/src/components/webmeter/newwebmeter/NewException/NewEchartsAll.vue +111 -111
  423. package/src/components/webmeter/newwebmeter/NewException/NewExceptionEcharsTotal.vue +899 -899
  424. package/src/components/webmeter/newwebmeter/NewException/NewExceptionEform.vue +149 -149
  425. package/src/components/webmeter/newwebmeter/NewException/NewExceptionEformTotal.vue +211 -211
  426. package/src/components/webmeter/newwebmeter/NewException/NewGasEcharts.vue +209 -209
  427. package/src/components/webmeter/newwebmeter/NewException/NewHandplanEcharts.vue +238 -238
  428. package/src/components/webmeter/newwebmeter/NewException/NewInstructEcharts.vue +266 -266
  429. package/src/components/webmeter/newwebmeter/NewException/NewMeterException.vue +449 -449
  430. package/src/components/webmeter/newwebmeter/NewException/TotalExceptionByMeter.vue +606 -606
  431. package/src/components/webmeter/newwebmeter/UserGasEchartsList.vue +252 -252
  432. package/src/components/webmeter/newwebmeter/UserGasList.vue +440 -440
  433. package/src/components/webmeter/newwebmeter/UserInstructEchartsList.vue +286 -286
  434. package/src/components/webmeter/newwebmeter/UserInstructList.vue +332 -332
  435. package/src/components/webmeter/newwebmeter/signAnalysisEcharts.vue +266 -266
  436. package/src/components/webmeter/newwebmeter/signAnalysisEform.vue +175 -175
  437. package/src/components/webmeter/newwebmeter/signAnalysisListMain.vue +387 -387
  438. package/src/components/yulin/GuanWang.vue +24 -24
  439. package/src/components/yulin/SingleBarLine.vue +352 -352
  440. package/src/components/yulin/Weather.vue +157 -157
  441. package/src/expandcss.less +26 -26
  442. package/src/filiale/WEINAN/InspectListUser.vue +492 -492
  443. package/src/filiale/WEINAN/OtherChargeQuery.vue +521 -521
  444. package/src/filiale/alashan/SellingTable.vue +234 -231
  445. package/src/filiale/alashan/reportManage.js +10 -10
  446. package/src/filiale/aode/ArchivesManage.vue +38 -38
  447. package/src/filiale/aode/BusinessManage.vue +94 -94
  448. package/src/filiale/aode/DefaultPrint.js +6 -6
  449. package/src/filiale/aode/HandplanQuery.vue +632 -632
  450. package/src/filiale/aode/Tabs.vue +67 -67
  451. package/src/filiale/aode/UserQuery.vue +599 -599
  452. package/src/filiale/aode/sale.js +17 -17
  453. package/src/filiale/ceshi/ArrearsQuery.vue +642 -642
  454. package/src/filiale/ceshi/ChManageBusSummary.vue +293 -293
  455. package/src/filiale/ceshi/CollectManage.vue +94 -94
  456. package/src/filiale/ceshi/MeterRateQuery.vue +633 -633
  457. package/src/filiale/ceshi/TabButton.vue +149 -149
  458. package/src/filiale/ceshi/Tabs.vue +69 -69
  459. package/src/filiale/ceshi/reportManage.js +5 -5
  460. package/src/filiale/ceshi/sale.js +11 -11
  461. package/src/filiale/gaomi/config/DefaultPrint.js +6 -6
  462. package/src/filiale/gaomi/config/tableConfig.js +47 -47
  463. package/src/filiale/gongyi/sale/businessquery/exportConfig.js +17 -17
  464. package/src/filiale/gongyi/sale/filesquery/MeterQuery.vue +718 -718
  465. package/src/filiale/jingzhou/ChargeQuery.vue +1243 -1243
  466. package/src/filiale/jingzhou/config/exportConfig.js +861 -861
  467. package/src/filiale/liaoyuan/sale.js +11 -11
  468. package/src/filiale/macheng/config/DefaultPrint.js +12 -12
  469. package/src/filiale/meihekou/UserGasEform.vue +267 -267
  470. package/src/filiale/meihekou/sale.js +26 -26
  471. package/src/filiale/qingtongxia/config/DefaultPrint.js +6 -6
  472. package/src/filiale/qingtongxia/sale.js +13 -13
  473. package/src/filiale/rongcheng/exportConfig.js +257 -257
  474. package/src/filiale/rongchuang/SellingTable.vue +250 -250
  475. package/src/filiale/rongchuang/reportManage.js +11 -11
  476. package/src/filiale/shaoguan/OtherChargeDetailQuery.vue +74 -74
  477. package/src/filiale/shaoguan/config/DefaultPrint.js +6 -6
  478. package/src/filiale/shaoguan/config/exportConfig.js +433 -433
  479. package/src/filiale/shennongjia/config/DefaultPrint.js +6 -6
  480. package/src/filiale/shennongjia/config/tableConfig.js +47 -47
  481. package/src/filiale/shennongjia/sale.js +10 -10
  482. package/src/filiale/tongchuan/FillGasQuery.vue +508 -0
  483. package/src/filiale/tongchuan/ResSelectGroupNew.vue +176 -176
  484. package/src/filiale/tongchuan/ResSelectNew.vue +144 -144
  485. package/src/filiale/tongchuan/sale.js +13 -12
  486. package/src/main.js +1 -1
  487. package/src/newmanage.js +525 -525
  488. package/src/plugins/GetLoginInfoService.js +505 -505
  489. package/src/plugins/LodopFuncs.js +124 -124
  490. package/src/plugins/getAllInputtor.js +29 -29
  491. package/src/reportManage.js +462 -458
  492. package/src/safeCheck.js +63 -63
  493. package/src/saleManage.js +2 -0
  494. package/src/stores/AppData.js +62 -62
  495. package/src/stores/DataSql.js +585 -585
  496. package/src/stores/DrillECharts.js +602 -602
  497. package/src/stores/DrillSql.js +888 -888
  498. package/src/stores/GetParames.js +15 -15
  499. package/src/stores/MagGetSaleParams.js +156 -156
  500. package/src/stores/MagLoadParams.js +63 -63
  501. package/src/stores/Util.js +132 -132
  502. package/src/stores/shanxi1.js +26 -26
  503. package/src/stores/yulin.js +27 -27
  504. package/src/webmeterManage.js +105 -105
  505. package/static/china.json +1 -1
  506. package/static/qh.json +2410 -2410
  507. package/static/res.json +58411 -58411
  508. package/static/shanxi1.json +1 -1
  509. package/static/wuhai.json +1610 -1610
  510. package/static/yulin.json +1 -1
  511. package/static//345/261/261/344/270/234/347/234/201.json +1 -1
  512. package/test/unit/.eslintrc +5 -5
  513. package/test/unit/TestUtil.js +35 -35
  514. package/test/unit/context.html +20 -20
  515. package/test/unit/index.js +13 -13
  516. package/test/unit/init.js +11 -11
  517. package/test/unit/karma.conf.js +45 -45
  518. package/test/unit/specs/components/CallReport/Repair.spec.js +25 -25
  519. package/test/unit/specs/components/ManageBusiness/EquipmentQuery.spec.js +21 -21
  520. package/test/unit/specs/components/ManageBusiness/TableWithQuery.spec.js +21 -21
  521. package/test/unit/specs/components/ManageBusiness/UserQuery.spec.js +21 -21
  522. package/webstorm.config.js +13 -13
  523. package/src/components/sale/businessquery/NewHandplanQuery.vue +0 -995
@@ -1,899 +1,899 @@
1
- <template lang="html">
2
-
3
- <div class="basic-main">
4
- <div style="height: 40px;width: 100%;" v-show="echarts">
5
- <div style="display: inline-block;">
6
- <button @click="$parent.notShowEcharts()" class="button_clear button_spacing">隐藏图表</button>
7
- </div>
8
- <!--图显示模板-->
9
- <div class="mystyle" style="display: inline-block;">
10
- <label class="font_normal_body">图表统计项</label>
11
- <v-select :options='$parent.getgroupname' :value.sync="groupname"
12
- close-on-select
13
- id="groupname"
14
- placeholder='分组项'
15
- v-model="groupname"
16
- value-single="true"></v-select>
17
- </div>
18
- </div>
19
- <div id="charts" style=" height: 98%;width: 98%;padding: 1% 1%;">
20
- <div id="exception" style=" height: 600px;width: 800px;padding: 1% 1%;min-width:98%;min-height: 98%"></div>
21
- </div>
22
- </div>
23
- </template>
24
-
25
- <script>
26
- import * as Util from '../../../../Util'
27
- import co from 'co'
28
- import {HttpResetClass} from 'vue-client'
29
-
30
- let getData = function* (self, condition) {
31
- console.log('异常分析图表分析')
32
- console.log('异常分析图表分析数据', self)
33
- let load = new HttpResetClass()
34
- load.load('POST', 'rs/sql/DrillErrorEchars',
35
- {data: {condition: condition, groupname: self.groupname[0], startDate: self.startdate, endDate: self.enddate}},
36
- {resolveMsg: null, rejectMsg: null}).then((res) => {
37
- console.log('开始进行图表重新选渲染', res)
38
- let all = res.data
39
- let f_error_type = Array.from(new Set(all.map(x => x.f_error_type)))
40
- console.log('f_error_type去重后', f_error_type)
41
- let f_insert_date = Array.from(new Set(all.map(x => x.f_insert_date)))
42
- console.log('f_insert_date去重后', f_insert_date)
43
- let type = []
44
- let data = []
45
- f_error_type.forEach((item,index) => {
46
- console.log(index);
47
- let R = Math.floor(Math.random() * 255)
48
- let G = Math.floor(Math.random() * 255)
49
- let B = Math.floor(Math.random() * 255)
50
- let r = Math.floor(Math.random() * 255)
51
- let g = Math.floor(Math.random() * 255)
52
- let b = Math.floor(Math.random() * 255)
53
- type.push(
54
- {
55
- name: item,
56
- icon: 'circle',
57
- textStyle: {
58
- color: 'rgb(' + R + ',' + G + ',' + B + ')',
59
- fontSize: 20
60
- }
61
- },
62
- {
63
- name: item + '比率',
64
- icon: 'circle',
65
- textStyle: {
66
- color: 'rgb(' + r + ',' + g + ',' + b + ')',
67
- fontSize: 20
68
- }
69
- }
70
- )
71
- let ls = []
72
- let lsbv = []
73
- f_insert_date.forEach((r) =>{
74
- let sum = all.filter(x => x.f_error_type == item && x.f_insert_date == r).map(x => x.num).reduce((x, y) => x + y, 0)
75
- let datesum = all.filter(x => x.f_insert_date == r).map(x => x.num).reduce((x, y) => x + y, 0)
76
- console.log('sum------>', sum)
77
- console.log('sum------>', datesum)
78
- ls.push(sum)
79
- lsbv.push(((sum/datesum)*100).toFixed(2))
80
- })
81
- data.push(
82
- {
83
- name: item,
84
- nameTextStyle: {
85
- fontSize: 15
86
- },
87
- type: 'bar',
88
- data: ls,
89
- markPoint: {
90
- data: [
91
- {type: 'max', name: '最大值'},
92
- {type: 'min', name: '最小值'}
93
- ]
94
- },
95
- markLine: {
96
- data: [
97
- {type: 'average', name: '平均值'}
98
- ]
99
- },
100
- barWidth: 'auto',
101
- itemStyle: {
102
- normal: {
103
- color: 'rgb(' + R + ',' + G + ',' + B + ')'
104
- }
105
- },
106
- barGap: '0'
107
- },
108
- {
109
- name: item + '比率',
110
- type: 'line',
111
- data: lsbv,
112
- yAxisIndex: 1,
113
- itemStyle: {
114
- normal: {
115
- color: 'rgb(' + r + ',' + g + ',' + b + ')',
116
- fontSize: 10
117
- }
118
- },
119
- smooth: true
120
- }
121
- )
122
- console.log('ls---->', ls)
123
- console.log('lsbv---->', lsbv)
124
- })
125
-
126
- console.log('组织后的type数据', type)
127
- console.log('组织后的data数据', data)
128
- console.log('组织后的f_insert_date数据', f_insert_date)
129
- self.set(type, data, f_insert_date)
130
- // let name = []
131
- // let type1 = []
132
- // let type1_lv = []
133
- // let type2 = []
134
- // let type2_lv = []
135
- // let type3 = []
136
- // let type3_lv = []
137
- // let type4 = []
138
- // let type4_lv = []
139
- // let type5 = []
140
- // let type5_lv = []
141
- // let type6 = []
142
- // let type6_lv = []
143
- // let type7 = []
144
- // let type7_lv = []
145
- // let type8 = []
146
- // let type8_lv = []
147
- // let type9 = []
148
- // let type9_lv = []
149
- // for (var i = 0; i < res.data.length; i++) {
150
- // name[i] = res.data[i].f_insert_date
151
- // type1[i] = res.data[i].type1
152
- // type1_lv[i] = res.data[i].type1_lv
153
- // type2[i] = res.data[i].type2
154
- // type2_lv[i] = res.data[i].type2_lv
155
- // type3[i] = res.data[i].type3
156
- // type3_lv[i] = res.data[i].type3_lv
157
- // type4[i] = res.data[i].type4
158
- // type4_lv[i] = res.data[i].type4_lv
159
- // type5[i] = res.data[i].type5
160
- // type5_lv[i] = res.data[i].type5_lv
161
- // type6[i] = res.data[i].type6
162
- // type6_lv[i] = res.data[i].type6_lv
163
- // type7[i] = res.data[i].type7
164
- // type7_lv[i] = res.data[i].type7_lv
165
- // type8[i] = res.data[i].type8
166
- // type8_lv[i] = res.data[i].type8_lv
167
- // type9[i] = res.data[i].type9
168
- // type9_lv[i] = res.data[i].type9_lv
169
- // }
170
- // self.set(name, type1, type1_lv, type2, type2_lv, type3, type3_lv, type4, type4_lv,
171
- // type5, type5_lv, type6, type6_lv, type7, type7_lv, type8, type8_lv, type9, type9_lv)
172
- })
173
- }
174
- export default {
175
- props: {
176
- echarts: {
177
- type: Boolean,
178
- default: false
179
- },
180
- startdate: {
181
- type: String,
182
- default: Util.toStandardDateString()
183
- },
184
- enddate: {
185
- type: String,
186
- default: Util.toStandardDateString()
187
- },
188
- condition: {
189
- type: String,
190
- default: '1=1'
191
- },
192
- groupname: {
193
- type: String,
194
- default: 'year'
195
- }
196
- },
197
- data() {
198
- return {
199
- xc: ''
200
- }
201
- },
202
- methods: {
203
- // set(name, type1, type1_lv, type2, type2_lv, type3, type3_lv, type4, type4_lv,
204
- // type5, type5_lv, type6, type6_lv, type7, type7_lv, type8, type8_lv, type9, type9_lv) {
205
- set(type,data,tit) {
206
-
207
- let name1 = ''
208
- if (this.groupname === 'year') {
209
- name1 = '年'
210
- } else if (this.groupname === 'month') {
211
- name1 = '月'
212
- } else if (this.groupname === 'week') {
213
- name1 = '周'
214
- } else {
215
- name1 = '日'
216
- }
217
- this.xc = this.$echarts.init(document.getElementById('exception'))
218
- this.xc.setOption({
219
- 'title': {
220
- 'text': '异常' + name1 + '分析',
221
- 'left': 'center',
222
- 'y': '10',
223
- 'textStyle': {
224
- 'color': '#696969',
225
- fontSize: 20
226
- }
227
- },
228
- 'backgroundColor': '#F8F8FF',
229
- 'color': '#384757',
230
- 'tooltip': {
231
- 'trigger': 'axis',
232
- 'extraCssText': 'width: auto;height: auto;'
233
- },
234
- 'legend': {
235
- 'data': type,
236
- 'top': '10%',
237
- 'textStyle': {
238
- 'color': '#fff'
239
- }
240
- },
241
- 'xAxis': [
242
- {
243
- 'type': 'category',
244
- 'data': tit,
245
- 'name': '时间',
246
- 'axisPointer': {
247
- 'type': 'shadow'
248
- },
249
- 'axisLabel': {
250
- 'show': true,
251
- 'textStyle': {
252
- 'color': '#7d838b',
253
- fontSize: 15
254
- }
255
- }
256
- }
257
- ],
258
- 'yAxis': [
259
- {
260
- 'type': 'value',
261
- 'name': '异常数',
262
- nameTextStyle: {
263
- fontSize: 10
264
- },
265
- 'show': true,
266
- 'axisLabel': {
267
- 'show': true,
268
- 'textStyle': {
269
- 'color': '#7d838b',
270
- fontSize: 10
271
- }
272
- }
273
- },
274
- {
275
- 'type': 'value',
276
- 'name': '比率%',
277
- nameTextStyle: {
278
- fontSize: 15
279
- },
280
- 'show': true,
281
- 'axisLabel': {
282
- 'show': true,
283
- 'textStyle': {
284
- 'color': '#ffaa00',
285
- fontSize: 15
286
- }
287
- }
288
- }
289
- ],
290
- 'grid': {
291
- 'top': '20%'
292
- },
293
- 'series': data
294
- })
295
- // this.xc.setOption({
296
- // 'title': {
297
- // 'text': '异常' + name1 + '分析',
298
- // 'left': 'center',
299
- // 'y': '10',
300
- // 'textStyle': {
301
- // 'color': '#696969',
302
- // fontSize: 20
303
- // }
304
- // },
305
- // 'backgroundColor': '#F8F8FF',
306
- // 'color': '#384757',
307
- // 'tooltip': {
308
- // 'trigger': 'axis',
309
- // 'extraCssText': 'width: auto;height: auto;'
310
- // },
311
- // 'legend': {
312
- // 'data': [
313
- // {
314
- // 'name': '拆表上报',
315
- // 'icon': 'circle',
316
- // 'textStyle': {
317
- // 'color': '#7d838b',
318
- // fontSize: 20
319
- // }
320
- // },
321
- // {
322
- // 'name': '补抄上报',
323
- // 'icon': 'circle',
324
- // 'textStyle': {
325
- // 'color': '#233564',
326
- // fontSize: 20
327
- // }
328
- // },
329
- // {
330
- // 'name': '锂电低电上报',
331
- // 'icon': 'circle',
332
- // 'textStyle': {
333
- // 'color': '#ffaa00',
334
- // fontSize: 20
335
- // }
336
- // },
337
- // {
338
- // 'name': 'E7上报',
339
- // 'icon': 'circle',
340
- // 'textStyle': {
341
- // 'color': '#FD2234',
342
- // fontSize: 20
343
- // }
344
- // },
345
- // {
346
- // 'name': 'E8上报',
347
- // 'icon': 'circle',
348
- // 'textStyle': {
349
- // 'color': '#AE3345',
350
- // fontSize: 20
351
- // }
352
- // },
353
- // {
354
- // 'name': 'E16上报',
355
- // 'icon': 'circle',
356
- // 'textStyle': {
357
- // 'color': '#Bc0',
358
- // fontSize: 20
359
- // }
360
- // },
361
- // {
362
- // 'name': 'E21上报',
363
- // 'icon': 'circle',
364
- // 'textStyle': {
365
- // 'color': '#dedfda',
366
- // fontSize: 20
367
- // }
368
- // },
369
- // {
370
- // 'name': 'E23上报',
371
- // 'icon': 'circle',
372
- // 'textStyle': {
373
- // 'color': '#ffaaff',
374
- // fontSize: 20
375
- // }
376
- // },
377
- // {
378
- // 'name': '其他上报',
379
- // 'icon': 'circle',
380
- // 'textStyle': {
381
- // 'color': '#daaaaa',
382
- // fontSize: 20
383
- // }
384
- // },
385
- // {
386
- // 'name': '拆表上报率',
387
- // 'icon': 'circle',
388
- // 'textStyle': {
389
- // 'color': '#7d838b',
390
- // fontSize: 20
391
- // }
392
- // },
393
- // {
394
- // 'name': '补抄上报率',
395
- // 'icon': 'circle',
396
- // 'textStyle': {
397
- // 'color': '#233564',
398
- // fontSize: 20
399
- // }
400
- // },
401
- // {
402
- // 'name': '锂电低电上报率',
403
- // 'icon': 'circle',
404
- // 'textStyle': {
405
- // 'color': '#ffaa00',
406
- // fontSize: 20
407
- // }
408
- // },
409
- // {
410
- // 'name': 'E7上报率',
411
- // 'icon': 'circle',
412
- // 'textStyle': {
413
- // 'color': '#FD2234',
414
- // fontSize: 20
415
- // }
416
- // },
417
- // {
418
- // 'name': 'E8上报率',
419
- // 'icon': 'circle',
420
- // 'textStyle': {
421
- // 'color': '#AE3345',
422
- // fontSize: 20
423
- // }
424
- // },
425
- // {
426
- // 'name': 'E16上报率',
427
- // 'icon': 'circle',
428
- // 'textStyle': {
429
- // 'color': '#Bc0',
430
- // fontSize: 20
431
- // }
432
- // },
433
- // {
434
- // 'name': 'E21上报率',
435
- // 'icon': 'circle',
436
- // 'textStyle': {
437
- // 'color': '#dedfda',
438
- // fontSize: 20
439
- // }
440
- // },
441
- // {
442
- // 'name': 'E23上报率',
443
- // 'icon': 'circle',
444
- // 'textStyle': {
445
- // 'color': '#ffaaff',
446
- // fontSize: 20
447
- // }
448
- // },
449
- // {
450
- // 'name': '其他上报率',
451
- // 'icon': 'circle',
452
- // 'textStyle': {
453
- // 'color': '#daaaaa',
454
- // fontSize: 20
455
- // }
456
- // }
457
- // ],
458
- // 'top': '10%',
459
- // 'textStyle': {
460
- // 'color': '#fff'
461
- // }
462
- // },
463
- // 'xAxis': [
464
- // {
465
- // 'type': 'category',
466
- // 'data': name,
467
- // 'name': '时间',
468
- // 'axisPointer': {
469
- // 'type': 'shadow'
470
- // },
471
- // 'axisLabel': {
472
- // 'show': true,
473
- // 'textStyle': {
474
- // 'color': '#7d838b',
475
- // fontSize: 15
476
- // }
477
- // }
478
- // }
479
- // ],
480
- // 'yAxis': [
481
- // {
482
- // 'type': 'value',
483
- // 'name': '异常数',
484
- // nameTextStyle: {
485
- // fontSize: 10
486
- // },
487
- // 'show': true,
488
- // 'axisLabel': {
489
- // 'show': true,
490
- // 'textStyle': {
491
- // 'color': '#7d838b',
492
- // fontSize: 10
493
- // }
494
- // }
495
- // },
496
- // {
497
- // 'type': 'value',
498
- // 'name': '概率%',
499
- // nameTextStyle: {
500
- // fontSize: 15
501
- // },
502
- // 'show': true,
503
- // 'axisLabel': {
504
- // 'show': true,
505
- // 'textStyle': {
506
- // 'color': '#ffaa00',
507
- // fontSize: 15
508
- // }
509
- // }
510
- // }
511
- // ],
512
- // 'grid': {
513
- // 'top': '20%'
514
- // },
515
- // 'series': [
516
- // {
517
- // 'name': '拆表上报',
518
- // nameTextStyle: {
519
- // fontSize: 15
520
- // },
521
- // 'type': 'bar',
522
- // 'data': type1,
523
- // 'markPoint': {
524
- // data: [
525
- // {type: 'max', name: '最大值'},
526
- // {type: 'min', name: '最小值'}
527
- // ]
528
- // },
529
- // markLine: {
530
- // data: [
531
- // {type: 'average', name: '平均值'}
532
- // ]
533
- // },
534
- // 'barWidth': 'auto',
535
- // 'itemStyle': {
536
- // 'normal': {
537
- // 'color': '#7d838b'
538
- // }
539
- // },
540
- // 'barGap': '0'
541
- // },
542
- // {
543
- // 'name': '拆表上报率',
544
- // 'type': 'line',
545
- // 'data': type1_lv,
546
- // 'yAxisIndex': 1,
547
- // 'itemStyle': {
548
- // 'normal': {
549
- // 'color': '#7d838b',
550
- // fontSize: 10
551
- // }
552
- // },
553
- // 'smooth': true
554
- // },
555
- // {
556
- // 'name': '补抄上报',
557
- // nameTextStyle: {
558
- // fontSize: 15
559
- // },
560
- // 'type': 'bar',
561
- // 'data': type2,
562
- // 'markPoint': {
563
- // data: [
564
- // {type: 'max', name: '最大值'},
565
- // {type: 'min', name: '最小值'}
566
- // ]
567
- // },
568
- // markLine: {
569
- // data: [
570
- // {type: 'average', name: '平均值'}
571
- // ]
572
- // },
573
- // 'barWidth': 'auto',
574
- // 'itemStyle': {
575
- // 'normal': {
576
- // 'color': '#233564'
577
- // }
578
- // },
579
- // 'barGap': '0'
580
- // },
581
- // {
582
- // 'name': '补抄上报率',
583
- // 'type': 'line',
584
- // 'yAxisIndex': 1,
585
- // 'data': type2_lv,
586
- // 'itemStyle': {
587
- // 'normal': {
588
- // 'color': '#233564',
589
- // fontSize: 10
590
- // }
591
- // },
592
- // 'smooth': true
593
- // },
594
- // {
595
- // 'name': '锂电低电上报',
596
- // nameTextStyle: {
597
- // fontSize: 15
598
- // },
599
- // 'type': 'bar',
600
- // 'data': type3,
601
- // 'markPoint': {
602
- // data: [
603
- // {type: 'max', name: '最大值'},
604
- // {type: 'min', name: '最小值'}
605
- // ]
606
- // },
607
- // markLine: {
608
- // data: [
609
- // {type: 'average', name: '平均值'}
610
- // ]
611
- // },
612
- // 'barWidth': 'auto',
613
- // 'itemStyle': {
614
- // 'normal': {
615
- // 'color': '#ffaa00'
616
- // }
617
- // },
618
- // 'barGap': '0'
619
- // },
620
- // {
621
- // 'name': '锂电低电上报率',
622
- // 'type': 'line',
623
- // 'data': type3_lv,
624
- // 'yAxisIndex': 1,
625
- // 'itemStyle': {
626
- // 'normal': {
627
- // 'color': '#ffaa00',
628
- // fontSize: 10
629
- // }
630
- // },
631
- // 'smooth': true
632
- // },
633
- // {
634
- // 'name': 'E7上报',
635
- // nameTextStyle: {
636
- // fontSize: 15
637
- // },
638
- // 'type': 'bar',
639
- // 'data': type4,
640
- // 'markPoint': {
641
- // data: [
642
- // {type: 'max', name: '最大值'},
643
- // {type: 'min', name: '最小值'}
644
- // ]
645
- // },
646
- // markLine: {
647
- // data: [
648
- // {type: 'average', name: '平均值'}
649
- // ]
650
- // },
651
- // 'barWidth': 'auto',
652
- // 'itemStyle': {
653
- // 'normal': {
654
- // 'color': '#FD2234'
655
- // }
656
- // },
657
- // 'barGap': '0'
658
- // },
659
- // {
660
- // 'name': 'E7上报率',
661
- // 'type': 'line',
662
- // 'data': type4_lv,
663
- // 'yAxisIndex': 1,
664
- // 'itemStyle': {
665
- // 'normal': {
666
- // 'color': '#FD2234',
667
- // fontSize: 10
668
- // }
669
- // },
670
- // 'smooth': true
671
- // },
672
- // {
673
- // 'name': 'E8上报',
674
- // nameTextStyle: {
675
- // fontSize: 15
676
- // },
677
- // 'type': 'bar',
678
- // 'data': type5,
679
- // 'markPoint': {
680
- // data: [
681
- // {type: 'max', name: '最大值'},
682
- // {type: 'min', name: '最小值'}
683
- // ]
684
- // },
685
- // markLine: {
686
- // data: [
687
- // {type: 'average', name: '平均值'}
688
- // ]
689
- // },
690
- // 'barWidth': 'auto',
691
- // 'itemStyle': {
692
- // 'normal': {
693
- // 'color': '#AE3345'
694
- // }
695
- // },
696
- // 'barGap': '0'
697
- // },
698
- // {
699
- // 'name': 'E8上报率',
700
- // nameTextStyle: {
701
- // fontSize: 15
702
- // },
703
- // 'type': 'line',
704
- // 'data': type5_lv,
705
- // 'yAxisIndex': 1,
706
- // 'itemStyle': {
707
- // 'normal': {
708
- // 'color': '#AE3345',
709
- // fontSize: 10
710
- // }
711
- // },
712
- // 'smooth': true
713
- // },
714
- // {
715
- // 'name': 'E16上报',
716
- // nameTextStyle: {
717
- // fontSize: 15
718
- // },
719
- // 'type': 'bar',
720
- // 'data': type6,
721
- // 'markPoint': {
722
- // data: [
723
- // {type: 'max', name: '最大值'},
724
- // {type: 'min', name: '最小值'}
725
- // ]
726
- // },
727
- // markLine: {
728
- // data: [
729
- // {type: 'average', name: '平均值'}
730
- // ]
731
- // },
732
- // 'barWidth': 'auto',
733
- // 'itemStyle': {
734
- // 'normal': {
735
- // 'color': '#Bc0'
736
- // }
737
- // },
738
- // 'barGap': '0'
739
- // },
740
- // {
741
- // 'name': 'E16上报率',
742
- // nameTextStyle: {
743
- // fontSize: 15
744
- // },
745
- // 'type': 'line',
746
- // 'data': type6_lv,
747
- // 'yAxisIndex': 1,
748
- // 'itemStyle': {
749
- // 'normal': {
750
- // 'color': '#Bc0',
751
- // fontSize: 10
752
- // }
753
- // },
754
- // 'smooth': true
755
- // },
756
- // {
757
- // 'name': 'E21上报',
758
- // nameTextStyle: {
759
- // fontSize: 15
760
- // },
761
- // 'type': 'bar',
762
- // 'data': type7,
763
- // 'markPoint': {
764
- // data: [
765
- // {type: 'max', name: '最大值'},
766
- // {type: 'min', name: '最小值'}
767
- // ]
768
- // },
769
- // markLine: {
770
- // data: [
771
- // {type: 'average', name: '平均值'}
772
- // ]
773
- // },
774
- // 'barWidth': 'auto',
775
- // 'itemStyle': {
776
- // 'normal': {
777
- // 'color': '#dedfda'
778
- // }
779
- // },
780
- // 'barGap': '0'
781
- // },
782
- // {
783
- // 'name': 'E21上报率',
784
- // nameTextStyle: {
785
- // fontSize: 15
786
- // },
787
- // 'type': 'line',
788
- // 'data': type7_lv,
789
- // 'yAxisIndex': 1,
790
- // 'itemStyle': {
791
- // 'normal': {
792
- // 'color': '#dedfda',
793
- // fontSize: 10
794
- // }
795
- // },
796
- // 'smooth': true
797
- // },
798
- // {
799
- // 'name': 'E23上报',
800
- // nameTextStyle: {
801
- // fontSize: 15
802
- // },
803
- // 'type': 'bar',
804
- // 'data': type8,
805
- // 'markPoint': {
806
- // data: [
807
- // {type: 'max', name: '最大值'},
808
- // {type: 'min', name: '最小值'}
809
- // ]
810
- // },
811
- // markLine: {
812
- // data: [
813
- // {type: 'average', name: '平均值'}
814
- // ]
815
- // },
816
- // 'barWidth': 'auto',
817
- // 'itemStyle': {
818
- // 'normal': {
819
- // 'color': '#ffaaff'
820
- // }
821
- // },
822
- // 'barGap': '0'
823
- // },
824
- // {
825
- // 'name': 'E23上报率',
826
- // nameTextStyle: {
827
- // fontSize: 15
828
- // },
829
- // 'type': 'line',
830
- // 'data': type8_lv,
831
- // 'yAxisIndex': 1,
832
- // 'itemStyle': {
833
- // 'normal': {
834
- // 'color': '#ffaaff',
835
- // fontSize: 10
836
- // }
837
- // },
838
- // 'smooth': true
839
- // },
840
- // {
841
- // 'name': '其他上报',
842
- // nameTextStyle: {
843
- // fontSize: 15
844
- // },
845
- // 'type': 'bar',
846
- // 'data': type9,
847
- // 'markPoint': {
848
- // data: [
849
- // {type: 'max', name: '最大值'},
850
- // {type: 'min', name: '最小值'}
851
- // ]
852
- // },
853
- // markLine: {
854
- // data: [
855
- // {type: 'average', name: '平均值'}
856
- // ]
857
- // },
858
- // 'barWidth': 'auto',
859
- // 'itemStyle': {
860
- // 'normal': {
861
- // 'color': '#daaaaa'
862
- // }
863
- // },
864
- // 'barGap': '0'
865
- // },
866
- // {
867
- // 'name': '其他上报率',
868
- // nameTextStyle: {
869
- // fontSize: 15
870
- // },
871
- // 'type': 'line',
872
- // 'data': type9_lv,
873
- // 'yAxisIndex': 1,
874
- // 'itemStyle': {
875
- // 'normal': {
876
- // 'color': '#daaaaa',
877
- // fontSize: 10
878
- // }
879
- // },
880
- // 'smooth': true
881
- // }
882
- // ]
883
- // })
884
- },
885
- searchdata(condition) {
886
- let getGen = getData(this, condition)
887
- co(getGen)
888
- }
889
- },
890
- watch: {
891
- 'echarts'(val) {
892
- this.searchdata(this.condition)
893
- },
894
- 'groupname'(val) {
895
- this.searchdata(this.condition)
896
- }
897
- }
898
- }
899
- </script>
1
+ <template lang="html">
2
+
3
+ <div class="basic-main">
4
+ <div style="height: 40px;width: 100%;" v-show="echarts">
5
+ <div style="display: inline-block;">
6
+ <button @click="$parent.notShowEcharts()" class="button_clear button_spacing">隐藏图表</button>
7
+ </div>
8
+ <!--图显示模板-->
9
+ <div class="mystyle" style="display: inline-block;">
10
+ <label class="font_normal_body">图表统计项</label>
11
+ <v-select :options='$parent.getgroupname' :value.sync="groupname"
12
+ close-on-select
13
+ id="groupname"
14
+ placeholder='分组项'
15
+ v-model="groupname"
16
+ value-single="true"></v-select>
17
+ </div>
18
+ </div>
19
+ <div id="charts" style=" height: 98%;width: 98%;padding: 1% 1%;">
20
+ <div id="exception" style=" height: 600px;width: 800px;padding: 1% 1%;min-width:98%;min-height: 98%"></div>
21
+ </div>
22
+ </div>
23
+ </template>
24
+
25
+ <script>
26
+ import * as Util from '../../../../Util'
27
+ import co from 'co'
28
+ import {HttpResetClass} from 'vue-client'
29
+
30
+ let getData = function* (self, condition) {
31
+ console.log('异常分析图表分析')
32
+ console.log('异常分析图表分析数据', self)
33
+ let load = new HttpResetClass()
34
+ load.load('POST', 'rs/sql/DrillErrorEchars',
35
+ {data: {condition: condition, groupname: self.groupname[0], startDate: self.startdate, endDate: self.enddate}},
36
+ {resolveMsg: null, rejectMsg: null}).then((res) => {
37
+ console.log('开始进行图表重新选渲染', res)
38
+ let all = res.data
39
+ let f_error_type = Array.from(new Set(all.map(x => x.f_error_type)))
40
+ console.log('f_error_type去重后', f_error_type)
41
+ let f_insert_date = Array.from(new Set(all.map(x => x.f_insert_date)))
42
+ console.log('f_insert_date去重后', f_insert_date)
43
+ let type = []
44
+ let data = []
45
+ f_error_type.forEach((item,index) => {
46
+ console.log(index);
47
+ let R = Math.floor(Math.random() * 255)
48
+ let G = Math.floor(Math.random() * 255)
49
+ let B = Math.floor(Math.random() * 255)
50
+ let r = Math.floor(Math.random() * 255)
51
+ let g = Math.floor(Math.random() * 255)
52
+ let b = Math.floor(Math.random() * 255)
53
+ type.push(
54
+ {
55
+ name: item,
56
+ icon: 'circle',
57
+ textStyle: {
58
+ color: 'rgb(' + R + ',' + G + ',' + B + ')',
59
+ fontSize: 20
60
+ }
61
+ },
62
+ {
63
+ name: item + '比率',
64
+ icon: 'circle',
65
+ textStyle: {
66
+ color: 'rgb(' + r + ',' + g + ',' + b + ')',
67
+ fontSize: 20
68
+ }
69
+ }
70
+ )
71
+ let ls = []
72
+ let lsbv = []
73
+ f_insert_date.forEach((r) =>{
74
+ let sum = all.filter(x => x.f_error_type == item && x.f_insert_date == r).map(x => x.num).reduce((x, y) => x + y, 0)
75
+ let datesum = all.filter(x => x.f_insert_date == r).map(x => x.num).reduce((x, y) => x + y, 0)
76
+ console.log('sum------>', sum)
77
+ console.log('sum------>', datesum)
78
+ ls.push(sum)
79
+ lsbv.push(((sum/datesum)*100).toFixed(2))
80
+ })
81
+ data.push(
82
+ {
83
+ name: item,
84
+ nameTextStyle: {
85
+ fontSize: 15
86
+ },
87
+ type: 'bar',
88
+ data: ls,
89
+ markPoint: {
90
+ data: [
91
+ {type: 'max', name: '最大值'},
92
+ {type: 'min', name: '最小值'}
93
+ ]
94
+ },
95
+ markLine: {
96
+ data: [
97
+ {type: 'average', name: '平均值'}
98
+ ]
99
+ },
100
+ barWidth: 'auto',
101
+ itemStyle: {
102
+ normal: {
103
+ color: 'rgb(' + R + ',' + G + ',' + B + ')'
104
+ }
105
+ },
106
+ barGap: '0'
107
+ },
108
+ {
109
+ name: item + '比率',
110
+ type: 'line',
111
+ data: lsbv,
112
+ yAxisIndex: 1,
113
+ itemStyle: {
114
+ normal: {
115
+ color: 'rgb(' + r + ',' + g + ',' + b + ')',
116
+ fontSize: 10
117
+ }
118
+ },
119
+ smooth: true
120
+ }
121
+ )
122
+ console.log('ls---->', ls)
123
+ console.log('lsbv---->', lsbv)
124
+ })
125
+
126
+ console.log('组织后的type数据', type)
127
+ console.log('组织后的data数据', data)
128
+ console.log('组织后的f_insert_date数据', f_insert_date)
129
+ self.set(type, data, f_insert_date)
130
+ // let name = []
131
+ // let type1 = []
132
+ // let type1_lv = []
133
+ // let type2 = []
134
+ // let type2_lv = []
135
+ // let type3 = []
136
+ // let type3_lv = []
137
+ // let type4 = []
138
+ // let type4_lv = []
139
+ // let type5 = []
140
+ // let type5_lv = []
141
+ // let type6 = []
142
+ // let type6_lv = []
143
+ // let type7 = []
144
+ // let type7_lv = []
145
+ // let type8 = []
146
+ // let type8_lv = []
147
+ // let type9 = []
148
+ // let type9_lv = []
149
+ // for (var i = 0; i < res.data.length; i++) {
150
+ // name[i] = res.data[i].f_insert_date
151
+ // type1[i] = res.data[i].type1
152
+ // type1_lv[i] = res.data[i].type1_lv
153
+ // type2[i] = res.data[i].type2
154
+ // type2_lv[i] = res.data[i].type2_lv
155
+ // type3[i] = res.data[i].type3
156
+ // type3_lv[i] = res.data[i].type3_lv
157
+ // type4[i] = res.data[i].type4
158
+ // type4_lv[i] = res.data[i].type4_lv
159
+ // type5[i] = res.data[i].type5
160
+ // type5_lv[i] = res.data[i].type5_lv
161
+ // type6[i] = res.data[i].type6
162
+ // type6_lv[i] = res.data[i].type6_lv
163
+ // type7[i] = res.data[i].type7
164
+ // type7_lv[i] = res.data[i].type7_lv
165
+ // type8[i] = res.data[i].type8
166
+ // type8_lv[i] = res.data[i].type8_lv
167
+ // type9[i] = res.data[i].type9
168
+ // type9_lv[i] = res.data[i].type9_lv
169
+ // }
170
+ // self.set(name, type1, type1_lv, type2, type2_lv, type3, type3_lv, type4, type4_lv,
171
+ // type5, type5_lv, type6, type6_lv, type7, type7_lv, type8, type8_lv, type9, type9_lv)
172
+ })
173
+ }
174
+ export default {
175
+ props: {
176
+ echarts: {
177
+ type: Boolean,
178
+ default: false
179
+ },
180
+ startdate: {
181
+ type: String,
182
+ default: Util.toStandardDateString()
183
+ },
184
+ enddate: {
185
+ type: String,
186
+ default: Util.toStandardDateString()
187
+ },
188
+ condition: {
189
+ type: String,
190
+ default: '1=1'
191
+ },
192
+ groupname: {
193
+ type: String,
194
+ default: 'year'
195
+ }
196
+ },
197
+ data() {
198
+ return {
199
+ xc: ''
200
+ }
201
+ },
202
+ methods: {
203
+ // set(name, type1, type1_lv, type2, type2_lv, type3, type3_lv, type4, type4_lv,
204
+ // type5, type5_lv, type6, type6_lv, type7, type7_lv, type8, type8_lv, type9, type9_lv) {
205
+ set(type,data,tit) {
206
+
207
+ let name1 = ''
208
+ if (this.groupname === 'year') {
209
+ name1 = '年'
210
+ } else if (this.groupname === 'month') {
211
+ name1 = '月'
212
+ } else if (this.groupname === 'week') {
213
+ name1 = '周'
214
+ } else {
215
+ name1 = '日'
216
+ }
217
+ this.xc = this.$echarts.init(document.getElementById('exception'))
218
+ this.xc.setOption({
219
+ 'title': {
220
+ 'text': '异常' + name1 + '分析',
221
+ 'left': 'center',
222
+ 'y': '10',
223
+ 'textStyle': {
224
+ 'color': '#696969',
225
+ fontSize: 20
226
+ }
227
+ },
228
+ 'backgroundColor': '#F8F8FF',
229
+ 'color': '#384757',
230
+ 'tooltip': {
231
+ 'trigger': 'axis',
232
+ 'extraCssText': 'width: auto;height: auto;'
233
+ },
234
+ 'legend': {
235
+ 'data': type,
236
+ 'top': '10%',
237
+ 'textStyle': {
238
+ 'color': '#fff'
239
+ }
240
+ },
241
+ 'xAxis': [
242
+ {
243
+ 'type': 'category',
244
+ 'data': tit,
245
+ 'name': '时间',
246
+ 'axisPointer': {
247
+ 'type': 'shadow'
248
+ },
249
+ 'axisLabel': {
250
+ 'show': true,
251
+ 'textStyle': {
252
+ 'color': '#7d838b',
253
+ fontSize: 15
254
+ }
255
+ }
256
+ }
257
+ ],
258
+ 'yAxis': [
259
+ {
260
+ 'type': 'value',
261
+ 'name': '异常数',
262
+ nameTextStyle: {
263
+ fontSize: 10
264
+ },
265
+ 'show': true,
266
+ 'axisLabel': {
267
+ 'show': true,
268
+ 'textStyle': {
269
+ 'color': '#7d838b',
270
+ fontSize: 10
271
+ }
272
+ }
273
+ },
274
+ {
275
+ 'type': 'value',
276
+ 'name': '比率%',
277
+ nameTextStyle: {
278
+ fontSize: 15
279
+ },
280
+ 'show': true,
281
+ 'axisLabel': {
282
+ 'show': true,
283
+ 'textStyle': {
284
+ 'color': '#ffaa00',
285
+ fontSize: 15
286
+ }
287
+ }
288
+ }
289
+ ],
290
+ 'grid': {
291
+ 'top': '20%'
292
+ },
293
+ 'series': data
294
+ })
295
+ // this.xc.setOption({
296
+ // 'title': {
297
+ // 'text': '异常' + name1 + '分析',
298
+ // 'left': 'center',
299
+ // 'y': '10',
300
+ // 'textStyle': {
301
+ // 'color': '#696969',
302
+ // fontSize: 20
303
+ // }
304
+ // },
305
+ // 'backgroundColor': '#F8F8FF',
306
+ // 'color': '#384757',
307
+ // 'tooltip': {
308
+ // 'trigger': 'axis',
309
+ // 'extraCssText': 'width: auto;height: auto;'
310
+ // },
311
+ // 'legend': {
312
+ // 'data': [
313
+ // {
314
+ // 'name': '拆表上报',
315
+ // 'icon': 'circle',
316
+ // 'textStyle': {
317
+ // 'color': '#7d838b',
318
+ // fontSize: 20
319
+ // }
320
+ // },
321
+ // {
322
+ // 'name': '补抄上报',
323
+ // 'icon': 'circle',
324
+ // 'textStyle': {
325
+ // 'color': '#233564',
326
+ // fontSize: 20
327
+ // }
328
+ // },
329
+ // {
330
+ // 'name': '锂电低电上报',
331
+ // 'icon': 'circle',
332
+ // 'textStyle': {
333
+ // 'color': '#ffaa00',
334
+ // fontSize: 20
335
+ // }
336
+ // },
337
+ // {
338
+ // 'name': 'E7上报',
339
+ // 'icon': 'circle',
340
+ // 'textStyle': {
341
+ // 'color': '#FD2234',
342
+ // fontSize: 20
343
+ // }
344
+ // },
345
+ // {
346
+ // 'name': 'E8上报',
347
+ // 'icon': 'circle',
348
+ // 'textStyle': {
349
+ // 'color': '#AE3345',
350
+ // fontSize: 20
351
+ // }
352
+ // },
353
+ // {
354
+ // 'name': 'E16上报',
355
+ // 'icon': 'circle',
356
+ // 'textStyle': {
357
+ // 'color': '#Bc0',
358
+ // fontSize: 20
359
+ // }
360
+ // },
361
+ // {
362
+ // 'name': 'E21上报',
363
+ // 'icon': 'circle',
364
+ // 'textStyle': {
365
+ // 'color': '#dedfda',
366
+ // fontSize: 20
367
+ // }
368
+ // },
369
+ // {
370
+ // 'name': 'E23上报',
371
+ // 'icon': 'circle',
372
+ // 'textStyle': {
373
+ // 'color': '#ffaaff',
374
+ // fontSize: 20
375
+ // }
376
+ // },
377
+ // {
378
+ // 'name': '其他上报',
379
+ // 'icon': 'circle',
380
+ // 'textStyle': {
381
+ // 'color': '#daaaaa',
382
+ // fontSize: 20
383
+ // }
384
+ // },
385
+ // {
386
+ // 'name': '拆表上报率',
387
+ // 'icon': 'circle',
388
+ // 'textStyle': {
389
+ // 'color': '#7d838b',
390
+ // fontSize: 20
391
+ // }
392
+ // },
393
+ // {
394
+ // 'name': '补抄上报率',
395
+ // 'icon': 'circle',
396
+ // 'textStyle': {
397
+ // 'color': '#233564',
398
+ // fontSize: 20
399
+ // }
400
+ // },
401
+ // {
402
+ // 'name': '锂电低电上报率',
403
+ // 'icon': 'circle',
404
+ // 'textStyle': {
405
+ // 'color': '#ffaa00',
406
+ // fontSize: 20
407
+ // }
408
+ // },
409
+ // {
410
+ // 'name': 'E7上报率',
411
+ // 'icon': 'circle',
412
+ // 'textStyle': {
413
+ // 'color': '#FD2234',
414
+ // fontSize: 20
415
+ // }
416
+ // },
417
+ // {
418
+ // 'name': 'E8上报率',
419
+ // 'icon': 'circle',
420
+ // 'textStyle': {
421
+ // 'color': '#AE3345',
422
+ // fontSize: 20
423
+ // }
424
+ // },
425
+ // {
426
+ // 'name': 'E16上报率',
427
+ // 'icon': 'circle',
428
+ // 'textStyle': {
429
+ // 'color': '#Bc0',
430
+ // fontSize: 20
431
+ // }
432
+ // },
433
+ // {
434
+ // 'name': 'E21上报率',
435
+ // 'icon': 'circle',
436
+ // 'textStyle': {
437
+ // 'color': '#dedfda',
438
+ // fontSize: 20
439
+ // }
440
+ // },
441
+ // {
442
+ // 'name': 'E23上报率',
443
+ // 'icon': 'circle',
444
+ // 'textStyle': {
445
+ // 'color': '#ffaaff',
446
+ // fontSize: 20
447
+ // }
448
+ // },
449
+ // {
450
+ // 'name': '其他上报率',
451
+ // 'icon': 'circle',
452
+ // 'textStyle': {
453
+ // 'color': '#daaaaa',
454
+ // fontSize: 20
455
+ // }
456
+ // }
457
+ // ],
458
+ // 'top': '10%',
459
+ // 'textStyle': {
460
+ // 'color': '#fff'
461
+ // }
462
+ // },
463
+ // 'xAxis': [
464
+ // {
465
+ // 'type': 'category',
466
+ // 'data': name,
467
+ // 'name': '时间',
468
+ // 'axisPointer': {
469
+ // 'type': 'shadow'
470
+ // },
471
+ // 'axisLabel': {
472
+ // 'show': true,
473
+ // 'textStyle': {
474
+ // 'color': '#7d838b',
475
+ // fontSize: 15
476
+ // }
477
+ // }
478
+ // }
479
+ // ],
480
+ // 'yAxis': [
481
+ // {
482
+ // 'type': 'value',
483
+ // 'name': '异常数',
484
+ // nameTextStyle: {
485
+ // fontSize: 10
486
+ // },
487
+ // 'show': true,
488
+ // 'axisLabel': {
489
+ // 'show': true,
490
+ // 'textStyle': {
491
+ // 'color': '#7d838b',
492
+ // fontSize: 10
493
+ // }
494
+ // }
495
+ // },
496
+ // {
497
+ // 'type': 'value',
498
+ // 'name': '概率%',
499
+ // nameTextStyle: {
500
+ // fontSize: 15
501
+ // },
502
+ // 'show': true,
503
+ // 'axisLabel': {
504
+ // 'show': true,
505
+ // 'textStyle': {
506
+ // 'color': '#ffaa00',
507
+ // fontSize: 15
508
+ // }
509
+ // }
510
+ // }
511
+ // ],
512
+ // 'grid': {
513
+ // 'top': '20%'
514
+ // },
515
+ // 'series': [
516
+ // {
517
+ // 'name': '拆表上报',
518
+ // nameTextStyle: {
519
+ // fontSize: 15
520
+ // },
521
+ // 'type': 'bar',
522
+ // 'data': type1,
523
+ // 'markPoint': {
524
+ // data: [
525
+ // {type: 'max', name: '最大值'},
526
+ // {type: 'min', name: '最小值'}
527
+ // ]
528
+ // },
529
+ // markLine: {
530
+ // data: [
531
+ // {type: 'average', name: '平均值'}
532
+ // ]
533
+ // },
534
+ // 'barWidth': 'auto',
535
+ // 'itemStyle': {
536
+ // 'normal': {
537
+ // 'color': '#7d838b'
538
+ // }
539
+ // },
540
+ // 'barGap': '0'
541
+ // },
542
+ // {
543
+ // 'name': '拆表上报率',
544
+ // 'type': 'line',
545
+ // 'data': type1_lv,
546
+ // 'yAxisIndex': 1,
547
+ // 'itemStyle': {
548
+ // 'normal': {
549
+ // 'color': '#7d838b',
550
+ // fontSize: 10
551
+ // }
552
+ // },
553
+ // 'smooth': true
554
+ // },
555
+ // {
556
+ // 'name': '补抄上报',
557
+ // nameTextStyle: {
558
+ // fontSize: 15
559
+ // },
560
+ // 'type': 'bar',
561
+ // 'data': type2,
562
+ // 'markPoint': {
563
+ // data: [
564
+ // {type: 'max', name: '最大值'},
565
+ // {type: 'min', name: '最小值'}
566
+ // ]
567
+ // },
568
+ // markLine: {
569
+ // data: [
570
+ // {type: 'average', name: '平均值'}
571
+ // ]
572
+ // },
573
+ // 'barWidth': 'auto',
574
+ // 'itemStyle': {
575
+ // 'normal': {
576
+ // 'color': '#233564'
577
+ // }
578
+ // },
579
+ // 'barGap': '0'
580
+ // },
581
+ // {
582
+ // 'name': '补抄上报率',
583
+ // 'type': 'line',
584
+ // 'yAxisIndex': 1,
585
+ // 'data': type2_lv,
586
+ // 'itemStyle': {
587
+ // 'normal': {
588
+ // 'color': '#233564',
589
+ // fontSize: 10
590
+ // }
591
+ // },
592
+ // 'smooth': true
593
+ // },
594
+ // {
595
+ // 'name': '锂电低电上报',
596
+ // nameTextStyle: {
597
+ // fontSize: 15
598
+ // },
599
+ // 'type': 'bar',
600
+ // 'data': type3,
601
+ // 'markPoint': {
602
+ // data: [
603
+ // {type: 'max', name: '最大值'},
604
+ // {type: 'min', name: '最小值'}
605
+ // ]
606
+ // },
607
+ // markLine: {
608
+ // data: [
609
+ // {type: 'average', name: '平均值'}
610
+ // ]
611
+ // },
612
+ // 'barWidth': 'auto',
613
+ // 'itemStyle': {
614
+ // 'normal': {
615
+ // 'color': '#ffaa00'
616
+ // }
617
+ // },
618
+ // 'barGap': '0'
619
+ // },
620
+ // {
621
+ // 'name': '锂电低电上报率',
622
+ // 'type': 'line',
623
+ // 'data': type3_lv,
624
+ // 'yAxisIndex': 1,
625
+ // 'itemStyle': {
626
+ // 'normal': {
627
+ // 'color': '#ffaa00',
628
+ // fontSize: 10
629
+ // }
630
+ // },
631
+ // 'smooth': true
632
+ // },
633
+ // {
634
+ // 'name': 'E7上报',
635
+ // nameTextStyle: {
636
+ // fontSize: 15
637
+ // },
638
+ // 'type': 'bar',
639
+ // 'data': type4,
640
+ // 'markPoint': {
641
+ // data: [
642
+ // {type: 'max', name: '最大值'},
643
+ // {type: 'min', name: '最小值'}
644
+ // ]
645
+ // },
646
+ // markLine: {
647
+ // data: [
648
+ // {type: 'average', name: '平均值'}
649
+ // ]
650
+ // },
651
+ // 'barWidth': 'auto',
652
+ // 'itemStyle': {
653
+ // 'normal': {
654
+ // 'color': '#FD2234'
655
+ // }
656
+ // },
657
+ // 'barGap': '0'
658
+ // },
659
+ // {
660
+ // 'name': 'E7上报率',
661
+ // 'type': 'line',
662
+ // 'data': type4_lv,
663
+ // 'yAxisIndex': 1,
664
+ // 'itemStyle': {
665
+ // 'normal': {
666
+ // 'color': '#FD2234',
667
+ // fontSize: 10
668
+ // }
669
+ // },
670
+ // 'smooth': true
671
+ // },
672
+ // {
673
+ // 'name': 'E8上报',
674
+ // nameTextStyle: {
675
+ // fontSize: 15
676
+ // },
677
+ // 'type': 'bar',
678
+ // 'data': type5,
679
+ // 'markPoint': {
680
+ // data: [
681
+ // {type: 'max', name: '最大值'},
682
+ // {type: 'min', name: '最小值'}
683
+ // ]
684
+ // },
685
+ // markLine: {
686
+ // data: [
687
+ // {type: 'average', name: '平均值'}
688
+ // ]
689
+ // },
690
+ // 'barWidth': 'auto',
691
+ // 'itemStyle': {
692
+ // 'normal': {
693
+ // 'color': '#AE3345'
694
+ // }
695
+ // },
696
+ // 'barGap': '0'
697
+ // },
698
+ // {
699
+ // 'name': 'E8上报率',
700
+ // nameTextStyle: {
701
+ // fontSize: 15
702
+ // },
703
+ // 'type': 'line',
704
+ // 'data': type5_lv,
705
+ // 'yAxisIndex': 1,
706
+ // 'itemStyle': {
707
+ // 'normal': {
708
+ // 'color': '#AE3345',
709
+ // fontSize: 10
710
+ // }
711
+ // },
712
+ // 'smooth': true
713
+ // },
714
+ // {
715
+ // 'name': 'E16上报',
716
+ // nameTextStyle: {
717
+ // fontSize: 15
718
+ // },
719
+ // 'type': 'bar',
720
+ // 'data': type6,
721
+ // 'markPoint': {
722
+ // data: [
723
+ // {type: 'max', name: '最大值'},
724
+ // {type: 'min', name: '最小值'}
725
+ // ]
726
+ // },
727
+ // markLine: {
728
+ // data: [
729
+ // {type: 'average', name: '平均值'}
730
+ // ]
731
+ // },
732
+ // 'barWidth': 'auto',
733
+ // 'itemStyle': {
734
+ // 'normal': {
735
+ // 'color': '#Bc0'
736
+ // }
737
+ // },
738
+ // 'barGap': '0'
739
+ // },
740
+ // {
741
+ // 'name': 'E16上报率',
742
+ // nameTextStyle: {
743
+ // fontSize: 15
744
+ // },
745
+ // 'type': 'line',
746
+ // 'data': type6_lv,
747
+ // 'yAxisIndex': 1,
748
+ // 'itemStyle': {
749
+ // 'normal': {
750
+ // 'color': '#Bc0',
751
+ // fontSize: 10
752
+ // }
753
+ // },
754
+ // 'smooth': true
755
+ // },
756
+ // {
757
+ // 'name': 'E21上报',
758
+ // nameTextStyle: {
759
+ // fontSize: 15
760
+ // },
761
+ // 'type': 'bar',
762
+ // 'data': type7,
763
+ // 'markPoint': {
764
+ // data: [
765
+ // {type: 'max', name: '最大值'},
766
+ // {type: 'min', name: '最小值'}
767
+ // ]
768
+ // },
769
+ // markLine: {
770
+ // data: [
771
+ // {type: 'average', name: '平均值'}
772
+ // ]
773
+ // },
774
+ // 'barWidth': 'auto',
775
+ // 'itemStyle': {
776
+ // 'normal': {
777
+ // 'color': '#dedfda'
778
+ // }
779
+ // },
780
+ // 'barGap': '0'
781
+ // },
782
+ // {
783
+ // 'name': 'E21上报率',
784
+ // nameTextStyle: {
785
+ // fontSize: 15
786
+ // },
787
+ // 'type': 'line',
788
+ // 'data': type7_lv,
789
+ // 'yAxisIndex': 1,
790
+ // 'itemStyle': {
791
+ // 'normal': {
792
+ // 'color': '#dedfda',
793
+ // fontSize: 10
794
+ // }
795
+ // },
796
+ // 'smooth': true
797
+ // },
798
+ // {
799
+ // 'name': 'E23上报',
800
+ // nameTextStyle: {
801
+ // fontSize: 15
802
+ // },
803
+ // 'type': 'bar',
804
+ // 'data': type8,
805
+ // 'markPoint': {
806
+ // data: [
807
+ // {type: 'max', name: '最大值'},
808
+ // {type: 'min', name: '最小值'}
809
+ // ]
810
+ // },
811
+ // markLine: {
812
+ // data: [
813
+ // {type: 'average', name: '平均值'}
814
+ // ]
815
+ // },
816
+ // 'barWidth': 'auto',
817
+ // 'itemStyle': {
818
+ // 'normal': {
819
+ // 'color': '#ffaaff'
820
+ // }
821
+ // },
822
+ // 'barGap': '0'
823
+ // },
824
+ // {
825
+ // 'name': 'E23上报率',
826
+ // nameTextStyle: {
827
+ // fontSize: 15
828
+ // },
829
+ // 'type': 'line',
830
+ // 'data': type8_lv,
831
+ // 'yAxisIndex': 1,
832
+ // 'itemStyle': {
833
+ // 'normal': {
834
+ // 'color': '#ffaaff',
835
+ // fontSize: 10
836
+ // }
837
+ // },
838
+ // 'smooth': true
839
+ // },
840
+ // {
841
+ // 'name': '其他上报',
842
+ // nameTextStyle: {
843
+ // fontSize: 15
844
+ // },
845
+ // 'type': 'bar',
846
+ // 'data': type9,
847
+ // 'markPoint': {
848
+ // data: [
849
+ // {type: 'max', name: '最大值'},
850
+ // {type: 'min', name: '最小值'}
851
+ // ]
852
+ // },
853
+ // markLine: {
854
+ // data: [
855
+ // {type: 'average', name: '平均值'}
856
+ // ]
857
+ // },
858
+ // 'barWidth': 'auto',
859
+ // 'itemStyle': {
860
+ // 'normal': {
861
+ // 'color': '#daaaaa'
862
+ // }
863
+ // },
864
+ // 'barGap': '0'
865
+ // },
866
+ // {
867
+ // 'name': '其他上报率',
868
+ // nameTextStyle: {
869
+ // fontSize: 15
870
+ // },
871
+ // 'type': 'line',
872
+ // 'data': type9_lv,
873
+ // 'yAxisIndex': 1,
874
+ // 'itemStyle': {
875
+ // 'normal': {
876
+ // 'color': '#daaaaa',
877
+ // fontSize: 10
878
+ // }
879
+ // },
880
+ // 'smooth': true
881
+ // }
882
+ // ]
883
+ // })
884
+ },
885
+ searchdata(condition) {
886
+ let getGen = getData(this, condition)
887
+ co(getGen)
888
+ }
889
+ },
890
+ watch: {
891
+ 'echarts'(val) {
892
+ this.searchdata(this.condition)
893
+ },
894
+ 'groupname'(val) {
895
+ this.searchdata(this.condition)
896
+ }
897
+ }
898
+ }
899
+ </script>