@ued_fpi/data-visual 1.2.2 → 1.2.4

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 (294) hide show
  1. package/dist/es/aims/src/AirQualityPresentSituation/index.vue.mjs +41 -15
  2. package/dist/es/aims/src/AirQualityRealTime/api/index.d.ts +1 -1
  3. package/dist/es/aims/src/AirQualityRealTime/index.vue.mjs +16 -11
  4. package/dist/es/aims/src/AirQualityRealTimeAndDay/api/index.d.ts +28 -0
  5. package/dist/es/aims/src/AirQualityRealTimeAndDay/api/index.mjs +11 -0
  6. package/dist/es/aims/src/AirQualityRealTimeAndDay/index.d.ts +122 -0
  7. package/dist/es/aims/src/AirQualityRealTimeAndDay/index.mjs +7 -0
  8. package/dist/es/aims/src/AirQualityRealTimeAndDay/index.vue.d.ts +33 -0
  9. package/dist/es/aims/src/AirQualityRealTimeAndDay/index.vue.mjs +218 -0
  10. package/dist/es/aims/src/AirQualityRealTimeAndDay/index.vue2.mjs +3 -0
  11. package/dist/es/aims/src/AirQualityRealTimeAndDay/index.vue3.mjs +6 -0
  12. package/dist/es/aims/src/index.d.ts +1 -0
  13. package/dist/es/aims/src/index.mjs +1 -0
  14. package/dist/es/bmp/src/AlgaeMonitoring/index.vue.mjs +3 -3
  15. package/dist/es/index.mjs +2 -1
  16. package/dist/es/ipes/src/AccessVehicleManage/index.vue.mjs +20 -17
  17. package/dist/es/ipes/src/AirPollutionDischarge/index.vue.mjs +82 -68
  18. package/dist/es/ipes/src/AirQualityManagement/index.vue.mjs +2 -2
  19. package/dist/es/ipes/src/BusinessManage/index.vue.mjs +12 -7
  20. package/dist/es/ipes/src/EmergencyDuty/index.d.ts +23 -30
  21. package/dist/es/ipes/src/EmergencyDuty/index.mjs +4 -3
  22. package/dist/es/ipes/src/EmergencyDuty/index.vue.d.ts +13 -10
  23. package/dist/es/ipes/src/EmergencyDuty/index.vue.mjs +97 -33
  24. package/dist/es/ipes/src/EmergencyDuty/index.vue2.mjs +2 -20
  25. package/dist/es/ipes/src/EmergencyDuty/index.vue3.mjs +5 -2
  26. package/dist/es/ipes/src/EmergencyDuty/type.d.ts +7 -0
  27. package/dist/es/ipes/src/EmergencyManage/index.d.ts +9 -27
  28. package/dist/es/ipes/src/EmergencyManage/index.vue.d.ts +5 -17
  29. package/dist/es/ipes/src/EmergencyManage/index.vue.mjs +35 -56
  30. package/dist/es/ipes/src/EmergencyResources/images/expert.png.mjs +3 -0
  31. package/dist/es/ipes/src/EmergencyResources/images/materials.png.mjs +3 -0
  32. package/dist/es/ipes/src/EmergencyResources/images/personnel.png.mjs +3 -0
  33. package/dist/es/ipes/src/EmergencyResources/images/preplan.png.mjs +2 -2
  34. package/dist/es/ipes/src/EmergencyResources/images/protected.png.mjs +3 -0
  35. package/dist/es/ipes/src/EmergencyResources/images/shelter.png.mjs +3 -0
  36. package/dist/es/ipes/src/EmergencyResources/images/store.png.mjs +3 -0
  37. package/dist/es/ipes/src/EmergencyResources/images/team.png.mjs +3 -0
  38. package/dist/es/ipes/src/EmergencyResources/index.d.ts +12 -30
  39. package/dist/es/ipes/src/EmergencyResources/index.vue.d.ts +7 -20
  40. package/dist/es/ipes/src/EmergencyResources/index.vue.mjs +107 -28
  41. package/dist/es/ipes/src/EnterpriseProtectionCode/index.d.ts +17 -25
  42. package/dist/es/ipes/src/EnterpriseProtectionCode/index.vue.d.ts +7 -14
  43. package/dist/es/ipes/src/EnterpriseProtectionCode/index.vue.mjs +53 -45
  44. package/dist/es/ipes/src/EnvManage/index.vue.mjs +2 -1
  45. package/dist/es/ipes/src/EnvironmentalProtection/images/piebottom.png.mjs +2 -2
  46. package/dist/es/ipes/src/EnvironmentalProtection/images/pietop.png.mjs +2 -2
  47. package/dist/es/ipes/src/EnvironmentalProtection/index.vue.mjs +9 -17
  48. package/dist/es/ipes/src/EnvironmentalRiskManagement/index.d.ts +76 -7
  49. package/dist/es/ipes/src/EnvironmentalRiskManagement/index.vue.d.ts +49 -3
  50. package/dist/es/ipes/src/EnvironmentalRiskManagement/index.vue.mjs +22 -53
  51. package/dist/es/ipes/src/GasControl/index.d.ts +12 -12
  52. package/dist/es/ipes/src/GasControl/index.vue.d.ts +6 -6
  53. package/dist/es/ipes/src/GasControl/index.vue.mjs +4 -4
  54. package/dist/es/ipes/src/GeneralManagement/components/Tabs.vue.mjs +1 -1
  55. package/dist/es/ipes/src/GeneralManagement/index.d.ts +131 -26
  56. package/dist/es/ipes/src/GeneralManagement/index.vue.d.ts +82 -12
  57. package/dist/es/ipes/src/GeneralManagement/index.vue.mjs +21 -53
  58. package/dist/es/ipes/src/InspectionManage/index.vue.mjs +59 -67
  59. package/dist/es/ipes/src/Level3AirDefense/index.vue.mjs +1 -1
  60. package/dist/es/ipes/src/PollutantSourceManage/index.d.ts +54 -56
  61. package/dist/es/ipes/src/PollutantSourceManage/index.vue.d.ts +28 -13
  62. package/dist/es/ipes/src/PollutantSourceManage/index.vue.mjs +16 -16
  63. package/dist/es/ipes/src/PollutantSourceManage/type.d.ts +9 -1
  64. package/dist/es/ipes/src/RealTimeAirQualityManage/index.vue.mjs +6 -5
  65. package/dist/es/ipes/src/StreetLightingManagement/index.d.ts +12 -21
  66. package/dist/es/ipes/src/StreetLightingManagement/index.vue.d.ts +7 -15
  67. package/dist/es/ipes/src/StreetLightingManagement/index.vue.mjs +34 -13
  68. package/dist/es/ipes/src/StreetLightingManagement/type.d.ts +2 -0
  69. package/dist/es/ipes/src/TaskDispose/index.d.ts +18 -93
  70. package/dist/es/ipes/src/TaskDispose/index.vue.d.ts +10 -58
  71. package/dist/es/ipes/src/TaskDispose/index.vue.mjs +72 -262
  72. package/dist/es/ipes/src/VocStatistics/index.d.ts +3 -27
  73. package/dist/es/ipes/src/VocStatistics/index.vue.d.ts +2 -17
  74. package/dist/es/ipes/src/VocStatistics/index.vue.mjs +20 -38
  75. package/dist/es/ipes/src/common/Echarts.vue.mjs +20 -11
  76. package/dist/es/style.css +5080 -4770
  77. package/dist/es/wgms/src/AuxiliaryJudgment/api/index.d.ts +2 -2
  78. package/dist/es/wgms/src/AuxiliaryJudgment/api/index.mjs +2 -2
  79. package/dist/es/wgms/src/AuxiliaryJudgment/api/types.d.ts +4 -20
  80. package/dist/es/wgms/src/AuxiliaryJudgment/index.d.ts +39 -24
  81. package/dist/es/wgms/src/AuxiliaryJudgment/index.vue.d.ts +22 -13
  82. package/dist/es/wgms/src/AuxiliaryJudgment/index.vue.mjs +33 -32
  83. package/dist/es/wgms/src/ChangesAlongTheProcess/api/index.mjs +11 -0
  84. package/dist/es/wgms/src/ChangesAlongTheProcess/api/types.d.ts +5 -16
  85. package/dist/es/wgms/src/ChangesAlongTheProcess/index.d.ts +69 -24
  86. package/dist/es/wgms/src/ChangesAlongTheProcess/index.vue.d.ts +40 -13
  87. package/dist/es/wgms/src/ChangesAlongTheProcess/index.vue.mjs +37 -36
  88. package/dist/es/wgms/src/ChlorophyllAchangeRate/index.d.ts +1 -1
  89. package/dist/es/wgms/src/CrossSectionCorrelation/api/index.mjs +2 -2
  90. package/dist/es/wgms/src/CrossSectionCorrelation/api/types.d.ts +14 -12
  91. package/dist/es/wgms/src/CrossSectionCorrelation/index.d.ts +111 -36
  92. package/dist/es/wgms/src/CrossSectionCorrelation/index.vue.d.ts +64 -19
  93. package/dist/es/wgms/src/CrossSectionCorrelation/index.vue.mjs +64 -41
  94. package/dist/es/wgms/src/DrinkingWaterComplianceRate/index.d.ts +1 -1
  95. package/dist/es/wgms/src/DrinkingWaterComplianceRate/index.mjs +2 -2
  96. package/dist/es/wgms/src/FactorTopThreeRanking/index.d.ts +1 -1
  97. package/dist/es/wgms/src/FactorTrendComparison/api/index.d.ts +5 -0
  98. package/dist/es/wgms/src/FactorTrendComparison/api/index.mjs +12 -0
  99. package/dist/es/wgms/src/FactorTrendComparison/index.d.ts +66 -44
  100. package/dist/es/wgms/src/FactorTrendComparison/index.vue.d.ts +39 -25
  101. package/dist/es/wgms/src/FactorTrendComparison/index.vue.mjs +78 -64
  102. package/dist/es/wgms/{api/NPTrendChange → src/NPTrendChange/api}/index.d.ts +1 -1
  103. package/dist/es/wgms/src/NPTrendChange/api/index.mjs +12 -0
  104. package/dist/es/wgms/src/NPTrendChange/index.d.ts +63 -41
  105. package/dist/es/wgms/src/NPTrendChange/index.vue.d.ts +37 -23
  106. package/dist/es/wgms/src/NPTrendChange/index.vue.mjs +58 -50
  107. package/dist/es/wgms/src/PollutionSourceControl/index.d.ts +9 -9
  108. package/dist/es/wgms/src/PollutionSourceControl/index.vue.d.ts +3 -3
  109. package/dist/es/wgms/src/SevenDayKline/api/index.d.ts +8 -0
  110. package/dist/es/wgms/src/SevenDayKline/api/index.mjs +19 -0
  111. package/dist/es/wgms/src/SevenDayKline/api/types.d.ts +5 -4
  112. package/dist/es/wgms/src/SevenDayKline/index.d.ts +39 -39
  113. package/dist/es/wgms/src/SevenDayKline/index.vue.d.ts +22 -22
  114. package/dist/es/wgms/src/SevenDayKline/index.vue.mjs +32 -29
  115. package/dist/es/wgms/src/SurroundingPollution/api/index.mjs +3 -10
  116. package/dist/es/wgms/src/SurroundingPollution/api/types.d.ts +8 -4
  117. package/dist/es/wgms/src/SurroundingPollution/index.d.ts +54 -39
  118. package/dist/es/wgms/src/SurroundingPollution/index.vue.d.ts +31 -22
  119. package/dist/es/wgms/src/SurroundingPollution/index.vue.mjs +43 -38
  120. package/dist/es/wgms/src/UpstreamImpact/api/index.mjs +3 -3
  121. package/dist/es/wgms/src/UpstreamImpact/api/types.d.ts +10 -7
  122. package/dist/es/wgms/src/UpstreamImpact/index.d.ts +93 -48
  123. package/dist/es/wgms/src/UpstreamImpact/index.vue.d.ts +53 -26
  124. package/dist/es/wgms/src/UpstreamImpact/index.vue.mjs +167 -195
  125. package/dist/es/wgms/src/UpstreamSection/api/index.d.ts +6 -0
  126. package/dist/es/wgms/src/UpstreamSection/api/index.mjs +12 -0
  127. package/dist/es/wgms/src/UpstreamSection/api/types.d.ts +20 -0
  128. package/dist/es/wgms/src/UpstreamSection/index.d.ts +113 -3
  129. package/dist/es/wgms/src/UpstreamSection/index.vue.d.ts +67 -1
  130. package/dist/es/wgms/src/UpstreamSection/index.vue.mjs +57 -3
  131. package/dist/es/wgms/src/WaterQualityRainfall/api/index.d.ts +8 -0
  132. package/dist/es/wgms/src/WaterQualityRainfall/api/index.mjs +19 -0
  133. package/dist/es/wgms/src/WaterQualityRainfall/api/types.d.ts +4 -4
  134. package/dist/es/wgms/src/WaterQualityRainfall/index.d.ts +30 -30
  135. package/dist/es/wgms/src/WaterQualityRainfall/index.vue.d.ts +18 -18
  136. package/dist/es/wgms/src/WaterQualityRainfall/index.vue.mjs +43 -26
  137. package/dist/es/wgms/src/index.mjs +1 -1
  138. package/dist/lib/aims/index.js +4 -4
  139. package/dist/lib/aims/src/AirQualityPresentSituation/index.vue.js +41 -15
  140. package/dist/lib/aims/src/AirQualityRealTime/api/index.d.ts +1 -1
  141. package/dist/lib/aims/src/AirQualityRealTime/index.vue.js +15 -10
  142. package/dist/lib/aims/src/AirQualityRealTimeAndDay/api/index.d.ts +28 -0
  143. package/dist/lib/aims/src/AirQualityRealTimeAndDay/api/index.js +15 -0
  144. package/dist/lib/aims/src/AirQualityRealTimeAndDay/index.d.ts +122 -0
  145. package/dist/lib/aims/src/AirQualityRealTimeAndDay/index.js +12 -0
  146. package/dist/lib/aims/src/AirQualityRealTimeAndDay/index.vue.d.ts +33 -0
  147. package/dist/lib/aims/src/AirQualityRealTimeAndDay/index.vue.js +222 -0
  148. package/dist/lib/aims/src/AirQualityRealTimeAndDay/index.vue2.js +7 -0
  149. package/dist/lib/aims/src/AirQualityRealTimeAndDay/index.vue3.js +10 -0
  150. package/dist/lib/aims/src/index.d.ts +1 -0
  151. package/dist/lib/aims/src/index.js +2 -0
  152. package/dist/lib/bmp/src/AlgaeMonitoring/index.vue.js +3 -3
  153. package/dist/lib/index.js +113 -111
  154. package/dist/lib/ipes/src/AccessVehicleManage/index.vue.js +19 -16
  155. package/dist/lib/ipes/src/AirPollutionDischarge/index.vue.js +82 -68
  156. package/dist/lib/ipes/src/AirQualityManagement/index.vue.js +2 -2
  157. package/dist/lib/ipes/src/BusinessManage/index.vue.js +12 -7
  158. package/dist/lib/ipes/src/EmergencyDuty/index.d.ts +23 -30
  159. package/dist/lib/ipes/src/EmergencyDuty/index.js +4 -3
  160. package/dist/lib/ipes/src/EmergencyDuty/index.vue.d.ts +13 -10
  161. package/dist/lib/ipes/src/EmergencyDuty/index.vue.js +96 -32
  162. package/dist/lib/ipes/src/EmergencyDuty/index.vue2.js +2 -20
  163. package/dist/lib/ipes/src/EmergencyDuty/index.vue3.js +5 -2
  164. package/dist/lib/ipes/src/EmergencyDuty/type.d.ts +7 -0
  165. package/dist/lib/ipes/src/EmergencyManage/index.d.ts +9 -27
  166. package/dist/lib/ipes/src/EmergencyManage/index.vue.d.ts +5 -17
  167. package/dist/lib/ipes/src/EmergencyManage/index.vue.js +34 -55
  168. package/dist/lib/ipes/src/EmergencyResources/images/expert.png.js +7 -0
  169. package/dist/lib/ipes/src/EmergencyResources/images/materials.png.js +7 -0
  170. package/dist/lib/ipes/src/EmergencyResources/images/personnel.png.js +7 -0
  171. package/dist/lib/ipes/src/EmergencyResources/images/preplan.png.js +2 -2
  172. package/dist/lib/ipes/src/EmergencyResources/images/protected.png.js +7 -0
  173. package/dist/lib/ipes/src/EmergencyResources/images/shelter.png.js +7 -0
  174. package/dist/lib/ipes/src/EmergencyResources/images/store.png.js +7 -0
  175. package/dist/lib/ipes/src/EmergencyResources/images/team.png.js +7 -0
  176. package/dist/lib/ipes/src/EmergencyResources/index.d.ts +12 -30
  177. package/dist/lib/ipes/src/EmergencyResources/index.vue.d.ts +7 -20
  178. package/dist/lib/ipes/src/EmergencyResources/index.vue.js +106 -27
  179. package/dist/lib/ipes/src/EnterpriseProtectionCode/index.d.ts +17 -25
  180. package/dist/lib/ipes/src/EnterpriseProtectionCode/index.vue.d.ts +7 -14
  181. package/dist/lib/ipes/src/EnterpriseProtectionCode/index.vue.js +52 -44
  182. package/dist/lib/ipes/src/EnvManage/index.vue.js +2 -1
  183. package/dist/lib/ipes/src/EnvironmentalProtection/images/piebottom.png.js +2 -2
  184. package/dist/lib/ipes/src/EnvironmentalProtection/images/pietop.png.js +2 -2
  185. package/dist/lib/ipes/src/EnvironmentalProtection/index.vue.js +4 -12
  186. package/dist/lib/ipes/src/EnvironmentalRiskManagement/index.d.ts +76 -7
  187. package/dist/lib/ipes/src/EnvironmentalRiskManagement/index.vue.d.ts +49 -3
  188. package/dist/lib/ipes/src/EnvironmentalRiskManagement/index.vue.js +21 -52
  189. package/dist/lib/ipes/src/GasControl/index.d.ts +12 -12
  190. package/dist/lib/ipes/src/GasControl/index.vue.d.ts +6 -6
  191. package/dist/lib/ipes/src/GasControl/index.vue.js +4 -4
  192. package/dist/lib/ipes/src/GeneralManagement/components/Tabs.vue.js +1 -1
  193. package/dist/lib/ipes/src/GeneralManagement/index.d.ts +131 -26
  194. package/dist/lib/ipes/src/GeneralManagement/index.vue.d.ts +82 -12
  195. package/dist/lib/ipes/src/GeneralManagement/index.vue.js +20 -52
  196. package/dist/lib/ipes/src/InspectionManage/index.vue.js +59 -67
  197. package/dist/lib/ipes/src/Level3AirDefense/index.vue.js +1 -1
  198. package/dist/lib/ipes/src/PollutantSourceManage/index.d.ts +54 -56
  199. package/dist/lib/ipes/src/PollutantSourceManage/index.vue.d.ts +28 -13
  200. package/dist/lib/ipes/src/PollutantSourceManage/index.vue.js +16 -16
  201. package/dist/lib/ipes/src/PollutantSourceManage/type.d.ts +9 -1
  202. package/dist/lib/ipes/src/RealTimeAirQualityManage/index.vue.js +6 -5
  203. package/dist/lib/ipes/src/StreetLightingManagement/index.d.ts +12 -21
  204. package/dist/lib/ipes/src/StreetLightingManagement/index.vue.d.ts +7 -15
  205. package/dist/lib/ipes/src/StreetLightingManagement/index.vue.js +33 -12
  206. package/dist/lib/ipes/src/StreetLightingManagement/type.d.ts +2 -0
  207. package/dist/lib/ipes/src/TaskDispose/index.d.ts +18 -93
  208. package/dist/lib/ipes/src/TaskDispose/index.vue.d.ts +10 -58
  209. package/dist/lib/ipes/src/TaskDispose/index.vue.js +71 -261
  210. package/dist/lib/ipes/src/VocStatistics/index.d.ts +3 -27
  211. package/dist/lib/ipes/src/VocStatistics/index.vue.d.ts +2 -17
  212. package/dist/lib/ipes/src/VocStatistics/index.vue.js +19 -37
  213. package/dist/lib/ipes/src/common/Echarts.vue.js +20 -11
  214. package/dist/lib/style.css +5080 -4770
  215. package/dist/lib/wgms/src/AuxiliaryJudgment/api/index.d.ts +2 -2
  216. package/dist/lib/wgms/src/AuxiliaryJudgment/api/index.js +2 -2
  217. package/dist/lib/wgms/src/AuxiliaryJudgment/api/types.d.ts +4 -20
  218. package/dist/lib/wgms/src/AuxiliaryJudgment/index.d.ts +39 -24
  219. package/dist/lib/wgms/src/AuxiliaryJudgment/index.vue.d.ts +22 -13
  220. package/dist/lib/wgms/src/AuxiliaryJudgment/index.vue.js +32 -31
  221. package/dist/lib/wgms/src/ChangesAlongTheProcess/api/index.js +15 -0
  222. package/dist/lib/wgms/src/ChangesAlongTheProcess/api/types.d.ts +5 -16
  223. package/dist/lib/wgms/src/ChangesAlongTheProcess/index.d.ts +69 -24
  224. package/dist/lib/wgms/src/ChangesAlongTheProcess/index.vue.d.ts +40 -13
  225. package/dist/lib/wgms/src/ChangesAlongTheProcess/index.vue.js +39 -38
  226. package/dist/lib/wgms/src/ChlorophyllAchangeRate/index.d.ts +1 -1
  227. package/dist/lib/wgms/src/CrossSectionCorrelation/api/index.js +2 -2
  228. package/dist/lib/wgms/src/CrossSectionCorrelation/api/types.d.ts +14 -12
  229. package/dist/lib/wgms/src/CrossSectionCorrelation/index.d.ts +111 -36
  230. package/dist/lib/wgms/src/CrossSectionCorrelation/index.vue.d.ts +64 -19
  231. package/dist/lib/wgms/src/CrossSectionCorrelation/index.vue.js +64 -41
  232. package/dist/lib/wgms/src/DrinkingWaterComplianceRate/index.d.ts +1 -1
  233. package/dist/lib/wgms/src/DrinkingWaterComplianceRate/index.js +2 -2
  234. package/dist/lib/wgms/src/FactorTopThreeRanking/index.d.ts +1 -1
  235. package/dist/lib/wgms/src/FactorTrendComparison/api/index.d.ts +5 -0
  236. package/dist/lib/wgms/src/FactorTrendComparison/api/index.js +16 -0
  237. package/dist/lib/wgms/src/FactorTrendComparison/index.d.ts +66 -44
  238. package/dist/lib/wgms/src/FactorTrendComparison/index.vue.d.ts +39 -25
  239. package/dist/lib/wgms/src/FactorTrendComparison/index.vue.js +80 -66
  240. package/dist/lib/wgms/{api/NPTrendChange → src/NPTrendChange/api}/index.d.ts +1 -1
  241. package/dist/lib/wgms/{api/NPTrendChange → src/NPTrendChange/api}/index.js +3 -3
  242. package/dist/lib/wgms/src/NPTrendChange/index.d.ts +63 -41
  243. package/dist/lib/wgms/src/NPTrendChange/index.vue.d.ts +37 -23
  244. package/dist/lib/wgms/src/NPTrendChange/index.vue.js +61 -53
  245. package/dist/lib/wgms/src/PollutionSourceControl/index.d.ts +9 -9
  246. package/dist/lib/wgms/src/PollutionSourceControl/index.vue.d.ts +3 -3
  247. package/dist/lib/wgms/src/SevenDayKline/api/index.d.ts +8 -0
  248. package/dist/lib/wgms/src/SevenDayKline/api/index.js +24 -0
  249. package/dist/lib/wgms/src/SevenDayKline/api/types.d.ts +5 -4
  250. package/dist/lib/wgms/src/SevenDayKline/index.d.ts +39 -39
  251. package/dist/lib/wgms/src/SevenDayKline/index.vue.d.ts +22 -22
  252. package/dist/lib/wgms/src/SevenDayKline/index.vue.js +34 -31
  253. package/dist/lib/wgms/src/SurroundingPollution/api/index.js +2 -10
  254. package/dist/lib/wgms/src/SurroundingPollution/api/types.d.ts +8 -4
  255. package/dist/lib/wgms/src/SurroundingPollution/index.d.ts +54 -39
  256. package/dist/lib/wgms/src/SurroundingPollution/index.vue.d.ts +31 -22
  257. package/dist/lib/wgms/src/SurroundingPollution/index.vue.js +42 -37
  258. package/dist/lib/wgms/src/UpstreamImpact/api/index.js +3 -3
  259. package/dist/lib/wgms/src/UpstreamImpact/api/types.d.ts +10 -7
  260. package/dist/lib/wgms/src/UpstreamImpact/index.d.ts +93 -48
  261. package/dist/lib/wgms/src/UpstreamImpact/index.vue.d.ts +53 -26
  262. package/dist/lib/wgms/src/UpstreamImpact/index.vue.js +166 -194
  263. package/dist/lib/wgms/src/UpstreamSection/api/index.d.ts +6 -0
  264. package/dist/lib/wgms/src/UpstreamSection/api/index.js +16 -0
  265. package/dist/lib/wgms/src/UpstreamSection/api/types.d.ts +20 -0
  266. package/dist/lib/wgms/src/UpstreamSection/index.d.ts +113 -3
  267. package/dist/lib/wgms/src/UpstreamSection/index.vue.d.ts +67 -1
  268. package/dist/lib/wgms/src/UpstreamSection/index.vue.js +56 -2
  269. package/dist/lib/wgms/src/WaterQualityRainfall/api/index.d.ts +8 -0
  270. package/dist/lib/wgms/src/WaterQualityRainfall/api/index.js +24 -0
  271. package/dist/lib/wgms/src/WaterQualityRainfall/api/types.d.ts +4 -4
  272. package/dist/lib/wgms/src/WaterQualityRainfall/index.d.ts +30 -30
  273. package/dist/lib/wgms/src/WaterQualityRainfall/index.vue.d.ts +18 -18
  274. package/dist/lib/wgms/src/WaterQualityRainfall/index.vue.js +45 -28
  275. package/dist/lib/wgms/src/index.js +1 -1
  276. package/dist/style/base.css +207 -0
  277. package/dist/style/style-aims.css +1 -1
  278. package/dist/style/style-bmp.css +1 -1
  279. package/dist/style/style-ipes.css +1 -1
  280. package/dist/style/style-wgms.css +1 -1
  281. package/package.json +2 -2
  282. package/dist/es/ipes/src/EnvironmentalProtection/images/module-title-icon.png.mjs +0 -3
  283. package/dist/es/ipes/src/InspectionManage/images/module-title-icon.png.mjs +0 -3
  284. package/dist/es/ipes/src/PollutantSourceManage/types.d.ts +0 -18
  285. package/dist/es/ipes/src/TaskDispose/img/circlebottom.png.mjs +0 -3
  286. package/dist/es/wgms/api/FactorTrendComparison/index.d.ts +0 -10
  287. package/dist/es/wgms/api/FactorTrendComparison/index.mjs +0 -20
  288. package/dist/es/wgms/api/NPTrendChange/index.mjs +0 -12
  289. package/dist/lib/ipes/src/EnvironmentalProtection/images/module-title-icon.png.js +0 -7
  290. package/dist/lib/ipes/src/InspectionManage/images/module-title-icon.png.js +0 -7
  291. package/dist/lib/ipes/src/PollutantSourceManage/types.d.ts +0 -18
  292. package/dist/lib/ipes/src/TaskDispose/img/circlebottom.png.js +0 -7
  293. package/dist/lib/wgms/api/FactorTrendComparison/index.d.ts +0 -10
  294. package/dist/lib/wgms/api/FactorTrendComparison/index.js +0 -25
