manage-client 3.2.87-aode → 3.2.87-aodeToV4

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 (308) hide show
  1. package/.classpath +6 -6
  2. package/.eslintrc.js +16 -16
  3. package/.project +18 -18
  4. package/CHANGELOG.md +13 -13
  5. package/DOC//345/212/237/350/203/275/350/257/264/346/230/216.md +13 -13
  6. package/DOC//347/211/210/346/234/254/344/277/241/346/201/257.md +8 -8
  7. package/ManageClient.iml +12 -12
  8. package/build/dev-server.js +193 -193
  9. package/build/webpack.base.conf.js +80 -80
  10. package/build.gradle +13 -13
  11. package/config/index.js +38 -38
  12. package/gradle/wrapper/gradle-wrapper.properties +5 -5
  13. package/gradlew +234 -234
  14. package/gradlew.bat +89 -89
  15. package/package.json +101 -101
  16. package/src/App.vue +28 -28
  17. package/src/ManageHome.js +269 -269
  18. package/src/Staff/StaffCompileList.vue +334 -334
  19. package/src/Staff/StaffList.vue +161 -161
  20. package/src/Util.js +383 -383
  21. package/src/components/ManageHome/Drill/DrillList.vue +320 -320
  22. package/src/components/ManageHome/Home/CallCenter.vue +124 -124
  23. package/src/components/ManageHome/Home/Monitor.vue +329 -329
  24. package/src/components/ManageHome/Home/UserModule.vue +367 -367
  25. package/src/components/ManageHome/ImportSupplygas/AddSupply.vue +206 -206
  26. package/src/components/ManageHome/ImportSupplygas/SupplySelect.vue +85 -85
  27. package/src/components/ManageHome/ImportSupplygas/UpdateSupply.vue +187 -187
  28. package/src/components/ManageHome/Monitor/NoContact.vue +232 -232
  29. package/src/components/ManageHome/NetWork/LineInspection.vue +267 -267
  30. package/src/components/ManageHome/NetWork/NetDanger.vue +258 -258
  31. package/src/components/ManageHomeCS/CustomerService/ContentmentStatistics.vue +161 -161
  32. package/src/components/ManageHomeCS/CustomerService/ExcepCollect.vue +201 -201
  33. package/src/components/ManageHomeCS/CustomerService/ReasonComplaint.vue +116 -116
  34. package/src/components/ManageHomeCS/CustomerService/ReasonConsultation.vue +115 -115
  35. package/src/components/ManageHomeCS/CustomerService/ServiceFix.vue +195 -195
  36. package/src/components/ManageHomeCS/CustomerService/ServiceHome.vue +177 -177
  37. package/src/components/ManageHomeCS/CustomerService/ServiceStatistics.vue +173 -173
  38. package/src/components/ManageHomeCS/Drill/DrillData.vue +792 -792
  39. package/src/components/ManageHomeCS/Drill/DrillList.vue +320 -320
  40. package/src/components/ManageHomeCS/Home/CallCenter.vue +191 -191
  41. package/src/components/ManageHomeCS/Home/GasValue.vue +377 -377
  42. package/src/components/ManageHomeCS/Home/Home.vue +55 -55
  43. package/src/components/ManageHomeCS/Home/Monitor.vue +415 -415
  44. package/src/components/ManageHomeCS/Home/NetWork.vue +223 -223
  45. package/src/components/ManageHomeCS/Home/SafeCheck.vue +443 -443
  46. package/src/components/ManageHomeCS/Home/UserModule.vue +527 -527
  47. package/src/components/ManageHomeCS/ImportSupplygas/AddSupply.vue +206 -206
  48. package/src/components/ManageHomeCS/ImportSupplygas/SupplySelect.vue +85 -85
  49. package/src/components/ManageHomeCS/ImportSupplygas/UpdateSupply.vue +187 -187
  50. package/src/components/ManageHomeCS/ManageHome.vue +149 -149
  51. package/src/components/ManageHomeCS/Monitor/Caveat.vue +301 -301
  52. package/src/components/ManageHomeCS/Monitor/ComparedGas.vue +264 -264
  53. package/src/components/ManageHomeCS/Monitor/MeterBrand.vue +221 -221
  54. package/src/components/ManageHomeCS/Monitor/MonitorCenter.vue +136 -136
  55. package/src/components/ManageHomeCS/Monitor/MonitorHome.vue +188 -188
  56. package/src/components/ManageHomeCS/Monitor/NoBuyGas.vue +233 -233
  57. package/src/components/ManageHomeCS/Monitor/NoContact.vue +246 -246
  58. package/src/components/ManageHomeCS/Monitor/NoGas.vue +212 -212
  59. package/src/components/ManageHomeCS/NetWork/LineInspection.vue +268 -268
  60. package/src/components/ManageHomeCS/NetWork/NetDanger.vue +258 -258
  61. package/src/components/ManageHomeCS/NetWork/NetHome.vue +108 -108
  62. package/src/components/ManageHomeCS/NetWork/NetWork.vue +222 -222
  63. package/src/components/ManageHomeCS/NetWork/NetWorkMap.vue +86 -86
  64. package/src/components/ManageHomeCS/NewHome/NewManageHome.vue +64 -64
  65. package/src/components/ManageHomeCS/NewHome/TextBusiness.vue +340 -340
  66. package/src/components/ManageHomeCS/NewHome/TextChildsellgas.vue +206 -206
  67. package/src/components/ManageHomeCS/NewHome/TextProfit.vue +275 -275
  68. package/src/components/ManageHomeCS/NewHome/TextSellgas.vue +79 -79
  69. package/src/components/ManageHomeCS/NewHome/TextShanximap.vue +389 -389
  70. package/src/components/ManageHomeCS/NewHome/TextTotalsellgas.vue +403 -403
  71. package/src/components/ManageHomeCS/NewHome/TextUser.vue +298 -298
  72. package/src/components/ManageHomeCS/NewHome/shanxi.vue +437 -437
  73. package/src/components/ManageHomeCS/SecurityCheck/CustomerType.vue +246 -246
  74. package/src/components/ManageHomeCS/SecurityCheck/LatentDanger.vue +263 -263
  75. package/src/components/ManageHomeCS/SecurityCheck/PlanStatistics.vue +306 -306
  76. package/src/components/ManageHomeCS/User/GasDistri.vue +343 -343
  77. package/src/components/ManageHomeCS/User/InspecDistri.vue +348 -348
  78. package/src/components/ManageHomeCS/User/SaleProportion.vue +336 -336
  79. package/src/components/ManageHomeCS/User/UseHome.vue +154 -154
  80. package/src/components/ManageHomeCS/User/UserGascontrast.vue +224 -224
  81. package/src/components/ManageHomeCS/User/UserNumber.vue +599 -599
  82. package/src/components/ManageHomeCS/User/UsernumIncrease.vue +277 -277
  83. package/src/components/MeterManage/ChangeMeterQuery.vue +82 -82
  84. package/src/components/MeterManage/ChargeQuery.vue +79 -79
  85. package/src/components/MeterManage/FillCardQuery.vue +80 -80
  86. package/src/components/MeterManage/FillGasQuery.vue +80 -80
  87. package/src/components/MeterManage/HandQuery.vue +72 -72
  88. package/src/components/MeterManage/MeterList.vue +336 -336
  89. package/src/components/MeterManage/MeterMsg.vue +181 -181
  90. package/src/components/MeterManage/OtherChargeQuery.vue +78 -78
  91. package/src/components/MeterManage/ReversalQuery.vue +77 -77
  92. package/src/components/MeterManage/TransferQuery.vue +72 -72
  93. package/src/components/SellReport/BankManager.vue +146 -146
  94. package/src/components/SellReport/BonSummary.vue +182 -182
  95. package/src/components/SellReport/BusSummary.vue +238 -238
  96. package/src/components/SellReport/ChargeBill.vue +186 -186
  97. package/src/components/SellReport/CollectFee.vue +184 -184
  98. package/src/components/SellReport/Contrast.vue +188 -188
  99. package/src/components/SellReport/FenxiangSell.vue +183 -183
  100. package/src/components/SellReport/GasCollect.vue +174 -174
  101. package/src/components/SellReport/GasPrice.vue +183 -183
  102. package/src/components/SellReport/GaspriceHas.vue +141 -141
  103. package/src/components/SellReport/GetSummary.vue +186 -186
  104. package/src/components/SellReport/GetUserNum.vue +166 -166
  105. package/src/components/SellReport/HandCollect.vue +189 -189
  106. package/src/components/SellReport/HandplanBili.vue +73 -73
  107. package/src/components/SellReport/JinChengBusSummary.vue +182 -182
  108. package/src/components/SellReport/JinChengHandGas.vue +182 -182
  109. package/src/components/SellReport/JinChengOperSummary.vue +182 -182
  110. package/src/components/SellReport/JinChengSliceSumgas.vue +182 -182
  111. package/src/components/SellReport/ManageBusSummary.vue +241 -241
  112. package/src/components/SellReport/ManageGasPrice.vue +183 -183
  113. package/src/components/SellReport/ManageHandInputtor.vue +241 -241
  114. package/src/components/SellReport/ManageMonthGas.vue +181 -181
  115. package/src/components/SellReport/ManageNewGasPrice.vue +240 -240
  116. package/src/components/SellReport/ManageSellType.vue +183 -183
  117. package/src/components/SellReport/ManageUserCollect.vue +177 -177
  118. package/src/components/SellReport/MeterBill.vue +185 -185
  119. package/src/components/SellReport/MeterInput.vue +185 -185
  120. package/src/components/SellReport/MeterReader.vue +203 -203
  121. package/src/components/SellReport/OweAging.vue +174 -174
  122. package/src/components/SellReport/QTXManageBusSummary.vue +234 -234
  123. package/src/components/SellReport/RefundQuery.vue +237 -237
  124. package/src/components/SellReport/ReportHistory.vue +80 -80
  125. package/src/components/SellReport/ReportItems.vue +39 -39
  126. package/src/components/SellReport/ReportPool.vue +40 -40
  127. package/src/components/SellReport/Selling.vue +188 -188
  128. package/src/components/SellReport/SiteManager.vue +151 -151
  129. package/src/components/SellReport/UsertypePie.vue +99 -99
  130. package/src/components/SellReport/VolumeStatistics.vue +226 -226
  131. package/src/components/SellReport/YuShou.vue +185 -185
  132. package/src/components/SellReport/getWebReport.vue +181 -181
  133. package/src/components/SellReport/jingwei/CardCharge.vue +142 -142
  134. package/src/components/SellReport/jingwei/MachineCharge.vue +141 -141
  135. package/src/components/SellReport/jingwei/PaymentNotice.vue +316 -316
  136. package/src/components/SellReport/jingwei/handplanReport.vue +225 -225
  137. package/src/components/TelReport/TrafficAssess.vue +99 -99
  138. package/src/components/TelReport/TrafficBasic.vue +117 -117
  139. package/src/components/TelReport/ZhiHuanservice.vue +147 -147
  140. package/src/components/WebReport/AbnormalInfo.vue +197 -197
  141. package/src/components/WebReport/AbnormalInfoEcharts.vue +120 -120
  142. package/src/components/WebReport/BatteryLow.vue +148 -148
  143. package/src/components/WebReport/BussinessType.vue +140 -140
  144. package/src/components/WebReport/Communication.vue +131 -131
  145. package/src/components/WebReport/EchartsBox.vue +110 -110
  146. package/src/components/WebReport/ElectroMagnetic.vue +142 -142
  147. package/src/components/WebReport/GaspriceHas.vue +141 -141
  148. package/src/components/WebReport/HandplanPrint.vue +167 -167
  149. package/src/components/WebReport/NotUpload.vue +165 -165
  150. package/src/components/WebReport/OweQuery.vue +169 -169
  151. package/src/components/WebReport/Paymentpie.vue +160 -160
  152. package/src/components/WebReport/ReportWorklist.vue +220 -220
  153. package/src/components/WebReport/SellType.vue +89 -89
  154. package/src/components/WebReport/Telemanlist.vue +221 -221
  155. package/src/components/WebReport/UserGasAll.vue +214 -214
  156. package/src/components/WebReport/UserGasEcharts.vue +107 -107
  157. package/src/components/WebReport/UsertypePie.vue +105 -105
  158. package/src/components/WebReport/ValueEcharts.vue +99 -99
  159. package/src/components/WebReport/ValueInfo.vue +194 -194
  160. package/src/components/safecheck/analysis/SafeHiddenAnaly.vue +932 -932
  161. package/src/components/sale/businessquery/BusinessManage.vue +109 -109
  162. package/src/components/sale/businessquery/CancelChargeQuery.vue +650 -650
  163. package/src/components/sale/businessquery/ChangeMeterQuery.vue +667 -667
  164. package/src/components/sale/businessquery/ChargeQuery.vue +663 -663
  165. package/src/components/sale/businessquery/DeductionGas.vue +149 -149
  166. package/src/components/sale/businessquery/DisableQuery.vue +315 -315
  167. package/src/components/sale/businessquery/EnableQuery.vue +315 -315
  168. package/src/components/sale/businessquery/FillCardQuery.vue +436 -436
  169. package/src/components/sale/businessquery/FillGasQuery.vue +435 -435
  170. package/src/components/sale/businessquery/HandplanQuery.vue +705 -705
  171. package/src/components/sale/businessquery/InspectListGas.vue +456 -456
  172. package/src/components/sale/businessquery/InspectListUser.vue +366 -366
  173. package/src/components/sale/businessquery/InspectManage.vue +37 -37
  174. package/src/components/sale/businessquery/NewAccountQuery.vue +511 -511
  175. package/src/components/sale/businessquery/OtherChargeDetailQuery.vue +70 -70
  176. package/src/components/sale/businessquery/OtherChargeQuery.vue +406 -406
  177. package/src/components/sale/businessquery/QueryUserState.vue +313 -313
  178. package/src/components/sale/businessquery/ReverseQuery.vue +347 -347
  179. package/src/components/sale/businessquery/SellingHand.vue +340 -340
  180. package/src/components/sale/businessquery/TransferQuery.vue +363 -363
  181. package/src/components/sale/businessquery/errorHandplanQuery.vue +246 -246
  182. package/src/components/sale/businessquery/ncpushQuery.vue +304 -304
  183. package/src/components/sale/businessquery/toolCardMakeQuery.vue +340 -340
  184. package/src/components/sale/common/TabButton.vue +149 -149
  185. package/src/components/sale/common/Tabs.vue +67 -67
  186. package/src/components/sale/config/exportConfig.js +271 -271
  187. package/src/components/sale/filesquery/ArchivesManage.vue +35 -35
  188. package/src/components/sale/filesquery/ChangeUserQuery.vue +396 -396
  189. package/src/components/sale/filesquery/DeviceQuery.vue +329 -329
  190. package/src/components/sale/filesquery/MeterQuery.vue +613 -613
  191. package/src/components/sale/filesquery/UserQuery.vue +556 -556
  192. package/src/components/sale/filesquery/detail/UserBaseInfo.vue +69 -69
  193. package/src/components/sale/filesquery/detail/oper/ChangeMessage.vue +46 -46
  194. package/src/components/sale/filesquery/detail/oper/ExchangeOper.vue +66 -66
  195. package/src/components/sale/filesquery/detail/oper/HandOper.vue +46 -46
  196. package/src/components/sale/filesquery/detail/oper/HandleMessage.vue +46 -46
  197. package/src/components/sale/filesquery/detail/oper/OtherCharge.vue +54 -54
  198. package/src/components/sale/filesquery/detail/oper/ReplaceCard.vue +51 -51
  199. package/src/components/sale/filesquery/detail/oper/SellOper.vue +56 -56
  200. package/src/components/sale/filesquery/detail/oper/TransferMessage.vue +55 -55
  201. package/src/components/sale/filesquery/filequerydetail/BlackListQueryDetail.vue +219 -219
  202. package/src/components/sale/filesquery/filequerydetail/ChangeMeterQueryDetail.vue +246 -246
  203. package/src/components/sale/filesquery/filequerydetail/ChargeQueryDetail.vue +239 -239
  204. package/src/components/sale/filesquery/filequerydetail/DeviceQueryDetail.vue +126 -126
  205. package/src/components/sale/filesquery/filequerydetail/DisableQueryDetail.vue +272 -272
  206. package/src/components/sale/filesquery/filequerydetail/EnableQueryDetail.vue +274 -274
  207. package/src/components/sale/filesquery/filequerydetail/FillCardQueryDetail.vue +80 -80
  208. package/src/components/sale/filesquery/filequerydetail/FillGasQueryDetail.vue +80 -80
  209. package/src/components/sale/filesquery/filequerydetail/HandQueryDetail.vue +302 -302
  210. package/src/components/sale/filesquery/filequerydetail/MeterQueryDetail.vue +158 -158
  211. package/src/components/sale/filesquery/filequerydetail/OtherChargeQueryDetail.vue +198 -198
  212. package/src/components/sale/filesquery/filequerydetail/RecordQueryDetail.vue +125 -125
  213. package/src/components/sale/filesquery/filequerydetail/SellingHandDetail.vue +280 -280
  214. package/src/components/sale/filesquery/filequerydetail/TransferQueryDetail.vue +160 -160
  215. package/src/components/sale/filesquery/filequerydetail/UserQueryDetail.vue +155 -155
  216. package/src/components/sale/ncpush/ncUserLoad.vue +176 -176
  217. package/src/components/sale/ncpush/ncpushmanage/NCpushList.vue +497 -497
  218. package/src/components/sale/ncpush/ncpushmanage/NCpushManage.vue +50 -50
  219. package/src/components/sale/ncpush/ncpushmanage/NCpushSummary.vue +110 -110
  220. package/src/components/sale/ncpush/ncrecord/pushRecordQuery.vue +252 -252
  221. package/src/components/sale/ncpush/ncrecord/pushbilldatalist.vue +166 -166
  222. package/src/components/sale/ncpush/ncrecord/pushdaydatalist.vue +298 -298
  223. package/src/components/sale/ncpush/pushconfirmManage.vue +271 -271
  224. package/src/components/sale/ncpush/pushconfirmadd.vue +420 -420
  225. package/src/components/sale/ncpush/pushconfirmlist.vue +414 -414
  226. package/src/components/sale/ncpush/pushconfirmmergelist.vue +480 -480
  227. package/src/components/sale/report/aode/DayReport.vue +50 -50
  228. package/src/components/sale/report/aode/DayReportList.vue +553 -553
  229. package/src/components/sale/report/aode/DayReportSummary.vue +112 -112
  230. package/src/components/sale/report/aode/MonthByChargeType.vue +526 -526
  231. package/src/components/sale/report/aode/MonthByUserType.vue +562 -562
  232. package/src/components/sale/report/aode/YearByChargeTpye.vue +254 -254
  233. package/src/components/sale/report/aode/YearByUserType.vue +351 -351
  234. package/src/components/sale/report/aode/iot/FarawayQuery.vue +401 -401
  235. package/src/components/sale/report/aode/iot/ReportQuery.vue +387 -387
  236. package/src/components/sale/report/aode/life/LifeDayReportList.vue +324 -324
  237. package/src/components/sale/report/aode/life/LifeMonthReport.vue +487 -487
  238. package/src/components/sale/report/aode/life/LifeYearReport.vue +216 -216
  239. package/src/components/sale/report/aode/othercharge/OtherDayReport.vue +50 -50
  240. package/src/components/sale/report/aode/othercharge/OtherDayReportList.vue +414 -414
  241. package/src/components/sale/report/aode/othercharge/OtherDayReportListPrint.vue +240 -240
  242. package/src/components/sale/report/aode/othercharge/OtherDayReportSummary.vue +68 -68
  243. package/src/components/sale/report/aode/userbuyQuery.vue +477 -477
  244. package/src/components/sale/report/aode/widget/DayReportListPrint.vue +310 -310
  245. package/src/components/sale/report/aode/widget/LifeDayReportListPrint.vue +233 -233
  246. package/src/components/sale/report/aode/widget/LifeMonthPrint.vue +170 -170
  247. package/src/components/sale/report/aode/widget/LifeYearPrint.vue +160 -160
  248. package/src/components/sale/report/aode/widget/MonthByChargePrint.vue +246 -246
  249. package/src/components/sale/report/aode/widget/MonthByUserPrint.vue +232 -232
  250. package/src/components/valueaddinfo/ValueAddinfoQuery.vue +425 -425
  251. package/src/components/valueaddinfo/renewalvalueAddUserQuery.vue +371 -371
  252. package/src/components/valueaddinfo/valueAddCountQuery.vue +315 -315
  253. package/src/components/valueaddinfo/valueAddUserQuery.vue +404 -404
  254. package/src/components/webmeter/ArreasuserQuery.vue +193 -193
  255. package/src/components/webmeter/DrillData/LargeScreenAnalysisEcharts.vue +710 -710
  256. package/src/components/webmeter/DrillData/LostContactAnalysis.vue +531 -531
  257. package/src/components/webmeter/DrillData/LostContactAnalysisList.vue +548 -548
  258. package/src/components/webmeter/DrillData/LostContactEcharts.vue +159 -159
  259. package/src/components/webmeter/DrillData/LostContactEform.vue +190 -190
  260. package/src/components/webmeter/DrillData/NewUserGasAll.vue +592 -592
  261. package/src/components/webmeter/DrillData/UserGasAll.vue +538 -538
  262. package/src/components/webmeter/DrillData/UserGasEcharts.vue +209 -209
  263. package/src/components/webmeter/DrillData/UserGasEform.vue +226 -226
  264. package/src/components/webmeter/DrillData/UserLostContactAnalysis.vue +527 -527
  265. package/src/components/webmeter/EasyExcelExportCk.vue +396 -396
  266. package/src/components/webmeter/IOTArrears/arrears.vue +325 -325
  267. package/src/components/webmeter/IOTArrears/iotRechargeAudit.vue +378 -378
  268. package/src/components/webmeter/IOTArrears/valueConfig.js +14 -14
  269. package/src/components/webmeter/NewWebmeterHandplanQuery.vue +605 -605
  270. package/src/components/webmeter/OperatorCount.vue +189 -189
  271. package/src/components/webmeter/WebmeterHandplanQuery.vue +640 -640
  272. package/src/components/webmeter/WebmeterHandplanQuery2CK.vue +663 -663
  273. package/src/components/webmeter/dataCollection/DataCollection.vue +630 -630
  274. package/src/components/webmeter/gasAnalysis/GasAnalysisEcharts.vue +144 -144
  275. package/src/components/webmeter/gasAnalysis/GasAnalysisManage.vue +303 -303
  276. package/src/components/webmeter/gasAnalysis/GasAnalysisSummary.vue +162 -162
  277. package/src/components/webmeter/handplan/NewWebMeterHandPlan.vue +745 -745
  278. package/src/components/webmeter/indicatorStatisticsEchars.vue +204 -204
  279. package/src/components/webmeter/indicatorStatisticsMain.vue +257 -257
  280. package/src/components/webmeter/newwebmeter/NewException/NewExceptionEcharsTotal.vue +712 -712
  281. package/src/components/webmeter/newwebmeter/NewException/NewExceptionEform.vue +149 -149
  282. package/src/components/webmeter/newwebmeter/NewException/NewExceptionEformTotal.vue +211 -211
  283. package/src/components/webmeter/newwebmeter/NewException/NewMeterException.vue +449 -449
  284. package/src/components/webmeter/newwebmeter/NewException/TotalExceptionByMeter.vue +492 -492
  285. package/src/components/webmeter/newwebmeter/NewWebUserHand.vue +324 -324
  286. package/src/components/webmeter/newwebmeter/ReportDataQuery.vue +283 -283
  287. package/src/components/webmeter/newwebmeter/UserGasEchartsList.vue +245 -245
  288. package/src/components/webmeter/newwebmeter/UserGasList.vue +295 -295
  289. package/src/components/webmeter/newwebmeter/UserInstructEchartsList.vue +286 -286
  290. package/src/components/webmeter/newwebmeter/UserInstructList.vue +311 -311
  291. package/src/components/webmeter/newwebmeter/signAnalysisEcharts.vue +258 -258
  292. package/src/components/webmeter/newwebmeter/signAnalysisEform.vue +175 -175
  293. package/src/components/webmeter/newwebmeter/signAnalysisListMain.vue +386 -386
  294. package/src/components/webmeter/report/ReportList.vue +211 -211
  295. package/src/index.js +9 -9
  296. package/src/main.js +56 -56
  297. package/src/newmanage.js +288 -288
  298. package/src/plugins/GetLoginInfoService.js +505 -505
  299. package/src/plugins/LodopFuncs.js +124 -124
  300. package/src/reportManage.js +208 -208
  301. package/src/saleManage.js +263 -263
  302. package/src/stores/DataSql.js +585 -585
  303. package/src/stores/DrillECharts.js +601 -601
  304. package/src/stores/DrillSql.js +675 -675
  305. package/src/stores/MagGetSaleParams.js +138 -138
  306. package/src/stores/MagLoadParams.js +63 -63
  307. package/src/webmeterManage.js +99 -99
  308. package/yarn-error.log +7394 -7394
