@ued_fpi/data-visual 1.1.5 → 1.2.1

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 (186) hide show
  1. package/dist/es/aims/src/AirQualityCalendar/index.vue.mjs +1 -1
  2. package/dist/es/aims/src/AirQualityLevelMonthRatio/index.vue.mjs +1 -1
  3. package/dist/es/aims/src/AirQualityLevelYearRatio/index.vue.mjs +1 -1
  4. package/dist/es/aims/src/AirQualityPresentSituation/index.vue.mjs +1 -1
  5. package/dist/es/aims/src/AirQualityRealTime/index.vue.mjs +1 -1
  6. package/dist/es/aims/src/AirTimeSeriesAnalysis/index.vue.mjs +1 -1
  7. package/dist/es/aims/src/CieqContributionMonthRatio/index.vue.mjs +1 -1
  8. package/dist/es/aims/src/CieqContributionYearRatio/index.vue.mjs +1 -1
  9. package/dist/es/aims/src/FactorRealTimeRankChart/index.vue.mjs +1 -1
  10. package/dist/es/aims/src/FactorRealTimeRankList/index.vue.mjs +1 -1
  11. package/dist/es/aims/src/FactorTargetYearPeriod/api/index.d.ts +26 -0
  12. package/dist/es/aims/src/FactorTargetYearPeriod/api/index.mjs +11 -0
  13. package/dist/es/aims/src/FactorTargetYearPeriod/index.d.ts +59 -3
  14. package/dist/es/aims/src/FactorTargetYearPeriod/index.vue.d.ts +41 -1
  15. package/dist/es/aims/src/FactorTargetYearPeriod/index.vue.mjs +54 -28
  16. package/dist/es/aims/src/MainPollutionMonthRatio/index.vue.mjs +1 -1
  17. package/dist/es/aims/src/MainPollutionYearRatio/index.vue.mjs +1 -1
  18. package/dist/es/aims/src/MulGridAirQualityLevelMonthRatio/index.vue.mjs +1 -1
  19. package/dist/es/aims/src/MulGridCieqContributionMonthRatio/index.vue.mjs +1 -1
  20. package/dist/es/aims/src/TbHbAnalysis/index.vue.mjs +1 -1
  21. package/dist/es/aims/src/WeatherCondition/index.vue.mjs +1 -1
  22. package/dist/es/aims/src/common/BasicCard/index.vue.mjs +1 -1
  23. package/dist/es/aims/src/common/BasicDialog/index.vue.mjs +1 -1
  24. package/dist/es/aims/src/common/BasicPanel/index.vue.mjs +1 -1
  25. package/dist/es/bmp/src/AlgaeMonitoring/index.vue.mjs +1 -1
  26. package/dist/es/bmp/src/EarlyWarningEvent/index.vue.mjs +1 -1
  27. package/dist/es/bmp/src/EventList/index.vue.mjs +1 -1
  28. package/dist/es/bmp/src/ReportEvent/index.vue.mjs +1 -1
  29. package/dist/es/index.mjs +1 -0
  30. package/dist/es/ipes/src/AirPollutionDischarge/index.vue.mjs +1 -1
  31. package/dist/es/ipes/src/AirQuality/index.vue.mjs +1 -1
  32. package/dist/es/ipes/src/AirQualityManagement/index.vue.mjs +40 -37
  33. package/dist/es/ipes/src/AlarmManage/index.vue.mjs +1 -1
  34. package/dist/es/ipes/src/BusinessManage/index.vue.mjs +1 -1
  35. package/dist/es/ipes/src/EmergencyDuty/index.vue.mjs +5 -5
  36. package/dist/es/ipes/src/EmergencyManage/img/pie.png.mjs +3 -0
  37. package/dist/es/ipes/src/EmergencyManage/index.d.ts +128 -0
  38. package/dist/es/ipes/src/EmergencyManage/index.mjs +7 -0
  39. package/dist/es/ipes/src/EmergencyManage/index.vue.d.ts +26 -0
  40. package/dist/es/ipes/src/EmergencyManage/index.vue.mjs +160 -0
  41. package/dist/es/ipes/src/EmergencyManage/index.vue2.mjs +3 -0
  42. package/dist/es/ipes/src/EmergencyManage/index.vue3.mjs +6 -0
  43. package/dist/es/ipes/src/EmergencyResources/index.vue.mjs +1 -1
  44. package/dist/es/ipes/src/EnterpriseProtectionCode/index.vue.mjs +14 -14
  45. package/dist/es/ipes/src/EnvironmentalProtection/index.vue.mjs +1 -1
  46. package/dist/es/ipes/src/EnvironmentalRiskManagement/components/SingleItem.vue.mjs +2 -2
  47. package/dist/es/ipes/src/EnvironmentalRiskManagement/index.vue.mjs +1 -1
  48. package/dist/es/ipes/src/GasControl/components/AlarmStatistics.vue.mjs +8 -8
  49. package/dist/es/ipes/src/GasControl/components/SingleItem.vue.mjs +4 -4
  50. package/dist/es/ipes/src/GasControl/index.vue.mjs +2 -2
  51. package/dist/es/ipes/src/GeneralManagement/components/ListItem.vue.mjs +5 -5
  52. package/dist/es/ipes/src/GeneralManagement/components/Tabs.vue.mjs +2 -2
  53. package/dist/es/ipes/src/GeneralManagement/index.vue.mjs +2 -2
  54. package/dist/es/ipes/src/HazardousVehicleManage/index.vue.mjs +1 -1
  55. package/dist/es/ipes/src/Level3AirDefense/components/AppItem.vue.mjs +1 -1
  56. package/dist/es/ipes/src/Level3AirDefense/components/EmptyData.vue.mjs +2 -2
  57. package/dist/es/ipes/src/Level3AirDefense/components/NumberItem.vue.mjs +1 -1
  58. package/dist/es/ipes/src/Level3AirDefense/components/PercentageItem.vue.mjs +2 -2
  59. package/dist/es/ipes/src/Level3AirDefense/index.vue.mjs +6 -6
  60. package/dist/es/ipes/src/OdorControl/index.vue.mjs +6 -9
  61. package/dist/es/ipes/src/PollutantSourceManage/index.vue.mjs +1 -1
  62. package/dist/es/ipes/src/TaskDispose/index.vue.mjs +20 -20
  63. package/dist/es/ipes/src/VocStatistics/index.vue.mjs +6 -6
  64. package/dist/es/ipes/src/common/Echarts.vue.d.ts +0 -11
  65. package/dist/es/ipes/src/common/Echarts.vue.mjs +6 -10
  66. package/dist/es/ipes/src/common/IpesPercentBar.vue.mjs +1 -1
  67. package/dist/es/ipes/src/common/IpesProgressBar.vue.mjs +1 -1
  68. package/dist/es/ipes/src/common/LottieAnimation.vue.mjs +1 -1
  69. package/dist/es/ipes/src/index.d.ts +1 -0
  70. package/dist/es/ipes/src/index.mjs +1 -0
  71. package/dist/es/style.css +3967 -3917
  72. package/dist/es/wgms/src/ChlorophyllAchangeRate/index.vue.mjs +1 -1
  73. package/dist/es/wgms/src/DrinkingWaterComplianceRate/index.vue.mjs +5 -5
  74. package/dist/es/wgms/src/FactorTopThreeRanking/index.vue.mjs +3 -3
  75. package/dist/es/wgms/src/FactorTrendComparison/index.vue.mjs +1 -1
  76. package/dist/es/wgms/src/KeyRiverWaterQualityEvaluation/index.vue.mjs +6 -6
  77. package/dist/es/wgms/src/LakeRiverIndex/index.vue.mjs +15 -15
  78. package/dist/es/wgms/src/NPTrendChange/index.vue.mjs +1 -1
  79. package/dist/es/wgms/src/SewageOutletsOnlineMonitor/index.vue.mjs +7 -7
  80. package/dist/es/wgms/src/WaterEnvironmentOnlineMonitor/index.vue.mjs +6 -6
  81. package/dist/es/wgms/src/WaterQualityClassification/index.vue.mjs +1 -1
  82. package/dist/es/wgms/src/WaterQualityStatus/index.vue.mjs +12 -12
  83. package/dist/es/wgms/src/common/ProgressBar.vue.mjs +1 -1
  84. package/dist/es/wgms/src/common/select-panel.vue.mjs +1 -1
  85. package/dist/es/wgms/utils/tools.d.ts +13 -0
  86. package/dist/lib/aims/src/AirQualityCalendar/index.vue.js +1 -1
  87. package/dist/lib/aims/src/AirQualityLevelMonthRatio/index.vue.js +1 -1
  88. package/dist/lib/aims/src/AirQualityLevelYearRatio/index.vue.js +1 -1
  89. package/dist/lib/aims/src/AirQualityPresentSituation/index.vue.js +1 -1
  90. package/dist/lib/aims/src/AirQualityRealTime/index.vue.js +1 -1
  91. package/dist/lib/aims/src/AirTimeSeriesAnalysis/index.vue.js +1 -1
  92. package/dist/lib/aims/src/CieqContributionMonthRatio/index.vue.js +1 -1
  93. package/dist/lib/aims/src/CieqContributionYearRatio/index.vue.js +1 -1
  94. package/dist/lib/aims/src/FactorRealTimeRankChart/index.vue.js +1 -1
  95. package/dist/lib/aims/src/FactorRealTimeRankList/index.vue.js +1 -1
  96. package/dist/lib/aims/src/FactorTargetYearPeriod/api/index.d.ts +26 -0
  97. package/dist/lib/aims/src/FactorTargetYearPeriod/api/index.js +15 -0
  98. package/dist/lib/aims/src/FactorTargetYearPeriod/index.d.ts +59 -3
  99. package/dist/lib/aims/src/FactorTargetYearPeriod/index.vue.d.ts +41 -1
  100. package/dist/lib/aims/src/FactorTargetYearPeriod/index.vue.js +53 -27
  101. package/dist/lib/aims/src/MainPollutionMonthRatio/index.vue.js +1 -1
  102. package/dist/lib/aims/src/MainPollutionYearRatio/index.vue.js +1 -1
  103. package/dist/lib/aims/src/MulGridAirQualityLevelMonthRatio/index.vue.js +1 -1
  104. package/dist/lib/aims/src/MulGridCieqContributionMonthRatio/index.vue.js +1 -1
  105. package/dist/lib/aims/src/TbHbAnalysis/index.vue.js +1 -1
  106. package/dist/lib/aims/src/WeatherCondition/index.vue.js +1 -1
  107. package/dist/lib/aims/src/common/BasicCard/index.vue.js +1 -1
  108. package/dist/lib/aims/src/common/BasicDialog/index.vue.js +1 -1
  109. package/dist/lib/aims/src/common/BasicPanel/index.vue.js +1 -1
  110. package/dist/lib/bmp/src/AlgaeMonitoring/index.vue.js +1 -1
  111. package/dist/lib/bmp/src/EarlyWarningEvent/index.vue.js +1 -1
  112. package/dist/lib/bmp/src/EventList/index.vue.js +1 -1
  113. package/dist/lib/bmp/src/ReportEvent/index.vue.js +1 -1
  114. package/dist/lib/index.js +61 -59
  115. package/dist/lib/ipes/index.js +4 -4
  116. package/dist/lib/ipes/src/AirPollutionDischarge/index.vue.js +1 -1
  117. package/dist/lib/ipes/src/AirQuality/index.vue.js +1 -1
  118. package/dist/lib/ipes/src/AirQualityManagement/index.vue.js +40 -37
  119. package/dist/lib/ipes/src/AlarmManage/index.vue.js +1 -1
  120. package/dist/lib/ipes/src/BusinessManage/index.vue.js +1 -1
  121. package/dist/lib/ipes/src/EmergencyDuty/index.vue.js +5 -5
  122. package/dist/lib/ipes/src/EmergencyManage/img/pie.png.js +7 -0
  123. package/dist/lib/ipes/src/EmergencyManage/index.d.ts +128 -0
  124. package/dist/lib/ipes/src/EmergencyManage/index.js +12 -0
  125. package/dist/lib/ipes/src/EmergencyManage/index.vue.d.ts +26 -0
  126. package/dist/lib/ipes/src/EmergencyManage/index.vue.js +164 -0
  127. package/dist/lib/ipes/src/EmergencyManage/index.vue2.js +7 -0
  128. package/dist/lib/ipes/src/EmergencyManage/index.vue3.js +10 -0
  129. package/dist/lib/ipes/src/EmergencyResources/index.vue.js +1 -1
  130. package/dist/lib/ipes/src/EnterpriseProtectionCode/index.vue.js +14 -14
  131. package/dist/lib/ipes/src/EnvironmentalProtection/index.vue.js +1 -1
  132. package/dist/lib/ipes/src/EnvironmentalRiskManagement/components/SingleItem.vue.js +2 -2
  133. package/dist/lib/ipes/src/EnvironmentalRiskManagement/index.vue.js +1 -1
  134. package/dist/lib/ipes/src/GasControl/components/AlarmStatistics.vue.js +8 -8
  135. package/dist/lib/ipes/src/GasControl/components/SingleItem.vue.js +4 -4
  136. package/dist/lib/ipes/src/GasControl/index.vue.js +2 -2
  137. package/dist/lib/ipes/src/GeneralManagement/components/ListItem.vue.js +5 -5
  138. package/dist/lib/ipes/src/GeneralManagement/components/Tabs.vue.js +2 -2
  139. package/dist/lib/ipes/src/GeneralManagement/index.vue.js +2 -2
  140. package/dist/lib/ipes/src/HazardousVehicleManage/index.vue.js +1 -1
  141. package/dist/lib/ipes/src/Level3AirDefense/components/AppItem.vue.js +1 -1
  142. package/dist/lib/ipes/src/Level3AirDefense/components/EmptyData.vue.js +2 -2
  143. package/dist/lib/ipes/src/Level3AirDefense/components/NumberItem.vue.js +1 -1
  144. package/dist/lib/ipes/src/Level3AirDefense/components/PercentageItem.vue.js +2 -2
  145. package/dist/lib/ipes/src/Level3AirDefense/index.vue.js +6 -6
  146. package/dist/lib/ipes/src/OdorControl/index.vue.js +6 -9
  147. package/dist/lib/ipes/src/PollutantSourceManage/index.vue.js +1 -1
  148. package/dist/lib/ipes/src/TaskDispose/index.vue.js +20 -20
  149. package/dist/lib/ipes/src/VocStatistics/index.vue.js +6 -6
  150. package/dist/lib/ipes/src/common/Echarts.vue.d.ts +0 -11
  151. package/dist/lib/ipes/src/common/Echarts.vue.js +5 -9
  152. package/dist/lib/ipes/src/common/IpesPercentBar.vue.js +1 -1
  153. package/dist/lib/ipes/src/common/IpesProgressBar.vue.js +1 -1
  154. package/dist/lib/ipes/src/common/LottieAnimation.vue.js +1 -1
  155. package/dist/lib/ipes/src/index.d.ts +1 -0
  156. package/dist/lib/ipes/src/index.js +2 -0
  157. package/dist/lib/style.css +3967 -3917
  158. package/dist/lib/wgms/src/ChlorophyllAchangeRate/index.vue.js +1 -1
  159. package/dist/lib/wgms/src/DrinkingWaterComplianceRate/index.vue.js +5 -5
  160. package/dist/lib/wgms/src/FactorTopThreeRanking/index.vue.js +3 -3
  161. package/dist/lib/wgms/src/FactorTrendComparison/index.vue.js +1 -1
  162. package/dist/lib/wgms/src/KeyRiverWaterQualityEvaluation/index.vue.js +6 -6
  163. package/dist/lib/wgms/src/LakeRiverIndex/index.vue.js +15 -15
  164. package/dist/lib/wgms/src/NPTrendChange/index.vue.js +1 -1
  165. package/dist/lib/wgms/src/SewageOutletsOnlineMonitor/index.vue.js +7 -7
  166. package/dist/lib/wgms/src/WaterEnvironmentOnlineMonitor/index.vue.js +6 -6
  167. package/dist/lib/wgms/src/WaterQualityClassification/index.vue.js +1 -1
  168. package/dist/lib/wgms/src/WaterQualityStatus/index.vue.js +12 -12
  169. package/dist/lib/wgms/src/common/ProgressBar.vue.js +1 -1
  170. package/dist/lib/wgms/src/common/select-panel.vue.js +1 -1
  171. package/dist/lib/wgms/utils/tools.d.ts +13 -0
  172. package/dist/style/style-aims.css +1 -1
  173. package/dist/style/style-bmp.css +1 -1
  174. package/dist/style/style-ipes.css +1 -1
  175. package/dist/style/style-wgms.css +1 -1
  176. package/package.json +1 -1
  177. package/dist/es/aims/src/FactorTargetYearPeriod/data.json.mjs +0 -88
  178. package/dist/es/ipes/src/TaskDispose/components/Echarts.vue.d.ts +0 -63
  179. package/dist/es/ipes/src/TaskDispose/components/Echarts.vue.mjs +0 -87
  180. package/dist/es/ipes/src/TaskDispose/components/Echarts.vue2.mjs +0 -3
  181. package/dist/es/ipes/src/TaskDispose/components/Echarts.vue3.mjs +0 -6
  182. package/dist/lib/aims/src/FactorTargetYearPeriod/data.json.js +0 -92
  183. package/dist/lib/ipes/src/TaskDispose/components/Echarts.vue.d.ts +0 -63
  184. package/dist/lib/ipes/src/TaskDispose/components/Echarts.vue.js +0 -91
  185. package/dist/lib/ipes/src/TaskDispose/components/Echarts.vue2.js +0 -7
  186. package/dist/lib/ipes/src/TaskDispose/components/Echarts.vue3.js +0 -10
