manage-client 3.1.22 → 3.1.26

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 (467) 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/3.5.1/file-changes/last-build.bin +0 -0
  6. package/.gradle/3.5.1/taskHistory/taskHistory.lock +0 -0
  7. package/.gradle/buildOutputCleanup/built.bin +0 -0
  8. package/.gradle/buildOutputCleanup/cache.properties +2 -2
  9. package/.gradle/buildOutputCleanup/cache.properties.lock +1 -0
  10. package/.project +18 -18
  11. package/CHANGELOG.md +15 -15
  12. package/DOC//345/212/237/350/203/275/350/257/264/346/230/216.md +13 -13
  13. package/DOC//347/211/210/346/234/254/344/277/241/346/201/257.md +8 -8
  14. package/ManageClient.iml +13 -13
  15. package/README.md +38 -38
  16. package/build/dev-server.js +174 -174
  17. package/build/webpack.base.conf.js +82 -82
  18. package/build.gradle +13 -13
  19. package/config/dev.env.js +6 -6
  20. package/config/index.js +40 -40
  21. package/config/prod.env.js +3 -3
  22. package/config/test.env.js +6 -6
  23. package/gradle/wrapper/gradle-wrapper.properties +5 -5
  24. package/gradlew.bat +100 -100
  25. package/index.html +28 -28
  26. package/package.json +1 -1
  27. package/release.bat +5 -5
  28. package/src/ManageHome.js +269 -269
  29. package/src/Staff/StaffCompileList.vue +334 -334
  30. package/src/Staff/StaffList.vue +161 -161
  31. package/src/Staff/StaffListManage.vue +49 -49
  32. package/src/Util.js +367 -367
  33. package/src/components/BasisEcharts/BarChart.vue +247 -247
  34. package/src/components/BasisEcharts/LineChart.vue +243 -243
  35. package/src/components/ManageHome/CustomerService/ContentmentStatistics.vue +135 -135
  36. package/src/components/ManageHome/CustomerService/ExcepCollect.vue +174 -174
  37. package/src/components/ManageHome/CustomerService/ReasonComplaint.vue +116 -116
  38. package/src/components/ManageHome/CustomerService/ReasonConsultation.vue +115 -115
  39. package/src/components/ManageHome/CustomerService/ServiceFix.vue +155 -155
  40. package/src/components/ManageHome/CustomerService/ServiceHome.vue +179 -179
  41. package/src/components/ManageHome/CustomerService/ServiceStatistics.vue +147 -147
  42. package/src/components/ManageHome/CustomerService/TrafficStatistics.vue +160 -160
  43. package/src/components/ManageHome/Drill/DrillData.vue +791 -791
  44. package/src/components/ManageHome/Drill/DrillList.vue +320 -320
  45. package/src/components/ManageHome/Drill/DrillPool.vue +129 -129
  46. package/src/components/ManageHome/Home/CallCenter.vue +124 -124
  47. package/src/components/ManageHome/Home/CallFix.vue +172 -172
  48. package/src/components/ManageHome/Home/CallStatistics.vue +147 -147
  49. package/src/components/ManageHome/Home/GasValue.vue +233 -233
  50. package/src/components/ManageHome/Home/Home.vue +138 -138
  51. package/src/components/ManageHome/Home/Monitor.vue +329 -329
  52. package/src/components/ManageHome/Home/NetWork.vue +202 -202
  53. package/src/components/ManageHome/Home/SafeCheck.vue +249 -249
  54. package/src/components/ManageHome/Home/UserModule.vue +367 -367
  55. package/src/components/ManageHome/ImportSupplygas/AddSupply.vue +206 -206
  56. package/src/components/ManageHome/ImportSupplygas/SuppleManagement.vue +43 -43
  57. package/src/components/ManageHome/ImportSupplygas/SupplySelect.vue +85 -85
  58. package/src/components/ManageHome/ImportSupplygas/UpdateSupply.vue +187 -187
  59. package/src/components/ManageHome/ManageHome.vue +292 -292
  60. package/src/components/ManageHome/Monitor/BuySub.vue +311 -311
  61. package/src/components/ManageHome/Monitor/Caveat.vue +300 -300
  62. package/src/components/ManageHome/Monitor/ComparedGas.vue +264 -264
  63. package/src/components/ManageHome/Monitor/MeterBrand.vue +211 -211
  64. package/src/components/ManageHome/Monitor/MonitorCenter.vue +132 -132
  65. package/src/components/ManageHome/Monitor/MonitorHome.vue +188 -188
  66. package/src/components/ManageHome/Monitor/NoBuyGas.vue +223 -223
  67. package/src/components/ManageHome/Monitor/NoContact.vue +233 -233
  68. package/src/components/ManageHome/Monitor/NoGas.vue +202 -202
  69. package/src/components/ManageHome/NetWork/LineInspection.vue +267 -267
  70. package/src/components/ManageHome/NetWork/NetDanger.vue +258 -258
  71. package/src/components/ManageHome/NetWork/NetHome.vue +84 -84
  72. package/src/components/ManageHome/NetWork/SupplyGas.vue +204 -204
  73. package/src/components/ManageHome/SecurityCheck/CheckHome.vue +94 -94
  74. package/src/components/ManageHome/SecurityCheck/CustomerType.vue +244 -244
  75. package/src/components/ManageHome/SecurityCheck/LatentDanger.vue +218 -218
  76. package/src/components/ManageHome/SecurityCheck/PlanStatistics.vue +231 -231
  77. package/src/components/ManageHome/SecurityCheck/StateStatistics.vue +237 -237
  78. package/src/components/ManageHome/SecurityCheck/TaskStatistics.vue +303 -303
  79. package/src/components/ManageHome/User/GasDistri.vue +271 -271
  80. package/src/components/ManageHome/User/InspecDistri.vue +272 -272
  81. package/src/components/ManageHome/User/SaleProportion.vue +309 -309
  82. package/src/components/ManageHome/User/UseHome.vue +155 -155
  83. package/src/components/ManageHome/User/UserGascontrast.vue +223 -223
  84. package/src/components/ManageHome/User/UserNumber.vue +519 -519
  85. package/src/components/ManageHome/User/UsernumIncrease.vue +243 -243
  86. package/src/components/ManageHome/loading.vue +23 -23
  87. package/src/components/ManageHomeCS/Cockpit.vue +43 -43
  88. package/src/components/ManageHomeCS/CustomerService/ContentmentStatistics.vue +161 -161
  89. package/src/components/ManageHomeCS/CustomerService/ExcepCollect.vue +201 -201
  90. package/src/components/ManageHomeCS/CustomerService/ReasonComplaint.vue +146 -146
  91. package/src/components/ManageHomeCS/CustomerService/ReasonConsultation.vue +148 -148
  92. package/src/components/ManageHomeCS/CustomerService/ServiceFix.vue +242 -242
  93. package/src/components/ManageHomeCS/CustomerService/ServiceHome.vue +176 -176
  94. package/src/components/ManageHomeCS/CustomerService/ServiceStatistics.vue +277 -277
  95. package/src/components/ManageHomeCS/CustomerService/TrafficStatistics.vue +226 -226
  96. package/src/components/ManageHomeCS/Drill/DrillData.vue +918 -918
  97. package/src/components/ManageHomeCS/Drill/DrillList.vue +320 -320
  98. package/src/components/ManageHomeCS/Drill/DrillPool.vue +129 -129
  99. package/src/components/ManageHomeCS/Home/CallCenter.vue +206 -206
  100. package/src/components/ManageHomeCS/Home/CallFix.vue +172 -172
  101. package/src/components/ManageHomeCS/Home/CallStatistics.vue +147 -147
  102. package/src/components/ManageHomeCS/Home/GasValue.vue +466 -466
  103. package/src/components/ManageHomeCS/Home/Home.vue +57 -57
  104. package/src/components/ManageHomeCS/Home/Monitor.vue +423 -423
  105. package/src/components/ManageHomeCS/Home/NetWork.vue +223 -223
  106. package/src/components/ManageHomeCS/Home/SafeCheck.vue +446 -446
  107. package/src/components/ManageHomeCS/Home/ShanxiMap.vue +432 -432
  108. package/src/components/ManageHomeCS/Home/UserModule.vue +511 -511
  109. package/src/components/ManageHomeCS/Home/YulinMap.vue +424 -424
  110. package/src/components/ManageHomeCS/ImportSupplygas/AddSupply.vue +206 -206
  111. package/src/components/ManageHomeCS/ImportSupplygas/SuppleManagement.vue +43 -43
  112. package/src/components/ManageHomeCS/ImportSupplygas/SupplySelect.vue +85 -85
  113. package/src/components/ManageHomeCS/ImportSupplygas/UpdateSupply.vue +187 -187
  114. package/src/components/ManageHomeCS/Monitor/BuySub.vue +339 -339
  115. package/src/components/ManageHomeCS/Monitor/Caveat.vue +301 -301
  116. package/src/components/ManageHomeCS/Monitor/ComparedGas.vue +276 -276
  117. package/src/components/ManageHomeCS/Monitor/MeterBrand.vue +220 -220
  118. package/src/components/ManageHomeCS/Monitor/MonitorCenter.vue +139 -139
  119. package/src/components/ManageHomeCS/Monitor/MonitorHome.vue +188 -188
  120. package/src/components/ManageHomeCS/Monitor/NoBuyGas.vue +218 -218
  121. package/src/components/ManageHomeCS/Monitor/NoContact.vue +217 -217
  122. package/src/components/ManageHomeCS/Monitor/NoGas.vue +214 -214
  123. package/src/components/ManageHomeCS/NetWork/LineInspection.vue +268 -268
  124. package/src/components/ManageHomeCS/NetWork/NetDanger.vue +258 -258
  125. package/src/components/ManageHomeCS/NetWork/NetHome.vue +106 -106
  126. package/src/components/ManageHomeCS/NetWork/NetWork.vue +222 -222
  127. package/src/components/ManageHomeCS/NetWork/NetWorkMap.vue +86 -86
  128. package/src/components/ManageHomeCS/NetWork/SupplyGas.vue +291 -291
  129. package/src/components/ManageHomeCS/NewHome/GasProperties.vue +314 -314
  130. package/src/components/ManageHomeCS/NewHome/NewManageHome.vue +182 -182
  131. package/src/components/ManageHomeCS/NewHome/TextBusiness.vue +267 -267
  132. package/src/components/ManageHomeCS/NewHome/TextChildsellgas.vue +209 -209
  133. package/src/components/ManageHomeCS/NewHome/TextProfit.vue +298 -298
  134. package/src/components/ManageHomeCS/NewHome/TextSellgas.vue +82 -82
  135. package/src/components/ManageHomeCS/NewHome/TextShanximap.vue +389 -389
  136. package/src/components/ManageHomeCS/NewHome/TextTotalsellgas.vue +406 -406
  137. package/src/components/ManageHomeCS/NewHome/TextUser.vue +378 -378
  138. package/src/components/ManageHomeCS/NewHome/yulin.vue +425 -425
  139. package/src/components/ManageHomeCS/Poor/PoorHome.vue +176 -176
  140. package/src/components/ManageHomeCS/SecurityCheck/CheckHome.vue +94 -94
  141. package/src/components/ManageHomeCS/SecurityCheck/CustomerType.vue +246 -246
  142. package/src/components/ManageHomeCS/SecurityCheck/LatentDanger.vue +220 -220
  143. package/src/components/ManageHomeCS/SecurityCheck/PlanStatistics.vue +306 -306
  144. package/src/components/ManageHomeCS/SecurityCheck/StateStatistics.vue +239 -239
  145. package/src/components/ManageHomeCS/SecurityCheck/TaskStatistics.vue +311 -311
  146. package/src/components/ManageHomeCS/User/FMYInspecDistri.vue +269 -269
  147. package/src/components/ManageHomeCS/User/GasDistri.vue +220 -220
  148. package/src/components/ManageHomeCS/User/MYInspecDistri.vue +269 -269
  149. package/src/components/ManageHomeCS/User/SaleProportion.vue +384 -384
  150. package/src/components/ManageHomeCS/User/UseHome.vue +162 -162
  151. package/src/components/ManageHomeCS/User/UserGascontrast.vue +221 -221
  152. package/src/components/ManageHomeCS/User/UserNumber.vue +600 -600
  153. package/src/components/ManageHomeCS/User/UsernumIncrease.vue +277 -277
  154. package/src/components/ManageHomeCS/loading.vue +39 -39
  155. package/src/components/ManageHomeCS/test.vue +88 -88
  156. package/src/components/MeterManage/ChangeMeterQuery.vue +82 -82
  157. package/src/components/MeterManage/ChargeQuery.vue +79 -79
  158. package/src/components/MeterManage/FillCardQuery.vue +80 -80
  159. package/src/components/MeterManage/FillGasQuery.vue +80 -80
  160. package/src/components/MeterManage/HandQuery.vue +72 -72
  161. package/src/components/MeterManage/MeterInfoManage.vue +107 -107
  162. package/src/components/MeterManage/MeterList.vue +336 -336
  163. package/src/components/MeterManage/MeterMsg.vue +181 -181
  164. package/src/components/MeterManage/OtherChargeQuery.vue +78 -78
  165. package/src/components/MeterManage/ReversalQuery.vue +77 -77
  166. package/src/components/MeterManage/TransferQuery.vue +72 -72
  167. package/src/components/SellReport/AmountGas.vue +257 -257
  168. package/src/components/SellReport/BankManager.vue +146 -146
  169. package/src/components/SellReport/BonSummary.vue +244 -244
  170. package/src/components/SellReport/BusinessClassify.vue +251 -0
  171. package/src/components/SellReport/BusinessMoneyReport.vue +268 -268
  172. package/src/components/SellReport/BusinessReport.vue +256 -256
  173. package/src/components/SellReport/CaiManageDayGas.vue +280 -280
  174. package/src/components/SellReport/ChManageBusSummary.vue +273 -273
  175. package/src/components/SellReport/ChManageHandSellMoney.vue +274 -274
  176. package/src/components/SellReport/ChManageMonthGas.vue +285 -285
  177. package/src/components/SellReport/ChOtherfee.vue +251 -251
  178. package/src/components/SellReport/ChSellReport.vue +251 -251
  179. package/src/components/SellReport/ChargeDayTable.vue +258 -258
  180. package/src/components/SellReport/ChargeMonthTable.vue +257 -257
  181. package/src/components/SellReport/ChargeYearTable.vue +252 -252
  182. package/src/components/SellReport/CollectFee.vue +184 -184
  183. package/src/components/SellReport/Contrast.vue +188 -188
  184. package/src/components/SellReport/DayStairMoney.vue +256 -256
  185. package/src/components/SellReport/DeptHomePage.vue +299 -299
  186. package/src/components/SellReport/FenxiangSell.vue +183 -183
  187. package/src/components/SellReport/FxGasTable.vue +220 -220
  188. package/src/components/SellReport/GasCollect.vue +174 -174
  189. package/src/components/SellReport/GasMeterBrand.vue +228 -228
  190. package/src/components/SellReport/GasPriceGroup.vue +228 -228
  191. package/src/components/SellReport/GasSummary.vue +257 -257
  192. package/src/components/SellReport/Gasc.vue +257 -257
  193. package/src/components/SellReport/GaspriceHas.vue +141 -141
  194. package/src/components/SellReport/GetUserNum.vue +240 -240
  195. package/src/components/SellReport/HandCollect.vue +189 -189
  196. package/src/components/SellReport/HandplanBili.vue +241 -241
  197. package/src/components/SellReport/HandplanUserCount.vue +227 -227
  198. package/src/components/SellReport/JinChengBusSummary.vue +182 -182
  199. package/src/components/SellReport/JinChengHandGas.vue +182 -182
  200. package/src/components/SellReport/JinChengOperSummary.vue +182 -182
  201. package/src/components/SellReport/JinChengSliceSumgas.vue +182 -182
  202. package/src/components/SellReport/ManageBusTable.vue +207 -207
  203. package/src/components/SellReport/ManageGasFee.vue +247 -247
  204. package/src/components/SellReport/ManageGasFeeOperator.vue +236 -236
  205. package/src/components/SellReport/ManageGasPrice.vue +241 -241
  206. package/src/components/SellReport/ManageGasSumChangeTwo.vue +271 -271
  207. package/src/components/SellReport/ManageGasSumOtherCharge.vue +244 -244
  208. package/src/components/SellReport/ManageHandInputtor.vue +281 -281
  209. package/src/components/SellReport/ManageHandSellInputtor.vue +241 -241
  210. package/src/components/SellReport/ManageMonthGas.vue +249 -249
  211. package/src/components/SellReport/ManageNewGasPrice.vue +245 -245
  212. package/src/components/SellReport/ManageOtherCharge.vue +250 -250
  213. package/src/components/SellReport/ManageReceivable.vue +254 -254
  214. package/src/components/SellReport/ManageUserCollect.vue +183 -183
  215. package/src/components/SellReport/MarketMonth.vue +251 -0
  216. package/src/components/SellReport/MeterBill.vue +185 -185
  217. package/src/components/SellReport/MeterGasMoney.vue +226 -226
  218. package/src/components/SellReport/MeterInput.vue +250 -250
  219. package/src/components/SellReport/MeterPrice.vue +244 -244
  220. package/src/components/SellReport/MeterReader.vue +231 -231
  221. package/src/components/SellReport/MonthStairMoney.vue +256 -256
  222. package/src/components/SellReport/OperatorSellReport.vue +268 -268
  223. package/src/components/SellReport/OutletTable.vue +258 -258
  224. package/src/components/SellReport/OweAging.vue +174 -174
  225. package/src/components/SellReport/PaymentDistribute.vue +228 -228
  226. package/src/components/SellReport/PaymentMethod.vue +274 -274
  227. package/src/components/SellReport/QibiaoShouqi.vue +282 -282
  228. package/src/components/SellReport/ReportHistory.vue +80 -80
  229. package/src/components/SellReport/ReportPool.vue +60 -60
  230. package/src/components/SellReport/SaleMonthReport.vue +227 -227
  231. package/src/components/SellReport/Selling.vue +188 -188
  232. package/src/components/SellReport/SiteManager.vue +147 -147
  233. package/src/components/SellReport/UserStateStatistics.vue +188 -188
  234. package/src/components/SellReport/UsertypePie.vue +101 -101
  235. package/src/components/SellReport/WeiNanYuShou.vue +246 -246
  236. package/src/components/SellReport/XianYangDate.vue +227 -227
  237. package/src/components/SellReport/XianYangOperator.vue +228 -228
  238. package/src/components/SellReport/XyDateCharge.vue +227 -227
  239. package/src/components/SellReport/XyOperatorCharge.vue +256 -256
  240. package/src/components/SellReport/YuShouTable.vue +298 -298
  241. package/src/components/SellReport/YuShouTableTwo.vue +309 -309
  242. package/src/components/SellReport/chargeSchedule.vue +410 -410
  243. package/src/components/SellReport/jingwei/CardCharge.vue +142 -142
  244. package/src/components/SellReport/jingwei/MachineCharge.vue +141 -141
  245. package/src/components/SellReport/jingwei/PaymentNotice.vue +479 -479
  246. package/src/components/SellReport/jingwei/handplanReport.vue +280 -280
  247. package/src/components/SellReport/jingwei/widegt/PaymentNoticePrint.vue +198 -198
  248. package/src/components/SellReport/jingwei/widegt/handplanPrint.vue +143 -143
  249. package/src/components/SellReport/pengan/ManageBusPeng.vue +280 -280
  250. package/src/components/SellReport/pengan/ManageBusSummaryPeng.vue +241 -241
  251. package/src/components/SellReport/userholds.vue +257 -257
  252. package/src/components/WebReport/AbnormalInfo.vue +197 -197
  253. package/src/components/WebReport/AbnormalInfoEcharts.vue +120 -120
  254. package/src/components/WebReport/BatteryLow.vue +148 -148
  255. package/src/components/WebReport/BusinessHall.vue +85 -85
  256. package/src/components/WebReport/BussinessType.vue +137 -137
  257. package/src/components/WebReport/Communication.vue +131 -131
  258. package/src/components/WebReport/CompanyUser.vue +79 -79
  259. package/src/components/WebReport/EchartsBox.vue +110 -110
  260. package/src/components/WebReport/ElectroMagnetic.vue +142 -142
  261. package/src/components/WebReport/GaspriceHas.vue +141 -141
  262. package/src/components/WebReport/HandplanPrint.vue +167 -167
  263. package/src/components/WebReport/NotUpload.vue +165 -165
  264. package/src/components/WebReport/OweQuery.vue +169 -169
  265. package/src/components/WebReport/PaymentDistributed.vue +176 -176
  266. package/src/components/WebReport/Paymentpie.vue +157 -157
  267. package/src/components/WebReport/ReportWorklist.vue +220 -220
  268. package/src/components/WebReport/SellType.vue +89 -89
  269. package/src/components/WebReport/Telemanlist.vue +221 -221
  270. package/src/components/WebReport/UserGasAll.vue +214 -214
  271. package/src/components/WebReport/UserGasEcharts.vue +107 -107
  272. package/src/components/WebReport/UsertypePie.vue +105 -105
  273. package/src/components/WebReport/ValueEcharts.vue +99 -99
  274. package/src/components/WebReport/ValueInfo.vue +194 -194
  275. package/src/components/qinhua/BarChartLine.vue +288 -288
  276. package/src/components/qinhua/ManageMain.vue +162 -162
  277. package/src/components/qinhua/Ring.vue +165 -165
  278. package/src/components/qinhua/SafeCheckRing.vue +149 -149
  279. package/src/components/qinhua/SafecheckBarChart.vue +209 -209
  280. package/src/components/qinhua/Scada.vue +93 -93
  281. package/src/components/safecheck/analysis/SafeHiddenAnaly.vue +932 -932
  282. package/src/components/safecheck/planCheck/chanceSituation.vue +149 -149
  283. package/src/components/safecheck/planCheck/checkFamily.vue +217 -217
  284. package/src/components/safecheck/planCheck/hidderDanger.vue +179 -179
  285. package/src/components/safecheck/planCheck/inFamily.vue +185 -185
  286. package/src/components/sale/businessquery/AccountQuery/TransactionSummary.vue +373 -373
  287. package/src/components/sale/businessquery/BalanceQuery.vue +456 -456
  288. package/src/components/sale/businessquery/CollectManage.vue +4 -1
  289. package/src/components/sale/businessquery/InspectManage.vue +47 -47
  290. package/src/components/sale/businessquery/NewAccountQuery.vue +409 -409
  291. package/src/components/sale/businessquery/OtherChargeDetailQuery.vue +74 -74
  292. package/src/components/sale/businessquery/ProceedsOper.vue +377 -0
  293. package/src/components/sale/businessquery/ResourceOperatingQuery.vue +317 -317
  294. package/src/components/sale/businessquery/TongjiManage.vue +74 -74
  295. package/src/components/sale/businessquery/UserTongjiQuery.vue +358 -358
  296. package/src/components/sale/businessquery/YearGasQuery.vue +422 -422
  297. package/src/components/sale/businessquery/analysisquery/AnalysisManage.vue +65 -65
  298. package/src/components/sale/businessquery/weChatBind.vue +361 -361
  299. package/src/components/sale/common/PrintData.vue +171 -171
  300. package/src/components/sale/common/PrintDataSelf.vue +225 -225
  301. package/src/components/sale/common/PrintTable.vue +228 -228
  302. package/src/components/sale/common/PrintTableSelf.vue +251 -251
  303. package/src/components/sale/common/TabButton.vue +155 -155
  304. package/src/components/sale/common/Tabs.vue +67 -67
  305. package/src/components/sale/common/handplanUser.vue +112 -112
  306. package/src/components/sale/config/DefaultPrint.js +6 -6
  307. package/src/components/sale/config/exportConfig.js +10 -1
  308. package/src/components/sale/config/tableConfig.js +48 -48
  309. package/src/components/sale/filesquery/UserQuery.vue +16 -0
  310. package/src/components/sale/filesquery/detail/UserBaseInfo.vue +69 -69
  311. package/src/components/sale/filesquery/detail/UserDetail.vue +41 -41
  312. package/src/components/sale/filesquery/detail/UserOperInfo.vue +76 -76
  313. package/src/components/sale/filesquery/detail/oper/ChangeMessage.vue +46 -46
  314. package/src/components/sale/filesquery/detail/oper/ExchangeOper.vue +66 -66
  315. package/src/components/sale/filesquery/detail/oper/HandOper.vue +46 -46
  316. package/src/components/sale/filesquery/detail/oper/HandleMessage.vue +46 -46
  317. package/src/components/sale/filesquery/detail/oper/OtherCharge.vue +54 -54
  318. package/src/components/sale/filesquery/detail/oper/ReplaceCard.vue +51 -51
  319. package/src/components/sale/filesquery/detail/oper/SellOper.vue +56 -56
  320. package/src/components/sale/filesquery/detail/oper/TransferMessage.vue +55 -55
  321. package/src/components/sale/filesquery/filequerydetail/BlackListQueryDetail.vue +219 -219
  322. package/src/components/sale/filesquery/filequerydetail/ChangeMeterQueryDetail.vue +246 -246
  323. package/src/components/sale/filesquery/filequerydetail/ChargeQueryDetail.vue +239 -239
  324. package/src/components/sale/filesquery/filequerydetail/DeviceQueryDetail.vue +126 -126
  325. package/src/components/sale/filesquery/filequerydetail/DisableQueryDetail.vue +272 -272
  326. package/src/components/sale/filesquery/filequerydetail/EnableQueryDetail.vue +274 -274
  327. package/src/components/sale/filesquery/filequerydetail/FillCardQueryDetail.vue +80 -80
  328. package/src/components/sale/filesquery/filequerydetail/FillGasQueryDetail.vue +80 -80
  329. package/src/components/sale/filesquery/filequerydetail/HandQueryDetail.vue +302 -302
  330. package/src/components/sale/filesquery/filequerydetail/MeterQueryDetail.vue +158 -158
  331. package/src/components/sale/filesquery/filequerydetail/OtherChargeQueryDetail.vue +198 -198
  332. package/src/components/sale/filesquery/filequerydetail/RecordQueryDetail.vue +125 -125
  333. package/src/components/sale/filesquery/filequerydetail/SellingHandDetail.vue +280 -280
  334. package/src/components/sale/filesquery/filequerydetail/TransferQueryDetail.vue +160 -160
  335. package/src/components/sale/filesquery/filequerydetail/UserQueryDetail.vue +155 -155
  336. package/src/components/sale/report/aode/DayReport.vue +50 -50
  337. package/src/components/sale/report/aode/DayReportSummary.vue +75 -75
  338. package/src/components/sale/report/aode/MonthByChargeType.vue +446 -446
  339. package/src/components/sale/report/aode/MonthByUserType.vue +413 -413
  340. package/src/components/sale/report/aode/YearByChargeTpye.vue +215 -215
  341. package/src/components/sale/report/aode/YearByUserType.vue +272 -272
  342. package/src/components/sale/report/aode/life/LifeDayReport.vue +50 -50
  343. package/src/components/sale/report/aode/life/LifeDayReportList.vue +241 -241
  344. package/src/components/sale/report/aode/life/LifeDayReportSummary.vue +49 -49
  345. package/src/components/sale/report/aode/life/LifeMonthReport.vue +303 -303
  346. package/src/components/sale/report/aode/life/LifeYearReport.vue +175 -175
  347. package/src/components/sale/report/aode/widget/LifeDayReportListPrint.vue +189 -189
  348. package/src/components/sale/report/aode/widget/LifeMonthPrint.vue +153 -153
  349. package/src/components/sale/report/aode/widget/LifeYearPrint.vue +143 -143
  350. package/src/components/sale/report/aode/widget/MonthByChargePrint.vue +236 -236
  351. package/src/components/sale/report/aode/widget/MonthByUserPrint.vue +232 -232
  352. package/src/components/sale/report/aode/widget/YearByChargePrint.vue +203 -203
  353. package/src/components/sale/report/aode/widget/YearByUserPrint.vue +225 -225
  354. package/src/components/scada/CaculateGasConsumputionByDay/CaculateGasConsumputionByDay.vue +290 -290
  355. package/src/components/scada/ChartDisplay/ChartDisplayManage.vue +55 -55
  356. package/src/components/scada/ChartDisplay/ChartThreeDayContrast.vue +164 -164
  357. package/src/components/scada/CumulativeFlow/CumulativeFlowHeatPlant.vue +400 -400
  358. package/src/components/scada/CumulativeFlow/CumulativeFlowManage.vue +59 -59
  359. package/src/components/scada/CumulativeFlow/CumulativeFlowRegulatorStation.vue +504 -504
  360. package/src/components/scada/CumulativeFlow/CumulativeFlowStation.vue +248 -248
  361. package/src/components/scada/GasSupplyRunning/GasSupplyRunningByDay.vue +297 -297
  362. package/src/components/scada/InstantaneousFlow/InstantaneousFlowHeatPlant.vue +389 -389
  363. package/src/components/scada/InstantaneousFlow/InstantaneousFlowManage.vue +57 -57
  364. package/src/components/scada/InstantaneousFlow/InstantaneousFlowRegulatorStation.vue +503 -503
  365. package/src/components/scada/InstantaneousFlow/InstantaneousFlowStation.vue +244 -244
  366. package/src/components/scada/OnTimePressure/OnTimePressureHeatPlant.vue +356 -356
  367. package/src/components/scada/OnTimePressure/OnTimePressureManage.vue +51 -51
  368. package/src/components/scada/OnTimePressure/OnTimePressureRegulatorStation.vue +526 -526
  369. package/src/components/scada/ThreeDayContrast/ThreeDayContrastManage.vue +282 -282
  370. package/src/components/statistical/StatisticalAnalysis.vue +0 -2
  371. package/src/components/webmeter/DrillData/LargeScreenAnalysisEcharts.vue +710 -710
  372. package/src/components/webmeter/DrillData/LostContactAnalysis.vue +531 -531
  373. package/src/components/webmeter/DrillData/LostContactAnalysisManage.vue +30 -30
  374. package/src/components/webmeter/DrillData/LostContactEform.vue +190 -190
  375. package/src/components/webmeter/dataCollection/DataCollection.vue +676 -676
  376. package/src/components/webmeter/gasAnalysis/GasAnalysisEcharts.vue +144 -144
  377. package/src/components/webmeter/gasAnalysis/GasAnalysisSummary.vue +162 -162
  378. package/src/components/webmeter/handplan/NewWebMeterHandPlan.vue +745 -745
  379. package/src/components/webmeter/handplan/NewWebmeterHandPlanMain.vue +59 -59
  380. package/src/components/webmeter/indicatorStatisticsEchars.vue +204 -204
  381. package/src/components/webmeter/indicatorStatisticsMain.vue +257 -257
  382. package/src/components/webmeter/instruction/NewQueryInstruct.vue +396 -399
  383. package/src/components/webmeter/meterinfo/NewMeterList.vue +414 -414
  384. package/src/components/webmeter/meterinfo/NewMeterListMain.vue +53 -53
  385. package/src/components/webmeter/newwebmeter/NewException/NewContactEcharts.vue +170 -0
  386. package/src/components/webmeter/newwebmeter/NewException/NewEchartsAll.vue +111 -0
  387. package/src/components/webmeter/newwebmeter/NewException/NewExceptionEform.vue +149 -149
  388. package/src/components/webmeter/newwebmeter/NewException/NewExceptionEformTotal.vue +211 -211
  389. package/src/components/webmeter/newwebmeter/NewException/NewGasEcharts.vue +209 -0
  390. package/src/components/webmeter/newwebmeter/NewException/NewHandplanEcharts.vue +238 -0
  391. package/src/components/webmeter/newwebmeter/NewException/NewInstructEcharts.vue +266 -0
  392. package/src/components/webmeter/newwebmeter/NewException/NewMeterException.vue +449 -449
  393. package/src/components/webmeter/newwebmeter/UserInstructEchartsList.vue +286 -286
  394. package/src/components/yulin/GuanWang.vue +24 -24
  395. package/src/components/yulin/SingleBarLine.vue +352 -352
  396. package/src/components/yulin/Weather.vue +157 -157
  397. package/src/expandcss.less +26 -26
  398. package/src/filiale/WEINAN/InspectListUser.vue +492 -492
  399. package/src/filiale/WEINAN/OtherChargeQuery.vue +521 -521
  400. package/src/filiale/aode/ArchivesManage.vue +38 -38
  401. package/src/filiale/aode/BusinessManage.vue +94 -94
  402. package/src/filiale/aode/DefaultPrint.js +6 -6
  403. package/src/filiale/aode/HandplanQuery.vue +632 -632
  404. package/src/filiale/aode/Tabs.vue +67 -67
  405. package/src/filiale/aode/UserQuery.vue +599 -599
  406. package/src/filiale/aode/sale.js +17 -17
  407. package/src/filiale/ceshi/ArrearsQuery.vue +642 -642
  408. package/src/filiale/ceshi/ChManageBusSummary.vue +293 -293
  409. package/src/filiale/ceshi/CollectManage.vue +94 -94
  410. package/src/filiale/ceshi/MeterRateQuery.vue +633 -633
  411. package/src/filiale/ceshi/TabButton.vue +149 -149
  412. package/src/filiale/ceshi/Tabs.vue +69 -69
  413. package/src/filiale/ceshi/reportManage.js +5 -5
  414. package/src/filiale/ceshi/sale.js +11 -11
  415. package/src/filiale/gaomi/config/DefaultPrint.js +6 -6
  416. package/src/filiale/gaomi/config/tableConfig.js +47 -47
  417. package/src/filiale/gongyi/sale/businessquery/exportConfig.js +17 -17
  418. package/src/filiale/gongyi/sale/filesquery/MeterQuery.vue +718 -718
  419. package/src/filiale/liaoyuan/sale.js +11 -11
  420. package/src/filiale/macheng/config/DefaultPrint.js +12 -12
  421. package/src/filiale/qingtongxia/config/DefaultPrint.js +6 -6
  422. package/src/filiale/qingtongxia/sale.js +13 -13
  423. package/src/filiale/rongcheng/exportConfig.js +7 -1
  424. package/src/filiale/shaoguan/OtherChargeDetailQuery.vue +74 -74
  425. package/src/filiale/shaoguan/config/DefaultPrint.js +6 -6
  426. package/src/filiale/shaoguan/config/exportConfig.js +4 -1
  427. package/src/filiale/shennongjia/config/DefaultPrint.js +6 -6
  428. package/src/filiale/shennongjia/config/tableConfig.js +47 -47
  429. package/src/filiale/shennongjia/sale.js +10 -10
  430. package/src/filiale/tongchuan/ResSelectGroupNew.vue +176 -0
  431. package/src/filiale/tongchuan/ResSelectNew.vue +144 -0
  432. package/src/filiale/tongchuan/sale.js +2 -1
  433. package/src/main.js +66 -66
  434. package/src/plugins/GetLoginInfoService.js +505 -505
  435. package/src/plugins/LodopFuncs.js +124 -124
  436. package/src/plugins/getAllInputtor.js +29 -29
  437. package/src/reportManage.js +8 -0
  438. package/src/safeCheck.js +63 -63
  439. package/src/saleManage.js +26 -0
  440. package/src/stores/AppData.js +62 -62
  441. package/src/stores/DataSql.js +585 -585
  442. package/src/stores/DrillECharts.js +602 -602
  443. package/src/stores/DrillSql.js +888 -888
  444. package/src/stores/GetParames.js +15 -15
  445. package/src/stores/MagGetSaleParams.js +156 -156
  446. package/src/stores/MagLoadParams.js +63 -63
  447. package/src/stores/Util.js +132 -132
  448. package/src/stores/shanxi1.js +26 -26
  449. package/src/stores/yulin.js +27 -27
  450. package/src/webmeterManage.js +105 -105
  451. package/static/china.json +1 -1
  452. package/static/qh.json +2410 -2410
  453. package/static/res.json +58411 -58411
  454. package/static/shanxi1.json +1 -1
  455. package/static/yulin.json +1 -1
  456. package/static//345/261/261/344/270/234/347/234/201.json +1 -1
  457. package/test/unit/.eslintrc +5 -5
  458. package/test/unit/TestUtil.js +35 -35
  459. package/test/unit/context.html +20 -20
  460. package/test/unit/index.js +13 -13
  461. package/test/unit/init.js +11 -11
  462. package/test/unit/karma.conf.js +45 -45
  463. package/test/unit/specs/components/CallReport/Repair.spec.js +25 -25
  464. package/test/unit/specs/components/ManageBusiness/EquipmentQuery.spec.js +21 -21
  465. package/test/unit/specs/components/ManageBusiness/TableWithQuery.spec.js +21 -21
  466. package/test/unit/specs/components/ManageBusiness/UserQuery.spec.js +21 -21
  467. package/webstorm.config.js +13 -13
@@ -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>