@@ -1,792 +1,792 @@
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 '../../../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 + '>=to_date(\'' + Drillsql.startDate+ '\',\'yyyy-MM-dd hh24:mi:ss\') and '
273
- + dateparam + '<=to_date(\'' + Drillsql.endDate + '\',\'yyyy-MM-dd hh24:mi:ss\') 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 + '>=to_date(\'' + this.model.startDate + ' 00:00:00\',\'yyyy-MM-dd hh24:mi:ss\') and '
330
- + pagelist[2].dateparam + '<=to_date(\'' + this.model.endDate + ' 00:00:00\',\'yyyy-MM-dd hh24:mi:ss\') 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
- return
463
- if (typeof this.echartsdata !== "undefined" && this.drillshow == true && this.initflag) {
464
- this.initdata()
465
- this.initflag = false
466
- }
467
- }
468
- ,
469
- immediate: true
470
- }
471
- ,
472
- 'select0':
473
- {
474
- deep: true,
475
- handler() {
476
- // console.log(this.select0, '选中分类的值')
477
- if (this.select0.length < 1) {
478
- return
479
- }
480
- this.select1 = ''
481
-
482
- this.childrenselectshow = false
483
- var self = this
484
- this.drillparam.forEach(function (s) {
485
- if (self.select0 == s.value && s.name == 't_area') {
486
- let gen = Dec.select(self, 't_area', '1=1')
487
- co(gen)
488
- }
489
- })
490
- setTimeout(() => {
491
- self.drillparam.forEach(function (s) {
492
- if (s.value == self.select0) {
493
- if (typeof s.children != "undefined" && JSON.stringify(s.children) != '[]') {
494
- self.childrenselectshow = true
495
- self.drillchildrenparam = s.children
496
- }
497
- }
498
-
499
- })
500
- }, 500)
501
- }
502
- }
503
- ,
504
- 'select1':
505
- {
506
- deep: true,
507
- handler() {
508
- // console.log(this.select1, '选中分类的值')
509
- if (this.select1.length < 1) {
510
- return
511
- }
512
- var self = this
513
- var l = 0
514
- var texttile = this.$refs.selected.selectedItems
515
- this.drillparam.forEach(function (s) {
516
- if (s.label == texttile && s.inputchildren != '') {
517
- l++
518
- self.inputtextshow = true
519
- self.textcontent = s.inputchildren
520
- }
521
- })
522
- if (l == 0) {
523
- this.inputtextshow = false
524
- this.textcontent = ''
525
- this.inputtext = ''
526
- }
527
- }
528
- }
529
- ,
530
- 'sqlobtaindata':
531
- {
532
- deep: true,
533
- handler(val) {
534
- if (this.sqlobtaindata.length < 1) {
535
- this.$showMessage('数据为空!')
536
- return
537
- }
538
- console.log('测试数据变化')
539
- if (this.echartsType == 'pie') {
540
- this.datapool = this.sqlobtaindata
541
- Dec.setPie(this, 'echarts', this.sqlobtaindata, this.sqlobtaindata)
542
- }
543
- if (this.echartsType == 'bar') {
544
- this.datapool = this.sqlobtaindata
545
- var cachebardata = Dec.DataIntegration(this.sqlobtaindata)
546
- // console.log(cachebardata, this.bartype, '整合数据及柱状图状态')
547
- Dec.setBar(this, 'echarts', cachebardata, this.xname, this.yname, this.seriename, this.idname, this.namesubif)
548
- }
549
- }
550
- },
551
- },
552
- ready() {
553
- // console.log(this.drillshow, '三级页面')
554
- // this.model.startDate = Util.toStandardDateString()
555
- // this.model.endDate = Util.toStandardDateString()
556
- }
557
- }
558
- </script>
559
-
560
- <style>
561
- .childrendatestyle input {
562
- background-color: rgba(1, 207, 242, 0.01);
563
- border: solid 1px #6fd9d0;
564
- color: white;
565
- }
566
-
567
- .childrendatestyle .datepicker-popup {
568
- background-color: #023740 !important;
569
- border: solid 1px #6fd9d0;
570
- color: white !important;
571
- }
572
-
573
- .childrendatestyle .datepicker-monthRange span:hover,
574
- .datepicker-ctrl p:hover,
575
- .datepicker-ctrl i:hover,
576
- .datepicker-dateRange span:hover,
577
- .datepicker-dateRange-item-hover {
578
- background-color: #00f3ff !important;
579
- /*border: solid 1px #6fd9d0;*/
580
- color: white !important;
581
- }
582
-
583
- .childrenselectstyle button {
584
- background-color: #013e48 !important;
585
- border: solid 1px #6fd9d0 !important;
586
- color: white !important;
587
- }
588
-
589
- .childrenselectstyle ul {
590
- background-color: #013e48 !important;
591
- border: solid 1px #6fd9d0 !important;
592
-
593
- }
594
-
595
- .childrenselectstyle div {
596
- background-color: #013e48 !important;
597
- color: white !important;
598
- }
599
-
600
- .childrenselectstyle li a {
601
- color: white !important;
602
- }
603
-
604
- .childrenselectstyle li a:hover {
605
- background-color: #05525f;
606
- }
607
-
608
- #childrenorgstyle #vc-chooser .list-group-item {
609
- background-color: #013e48 !important;
610
- color: #fff !important;
611
- }
612
-
613
- #childrenorgstyle #vc-chooser .list-group {
614
- background-color: #6fd9d0 !important;
615
- color: #fff !important;
616
- }
617
-
618
- #childrenorgstyle #vc-chooser button {
619
- border: solid 1px #6fd9d0;
620
- background-color: rgba(1, 207, 242, 0.01) !important;
621
- color: #fff !important;
622
- }
623
- </style>
624
- <style scoped>
625
- label {
626
- color: white;
627
- }
628
-
629
- .datestyle {
630
- padding-left: 3%;
631
- width: 100%;
632
- height: 9%;
633
- }
634
-
635
- .div-1 {
636
-
637
- height: 80%;
638
- width: 100%;
639
- }
640
-
641
- .title-1 {
642
- border-radius: 10px 10px 0px 0px;
643
- margin: 0% 2%;
644
- padding: 0% 2%;
645
- font-size: 1.6em;
646
- display: flex;
647
- /*实现垂直居中*/
648
- align-items: center;
649
- justify-content: space-between;
650
- color: #fff;
651
- height: 8%;
652
- width: 96%;
653
- background-color: rgba(1, 207, 242, 0.08);
654
- }
655
-
656
- .button-1 {
657
- height: 65%;
658
- width: 6%;
659
- margin-right: 1%;
660
- background-color: #013e48;
661
- border-radius: 6px;
662
- border: solid 1px #40cfc3;
663
- font-size: 0.65em;
664
- float: right;
665
- }
666
-
667
- .button-2 {
668
- color: white;
669
- height: 100%;
670
- width: 12%;
671
- margin-left: 2%;
672
- margin-top: 0.1%;
673
- background-color: #013e48;
674
- border-radius: 6px;
675
- border: solid 1px #40cfc3;
676
- font-size: 1em;
677
- }
678
-
679
- .button-1:hover {
680
- background-color: #40cfc3;
681
- border: 1px solid #00ffea;
682
- border-radius: 6px;
683
- }
684
-
685
- .button-2:hover {
686
- background-color: #00ffe9;
687
- border: 1px solid #013e48;
688
- border-radius: 6px;
689
- }
690
-
691
- .button-21 {
692
- background-color: #40cfc3;
693
- border-radius: 6px;
694
- color: white;
695
- height: 100%;
696
- width: 12%;
697
- margin-left: 2%;
698
- margin-top: 0.1%;
699
- border: solid 1px #40cfc3;
700
- font-size: 1em;
701
- }
702
-
703
- .button-21:hover {
704
- border: 1px solid #00ffea;
705
- border-radius: 6px;
706
- }
707
-
708
- .drillcontent {
709
- margin-left: 2%;
710
- width: 52%;
711
- height: 100%;
712
- float: left;
713
- background-color: rgba(1, 207, 242, 0.04);
714
- }
715
-
716
- .drilltext {
717
- width: 100%;
718
- height: 84%;
719
- /*background-color: #c7254e;*/
720
- }
721
-
722
- .echartsstyle {
723
- height: 95%;
724
- width: 56%;
725
- float: left;
726
- /*background-color: white;*/
727
- }
728
-
729
- .pool {
730
- height: 100%;
731
- width: 44%;
732
- float: left;
733
- /*background-color: #c7254e;*/
734
- }
735
-
736
- .drilllist {
737
- height: 100%;
738
- width: 44%;
739
- float: left;
740
- background-color: rgba(1, 207, 242, 0.04);
741
- }
742
-
743
- .drillliststyle {
744
- margin-left: 2%;
745
- height: 96%;
746
- width: 96%;
747
- float: left;
748
- background-color: rgba(1, 207, 242, 0.04);
749
- }
750
-
751
- .menuselect {
752
- margin-top: 1%;
753
- margin-left: 4%;
754
- height: 16%;
755
- width: 96%;
756
- }
757
-
758
- .selectstyle {
759
- height: 45%;
760
- }
761
-
762
- .datestyle label {
763
- margin-left: 1%;
764
- margin-top: 1%;
765
- }
766
-
767
- #selectchildrenid {
768
- margin-left: 1%;
769
- }
770
-
771
- .history {
772
- border-radius: 2px;
773
- border: solid 1px #2f9ad1;
774
- color: #2f9ad1;
775
- }
776
-
777
- .historydiv div {
778
- height: 49%;
779
- }
780
-
781
- .historydiv {
782
- height: 55%;
783
- }
784
-
785
- .selectstyle input {
786
- width: 20%;
787
- height: 95%;
788
- background-color: #023740 !important;
789
- border: solid 1px #6fd9d0;
790
- color: white !important;
791
- }
792
- </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 '../../../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 + '>=to_date(\'' + Drillsql.startDate+ '\',\'yyyy-MM-dd hh24:mi:ss\') and '
273
+ + dateparam + '<=to_date(\'' + Drillsql.endDate + '\',\'yyyy-MM-dd hh24:mi:ss\') 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 + '>=to_date(\'' + this.model.startDate + ' 00:00:00\',\'yyyy-MM-dd hh24:mi:ss\') and '
330
+ + pagelist[2].dateparam + '<=to_date(\'' + this.model.endDate + ' 00:00:00\',\'yyyy-MM-dd hh24:mi:ss\') 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
+ return
463
+ if (typeof this.echartsdata !== "undefined" && this.drillshow == true && this.initflag) {
464
+ this.initdata()
465
+ this.initflag = false
466
+ }
467
+ }
468
+ ,
469
+ immediate: true
470
+ }
471
+ ,
472
+ 'select0':
473
+ {
474
+ deep: true,
475
+ handler() {
476
+ // console.log(this.select0, '选中分类的值')
477
+ if (this.select0.length < 1) {
478
+ return
479
+ }
480
+ this.select1 = ''
481
+
482
+ this.childrenselectshow = false
483
+ var self = this
484
+ this.drillparam.forEach(function (s) {
485
+ if (self.select0 == s.value && s.name == 't_area') {
486
+ let gen = Dec.select(self, 't_area', '1=1')
487
+ co(gen)
488
+ }
489
+ })
490
+ setTimeout(() => {
491
+ self.drillparam.forEach(function (s) {
492
+ if (s.value == self.select0) {
493
+ if (typeof s.children != "undefined" && JSON.stringify(s.children) != '[]') {
494
+ self.childrenselectshow = true
495
+ self.drillchildrenparam = s.children
496
+ }
497
+ }
498
+
499
+ })
500
+ }, 500)
501
+ }
502
+ }
503
+ ,
504
+ 'select1':
505
+ {
506
+ deep: true,
507
+ handler() {
508
+ // console.log(this.select1, '选中分类的值')
509
+ if (this.select1.length < 1) {
510
+ return
511
+ }
512
+ var self = this
513
+ var l = 0
514
+ var texttile = this.$refs.selected.selectedItems
515
+ this.drillparam.forEach(function (s) {
516
+ if (s.label == texttile && s.inputchildren != '') {
517
+ l++
518
+ self.inputtextshow = true
519
+ self.textcontent = s.inputchildren
520
+ }
521
+ })
522
+ if (l == 0) {
523
+ this.inputtextshow = false
524
+ this.textcontent = ''
525
+ this.inputtext = ''
526
+ }
527
+ }
528
+ }
529
+ ,
530
+ 'sqlobtaindata':
531
+ {
532
+ deep: true,
533
+ handler(val) {
534
+ if (this.sqlobtaindata.length < 1) {
535
+ this.$showMessage('数据为空!')
536
+ return
537
+ }
538
+ console.log('测试数据变化')
539
+ if (this.echartsType == 'pie') {
540
+ this.datapool = this.sqlobtaindata
541
+ Dec.setPie(this, 'echarts', this.sqlobtaindata, this.sqlobtaindata)
542
+ }
543
+ if (this.echartsType == 'bar') {
544
+ this.datapool = this.sqlobtaindata
545
+ var cachebardata = Dec.DataIntegration(this.sqlobtaindata)
546
+ // console.log(cachebardata, this.bartype, '整合数据及柱状图状态')
547
+ Dec.setBar(this, 'echarts', cachebardata, this.xname, this.yname, this.seriename, this.idname, this.namesubif)
548
+ }
549
+ }
550
+ },
551
+ },
552
+ ready() {
553
+ // console.log(this.drillshow, '三级页面')
554
+ // this.model.startDate = Util.toStandardDateString()
555
+ // this.model.endDate = Util.toStandardDateString()
556
+ }
557
+ }
558
+ </script>
559
+
560
+ <style>
561
+ .childrendatestyle input {
562
+ background-color: rgba(1, 207, 242, 0.01);
563
+ border: solid 1px #6fd9d0;
564
+ color: white;
565
+ }
566
+
567
+ .childrendatestyle .datepicker-popup {
568
+ background-color: #023740 !important;
569
+ border: solid 1px #6fd9d0;
570
+ color: white !important;
571
+ }
572
+
573
+ .childrendatestyle .datepicker-monthRange span:hover,
574
+ .datepicker-ctrl p:hover,
575
+ .datepicker-ctrl i:hover,
576
+ .datepicker-dateRange span:hover,
577
+ .datepicker-dateRange-item-hover {
578
+ background-color: #00f3ff !important;
579
+ /*border: solid 1px #6fd9d0;*/
580
+ color: white !important;
581
+ }
582
+
583
+ .childrenselectstyle button {
584
+ background-color: #013e48 !important;
585
+ border: solid 1px #6fd9d0 !important;
586
+ color: white !important;
587
+ }
588
+
589
+ .childrenselectstyle ul {
590
+ background-color: #013e48 !important;
591
+ border: solid 1px #6fd9d0 !important;
592
+
593
+ }
594
+
595
+ .childrenselectstyle div {
596
+ background-color: #013e48 !important;
597
+ color: white !important;
598
+ }
599
+
600
+ .childrenselectstyle li a {
601
+ color: white !important;
602
+ }
603
+
604
+ .childrenselectstyle li a:hover {
605
+ background-color: #05525f;
606
+ }
607
+
608
+ #childrenorgstyle #vc-chooser .list-group-item {
609
+ background-color: #013e48 !important;
610
+ color: #fff !important;
611
+ }
612
+
613
+ #childrenorgstyle #vc-chooser .list-group {
614
+ background-color: #6fd9d0 !important;
615
+ color: #fff !important;
616
+ }
617
+
618
+ #childrenorgstyle #vc-chooser button {
619
+ border: solid 1px #6fd9d0;
620
+ background-color: rgba(1, 207, 242, 0.01) !important;
621
+ color: #fff !important;
622
+ }
623
+ </style>
624
+ <style scoped>
625
+ label {
626
+ color: white;
627
+ }
628
+
629
+ .datestyle {
630
+ padding-left: 3%;
631
+ width: 100%;
632
+ height: 9%;
633
+ }
634
+
635
+ .div-1 {
636
+
637
+ height: 80%;
638
+ width: 100%;
639
+ }
640
+
641
+ .title-1 {
642
+ border-radius: 10px 10px 0px 0px;
643
+ margin: 0% 2%;
644
+ padding: 0% 2%;
645
+ font-size: 1.6em;
646
+ display: flex;
647
+ /*实现垂直居中*/
648
+ align-items: center;
649
+ justify-content: space-between;
650
+ color: #fff;
651
+ height: 8%;
652
+ width: 96%;
653
+ background-color: rgba(1, 207, 242, 0.08);
654
+ }
655
+
656
+ .button-1 {
657
+ height: 65%;
658
+ width: 6%;
659
+ margin-right: 1%;
660
+ background-color: #013e48;
661
+ border-radius: 6px;
662
+ border: solid 1px #40cfc3;
663
+ font-size: 0.65em;
664
+ float: right;
665
+ }
666
+
667
+ .button-2 {
668
+ color: white;
669
+ height: 100%;
670
+ width: 12%;
671
+ margin-left: 2%;
672
+ margin-top: 0.1%;
673
+ background-color: #013e48;
674
+ border-radius: 6px;
675
+ border: solid 1px #40cfc3;
676
+ font-size: 1em;
677
+ }
678
+
679
+ .button-1:hover {
680
+ background-color: #40cfc3;
681
+ border: 1px solid #00ffea;
682
+ border-radius: 6px;
683
+ }
684
+
685
+ .button-2:hover {
686
+ background-color: #00ffe9;
687
+ border: 1px solid #013e48;
688
+ border-radius: 6px;
689
+ }
690
+
691
+ .button-21 {
692
+ background-color: #40cfc3;
693
+ border-radius: 6px;
694
+ color: white;
695
+ height: 100%;
696
+ width: 12%;
697
+ margin-left: 2%;
698
+ margin-top: 0.1%;
699
+ border: solid 1px #40cfc3;
700
+ font-size: 1em;
701
+ }
702
+
703
+ .button-21:hover {
704
+ border: 1px solid #00ffea;
705
+ border-radius: 6px;
706
+ }
707
+
708
+ .drillcontent {
709
+ margin-left: 2%;
710
+ width: 52%;
711
+ height: 100%;
712
+ float: left;
713
+ background-color: rgba(1, 207, 242, 0.04);
714
+ }
715
+
716
+ .drilltext {
717
+ width: 100%;
718
+ height: 84%;
719
+ /*background-color: #c7254e;*/
720
+ }
721
+
722
+ .echartsstyle {
723
+ height: 95%;
724
+ width: 56%;
725
+ float: left;
726
+ /*background-color: white;*/
727
+ }
728
+
729
+ .pool {
730
+ height: 100%;
731
+ width: 44%;
732
+ float: left;
733
+ /*background-color: #c7254e;*/
734
+ }
735
+
736
+ .drilllist {
737
+ height: 100%;
738
+ width: 44%;
739
+ float: left;
740
+ background-color: rgba(1, 207, 242, 0.04);
741
+ }
742
+
743
+ .drillliststyle {
744
+ margin-left: 2%;
745
+ height: 96%;
746
+ width: 96%;
747
+ float: left;
748
+ background-color: rgba(1, 207, 242, 0.04);
749
+ }
750
+
751
+ .menuselect {
752
+ margin-top: 1%;
753
+ margin-left: 4%;
754
+ height: 16%;
755
+ width: 96%;
756
+ }
757
+
758
+ .selectstyle {
759
+ height: 45%;
760
+ }
761
+
762
+ .datestyle label {
763
+ margin-left: 1%;
764
+ margin-top: 1%;
765
+ }
766
+
767
+ #selectchildrenid {
768
+ margin-left: 1%;
769
+ }
770
+
771
+ .history {
772
+ border-radius: 2px;
773
+ border: solid 1px #2f9ad1;
774
+ color: #2f9ad1;
775
+ }
776
+
777
+ .historydiv div {
778
+ height: 49%;
779
+ }
780
+
781
+ .historydiv {
782
+ height: 55%;
783
+ }
784
+
785
+ .selectstyle input {
786
+ width: 20%;
787
+ height: 95%;
788
+ background-color: #023740 !important;
789
+ border: solid 1px #6fd9d0;
790
+ color: white !important;
791
+ }
792
+ </style>