@@ -10,7 +10,7 @@ import dayjs from 'dayjs';
10
10
  import { factorToColor } from 'fpi-tg-factor-tools';
11
11
  import { getEnvFeatureCalendar } from './api/index.mjs';
12
12
 
13
- const _hoisted_1 = { class: "air-quality-calendar-container" };
13
+ const _hoisted_1 = { class: "dv-aims-air-quality-calendar-container" };
14
14
  const _hoisted_2 = { class: "flex date-time" };
15
15
  const _hoisted_3 = { class: "flex img-left" };
16
16
  const _hoisted_4 = /* @__PURE__ */ createElementVNode("img", { src: _imports_0 }, null, -1);
@@ -6,7 +6,7 @@ import { getAirQualityStatis } from './api/index.mjs';
6
6
  import _sfc_main$1 from '../common/BasicEcharts/index.vue.mjs';
7
7
  import '../common/BasicEcharts/index.vue2.mjs';
8
8
 
9
- const clsfix = "cieq-contributio-ratio";
9
+ const clsfix = "dv-aims-cieq-contributio-ratio";
10
10
  const noDataColor = "rgb(255, 255, 255, 0.5)";
11
11
  const _sfc_main = /* @__PURE__ */ defineComponent({
12
12
  __name: "index",
@@ -6,7 +6,7 @@ import { getAirQualityStatis } from './api/index.mjs';
6
6
  import _sfc_main$1 from '../common/BasicEcharts/index.vue.mjs';
7
7
  import '../common/BasicEcharts/index.vue2.mjs';
8
8
 
9
- const clsfix = "cieq-contributio-ratio";
9
+ const clsfix = "dv-aims-cieq-contributio-ratio";
10
10
  const noDataColor = "rgb(255, 255, 255, 0.5)";
11
11
  const _sfc_main = /* @__PURE__ */ defineComponent({
12
12
  __name: "index",
@@ -6,7 +6,7 @@ import { getCityDetail } from './api/index.mjs';
6
6
  const _hoisted_1 = /* @__PURE__ */ createElementVNode("span", null, "综合指数", -1);
7
7
  const _hoisted_2 = /* @__PURE__ */ createElementVNode("span", { class: "text" }, "主要污染物", -1);
8
8
  const _hoisted_3 = { class: "name" };
9
- const clsfix = "air-quality-realtime";
9
+ const clsfix = "dv-aims-air-quality-realtime";
10
10
  const noDataColor = "rgb(255, 255, 255, 0.5)";
11
11
  const _sfc_main = /* @__PURE__ */ defineComponent({
12
12
  __name: "index",
@@ -7,7 +7,7 @@ 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
9
  const _hoisted_4 = { class: "name" };
10
- const clsfix = "air-quality-realtime";
10
+ const clsfix = "dv-aims-air-quality-realtime";
11
11
  const noDataColor = "rgb(255, 255, 255, 0.5)";
12
12
  const _sfc_main = /* @__PURE__ */ defineComponent({
13
13
  __name: "index",
@@ -5,7 +5,7 @@ import { getTimeAnalyzeData } from './api/index.mjs';
5
5
  import _sfc_main$1 from '../common/BasicEcharts/index.vue.mjs';
6
6
  import '../common/BasicEcharts/index.vue2.mjs';
7
7
 
8
- const clsfix = "air-time-series-analysis";
8
+ const clsfix = "dv-aims-air-time-series-analysis";
9
9
  const _sfc_main = /* @__PURE__ */ defineComponent({
10
10
  __name: "index",
11
11
  props: {
@@ -6,7 +6,7 @@ import { getAirQualityStatis } from './api/index.mjs';
6
6
  import _sfc_main$1 from '../common/BasicEcharts/index.vue.mjs';
7
7
  import '../common/BasicEcharts/index.vue2.mjs';
8
8
 
9
- const clsfix = "cieq-contributio-ratio";
9
+ const clsfix = "dv-aims-cieq-contributio-ratio";
10
10
  const _sfc_main = /* @__PURE__ */ defineComponent({
11
11
  __name: "index",
12
12
  props: {
@@ -6,7 +6,7 @@ import { getAirQualityStatis } from './api/index.mjs';
6
6
  import _sfc_main$1 from '../common/BasicEcharts/index.vue.mjs';
7
7
  import '../common/BasicEcharts/index.vue2.mjs';
8
8
 
9
- const clsfix = "cieq-contributio-ratio";
9
+ const clsfix = "dv-aims-cieq-contributio-ratio";
10
10
  const _sfc_main = /* @__PURE__ */ defineComponent({
11
11
  __name: "index",
12
12
  props: {
@@ -7,7 +7,7 @@ import { getSiteRank } from './api/index.mjs';
7
7
  import _sfc_main$1 from '../common/BasicEcharts/index.vue.mjs';
8
8
  import '../common/BasicEcharts/index.vue2.mjs';
9
9
 
10
- const clsfix = "factor-realtime-rank-chart";
10
+ const clsfix = "dv-aims-factor-realtime-rank-chart";
11
11
  const _sfc_main = /* @__PURE__ */ defineComponent({
12
12
  __name: "index",
13
13
  props: {
@@ -9,7 +9,7 @@ const _hoisted_2 = { class: "rank" };
9
9
  const _hoisted_3 = { class: "progress-box" };
10
10
  const _hoisted_4 = { class: "name" };
11
11
  const _hoisted_5 = { class: "bar" };
12
- const clsfix = "factor-realtime-rank-list";
12
+ const clsfix = "dv-aims-factor-realtime-rank-list";
13
13
  const _sfc_main = /* @__PURE__ */ defineComponent({
14
14
  __name: "index",
15
15
  props: {
@@ -0,0 +1,26 @@
1
+ interface GetEnvironmentStatusV2Params {
2
+ time?: number;
3
+ gridCode?: string;
4
+ type?: 'county';
5
+ timeType?: 'year' | 'quarter' | 'month' | 'week';
6
+ }
7
+ interface ResData {
8
+ entries: {
9
+ itemName: string;
10
+ itemCode: string;
11
+ factorCode: string;
12
+ samePeriodValue: number;
13
+ thisPeriodValue: number;
14
+ changeRate: number;
15
+ revert: boolean;
16
+ changeCompare: null;
17
+ targetValue: null;
18
+ unit: string;
19
+ }[];
20
+ }
21
+ export declare const getEnvironmentStatusV2: (params: GetEnvironmentStatusV2Params) => Promise<{
22
+ code: number;
23
+ data: ResData | null;
24
+ message: string;
25
+ }>;
26
+ export type { GetEnvironmentStatusV2Params };
@@ -0,0 +1,11 @@
1
+ import requestControl from '../../../service/request.mjs';
2
+
3
+ const getEnvironmentStatusV2 = (params) => {
4
+ return requestControl({
5
+ url: "/aims-server/web/api/v1/env-quality/environment-status-v2",
6
+ method: "get",
7
+ params
8
+ });
9
+ };
10
+
11
+ export { getEnvironmentStatusV2 };
@@ -4,6 +4,8 @@ export declare const DvAimsFactorTargetYearPeriod: {
4
4
  $: import("vue").ComponentInternalInstance;
5
5
  $data: {};
6
6
  $props: {
7
+ isUseBuiltInApi?: boolean | undefined;
8
+ apiParams?: import("./api").GetEnvironmentStatusV2Params | undefined;
7
9
  key?: string | number | symbol | undefined;
8
10
  style?: unknown;
9
11
  ref?: import("vue").VNodeRef | undefined;
@@ -62,7 +64,26 @@ export declare const DvAimsFactorTargetYearPeriod: {
62
64
  $parent: globalThis.ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
63
65
  $emit: (event: string, ...args: any[]) => void;
64
66
  $el: any;
65
- $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}> & {
67
+ $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
68
+ isUseBuiltInApi: {
69
+ type: globalThis.PropType<boolean>;
70
+ } & {
71
+ default: boolean;
72
+ };
73
+ apiParams: {
74
+ type: globalThis.PropType<import("./api").GetEnvironmentStatusV2Params>;
75
+ } & {
76
+ default: () => {
77
+ time: number;
78
+ gridCode: string;
79
+ timeType: string;
80
+ type: string;
81
+ };
82
+ };
83
+ }>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
84
+ isUseBuiltInApi: boolean;
85
+ apiParams: import("./api").GetEnvironmentStatusV2Params;
86
+ }, {}, string, {}> & {
66
87
  beforeCreate?: ((() => void) | (() => void)[]) | undefined;
67
88
  created?: ((() => void) | (() => void)[]) | undefined;
68
89
  beforeMount?: ((() => void) | (() => void)[]) | undefined;
@@ -82,9 +103,44 @@ export declare const DvAimsFactorTargetYearPeriod: {
82
103
  $forceUpdate: () => void;
83
104
  $nextTick: typeof import("vue").nextTick;
84
105
  $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;
85
- } & Readonly<import("vue").ExtractPropTypes<{}>> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {};
106
+ } & Readonly<import("vue").ExtractPropTypes<{
107
+ isUseBuiltInApi: {
108
+ type: globalThis.PropType<boolean>;
109
+ } & {
110
+ default: boolean;
111
+ };
112
+ apiParams: {
113
+ type: globalThis.PropType<import("./api").GetEnvironmentStatusV2Params>;
114
+ } & {
115
+ default: () => {
116
+ time: number;
117
+ gridCode: string;
118
+ timeType: string;
119
+ type: string;
120
+ };
121
+ };
122
+ }>> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {};
86
123
  __isFragment?: undefined;
87
124
  __isTeleport?: undefined;
88
125
  __isSuspense?: undefined;
89
- } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("vue").Plugin<any[]>;
126
+ } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
127
+ isUseBuiltInApi: {
128
+ type: globalThis.PropType<boolean>;
129
+ } & {
130
+ default: boolean;
131
+ };
132
+ apiParams: {
133
+ type: globalThis.PropType<import("./api").GetEnvironmentStatusV2Params>;
134
+ } & {
135
+ default: () => {
136
+ time: number;
137
+ gridCode: string;
138
+ timeType: string;
139
+ type: string;
140
+ };
141
+ };
142
+ }>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
143
+ isUseBuiltInApi: boolean;
144
+ apiParams: import("./api").GetEnvironmentStatusV2Params;
145
+ }, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("vue").Plugin<any[]>;
90
146
  export default _FactorTargetYearPeriod;
@@ -1,2 +1,42 @@
1
- declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
1
+ import { type GetEnvironmentStatusV2Params } from './api';
2
+ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
3
+ isUseBuiltInApi?: boolean | undefined;
4
+ apiParams?: GetEnvironmentStatusV2Params | undefined;
5
+ }>, {
6
+ isUseBuiltInApi: boolean;
7
+ apiParams: () => {
8
+ time: number;
9
+ gridCode: string;
10
+ timeType: string;
11
+ type: string;
12
+ };
13
+ }>, {}, 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<{
14
+ isUseBuiltInApi?: boolean | undefined;
15
+ apiParams?: GetEnvironmentStatusV2Params | undefined;
16
+ }>, {
17
+ isUseBuiltInApi: boolean;
18
+ apiParams: () => {
19
+ time: number;
20
+ gridCode: string;
21
+ timeType: string;
22
+ type: string;
23
+ };
24
+ }>>>, {
25
+ isUseBuiltInApi: boolean;
26
+ apiParams: GetEnvironmentStatusV2Params;
27
+ }, {}>;
2
28
  export default _default;
29
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
30
+ type __VLS_TypePropsToRuntimeProps<T> = {
31
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
32
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
33
+ } : {
34
+ type: import('vue').PropType<T[K]>;
35
+ required: true;
36
+ };
37
+ };
38
+ type __VLS_WithDefaults<P, D> = {
39
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
40
+ default: D[K];
41
+ } : P[K];
42
+ };
@@ -1,10 +1,11 @@
1
1
  import __vite_glob_1_0 from './images/flat.png.mjs';
2
2
  import __vite_glob_1_1 from './images/green_down.png.mjs';
3
3
  import __vite_glob_1_2 from './images/red_up.png.mjs';
4
- import { defineComponent, ref, onMounted, openBlock, createElementBlock, normalizeClass, createVNode, unref, withCtx, createElementVNode, normalizeStyle, Fragment, renderList, toDisplayString, createCommentVNode, nextTick } from 'vue';
4
+ import { defineComponent, ref, onMounted, watch, openBlock, createElementBlock, normalizeClass, createVNode, unref, withCtx, createElementVNode, normalizeStyle, Fragment, renderList, toDisplayString, createCommentVNode, nextTick } from 'vue';
5
5
  import { FpiElRolling } from '@ued_fpi/element-plus-expand';
6
6
  import { factorToColor } from 'fpi-tg-factor-tools';
7
- import json from './data.json.mjs';
7
+ import dayjs from 'dayjs';
8
+ import { getEnvironmentStatusV2 } from './api/index.mjs';
8
9
 
9
10
  const _hoisted_1 = { class: "factorName" };
10
11
  const _hoisted_2 = { class: "factorValue" };
@@ -19,42 +20,65 @@ const _hoisted_7 = /* @__PURE__ */ createElementVNode("span", { class: "unit" },
19
20
  const _hoisted_8 = { class: "period" };
20
21
  const _hoisted_9 = /* @__PURE__ */ createElementVNode("span", { class: "name" }, "同比", -1);
21
22
  const _hoisted_10 = ["src"];
22
- const clsfix = "fpi-aims-factor-target-year-period";
23
+ const clsfix = "dv-aims-factor-target-year-period";
23
24
  const _sfc_main = /* @__PURE__ */ defineComponent({
24
25
  __name: "index",
26
+ props: {
27
+ isUseBuiltInApi: { type: Boolean, default: true },
28
+ apiParams: { default: () => ({
29
+ time: dayjs().subtract(1, "h").valueOf(),
30
+ gridCode: "0101010000",
31
+ timeType: "year",
32
+ type: "county"
33
+ }) }
34
+ },
25
35
  setup(__props) {
36
+ const props = __props;
26
37
  const cardWidth = ref(400);
27
38
  const listWidth = ref(0);
28
39
  const itemWidth = ref(0);
29
40
  const factorList = ref([]);
30
- const getData = async () => {
31
- const data = json;
32
- factorList.value = data.map((item) => {
33
- const obj = {
34
- factorName: item.itemName,
35
- factorCode: item.factorCode,
36
- value: item.thisPeriodValue,
37
- target: item.targetValue,
38
- ratio: item.changeRate,
39
- unit: item.unit
40
- };
41
- if (item.factorCode === "fineRate") {
42
- obj.ratioColor = obj.ratio > 0 ? "#15F3A3" : obj.ratio < 0 ? "#F84439" : "#00DEFF";
43
- obj.arrowUrl = new URL((/* #__PURE__ */ Object.assign({"./images/flat.png": __vite_glob_1_0,"./images/green_down.png": __vite_glob_1_1,"./images/red_up.png": __vite_glob_1_2}))[`./images/${obj.ratio > 0 ? "green_down" : obj.ratio < 0 ? "red_up" : "flat"}.png`], self.location);
44
- } else {
45
- obj.color = factorToColor(item.factorCode, obj.value, "hour");
46
- obj.ratioColor = obj.ratio > 0 ? "#F84439" : obj.ratio < 0 ? "#15F3A3" : "#00DEFF";
47
- obj.arrowUrl = new URL((/* #__PURE__ */ Object.assign({"./images/flat.png": __vite_glob_1_0,"./images/green_down.png": __vite_glob_1_1,"./images/red_up.png": __vite_glob_1_2}))[`./images/${obj.ratio > 0 ? "red_up" : obj.ratio < 0 ? "green_down" : "flat"}.png`], self.location);
41
+ const fetchData = async () => {
42
+ getEnvironmentStatusV2(props.apiParams).then((res) => {
43
+ if (res.data && res.data.entries) {
44
+ const data = res.data.entries;
45
+ factorList.value = data.map((item) => {
46
+ const obj = {
47
+ factorName: item.itemName,
48
+ factorCode: item.factorCode,
49
+ value: item.thisPeriodValue,
50
+ target: item.targetValue,
51
+ ratio: item.changeRate,
52
+ unit: item.unit
53
+ };
54
+ if (item.factorCode === "fineRate") {
55
+ obj.ratioColor = obj.ratio > 0 ? "#15F3A3" : obj.ratio < 0 ? "#F84439" : "#00DEFF";
56
+ obj.arrowUrl = new URL((/* #__PURE__ */ Object.assign({"./images/flat.png": __vite_glob_1_0,"./images/green_down.png": __vite_glob_1_1,"./images/red_up.png": __vite_glob_1_2}))[`./images/${obj.ratio > 0 ? "green_down" : obj.ratio < 0 ? "red_up" : "flat"}.png`], self.location);
57
+ } else {
58
+ obj.color = factorToColor(
59
+ item.factorCode,
60
+ obj.value,
61
+ "hour"
62
+ );
63
+ obj.ratioColor = obj.ratio > 0 ? "#F84439" : obj.ratio < 0 ? "#15F3A3" : "#00DEFF";
64
+ obj.arrowUrl = new URL((/* #__PURE__ */ Object.assign({"./images/flat.png": __vite_glob_1_0,"./images/green_down.png": __vite_glob_1_1,"./images/red_up.png": __vite_glob_1_2}))[`./images/${obj.ratio > 0 ? "red_up" : obj.ratio < 0 ? "green_down" : "flat"}.png`], self.location);
65
+ }
66
+ return obj;
67
+ });
68
+ nextTick(() => {
69
+ itemWidth.value = (cardWidth.value - 12 * 2) / 4;
70
+ listWidth.value = itemWidth.value * factorList.value.length;
71
+ });
48
72
  }
49
- return obj;
50
- });
51
- nextTick(() => {
52
- itemWidth.value = (cardWidth.value - 12 * 2) / 4;
53
- listWidth.value = itemWidth.value * factorList.value.length;
54
73
  });
55
74
  };
56
75
  onMounted(() => {
57
- getData();
76
+ if (props.isUseBuiltInApi)
77
+ fetchData();
78
+ });
79
+ watch([() => props.apiParams], () => {
80
+ if (props.isUseBuiltInApi)
81
+ fetchData();
58
82
  });
59
83
  return (_ctx, _cache) => {
60
84
  return openBlock(), createElementBlock("div", {
@@ -98,7 +122,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
98
122
  }, toDisplayString(Math.abs(item.ratio)) + "%", 5),
99
123
  createElementVNode("img", {
100
124
  src: item.arrowUrl,
101
- style: normalizeStyle({ transform: item.factorCode === "fineRate" ? "rotate(180deg)" : "none" })
125
+ style: normalizeStyle({
126
+ transform: item.factorCode === "fineRate" ? "rotate(180deg)" : "none"
127
+ })
102
128
  }, null, 12, _hoisted_10)
103
129
  ])
104
130
  ], 4);
@@ -6,7 +6,7 @@ import { getAirQualityStatis } from './api/index.mjs';
6
6
  import _sfc_main$1 from '../common/BasicEcharts/index.vue.mjs';
7
7
  import '../common/BasicEcharts/index.vue2.mjs';
8
8
 
9
- const clsfix = "main-pollution-year-ratio";
9
+ const clsfix = "dv-aims-main-pollution-year-ratio";
10
10
  const _sfc_main = /* @__PURE__ */ defineComponent({
11
11
  __name: "index",
12
12
  props: {
@@ -6,7 +6,7 @@ import { getAirQualityStatis } from './api/index.mjs';
6
6
  import _sfc_main$1 from '../common/BasicEcharts/index.vue.mjs';
7
7
  import '../common/BasicEcharts/index.vue2.mjs';
8
8
 
9
- const clsfix = "main-pollution-year-ratio";
9
+ const clsfix = "dv-aims-main-pollution-year-ratio";
10
10
  const _sfc_main = /* @__PURE__ */ defineComponent({
11
11
  __name: "index",
12
12
  props: {
@@ -6,7 +6,7 @@ import { getMulAirLevelRate } from './api/index.mjs';
6
6
  import _sfc_main$1 from '../common/BasicEcharts/index.vue.mjs';
7
7
  import '../common/BasicEcharts/index.vue2.mjs';
8
8
 
9
- const clsfix = "cieq-contributio-ratio";
9
+ const clsfix = "dv-aims-mul-grid-air-quality-level-month-ratio";
10
10
  const noDataColor = "rgb(255, 255, 255, 0.5)";
11
11
  const _sfc_main = /* @__PURE__ */ defineComponent({
12
12
  __name: "index",
@@ -6,7 +6,7 @@ import { getCieqRate } from './api/index.mjs';
6
6
  import _sfc_main$1 from '../common/BasicEcharts/index.vue.mjs';
7
7
  import '../common/BasicEcharts/index.vue2.mjs';
8
8
 
9
- const clsfix = "cieq-contributio-ratio";
9
+ const clsfix = "dv-aims-mul-grid-cieq-contribution-month-ratio";
10
10
  const _sfc_main = /* @__PURE__ */ defineComponent({
11
11
  __name: "index",
12
12
  props: {
@@ -12,7 +12,7 @@ const upSvg = `<i style='width: 14px;font-size: 14px;display: inline-block;'>
12
12
  const downSvg = `<i style='width: 14px;font-size: 14px;display: inline-block;'>
13
13
  <svg viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" data-v-ea893728=""><path fill="green" d="M544 805.888V168a32 32 0 1 0-64 0v637.888L246.656 557.952a30.72 30.72 0 0 0-45.312 0 35.52 35.52 0 0 0 0 48.064l288 306.048a30.72 30.72 0 0 0 45.312 0l288-306.048a35.52 35.52 0 0 0 0-48 30.72 30.72 0 0 0-45.312 0L544 805.824z"></path></svg>
14
14
  </i>`;
15
- const clsfix = "air-time-series-analysis";
15
+ const clsfix = "dv-aims-tb-hb-analysis";
16
16
  const _sfc_main = /* @__PURE__ */ defineComponent({
17
17
  __name: "index",
18
18
  props: {
@@ -12,7 +12,7 @@ const _hoisted_1 = { class: "condition" };
12
12
  const _hoisted_2 = ["src"];
13
13
  const _hoisted_3 = { class: "condition-value" };
14
14
  const _hoisted_4 = { class: "unit" };
15
- const className = "fpi-weather-condition";
15
+ const className = "dv-aims-weather-condition";
16
16
  const _sfc_main = /* @__PURE__ */ defineComponent({
17
17
  __name: "index",
18
18
  props: {
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, toDisplayString, renderSlot } from 'vue';
2
2
 
3
- const clsfix = "fpi-basic-card";
3
+ const clsfix = "dv-aims-basic-card";
4
4
  const _sfc_main = /* @__PURE__ */ defineComponent({
5
5
  __name: "index",
6
6
  props: {
@@ -11,7 +11,7 @@ const _hoisted_1 = /* @__PURE__ */ createElementVNode("g", null, [
11
11
  const _hoisted_2 = [
12
12
  _hoisted_1
13
13
  ];
14
- const clsfix = "fpi-basic-dialog";
14
+ const clsfix = "dv-aims-basic-dialog";
15
15
  const _sfc_main = /* @__PURE__ */ defineComponent({
16
16
  __name: "index",
17
17
  props: {
@@ -3,7 +3,7 @@ import 'element-plus/es/components/base/style/css';
3
3
  import 'element-plus/es/components/scrollbar/style/css';
4
4
  import { defineComponent, openBlock, createElementBlock, normalizeStyle, normalizeClass, createVNode, withCtx, createElementVNode, renderSlot } from 'vue';
5
5
 
6
- const clsfix = "fpi-basic-panel";
6
+ const clsfix = "dv-aims-basic-panel";
7
7
  const _sfc_main = /* @__PURE__ */ defineComponent({
8
8
  __name: "index",
9
9
  props: {
@@ -5,7 +5,7 @@ import dayjs from 'dayjs';
5
5
  import * as echarts from 'echarts';
6
6
  import { getAlgaeMonitoringWarning } from './api/index.mjs';
7
7
 
8
- const _hoisted_1 = { class: "algae-monitoring-box" };
8
+ const _hoisted_1 = { class: "dv-bmp-algae-monitoring-box" };
9
9
  const _hoisted_2 = { class: "algae-monitoring-echarts" };
10
10
  const _hoisted_3 = /* @__PURE__ */ createElementVNode("div", { class: "abso-pie" }, null, -1);
11
11
  const _hoisted_4 = { class: "algae-monitoring-items" };
@@ -130,7 +130,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
130
130
  };
131
131
  return (_ctx, _cache) => {
132
132
  return openBlock(), createElementBlock("div", {
133
- class: "tab-item",
133
+ class: "dv-bmp-tab-item",
134
134
  style: normalizeStyle({ height: `${__props.height}px`, width: `${__props.width}px` })
135
135
  }, [
136
136
  createElementVNode("div", _hoisted_1, toDisplayString(__props.title), 1),
@@ -4,7 +4,7 @@ import 'element-plus/es/components/scrollbar/style/css';
4
4
  import { defineComponent, ref, onMounted, openBlock, createElementBlock, createElementVNode, Fragment, renderList, normalizeClass, normalizeStyle, toDisplayString, createVNode, withCtx } from 'vue';
5
5
  import { queryEventDataByTimePoint } from './api/index.mjs';
6
6
 
7
- const _hoisted_1 = { class: "event-list" };
7
+ const _hoisted_1 = { class: "dv-bmp-event-list" };
8
8
  const _hoisted_2 = { class: "custom-table" };
9
9
  const _hoisted_3 = { class: "custom-table-header" };
10
10
  const _hoisted_4 = /* @__PURE__ */ createElementVNode("div", {
@@ -133,7 +133,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
133
133
  };
134
134
  return (_ctx, _cache) => {
135
135
  return openBlock(), createElementBlock("div", {
136
- class: "tab-item",
136
+ class: "dv-bmp-tab-item",
137
137
  style: normalizeStyle({ height: `${__props.height}px`, width: `${__props.width}px` })
138
138
  }, [
139
139
  createElementVNode("div", _hoisted_1, toDisplayString(__props.title), 1),
package/dist/es/index.mjs CHANGED
@@ -49,6 +49,7 @@ export { DvIpesEnvironmentalProtection } from './ipes/src/EnvironmentalProtectio
49
49
  export { DvIpesGasControl } from './ipes/src/GasControl/index.mjs';
50
50
  export { DvIpesStreetLightingManagement } from './ipes/src/StreetLightingManagement/index.mjs';
51
51
  export { DvIpesEmergencyResources } from './ipes/src/EmergencyResources/index.mjs';
52
+ export { DvIpesEmergencyManage } from './ipes/src/EmergencyManage/index.mjs';
52
53
  export { DvWgmsEnvironmentalAnalysis } from './wgms/src/EnvironmentalAnalysis/index.mjs';
53
54
  export { DvWgmsWaterQualityClassification } from './wgms/src/WaterQualityClassification/index.mjs';
54
55
  export { DvWgmsWaterQualityStatus } from './wgms/src/WaterQualityStatus/index.mjs';
@@ -7,7 +7,7 @@ import _imports_1 from './images/blue_1.svg.mjs';
7
7
  import requestControl from '../../service/request.mjs';
8
8
  import noDataImg from './images/new-nodata.svg.mjs';
9
9
 
10
- const _hoisted_1 = { class: "air-pollution" };
10
+ const _hoisted_1 = { class: "dv-ipes-air-pollution" };
11
11
  const _hoisted_2 = { class: "enterprise-statistics" };
12
12
  const _hoisted_3 = { class: "statistics-charts" };
13
13
  const _hoisted_4 = /* @__PURE__ */ createElementVNode("img", {
@@ -5,7 +5,7 @@ import { defineComponent, ref, onMounted, openBlock, createElementBlock, createE
5
5
  import _sfc_main$1 from '../common/LottieAnimation.vue.mjs';
6
6
  import requestControl from '../../service/request.mjs';
7
7
 
8
- const _hoisted_1 = { class: "air-quality" };
8
+ const _hoisted_1 = { class: "dv-ipes-air-quality" };
9
9
  const _hoisted_2 = { class: "real-time-air" };
10
10
  const _hoisted_3 = { class: "real-time-air-up" };
11
11
  const _hoisted_4 = /* @__PURE__ */ createElementVNode("span", { class: "real-title" }, "实时空气质量", -1);