manage-client 3.1.34 → 3.1.38

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 +267 -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 -261
  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 -254
  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 +242 -242
  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 +250 -250
  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 +227 -227
  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 -537
  285. package/src/components/daping/GMap.vue +636 -636
  286. package/src/components/daping/ManageMain.vue +270 -270
  287. package/src/components/daping/NetWork.vue +238 -238
  288. package/src/components/daping/RedactDaPing.vue +468 -468
  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/InfoOperateRecord.vue +291 -0
  316. package/src/components/sale/businessquery/InspectManage.vue +47 -47
  317. package/src/components/sale/businessquery/MonthGasQuery.vue +467 -467
  318. package/src/components/sale/businessquery/NewAccountQuery.vue +409 -409
  319. package/src/components/sale/businessquery/OtherChargeDetailQuery.vue +74 -74
  320. package/src/components/sale/businessquery/OtherChargeQuery.vue +619 -619
  321. package/src/components/sale/businessquery/ProceedsOper.vue +377 -377
  322. package/src/components/sale/businessquery/ResourceOperatingQuery.vue +317 -317
  323. package/src/components/sale/businessquery/TongjiManage.vue +74 -74
  324. package/src/components/sale/businessquery/UserTongjiQuery.vue +358 -358
  325. package/src/components/sale/businessquery/YearGasQuery.vue +422 -422
  326. package/src/components/sale/businessquery/YingShouMingXi.vue +525 -525
  327. package/src/components/sale/businessquery/analysisquery/AnalysisManage.vue +65 -65
  328. package/src/components/sale/businessquery/weChatBind.vue +361 -361
  329. package/src/components/sale/common/PrintData.vue +171 -171
  330. package/src/components/sale/common/PrintDataSelf.vue +225 -225
  331. package/src/components/sale/common/PrintTable.vue +228 -228
  332. package/src/components/sale/common/PrintTableSelf.vue +251 -251
  333. package/src/components/sale/common/TabButton.vue +155 -155
  334. package/src/components/sale/common/Tabs.vue +67 -67
  335. package/src/components/sale/common/handplanUser.vue +112 -112
  336. package/src/components/sale/config/DefaultPrint.js +6 -6
  337. package/src/components/sale/config/tableConfig.js +48 -48
  338. package/src/components/sale/filesquery/detail/UserBaseInfo.vue +69 -69
  339. package/src/components/sale/filesquery/detail/UserDetail.vue +41 -41
  340. package/src/components/sale/filesquery/detail/UserOperInfo.vue +76 -76
  341. package/src/components/sale/filesquery/detail/oper/ChangeMessage.vue +46 -46
  342. package/src/components/sale/filesquery/detail/oper/ExchangeOper.vue +66 -66
  343. package/src/components/sale/filesquery/detail/oper/HandOper.vue +46 -46
  344. package/src/components/sale/filesquery/detail/oper/HandleMessage.vue +46 -46
  345. package/src/components/sale/filesquery/detail/oper/OtherCharge.vue +54 -54
  346. package/src/components/sale/filesquery/detail/oper/ReplaceCard.vue +51 -51
  347. package/src/components/sale/filesquery/detail/oper/SellOper.vue +56 -56
  348. package/src/components/sale/filesquery/detail/oper/TransferMessage.vue +55 -55
  349. package/src/components/sale/filesquery/filequerydetail/BlackListQueryDetail.vue +219 -219
  350. package/src/components/sale/filesquery/filequerydetail/ChangeMeterQueryDetail.vue +246 -246
  351. package/src/components/sale/filesquery/filequerydetail/ChargeQueryDetail.vue +239 -239
  352. package/src/components/sale/filesquery/filequerydetail/DeviceQueryDetail.vue +126 -126
  353. package/src/components/sale/filesquery/filequerydetail/DisableQueryDetail.vue +272 -272
  354. package/src/components/sale/filesquery/filequerydetail/EnableQueryDetail.vue +274 -274
  355. package/src/components/sale/filesquery/filequerydetail/FillCardQueryDetail.vue +80 -80
  356. package/src/components/sale/filesquery/filequerydetail/FillGasQueryDetail.vue +80 -80
  357. package/src/components/sale/filesquery/filequerydetail/HandQueryDetail.vue +302 -302
  358. package/src/components/sale/filesquery/filequerydetail/MeterQueryDetail.vue +158 -158
  359. package/src/components/sale/filesquery/filequerydetail/OtherChargeQueryDetail.vue +198 -198
  360. package/src/components/sale/filesquery/filequerydetail/RecordQueryDetail.vue +125 -125
  361. package/src/components/sale/filesquery/filequerydetail/SellingHandDetail.vue +280 -280
  362. package/src/components/sale/filesquery/filequerydetail/TransferQueryDetail.vue +160 -160
  363. package/src/components/sale/filesquery/filequerydetail/UserQueryDetail.vue +155 -155
  364. package/src/components/sale/report/aode/DayReport.vue +50 -50
  365. package/src/components/sale/report/aode/DayReportSummary.vue +75 -75
  366. package/src/components/sale/report/aode/MonthByChargeType.vue +446 -446
  367. package/src/components/sale/report/aode/MonthByUserType.vue +413 -413
  368. package/src/components/sale/report/aode/YearByChargeTpye.vue +215 -215
  369. package/src/components/sale/report/aode/YearByUserType.vue +272 -272
  370. package/src/components/sale/report/aode/life/LifeDayReport.vue +50 -50
  371. package/src/components/sale/report/aode/life/LifeDayReportList.vue +241 -241
  372. package/src/components/sale/report/aode/life/LifeDayReportSummary.vue +49 -49
  373. package/src/components/sale/report/aode/life/LifeMonthReport.vue +303 -303
  374. package/src/components/sale/report/aode/life/LifeYearReport.vue +175 -175
  375. package/src/components/sale/report/aode/widget/LifeDayReportListPrint.vue +189 -189
  376. package/src/components/sale/report/aode/widget/LifeMonthPrint.vue +153 -153
  377. package/src/components/sale/report/aode/widget/LifeYearPrint.vue +143 -143
  378. package/src/components/sale/report/aode/widget/MonthByChargePrint.vue +236 -236
  379. package/src/components/sale/report/aode/widget/MonthByUserPrint.vue +232 -232
  380. package/src/components/sale/report/aode/widget/YearByChargePrint.vue +203 -203
  381. package/src/components/sale/report/aode/widget/YearByUserPrint.vue +225 -225
  382. package/src/components/scada/CaculateGasConsumputionByDay/CaculateGasConsumputionByDay.vue +290 -290
  383. package/src/components/scada/ChartDisplay/ChartDisplayManage.vue +55 -55
  384. package/src/components/scada/ChartDisplay/ChartThreeDayContrast.vue +164 -164
  385. package/src/components/scada/CumulativeFlow/CumulativeFlowHeatPlant.vue +400 -400
  386. package/src/components/scada/CumulativeFlow/CumulativeFlowManage.vue +59 -59
  387. package/src/components/scada/CumulativeFlow/CumulativeFlowRegulatorStation.vue +504 -504
  388. package/src/components/scada/CumulativeFlow/CumulativeFlowStation.vue +248 -248
  389. package/src/components/scada/GasSupplyRunning/GasSupplyRunningByDay.vue +297 -297
  390. package/src/components/scada/InstantaneousFlow/InstantaneousFlowHeatPlant.vue +389 -389
  391. package/src/components/scada/InstantaneousFlow/InstantaneousFlowManage.vue +57 -57
  392. package/src/components/scada/InstantaneousFlow/InstantaneousFlowRegulatorStation.vue +503 -503
  393. package/src/components/scada/InstantaneousFlow/InstantaneousFlowStation.vue +244 -244
  394. package/src/components/scada/OnTimePressure/OnTimePressureHeatPlant.vue +356 -356
  395. package/src/components/scada/OnTimePressure/OnTimePressureManage.vue +51 -51
  396. package/src/components/scada/OnTimePressure/OnTimePressureRegulatorStation.vue +526 -526
  397. package/src/components/scada/ThreeDayContrast/ThreeDayContrastManage.vue +282 -282
  398. package/src/components/statistical/StatisticalAnalysis.vue +247 -247
  399. package/src/components/webmeter/DrillData/LargeScreenAnalysisEcharts.vue +710 -710
  400. package/src/components/webmeter/DrillData/LostContactAnalysis.vue +531 -531
  401. package/src/components/webmeter/DrillData/LostContactAnalysisList.vue +633 -633
  402. package/src/components/webmeter/DrillData/LostContactAnalysisManage.vue +30 -30
  403. package/src/components/webmeter/DrillData/LostContactEcharts.vue +177 -177
  404. package/src/components/webmeter/DrillData/LostContactEform.vue +190 -190
  405. package/src/components/webmeter/DrillData/UserGasAll.vue +597 -596
  406. package/src/components/webmeter/DrillData/UserGasEcharts.vue +210 -210
  407. package/src/components/webmeter/DrillData/UserGasEform.vue +227 -227
  408. package/src/components/webmeter/DrillData/UserLostContactAnalysis.vue +585 -585
  409. package/src/components/webmeter/dataCollection/DataCollection.vue +676 -676
  410. package/src/components/webmeter/gasAnalysis/GasAnalysisEcharts.vue +144 -144
  411. package/src/components/webmeter/gasAnalysis/GasAnalysisSummary.vue +162 -162
  412. package/src/components/webmeter/handplan/NewWebMeterHandPlan.vue +745 -745
  413. package/src/components/webmeter/handplan/NewWebmeterHandPlanMain.vue +59 -59
  414. package/src/components/webmeter/indicatorStatisticsEchars.vue +204 -204
  415. package/src/components/webmeter/indicatorStatisticsMain.vue +257 -257
  416. package/src/components/webmeter/meterinfo/NewMeterList.vue +414 -414
  417. package/src/components/webmeter/meterinfo/NewMeterListMain.vue +53 -53
  418. package/src/components/webmeter/newwebmeter/NewException/NewContactEcharts.vue +170 -170
  419. package/src/components/webmeter/newwebmeter/NewException/NewEchartsAll.vue +111 -111
  420. package/src/components/webmeter/newwebmeter/NewException/NewExceptionEcharsTotal.vue +903 -899
  421. package/src/components/webmeter/newwebmeter/NewException/NewExceptionEform.vue +149 -149
  422. package/src/components/webmeter/newwebmeter/NewException/NewExceptionEformTotal.vue +211 -211
  423. package/src/components/webmeter/newwebmeter/NewException/NewGasEcharts.vue +209 -209
  424. package/src/components/webmeter/newwebmeter/NewException/NewHandplanEcharts.vue +238 -238
  425. package/src/components/webmeter/newwebmeter/NewException/NewInstructEcharts.vue +266 -266
  426. package/src/components/webmeter/newwebmeter/NewException/NewMeterException.vue +449 -449
  427. package/src/components/webmeter/newwebmeter/NewException/TotalExceptionByMeter.vue +607 -606
  428. package/src/components/webmeter/newwebmeter/UserGasEchartsList.vue +218 -252
  429. package/src/components/webmeter/newwebmeter/UserGasList.vue +438 -440
  430. package/src/components/webmeter/newwebmeter/UserInstructEchartsList.vue +286 -286
  431. package/src/components/webmeter/newwebmeter/UserInstructList.vue +332 -332
  432. package/src/components/webmeter/newwebmeter/signAnalysisEcharts.vue +266 -266
  433. package/src/components/webmeter/newwebmeter/signAnalysisEform.vue +175 -175
  434. package/src/components/webmeter/newwebmeter/signAnalysisListMain.vue +387 -387
  435. package/src/components/yulin/GuanWang.vue +24 -24
  436. package/src/components/yulin/SingleBarLine.vue +352 -352
  437. package/src/components/yulin/Weather.vue +157 -157
  438. package/src/expandcss.less +26 -26
  439. package/src/filiale/WEINAN/InspectListUser.vue +492 -492
  440. package/src/filiale/WEINAN/OtherChargeQuery.vue +521 -521
  441. package/src/filiale/alashan/SellingTable.vue +234 -231
  442. package/src/filiale/alashan/reportManage.js +10 -10
  443. package/src/filiale/aode/ArchivesManage.vue +38 -38
  444. package/src/filiale/aode/BusinessManage.vue +94 -94
  445. package/src/filiale/aode/DefaultPrint.js +6 -6
  446. package/src/filiale/aode/HandplanQuery.vue +632 -632
  447. package/src/filiale/aode/Tabs.vue +67 -67
  448. package/src/filiale/aode/UserQuery.vue +599 -599
  449. package/src/filiale/aode/sale.js +17 -17
  450. package/src/filiale/ceshi/ArrearsQuery.vue +642 -642
  451. package/src/filiale/ceshi/ChManageBusSummary.vue +293 -293
  452. package/src/filiale/ceshi/CollectManage.vue +94 -94
  453. package/src/filiale/ceshi/MeterRateQuery.vue +633 -633
  454. package/src/filiale/ceshi/TabButton.vue +149 -149
  455. package/src/filiale/ceshi/Tabs.vue +69 -69
  456. package/src/filiale/ceshi/reportManage.js +5 -5
  457. package/src/filiale/ceshi/sale.js +11 -11
  458. package/src/filiale/gaomi/config/DefaultPrint.js +6 -6
  459. package/src/filiale/gaomi/config/tableConfig.js +47 -47
  460. package/src/filiale/gongyi/sale/businessquery/exportConfig.js +17 -17
  461. package/src/filiale/gongyi/sale/filesquery/MeterQuery.vue +718 -718
  462. package/src/filiale/jingwei/ChargeQuery.vue +1235 -0
  463. package/src/filiale/jingwei/sale.js +2 -0
  464. package/src/filiale/jingzhou/ChargeQuery.vue +1243 -1243
  465. package/src/filiale/jingzhou/config/exportConfig.js +861 -861
  466. package/src/filiale/liaoyuan/sale.js +11 -11
  467. package/src/filiale/macheng/config/DefaultPrint.js +12 -12
  468. package/src/filiale/meihekou/UserGasEform.vue +267 -267
  469. package/src/filiale/meihekou/sale.js +26 -26
  470. package/src/filiale/qingtongxia/config/DefaultPrint.js +6 -6
  471. package/src/filiale/qingtongxia/sale.js +13 -13
  472. package/src/filiale/rongcheng/exportConfig.js +257 -257
  473. package/src/filiale/rongchuang/SellingTable.vue +250 -250
  474. package/src/filiale/rongchuang/reportManage.js +11 -11
  475. package/src/filiale/shaoguan/OtherChargeDetailQuery.vue +74 -74
  476. package/src/filiale/shaoguan/config/DefaultPrint.js +6 -6
  477. package/src/filiale/shaoguan/config/exportConfig.js +433 -433
  478. package/src/filiale/shennongjia/config/DefaultPrint.js +6 -6
  479. package/src/filiale/shennongjia/config/tableConfig.js +47 -47
  480. package/src/filiale/shennongjia/sale.js +10 -10
  481. package/src/filiale/tongchuan/FillGasQuery.vue +508 -0
  482. package/src/filiale/tongchuan/ResSelectGroupNew.vue +176 -176
  483. package/src/filiale/tongchuan/ResSelectNew.vue +144 -144
  484. package/src/filiale/tongchuan/sale.js +13 -12
  485. package/src/main.js +66 -66
  486. package/src/newmanage.js +525 -525
  487. package/src/plugins/GetLoginInfoService.js +505 -505
  488. package/src/plugins/LodopFuncs.js +124 -124
  489. package/src/plugins/getAllInputtor.js +29 -29
  490. package/src/reportManage.js +462 -462
  491. package/src/safeCheck.js +63 -63
  492. package/src/saleManage.js +2 -0
  493. package/src/stores/AppData.js +62 -62
  494. package/src/stores/DataSql.js +585 -585
  495. package/src/stores/DrillECharts.js +602 -602
  496. package/src/stores/DrillSql.js +888 -888
  497. package/src/stores/GetParames.js +15 -15
  498. package/src/stores/MagGetSaleParams.js +156 -156
  499. package/src/stores/MagLoadParams.js +63 -63
  500. package/src/stores/Util.js +132 -132
  501. package/src/stores/shanxi1.js +26 -26
  502. package/src/stores/yulin.js +27 -27
  503. package/src/webmeterManage.js +105 -105
  504. package/static/china.json +1 -1
  505. package/static/qh.json +2410 -2410
  506. package/static/res.json +58411 -58411
  507. package/static/shanxi1.json +1 -1
  508. package/static/wuhai.json +1610 -1610
  509. package/static/yulin.json +1 -1
  510. package/static//345/261/261/344/270/234/347/234/201.json +1 -1
  511. package/test/unit/.eslintrc +5 -5
  512. package/test/unit/TestUtil.js +35 -35
  513. package/test/unit/context.html +20 -20
  514. package/test/unit/index.js +13 -13
  515. package/test/unit/init.js +11 -11
  516. package/test/unit/karma.conf.js +45 -45
  517. package/test/unit/specs/components/CallReport/Repair.spec.js +25 -25
  518. package/test/unit/specs/components/ManageBusiness/EquipmentQuery.spec.js +21 -21
  519. package/test/unit/specs/components/ManageBusiness/TableWithQuery.spec.js +21 -21
  520. package/test/unit/specs/components/ManageBusiness/UserQuery.spec.js +21 -21
  521. package/webstorm.config.js +13 -13
  522. package/src/components/SellReport/SellCollect.vue +0 -183
  523. package/src/components/sale/businessquery/NewHandplanQuery.vue +0 -995