@@ -3,10 +3,23 @@ import { BASE_FACTOR, factorToColor } from 'fpi-tg-factor-tools';
3
3
  import dayjs from 'dayjs';
4
4
  import { getCityDetail } from './api/index.mjs';
5
5
 
6
- const _hoisted_1 = /* @__PURE__ */ createElementVNode("span", null, "综合指数", -1);
7
- const _hoisted_2 = /* @__PURE__ */ createElementVNode("span", { class: "text" }, "主要污染物", -1);
8
- const _hoisted_3 = { class: "name" };
9
- const clsfix = "dv-aims-air-quality-realtime";
6
+ const _hoisted_1 = /* @__PURE__ */ createElementVNode("span", { class: "title" }, "综合指数", -1);
7
+ const _hoisted_2 = { class: "content" };
8
+ const _hoisted_3 = { class: "value" };
9
+ const _hoisted_4 = { class: "main" };
10
+ const _hoisted_5 = /* @__PURE__ */ createElementVNode("span", { class: "text" }, "主要污染物", -1);
11
+ const _hoisted_6 = /* @__PURE__ */ createElementVNode("span", { class: "title" }, "优良率", -1);
12
+ const _hoisted_7 = { class: "content" };
13
+ const _hoisted_8 = { class: "value" };
14
+ const _hoisted_9 = /* @__PURE__ */ createElementVNode("span", { class: "per" }, "%", -1);
15
+ const _hoisted_10 = /* @__PURE__ */ createElementVNode("span", null, "污染物浓度", -1);
16
+ const _hoisted_11 = /* @__PURE__ */ createElementVNode("span", null, "( 单位:μg/m³, CO:mg/m³ )", -1);
17
+ const _hoisted_12 = [
18
+ _hoisted_10,
19
+ _hoisted_11
20
+ ];
21
+ const _hoisted_13 = { class: "name" };
22
+ const clsfix = "dv-aims-air-quality-present-situation";
10
23
  const noDataColor = "rgb(255, 255, 255, 0.5)";
