manage-client 3.2.33 → 3.2.37

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 (466) hide show
  1. package/.babelrc +5 -5
  2. package/.classpath +6 -6
  3. package/.editorconfig +9 -9
  4. package/.eslintrc.js +20 -20
  5. package/.gradle/buildOutputCleanup/cache.properties +2 -2
  6. package/.project +18 -18
  7. package/CHANGELOG.md +15 -15
  8. package/DOC//345/212/237/350/203/275/350/257/264/346/230/216.md +13 -13
  9. package/DOC//347/211/210/346/234/254/344/277/241/346/201/257.md +8 -8
  10. package/ManageClient.iml +13 -13
  11. package/README.md +38 -38
  12. package/build/dev-server.js +174 -176
  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/LineChart.vue +243 -243
  30. package/src/components/ManageHome/CustomerService/ContentmentStatistics.vue +135 -135
  31. package/src/components/ManageHome/CustomerService/ExcepCollect.vue +174 -174
  32. package/src/components/ManageHome/CustomerService/ReasonComplaint.vue +116 -116
  33. package/src/components/ManageHome/CustomerService/ReasonConsultation.vue +115 -115
  34. package/src/components/ManageHome/CustomerService/ServiceFix.vue +155 -155
  35. package/src/components/ManageHome/CustomerService/ServiceHome.vue +179 -179
  36. package/src/components/ManageHome/CustomerService/ServiceStatistics.vue +147 -147
  37. package/src/components/ManageHome/CustomerService/TrafficStatistics.vue +160 -160
  38. package/src/components/ManageHome/Drill/DrillData.vue +791 -791
  39. package/src/components/ManageHome/Drill/DrillList.vue +320 -320
  40. package/src/components/ManageHome/Drill/DrillPool.vue +129 -129
  41. package/src/components/ManageHome/Home/CallCenter.vue +124 -124
  42. package/src/components/ManageHome/Home/CallFix.vue +172 -172
  43. package/src/components/ManageHome/Home/CallStatistics.vue +147 -147
  44. package/src/components/ManageHome/Home/GasValue.vue +233 -233
  45. package/src/components/ManageHome/Home/Home.vue +138 -138
  46. package/src/components/ManageHome/Home/Monitor.vue +329 -329
  47. package/src/components/ManageHome/Home/NetWork.vue +202 -202
  48. package/src/components/ManageHome/Home/SafeCheck.vue +249 -249
  49. package/src/components/ManageHome/Home/UserModule.vue +367 -367
  50. package/src/components/ManageHome/ImportSupplygas/AddSupply.vue +206 -206
  51. package/src/components/ManageHome/ImportSupplygas/SuppleManagement.vue +43 -43
  52. package/src/components/ManageHome/ImportSupplygas/SupplySelect.vue +85 -85
  53. package/src/components/ManageHome/ImportSupplygas/UpdateSupply.vue +187 -187
  54. package/src/components/ManageHome/ManageHome.vue +292 -292
  55. package/src/components/ManageHome/Monitor/BuySub.vue +311 -311
  56. package/src/components/ManageHome/Monitor/Caveat.vue +300 -300
  57. package/src/components/ManageHome/Monitor/ComparedGas.vue +264 -264
  58. package/src/components/ManageHome/Monitor/MeterBrand.vue +211 -211
  59. package/src/components/ManageHome/Monitor/MonitorCenter.vue +132 -132
  60. package/src/components/ManageHome/Monitor/MonitorHome.vue +188 -188
  61. package/src/components/ManageHome/Monitor/NoBuyGas.vue +223 -223
  62. package/src/components/ManageHome/Monitor/NoContact.vue +233 -233
  63. package/src/components/ManageHome/Monitor/NoGas.vue +202 -202
  64. package/src/components/ManageHome/NetWork/LineInspection.vue +267 -267
  65. package/src/components/ManageHome/NetWork/NetDanger.vue +258 -258
  66. package/src/components/ManageHome/NetWork/NetHome.vue +84 -84
  67. package/src/components/ManageHome/NetWork/SupplyGas.vue +204 -204
  68. package/src/components/ManageHome/SecurityCheck/CheckHome.vue +94 -94
  69. package/src/components/ManageHome/SecurityCheck/CustomerType.vue +244 -244
  70. package/src/components/ManageHome/SecurityCheck/LatentDanger.vue +218 -218
  71. package/src/components/ManageHome/SecurityCheck/PlanStatistics.vue +231 -231
  72. package/src/components/ManageHome/SecurityCheck/StateStatistics.vue +237 -237
  73. package/src/components/ManageHome/SecurityCheck/TaskStatistics.vue +303 -303
  74. package/src/components/ManageHome/User/GasDistri.vue +271 -271
  75. package/src/components/ManageHome/User/InspecDistri.vue +272 -272
  76. package/src/components/ManageHome/User/SaleProportion.vue +309 -309
  77. package/src/components/ManageHome/User/UseHome.vue +155 -155
  78. package/src/components/ManageHome/User/UserGascontrast.vue +223 -223
  79. package/src/components/ManageHome/User/UserNumber.vue +519 -519
  80. package/src/components/ManageHome/User/UsernumIncrease.vue +243 -243
  81. package/src/components/ManageHome/loading.vue +23 -23
  82. package/src/components/ManageHomeCS/Cockpit.vue +43 -43
  83. package/src/components/ManageHomeCS/CustomerService/ContentmentStatistics.vue +161 -161
  84. package/src/components/ManageHomeCS/CustomerService/ExcepCollect.vue +201 -201
  85. package/src/components/ManageHomeCS/CustomerService/ReasonComplaint.vue +146 -146
  86. package/src/components/ManageHomeCS/CustomerService/ReasonConsultation.vue +148 -148
  87. package/src/components/ManageHomeCS/CustomerService/ServiceFix.vue +242 -242
  88. package/src/components/ManageHomeCS/CustomerService/ServiceHome.vue +176 -176
  89. package/src/components/ManageHomeCS/CustomerService/ServiceStatistics.vue +277 -277
  90. package/src/components/ManageHomeCS/CustomerService/TrafficStatistics.vue +226 -226
  91. package/src/components/ManageHomeCS/Drill/DrillData.vue +918 -918
  92. package/src/components/ManageHomeCS/Drill/DrillList.vue +320 -320
  93. package/src/components/ManageHomeCS/Drill/DrillPool.vue +129 -129
  94. package/src/components/ManageHomeCS/Home/CallCenter.vue +206 -206
  95. package/src/components/ManageHomeCS/Home/CallFix.vue +172 -172
  96. package/src/components/ManageHomeCS/Home/CallStatistics.vue +147 -147
  97. package/src/components/ManageHomeCS/Home/GasValue.vue +466 -466
  98. package/src/components/ManageHomeCS/Home/Home.vue +57 -57
  99. package/src/components/ManageHomeCS/Home/Monitor.vue +423 -423
  100. package/src/components/ManageHomeCS/Home/NetWork.vue +223 -223
  101. package/src/components/ManageHomeCS/Home/SafeCheck.vue +446 -446
  102. package/src/components/ManageHomeCS/Home/ShanxiMap.vue +432 -432
  103. package/src/components/ManageHomeCS/Home/UserModule.vue +511 -511
  104. package/src/components/ManageHomeCS/Home/YulinMap.vue +424 -424
  105. package/src/components/ManageHomeCS/ImportSupplygas/AddSupply.vue +206 -206
  106. package/src/components/ManageHomeCS/ImportSupplygas/SuppleManagement.vue +43 -43
  107. package/src/components/ManageHomeCS/ImportSupplygas/SupplySelect.vue +85 -85
  108. package/src/components/ManageHomeCS/ImportSupplygas/UpdateSupply.vue +187 -187
  109. package/src/components/ManageHomeCS/Monitor/BuySub.vue +339 -339
  110. package/src/components/ManageHomeCS/Monitor/Caveat.vue +301 -301
  111. package/src/components/ManageHomeCS/Monitor/ComparedGas.vue +276 -276
  112. package/src/components/ManageHomeCS/Monitor/MeterBrand.vue +220 -220
  113. package/src/components/ManageHomeCS/Monitor/MonitorCenter.vue +139 -139
  114. package/src/components/ManageHomeCS/Monitor/MonitorHome.vue +188 -188
  115. package/src/components/ManageHomeCS/Monitor/NoBuyGas.vue +218 -218
  116. package/src/components/ManageHomeCS/Monitor/NoContact.vue +217 -217
  117. package/src/components/ManageHomeCS/Monitor/NoGas.vue +214 -214
  118. package/src/components/ManageHomeCS/NetWork/LineInspection.vue +268 -268
  119. package/src/components/ManageHomeCS/NetWork/NetDanger.vue +258 -258
  120. package/src/components/ManageHomeCS/NetWork/NetHome.vue +106 -106
  121. package/src/components/ManageHomeCS/NetWork/NetWork.vue +222 -222
  122. package/src/components/ManageHomeCS/NetWork/NetWorkMap.vue +86 -86
  123. package/src/components/ManageHomeCS/NetWork/SupplyGas.vue +291 -291
  124. package/src/components/ManageHomeCS/NewHome/GasProperties.vue +314 -314
  125. package/src/components/ManageHomeCS/NewHome/NewManageHome.vue +182 -182
  126. package/src/components/ManageHomeCS/NewHome/TextBusiness.vue +267 -267
  127. package/src/components/ManageHomeCS/NewHome/TextChildsellgas.vue +209 -209
  128. package/src/components/ManageHomeCS/NewHome/TextProfit.vue +298 -298
  129. package/src/components/ManageHomeCS/NewHome/TextSellgas.vue +82 -82
  130. package/src/components/ManageHomeCS/NewHome/TextShanximap.vue +389 -389
  131. package/src/components/ManageHomeCS/NewHome/TextTotalsellgas.vue +406 -406
  132. package/src/components/ManageHomeCS/NewHome/TextUser.vue +378 -378
  133. package/src/components/ManageHomeCS/NewHome/yulin.vue +425 -425
  134. package/src/components/ManageHomeCS/Poor/PoorHome.vue +176 -176
  135. package/src/components/ManageHomeCS/SecurityCheck/CheckHome.vue +94 -94
  136. package/src/components/ManageHomeCS/SecurityCheck/CustomerType.vue +246 -246
  137. package/src/components/ManageHomeCS/SecurityCheck/LatentDanger.vue +220 -220
  138. package/src/components/ManageHomeCS/SecurityCheck/PlanStatistics.vue +306 -306
  139. package/src/components/ManageHomeCS/SecurityCheck/StateStatistics.vue +239 -239
  140. package/src/components/ManageHomeCS/SecurityCheck/TaskStatistics.vue +311 -311
  141. package/src/components/ManageHomeCS/User/FMYInspecDistri.vue +269 -269
  142. package/src/components/ManageHomeCS/User/GasDistri.vue +220 -220
  143. package/src/components/ManageHomeCS/User/MYInspecDistri.vue +269 -269
  144. package/src/components/ManageHomeCS/User/SaleProportion.vue +384 -384
  145. package/src/components/ManageHomeCS/User/UseHome.vue +162 -162
  146. package/src/components/ManageHomeCS/User/UserGascontrast.vue +221 -221
  147. package/src/components/ManageHomeCS/User/UserNumber.vue +600 -600
  148. package/src/components/ManageHomeCS/User/UsernumIncrease.vue +277 -277
  149. package/src/components/ManageHomeCS/loading.vue +39 -39
  150. package/src/components/ManageHomeCS/test.vue +88 -88
  151. package/src/components/MeterManage/ChangeMeterQuery.vue +82 -82
  152. package/src/components/MeterManage/ChargeQuery.vue +79 -79
  153. package/src/components/MeterManage/FillCardQuery.vue +80 -80
  154. package/src/components/MeterManage/FillGasQuery.vue +80 -80
  155. package/src/components/MeterManage/HandQuery.vue +72 -72
  156. package/src/components/MeterManage/MeterInfoManage.vue +107 -107
  157. package/src/components/MeterManage/MeterList.vue +336 -336
  158. package/src/components/MeterManage/MeterMsg.vue +181 -181
  159. package/src/components/MeterManage/OtherChargeQuery.vue +78 -78
  160. package/src/components/MeterManage/ReversalQuery.vue +77 -77
  161. package/src/components/MeterManage/TransferQuery.vue +72 -72
  162. package/src/components/SellReport/BankManager.vue +146 -146
  163. package/src/components/SellReport/BonSummary.vue +178 -178
  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/ChargePrick.vue +205 -205
  170. package/src/components/SellReport/CollectFee.vue +184 -184
  171. package/src/components/SellReport/Contrast.vue +188 -188
  172. package/src/components/SellReport/DayStairMoney.vue +256 -256
  173. package/src/components/SellReport/FenxiangSell.vue +183 -183
  174. package/src/components/SellReport/FxGasTable.vue +220 -220
  175. package/src/components/SellReport/GasBaozhuangFee.vue +237 -237
  176. package/src/components/SellReport/GasCollect.vue +174 -174
  177. package/src/components/SellReport/GaspriceHas.vue +141 -141
  178. package/src/components/SellReport/HandCollect.vue +189 -189
  179. package/src/components/SellReport/JinChengBusSummary.vue +182 -182
  180. package/src/components/SellReport/JinChengHandGas.vue +182 -182
  181. package/src/components/SellReport/JinChengOperSummary.vue +182 -182
  182. package/src/components/SellReport/JinChengSliceSumgas.vue +182 -182
  183. package/src/components/SellReport/ManageBusSummary.vue +219 -219
  184. package/src/components/SellReport/ManageBusTable.vue +207 -207
  185. package/src/components/SellReport/ManageGasFee.vue +247 -247
  186. package/src/components/SellReport/ManageGasFeeOperator.vue +236 -236
  187. package/src/components/SellReport/ManageGasPrice.vue +176 -176
  188. package/src/components/SellReport/ManageHandSellInputtor.vue +241 -241
  189. package/src/components/SellReport/ManageMonthGas.vue +249 -249
  190. package/src/components/SellReport/ManageNewGasPrice.vue +245 -245
  191. package/src/components/SellReport/ManageReceivable.vue +254 -254
  192. package/src/components/SellReport/ManageUserCollect.vue +183 -183
  193. package/src/components/SellReport/MeterBill.vue +185 -185
  194. package/src/components/SellReport/MeterGasMoney.vue +226 -226
  195. package/src/components/SellReport/MeterInput.vue +250 -250
  196. package/src/components/SellReport/MonthStairMoney.vue +256 -256
  197. package/src/components/SellReport/NonResidentGas.vue +203 -203
  198. package/src/components/SellReport/OutletTable.vue +258 -258
  199. package/src/components/SellReport/OweAging.vue +174 -174
  200. package/src/components/SellReport/QibiaoShouqi.vue +242 -242
  201. package/src/components/SellReport/ReportComponrnt/TieAnAccount.vue +501 -501
  202. package/src/components/SellReport/ReportHistory.vue +80 -80
  203. package/src/components/SellReport/ReportPool.vue +60 -60
  204. package/src/components/SellReport/SaleMonthReport.vue +153 -153
  205. package/src/components/SellReport/Selling.vue +188 -188
  206. package/src/components/SellReport/SellingTable.vue +220 -220
  207. package/src/components/SellReport/SiteManager.vue +147 -147
  208. package/src/components/SellReport/UserSellingGas.vue +228 -228
  209. package/src/components/SellReport/UserStateStatistics.vue +188 -188
  210. package/src/components/SellReport/UsertypePie.vue +101 -101
  211. package/src/components/SellReport/XianYangDate.vue +227 -227
  212. package/src/components/SellReport/XianYangOperator.vue +228 -228
  213. package/src/components/SellReport/XyDateCharge.vue +227 -227
  214. package/src/components/SellReport/XyOperatorCharge.vue +256 -256
  215. package/src/components/SellReport/YuShouTableTwo.vue +309 -309
  216. package/src/components/SellReport/jingwei/CardCharge.vue +142 -142
  217. package/src/components/SellReport/jingwei/MachineCharge.vue +141 -141
  218. package/src/components/SellReport/jingwei/PaymentNotice.vue +479 -479
  219. package/src/components/SellReport/jingwei/handplanReport.vue +280 -280
  220. package/src/components/SellReport/jingwei/widegt/PaymentNoticePrint.vue +198 -198
  221. package/src/components/SellReport/jingwei/widegt/handplanPrint.vue +143 -143
  222. package/src/components/SellReport/pengan/ManageBusSummaryPeng.vue +241 -241
  223. package/src/components/TelReport/ZhiHuanservice.vue +162 -162
  224. package/src/components/WebReport/AbnormalInfo.vue +197 -197
  225. package/src/components/WebReport/AbnormalInfoEcharts.vue +120 -120
  226. package/src/components/WebReport/BatteryLow.vue +148 -148
  227. package/src/components/WebReport/BusinessHall.vue +85 -85
  228. package/src/components/WebReport/BussinessType.vue +137 -137
  229. package/src/components/WebReport/Communication.vue +131 -131
  230. package/src/components/WebReport/CompanyUser.vue +79 -79
  231. package/src/components/WebReport/EchartsBox.vue +110 -110
  232. package/src/components/WebReport/ElectroMagnetic.vue +142 -142
  233. package/src/components/WebReport/GaspriceHas.vue +141 -141
  234. package/src/components/WebReport/HandplanPrint.vue +167 -167
  235. package/src/components/WebReport/NotUpload.vue +165 -165
  236. package/src/components/WebReport/OweQuery.vue +169 -169
  237. package/src/components/WebReport/PaymentDistributed.vue +176 -176
  238. package/src/components/WebReport/Paymentpie.vue +157 -157
  239. package/src/components/WebReport/ReportWorklist.vue +220 -220
  240. package/src/components/WebReport/SellType.vue +89 -89
  241. package/src/components/WebReport/Telemanlist.vue +221 -221
  242. package/src/components/WebReport/UserGasAll.vue +214 -214
  243. package/src/components/WebReport/UserGasEcharts.vue +107 -107
  244. package/src/components/WebReport/UsertypePie.vue +105 -105
  245. package/src/components/WebReport/ValueEcharts.vue +99 -99
  246. package/src/components/WebReport/ValueInfo.vue +194 -194
  247. package/src/components/daping/GMap.vue +636 -636
  248. package/src/components/qinhua/BarChartLine.vue +288 -288
  249. package/src/components/qinhua/ManageMain.vue +162 -162
  250. package/src/components/qinhua/Ring.vue +165 -165
  251. package/src/components/qinhua/SafeCheckRing.vue +149 -149
  252. package/src/components/qinhua/SafecheckBarChart.vue +209 -209
  253. package/src/components/qinhua/Scada.vue +93 -93
  254. package/src/components/safecheck/analysis/SafeHiddenAnaly.vue +932 -932
  255. package/src/components/safecheck/planCheck/chanceSituation.vue +149 -149
  256. package/src/components/safecheck/planCheck/checkFamily.vue +217 -217
  257. package/src/components/safecheck/planCheck/hidderDanger.vue +179 -179
  258. package/src/components/safecheck/planCheck/inFamily.vue +185 -185
  259. package/src/components/sale/businessquery/AccountQuery/ExpectGasList.vue +504 -504
  260. package/src/components/sale/businessquery/AccountQuery/PreGasList.vue +371 -371
  261. package/src/components/sale/businessquery/AccountQuery/SellingGasList.vue +404 -404
  262. package/src/components/sale/businessquery/AccountQuery/TransactionSummary.vue +373 -373
  263. package/src/components/sale/businessquery/AreaChargeQuery.vue +380 -0
  264. package/src/components/sale/businessquery/BalanceQuery.vue +456 -456
  265. package/src/components/sale/businessquery/ChargeQuery.vue +1254 -1245
  266. package/src/components/sale/businessquery/CollectManage.vue +3 -0
  267. package/src/components/sale/businessquery/FMYGasQuery.vue +713 -713
  268. package/src/components/sale/businessquery/InspectListUser.vue +412 -412
  269. package/src/components/sale/businessquery/InspectManage.vue +47 -47
  270. package/src/components/sale/businessquery/MonthGasQuery.vue +467 -467
  271. package/src/components/sale/businessquery/NewAccountQuery.vue +409 -409
  272. package/src/components/sale/businessquery/OtherChargeDetailQuery.vue +74 -74
  273. package/src/components/sale/businessquery/ProceedsOper.vue +417 -417
  274. package/src/components/sale/businessquery/ResourceOperatingQuery.vue +317 -317
  275. package/src/components/sale/businessquery/TongjiManage.vue +74 -74
  276. package/src/components/sale/businessquery/UserTongjiQuery.vue +358 -358
  277. package/src/components/sale/businessquery/YearGasQuery.vue +422 -422
  278. package/src/components/sale/businessquery/YingShouMingXi.vue +525 -525
  279. package/src/components/sale/businessquery/analysisquery/AnalysisManage.vue +65 -65
  280. package/src/components/sale/businessquery/usergas.vue +311 -311
  281. package/src/components/sale/businessquery/weChatBind.vue +361 -361
  282. package/src/components/sale/common/PrintData.vue +171 -171
  283. package/src/components/sale/common/PrintDataSelf.vue +225 -225
  284. package/src/components/sale/common/PrintTable.vue +228 -228
  285. package/src/components/sale/common/PrintTableSelf.vue +251 -251
  286. package/src/components/sale/common/TabButton.vue +155 -155
  287. package/src/components/sale/common/Tabs.vue +67 -67
  288. package/src/components/sale/common/handplanUser.vue +112 -112
  289. package/src/components/sale/config/DefaultPrint.js +6 -6
  290. package/src/components/sale/config/exportConfig.js +3 -0
  291. package/src/components/sale/filesquery/detail/UserBaseInfo.vue +69 -69
  292. package/src/components/sale/filesquery/detail/UserDetail.vue +41 -41
  293. package/src/components/sale/filesquery/detail/UserOperInfo.vue +76 -76
  294. package/src/components/sale/filesquery/detail/oper/ChangeMessage.vue +46 -46
  295. package/src/components/sale/filesquery/detail/oper/ExchangeOper.vue +66 -66
  296. package/src/components/sale/filesquery/detail/oper/HandOper.vue +46 -46
  297. package/src/components/sale/filesquery/detail/oper/HandleMessage.vue +46 -46
  298. package/src/components/sale/filesquery/detail/oper/OtherCharge.vue +54 -54
  299. package/src/components/sale/filesquery/detail/oper/ReplaceCard.vue +51 -51
  300. package/src/components/sale/filesquery/detail/oper/SellOper.vue +56 -56
  301. package/src/components/sale/filesquery/detail/oper/TransferMessage.vue +55 -55
  302. package/src/components/sale/filesquery/filequerydetail/BlackListQueryDetail.vue +219 -219
  303. package/src/components/sale/filesquery/filequerydetail/ChangeMeterQueryDetail.vue +246 -246
  304. package/src/components/sale/filesquery/filequerydetail/ChargeQueryDetail.vue +239 -239
  305. package/src/components/sale/filesquery/filequerydetail/DeviceQueryDetail.vue +126 -126
  306. package/src/components/sale/filesquery/filequerydetail/DisableQueryDetail.vue +272 -272
  307. package/src/components/sale/filesquery/filequerydetail/EnableQueryDetail.vue +274 -274
  308. package/src/components/sale/filesquery/filequerydetail/FillCardQueryDetail.vue +80 -80
  309. package/src/components/sale/filesquery/filequerydetail/FillGasQueryDetail.vue +80 -80
  310. package/src/components/sale/filesquery/filequerydetail/HandQueryDetail.vue +302 -302
  311. package/src/components/sale/filesquery/filequerydetail/MeterQueryDetail.vue +158 -158
  312. package/src/components/sale/filesquery/filequerydetail/OtherChargeQueryDetail.vue +198 -198
  313. package/src/components/sale/filesquery/filequerydetail/RecordQueryDetail.vue +125 -125
  314. package/src/components/sale/filesquery/filequerydetail/SellingHandDetail.vue +280 -280
  315. package/src/components/sale/filesquery/filequerydetail/TransferQueryDetail.vue +160 -160
  316. package/src/components/sale/filesquery/filequerydetail/UserQueryDetail.vue +155 -155
  317. package/src/components/sale/report/aode/DayReport.vue +50 -50
  318. package/src/components/sale/report/aode/DayReportSummary.vue +75 -75
  319. package/src/components/sale/report/aode/MonthByChargeType.vue +446 -446
  320. package/src/components/sale/report/aode/MonthByUserType.vue +413 -413
  321. package/src/components/sale/report/aode/YearByChargeTpye.vue +215 -215
  322. package/src/components/sale/report/aode/YearByUserType.vue +272 -272
  323. package/src/components/sale/report/aode/life/LifeDayReport.vue +50 -50
  324. package/src/components/sale/report/aode/life/LifeDayReportList.vue +241 -241
  325. package/src/components/sale/report/aode/life/LifeDayReportSummary.vue +49 -49
  326. package/src/components/sale/report/aode/life/LifeMonthReport.vue +303 -303
  327. package/src/components/sale/report/aode/life/LifeYearReport.vue +175 -175
  328. package/src/components/sale/report/aode/widget/LifeDayReportListPrint.vue +189 -189
  329. package/src/components/sale/report/aode/widget/LifeMonthPrint.vue +153 -153
  330. package/src/components/sale/report/aode/widget/LifeYearPrint.vue +143 -143
  331. package/src/components/sale/report/aode/widget/MonthByChargePrint.vue +236 -236
  332. package/src/components/sale/report/aode/widget/MonthByUserPrint.vue +232 -232
  333. package/src/components/sale/report/aode/widget/YearByChargePrint.vue +203 -203
  334. package/src/components/sale/report/aode/widget/YearByUserPrint.vue +225 -225
  335. package/src/components/scada/CaculateGasConsumputionByDay/CaculateGasConsumputionByDay.vue +290 -290
  336. package/src/components/scada/ChartDisplay/ChartDisplayManage.vue +55 -55
  337. package/src/components/scada/ChartDisplay/ChartThreeDayContrast.vue +164 -164
  338. package/src/components/scada/CumulativeFlow/CumulativeFlowHeatPlant.vue +400 -400
  339. package/src/components/scada/CumulativeFlow/CumulativeFlowManage.vue +59 -59
  340. package/src/components/scada/CumulativeFlow/CumulativeFlowRegulatorStation.vue +504 -504
  341. package/src/components/scada/CumulativeFlow/CumulativeFlowStation.vue +248 -248
  342. package/src/components/scada/GasSupplyRunning/GasSupplyRunningByDay.vue +297 -297
  343. package/src/components/scada/InstantaneousFlow/InstantaneousFlowHeatPlant.vue +389 -389
  344. package/src/components/scada/InstantaneousFlow/InstantaneousFlowManage.vue +57 -57
  345. package/src/components/scada/InstantaneousFlow/InstantaneousFlowRegulatorStation.vue +503 -503
  346. package/src/components/scada/InstantaneousFlow/InstantaneousFlowStation.vue +244 -244
  347. package/src/components/scada/OnTimePressure/OnTimePressureHeatPlant.vue +356 -356
  348. package/src/components/scada/OnTimePressure/OnTimePressureManage.vue +51 -51
  349. package/src/components/scada/OnTimePressure/OnTimePressureRegulatorStation.vue +526 -526
  350. package/src/components/scada/ThreeDayContrast/ThreeDayContrastManage.vue +282 -282
  351. package/src/components/statistical/DendrogramManage.vue +36 -1
  352. package/src/components/statistical/StatisticalAnalysis.vue +252 -252
  353. package/src/components/webmeter/DrillData/LargeScreenAnalysisEcharts.vue +710 -710
  354. package/src/components/webmeter/DrillData/LostContactAnalysis.vue +531 -531
  355. package/src/components/webmeter/DrillData/LostContactAnalysisList.vue +633 -633
  356. package/src/components/webmeter/DrillData/LostContactAnalysisManage.vue +30 -30
  357. package/src/components/webmeter/DrillData/LostContactEcharts.vue +177 -177
  358. package/src/components/webmeter/DrillData/LostContactEform.vue +190 -190
  359. package/src/components/webmeter/DrillData/UserGasEform.vue +227 -227
  360. package/src/components/webmeter/DrillData/UserLostContactAnalysis.vue +585 -585
  361. package/src/components/webmeter/dataCollection/DataCollection.vue +676 -676
  362. package/src/components/webmeter/gasAnalysis/GasAnalysisEcharts.vue +144 -144
  363. package/src/components/webmeter/gasAnalysis/GasAnalysisSummary.vue +162 -162
  364. package/src/components/webmeter/handplan/NewWebMeterHandPlan.vue +745 -745
  365. package/src/components/webmeter/handplan/NewWebmeterHandPlanMain.vue +59 -59
  366. package/src/components/webmeter/indicatorStatisticsEchars.vue +204 -204
  367. package/src/components/webmeter/indicatorStatisticsMain.vue +257 -257
  368. package/src/components/webmeter/meterinfo/NewMeterList.vue +414 -414
  369. package/src/components/webmeter/meterinfo/NewMeterListMain.vue +53 -53
  370. package/src/components/webmeter/newwebmeter/NewException/NewExceptionEform.vue +149 -149
  371. package/src/components/webmeter/newwebmeter/NewException/NewExceptionEformTotal.vue +211 -211
  372. package/src/components/webmeter/newwebmeter/NewException/NewGasEcharts.vue +208 -208
  373. package/src/components/webmeter/newwebmeter/NewException/NewMeterException.vue +449 -449
  374. package/src/components/webmeter/newwebmeter/NewException/TotalExceptionByMeter.vue +607 -607
  375. package/src/components/webmeter/newwebmeter/UserGasEchartsList.vue +284 -284
  376. package/src/components/webmeter/newwebmeter/UserGasList.vue +438 -438
  377. package/src/components/webmeter/newwebmeter/UserInstructEchartsList.vue +242 -242
  378. package/src/components/webmeter/newwebmeter/signAnalysisEcharts.vue +266 -266
  379. package/src/components/webmeter/newwebmeter/signAnalysisEform.vue +175 -175
  380. package/src/components/webmeter/newwebmeter/signAnalysisListMain.vue +387 -387
  381. package/src/components/yulin/GuanWang.vue +24 -24
  382. package/src/components/yulin/SingleBarLine.vue +352 -352
  383. package/src/components/yulin/Weather.vue +157 -157
  384. package/src/expandcss.less +26 -26
  385. package/src/filiale/WEINAN/EchartsBox.vue +110 -110
  386. package/src/filiale/WEINAN/InspectListUser.vue +492 -492
  387. package/src/filiale/WEINAN/OtherChargeQuery.vue +521 -521
  388. package/src/filiale/WEINAN/ReportDataQuery.vue +325 -325
  389. package/src/filiale/WEINAN/SiteManager.vue +191 -191
  390. package/src/filiale/WEINAN/UserGasAll.vue +577 -577
  391. package/src/filiale/WEINAN/UserGasEcharts.vue +281 -281
  392. package/src/filiale/WEINAN/UserGasList.vue +438 -438
  393. package/src/filiale/WEINAN/reportManage.js +12 -12
  394. package/src/filiale/WEINAN/sale.js +36 -36
  395. package/src/filiale/alashan/reportManage.js +10 -10
  396. package/src/filiale/aode/ArchivesManage.vue +38 -38
  397. package/src/filiale/aode/BusinessManage.vue +94 -94
  398. package/src/filiale/aode/DefaultPrint.js +6 -6
  399. package/src/filiale/aode/HandplanQuery.vue +632 -632
  400. package/src/filiale/aode/Tabs.vue +67 -67
  401. package/src/filiale/aode/UserQuery.vue +599 -599
  402. package/src/filiale/aode/sale.js +17 -17
  403. package/src/filiale/ceshi/ArrearsQuery.vue +642 -642
  404. package/src/filiale/ceshi/ChManageBusSummary.vue +293 -293
  405. package/src/filiale/ceshi/CollectManage.vue +94 -94
  406. package/src/filiale/ceshi/MeterRateQuery.vue +633 -633
  407. package/src/filiale/ceshi/TabButton.vue +149 -149
  408. package/src/filiale/ceshi/Tabs.vue +69 -69
  409. package/src/filiale/ceshi/reportManage.js +5 -5
  410. package/src/filiale/ceshi/sale.js +11 -11
  411. package/src/filiale/gaomi/config/DefaultPrint.js +6 -6
  412. package/src/filiale/gaomi/config/tableConfig.js +47 -47
  413. package/src/filiale/gongyi/sale/businessquery/exportConfig.js +17 -17
  414. package/src/filiale/gongyi/sale/filesquery/MeterQuery.vue +718 -718
  415. package/src/filiale/jingzhou/ChargeQuery.vue +1243 -1243
  416. package/src/filiale/jingzhou/config/exportConfig.js +861 -861
  417. package/src/filiale/liaoyuan/sale.js +11 -11
  418. package/src/filiale/macheng/MeterQuery.vue +921 -921
  419. package/src/filiale/macheng/config/DefaultPrint.js +12 -12
  420. package/src/filiale/meihekou/UserGasEform.vue +267 -267
  421. package/src/filiale/meihekou/YingShouMingXi.vue +538 -538
  422. package/src/filiale/qingtongxia/config/DefaultPrint.js +6 -6
  423. package/src/filiale/qingtongxia/sale.js +13 -13
  424. package/src/filiale/rongchuang/SellingTable.vue +250 -250
  425. package/src/filiale/rongchuang/reportManage.js +11 -11
  426. package/src/filiale/shaoguan/OtherChargeDetailQuery.vue +74 -74
  427. package/src/filiale/shaoguan/config/DefaultPrint.js +6 -6
  428. package/src/filiale/shennongjia/config/DefaultPrint.js +6 -6
  429. package/src/filiale/shennongjia/config/tableConfig.js +47 -47
  430. package/src/filiale/shennongjia/sale.js +10 -10
  431. package/src/filiale/tongchuan/ManageBusSummary.vue +240 -240
  432. package/src/filiale/tongchuan/reportManage.js +5 -5
  433. package/src/main.js +2 -2
  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/safeCheck.js +63 -63
  438. package/src/saleManage.js +4 -0
  439. package/src/stores/AppData.js +62 -62
  440. package/src/stores/DataSql.js +585 -585
  441. package/src/stores/DrillECharts.js +602 -602
  442. package/src/stores/DrillSql.js +888 -888
  443. package/src/stores/GetParames.js +15 -15
  444. package/src/stores/MagGetSaleParams.js +156 -156
  445. package/src/stores/MagLoadParams.js +63 -63
  446. package/src/stores/Util.js +132 -132
  447. package/src/stores/shanxi1.js +26 -26
  448. package/src/stores/yulin.js +27 -27
  449. package/static/china.json +1 -1
  450. package/static/qh.json +2410 -2410
  451. package/static/res.json +58411 -58411
  452. package/static/shanxi1.json +1 -1
  453. package/static/wuhai.json +1610 -1610
  454. package/static/yulin.json +1 -1
  455. package/static//345/261/261/344/270/234/347/234/201.json +1 -1
  456. package/test/unit/.eslintrc +5 -5
  457. package/test/unit/TestUtil.js +35 -35
  458. package/test/unit/context.html +20 -20
  459. package/test/unit/index.js +13 -13
  460. package/test/unit/init.js +11 -11
  461. package/test/unit/karma.conf.js +45 -45
  462. package/test/unit/specs/components/CallReport/Repair.spec.js +25 -25
  463. package/test/unit/specs/components/ManageBusiness/EquipmentQuery.spec.js +21 -21
  464. package/test/unit/specs/components/ManageBusiness/TableWithQuery.spec.js +21 -21
  465. package/test/unit/specs/components/ManageBusiness/UserQuery.spec.js +21 -21
  466. package/webstorm.config.js +13 -13