@@ -1,791 +1,791 @@
1
- <template>
2
- <div>
3
- <div class="datestyle">
4
- <label for="startDate">开始日期:</label>
5
- <datepicker id="startDate" placeholder="开始日期" class="childrendatestyle"
6
- v-model="model.startDate"
7
- :value.sync="model.startDate"
8
- :disabled-days-of-Week="[]"
9
- :format="'yyyy-MM-dd'"
10
- :show-reset-button="reset">
11
- </datepicker>
12
- <label for="endDate">结束日期:</label>
13
- <datepicker id="endDate" placeholder="结束日期" class="childrendatestyle"
14
- v-model="model.endDate"
15
- :value.sync="model.endDate"
16
- :disabled-days-of-Week="[]"
17
- :format="'yyyy-MM-dd'"
18
- :show-reset-button="reset">
19
- </datepicker>
20
- <!--<label class="control-label">组织机构</label>-->
21
- <!--<right-tree :userid.sync='userid' :source.sync='source' @re-res="getRes" id="childrenorgstyle"></right-tree>-->
22
- </div>
23
- <div class="title-1">
24
- <span>{{parenttitle.pagename}} — <span
25
- style="font-size: 0.80em">{{parenttitle.pagechildrenname}}</span></span>
26
- <button class="button-1" @click="backclick">返回</button>
27
- </div>
28
- <div class="div-1">
29
- <div class="drillcontent" v-show="!listenlistshow">
30
- <div class="menuselect">
31
- <div class="selectstyle">
32
- <!--钻取下拉列表1-->
33
- <v-select id="selectid" v-ref:selected class="childrenselectstyle" :value.sync="select0"
34
- :options='drillparam' placeholder='请选择' close-on-select clear-button
35
- @click="getinitDate">
36
- </v-select>
37
- <!--钻取下拉列表2-->
38
- <v-select v-show="childrenselectshow" id="selectchildrenid" v-ref:selected1 class="childrenselectstyle"
39
- :value.sync="select1"
40
- :options='drillchildrenparam' placeholder='请选择' close-on-select clear-button
41
- @click="getinitDate1">
42
- </v-select>
43
- <input type="text" v-model="inputtext" :placeholder='textcontent'
44
- v-show="inputtextshow">
45
- <button class="button-21" @click="listenToChild1">钻取</button>
46
- <button class="button-2" @click="listenToChild2">清空</button>
47
- </div>
48
- <!--<div class="historydiv">-->
49
- <!--<div v-show="clickhistoryshow"><span v-for="s in clickhistory"><span class="history">{{s}}</span>-></span></div>-->
50
- <!--<div v-show="clickshow"><span v-for="s in clickparam"><span class="history">{{s}}</span>-></span></div>-->
51
- <!--</div>-->
52
- </div>
53
- <div class="drilltext" v-show="!listenlistshow">
54
- <!--图表-->
55
- <div id="echarts" class="echartsstyle"></div>
56
- <!--汇总表-->
57
- <drill-pool :pooldata="datapool" class="pool"></drill-pool>
58
- </div>
59
- </div>
60
- <!--详细列表-->
61
- <drill-list :listsqldata="listsqldata" :templatename="parenttitle.pagechildrenname" class="drilllist"
62
- :class="{'drillliststyle':listenlistshow}"></drill-list>
63
- </div>
64
- </div>
65
- </template>
66
-
67
- <script>
68
- import * as Util from '../../../stores/Util'
69
- import * as Dec from '../../../stores/DrillECharts'
70
- import * as Drillsql from '../../../stores/DrillSql'
71
- import co from 'co'
72
-
73
- export default {
74
- name: "DrillData",
75
- props: {
76
- parenttitle: {
77
- pagename: String, //钻取页面name
78
- pagetitle: String, //钻取页面标题,也是取钻取信息的字段
79
- pagechildrenname: String, //钻取页面子标题
80
- }, // 钻取页面
81
- drillshow: Boolean,
82
- idname: String,
83
- childname: String, //获取初始图表的refs -name 进行setBar绘制初始echarts
84
- echartsdata: Array, //初始数据来源所钻取模块,进行汇总显示
85
- initdatatr: Object, //初始化配置文件数据
86
- listcondition: {
87
- clickparam: String,
88
- drillterm: String,
89
- tablename: String,
90
- drillcondition: String,
91
- sqlurl: String,
92
- headData: Array,
93
- bodyData: Array,
94
- },
95
- },
96
- data() {
97
- return {
98
- userid: this.$login.f.id,
99
- source: `tool.getFullTree(this.getRights().where(row.getType() != $zone$).where(row.getType() == $organization$))`,
100
- datapool: [], //汇总数据
101
- model: { //时间参数
102
- startDate: Util.toStandardDateString(),
103
- endDate: Util.toStandardDateString(),
104
- },
105
- drillparam: [], //一级钻取列表
106
- selectparam: '', //选择字段
107
- listsqldata: { //列表sql参数
108
- urlcarrydata: [],
109
- headData: [],
110
- bodyData: [],
111
- },
112
- xc: '',
113
-
114
- childrenselectshow: false, //二级下拉列表show
115
- drillchildrenparam: [], //二级下拉列表
116
- inputtextshow: false, //输入框show
117
- select0: [], //一级选中值
118
- select1: [], //二级选中值
119
- inputtext: '', //输入框
120
- textcontent: '', //输入框默认内容
121
- listenlistshow: false, //列表展开控制
122
- clickhistoryshow: false, //钻取历史显示
123
- clickshow: false, //点击历史显示
124
- datedefault: true, //默认不加载初始时间
125
- datelistif: false, //时间选择发生变化
126
-
127
- barparam: '', //饼状图点击字段
128
- clickhistory: [], //钻取历史
129
- clickparam: [], //点击历史
130
- sqlobtaindata: [], //请求后台获取的数据
131
- echartsType: '', //钻取后echarts的类型
132
- bartype: '', //时间分类类型(按年year,按月month)
133
-
134
- initflag: true, //初始化判断
135
- yname: '', //柱状图y名称
136
- xname: '', //柱状图x名称
137
- seriename: '', //seriename名称
138
- namesubif: false,
139
- }
140
-
141
- },
142
- computed: {
143
- selected() {
144
- return this.$refs.grid.selected
145
- }
146
- },
147
- methods: {
148
- // 获取组织结构
149
- getRes(obj) {
150
- this.filialeNameStr = obj.res
151
- this.filialeCodeStr = obj.resids
152
- },
153
- // 返回二级页面
154
- backclick() {
155
- this.$echarts.init(document.getElementById('echarts')).clear()
156
- this.$parent.drillshow = false
157
- this.initflag = true
158
- this.resetParam()
159
- console.log(this.datedefault,'时间判断')
160
- },
161
- //图点击事件
162
- eConsole(param) {
163
- // 对饼状图进行点击处理
164
- if (this.echartsType == 'pie') {
165
- // 点击历史
166
- this.clickparam.push(param.data.name)
167
- // 控制显示历史
168
- this.clickshow = true
169
- // 点击字段记录
170
- this.barparam = param.data
171
- }
172
- },
173
- //钻取按键响应事件
174
- listenToChild1() {
175
- // 获取下拉列表zhi
176
- var texttile = this.$refs.selected.selectedItems
177
- var texttile1 = this.$refs.selected1.selectedItems
178
- console.log(texttile, '钻取一级类型')
179
- console.log(texttile1, '钻取二级类型')
180
- // 判断是否进行选择
181
- if (typeof texttile == "undefined" || texttile == '') {
182
- this.$showMessage('未选择查询类型!')
183
- return
184
- }
185
-
186
- var conditionparamone = {} //一级钻取字段对象
187
- var conditionparamtow = {} //二级钻取字段对象
188
-
189
- console.log(this.datedefault,'时间判断')
190
- // 填充默认时间
191
- if (this.datedefault == true) {
192
- Drillsql.startDate = eval(Util.toStandardDateString().toString().substring(0, 4) + '-50') + '-01-01 00:00:00'
193
- Drillsql.endDate = this.model.endDate + ' 00:00:00'
194
- } else {
195
- Drillsql.startDate = this.model.startDate + ' 00:00:00'
196
- Drillsql.endDate = this.model.endDate + ' 00:00:00'
197
- }
198
-
199
- //特殊处理
200
- var param = Drillsql.param
201
- var param1 = Drillsql.param1
202
-
203
- if (this.inputtext != '' && this.idname == 'pastscale') {
204
- Drillsql.param = this.inputtext
205
- Drillsql.param1 = this.inputtext
206
- }
207
-
208
- //获取选中一级分类的信息
209
- conditionparamone = Drillsql.getDrillParameter(this.parenttitle.pagetitle, this.idname, texttile, '')
210
- // 填充钻取状态
211
- this.clickhistoryshow = true
212
- this.bartype = conditionparamone.name
213
- this.clickhistory.push(conditionparamone.label)
214
- this.echartsType = conditionparamone.echartsType
215
- var dateparam = conditionparamone.dateparam
216
- var dateparamif = conditionparamone.dateif
217
- if (conditionparamone.echartsType == 'bar') {
218
- this.yname = conditionparamone.yname
219
- this.xname = conditionparamone.xname
220
- this.seriename = conditionparamone.seriename
221
- this.namesubif = conditionparamone.namesubif
222
- }
223
-
224
-
225
- // 判断是否有二级钻取
226
- if (texttile1 != '') {
227
- //获取选中二级分类的信息
228
- conditionparamtow = Drillsql.getDrillParameter(this.parenttitle.pagetitle, this.idname, texttile, texttile1)
229
- // 填充钻取状态
230
- this.bartype = conditionparamtow.name
231
- this.clickhistory.push(conditionparamtow.label)
232
- this.echartsType = conditionparamtow.echartsType
233
- dateparam = conditionparamtow.dateparam
234
- dateparamif = conditionparamtow.dateif
235
- if (conditionparamtow.echartsType == 'bar') {
236
- this.yname = conditionparamtow.yname
237
- this.xname = conditionparamtow.xname
238
- this.seriename = conditionparamtow.seriename
239
- this.namesubif = conditionparamtow.namesubif
240
- }
241
-
242
-
243
- //往期购气特殊处理
244
- if (conditionparamtow.label == '高于往期购气量' && this.inputtext < 1) {
245
- this.$showMessage('请输入大于1的数!')
246
- Drillsql.param = param
247
- Drillsql.param1 = param1
248
- return
249
- }
250
- if (conditionparamtow.label == '低于往期购气量' && (this.inputtext > 1 || this.inputtext > 1)) {
251
- this.$showMessage('请输入0-1之间的数!')
252
- Drillsql.param = param
253
- Drillsql.param1 = param1
254
- return
255
- }
256
- } else {
257
- conditionparamtow = {}
258
- }
259
-
260
- // console.log(conditionparamone, '一级分类信息')
261
- // console.log(conditionparamtow, '二级分类信息')
262
- // console.log(this.clickhistory, this.echartsType, '图状态信息')
263
- // 点击字段进行sql拼接
264
- var barcondition = ''
265
- if (this.barparam != '' && conditionparamone.barparamif) {
266
- barcondition = this.barparam.drilltype + '=\'' + this.barparam.name + '\' and '
267
- }
268
- var dateif=true
269
- // 时间参数进行sql拼接
270
- if (this.datalistif && !this.datedefault && !dateparamif) {
271
- dateif=false
272
- barcondition = dateparam + '>=\'' + Drillsql.startDate+ '\' and '
273
- + dateparam + '<=\'' + Drillsql.endDate + '\' and ' + barcondition
274
- }
275
- // 拼接SQL查询条件
276
- // keys:分组字段 drillparam:选择字段 drillterm:查询条件
277
- // console.log(barcondition, '拼接字段')
278
- //重置明细数据
279
-
280
- var sqlparam = ''
281
-
282
- if (JSON.stringify(conditionparamtow) == '{}') {
283
- // 获取一级分类sql
284
-
285
- sqlparam = conditionparamone.sqlcondition
286
- } else {
287
- // 获取二级分类sql
288
- sqlparam = conditionparamtow.sqlcondition
289
- }
290
- var condition =''
291
-
292
- // 拼接点击条件
293
- if(this.idname=='usernum'|| this.idname=='pastscale'){
294
- condition =barcondition
295
- }else {
296
- condition =this.bartype+' and '+barcondition
297
- }
298
-
299
- //请求后台数据
300
- var sqlcondition = {
301
- startDate:Drillsql.startDate,
302
- endDate:Drillsql.endDate,
303
- param:Drillsql.param,
304
- param1:Drillsql.param1,
305
- param2:Drillsql.param2,
306
- condition:condition
307
- }
308
- if( this.idname=='pastscale'){
309
- var s1 = eval('(' + Drillsql.param + '-1)*100')
310
- var s1 = s1.toString().substring(0, 5)
311
- var s2 = eval(Drillsql.param1 + '*100')
312
- var s2 = s2.toString().substring(0, 5)
313
- var s3=''
314
- s3= conditionparamone.label
315
- if(s3=='全部'){
316
- s3=''
317
- }
318
- sqlcondition.s1=s1
319
- sqlcondition.s2=s2
320
- sqlcondition.s3=s3
321
- sqlcondition.param3=' and '+conditionparamone.name
322
- }
323
- console.log(sqlcondition, '图表请求sql')
324
- let getsqldata = Dec.getData(this, sqlparam ,sqlcondition)
325
- co(getsqldata)
326
- // 时间参数进行sql拼接
327
- var pagelist = Drillsql.getDrillList(this.parenttitle.pagetitle, this.idname, '', '')
328
- if (this.datalistif && !this.datedefault&&dateif) {
329
- barcondition = pagelist[2].dateparam + '>=\'' + this.model.startDate + ' 00:00:00\' and '
330
- + pagelist[2].dateparam + '<=\'' + this.model.endDate + ' 00:00:00\' and ' + barcondition
331
- this.datelistif = false
332
- }
333
- console.log(barcondition, '时间sqllist')
334
- //获取列表sql
335
- if (!conditionparamone.listif) {
336
- barcondition = barcondition + ' ' + conditionparamone.name + '\t and '
337
- }
338
- if (texttile1 != '') {
339
- barcondition = barcondition + conditionparamtow.listparam
340
- }
341
- var list = Drillsql.listparam
342
- // 警告特殊处理
343
- if (this.idname == 'caveat'||this.idname == 'lossassociation'||this.idname == 'longnotusegas'||this.idname == 'longnotbuygas') {
344
- Drillsql.listparam = ''
345
- }
346
- Drillsql.listparam1 = barcondition
347
- console.log(Drillsql.listparam1, '列表钻取条件 ')
348
- pagelist = Drillsql.getDrillList(this.parenttitle.pagetitle, this.idname, '', '')
349
- console.log(pagelist)
350
- var sqllistcondition= [this.idname+'list',20,{listparam:"\""+Drillsql.listparam+"\"",listparam1:"\""+Drillsql.listparam1+"\""}]
351
- //调用赋值函数,传递给绘图子组件
352
- this.Transfer(sqllistcondition, pagelist[0].headData, pagelist[1].bodyData)
353
- Drillsql.param = param
354
- Drillsql.param1 = param1
355
- Drillsql.listparam = list
356
- },
357
-
358
- //清空按键事件
359
- listenToChild2() {
360
- this.xc.clear()
361
- this.resetParam()
362
-
363
- //重新初始化
364
- this.initdata()
365
- },
366
- //重置参数
367
- resetParam() {
368
- this.barparam = '' //清空点击字段
369
- this.drillparam = [] //清空下拉列表
370
- this.select0 = []
371
- this.drillchildrenparam = [] //清空子下拉列表
372
- this.clickhistory = [] //清空查询历史
373
- this.clickparam = [] //清空点击历史
374
-
375
- this.model.startDate = Util.toStandardDateString() //重置时间为当前时间
376
- this.model.endDate = Util.toStandardDateString()
377
-
378
- this.childrenselectshow = false //关闭子下拉列表
379
- this.clickhistoryshow = false //关闭查询历史显示
380
- this.clickshow = false //关闭点击历史显示
381
- this.datelistif = false //关闭时间更改标志
382
- this.datedefault = true //打开时间初始标志
383
- this.inputtextshow = false //关闭输入框
384
- this.textcontent = ''
385
- this.inputtext = ''
386
- },
387
- //传递参数赋值,传递给子组件
388
- Transfer(pageurl, headData, bodyData) {
389
- this.listsqldata.urlcarrydata = pageurl
390
- this.listsqldata.headData = headData
391
- this.listsqldata.bodyData = bodyData
392
- },
393
- //初始化图表数据参数
394
- initdata() {
395
- console.log(this.echartsdata, '钻取初始化参数')
396
- console.log(this.initdatatr, '初始化获取sql的参数')
397
-
398
-
399
- Drillsql.startDate = this.initdatatr['startDate']
400
- Drillsql.endDate = this.initdatatr['endDate']
401
- Drillsql.param = this.initdatatr['param']
402
- Drillsql.param1 = this.initdatatr['param1']
403
- Drillsql.listparam = this.initdatatr['listparam']
404
- Drillsql.listparam1 = ''
405
-
406
-
407
- //特殊处理
408
- if (this.parenttitle.pagechildrenname == '主要用户展示') {
409
- Drillsql.listparam1 = ' a.f_user_type=\'非民用\' and '
410
- }
411
-
412
- this.$parent.$refs[this.childname].setBar("echarts")
413
- this.datapool = this.$parent.childdata
414
- var pagelist = Drillsql.getDrillList(this.parenttitle.pagetitle, this.idname, '', '')
415
- console.log(pagelist)
416
- var sqllistcondition= [this.idname+'list',20,{listparam:"\""+Drillsql.listparam+"\"",listparam1:"\""+Drillsql.listparam1+"\""}]
417
-
418
- //调用赋值函数,传递给绘图子组件
419
- this.Transfer(sqllistcondition, pagelist[0].headData, pagelist[1].bodyData)
420
-
421
- },
422
-
423
- getinitDate() {
424
- this.inputtextshow = false
425
- this.textcontent = ''
426
- this.inputtext = ''
427
- this.drillparam = Drillsql.getDrillParameter(this.parenttitle.pagetitle, this.idname, '', '')
428
- },
429
- }
430
- ,
431
- watch: {
432
- 'model':
433
- {
434
- deep: true,
435
- handler(val) {
436
- if(!this.$parent.drillshow){
437
- return
438
- }
439
- this.datedefault = false
440
- this.datalistif = true
441
- }
442
- ,
443
- }
444
- ,
445
- 'echartsdata':
446
- {
447
- deep: true,
448
- handler(val) {
449
- if (typeof this.echartsdata !== "undefined" && this.drillshow == true && this.initflag) {
450
- this.initdata()
451
- this.initflag = false
452
- }
453
- }
454
- ,
455
- immediate: true
456
- }
457
- ,
458
- 'drillshow':
459
- {
460
- deep: true,
461
- handler(val) {
462
- if (typeof this.echartsdata !== "undefined" && this.drillshow == true && this.initflag) {
463
- this.initdata()
464
- this.initflag = false
465
- }
466
- }
467
- ,
468
- immediate: true
469
- }
470
- ,
471
- 'select0':
472
- {
473
- deep: true,
474
- handler() {
475
- // console.log(this.select0, '选中分类的值')
476
- if (this.select0.length < 1) {
477
- return
478
- }
479
- this.select1 = ''
480
-
481
- this.childrenselectshow = false
482
- var self = this
483
- this.drillparam.forEach(function (s) {
484
- if (self.select0 == s.value && s.name == 't_area') {
485
- let gen = Dec.select(self, 't_area', '1=1')
486
- co(gen)
487
- }
488
- })
489
- setTimeout(() => {
490
- self.drillparam.forEach(function (s) {
491
- if (s.value == self.select0) {
492
- if (typeof s.children != "undefined" && JSON.stringify(s.children) != '[]') {
493
- self.childrenselectshow = true
494
- self.drillchildrenparam = s.children
495
- }
496
- }
497
-
498
- })
499
- }, 500)
500
- }
501
- }
502
- ,
503
- 'select1':
504
- {
505
- deep: true,
506
- handler() {
507
- // console.log(this.select1, '选中分类的值')
508
- if (this.select1.length < 1) {
509
- return
510
- }
511
- var self = this
512
- var l = 0
513
- var texttile = this.$refs.selected.selectedItems
514
- this.drillparam.forEach(function (s) {
515
- if (s.label == texttile && s.inputchildren != '') {
516
- l++
517
- self.inputtextshow = true
518
- self.textcontent = s.inputchildren
519
- }
520
- })
521
- if (l == 0) {
522
- this.inputtextshow = false
523
- this.textcontent = ''
524
- this.inputtext = ''
525
- }
526
- }
527
- }
528
- ,
529
- 'sqlobtaindata':
530
- {
531
- deep: true,
532
- handler(val) {
533
- if (this.sqlobtaindata.length < 1) {
534
- this.$showMessage('数据为空!')
535
- return
536
- }
537
- console.log('测试数据变化')
538
- if (this.echartsType == 'pie') {
539
- this.datapool = this.sqlobtaindata
540
- Dec.setPie(this, 'echarts', this.sqlobtaindata, this.sqlobtaindata)
541
- }
542
- if (this.echartsType == 'bar') {
543
- this.datapool = this.sqlobtaindata
544
- var cachebardata = Dec.DataIntegration(this.sqlobtaindata)
545
- // console.log(cachebardata, this.bartype, '整合数据及柱状图状态')
546
- Dec.setBar(this, 'echarts', cachebardata, this.xname, this.yname, this.seriename, this.idname, this.namesubif)
547
- }
548
- }
549
- },
550
- },
551
- ready() {
552
- // console.log(this.drillshow, '三级页面')
553
- // this.model.startDate = Util.toStandardDateString()
554
- // this.model.endDate = Util.toStandardDateString()
555
- }
556
- }
557
- </script>
558
-
559
- <style>
560
- .childrendatestyle input {
561
- background-color: rgba(1, 207, 242, 0.01);
562
- border: solid 1px #6fd9d0;
563
- color: white;
564
- }
565
-
566
- .childrendatestyle .datepicker-popup {
567
- background-color: #023740 !important;
568
- border: solid 1px #6fd9d0;
569
- color: white !important;
570
- }
571
-
572
- .childrendatestyle .datepicker-monthRange span:hover,
573
- .datepicker-ctrl p:hover,
574
- .datepicker-ctrl i:hover,
575
- .datepicker-dateRange span:hover,
576
- .datepicker-dateRange-item-hover {
577
- background-color: #00f3ff !important;
578
- /*border: solid 1px #6fd9d0;*/
579
- color: white !important;
580
- }
581
-
582
- .childrenselectstyle button {
583
- background-color: #013e48 !important;
584
- border: solid 1px #6fd9d0 !important;
585
- color: white !important;
586
- }
587
-
588
- .childrenselectstyle ul {
589
- background-color: #013e48 !important;
590
- border: solid 1px #6fd9d0 !important;
591
-
592
- }
593
-
594
- .childrenselectstyle div {
595
- background-color: #013e48 !important;
596
- color: white !important;
597
- }
598
-
599
- .childrenselectstyle li a {
600
- color: white !important;
601
- }
602
-
603
- .childrenselectstyle li a:hover {
604
- background-color: #05525f;
605
- }
606
-
607
- #childrenorgstyle #vc-chooser .list-group-item {
608
- background-color: #013e48 !important;
609
- color: #fff !important;
610
- }
611
-
612
- #childrenorgstyle #vc-chooser .list-group {
613
- background-color: #6fd9d0 !important;
614
- color: #fff !important;
615
- }
616
-
617
- #childrenorgstyle #vc-chooser button {
618
- border: solid 1px #6fd9d0;
619
- background-color: rgba(1, 207, 242, 0.01) !important;
620
- color: #fff !important;
621
- }
622
- </style>
623
- <style scoped>
624
- label {
625
- color: white;
626
- }
627
-
628
- .datestyle {
629
- padding-left: 3%;
630
- width: 100%;
631
- height: 9%;
632
- }
633
-
634
- .div-1 {
635
-
636
- height: 80%;
637
- width: 100%;
638
- }
639
-
640
- .title-1 {
641
- border-radius: 10px 10px 0px 0px;
642
- margin: 0% 2%;
643
- padding: 0% 2%;
644
- font-size: 1.6em;
645
- display: flex;
646
- /*实现垂直居中*/
647
- align-items: center;
648
- justify-content: space-between;
649
- color: #fff;
650
- height: 8%;
651
- width: 96%;
652
- background-color: rgba(1, 207, 242, 0.08);
653
- }
654
-
655
- .button-1 {
656
- height: 65%;
657
- width: 6%;
658
- margin-right: 1%;
659
- background-color: #013e48;
660
- border-radius: 6px;
661
- border: solid 1px #40cfc3;
662
- font-size: 0.65em;
663
- float: right;
664
- }
665
-
666
- .button-2 {
667
- color: white;
668
- height: 100%;
669
- width: 12%;
670
- margin-left: 2%;
671
- margin-top: 0.1%;
672
- background-color: #013e48;
673
- border-radius: 6px;
674
- border: solid 1px #40cfc3;
675
- font-size: 1em;
676
- }
677
-
678
- .button-1:hover {
679
- background-color: #40cfc3;
680
- border: 1px solid #00ffea;
681
- border-radius: 6px;
682
- }
683
-
684
- .button-2:hover {
685
- background-color: #00ffe9;
686
- border: 1px solid #013e48;
687
- border-radius: 6px;
688
- }
689
-
690
- .button-21 {
691
- background-color: #40cfc3;
692
- border-radius: 6px;
693
- color: white;
694
- height: 100%;
695
- width: 12%;
696
- margin-left: 2%;
697
- margin-top: 0.1%;
698
- border: solid 1px #40cfc3;
699
- font-size: 1em;
700
- }
701
-
702
- .button-21:hover {
703
- border: 1px solid #00ffea;
704
- border-radius: 6px;
705
- }
706
-
707
- .drillcontent {
708
- margin-left: 2%;
709
- width: 52%;
710
- height: 100%;
711
- float: left;
712
- background-color: rgba(1, 207, 242, 0.04);
713
- }
714
-
715
- .drilltext {
716
- width: 100%;
717
- height: 84%;
718
- /*background-color: #c7254e;*/
719
- }
720
-
721
- .echartsstyle {
722
- height: 95%;
723
- width: 56%;
724
- float: left;
725
- /*background-color: white;*/
726
- }
727
-
728
- .pool {
729
- height: 100%;
730
- width: 44%;
731
- float: left;
732
- /*background-color: #c7254e;*/
733
- }
734
-
735
- .drilllist {
736
- height: 100%;
737
- width: 44%;
738
- float: left;
739
- background-color: rgba(1, 207, 242, 0.04);
740
- }
741
-
742
- .drillliststyle {
743
- margin-left: 2%;
744
- height: 96%;
745
- width: 96%;
746
- float: left;
747
- background-color: rgba(1, 207, 242, 0.04);
748
- }
749
-
750
- .menuselect {
751
- margin-top: 1%;
752
- margin-left: 4%;
753
- height: 16%;
754
- width: 96%;
755
- }
756
-
757
- .selectstyle {
758
- height: 45%;
759
- }
760
-
761
- .datestyle label {
762
- margin-left: 1%;
763
- margin-top: 1%;
764
- }
765
-
766
- #selectchildrenid {
767
- margin-left: 1%;
768
- }
769
-
770
- .history {
771
- border-radius: 2px;
772
- border: solid 1px #2f9ad1;
773
- color: #2f9ad1;
774
- }
775
-
776
- .historydiv div {
777
- height: 49%;
778
- }
779
-
780
- .historydiv {
781
- height: 55%;
782
- }
783
-
784
- .selectstyle input {
785
- width: 20%;
786
- height: 95%;
787
- background-color: #023740 !important;
788
- border: solid 1px #6fd9d0;
789
- color: white !important;
790
- }
791
- </style>
1
+ <template>
2
+ <div>
3
+ <div class="datestyle">
4
+ <label for="startDate">开始日期:</label>
5
+ <datepicker id="startDate" placeholder="开始日期" class="childrendatestyle"
6
+ v-model="model.startDate"
7
+ :value.sync="model.startDate"
8
+ :disabled-days-of-Week="[]"
9
+ :format="'yyyy-MM-dd'"
10
+ :show-reset-button="reset">
11
+ </datepicker>
12
+ <label for="endDate">结束日期:</label>
13
+ <datepicker id="endDate" placeholder="结束日期" class="childrendatestyle"
14
+ v-model="model.endDate"
15
+ :value.sync="model.endDate"
16
+ :disabled-days-of-Week="[]"
17
+ :format="'yyyy-MM-dd'"
18
+ :show-reset-button="reset">
19
+ </datepicker>
20
+ <!--<label class="control-label">组织机构</label>-->
21
+ <!--<right-tree :userid.sync='userid' :source.sync='source' @re-res="getRes" id="childrenorgstyle"></right-tree>-->
22
+ </div>
23
+ <div class="title-1">
24
+ <span>{{parenttitle.pagename}} — <span
25
+ style="font-size: 0.80em">{{parenttitle.pagechildrenname}}</span></span>
26
+ <button class="button-1" @click="backclick">返回</button>
27
+ </div>
28
+ <div class="div-1">
29
+ <div class="drillcontent" v-show="!listenlistshow">
30
+ <div class="menuselect">
31
+ <div class="selectstyle">
32
+ <!--钻取下拉列表1-->
33
+ <v-select id="selectid" v-ref:selected class="childrenselectstyle" :value.sync="select0"
34
+ :options='drillparam' placeholder='请选择' close-on-select clear-button
35
+ @click="getinitDate">
36
+ </v-select>
37
+ <!--钻取下拉列表2-->
38
+ <v-select v-show="childrenselectshow" id="selectchildrenid" v-ref:selected1 class="childrenselectstyle"
39
+ :value.sync="select1"
40
+ :options='drillchildrenparam' placeholder='请选择' close-on-select clear-button
41
+ @click="getinitDate1">
42
+ </v-select>
43
+ <input type="text" v-model="inputtext" :placeholder='textcontent'
44
+ v-show="inputtextshow">
45
+ <button class="button-21" @click="listenToChild1">钻取</button>
46
+ <button class="button-2" @click="listenToChild2">清空</button>
47
+ </div>
48
+ <!--<div class="historydiv">-->
49
+ <!--<div v-show="clickhistoryshow"><span v-for="s in clickhistory"><span class="history">{{s}}</span>-></span></div>-->
50
+ <!--<div v-show="clickshow"><span v-for="s in clickparam"><span class="history">{{s}}</span>-></span></div>-->
51
+ <!--</div>-->
52
+ </div>
53
+ <div class="drilltext" v-show="!listenlistshow">
54
+ <!--图表-->
55
+ <div id="echarts" class="echartsstyle"></div>
56
+ <!--汇总表-->
57
+ <drill-pool :pooldata="datapool" class="pool"></drill-pool>
58
+ </div>
59
+ </div>
60
+ <!--详细列表-->
61
+ <drill-list :listsqldata="listsqldata" :templatename="parenttitle.pagechildrenname" class="drilllist"
62
+ :class="{'drillliststyle':listenlistshow}"></drill-list>
63
+ </div>
64
+ </div>
65
+ </template>
66
+
67
+ <script>
68
+ import * as Util from '../../../stores/Util'
69
+ import * as Dec from '../../../stores/DrillECharts'
70
+ import * as Drillsql from '../../../stores/DrillSql'
71
+ import co from 'co'
72
+
73
+ export default {
74
+ name: "DrillData",
75
+ props: {
76
+ parenttitle: {
77
+ pagename: String, //钻取页面name
78
+ pagetitle: String, //钻取页面标题,也是取钻取信息的字段
79
+ pagechildrenname: String, //钻取页面子标题
80
+ }, // 钻取页面
81
+ drillshow: Boolean,
82
+ idname: String,
83
+ childname: String, //获取初始图表的refs -name 进行setBar绘制初始echarts
84
+ echartsdata: Array, //初始数据来源所钻取模块,进行汇总显示
85
+ initdatatr: Object, //初始化配置文件数据
86
+ listcondition: {
87
+ clickparam: String,
88
+ drillterm: String,
89
+ tablename: String,
90
+ drillcondition: String,
91
+ sqlurl: String,
92
+ headData: Array,
93
+ bodyData: Array,
94
+ },
95
+ },
96
+ data() {
97
+ return {
98
+ userid: this.$login.f.id,
99
+ source: `tool.getFullTree(this.getRights().where(row.getType() != $zone$).where(row.getType() == $organization$))`,
100
+ datapool: [], //汇总数据
101
+ model: { //时间参数
102
+ startDate: Util.toStandardDateString(),
103
+ endDate: Util.toStandardDateString(),
104
+ },
105
+ drillparam: [], //一级钻取列表
106
+ selectparam: '', //选择字段
107
+ listsqldata: { //列表sql参数
108
+ urlcarrydata: [],
109
+ headData: [],
110
+ bodyData: [],
111
+ },
112
+ xc: '',
113
+
114
+ childrenselectshow: false, //二级下拉列表show
115
+ drillchildrenparam: [], //二级下拉列表
116
+ inputtextshow: false, //输入框show
117
+ select0: [], //一级选中值
118
+ select1: [], //二级选中值
119
+ inputtext: '', //输入框
120
+ textcontent: '', //输入框默认内容
121
+ listenlistshow: false, //列表展开控制
122
+ clickhistoryshow: false, //钻取历史显示
123
+ clickshow: false, //点击历史显示
124
+ datedefault: true, //默认不加载初始时间
125
+ datelistif: false, //时间选择发生变化
126
+
127
+ barparam: '', //饼状图点击字段
128
+ clickhistory: [], //钻取历史
129
+ clickparam: [], //点击历史
130
+ sqlobtaindata: [], //请求后台获取的数据
131
+ echartsType: '', //钻取后echarts的类型
132
+ bartype: '', //时间分类类型(按年year,按月month)
133
+
134
+ initflag: true, //初始化判断
135
+ yname: '', //柱状图y名称
136
+ xname: '', //柱状图x名称
137
+ seriename: '', //seriename名称
138
+ namesubif: false,
139
+ }
140
+
141
+ },
142
+ computed: {
143
+ selected() {
144
+ return this.$refs.grid.selected
145
+ }
146
+ },
147
+ methods: {
148
+ // 获取组织结构
149
+ getRes(obj) {
150
+ this.filialeNameStr = obj.res
151
+ this.filialeCodeStr = obj.resids
152
+ },
153
+ // 返回二级页面
154
+ backclick() {
155
+ this.$echarts.init(document.getElementById('echarts')).clear()
156
+ this.$parent.drillshow = false
157
+ this.initflag = true
158
+ this.resetParam()
159
+ console.log(this.datedefault,'时间判断')
160
+ },
161
+ //图点击事件
162
+ eConsole(param) {
163
+ // 对饼状图进行点击处理
164
+ if (this.echartsType == 'pie') {
165
+ // 点击历史
166
+ this.clickparam.push(param.data.name)
167
+ // 控制显示历史
168
+ this.clickshow = true
169
+ // 点击字段记录
170
+ this.barparam = param.data
171
+ }
172
+ },
173
+ //钻取按键响应事件
174
+ listenToChild1() {
175
+ // 获取下拉列表zhi
176
+ var texttile = this.$refs.selected.selectedItems
177
+ var texttile1 = this.$refs.selected1.selectedItems
178
+ console.log(texttile, '钻取一级类型')
179
+ console.log(texttile1, '钻取二级类型')
180
+ // 判断是否进行选择
181
+ if (typeof texttile == "undefined" || texttile == '') {
182
+ this.$showMessage('未选择查询类型!')
183
+ return
184
+ }
185
+
186
+ var conditionparamone = {} //一级钻取字段对象
187
+ var conditionparamtow = {} //二级钻取字段对象
188
+
189
+ console.log(this.datedefault,'时间判断')
190
+ // 填充默认时间
191
+ if (this.datedefault == true) {
192
+ Drillsql.startDate = eval(Util.toStandardDateString().toString().substring(0, 4) + '-50') + '-01-01 00:00:00'
193
+ Drillsql.endDate = this.model.endDate + ' 00:00:00'
194
+ } else {
195
+ Drillsql.startDate = this.model.startDate + ' 00:00:00'
196
+ Drillsql.endDate = this.model.endDate + ' 00:00:00'
197
+ }
198
+
199
+ //特殊处理
200
+ var param = Drillsql.param
201
+ var param1 = Drillsql.param1
202
+
203
+ if (this.inputtext != '' && this.idname == 'pastscale') {
204
+ Drillsql.param = this.inputtext
205
+ Drillsql.param1 = this.inputtext
206
+ }
207
+
208
+ //获取选中一级分类的信息
209
+ conditionparamone = Drillsql.getDrillParameter(this.parenttitle.pagetitle, this.idname, texttile, '')
210
+ // 填充钻取状态
211
+ this.clickhistoryshow = true
212
+ this.bartype = conditionparamone.name
213
+ this.clickhistory.push(conditionparamone.label)
214
+ this.echartsType = conditionparamone.echartsType
215
+ var dateparam = conditionparamone.dateparam
216
+ var dateparamif = conditionparamone.dateif
217
+ if (conditionparamone.echartsType == 'bar') {
218
+ this.yname = conditionparamone.yname
219
+ this.xname = conditionparamone.xname
220
+ this.seriename = conditionparamone.seriename
221
+ this.namesubif = conditionparamone.namesubif
222
+ }
223
+
224
+
225
+ // 判断是否有二级钻取
226
+ if (texttile1 != '') {
227
+ //获取选中二级分类的信息
228
+ conditionparamtow = Drillsql.getDrillParameter(this.parenttitle.pagetitle, this.idname, texttile, texttile1)
229
+ // 填充钻取状态
230
+ this.bartype = conditionparamtow.name
231
+ this.clickhistory.push(conditionparamtow.label)
232
+ this.echartsType = conditionparamtow.echartsType
233
+ dateparam = conditionparamtow.dateparam
234
+ dateparamif = conditionparamtow.dateif
235
+ if (conditionparamtow.echartsType == 'bar') {
236
+ this.yname = conditionparamtow.yname
237
+ this.xname = conditionparamtow.xname
238
+ this.seriename = conditionparamtow.seriename
239
+ this.namesubif = conditionparamtow.namesubif
240
+ }
241
+
242
+
243
+ //往期购气特殊处理
244
+ if (conditionparamtow.label == '高于往期购气量' && this.inputtext < 1) {
245
+ this.$showMessage('请输入大于1的数!')
246
+ Drillsql.param = param
247
+ Drillsql.param1 = param1
248
+ return
249
+ }
250
+ if (conditionparamtow.label == '低于往期购气量' && (this.inputtext > 1 || this.inputtext > 1)) {
251
+ this.$showMessage('请输入0-1之间的数!')
252
+ Drillsql.param = param
253
+ Drillsql.param1 = param1
254
+ return
255
+ }
256
+ } else {
257
+ conditionparamtow = {}
258
+ }
259
+
260
+ // console.log(conditionparamone, '一级分类信息')
261
+ // console.log(conditionparamtow, '二级分类信息')
262
+ // console.log(this.clickhistory, this.echartsType, '图状态信息')
263
+ // 点击字段进行sql拼接
264
+ var barcondition = ''
265
+ if (this.barparam != '' && conditionparamone.barparamif) {
266
+ barcondition = this.barparam.drilltype + '=\'' + this.barparam.name + '\' and '
267
+ }
268
+ var dateif=true
269
+ // 时间参数进行sql拼接
270
+ if (this.datalistif && !this.datedefault && !dateparamif) {
271
+ dateif=false
272
+ barcondition = dateparam + '>=\'' + Drillsql.startDate+ '\' and '
273
+ + dateparam + '<=\'' + Drillsql.endDate + '\' and ' + barcondition
274
+ }
275
+ // 拼接SQL查询条件
276
+ // keys:分组字段 drillparam:选择字段 drillterm:查询条件
277
+ // console.log(barcondition, '拼接字段')
278
+ //重置明细数据
279
+
280
+ var sqlparam = ''
281
+
282
+ if (JSON.stringify(conditionparamtow) == '{}') {
283
+ // 获取一级分类sql
284
+
285
+ sqlparam = conditionparamone.sqlcondition
286
+ } else {
287
+ // 获取二级分类sql
288
+ sqlparam = conditionparamtow.sqlcondition
289
+ }
290
+ var condition =''
291
+
292
+ // 拼接点击条件
293
+ if(this.idname=='usernum'|| this.idname=='pastscale'){
294
+ condition =barcondition
295
+ }else {
296
+ condition =this.bartype+' and '+barcondition
297
+ }
298
+
299
+ //请求后台数据
300
+ var sqlcondition = {
301
+ startDate:Drillsql.startDate,
302
+ endDate:Drillsql.endDate,
303
+ param:Drillsql.param,
304
+ param1:Drillsql.param1,
305
+ param2:Drillsql.param2,
306
+ condition:condition
307
+ }
308
+ if( this.idname=='pastscale'){
309
+ var s1 = eval('(' + Drillsql.param + '-1)*100')
310
+ var s1 = s1.toString().substring(0, 5)
311
+ var s2 = eval(Drillsql.param1 + '*100')
312
+ var s2 = s2.toString().substring(0, 5)
313
+ var s3=''
314
+ s3= conditionparamone.label
315
+ if(s3=='全部'){
316
+ s3=''
317
+ }
318
+ sqlcondition.s1=s1
319
+ sqlcondition.s2=s2
320
+ sqlcondition.s3=s3
321
+ sqlcondition.param3=' and '+conditionparamone.name
322
+ }
323
+ console.log(sqlcondition, '图表请求sql')
324
+ let getsqldata = Dec.getData(this, sqlparam ,sqlcondition)
325
+ co(getsqldata)
326
+ // 时间参数进行sql拼接
327
+ var pagelist = Drillsql.getDrillList(this.parenttitle.pagetitle, this.idname, '', '')
328
+ if (this.datalistif && !this.datedefault&&dateif) {
329
+ barcondition = pagelist[2].dateparam + '>=\'' + this.model.startDate + ' 00:00:00\' and '
330
+ + pagelist[2].dateparam + '<=\'' + this.model.endDate + ' 00:00:00\' and ' + barcondition
331
+ this.datelistif = false
332
+ }
333
+ console.log(barcondition, '时间sqllist')
334
+ //获取列表sql
335
+ if (!conditionparamone.listif) {
336
+ barcondition = barcondition + ' ' + conditionparamone.name + '\t and '
337
+ }
338
+ if (texttile1 != '') {
339
+ barcondition = barcondition + conditionparamtow.listparam
340
+ }
341
+ var list = Drillsql.listparam
342
+ // 警告特殊处理
343
+ if (this.idname == 'caveat'||this.idname == 'lossassociation'||this.idname == 'longnotusegas'||this.idname == 'longnotbuygas') {
344
+ Drillsql.listparam = ''
345
+ }
346
+ Drillsql.listparam1 = barcondition
347
+ console.log(Drillsql.listparam1, '列表钻取条件 ')
348
+ pagelist = Drillsql.getDrillList(this.parenttitle.pagetitle, this.idname, '', '')
349
+ console.log(pagelist)
350
+ var sqllistcondition= [this.idname+'list',20,{listparam:"\""+Drillsql.listparam+"\"",listparam1:"\""+Drillsql.listparam1+"\""}]
351
+ //调用赋值函数,传递给绘图子组件
352
+ this.Transfer(sqllistcondition, pagelist[0].headData, pagelist[1].bodyData)
353
+ Drillsql.param = param
354
+ Drillsql.param1 = param1
355
+ Drillsql.listparam = list
356
+ },
357
+
358
+ //清空按键事件
359
+ listenToChild2() {
360
+ this.xc.clear()
361
+ this.resetParam()
362
+
363
+ //重新初始化
364
+ this.initdata()
365
+ },
366
+ //重置参数
367
+ resetParam() {
368
+ this.barparam = '' //清空点击字段
369
+ this.drillparam = [] //清空下拉列表
370
+ this.select0 = []
371
+ this.drillchildrenparam = [] //清空子下拉列表
372
+ this.clickhistory = [] //清空查询历史
373
+ this.clickparam = [] //清空点击历史
374
+
375
+ this.model.startDate = Util.toStandardDateString() //重置时间为当前时间
376
+ this.model.endDate = Util.toStandardDateString()
377
+
378
+ this.childrenselectshow = false //关闭子下拉列表
379
+ this.clickhistoryshow = false //关闭查询历史显示
380
+ this.clickshow = false //关闭点击历史显示
381
+ this.datelistif = false //关闭时间更改标志
382
+ this.datedefault = true //打开时间初始标志
383
+ this.inputtextshow = false //关闭输入框
384
+ this.textcontent = ''
385
+ this.inputtext = ''
386
+ },
387
+ //传递参数赋值,传递给子组件
388
+ Transfer(pageurl, headData, bodyData) {
389
+ this.listsqldata.urlcarrydata = pageurl
390
+ this.listsqldata.headData = headData
391
+ this.listsqldata.bodyData = bodyData
392
+ },
393
+ //初始化图表数据参数
394
+ initdata() {
395
+ console.log(this.echartsdata, '钻取初始化参数')
396
+ console.log(this.initdatatr, '初始化获取sql的参数')
397
+
398
+
399
+ Drillsql.startDate = this.initdatatr['startDate']
400
+ Drillsql.endDate = this.initdatatr['endDate']
401
+ Drillsql.param = this.initdatatr['param']
402
+ Drillsql.param1 = this.initdatatr['param1']
403
+ Drillsql.listparam = this.initdatatr['listparam']
404
+ Drillsql.listparam1 = ''
405
+
406
+
407
+ //特殊处理
408
+ if (this.parenttitle.pagechildrenname == '主要用户展示') {
409
+ Drillsql.listparam1 = ' a.f_user_type=\'非民用\' and '
410
+ }
411
+
412
+ this.$parent.$refs[this.childname].setBar("echarts")
413
+ this.datapool = this.$parent.childdata
414
+ var pagelist = Drillsql.getDrillList(this.parenttitle.pagetitle, this.idname, '', '')
415
+ console.log(pagelist)
416
+ var sqllistcondition= [this.idname+'list',20,{listparam:"\""+Drillsql.listparam+"\"",listparam1:"\""+Drillsql.listparam1+"\""}]
417
+
418
+ //调用赋值函数,传递给绘图子组件
419
+ this.Transfer(sqllistcondition, pagelist[0].headData, pagelist[1].bodyData)
420
+
421
+ },
422
+
423
+ getinitDate() {
424
+ this.inputtextshow = false
425
+ this.textcontent = ''
426
+ this.inputtext = ''
427
+ this.drillparam = Drillsql.getDrillParameter(this.parenttitle.pagetitle, this.idname, '', '')
428
+ },
429
+ }
430
+ ,
431
+ watch: {
432
+ 'model':
433
+ {
434
+ deep: true,
435
+ handler(val) {
436
+ if(!this.$parent.drillshow){
437
+ return
438
+ }
439
+ this.datedefault = false
440
+ this.datalistif = true
441
+ }
442
+ ,
443
+ }
444
+ ,
445
+ 'echartsdata':
446
+ {
447
+ deep: true,
448
+ handler(val) {
449
+ if (typeof this.echartsdata !== "undefined" && this.drillshow == true && this.initflag) {
450
+ this.initdata()
451
+ this.initflag = false
452
+ }
453
+ }
454
+ ,
455
+ immediate: true
456
+ }
457
+ ,
458
+ 'drillshow':
459
+ {
460
+ deep: true,
461
+ handler(val) {
462
+ if (typeof this.echartsdata !== "undefined" && this.drillshow == true && this.initflag) {
463
+ this.initdata()
464
+ this.initflag = false
465
+ }
466
+ }
467
+ ,
468
+ immediate: true
469
+ }
470
+ ,
471
+ 'select0':
472
+ {
473
+ deep: true,
474
+ handler() {
475
+ // console.log(this.select0, '选中分类的值')
476
+ if (this.select0.length < 1) {
477
+ return
478
+ }
479
+ this.select1 = ''
480
+
481
+ this.childrenselectshow = false
482
+ var self = this
483
+ this.drillparam.forEach(function (s) {
484
+ if (self.select0 == s.value && s.name == 't_area') {
485
+ let gen = Dec.select(self, 't_area', '1=1')
486
+ co(gen)
487
+ }
488
+ })
489
+ setTimeout(() => {
490
+ self.drillparam.forEach(function (s) {
491
+ if (s.value == self.select0) {
492
+ if (typeof s.children != "undefined" && JSON.stringify(s.children) != '[]') {
493
+ self.childrenselectshow = true
494
+ self.drillchildrenparam = s.children
495
+ }
496
+ }
497
+
498
+ })
499
+ }, 500)
500
+ }
501
+ }
502
+ ,
503
+ 'select1':
504
+ {
505
+ deep: true,
506
+ handler() {
507
+ // console.log(this.select1, '选中分类的值')
508
+ if (this.select1.length < 1) {
509
+ return
510
+ }
511
+ var self = this
512
+ var l = 0
513
+ var texttile = this.$refs.selected.selectedItems
514
+ this.drillparam.forEach(function (s) {
515
+ if (s.label == texttile && s.inputchildren != '') {
516
+ l++
517
+ self.inputtextshow = true
518
+ self.textcontent = s.inputchildren
519
+ }
520
+ })
521
+ if (l == 0) {
522
+ this.inputtextshow = false
523
+ this.textcontent = ''
524
+ this.inputtext = ''
525
+ }
526
+ }
527
+ }
528
+ ,
529
+ 'sqlobtaindata':
530
+ {
531
+ deep: true,
532
+ handler(val) {
533
+ if (this.sqlobtaindata.length < 1) {
534
+ this.$showMessage('数据为空!')
535
+ return
536
+ }
537
+ console.log('测试数据变化')
538
+ if (this.echartsType == 'pie') {
539
+ this.datapool = this.sqlobtaindata
540
+ Dec.setPie(this, 'echarts', this.sqlobtaindata, this.sqlobtaindata)
541
+ }
542
+ if (this.echartsType == 'bar') {
543
+ this.datapool = this.sqlobtaindata
544
+ var cachebardata = Dec.DataIntegration(this.sqlobtaindata)
545
+ // console.log(cachebardata, this.bartype, '整合数据及柱状图状态')
546
+ Dec.setBar(this, 'echarts', cachebardata, this.xname, this.yname, this.seriename, this.idname, this.namesubif)
547
+ }
548
+ }
549
+ },
550
+ },
551
+ ready() {
552
+ // console.log(this.drillshow, '三级页面')
553
+ // this.model.startDate = Util.toStandardDateString()
554
+ // this.model.endDate = Util.toStandardDateString()
555
+ }
556
+ }
557
+ </script>
558
+
559
+ <style>
560
+ .childrendatestyle input {
561
+ background-color: rgba(1, 207, 242, 0.01);
562
+ border: solid 1px #6fd9d0;
563
+ color: white;
564
+ }
565
+
566
+ .childrendatestyle .datepicker-popup {
567
+ background-color: #023740 !important;
568
+ border: solid 1px #6fd9d0;
569
+ color: white !important;
570
+ }
571
+
572
+ .childrendatestyle .datepicker-monthRange span:hover,
573
+ .datepicker-ctrl p:hover,
574
+ .datepicker-ctrl i:hover,
575
+ .datepicker-dateRange span:hover,
576
+ .datepicker-dateRange-item-hover {
577
+ background-color: #00f3ff !important;
578
+ /*border: solid 1px #6fd9d0;*/
579
+ color: white !important;
580
+ }
581
+
582
+ .childrenselectstyle button {
583
+ background-color: #013e48 !important;
584
+ border: solid 1px #6fd9d0 !important;
585
+ color: white !important;
586
+ }
587
+
588
+ .childrenselectstyle ul {
589
+ background-color: #013e48 !important;
590
+ border: solid 1px #6fd9d0 !important;
591
+
592
+ }
593
+
594
+ .childrenselectstyle div {
595
+ background-color: #013e48 !important;
596
+ color: white !important;
597
+ }
598
+
599
+ .childrenselectstyle li a {
600
+ color: white !important;
601
+ }
602
+
603
+ .childrenselectstyle li a:hover {
604
+ background-color: #05525f;
605
+ }
606
+
607
+ #childrenorgstyle #vc-chooser .list-group-item {
608
+ background-color: #013e48 !important;
609
+ color: #fff !important;
610
+ }
611
+
612
+ #childrenorgstyle #vc-chooser .list-group {
613
+ background-color: #6fd9d0 !important;
614
+ color: #fff !important;
615
+ }
616
+
617
+ #childrenorgstyle #vc-chooser button {
618
+ border: solid 1px #6fd9d0;
619
+ background-color: rgba(1, 207, 242, 0.01) !important;
620
+ color: #fff !important;
621
+ }
622
+ </style>
623
+ <style scoped>
624
+ label {
625
+ color: white;
626
+ }
627
+
628
+ .datestyle {
629
+ padding-left: 3%;
630
+ width: 100%;
631
+ height: 9%;
632
+ }
633
+
634
+ .div-1 {
635
+
636
+ height: 80%;
637
+ width: 100%;
638
+ }
639
+
640
+ .title-1 {
641
+ border-radius: 10px 10px 0px 0px;
642
+ margin: 0% 2%;
643
+ padding: 0% 2%;
644
+ font-size: 1.6em;
645
+ display: flex;
646
+ /*实现垂直居中*/
647
+ align-items: center;
648
+ justify-content: space-between;
649
+ color: #fff;
650
+ height: 8%;
651
+ width: 96%;
652
+ background-color: rgba(1, 207, 242, 0.08);
653
+ }
654
+
655
+ .button-1 {
656
+ height: 65%;
657
+ width: 6%;
658
+ margin-right: 1%;
659
+ background-color: #013e48;
660
+ border-radius: 6px;
661
+ border: solid 1px #40cfc3;
662
+ font-size: 0.65em;
663
+ float: right;
664
+ }
665
+
666
+ .button-2 {
667
+ color: white;
668
+ height: 100%;
669
+ width: 12%;
670
+ margin-left: 2%;
671
+ margin-top: 0.1%;
672
+ background-color: #013e48;
673
+ border-radius: 6px;
674
+ border: solid 1px #40cfc3;
675
+ font-size: 1em;
676
+ }
677
+
678
+ .button-1:hover {
679
+ background-color: #40cfc3;
680
+ border: 1px solid #00ffea;
681
+ border-radius: 6px;
682
+ }
683
+
684
+ .button-2:hover {
685
+ background-color: #00ffe9;
686
+ border: 1px solid #013e48;
687
+ border-radius: 6px;
688
+ }
689
+
690
+ .button-21 {
691
+ background-color: #40cfc3;
692
+ border-radius: 6px;
693
+ color: white;
694
+ height: 100%;
695
+ width: 12%;
696
+ margin-left: 2%;
697
+ margin-top: 0.1%;
698
+ border: solid 1px #40cfc3;
699
+ font-size: 1em;
700
+ }
701
+
702
+ .button-21:hover {
703
+ border: 1px solid #00ffea;
704
+ border-radius: 6px;
705
+ }
706
+
707
+ .drillcontent {
708
+ margin-left: 2%;
709
+ width: 52%;
710
+ height: 100%;
711
+ float: left;
712
+ background-color: rgba(1, 207, 242, 0.04);
713
+ }
714
+
715
+ .drilltext {
716
+ width: 100%;
717
+ height: 84%;
718
+ /*background-color: #c7254e;*/
719
+ }
720
+
721
+ .echartsstyle {
722
+ height: 95%;
723
+ width: 56%;
724
+ float: left;
725
+ /*background-color: white;*/
726
+ }
727
+
728
+ .pool {
729
+ height: 100%;
730
+ width: 44%;
731
+ float: left;
732
+ /*background-color: #c7254e;*/
733
+ }
734
+
735
+ .drilllist {
736
+ height: 100%;
737
+ width: 44%;
738
+ float: left;
739
+ background-color: rgba(1, 207, 242, 0.04);
740
+ }
741
+
742
+ .drillliststyle {
743
+ margin-left: 2%;
744
+ height: 96%;
745
+ width: 96%;
746
+ float: left;
747
+ background-color: rgba(1, 207, 242, 0.04);
748
+ }
749
+
750
+ .menuselect {
751
+ margin-top: 1%;
752
+ margin-left: 4%;
753
+ height: 16%;
754
+ width: 96%;
755
+ }
756
+
757
+ .selectstyle {
758
+ height: 45%;
759
+ }
760
+
761
+ .datestyle label {
762
+ margin-left: 1%;
763
+ margin-top: 1%;
764
+ }
765
+
766
+ #selectchildrenid {
767
+ margin-left: 1%;
768
+ }
769
+
770
+ .history {
771
+ border-radius: 2px;
772
+ border: solid 1px #2f9ad1;
773
+ color: #2f9ad1;
774
+ }
775
+
776
+ .historydiv div {
777
+ height: 49%;
778
+ }
779
+
780
+ .historydiv {
781
+ height: 55%;
782
+ }
783
+
784
+ .selectstyle input {
785
+ width: 20%;
786
+ height: 95%;
787
+ background-color: #023740 !important;
788
+ border: solid 1px #6fd9d0;
789
+ color: white !important;
790
+ }
791
+ </style>