11
24
  const _sfc_main = /* @__PURE__ */ defineComponent({
12
25
  __name: "index",
@@ -22,6 +35,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
22
35
  const realtimeData = reactive({
23
36
  cieqVal: "--",
24
37
  firstPollution: "--",
38
+ fineRate: "--",
25
39
  factorList: BASE_FACTOR.filter((item) => item.code !== "aqi").map(
26
40
  (item) => {
27
41
  return {
@@ -64,23 +78,35 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
64
78
  class: normalizeClass(`${clsfix}-top`)
65
79
  }, [
66
80
  createElementVNode("div", {
67
- class: normalizeClass(`${clsfix}-top-left`)
81
+ class: normalizeClass(`${clsfix}-top-item`)
68
82
  }, [
69
83
  _hoisted_1,
70
- createElementVNode("span", null, toDisplayString(realtimeData.cieqVal), 1)
84
+ createElementVNode("div", _hoisted_2, [
85
+ createElementVNode("span", _hoisted_3, toDisplayString(realtimeData.cieqVal), 1),
86
+ createElementVNode("div", _hoisted_4, [
87
+ _hoisted_5,
88
+ createElementVNode("span", {
89
+ class: "factor",
90
+ style: normalizeStyle({
91
+ color: realtimeData.firstPollution === "--" ? noDataColor : void 0
92
+ })
93
+ }, toDisplayString(realtimeData.firstPollution), 5)
94
+ ])
95
+ ])
71
96
  ], 2),
72
97
  createElementVNode("div", {
73
- class: normalizeClass(`${clsfix}-top-right`)
98
+ class: normalizeClass(`${clsfix}-top-item`)
74
99
  }, [
75
- _hoisted_2,
76
- createElementVNode("span", {
77
- class: "value",
78
- style: normalizeStyle({
79
- color: realtimeData.firstPollution === "--" ? noDataColor : void 0
80
- })
81
- }, toDisplayString(realtimeData.firstPollution), 5)
100
+ _hoisted_6,
101
+ createElementVNode("div", _hoisted_7, [
102
+ createElementVNode("span", _hoisted_8, toDisplayString(realtimeData.fineRate), 1),
103
+ _hoisted_9
104
+ ])
82
105
  ], 2)
83
106
  ], 2),
107
+ createElementVNode("div", {
108
+ class: normalizeClass(`${clsfix}-center`)
109
+ }, _hoisted_12, 2),
84
110
  createElementVNode("ul", {
85
111
  class: normalizeClass(`${clsfix}-bottom`)
86
112
  }, [
@@ -97,7 +123,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
97
123
  class: "line",
98
124
  style: normalizeStyle({ backgroundColor: item.color })
99
125
  }, null, 4),
100
- createElementVNode("span", _hoisted_3, toDisplayString(item.name), 1)
126
+ createElementVNode("span", _hoisted_13, toDisplayString(item.name), 1)
101
127
  ], 2);
102
128
  }), 128))