@@ -1,918 +1,918 @@
1
- <template>
2
- <div>
3
- <div class="datestyle">
4
- <label for="startDate" v-if="searchs!=='longnotbuygas'&&searchs!=='longnotusegas'&&searchs!=='lossassociation'">开始日期:</label>
5
- <datepicker id="startDate" placeholder="开始日期" class="childrendatestyle"
6
- v-if="searchs!=='longnotbuygas'&&searchs!=='longnotusegas'&&searchs!=='lossassociation'"
7
- v-model="model.startDate"
8
- :value.sync="model.startDate"
9
- :disabled-days-of-Week="[]"
10
- :format="'yyyy-MM-dd'"
11
- :show-reset-button="reset">
12
- </datepicker>
13
- <label for="endDate" v-if="searchs!=='longnotbuygas'&&searchs!=='longnotusegas'&&searchs!=='lossassociation'">结束日期:</label>
14
- <datepicker id="endDate" placeholder="结束日期" class="childrendatestyle"
15
- v-if="searchs!=='longnotbuygas'&&searchs!=='longnotusegas'&&searchs!=='lossassociation'"
16
- v-model="model.endDate"
17
- :value.sync="model.endDate"
18
- :disabled-days-of-Week="[]"
19
- :format="'yyyy-MM-dd'"
20
- :show-reset-button="reset">
21
- </datepicker>
22
- <div class="childrendatestyle datepicker " v-if="searchs==='longnotbuygas'">
23
- <input type="text" style="width:30%" class="childrendatestyle1" v-model="days1">
24
- <label>< 未购气天数 <=</label>
25
- <input type="text" style="width:30%" class="childrendatestyle1" v-model="days2">
26
- </div>
27
- <div class="childrendatestyle datepicker " v-if="searchs==='lossassociation'">
28
- <input type="text" style="width:30%" class="childrendatestyle1" v-model="days1">
29
- <label>< 失联天数<= </label>
30
- <input type="text" style="width:30%" class="childrendatestyle1" v-model="days2">
31
- </div>
32
- <div class="childrendatestyle datepicker " v-if="searchs==='longnotusegas'">
33
- <input type="text" style="width:30%" class="childrendatestyle1" v-model="days1">
34
- <label>< 未使用天数<=</label>
35
- <input type="text" style="width:30%" class="childrendatestyle1" v-model="days2">
36
- </div>
37
- <!--<label class="control-label">组织机构</label>-->
38
- <!--<right-tree :userid.sync='userid' :source.sync='source' @re-res="getRes" id="childrenorgstyle"></right-tree>-->
39
- </div>
40
- <div class="title-1">
41
- <span>{{parenttitle.pagename}} — <span
42
- style="font-size: 0.80em">{{parenttitle.pagechildrenname}}</span></span>
43
- <button class="button-1" @click="backclick">返回</button>
44
- </div>
45
- <div class="div-1">
46
- <div class="drillcontent" v-show="!listenlistshow">
47
- <div class="menuselect">
48
- <div class="selectstyle">
49
- <!--钻取下拉列表1-->
50
- <v-select id="selectid" v-ref:selected class="childrenselectstyle" :value.sync="select0"
51
- :options='drillparam' placeholder='请选择' close-on-select clear-button
52
- @click="getinitDate">
53
- </v-select>
54
- <!--钻取下拉列表2-->
55
- <v-select v-show="childrenselectshow" id="selectchildrenid" v-ref:selected1 class="childrenselectstyle"
56
- :value.sync="select1"
57
- :options='drillchildrenparam' placeholder='请选择' close-on-select clear-button
58
- @click="getinitDate1">
59
- </v-select>
60
- <input type="text" v-model="inputtext" :placeholder='textcontent'
61
- v-show="inputtextshow">
62
- <button class="button-21" @click="listenToChild1">钻取</button>
63
- <button class="button-2" @click="listenToChild2">清空</button>
64
- </div>
65
- <!--<div class="historydiv">-->
66
- <!--<div v-show="clickhistoryshow"><span v-for="s in clickhistory"><span class="history">{{s}}</span>-></span></div>-->
67
- <!--<div v-show="clickshow"><span v-for="s in clickparam"><span class="history">{{s}}</span>-></span></div>-->
68
- <!--</div>-->
69
- </div>
70
- <div class="drilltext" v-show="!listenlistshow">
71
- <!--图表-->
72
- <div id="echarts" class="echartsstyle"></div>
73
- <!--汇总表-->
74
- <drill-pool :pooldata="datapool" class="pool"></drill-pool>
75
- </div>
76
- </div>
77
- <!--详细列表-->
78
- <drill-list :listsqldata="listsqldata" :templatename="parenttitle.pagechildrenname" class="drilllist"
79
- :class="{'drillliststyle':listenlistshow}"></drill-list>
80
- </div>
81
- </div>
82
- </template>
83
-
84
- <script>
85
- import * as Util from '../../../Util'
86
- import * as Dec from '../../../stores/DrillECharts'
87
- import * as Drillsql from '../../../stores/DrillSql'
88
- import co from 'co'
89
-
90
- export default {
91
- name: "DrillData",
92
- props: {
93
- parenttitle: {
94
- pagename: String, //钻取页面name
95
- pagetitle: String, //钻取页面标题,也是取钻取信息的字段
96
- pagechildrenname: String, //钻取页面子标题
97
- }, // 钻取页面
98
- drillshow: Boolean,
99
- idname: String,
100
- childname: String, //获取初始图表的refs -name 进行setBar绘制初始echarts
101
- echartsdata: Array, //初始数据来源所钻取模块,进行汇总显示
102
- initdatatr: Object, //初始化配置文件数据
103
- listcondition: {
104
- clickparam: String,
105
- drillterm: String,
106
- tablename: String,
107
- drillcondition: String,
108
- sqlurl: String,
109
- headData: Array,
110
- bodyData: Array,
111
- },
112
- },
113
- data() {
114
- return {
115
- days1:0,
116
- days2:'',
117
- userid: this.$login.f.id,
118
- source: `tool.getFullTree(this.getRights().where(row.getType() != $zone$).where(row.getType() == $organization$))`,
119
- datapool: [], //汇总数据
120
- model: { //时间参数
121
- startDate: Util.toStandardDateString(),
122
- endDate: Util.toStandardDateString(),
123
- },
124
- drillparam: [], //一级钻取列表
125
- selectparam: '', //选择字段
126
- listsqldata: { //列表sql参数
127
- urlcarrydata: [],
128
- headData: [],
129
- bodyData: [],
130
- },
131
- xc: '',
132
-
133
- childrenselectshow: false, //二级下拉列表show
134
- drillchildrenparam: [], //二级下拉列表
135
- inputtextshow: false, //输入框show
136
- select0: [], //一级选中值
137
- select1: [], //二级选中值
138
- inputtext: '', //输入框
139
- textcontent: '', //输入框默认内容
140
- listenlistshow: false, //列表展开控制
141
- clickhistoryshow: false, //钻取历史显示
142
- clickshow: false, //点击历史显示
143
- datedefault: true, //默认不加载初始时间
144
- datelistif: false, //时间选择发生变化
145
-
146
- barparam: '', //饼状图点击字段
147
- clickhistory: [], //钻取历史
148
- clickparam: [], //点击历史
149
- sqlobtaindata: [], //请求后台获取的数据
150
- echartsType: '', //钻取后echarts的类型
151
- bartype: '', //时间分类类型(按年year,按月month)
152
-
153
- initflag: true, //初始化判断
154
- yname: '', //柱状图y名称
155
- xname: '', //柱状图x名称
156
- seriename: '', //seriename名称
157
- namesubif: false,
158
- searchs:''
159
- }
160
-
161
- },
162
- computed: {
163
- selected() {
164
- return this.$refs.grid.selected
165
- }
166
- },
167
- methods: {
168
- // 获取组织结构
169
- getRes(obj) {
170
- this.filialeNameStr = obj.res
171
- this.filialeCodeStr = obj.resids
172
- },
173
- // 返回二级页面
174
- backclick() {
175
- this.$echarts.init(document.getElementById('echarts')).clear()
176
- this.$parent.drillshow = false
177
- this.initflag = true
178
- this.resetParam()
179
- console.log(this.datedefault,'时间判断')
180
- },
181
- //图点击事件
182
- eConsole(param) {
183
- // 对饼状图进行点击处理
184
- if (this.echartsType == 'pie') {
185
- // 点击历史
186
- this.clickparam.push(param.data.name)
187
- // 控制显示历史
188
- this.clickshow = true
189
- // 点击字段记录
190
- this.barparam = param.data
191
- }
192
- },
193
- //钻取按键响应事件
194
- listenToChild1() {
195
- console.log('进入钻取----------------------------------------------------------------------')
196
- // 获取下拉列表zhi
197
- var texttile = this.$refs.selected.selectedItems
198
- var texttile1 = this.$refs.selected1.selectedItems
199
- console.log(texttile, '钻取一级类型')
200
- console.log(texttile1, '钻取二级类型')
201
- // 判断是否进行选择
202
- if (typeof texttile == "undefined" || texttile == '') {
203
- this.$showMessage('未选择查询类型!')
204
- return
205
- }
206
-
207
- var conditionparamone = {} //一级钻取字段对象
208
- var conditionparamtow = {} //二级钻取字段对象
209
-
210
- console.log(this.datedefault,'时间判断')
211
- // 填充默认时间
212
- console.log('---------------钻取时间前---------------------------')
213
- console.log(this.model.startDate)
214
- console.log(this.model.endDate)
215
- if (this.datedefault == true) {
216
- Drillsql.startDate = eval(Util.toStandardDateString().toString().substring(0, 4) + '-50') + '-01-01'
217
- Drillsql.endDate = this.model.endDate
218
- } else {
219
- Drillsql.startDate = this.model.startDate
220
- Drillsql.endDate = this.model.endDate
221
- }
222
- console.log('==========================钻取时间后后后后后后后后后---------------------------')
223
- console.log(this.model.startDate)
224
- console.log(this.model.endDate)
225
-
226
- //特殊处理
227
- var param = Drillsql.param
228
- var param1 = Drillsql.param1
229
-
230
- if (this.inputtext != '' && this.idname == 'pastscale') {
231
- Drillsql.param = this.inputtext
232
- Drillsql.param1 = this.inputtext
233
- }
234
-
235
- //获取选中一级分类的信息
236
- conditionparamone = Drillsql.getDrillParameter(this.parenttitle.pagetitle, this.idname, texttile, '')
237
- // 填充钻取状态
238
- this.clickhistoryshow = true
239
- this.bartype = conditionparamone.name
240
- this.clickhistory.push(conditionparamone.label)
241
- this.echartsType = conditionparamone.echartsType
242
- var dateparam = conditionparamone.dateparam
243
- var dateparamif = conditionparamone.dateif
244
- if (conditionparamone.echartsType == 'bar') {
245
- this.yname = conditionparamone.yname
246
- this.xname = conditionparamone.xname
247
- this.seriename = conditionparamone.seriename
248
- this.namesubif = conditionparamone.namesubif
249
- }
250
-
251
-
252
- // 判断是否有二级钻取
253
- if (texttile1 != '') {
254
- //获取选中二级分类的信息
255
- conditionparamtow = Drillsql.getDrillParameter(this.parenttitle.pagetitle, this.idname, texttile, texttile1)
256
- // 填充钻取状态
257
- this.bartype = conditionparamtow.name
258
- this.clickhistory.push(conditionparamtow.label)
259
- this.echartsType = conditionparamtow.echartsType
260
- dateparam = conditionparamtow.dateparam
261
- dateparamif = conditionparamtow.dateif
262
- if (conditionparamtow.echartsType == 'bar') {
263
- this.yname = conditionparamtow.yname
264
- this.xname = conditionparamtow.xname
265
- this.seriename = conditionparamtow.seriename
266
- this.namesubif = conditionparamtow.namesubif
267
- }
268
-
269
-
270
- //往期购气特殊处理
271
- if (conditionparamtow.label == '高于往期购气量' && this.inputtext < 1) {
272
- this.$showMessage('请输入大于1的数!')
273
- Drillsql.param = param
274
- Drillsql.param1 = param1
275
- return
276
- }
277
- if (conditionparamtow.label == '低于往期购气量' && (this.inputtext > 1 || this.inputtext > 1)) {
278
- this.$showMessage('请输入0-1之间的数!')
279
- Drillsql.param = param
280
- Drillsql.param1 = param1
281
- return
282
- }
283
- } else {
284
- conditionparamtow = {}
285
- }
286
-
287
- // console.log(conditionparamone, '一级分类信息')
288
- // console.log(conditionparamtow, '二级分类信息')
289
- // console.log(this.clickhistory, this.echartsType, '图状态信息')
290
- // 点击字段进行sql拼接
291
- var barcondition = ''
292
- if (this.barparam != '' && conditionparamone.barparamif) {
293
- barcondition = ' and ' + this.barparam.drilltype + '=\'' + this.barparam.name + '\' '
294
- console.log("========================================listenToChild1拼条件了",barcondition)
295
- }
296
- var dateif=true
297
- // 时间参数进行sql拼接
298
- if (this.datalistif && !this.datedefault && !dateparamif && this.searchs!=='longnotbuygas'&&this.searchs!=='longnotusegas'&&this.searchs!=='lossassociation') {
299
- dateif=false
300
- barcondition = dateparam + '>=to_date(\'' + Drillsql.startDate+ '\',\'yyyy-MM-dd\') and '
301
- + dateparam + '<=to_date(\'' + Drillsql.endDate + '\',\'yyyy-MM-dd \')' + barcondition
302
- }
303
- console.log('拼接的参数后的数据--------------------------')
304
- console.log(barcondition,'拼接的参数后的数据')
305
- // 拼接SQL查询条件
306
- // keys:分组字段 drillparam:选择字段 drillterm:查询条件
307
- // console.log(barcondition, '拼接字段')
308
- //重置明细数据
309
-
310
- var sqlparam = ''
311
-
312
- if (JSON.stringify(conditionparamtow) == '{}') {
313
- // 获取一级分类sql
314
-
315
- sqlparam = conditionparamone.sqlcondition
316
- } else {
317
- // 获取二级分类sql
318
- sqlparam = conditionparamtow.sqlcondition
319
- }
320
- var condition =''
321
-
322
- // 拼接点击条件
323
- if(this.idname=='usernum'|| this.idname=='pastscale'){
324
- condition =barcondition
325
- }else {
326
- if(!barcondition){
327
- condition =this.bartype
328
- }else{
329
- condition =this.bartype+' and '+barcondition
330
- }
331
- }
332
- if(!barcondition){
333
- barcondition=conditionparamone.name?(' '+conditionparamone.name):''+conditionparamtow.name?(' and '+conditionparamtow.name):' '
334
- }else{
335
- barcondition+=' and '+ barcondition
336
- }
337
- if(!this.days1){
338
- this.days1=0
339
- }
340
-
341
- if(this.searchs==='longnotbuygas'){ // 长期未购气
342
- barcondition = barcondition+' and CAST(trunc(SYSDATE)- NVL(F_SELLINGGAS_MAX_DATE,a.f_input_date) as int) > ' + this.days1
343
- if(this.days2){
344
- barcondition = barcondition+ ' and CAST(trunc(SYSDATE)- NVL(F_SELLINGGAS_MAX_DATE,a.f_input_date) as int) <= ' + this.days2
345
- }
346
- }else if(this.searchs==='longnotusegas'){ // 长期未用气
347
- barcondition =barcondition+ ' and CAST(trunc(SYSDATE)- trunc(F_HANDPLAN_MAX_HANDDATE) as int) >' + this.days1
348
- if(this.days2){
349
- barcondition = barcondition+ ' and CAST(trunc(SYSDATE)- trunc(F_HANDPLAN_MAX_HANDDATE) as int) <='+this.days2
350
- }
351
- }else if(this.searchs==='lossassociation'){ // 失联
352
- barcondition = barcondition+' and slday >'+this.days1
353
- if(this.days2){
354
- barcondition =barcondition+ ' and slday <='+this.days2
355
- }
356
- }
357
- condition=barcondition
358
-
359
- //请求后台数据
360
- var sqlcondition = {
361
- startDate:Drillsql.startDate,
362
- endDate:Drillsql.endDate,
363
- param:Drillsql.param,
364
- param1:Drillsql.param1,
365
- param2:Drillsql.param2,
366
- condition:condition
367
- }
368
- if( this.idname=='pastscale'){
369
- var s1 = eval('(' + Drillsql.param + '-1)*100')
370
- var s1 = s1.toString().substring(0, 5)
371
- var s2 = eval(Drillsql.param1 + '*100')
372
- var s2 = s2.toString().substring(0, 5)
373
- var s3=''
374
- s3= conditionparamone.label
375
- if(s3=='全部'){
376
- s3=''
377
- }
378
- sqlcondition.s1=s1
379
- sqlcondition.s2=s2
380
- sqlcondition.s3=s3
381
- if(conditionparamone.name){
382
- console.log("拼conditionparamone.name")
383
- sqlcondition.param3=' and '+conditionparamone.name
384
- }
385
- }
386
- console.log(sqlcondition, '图表请求sql')
387
- let getsqldata = Dec.getData(this, sqlparam ,sqlcondition)
388
- co(getsqldata)
389
- // 时间参数进行sql拼接
390
- console.log("=======================准备调用getDrillList!!!!"+this.parenttitle.pagetitle+"========"+this.idname)
391
- var pagelist = Drillsql.getDrillList(this.parenttitle.pagetitle, this.idname, '', '')
392
- console.log("=======================!!!!pagelist:"+JSON.stringify(pagelist[2]))
393
- console.log("this.searchs:"+this.searchs+"======this.datalistif:"+this.datalistif+"======!this.datedefault:"+!this.datedefault+"======dateif:"+dateif)
394
- if (this.datalistif && !this.datedefault&&dateif&&this.searchs==='longnotbuygas'&&this.searchs==='longnotusegas'&&this.searchs==='lossassociation') {
395
- this.datelistif = false
396
- }
397
- console.log(barcondition, '时间sqllist')
398
- //获取列表sql
399
- if (!conditionparamone.listif) {
400
- console.log("!!!!!!!!!!!!!!!!!!!!!!!conditionparamone.listif拼了barcondition",conditionparamone.name)
401
- barcondition = barcondition
402
- }
403
- if (texttile1 != '' && this.searchs!=='lossassociation' && this.searchs!=='longnotusegas' && this.searchs!=='longnotbuygas' ) {
404
- barcondition = barcondition + '\t and '+ conditionparamtow.listparam
405
- }
406
- var list = Drillsql.listparam
407
- // 警告特殊处理
408
- if (this.idname == 'caveat'||this.idname == 'lossassociation'||this.idname == 'longnotusegas'||this.idname == 'longnotbuygas') {
409
- Drillsql.listparam = ''
410
- }
411
- Drillsql.listparam1 = barcondition
412
- console.log(Drillsql.listparam1, '列表钻取条件 ')
413
- pagelist = Drillsql.getDrillList(this.parenttitle.pagetitle, this.idname, '', '')
414
- console.log("========pagelist",pagelist)
415
- var sqllistcondition= [this.idname+'list',20,{listparam:"\""+Drillsql.listparam+"\"",listparam1:"\""+Drillsql.listparam1+"\""}]
416
- //调用赋值函数,传递给绘图子组件
417
-
418
- this.Transfer(sqllistcondition, pagelist[0].headData, pagelist[1].bodyData)
419
- Drillsql.param = param
420
- Drillsql.param1 = param1
421
- Drillsql.listparam = list
422
- },
423
-
424
- //清空按键事件
425
- listenToChild2() {
426
- this.xc.clear()
427
- this.resetParam()
428
-
429
- //重新初始化
430
- this.initdata()
431
- },
432
- //重置参数
433
- resetParam() {
434
- this.barparam = '' //清空点击字段
435
- this.drillparam = [] //清空下拉列表
436
- this.select0 = []
437
- this.drillchildrenparam = [] //清空子下拉列表
438
- this.clickhistory = [] //清空查询历史
439
- this.clickparam = [] //清空点击历史
440
-
441
- this.model.startDate = Util.toStandardDateString() //重置时间为当前时间
442
- this.model.endDate = Util.toStandardDateString()
443
-
444
- this.childrenselectshow = false //关闭子下拉列表
445
- this.clickhistoryshow = false //关闭查询历史显示
446
- this.clickshow = false //关闭点击历史显示
447
- this.datelistif = false //关闭时间更改标志
448
- this.datedefault = true //打开时间初始标志
449
- this.inputtextshow = false //关闭输入框
450
- this.textcontent = ''
451
- this.inputtext = ''
452
- },
453
- //传递参数赋值,传递给子组件
454
- Transfer(pageurl, headData, bodyData) {
455
- this.listsqldata.urlcarrydata = pageurl
456
- this.listsqldata.headData = headData
457
- this.listsqldata.bodyData = bodyData
458
- },
459
- //初始化图表数据参数
460
- initdata() {
461
- console.log(this.idname)
462
- this.searchs=this.idname
463
- console.log(this.echartsdata, '钻取初始化参数')
464
- console.log(this.initdatatr, '初始化获取sql的参数')
465
-
466
-
467
- Drillsql.startDate = this.initdatatr['startDate']
468
- Drillsql.endDate = this.initdatatr['endDate']
469
- Drillsql.param = this.initdatatr['param']
470
- Drillsql.param1 = this.initdatatr['param1']
471
- Drillsql.listparam = this.initdatatr['listparam']
472
- Drillsql.listparam1 = ''
473
-
474
-
475
- //特殊处理
476
- if (this.parenttitle.pagechildrenname == '主要用户展示') {
477
- Drillsql.listparam1 = ' a.f_user_type=\'非民用\' '
478
- }
479
-
480
- this.$parent.$refs[this.childname].setBar("echarts")
481
- this.datapool = this.$parent.childdata
482
- var pagelist = Drillsql.getDrillList(this.parenttitle.pagetitle, this.idname, '', '')
483
- console.log(pagelist)
484
- var sqllistcondition= [this.idname+'list',20,{listparam:"\""+Drillsql.listparam+"\"",listparam1:"\""+Drillsql.listparam1+"\""}]
485
-
486
- //调用赋值函数,传递给绘图子组件
487
- this.Transfer(sqllistcondition, pagelist[0].headData, pagelist[1].bodyData)
488
-
489
- },
490
-
491
- getinitDate() {
492
- this.inputtextshow = false
493
- this.textcontent = ''
494
- this.inputtext = ''
495
- this.drillparam = Drillsql.getDrillParameter(this.parenttitle.pagetitle, this.idname, '', '')
496
- },
497
- //整理数据
498
- notgasData(res) {
499
- var nobuygasdata=[]
500
- let num = [0, 0, 0, 0, 0, 0 ]
501
- num[0] = res[0].week
502
- num[1] = res[0].month
503
- num[2] = res[0].tmonth
504
- num[3] = res[0].harfyear
505
- num[4] = res[0].year
506
- num[5] = res[0].more
507
- var date = ['0-7', '7-30', '30-90', '90-180', '180-360','>360']
508
- var i = 0
509
- num.forEach((row)=>{
510
-
511
- let item = {}
512
- item.name = date[i]
513
- item.value = num[i]
514
- item.type = this.select1[0]?this.select1[0]:this.select0[0]
515
- nobuygasdata.push(item)
516
- i++
517
- })
518
-
519
- console.log("@@@@@@@@@@@@@@@@",nobuygasdata)
520
- return nobuygasdata
521
- },
522
- }
523
- ,
524
- watch: {
525
- 'model':
526
- {
527
- deep: true,
528
- handler(val) {
529
- if(!this.$parent.drillshow){
530
- return
531
- }
532
- this.datedefault = false
533
- this.datalistif = true
534
- }
535
- ,
536
- }
537
- ,
538
- 'echartsdata':
539
- {
540
- deep: true,
541
- handler(val) {
542
- if (typeof this.echartsdata !== "undefined" && this.drillshow == true && this.initflag) {
543
- this.initdata()
544
- this.initflag = false
545
- }
546
- }
547
- ,
548
- immediate: true
549
- }
550
- ,
551
- 'drillshow':
552
- {
553
- deep: true,
554
- handler(val) {
555
- console.log("!!!!!!!!!!!!!!!!!!!!!!drillshow变了!",val)
556
- if(val){
557
- this.datedefault = false
558
- this.datalistif = true
559
- }
560
- return
561
- if (typeof this.echartsdata !== "undefined" && this.drillshow == true && this.initflag) {
562
- this.initdata()
563
- this.initflag = false
564
- }
565
- }
566
- ,
567
- immediate: true
568
- }
569
- ,
570
- 'select0':
571
- {
572
- deep: true,
573
- handler() {
574
- // console.log(this.select0, '选中分类的值')
575
- if (this.select0.length < 1) {
576
- return
577
- }
578
- this.select1 = ''
579
-
580
- this.childrenselectshow = false
581
- var self = this
582
- this.drillparam.forEach(function (s) {
583
- if (self.select0 == s.value && s.name == 't_area') {
584
- let gen = Dec.select(self, 't_area', '1=1')
585
- co(gen)
586
- }
587
- })
588
- setTimeout(() => {
589
- self.drillparam.forEach(function (s) {
590
- console.log("select0!!!!!!!!!!!!!!",s)
591
- if (s.value == self.select0) {
592
- if (typeof s.children != "undefined" && JSON.stringify(s.children) != '[]') {
593
- self.childrenselectshow = true
594
- self.drillchildrenparam = s.children
595
- }
596
- }
597
-
598
- })
599
- }, 500)
600
- }
601
- }
602
- ,
603
- 'select1':
604
- {
605
- deep: true,
606
- handler() {
607
- // console.log(this.select1, '选中分类的值')
608
- if (this.select1.length < 1) {
609
- return
610
- }
611
- var self = this
612
- var l = 0
613
- var texttile = this.$refs.selected.selectedItems
614
- this.drillparam.forEach(function (s) {
615
- if (s.label == texttile && s.inputchildren != '') {
616
- l++
617
- self.inputtextshow = true
618
- self.textcontent = s.inputchildren
619
- }
620
- })
621
- if (l == 0) {
622
- this.inputtextshow = false
623
- this.textcontent = ''
624
- this.inputtext = ''
625
- }
626
- }
627
- }
628
- ,
629
- 'sqlobtaindata':
630
- {
631
- deep: true,
632
- async handler(val) {
633
- console.log("==================>",val)
634
- if (this.sqlobtaindata.length < 1) {
635
- this.$showMessage('数据为空!')
636
- return
637
- }
638
-
639
- if(this.searchs==='longnotbuygas'||this.searchs==='longnotusegas'||this.searchs==='lossassociation'){
640
- var dates=[]
641
- dates=await this.notgasData(this.sqlobtaindata)
642
- if (this.echartsType == 'pie') {
643
- this.datapool = dates
644
- Dec.setPie(this, 'echarts', this.sqlobtaindata, this.sqlobtaindata)
645
- }
646
- if (this.echartsType == 'bar') {
647
- this.datapool = dates
648
-
649
- var cachebardata = await Dec.DataIntegration(dates)
650
- console.log(cachebardata, this.bartype, '整合数据及柱状图状态')
651
- Dec.setBar(this, 'echarts', cachebardata, this.xname, this.yname, this.seriename, this.idname, this.namesubif)
652
- }
653
- }else{
654
-
655
- if (this.echartsType == 'pie') {
656
- this.datapool = this.sqlobtaindata
657
- Dec.setPie(this, 'echarts', this.sqlobtaindata, this.sqlobtaindata)
658
- }
659
- if (this.echartsType == 'bar') {
660
- this.datapool = this.sqlobtaindata
661
- var cachebardata = Dec.DataIntegration(this.sqlobtaindata)
662
- // console.log(cachebardata, this.bartype, '整合数据及柱状图状态')
663
- Dec.setBar(this, 'echarts', cachebardata, this.xname, this.yname, this.seriename, this.idname, this.namesubif)
664
- }
665
- }
666
-
667
-
668
-
669
-
670
- }
671
- },
672
- },
673
- ready() {
674
-
675
- // console.log(this.drillshow, '三级页面')
676
- // this.model.startDate = Util.toStandardDateString()
677
- // this.model.endDate = Util.toStandardDateString()
678
- }
679
- }
680
- </script>
681
-
682
- <style>
683
- .childrendatestyle input {
684
- background-color: rgba(1, 207, 242, 0.01);
685
- border: solid 1px #6fd9d0;
686
- color: white;
687
- }
688
- .childrendatestyle1{
689
- background-color: rgba(1, 207, 242, 0.01);
690
- border: solid 1px #6fd9d0;
691
- color: white;
692
- }
693
- .childrendatestyle .datepicker-popup {
694
- background-color: #023740 !important;
695
- border: solid 1px #6fd9d0;
696
- color: white !important;
697
- }
698
-
699
- .childrendatestyle .datepicker-monthRange span:hover,
700
- .datepicker-ctrl p:hover,
701
- .datepicker-ctrl i:hover,
702
- .datepicker-dateRange span:hover,
703
- .datepicker-dateRange-item-hover {
704
- background-color: #00f3ff !important;
705
- /*border: solid 1px #6fd9d0;*/
706
- color: white !important;
707
- }
708
-
709
- .childrenselectstyle button {
710
- background-color: #013e48 !important;
711
- border: solid 1px #6fd9d0 !important;
712
- color: white !important;
713
- }
714
-
715
- .childrenselectstyle ul {
716
- background-color: #013e48 !important;
717
- border: solid 1px #6fd9d0 !important;
718
-
719
- }
720
-
721
- .childrenselectstyle div {
722
- background-color: #013e48 !important;
723
- color: white !important;
724
- }
725
-
726
- .childrenselectstyle li a {
727
- color: white !important;
728
- }
729
-
730
- .childrenselectstyle li a:hover {
731
- background-color: #05525f;
732
- }
733
-
734
- #childrenorgstyle #vc-chooser .list-group-item {
735
- background-color: #013e48 !important;
736
- color: #fff !important;
737
- }
738
-
739
- #childrenorgstyle #vc-chooser .list-group {
740
- background-color: #6fd9d0 !important;
741
- color: #fff !important;
742
- }
743
-
744
- #childrenorgstyle #vc-chooser button {
745
- border: solid 1px #6fd9d0;
746
- background-color: rgba(1, 207, 242, 0.01) !important;
747
- color: #fff !important;
748
- }
749
- </style>
750
- <style scoped>
751
- label {
752
- color: white;
753
- }
754
-
755
- .datestyle {
756
- padding-left: 3%;
757
- width: 100%;
758
- height: 9%;
759
- }
760
-
761
- .div-1 {
762
-
763
- height: 80%;
764
- width: 100%;
765
- }
766
-
767
- .title-1 {
768
- border-radius: 10px 10px 0px 0px;
769
- margin: 0% 2%;
770
- padding: 0% 2%;
771
- font-size: 1.6em;
772
- display: flex;
773
- /*实现垂直居中*/
774
- align-items: center;
775
- justify-content: space-between;
776
- color: #fff;
777
- height: 8%;
778
- width: 96%;
779
- background-color: rgba(1, 207, 242, 0.08);
780
- }
781
-
782
- .button-1 {
783
- height: 65%;
784
- width: 6%;
785
- margin-right: 1%;
786
- background-color: #013e48;
787
- border-radius: 6px;
788
- border: solid 1px #40cfc3;
789
- font-size: 0.65em;
790
- float: right;
791
- }
792
-
793
- .button-2 {
794
- color: white;
795
- height: 100%;
796
- width: 12%;
797
- margin-left: 2%;
798
- margin-top: 0.1%;
799
- background-color: #013e48;
800
- border-radius: 6px;
801
- border: solid 1px #40cfc3;
802
- font-size: 1em;
803
- }
804
-
805
- .button-1:hover {
806
- background-color: #40cfc3;
807
- border: 1px solid #00ffea;
808
- border-radius: 6px;
809
- }
810
-
811
- .button-2:hover {
812
- background-color: #00ffe9;
813
- border: 1px solid #013e48;
814
- border-radius: 6px;
815
- }
816
-
817
- .button-21 {
818
- background-color: #40cfc3;
819
- border-radius: 6px;
820
- color: white;
821
- height: 100%;
822
- width: 12%;
823
- margin-left: 2%;
824
- margin-top: 0.1%;
825
- border: solid 1px #40cfc3;
826
- font-size: 1em;
827
- }
828
-
829
- .button-21:hover {
830
- border: 1px solid #00ffea;
831
- border-radius: 6px;
832
- }
833
-
834
- .drillcontent {
835
- margin-left: 2%;
836
- width: 52%;
837
- height: 100%;
838
- float: left;
839
- background-color: rgba(1, 207, 242, 0.04);
840
- }
841
-
842
- .drilltext {
843
- width: 100%;
844
- height: 84%;
845
- /*background-color: #c7254e;*/
846
- }
847
-
848
- .echartsstyle {
849
- height: 95%;
850
- width: 56%;
851
- float: left;
852
- /*background-color: white;*/
853
- }
854
-
855
- .pool {
856
- height: 100%;
857
- width: 44%;
858
- float: left;
859
- /*background-color: #c7254e;*/
860
- }
861
-
862
- .drilllist {
863
- height: 100%;
864
- width: 44%;
865
- float: left;
866
- background-color: rgba(1, 207, 242, 0.04);
867
- }
868
-
869
- .drillliststyle {
870
- margin-left: 2%;
871
- height: 96%;
872
- width: 96%;
873
- float: left;
874
- background-color: rgba(1, 207, 242, 0.04);
875
- }
876
-
877
- .menuselect {
878
- margin-top: 1%;
879
- margin-left: 4%;
880
- height: 16%;
881
- width: 96%;
882
- }
883
-
884
- .selectstyle {
885
- height: 45%;
886
- }
887
-
888
- .datestyle label {
889
- margin-left: 1%;
890
- margin-top: 1%;
891
- }
892
-
893
- #selectchildrenid {
894
- margin-left: 1%;
895
- }
896
-
897
- .history {
898
- border-radius: 2px;
899
- border: solid 1px #2f9ad1;
900
- color: #2f9ad1;
901
- }
902
-
903
- .historydiv div {
904
- height: 49%;
905
- }
906
-
907
- .historydiv {
908
- height: 55%;
909
- }
910
-
911
- .selectstyle input {
912
- width: 20%;
913
- height: 95%;
914
- background-color: #023740 !important;
915
- border: solid 1px #6fd9d0;
916
- color: white !important;
917
- }
918
- </style>
1
+ <template>
2
+ <div>
3
+ <div class="datestyle">
4
+ <label for="startDate" v-if="searchs!=='longnotbuygas'&&searchs!=='longnotusegas'&&searchs!=='lossassociation'">开始日期:</label>
5
+ <datepicker id="startDate" placeholder="开始日期" class="childrendatestyle"
6
+ v-if="searchs!=='longnotbuygas'&&searchs!=='longnotusegas'&&searchs!=='lossassociation'"
7
+ v-model="model.startDate"
8
+ :value.sync="model.startDate"
9
+ :disabled-days-of-Week="[]"
10
+ :format="'yyyy-MM-dd'"
11
+ :show-reset-button="reset">
12
+ </datepicker>
13
+ <label for="endDate" v-if="searchs!=='longnotbuygas'&&searchs!=='longnotusegas'&&searchs!=='lossassociation'">结束日期:</label>
14
+ <datepicker id="endDate" placeholder="结束日期" class="childrendatestyle"
15
+ v-if="searchs!=='longnotbuygas'&&searchs!=='longnotusegas'&&searchs!=='lossassociation'"
16
+ v-model="model.endDate"
17
+ :value.sync="model.endDate"
18
+ :disabled-days-of-Week="[]"
19
+ :format="'yyyy-MM-dd'"
20
+ :show-reset-button="reset">
21
+ </datepicker>
22
+ <div class="childrendatestyle datepicker " v-if="searchs==='longnotbuygas'">
23
+ <input type="text" style="width:30%" class="childrendatestyle1" v-model="days1">
24
+ <label>< 未购气天数 <=</label>
25
+ <input type="text" style="width:30%" class="childrendatestyle1" v-model="days2">
26
+ </div>
27
+ <div class="childrendatestyle datepicker " v-if="searchs==='lossassociation'">
28
+ <input type="text" style="width:30%" class="childrendatestyle1" v-model="days1">
29
+ <label>< 失联天数<= </label>
30
+ <input type="text" style="width:30%" class="childrendatestyle1" v-model="days2">
31
+ </div>
32
+ <div class="childrendatestyle datepicker " v-if="searchs==='longnotusegas'">
33
+ <input type="text" style="width:30%" class="childrendatestyle1" v-model="days1">
34
+ <label>< 未使用天数<=</label>
35
+ <input type="text" style="width:30%" class="childrendatestyle1" v-model="days2">
36
+ </div>
37
+ <!--<label class="control-label">组织机构</label>-->
38
+ <!--<right-tree :userid.sync='userid' :source.sync='source' @re-res="getRes" id="childrenorgstyle"></right-tree>-->
39
+ </div>
40
+ <div class="title-1">
41
+ <span>{{parenttitle.pagename}} — <span
42
+ style="font-size: 0.80em">{{parenttitle.pagechildrenname}}</span></span>
43
+ <button class="button-1" @click="backclick">返回</button>
44
+ </div>
45
+ <div class="div-1">
46
+ <div class="drillcontent" v-show="!listenlistshow">
47
+ <div class="menuselect">
48
+ <div class="selectstyle">
49
+ <!--钻取下拉列表1-->
50
+ <v-select id="selectid" v-ref:selected class="childrenselectstyle" :value.sync="select0"
51
+ :options='drillparam' placeholder='请选择' close-on-select clear-button
52
+ @click="getinitDate">
53
+ </v-select>
54
+ <!--钻取下拉列表2-->
55
+ <v-select v-show="childrenselectshow" id="selectchildrenid" v-ref:selected1 class="childrenselectstyle"
56
+ :value.sync="select1"
57
+ :options='drillchildrenparam' placeholder='请选择' close-on-select clear-button
58
+ @click="getinitDate1">
59
+ </v-select>
60
+ <input type="text" v-model="inputtext" :placeholder='textcontent'
61
+ v-show="inputtextshow">
62
+ <button class="button-21" @click="listenToChild1">钻取</button>
63
+ <button class="button-2" @click="listenToChild2">清空</button>
64
+ </div>
65
+ <!--<div class="historydiv">-->
66
+ <!--<div v-show="clickhistoryshow"><span v-for="s in clickhistory"><span class="history">{{s}}</span>-></span></div>-->
67
+ <!--<div v-show="clickshow"><span v-for="s in clickparam"><span class="history">{{s}}</span>-></span></div>-->
68
+ <!--</div>-->
69
+ </div>
70
+ <div class="drilltext" v-show="!listenlistshow">
71
+ <!--图表-->
72
+ <div id="echarts" class="echartsstyle"></div>
73
+ <!--汇总表-->
74
+ <drill-pool :pooldata="datapool" class="pool"></drill-pool>
75
+ </div>
76
+ </div>
77
+ <!--详细列表-->
78
+ <drill-list :listsqldata="listsqldata" :templatename="parenttitle.pagechildrenname" class="drilllist"
79
+ :class="{'drillliststyle':listenlistshow}"></drill-list>
80
+ </div>
81
+ </div>
82
+ </template>
83
+
84
+ <script>
85
+ import * as Util from '../../../Util'
86
+ import * as Dec from '../../../stores/DrillECharts'
87
+ import * as Drillsql from '../../../stores/DrillSql'
88
+ import co from 'co'
89
+
90
+ export default {
91
+ name: "DrillData",
92
+ props: {
93
+ parenttitle: {
94
+ pagename: String, //钻取页面name
95
+ pagetitle: String, //钻取页面标题,也是取钻取信息的字段
96
+ pagechildrenname: String, //钻取页面子标题
97
+ }, // 钻取页面
98
+ drillshow: Boolean,
99
+ idname: String,
100
+ childname: String, //获取初始图表的refs -name 进行setBar绘制初始echarts
101
+ echartsdata: Array, //初始数据来源所钻取模块,进行汇总显示
102
+ initdatatr: Object, //初始化配置文件数据
103
+ listcondition: {
104
+ clickparam: String,
105
+ drillterm: String,
106
+ tablename: String,
107
+ drillcondition: String,
108
+ sqlurl: String,
109
+ headData: Array,
110
+ bodyData: Array,
111
+ },
112
+ },
113
+ data() {
114
+ return {
115
+ days1:0,
116
+ days2:'',
117
+ userid: this.$login.f.id,
118
+ source: `tool.getFullTree(this.getRights().where(row.getType() != $zone$).where(row.getType() == $organization$))`,
119
+ datapool: [], //汇总数据
120
+ model: { //时间参数
121
+ startDate: Util.toStandardDateString(),
122
+ endDate: Util.toStandardDateString(),
123
+ },
124
+ drillparam: [], //一级钻取列表
125
+ selectparam: '', //选择字段
126
+ listsqldata: { //列表sql参数
127
+ urlcarrydata: [],
128
+ headData: [],
129
+ bodyData: [],
130
+ },
131
+ xc: '',
132
+
133
+ childrenselectshow: false, //二级下拉列表show
134
+ drillchildrenparam: [], //二级下拉列表
135
+ inputtextshow: false, //输入框show
136
+ select0: [], //一级选中值
137
+ select1: [], //二级选中值
138
+ inputtext: '', //输入框
139
+ textcontent: '', //输入框默认内容
140
+ listenlistshow: false, //列表展开控制
141
+ clickhistoryshow: false, //钻取历史显示
142
+ clickshow: false, //点击历史显示
143
+ datedefault: true, //默认不加载初始时间
144
+ datelistif: false, //时间选择发生变化
145
+
146
+ barparam: '', //饼状图点击字段
147
+ clickhistory: [], //钻取历史
148
+ clickparam: [], //点击历史
149
+ sqlobtaindata: [], //请求后台获取的数据
150
+ echartsType: '', //钻取后echarts的类型
151
+ bartype: '', //时间分类类型(按年year,按月month)
152
+
153
+ initflag: true, //初始化判断
154
+ yname: '', //柱状图y名称
155
+ xname: '', //柱状图x名称
156
+ seriename: '', //seriename名称
157
+ namesubif: false,
158
+ searchs:''
159
+ }
160
+
161
+ },
162
+ computed: {
163
+ selected() {
164
+ return this.$refs.grid.selected
165
+ }
166
+ },
167
+ methods: {
168
+ // 获取组织结构
169
+ getRes(obj) {
170
+ this.filialeNameStr = obj.res
171
+ this.filialeCodeStr = obj.resids
172
+ },
173
+ // 返回二级页面
174
+ backclick() {
175
+ this.$echarts.init(document.getElementById('echarts')).clear()
176
+ this.$parent.drillshow = false
177
+ this.initflag = true
178
+ this.resetParam()
179
+ console.log(this.datedefault,'时间判断')
180
+ },
181
+ //图点击事件
182
+ eConsole(param) {
183
+ // 对饼状图进行点击处理
184
+ if (this.echartsType == 'pie') {
185
+ // 点击历史
186
+ this.clickparam.push(param.data.name)
187
+ // 控制显示历史
188
+ this.clickshow = true
189
+ // 点击字段记录
190
+ this.barparam = param.data
191
+ }
192
+ },
193
+ //钻取按键响应事件
194
+ listenToChild1() {
195
+ console.log('进入钻取----------------------------------------------------------------------')
196
+ // 获取下拉列表zhi
197
+ var texttile = this.$refs.selected.selectedItems
198
+ var texttile1 = this.$refs.selected1.selectedItems
199
+ console.log(texttile, '钻取一级类型')
200
+ console.log(texttile1, '钻取二级类型')
201
+ // 判断是否进行选择
202
+ if (typeof texttile == "undefined" || texttile == '') {
203
+ this.$showMessage('未选择查询类型!')
204
+ return
205
+ }
206
+
207
+ var conditionparamone = {} //一级钻取字段对象
208
+ var conditionparamtow = {} //二级钻取字段对象
209
+
210
+ console.log(this.datedefault,'时间判断')
211
+ // 填充默认时间
212
+ console.log('---------------钻取时间前---------------------------')
213
+ console.log(this.model.startDate)
214
+ console.log(this.model.endDate)
215
+ if (this.datedefault == true) {
216
+ Drillsql.startDate = eval(Util.toStandardDateString().toString().substring(0, 4) + '-50') + '-01-01'
217
+ Drillsql.endDate = this.model.endDate
218
+ } else {
219
+ Drillsql.startDate = this.model.startDate
220
+ Drillsql.endDate = this.model.endDate
221
+ }
222
+ console.log('==========================钻取时间后后后后后后后后后---------------------------')
223
+ console.log(this.model.startDate)
224
+ console.log(this.model.endDate)
225
+
226
+ //特殊处理
227
+ var param = Drillsql.param
228
+ var param1 = Drillsql.param1
229
+
230
+ if (this.inputtext != '' && this.idname == 'pastscale') {
231
+ Drillsql.param = this.inputtext
232
+ Drillsql.param1 = this.inputtext
233
+ }
234
+
235
+ //获取选中一级分类的信息
236
+ conditionparamone = Drillsql.getDrillParameter(this.parenttitle.pagetitle, this.idname, texttile, '')
237
+ // 填充钻取状态
238
+ this.clickhistoryshow = true
239
+ this.bartype = conditionparamone.name
240
+ this.clickhistory.push(conditionparamone.label)
241
+ this.echartsType = conditionparamone.echartsType
242
+ var dateparam = conditionparamone.dateparam
243
+ var dateparamif = conditionparamone.dateif
244
+ if (conditionparamone.echartsType == 'bar') {
245
+ this.yname = conditionparamone.yname
246
+ this.xname = conditionparamone.xname
247
+ this.seriename = conditionparamone.seriename
248
+ this.namesubif = conditionparamone.namesubif
249
+ }
250
+
251
+
252
+ // 判断是否有二级钻取
253
+ if (texttile1 != '') {
254
+ //获取选中二级分类的信息
255
+ conditionparamtow = Drillsql.getDrillParameter(this.parenttitle.pagetitle, this.idname, texttile, texttile1)
256
+ // 填充钻取状态
257
+ this.bartype = conditionparamtow.name
258
+ this.clickhistory.push(conditionparamtow.label)
259
+ this.echartsType = conditionparamtow.echartsType
260
+ dateparam = conditionparamtow.dateparam
261
+ dateparamif = conditionparamtow.dateif
262
+ if (conditionparamtow.echartsType == 'bar') {
263
+ this.yname = conditionparamtow.yname
264
+ this.xname = conditionparamtow.xname
265
+ this.seriename = conditionparamtow.seriename
266
+ this.namesubif = conditionparamtow.namesubif
267
+ }
268
+
269
+
270
+ //往期购气特殊处理
271
+ if (conditionparamtow.label == '高于往期购气量' && this.inputtext < 1) {
272
+ this.$showMessage('请输入大于1的数!')
273
+ Drillsql.param = param
274
+ Drillsql.param1 = param1
275
+ return
276
+ }
277
+ if (conditionparamtow.label == '低于往期购气量' && (this.inputtext > 1 || this.inputtext > 1)) {
278
+ this.$showMessage('请输入0-1之间的数!')
279
+ Drillsql.param = param
280
+ Drillsql.param1 = param1
281
+ return
282
+ }
283
+ } else {
284
+ conditionparamtow = {}
285
+ }
286
+
287
+ // console.log(conditionparamone, '一级分类信息')
288
+ // console.log(conditionparamtow, '二级分类信息')
289
+ // console.log(this.clickhistory, this.echartsType, '图状态信息')
290
+ // 点击字段进行sql拼接
291
+ var barcondition = ''
292
+ if (this.barparam != '' && conditionparamone.barparamif) {
293
+ barcondition = ' and ' + this.barparam.drilltype + '=\'' + this.barparam.name + '\' '
294
+ console.log("========================================listenToChild1拼条件了",barcondition)
295
+ }
296
+ var dateif=true
297
+ // 时间参数进行sql拼接
298
+ if (this.datalistif && !this.datedefault && !dateparamif && this.searchs!=='longnotbuygas'&&this.searchs!=='longnotusegas'&&this.searchs!=='lossassociation') {
299
+ dateif=false
300
+ barcondition = dateparam + '>=to_date(\'' + Drillsql.startDate+ '\',\'yyyy-MM-dd\') and '
301
+ + dateparam + '<=to_date(\'' + Drillsql.endDate + '\',\'yyyy-MM-dd \')' + barcondition
302
+ }
303
+ console.log('拼接的参数后的数据--------------------------')
304
+ console.log(barcondition,'拼接的参数后的数据')
305
+ // 拼接SQL查询条件
306
+ // keys:分组字段 drillparam:选择字段 drillterm:查询条件
307
+ // console.log(barcondition, '拼接字段')
308
+ //重置明细数据
309
+
310
+ var sqlparam = ''
311
+
312
+ if (JSON.stringify(conditionparamtow) == '{}') {
313
+ // 获取一级分类sql
314
+
315
+ sqlparam = conditionparamone.sqlcondition
316
+ } else {
317
+ // 获取二级分类sql
318
+ sqlparam = conditionparamtow.sqlcondition
319
+ }
320
+ var condition =''
321
+
322
+ // 拼接点击条件
323
+ if(this.idname=='usernum'|| this.idname=='pastscale'){
324
+ condition =barcondition
325
+ }else {
326
+ if(!barcondition){
327
+ condition =this.bartype
328
+ }else{
329
+ condition =this.bartype+' and '+barcondition
330
+ }
331
+ }
332
+ if(!barcondition){
333
+ barcondition=conditionparamone.name?(' '+conditionparamone.name):''+conditionparamtow.name?(' and '+conditionparamtow.name):' '
334
+ }else{
335
+ barcondition+=' and '+ barcondition
336
+ }
337
+ if(!this.days1){
338
+ this.days1=0
339
+ }
340
+
341
+ if(this.searchs==='longnotbuygas'){ // 长期未购气
342
+ barcondition = barcondition+' and CAST(trunc(SYSDATE)- NVL(F_SELLINGGAS_MAX_DATE,a.f_input_date) as int) > ' + this.days1
343
+ if(this.days2){
344
+ barcondition = barcondition+ ' and CAST(trunc(SYSDATE)- NVL(F_SELLINGGAS_MAX_DATE,a.f_input_date) as int) <= ' + this.days2
345
+ }
346
+ }else if(this.searchs==='longnotusegas'){ // 长期未用气
347
+ barcondition =barcondition+ ' and CAST(trunc(SYSDATE)- trunc(F_HANDPLAN_MAX_HANDDATE) as int) >' + this.days1
348
+ if(this.days2){
349
+ barcondition = barcondition+ ' and CAST(trunc(SYSDATE)- trunc(F_HANDPLAN_MAX_HANDDATE) as int) <='+this.days2
350
+ }
351
+ }else if(this.searchs==='lossassociation'){ // 失联
352
+ barcondition = barcondition+' and slday >'+this.days1
353
+ if(this.days2){
354
+ barcondition =barcondition+ ' and slday <='+this.days2
355
+ }
356
+ }
357
+ condition=barcondition
358
+
359
+ //请求后台数据
360
+ var sqlcondition = {
361
+ startDate:Drillsql.startDate,
362
+ endDate:Drillsql.endDate,
363
+ param:Drillsql.param,
364
+ param1:Drillsql.param1,
365
+ param2:Drillsql.param2,
366
+ condition:condition
367
+ }
368
+ if( this.idname=='pastscale'){
369
+ var s1 = eval('(' + Drillsql.param + '-1)*100')
370
+ var s1 = s1.toString().substring(0, 5)
371
+ var s2 = eval(Drillsql.param1 + '*100')
372
+ var s2 = s2.toString().substring(0, 5)
373
+ var s3=''
374
+ s3= conditionparamone.label
375
+ if(s3=='全部'){
376
+ s3=''
377
+ }
378
+ sqlcondition.s1=s1
379
+ sqlcondition.s2=s2
380
+ sqlcondition.s3=s3
381
+ if(conditionparamone.name){
382
+ console.log("拼conditionparamone.name")
383
+ sqlcondition.param3=' and '+conditionparamone.name
384
+ }
385
+ }
386
+ console.log(sqlcondition, '图表请求sql')
387
+ let getsqldata = Dec.getData(this, sqlparam ,sqlcondition)
388
+ co(getsqldata)
389
+ // 时间参数进行sql拼接
390
+ console.log("=======================准备调用getDrillList!!!!"+this.parenttitle.pagetitle+"========"+this.idname)
391
+ var pagelist = Drillsql.getDrillList(this.parenttitle.pagetitle, this.idname, '', '')
392
+ console.log("=======================!!!!pagelist:"+JSON.stringify(pagelist[2]))
393
+ console.log("this.searchs:"+this.searchs+"======this.datalistif:"+this.datalistif+"======!this.datedefault:"+!this.datedefault+"======dateif:"+dateif)
394
+ if (this.datalistif && !this.datedefault&&dateif&&this.searchs==='longnotbuygas'&&this.searchs==='longnotusegas'&&this.searchs==='lossassociation') {
395
+ this.datelistif = false
396
+ }
397
+ console.log(barcondition, '时间sqllist')
398
+ //获取列表sql
399
+ if (!conditionparamone.listif) {
400
+ console.log("!!!!!!!!!!!!!!!!!!!!!!!conditionparamone.listif拼了barcondition",conditionparamone.name)
401
+ barcondition = barcondition
402
+ }
403
+ if (texttile1 != '' && this.searchs!=='lossassociation' && this.searchs!=='longnotusegas' && this.searchs!=='longnotbuygas' ) {
404
+ barcondition = barcondition + '\t and '+ conditionparamtow.listparam
405
+ }
406
+ var list = Drillsql.listparam
407
+ // 警告特殊处理
408
+ if (this.idname == 'caveat'||this.idname == 'lossassociation'||this.idname == 'longnotusegas'||this.idname == 'longnotbuygas') {
409
+ Drillsql.listparam = ''
410
+ }
411
+ Drillsql.listparam1 = barcondition
412
+ console.log(Drillsql.listparam1, '列表钻取条件 ')
413
+ pagelist = Drillsql.getDrillList(this.parenttitle.pagetitle, this.idname, '', '')
414
+ console.log("========pagelist",pagelist)
415
+ var sqllistcondition= [this.idname+'list',20,{listparam:"\""+Drillsql.listparam+"\"",listparam1:"\""+Drillsql.listparam1+"\""}]
416
+ //调用赋值函数,传递给绘图子组件
417
+
418
+ this.Transfer(sqllistcondition, pagelist[0].headData, pagelist[1].bodyData)
419
+ Drillsql.param = param
420
+ Drillsql.param1 = param1
421
+ Drillsql.listparam = list
422
+ },
423
+
424
+ //清空按键事件
425
+ listenToChild2() {
426
+ this.xc.clear()
427
+ this.resetParam()
428
+
429
+ //重新初始化
430
+ this.initdata()
431
+ },
432
+ //重置参数
433
+ resetParam() {
434
+ this.barparam = '' //清空点击字段
435
+ this.drillparam = [] //清空下拉列表
436
+ this.select0 = []
437
+ this.drillchildrenparam = [] //清空子下拉列表
438
+ this.clickhistory = [] //清空查询历史
439
+ this.clickparam = [] //清空点击历史
440
+
441
+ this.model.startDate = Util.toStandardDateString() //重置时间为当前时间
442
+ this.model.endDate = Util.toStandardDateString()
443
+
444
+ this.childrenselectshow = false //关闭子下拉列表
445
+ this.clickhistoryshow = false //关闭查询历史显示
446
+ this.clickshow = false //关闭点击历史显示
447
+ this.datelistif = false //关闭时间更改标志
448
+ this.datedefault = true //打开时间初始标志
449
+ this.inputtextshow = false //关闭输入框
450
+ this.textcontent = ''
451
+ this.inputtext = ''
452
+ },
453
+ //传递参数赋值,传递给子组件
454
+ Transfer(pageurl, headData, bodyData) {
455
+ this.listsqldata.urlcarrydata = pageurl
456
+ this.listsqldata.headData = headData
457
+ this.listsqldata.bodyData = bodyData
458
+ },
459
+ //初始化图表数据参数
460
+ initdata() {
461
+ console.log(this.idname)
462
+ this.searchs=this.idname
463
+ console.log(this.echartsdata, '钻取初始化参数')
464
+ console.log(this.initdatatr, '初始化获取sql的参数')
465
+
466
+
467
+ Drillsql.startDate = this.initdatatr['startDate']
468
+ Drillsql.endDate = this.initdatatr['endDate']
469
+ Drillsql.param = this.initdatatr['param']
470
+ Drillsql.param1 = this.initdatatr['param1']
471
+ Drillsql.listparam = this.initdatatr['listparam']
472
+ Drillsql.listparam1 = ''
473
+
474
+
475
+ //特殊处理
476
+ if (this.parenttitle.pagechildrenname == '主要用户展示') {
477
+ Drillsql.listparam1 = ' a.f_user_type=\'非民用\' '
478
+ }
479
+
480
+ this.$parent.$refs[this.childname].setBar("echarts")
481
+ this.datapool = this.$parent.childdata
482
+ var pagelist = Drillsql.getDrillList(this.parenttitle.pagetitle, this.idname, '', '')
483
+ console.log(pagelist)
484
+ var sqllistcondition= [this.idname+'list',20,{listparam:"\""+Drillsql.listparam+"\"",listparam1:"\""+Drillsql.listparam1+"\""}]
485
+
486
+ //调用赋值函数,传递给绘图子组件
487
+ this.Transfer(sqllistcondition, pagelist[0].headData, pagelist[1].bodyData)
488
+
489
+ },
490
+
491
+ getinitDate() {
492
+ this.inputtextshow = false
493
+ this.textcontent = ''
494
+ this.inputtext = ''
495
+ this.drillparam = Drillsql.getDrillParameter(this.parenttitle.pagetitle, this.idname, '', '')
496
+ },
497
+ //整理数据
498
+ notgasData(res) {
499
+ var nobuygasdata=[]
500
+ let num = [0, 0, 0, 0, 0, 0 ]
501
+ num[0] = res[0].week
502
+ num[1] = res[0].month
503
+ num[2] = res[0].tmonth
504
+ num[3] = res[0].harfyear
505
+ num[4] = res[0].year
506
+ num[5] = res[0].more
507
+ var date = ['0-7', '7-30', '30-90', '90-180', '180-360','>360']
508
+ var i = 0
509
+ num.forEach((row)=>{
510
+
511
+ let item = {}
512
+ item.name = date[i]
513
+ item.value = num[i]
514
+ item.type = this.select1[0]?this.select1[0]:this.select0[0]
515
+ nobuygasdata.push(item)
516
+ i++
517
+ })
518
+
519
+ console.log("@@@@@@@@@@@@@@@@",nobuygasdata)
520
+ return nobuygasdata
521
+ },
522
+ }
523
+ ,
524
+ watch: {
525
+ 'model':
526
+ {
527
+ deep: true,
528
+ handler(val) {
529
+ if(!this.$parent.drillshow){
530
+ return
531
+ }
532
+ this.datedefault = false
533
+ this.datalistif = true
534
+ }
535
+ ,
536
+ }
537
+ ,
538
+ 'echartsdata':
539
+ {
540
+ deep: true,
541
+ handler(val) {
542
+ if (typeof this.echartsdata !== "undefined" && this.drillshow == true && this.initflag) {
543
+ this.initdata()
544
+ this.initflag = false
545
+ }
546
+ }
547
+ ,
548
+ immediate: true
549
+ }
550
+ ,
551
+ 'drillshow':
552
+ {
553
+ deep: true,
554
+ handler(val) {
555
+ console.log("!!!!!!!!!!!!!!!!!!!!!!drillshow变了!",val)
556
+ if(val){
557
+ this.datedefault = false
558
+ this.datalistif = true
559
+ }
560
+ return
561
+ if (typeof this.echartsdata !== "undefined" && this.drillshow == true && this.initflag) {
562
+ this.initdata()
563
+ this.initflag = false
564
+ }
565
+ }
566
+ ,
567
+ immediate: true
568
+ }
569
+ ,
570
+ 'select0':
571
+ {
572
+ deep: true,
573
+ handler() {
574
+ // console.log(this.select0, '选中分类的值')
575
+ if (this.select0.length < 1) {
576
+ return
577
+ }
578
+ this.select1 = ''
579
+
580
+ this.childrenselectshow = false
581
+ var self = this
582
+ this.drillparam.forEach(function (s) {
583
+ if (self.select0 == s.value && s.name == 't_area') {
584
+ let gen = Dec.select(self, 't_area', '1=1')
585
+ co(gen)
586
+ }
587
+ })
588
+ setTimeout(() => {
589
+ self.drillparam.forEach(function (s) {
590
+ console.log("select0!!!!!!!!!!!!!!",s)
591
+ if (s.value == self.select0) {
592
+ if (typeof s.children != "undefined" && JSON.stringify(s.children) != '[]') {
593
+ self.childrenselectshow = true
594
+ self.drillchildrenparam = s.children
595
+ }
596
+ }
597
+
598
+ })
599
+ }, 500)
600
+ }
601
+ }
602
+ ,
603
+ 'select1':
604
+ {
605
+ deep: true,
606
+ handler() {
607
+ // console.log(this.select1, '选中分类的值')
608
+ if (this.select1.length < 1) {
609
+ return
610
+ }
611
+ var self = this
612
+ var l = 0
613
+ var texttile = this.$refs.selected.selectedItems
614
+ this.drillparam.forEach(function (s) {
615
+ if (s.label == texttile && s.inputchildren != '') {
616
+ l++
617
+ self.inputtextshow = true
618
+ self.textcontent = s.inputchildren
619
+ }
620
+ })
621
+ if (l == 0) {
622
+ this.inputtextshow = false
623
+ this.textcontent = ''
624
+ this.inputtext = ''
625
+ }
626
+ }
627
+ }
628
+ ,
629
+ 'sqlobtaindata':
630
+ {
631
+ deep: true,
632
+ async handler(val) {
633
+ console.log("==================>",val)
634
+ if (this.sqlobtaindata.length < 1) {
635
+ this.$showMessage('数据为空!')
636
+ return
637
+ }
638
+
639
+ if(this.searchs==='longnotbuygas'||this.searchs==='longnotusegas'||this.searchs==='lossassociation'){
640
+ var dates=[]
641
+ dates=await this.notgasData(this.sqlobtaindata)
642
+ if (this.echartsType == 'pie') {
643
+ this.datapool = dates
644
+ Dec.setPie(this, 'echarts', this.sqlobtaindata, this.sqlobtaindata)
645
+ }
646
+ if (this.echartsType == 'bar') {
647
+ this.datapool = dates
648
+
649
+ var cachebardata = await Dec.DataIntegration(dates)
650
+ console.log(cachebardata, this.bartype, '整合数据及柱状图状态')
651
+ Dec.setBar(this, 'echarts', cachebardata, this.xname, this.yname, this.seriename, this.idname, this.namesubif)
652
+ }
653
+ }else{
654
+
655
+ if (this.echartsType == 'pie') {
656
+ this.datapool = this.sqlobtaindata
657
+ Dec.setPie(this, 'echarts', this.sqlobtaindata, this.sqlobtaindata)
658
+ }
659
+ if (this.echartsType == 'bar') {
660
+ this.datapool = this.sqlobtaindata
661
+ var cachebardata = Dec.DataIntegration(this.sqlobtaindata)
662
+ // console.log(cachebardata, this.bartype, '整合数据及柱状图状态')
663
+ Dec.setBar(this, 'echarts', cachebardata, this.xname, this.yname, this.seriename, this.idname, this.namesubif)
664
+ }
665
+ }
666
+
667
+
668
+
669
+
670
+ }
671
+ },
672
+ },
673
+ ready() {
674
+
675
+ // console.log(this.drillshow, '三级页面')
676
+ // this.model.startDate = Util.toStandardDateString()
677
+ // this.model.endDate = Util.toStandardDateString()
678
+ }
679
+ }
680
+ </script>
681
+
682
+ <style>
683
+ .childrendatestyle input {
684
+ background-color: rgba(1, 207, 242, 0.01);
685
+ border: solid 1px #6fd9d0;
686
+ color: white;
687
+ }
688
+ .childrendatestyle1{
689
+ background-color: rgba(1, 207, 242, 0.01);
690
+ border: solid 1px #6fd9d0;
691
+ color: white;
692
+ }
693
+ .childrendatestyle .datepicker-popup {
694
+ background-color: #023740 !important;
695
+ border: solid 1px #6fd9d0;
696
+ color: white !important;
697
+ }
698
+
699
+ .childrendatestyle .datepicker-monthRange span:hover,
700
+ .datepicker-ctrl p:hover,
701
+ .datepicker-ctrl i:hover,
702
+ .datepicker-dateRange span:hover,
703
+ .datepicker-dateRange-item-hover {
704
+ background-color: #00f3ff !important;
705
+ /*border: solid 1px #6fd9d0;*/
706
+ color: white !important;
707
+ }
708
+
709
+ .childrenselectstyle button {
710
+ background-color: #013e48 !important;
711
+ border: solid 1px #6fd9d0 !important;
712
+ color: white !important;
713
+ }
714
+
715
+ .childrenselectstyle ul {
716
+ background-color: #013e48 !important;
717
+ border: solid 1px #6fd9d0 !important;
718
+
719
+ }
720
+
721
+ .childrenselectstyle div {
722
+ background-color: #013e48 !important;
723
+ color: white !important;
724
+ }
725
+
726
+ .childrenselectstyle li a {
727
+ color: white !important;
728
+ }
729
+
730
+ .childrenselectstyle li a:hover {
731
+ background-color: #05525f;
732
+ }
733
+
734
+ #childrenorgstyle #vc-chooser .list-group-item {
735
+ background-color: #013e48 !important;
736
+ color: #fff !important;
737
+ }
738
+
739
+ #childrenorgstyle #vc-chooser .list-group {
740
+ background-color: #6fd9d0 !important;
741
+ color: #fff !important;
742
+ }
743
+
744
+ #childrenorgstyle #vc-chooser button {
745
+ border: solid 1px #6fd9d0;
746
+ background-color: rgba(1, 207, 242, 0.01) !important;
747
+ color: #fff !important;
748
+ }
749
+ </style>
750
+ <style scoped>
751
+ label {
752
+ color: white;
753
+ }
754
+
755
+ .datestyle {
756
+ padding-left: 3%;
757
+ width: 100%;
758
+ height: 9%;
759
+ }
760
+
761
+ .div-1 {
762
+
763
+ height: 80%;
764
+ width: 100%;
765
+ }
766
+
767
+ .title-1 {
768
+ border-radius: 10px 10px 0px 0px;
769
+ margin: 0% 2%;
770
+ padding: 0% 2%;
771
+ font-size: 1.6em;
772
+ display: flex;
773
+ /*实现垂直居中*/
774
+ align-items: center;
775
+ justify-content: space-between;
776
+ color: #fff;
777
+ height: 8%;
778
+ width: 96%;
779
+ background-color: rgba(1, 207, 242, 0.08);
780
+ }
781
+
782
+ .button-1 {
783
+ height: 65%;
784
+ width: 6%;
785
+ margin-right: 1%;
786
+ background-color: #013e48;
787
+ border-radius: 6px;
788
+ border: solid 1px #40cfc3;
789
+ font-size: 0.65em;
790
+ float: right;
791
+ }
792
+
793
+ .button-2 {
794
+ color: white;
795
+ height: 100%;
796
+ width: 12%;
797
+ margin-left: 2%;
798
+ margin-top: 0.1%;
799
+ background-color: #013e48;
800
+ border-radius: 6px;
801
+ border: solid 1px #40cfc3;
802
+ font-size: 1em;
803
+ }
804
+
805
+ .button-1:hover {
806
+ background-color: #40cfc3;
807
+ border: 1px solid #00ffea;
808
+ border-radius: 6px;
809
+ }
810
+
811
+ .button-2:hover {
812
+ background-color: #00ffe9;
813
+ border: 1px solid #013e48;
814
+ border-radius: 6px;
815
+ }
816
+
817
+ .button-21 {
818
+ background-color: #40cfc3;
819
+ border-radius: 6px;
820
+ color: white;
821
+ height: 100%;
822
+ width: 12%;
823
+ margin-left: 2%;
824
+ margin-top: 0.1%;
825
+ border: solid 1px #40cfc3;
826
+ font-size: 1em;
827
+ }
828
+
829
+ .button-21:hover {
830
+ border: 1px solid #00ffea;
831
+ border-radius: 6px;
832
+ }
833
+
834
+ .drillcontent {
835
+ margin-left: 2%;
836
+ width: 52%;
837
+ height: 100%;
838
+ float: left;
839
+ background-color: rgba(1, 207, 242, 0.04);
840
+ }
841
+
842
+ .drilltext {
843
+ width: 100%;
844
+ height: 84%;
845
+ /*background-color: #c7254e;*/
846
+ }
847
+
848
+ .echartsstyle {
849
+ height: 95%;
850
+ width: 56%;
851
+ float: left;
852
+ /*background-color: white;*/
853
+ }
854
+
855
+ .pool {
856
+ height: 100%;
857
+ width: 44%;
858
+ float: left;
859
+ /*background-color: #c7254e;*/
860
+ }
861
+
862
+ .drilllist {
863
+ height: 100%;
864
+ width: 44%;
865
+ float: left;
866
+ background-color: rgba(1, 207, 242, 0.04);
867
+ }
868
+
869
+ .drillliststyle {
870
+ margin-left: 2%;
871
+ height: 96%;
872
+ width: 96%;
873
+ float: left;
874
+ background-color: rgba(1, 207, 242, 0.04);
875
+ }
876
+
877
+ .menuselect {
878
+ margin-top: 1%;
879
+ margin-left: 4%;
880
+ height: 16%;
881
+ width: 96%;
882
+ }
883
+
884
+ .selectstyle {
885
+ height: 45%;
886
+ }
887
+
888
+ .datestyle label {
889
+ margin-left: 1%;
890
+ margin-top: 1%;
891
+ }
892
+
893
+ #selectchildrenid {
894
+ margin-left: 1%;
895
+ }
896
+
897
+ .history {
898
+ border-radius: 2px;
899
+ border: solid 1px #2f9ad1;
900
+ color: #2f9ad1;
901
+ }
902
+
903
+ .historydiv div {
904
+ height: 49%;
905
+ }
906
+
907
+ .historydiv {
908
+ height: 55%;
909
+ }
910
+
911
+ .selectstyle input {
912
+ width: 20%;
913
+ height: 95%;
914
+ background-color: #023740 !important;
915
+ border: solid 1px #6fd9d0;
916
+ color: white !important;
917
+ }
918
+ </style>