manage-client 3.2.49 → 3.2.53

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