103
129
  ], 2)
@@ -1,7 +1,7 @@
1
1
  interface GetAirQualityParams {
2
2
  time: number;
3
3
  gridCode: string;
4
- timeType: string;
4
+ timeType: 'hour' | 'day';
5
5
  }
6
6
  interface GetAirQualityRes {
7
7
  airQuality: string;
@@ -1,14 +1,15 @@
1
1
  import { defineComponent, reactive, onMounted, watch, openBlock, createElementBlock, normalizeClass, createElementVNode, normalizeStyle, toDisplayString, Fragment, renderList } from 'vue';
2
- import { BASE_FACTOR, factorToLevel, factorToColor, FACTOR_LEVEL_TEXT } from 'fpi-tg-factor-tools';
2
+ import { BASE_FACTOR, factorToLevel, factorToColor } from 'fpi-tg-factor-tools';
3
3
  import dayjs from 'dayjs';
4
4
  import { getAirQuality } from './api/index.mjs';
5
5
 
6
6
  const _hoisted_1 = { class: "aqiInfo" };
7
7
  const _hoisted_2 = /* @__PURE__ */ createElementVNode("span", null, "AQI", -1);
8
8
  const _hoisted_3 = /* @__PURE__ */ createElementVNode("span", { class: "text" }, "首要污染物", -1);
9
- const _hoisted_4 = { class: "name" };
9
+ const _hoisted_4 = /* @__PURE__ */ createElementVNode("span", null, "( 单位:μg/m³, CO:mg/m³ )", -1);
10
+ const _hoisted_5 = { class: "name" };
10
11
  const clsfix = "dv-aims-air-quality-realtime";
11
- const noDataColor = "rgb(255, 255, 255, 0.5)";
12
+ const noDataColor = "var(--dv-color-text-secondary)";
12
13
  const _sfc_main = /* @__PURE__ */ defineComponent({
13
14
  __name: "index",
14
15
  props: {
@@ -41,19 +42,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
41
42
  getAirQuality(props.apiParams).then((res) => {
42
43
  if (res.data) {
43
44
  const data = res.data;
44
- const level = factorToLevel("aqi", data.aqi, "hour");
45
+ const level = factorToLevel("aqi", data.aqi, props.apiParams.timeType);
45
46
  realtimeData.aqiVal = data.aqi;
46
- realtimeData.aqiColor = factorToColor("aqi", data.aqi, "hour");
47
- realtimeData.aqiPollutionZh = level >= 0 ? FACTOR_LEVEL_TEXT[level].label : "--";
48
- if (realtimeData.aqiPollutionZh !== "--" && realtimeData.aqiPollutionZh.length >= 2)
49
- realtimeData.aqiPollutionZh = `${realtimeData.aqiPollutionZh}污染`;
47
+ realtimeData.aqiColor = level >= 0 ? factorToColor("aqi", data.aqi, props.apiParams.timeType) : noDataColor;
48
+ realtimeData.aqiPollutionZh = data.airQuality;
50
49
  realtimeData.firstPollution = data.mainPollutants;
51
50
  realtimeData.factorList = realtimeData.factorList.map((item) => {
52
51
  const obj = data.commonFactors.find((c) => c.key === item.key);
53
52
  return {
54
53
  ...item,
55
- value: obj?.value ? obj.value : "--",
56
- color: obj?.value ? factorToColor(item.code, obj?.value, "hour") : noDataColor
54
+ value: obj && obj.value ? obj.value : "--",
55
+ color: obj && obj.value && obj.value !== "--" ? factorToColor(item.code, obj?.value, props.apiParams.timeType) : noDataColor
57
56
  };
58
57
  });
59
58
  }
@@ -96,6 +95,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
96
95
  }, toDisplayString(realtimeData.firstPollution), 5)
97
96
  ], 2)
98
97
  ], 2),
98
+ createElementVNode("div", {
99
+ class: normalizeClass(`${clsfix}-center`)
100
+ }, [
101
+ createElementVNode("span", null, toDisplayString(props.apiParams.timeType === "hour" ? "实时" : "今日") + "浓度", 1),
102
+ _hoisted_4
103
+ ], 2),
99
104
  createElementVNode("ul", {
100
105
  class: normalizeClass(`${clsfix}-bottom`)
101
106
  }, [
@@ -112,7 +117,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
112
117
  class: "line",
113
118
  style: normalizeStyle({ backgroundColor: item.color })
114
119
  }, null, 4),
115
- createElementVNode("span", _hoisted_4, toDisplayString(item.name), 1)
120
+ createElementVNode("span", _hoisted_5, toDisplayString(item.name), 1)
116
121
  ], 2);
117
122
  }), 128))
118
123
  ], 2)
@@ -0,0 +1,28 @@
1
+ interface GetAirQualityParams {
2
+ time: number;
3
+ gridCode: string;
4
+ timeType: string;
5
+ }
6
+ interface GetAirQualityRes {
7
+ airQuality: string;
8
+ mainPollutants: string;
9
+ aqi: string;
10
+ commonFactors: {
11
+ key: string;
12
+ name: string;
13
+ unit: string;
14
+ value: string;
15
+ }[];
16
+ weatherFactors: {
17
+ key: string;
18
+ name: string;
19
+ unit: string;
20
+ value: string;
21
+ }[];
22
+ }
23
+ export declare const getAirQuality: (params: GetAirQualityParams) => Promise<{
24
+ code: number;
25
+ data: GetAirQualityRes | null;
26
+ message: string;
27
+ }>;
28
+ export type { GetAirQualityParams };
@@ -0,0 +1,11 @@
1
+ import requestControl from '../../../service/request.mjs';
2
+
3
+ const getAirQuality = (params) => {
4
+ return requestControl({
5
+ url: "/aims-server/web/api/v1/analyze-map/grid-detail",
6
+ method: "get",
7
+ params
8
+ });
9
+ };
10
+
11
+ export { getAirQuality };
@@ -0,0 +1,122 @@
1
+ import _AirQualityRealTimeAndDay from './index.vue';
2
+ export declare const DvAimsAirQualityRealTimeAndDay: {
3
+ new (...args: any[]): {
4
+ $: import("vue").ComponentInternalInstance;
5
+ $data: {};
6
+ $props: {
7
+ apiParams?: Pick<import("./api").GetAirQualityParams, "time" | "gridCode"> | undefined;
8
+ key?: string | number | symbol | undefined;
9
+ style?: unknown;
10
+ ref?: import("vue").VNodeRef | undefined;
11
+ ref_for?: boolean | undefined;
12
+ ref_key?: string | undefined;
13
+ onVnodeBeforeMount?: ((vnode: globalThis.VNode<import("vue").RendererNode, import("vue").RendererElement, {
14
+ [key: string]: any;
15
+ }>) => void) | ((vnode: globalThis.VNode<import("vue").RendererNode, import("vue").RendererElement, {
16
+ [key: string]: any;
17
+ }>) => void)[] | undefined;
18
+ onVnodeMounted?: ((vnode: globalThis.VNode<import("vue").RendererNode, import("vue").RendererElement, {
19
+ [key: string]: any;
20
+ }>) => void) | ((vnode: globalThis.VNode<import("vue").RendererNode, import("vue").RendererElement, {
21
+ [key: string]: any;
22
+ }>) => void)[] | undefined;
23
+ onVnodeBeforeUpdate?: ((vnode: globalThis.VNode<import("vue").RendererNode, import("vue").RendererElement, {
24
+ [key: string]: any;
25
+ }>, oldVNode: globalThis.VNode<import("vue").RendererNode, import("vue").RendererElement, {
26
+ [key: string]: any;
27
+ }>) => void) | ((vnode: globalThis.VNode<import("vue").RendererNode, import("vue").RendererElement, {
28
+ [key: string]: any;
29
+ }>, oldVNode: globalThis.VNode<import("vue").RendererNode, import("vue").RendererElement, {
30
+ [key: string]: any;
31
+ }>) => void)[] | undefined;
32
+ onVnodeUpdated?: ((vnode: globalThis.VNode<import("vue").RendererNode, import("vue").RendererElement, {
33
+ [key: string]: any;
34
+ }>, oldVNode: globalThis.VNode<import("vue").RendererNode, import("vue").RendererElement, {
35
+ [key: string]: any;
36
+ }>) => void) | ((vnode: globalThis.VNode<import("vue").RendererNode, import("vue").RendererElement, {
37
+ [key: string]: any;
38
+ }>, oldVNode: globalThis.VNode<import("vue").RendererNode, import("vue").RendererElement, {
39
+ [key: string]: any;
40
+ }>) => void)[] | undefined;
41
+ onVnodeBeforeUnmount?: ((vnode: globalThis.VNode<import("vue").RendererNode, import("vue").RendererElement, {
42
+ [key: string]: any;
43
+ }>) => void) | ((vnode: globalThis.VNode<import("vue").RendererNode, import("vue").RendererElement, {
44
+ [key: string]: any;
45
+ }>) => void)[] | undefined;
46
+ onVnodeUnmounted?: ((vnode: globalThis.VNode<import("vue").RendererNode, import("vue").RendererElement, {
47
+ [key: string]: any;
48
+ }>) => void) | ((vnode: globalThis.VNode<import("vue").RendererNode, import("vue").RendererElement, {
49
+ [key: string]: any;
50
+ }>) => void)[] | undefined;
51
+ class?: unknown;
52
+ };
53
+ $attrs: {
54
+ [x: string]: unknown;
55
+ };
56
+ $refs: {
57
+ [x: string]: unknown;
58
+ };
59
+ $slots: Readonly<{
60
+ [name: string]: import("vue").Slot<any> | undefined;
61
+ }>;
62
+ $root: globalThis.ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
63
+ $parent: globalThis.ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
64
+ $emit: (event: string, ...args: any[]) => void;
65
+ $el: any;
66
+ $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
67
+ apiParams: {
68
+ type: globalThis.PropType<Pick<import("./api").GetAirQualityParams, "time" | "gridCode">>;
69
+ } & {
70
+ default: () => {
71
+ time: number;
72
+ gridCode: string;
73
+ };
74
+ };
75
+ }>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
76
+ apiParams: Pick<import("./api").GetAirQualityParams, "time" | "gridCode">;
77
+ }, {}, string, {}> & {
78
+ beforeCreate?: ((() => void) | (() => void)[]) | undefined;
79
+ created?: ((() => void) | (() => void)[]) | undefined;
80
+ beforeMount?: ((() => void) | (() => void)[]) | undefined;
81
+ mounted?: ((() => void) | (() => void)[]) | undefined;
82
+ beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
83
+ updated?: ((() => void) | (() => void)[]) | undefined;
84
+ activated?: ((() => void) | (() => void)[]) | undefined;
85
+ deactivated?: ((() => void) | (() => void)[]) | undefined;
86
+ beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
87
+ beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
88
+ destroyed?: ((() => void) | (() => void)[]) | undefined;
89
+ unmounted?: ((() => void) | (() => void)[]) | undefined;
90
+ renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
91
+ renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
92
+ errorCaptured?: (((err: unknown, instance: globalThis.ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null, info: string) => boolean | void) | ((err: unknown, instance: globalThis.ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null, info: string) => boolean | void)[]) | undefined;
93
+ };
94
+ $forceUpdate: () => void;
95
+ $nextTick: typeof import("vue").nextTick;
96
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
97
+ } & Readonly<import("vue").ExtractPropTypes<{
98
+ apiParams: {
99
+ type: globalThis.PropType<Pick<import("./api").GetAirQualityParams, "time" | "gridCode">>;
100
+ } & {
101
+ default: () => {
102
+ time: number;
103
+ gridCode: string;
104
+ };
105
+ };
106
+ }>> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {};
107
+ __isFragment?: undefined;
108
+ __isTeleport?: undefined;
109
+ __isSuspense?: undefined;
110
+ } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
111
+ apiParams: {
112
+ type: globalThis.PropType<Pick<import("./api").GetAirQualityParams, "time" | "gridCode">>;
113
+ } & {
114
+ default: () => {
115
+ time: number;
116
+ gridCode: string;
117
+ };
118
+ };
119
+ }>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
120
+ apiParams: Pick<import("./api").GetAirQualityParams, "time" | "gridCode">;
121
+ }, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("vue").Plugin<any[]>;
122
+ export default _AirQualityRealTimeAndDay;
@@ -0,0 +1,7 @@
1
+ import { install } from '../../../utils.mjs';
2
+ import _sfc_main from './index.vue.mjs';
3
+ import './index.vue2.mjs';
4
+
5
+ const DvAimsAirQualityRealTimeAndDay = install(_sfc_main);
6
+
7
+ export { DvAimsAirQualityRealTimeAndDay, _sfc_main as default };
@@ -0,0 +1,33 @@
1
+ import type { GetAirQualityParams } from './api';
2
+ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
3
+ apiParams?: Pick<GetAirQualityParams, "time" | "gridCode"> | undefined;
4
+ }>, {
5
+ apiParams: () => {
6
+ time: number;
7
+ gridCode: string;
8
+ };
9
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
10
+ apiParams?: Pick<GetAirQualityParams, "time" | "gridCode"> | undefined;
11
+ }>, {
12
+ apiParams: () => {
13
+ time: number;
14
+ gridCode: string;
15
+ };
16
+ }>>>, {
17
+ apiParams: Pick<GetAirQualityParams, 'gridCode' | 'time'>;
18
+ }, {}>;
19
+ export default _default;
20
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
21
+ type __VLS_TypePropsToRuntimeProps<T> = {
22
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
23
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
24
+ } : {
25
+ type: import('vue').PropType<T[K]>;
26
+ required: true;
27
+ };
28
+ };
29
+ type __VLS_WithDefaults<P, D> = {
30
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
31
+ default: D[K];
32
+ } : P[K];
33
+ };
@@ -0,0 +1,218 @@
1
+ import { defineComponent, reactive, onMounted, watch, openBlock, createElementBlock, normalizeClass, createElementVNode, normalizeStyle, toDisplayString, Fragment, renderList } from 'vue';
2
+ import { BASE_FACTOR, factorToLevel, factorToColor } from 'fpi-tg-factor-tools';
3
+ import dayjs from 'dayjs';
4
+ import { getAirQuality } from './api/index.mjs';
5
+
6
+ const _hoisted_1 = /* @__PURE__ */ createElementVNode("div", { class: "title" }, " 实时AQI ", -1);
7
+ const _hoisted_2 = { class: "aqi-container" };
8
+ const _hoisted_3 = { class: "aqiInfo" };
9
+ const _hoisted_4 = { class: "main" };
10
+ const _hoisted_5 = /* @__PURE__ */ createElementVNode("span", { class: "text" }, "首污", -1);
11
+ const _hoisted_6 = /* @__PURE__ */ createElementVNode("div", { class: "title" }, " 今日AQI ", -1);
12
+ const _hoisted_7 = { class: "aqi-container" };
13
+ const _hoisted_8 = { class: "aqiInfo" };
14
+ const _hoisted_9 = { class: "main" };
15
+ const _hoisted_10 = /* @__PURE__ */ createElementVNode("span", { class: "text" }, "首污", -1);
16
+ const _hoisted_11 = /* @__PURE__ */ createElementVNode("span", null, "浓度", -1);
17
+ const _hoisted_12 = /* @__PURE__ */ createElementVNode("span", null, "( 单位:μg/m³, CO:mg/m³ )", -1);
18
+ const _hoisted_13 = [
19
+ _hoisted_11,
20
+ _hoisted_12
21
+ ];
22
+ const _hoisted_14 = /* @__PURE__ */ createElementVNode("li", { class: "bottom-left-title" }, [
23
+ /* @__PURE__ */ createElementVNode("span", null, "实时"),
24
+ /* @__PURE__ */ createElementVNode("span", null, "今日")
25
+ ], -1);
26
+ const _hoisted_15 = { class: "name" };
27
+ const clsfix = "dv-aims-air-quality-realtime-and-day";
28
+ const noDataColor = "rgb(255, 255, 255, 0.5)";
29
+ const _sfc_main = /* @__PURE__ */ defineComponent({
30
+ __name: "index",
31
+ props: {
32
+ apiParams: { default: () => ({
33
+ time: dayjs().subtract(2, "h").valueOf(),
34
+ gridCode: "0101000000"
35
+ }) }
36
+ },
37
+ setup(__props) {
38
+ const props = __props;
39
+ const realtimeData = reactive({
40
+ hourV: "--",
41
+ hourColor: noDataColor,
42
+ hourPollutionZh: "--",
43
+ hourMainPollutants: "--",
44
+ dayV: "--",
45
+ dayColor: noDataColor,
46
+ dayPollutionZh: "--",
47
+ dayMainPollutants: "--",
48
+ factorList: BASE_FACTOR.filter((item) => item.code !== "aqi").map(
49
+ (item) => {
50
+ return {
51
+ name: item.name,
52
+ code: item.code,
53
+ key: item.key,
54
+ hourV: "--",
55
+ hourColor: noDataColor,
56
+ dayV: "--",
57
+ dayColor: noDataColor
58
+ };
59
+ }
60
+ )
61
+ });
62
+ const fetchData = () => {
63
+ const p1 = getAirQuality({ ...props.apiParams, timeType: "hour" });
64
+ const p2 = getAirQuality({ ...props.apiParams, timeType: "day" });
65
+ Promise.all([p1, p2]).then((res) => {
66
+ let hourData = null;
67
+ let dayData = null;
68
+ let factorList = realtimeData.factorList;
69
+ if (res[0] && res[0].data) {
70
+ const data = res[0].data;
71
+ const level = factorToLevel("aqi", data.aqi, "hour");
72
+ hourData = {
73
+ hourV: data.aqi,
74
+ hourColor: level >= 0 ? factorToColor("aqi", data.aqi, "hour") : noDataColor,
75
+ hourPollutionZh: data.airQuality,
76
+ hourMainPollutants: data.mainPollutants
77
+ };
78
+ factorList = factorList.map((item) => {
79
+ const obj = data.commonFactors.find(
80
+ (c) => c.key === item.key
81
+ );
82
+ return {
83
+ ...item,
84
+ hourV: obj?.value ? obj.value : "--",
85
+ hourColor: obj && obj.value && obj.value !== "--" ? factorToColor(item.code, obj.value, "hour") : noDataColor
86
+ };
87
+ });
88
+ }
89
+ if (res[1] && res[1].data) {
90
+ const data = res[1].data;
91
+ const level = factorToLevel("aqi", data.aqi, "day");
92
+ dayData = {
93
+ dayV: data.aqi,
94
+ dayColor: level >= 0 ? factorToColor("aqi", data.aqi, "day") : noDataColor,
95
+ dayPollutionZh: data.airQuality,
96
+ dayMainPollutants: data.mainPollutants
97
+ };
98
+ factorList = factorList.map((item) => {
99
+ const obj = data.commonFactors.find(
100
+ (c) => c.key === item.key
101
+ );
102
+ return {
103
+ ...item,
104
+ dayV: obj?.value ? obj.value : "--",
105
+ dayColor: obj && obj.value && obj.value !== "--" ? factorToColor(item.code, obj.value, "day") : noDataColor
106
+ };
107
+ });
108
+ }
109
+ Object.assign(realtimeData, hourData, dayData, { factorList });
110
+ });
111
+ };
112
+ onMounted(() => {
113
+ fetchData();
114
+ });
115
+ watch(
116
+ () => props.apiParams,
117
+ () => {
118
+ fetchData();
119
+ }
120
+ );
121
+ return (_ctx, _cache) => {
122
+ return openBlock(), createElementBlock("div", {
123
+ class: normalizeClass(`${clsfix}-container`)
124
+ }, [
125
+ createElementVNode("div", {
126
+ class: normalizeClass(`${clsfix}-top`)
127
+ }, [
128
+ createElementVNode("div", {
129
+ class: normalizeClass(`${clsfix}-top-item`)
130
+ }, [
131
+ _hoisted_1,
132
+ createElementVNode("div", _hoisted_2, [
133
+ createElementVNode("div", {
134
+ class: "aqiValue",
135
+ style: normalizeStyle({ color: realtimeData.hourColor })
136
+ }, toDisplayString(realtimeData.hourV), 5),
137
+ createElementVNode("div", _hoisted_3, [
138
+ createElementVNode("span", {
139
+ class: "pollution-zh",
140
+ style: normalizeStyle({ color: realtimeData.hourColor })
141
+ }, toDisplayString(realtimeData.hourPollutionZh), 5),
142
+ createElementVNode("div", _hoisted_4, [
143
+ _hoisted_5,
144
+ createElementVNode("span", {
145
+ class: "value",
146
+ style: normalizeStyle({
147
+ color: realtimeData.hourMainPollutants === "--" ? noDataColor : void 0
148
+ })
149
+ }, toDisplayString(realtimeData.hourMainPollutants), 5)
150
+ ])
151
+ ])
152
+ ])
153
+ ], 2),
154
+ createElementVNode("div", {
155
+ class: normalizeClass(`${clsfix}-top-item`)
156
+ }, [
157
+ _hoisted_6,
158
+ createElementVNode("div", _hoisted_7, [
159
+ createElementVNode("div", {
160
+ class: "aqiValue",
161
+ style: normalizeStyle({ color: realtimeData.dayColor })
162
+ }, toDisplayString(realtimeData.dayV), 5),
163
+ createElementVNode("div", _hoisted_8, [
164
+ createElementVNode("span", {
165
+ class: "pollution-zh",
166
+ style: normalizeStyle({ color: realtimeData.dayColor })
167
+ }, toDisplayString(realtimeData.dayPollutionZh), 5),
168
+ createElementVNode("div", _hoisted_9, [
169
+ _hoisted_10,
170
+ createElementVNode("span", {
171
+ class: "value",
172
+ style: normalizeStyle({
173
+ color: realtimeData.dayMainPollutants === "--" ? noDataColor : void 0
174
+ })
175
+ }, toDisplayString(realtimeData.dayMainPollutants), 5)
176
+ ])
177
+ ])
178
+ ])
179
+ ], 2)
180
+ ], 2),
181
+ createElementVNode("div", {
182
+ class: normalizeClass(`${clsfix}-center`)
183
+ }, _hoisted_13, 2),
184
+ createElementVNode("ul", {
185
+ class: normalizeClass(`${clsfix}-bottom`)
186
+ }, [
187
+ _hoisted_14,
188
+ (openBlock(true), createElementBlock(Fragment, null, renderList(realtimeData.factorList, (item) => {
189
+ return openBlock(), createElementBlock("li", {
190
+ key: item.code,
191
+ class: normalizeClass(`${clsfix}-bottom-item`)
192
+ }, [
193
+ createElementVNode("span", {
194
+ class: "value",
195
+ style: normalizeStyle({ color: item.hourColor })
196
+ }, toDisplayString(item.hourV), 5),
197
+ createElementVNode("span", {
198
+ class: "line",
199
+ style: normalizeStyle({ backgroundColor: item.hourColor })
200
+ }, null, 4),
201
+ createElementVNode("span", {
202
+ class: "value",
203
+ style: normalizeStyle({ color: item.dayColor })
204
+ }, toDisplayString(item.dayV), 5),
205
+ createElementVNode("span", {
206
+ class: "line",
207
+ style: normalizeStyle({ backgroundColor: item.dayColor })
208
+ }, null, 4),
209
+ createElementVNode("span", _hoisted_15, toDisplayString(item.name), 1)
210
+ ], 2);
211
+ }), 128))
212
+ ], 2)
213
+ ], 2);
214
+ };
215
+ }
216
+ });
217
+
218
+ export { _sfc_main as default };
@@ -0,0 +1,3 @@
1
+ /* unplugin-vue-components disabled */const index_vue_vue_type_style_index_0_lang = '';
2
+
3
+ export { index_vue_vue_type_style_index_0_lang as default };
@@ -0,0 +1,6 @@
1
+ import _sfc_main from './index.vue.mjs';
2
+ import './index.vue2.mjs';
3
+
4
+
5
+
6
+ export { _sfc_main as default };
@@ -25,3 +25,4 @@ export * from './MainPollutionYearRatio';
25
25
  export * from './MainPollutionMonthRatio';
26
26
  export * from './AirTimeSeriesAnalysis';
27
27
  export * from './TbHbAnalysis';
28
+ export * from './AirQualityRealTimeAndDay';
@@ -19,3 +19,4 @@ export { DvAimsMainPollutionYearRatio } from './MainPollutionYearRatio/index.mjs
19
19
  export { DvAimsMainPollutionMonthRatio } from './MainPollutionMonthRatio/index.mjs';
20
20
  export { DvAimsAirTimeSeriesAnalysis } from './AirTimeSeriesAnalysis/index.mjs';
21
21
  export { DvAimsTbHbAnalysis } from './TbHbAnalysis/index.mjs';
22
+ export { DvAimsAirQualityRealTimeAndDay } from './AirQualityRealTimeAndDay/index.mjs';
@@ -93,7 +93,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
93
93
  textAlign: "center",
94
94
  fill: "rgba(0, 221, 255, 1)",
95
95
  fontSize: 24,
96
- fontFamily: "Oswald",
96
+ fontFamily: "var(--dv-font-family-number)",
97
97
  fontWeight: 500
98
98
  }
99
99
  },
@@ -106,7 +106,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
106
106
  textAlign: "center",
107
107
  fill: "rgba(255, 255, 255, 0.6)",
108
108
  fontSize: 18,
109
- fontFamily: "Oswald",
109
+ fontFamily: "var(--dv-font-family-number)",
110
110
  fontWeight: 500
111
111
  }
112
112
  },
@@ -120,7 +120,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
120
120
  textAlign: "center",
121
121
  fill: "rgba(255, 255, 255, 0.6)",
122
122
  fontSize: 18,
123
- fontFamily: "Oswald",
123
+ fontFamily: "var(--dv-font-family-number)",
124
124
  fontWeight: 500
125
125
  }
126
126
  }