@ued_fpi/data-visual 1.2.10 → 1.2.12

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 (93) hide show
  1. package/dist/es/aims/src/AirQualityCalendar/index.vue.mjs +70 -52
  2. package/dist/es/aims/src/AirQualityLevelMonthRatio/index.vue.mjs +13 -10
  3. package/dist/es/aims/src/AirQualityLevelYearRatio/index.vue.mjs +3 -3
  4. package/dist/es/aims/src/AirQualityPresentSituation/index.vue.mjs +3 -3
  5. package/dist/es/aims/src/AirQualityRealTimeAndDay/index.vue.mjs +1 -1
  6. package/dist/es/aims/src/AirTimeSeriesAnalysis/index.vue.mjs +10 -10
  7. package/dist/es/aims/src/CieqContributionMonthRatio/index.vue.mjs +18 -17
  8. package/dist/es/aims/src/CieqContributionYearRatio/index.vue.mjs +15 -12
  9. package/dist/es/aims/src/FactorRealTimeRankChart/index.vue.mjs +34 -8
  10. package/dist/es/aims/src/FactorRealTimeRankList/index.vue.mjs +19 -9
  11. package/dist/es/aims/src/MainPollutionMonthRatio/index.vue.mjs +5 -5
  12. package/dist/es/aims/src/MainPollutionYearRatio/index.vue.mjs +2 -2
  13. package/dist/es/aims/src/MainPollutionYearRatioList/api/index.d.ts +123 -0
  14. package/dist/es/aims/src/MainPollutionYearRatioList/api/index.mjs +11 -0
  15. package/dist/es/aims/src/MainPollutionYearRatioList/index.d.ts +125 -0
  16. package/dist/es/aims/src/MainPollutionYearRatioList/index.mjs +7 -0
  17. package/dist/es/aims/src/MainPollutionYearRatioList/index.vue.d.ts +35 -0
  18. package/dist/es/aims/src/MainPollutionYearRatioList/index.vue.mjs +98 -0
  19. package/dist/es/aims/src/MainPollutionYearRatioList/index.vue2.mjs +3 -0
  20. package/dist/es/aims/src/MainPollutionYearRatioList/index.vue3.mjs +6 -0
  21. package/dist/es/aims/src/MulGridAirQualityLevelMonthRatio/index.vue.mjs +13 -10
  22. package/dist/es/aims/src/MulGridCieqContributionMonthRatio/index.vue.mjs +22 -18
  23. package/dist/es/aims/src/TbHbAnalysis/index.vue.mjs +11 -9
  24. package/dist/es/aims/src/WeatherCondition/images/white_humidity.svg.mjs +3 -0
  25. package/dist/es/aims/src/WeatherCondition/images/white_precipitation.svg.mjs +3 -0
  26. package/dist/es/aims/src/WeatherCondition/images/white_pressure.svg.mjs +3 -0
  27. package/dist/es/aims/src/WeatherCondition/images/white_temperature.svg.mjs +3 -0
  28. package/dist/es/aims/src/WeatherCondition/images/white_wind_direction.svg.mjs +3 -0
  29. package/dist/es/aims/src/WeatherCondition/images/white_wind_speed.svg.mjs +3 -0
  30. package/dist/es/aims/src/WeatherCondition/index.vue.mjs +24 -9
  31. package/dist/es/aims/src/common/BasicNoData/index.d.ts +90 -0
  32. package/dist/es/aims/src/common/BasicNoData/index.mjs +6 -0
  33. package/dist/es/aims/src/common/BasicNoData/index.vue.d.ts +2 -0
  34. package/dist/es/aims/src/common/BasicNoData/index.vue.mjs +14 -0
  35. package/dist/es/aims/src/common/BasicNoData/index.vue2.mjs +3 -0
  36. package/dist/es/aims/src/index.d.ts +2 -0
  37. package/dist/es/aims/src/index.mjs +2 -0
  38. package/dist/es/aims/utils/tools.d.ts +4 -0
  39. package/dist/es/aims/utils/tools.mjs +25 -1
  40. package/dist/es/index.mjs +2 -0
  41. package/dist/es/style.css +1 -1
  42. package/dist/lib/aims/index.js +4 -4
  43. package/dist/lib/aims/src/AirQualityCalendar/index.vue.js +70 -52
  44. package/dist/lib/aims/src/AirQualityLevelMonthRatio/index.vue.js +14 -11
  45. package/dist/lib/aims/src/AirQualityLevelYearRatio/index.vue.js +3 -3
  46. package/dist/lib/aims/src/AirQualityPresentSituation/index.vue.js +3 -3
  47. package/dist/lib/aims/src/AirQualityRealTimeAndDay/index.vue.js +1 -1
  48. package/dist/lib/aims/src/AirTimeSeriesAnalysis/index.vue.js +10 -10
  49. package/dist/lib/aims/src/CieqContributionMonthRatio/index.vue.js +18 -17
  50. package/dist/lib/aims/src/CieqContributionYearRatio/index.vue.js +15 -12
  51. package/dist/lib/aims/src/FactorRealTimeRankChart/index.vue.js +32 -6
  52. package/dist/lib/aims/src/FactorRealTimeRankList/index.vue.js +20 -10
  53. package/dist/lib/aims/src/MainPollutionMonthRatio/index.vue.js +5 -5
  54. package/dist/lib/aims/src/MainPollutionYearRatio/index.vue.js +2 -2
  55. package/dist/lib/aims/src/MainPollutionYearRatioList/api/index.d.ts +123 -0
  56. package/dist/lib/aims/src/MainPollutionYearRatioList/api/index.js +15 -0
  57. package/dist/lib/aims/src/MainPollutionYearRatioList/index.d.ts +125 -0
  58. package/dist/lib/aims/src/MainPollutionYearRatioList/index.js +12 -0
  59. package/dist/lib/aims/src/MainPollutionYearRatioList/index.vue.d.ts +35 -0
  60. package/dist/lib/aims/src/MainPollutionYearRatioList/index.vue.js +102 -0
  61. package/dist/lib/aims/src/MainPollutionYearRatioList/index.vue2.js +7 -0
  62. package/dist/lib/aims/src/MainPollutionYearRatioList/index.vue3.js +10 -0
  63. package/dist/lib/aims/src/MulGridAirQualityLevelMonthRatio/index.vue.js +14 -11
  64. package/dist/lib/aims/src/MulGridCieqContributionMonthRatio/index.vue.js +23 -19
  65. package/dist/lib/aims/src/TbHbAnalysis/index.vue.js +11 -9
  66. package/dist/lib/aims/src/WeatherCondition/images/white_humidity.svg.js +7 -0
  67. package/dist/lib/aims/src/WeatherCondition/images/white_precipitation.svg.js +7 -0
  68. package/dist/lib/aims/src/WeatherCondition/images/white_pressure.svg.js +7 -0
  69. package/dist/lib/aims/src/WeatherCondition/images/white_temperature.svg.js +7 -0
  70. package/dist/lib/aims/src/WeatherCondition/images/white_wind_direction.svg.js +7 -0
  71. package/dist/lib/aims/src/WeatherCondition/images/white_wind_speed.svg.js +7 -0
  72. package/dist/lib/aims/src/WeatherCondition/index.vue.js +23 -8
  73. package/dist/lib/aims/src/common/BasicNoData/index.d.ts +90 -0
  74. package/dist/lib/aims/src/common/BasicNoData/index.js +11 -0
  75. package/dist/lib/aims/src/common/BasicNoData/index.vue.d.ts +2 -0
  76. package/dist/lib/aims/src/common/BasicNoData/index.vue.js +18 -0
  77. package/dist/lib/aims/src/common/BasicNoData/index.vue2.js +7 -0
  78. package/dist/lib/aims/src/index.d.ts +2 -0
  79. package/dist/lib/aims/src/index.js +40 -36
  80. package/dist/lib/aims/utils/tools.d.ts +4 -0
  81. package/dist/lib/aims/utils/tools.js +25 -0
  82. package/dist/lib/index.js +154 -150
  83. package/dist/lib/style.css +1 -1
  84. package/dist/style/style-aims.css +1 -1
  85. package/package.json +2 -2
  86. package/dist/es/aims/src/AirQualityCalendar/images/left-arrow-double.png.mjs +0 -3
  87. package/dist/es/aims/src/AirQualityCalendar/images/left-arrow.png.mjs +0 -3
  88. package/dist/es/aims/src/AirQualityCalendar/images/right-arrow-double.png.mjs +0 -3
  89. package/dist/es/aims/src/AirQualityCalendar/images/right-arrow.png.mjs +0 -3
  90. package/dist/lib/aims/src/AirQualityCalendar/images/left-arrow-double.png.js +0 -7
  91. package/dist/lib/aims/src/AirQualityCalendar/images/left-arrow.png.js +0 -7
  92. package/dist/lib/aims/src/AirQualityCalendar/images/right-arrow-double.png.js +0 -7
  93. package/dist/lib/aims/src/AirQualityCalendar/images/right-arrow.png.js +0 -7
@@ -1,13 +1,15 @@
1
- import { defineComponent, ref, onMounted, watch, openBlock, createElementBlock, normalizeClass, createElementVNode, createVNode, unref } from 'vue';
1
+ import { defineComponent, ref, onMounted, watch, openBlock, createElementBlock, normalizeClass, createElementVNode, createBlock, unref } from 'vue';
2
2
  import { FACTOR_LEVEL_TEXT } from 'fpi-tg-factor-tools';
3
3
  import dayjs from 'dayjs';
4
4
  import '../common/BasicEcharts/index.mjs';
5
+ import '../common/BasicNoData/index.mjs';
5
6
  import { getMulAirLevelRate } from './api/index.mjs';
6
7
  import _sfc_main$1 from '../common/BasicEcharts/index.vue.mjs';
7
8
  import '../common/BasicEcharts/index.vue2.mjs';
9
+ import _BasicNoData from '../common/BasicNoData/index.vue.mjs';
8
10
 
9
11
  const clsfix = "dv-aims-mul-grid-air-quality-level-month-ratio";
10
- const noDataColor = "rgb(255, 255, 255, 0.5)";
12
+ const noDataColor = "var(--dv-color-text-secondary)";
11
13
  const _sfc_main = /* @__PURE__ */ defineComponent({
12
14
  __name: "index",
13
15
  props: {
@@ -78,7 +80,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
78
80
  show: false
79
81
  },
80
82
  axisLabel: {
81
- color: "#FFF",
83
+ color: "var(--dv-color-text-primary)",
82
84
  fontSize: 12,
83
85
  interval: 0
84
86
  },
@@ -88,7 +90,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
88
90
  type: "value",
89
91
  name: "%",
90
92
  nameTextStyle: {
91
- color: "rgba(255, 255, 255, 0.5)",
93
+ color: "var(--dv-color-text-secondary)",
92
94
  padding: [0, 30, 0, 0]
93
95
  },
94
96
  splitNumber: 3,
@@ -100,12 +102,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
100
102
  },
101
103
  axisLabel: {
102
104
  show: true,
103
- color: "rgba(255, 255, 255, 0.5)"
105
+ color: "var(--dv-color-text-secondary)"
104
106
  },
105
107
  splitLine: {
106
108
  show: true,
107
109
  lineStyle: {
108
- color: ["rgba(255, 255, 255, 0.3)"]
110
+ color: ["var(--dv-color-border-light)"]
109
111
  }
110
112
  }
111
113
  },
@@ -114,7 +116,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
114
116
  bottom: 0,
115
117
  itemGap: 4,
116
118
  textStyle: {
117
- color: "#FFF",
119
+ color: "var(--dv-color-text-primary)",
118
120
  fontSize: 12
119
121
  },
120
122
  itemWidth: 10,
@@ -155,7 +157,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
155
157
  ];
156
158
  const fetchData = () => {
157
159
  getMulAirLevelRate(props.apiParams).then((res) => {
158
- if (res.data && res.data) {
160
+ if (res.data && res.data.length) {
159
161
  const data = res.data;
160
162
  const xData = data.map((c) => c.name);
161
163
  const newList = list.map((c, index) => {
@@ -199,11 +201,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
199
201
  createElementVNode("div", {
200
202
  class: normalizeClass(`${clsfix}-echarts`)
201
203
  }, [
202
- createVNode(unref(_sfc_main$1), {
204
+ Boolean(chartsFullOptions.value.options) ? (openBlock(), createBlock(unref(_sfc_main$1), {
205
+ key: 0,
203
206
  height: "100%",
204
207
  "full-options": chartsFullOptions.value,
205
208
  loading: false
206
- }, null, 8, ["full-options"])
209
+ }, null, 8, ["full-options"])) : (openBlock(), createBlock(unref(_BasicNoData), { key: 1 }))
207
210
  ], 2)
208
211
  ], 2);
209
212
  };
@@ -1,10 +1,12 @@
1
- import { defineComponent, ref, onMounted, watch, openBlock, createElementBlock, normalizeClass, createElementVNode, createVNode, unref } from 'vue';
1
+ import { defineComponent, ref, onMounted, watch, openBlock, createElementBlock, normalizeClass, createElementVNode, createBlock, unref } from 'vue';
2
2
  import { BASE_FACTOR } from 'fpi-tg-factor-tools';
3
3
  import dayjs from 'dayjs';
4
4
  import '../common/BasicEcharts/index.mjs';
5
+ import '../common/BasicNoData/index.mjs';
5
6
  import { getCieqRate } from './api/index.mjs';
6
7
  import _sfc_main$1 from '../common/BasicEcharts/index.vue.mjs';
7
8
  import '../common/BasicEcharts/index.vue2.mjs';
9
+ import _BasicNoData from '../common/BasicNoData/index.vue.mjs';
8
10
 
9
11
  const clsfix = "dv-aims-mul-grid-cieq-contribution-month-ratio";
10
12
  const _sfc_main = /* @__PURE__ */ defineComponent({
@@ -22,14 +24,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
22
24
  const generateOption = (xData, series) => {
23
25
  return {
24
26
  options: {
25
- colors: [
26
- "#0062FF",
27
- "#0AAEFF",
28
- "#2AC94F",
29
- "#FF792E",
30
- "#F84439",
31
- "#FFB443"
32
- ],
33
27
  grid: {
34
28
  left: 10,
35
29
  bottom: 30,
@@ -69,7 +63,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
69
63
  show: false
70
64
  },
71
65
  axisLabel: {
72
- color: "#FFF",
66
+ color: "var(--dv-color-text-primary)",
73
67
  fontSize: 12,
74
68
  interval: 0
75
69
  },
@@ -78,7 +72,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
78
72
  yAxis: {
79
73
  type: "value",
80
74
  nameTextStyle: {
81
- color: "rgba(255, 255, 255, 0.5)",
75
+ color: "var(--dv-color-text-secondary)",
82
76
  padding: [0, 30, 0, 0]
83
77
  },
84
78
  splitNumber: 3,
@@ -90,12 +84,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
90
84
  },
91
85
  axisLabel: {
92
86
  show: true,
93
- color: "rgba(255, 255, 255, 0.5)"
87
+ color: "var(--dv-color-text-secondary)"
94
88
  },
95
89
  splitLine: {
96
90
  show: true,
97
91
  lineStyle: {
98
- color: ["rgba(255, 255, 255, 0.3)"]
92
+ color: ["var(--dv-color-border-light)"]
99
93
  }
100
94
  }
101
95
  },
@@ -104,7 +98,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
104
98
  bottom: 0,
105
99
  itemGap: 10,
106
100
  textStyle: {
107
- color: "#FFF",
101
+ color: "var(--dv-color-text-primary)",
108
102
  fontSize: 12
109
103
  },
110
104
  itemWidth: 10,
@@ -118,11 +112,19 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
118
112
  };
119
113
  };
120
114
  const fetchData = () => {
115
+ const colors = [
116
+ "#0062FF",
117
+ "#0AAEFF",
118
+ "#2AC94F",
119
+ "#FF792E",
120
+ "#F84439",
121
+ "#FFB443"
122
+ ];
121
123
  getCieqRate(props.apiParams).then((res) => {
122
- if (res.data && res.data) {
124
+ if (res.data && res.data.length) {
123
125
  const data = res.data;
124
126
  const xData = data.map((c) => c.name);
125
- const list = BASE_FACTOR.filter((item) => item.code !== "aqi").map((item) => {
127
+ const list = BASE_FACTOR.filter((item) => item.code !== "aqi").map((item, index) => {
126
128
  const values = data.map((c) => {
127
129
  const obj = c.icieqs.find((o) => o.factorName === item.name);
128
130
  return {
@@ -135,6 +137,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
135
137
  type: "bar",
136
138
  stack: "x",
137
139
  data: values,
140
+ color: colors[index],
138
141
  barWidth: 15
139
142
  };
140
143
  });
@@ -155,11 +158,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
155
158
  createElementVNode("div", {
156
159
  class: normalizeClass(`${clsfix}-echarts`)
157
160
  }, [
158
- createVNode(unref(_sfc_main$1), {
161
+ Boolean(chartsFullOptions.value.options) ? (openBlock(), createBlock(unref(_sfc_main$1), {
162
+ key: 0,
159
163
  height: "100%",
160
164
  "full-options": chartsFullOptions.value,
161
165
  loading: false
162
- }, null, 8, ["full-options"])
166
+ }, null, 8, ["full-options"])) : (openBlock(), createBlock(unref(_BasicNoData), { key: 1 }))
163
167
  ], 2)
164
168
  ], 2);
165
169
  };
@@ -33,9 +33,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
33
33
  options: {
34
34
  grid: {
35
35
  left: 20,
36
- bottom: 30,
36
+ bottom: 10,
37
37
  right: 20,
38
- top: 30,
38
+ top: 40,
39
39
  containLabel: true
40
40
  },
41
41
  tooltip: {
@@ -80,7 +80,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
80
80
  show: false
81
81
  },
82
82
  axisLabel: {
83
- color: "#FFF",
83
+ color: "var(--dv-color-text-primary)",
84
84
  fontSize: 12
85
85
  },
86
86
  data: xData
@@ -89,7 +89,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
89
89
  type: "value",
90
90
  name: getUnit(),
91
91
  nameTextStyle: {
92
- color: "rgba(255, 255, 255, 0.5)",
92
+ color: "var(--dv-color-text-secondary)",
93
93
  padding: [0, 30, 0, 0]
94
94
  },
95
95
  axisTick: {
@@ -100,22 +100,22 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
100
100
  },
101
101
  axisLabel: {
102
102
  show: true,
103
- color: "rgba(255, 255, 255, 0.5)"
103
+ color: "var(--dv-color-text-secondary)"
104
104
  },
105
105
  splitNumber: 3,
106
106
  splitLine: {
107
107
  show: true,
108
108
  lineStyle: {
109
- color: ["rgba(255, 255, 255, 0.3)"]
109
+ color: ["var(--dv-color-border-light)"]
110
110
  }
111
111
  }
112
112
  },
113
113
  legend: {
114
114
  show: true,
115
- bottom: 0,
115
+ top: 0,
116
116
  itemGap: 3,
117
117
  textStyle: {
118
- color: "#FFF",
118
+ color: "var(--dv-color-text-primary)",
119
119
  fontSize: 12
120
120
  },
121
121
  itemWidth: 16,
@@ -138,7 +138,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
138
138
  getTbHbData(props.apiParams).then((res) => {
139
139
  if (res.data && res.data) {
140
140
  const data = res.data;
141
- const xData = data.times;
141
+ const xData = data.times.map(
142
+ (time) => ["quarter", "month", "week", "day"].includes(props.apiParams.dataType) ? time.slice(5) : ["hour"].includes(props.apiParams.dataType) ? time.slice(-2) : time
143
+ );
142
144
  const list = [
143
145
  {
144
146
  name: "本期",
@@ -0,0 +1,3 @@
1
+ const white_humidity = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiBmaWxsPSJub25lIiB2ZXJzaW9uPSIxLjEiIHdpZHRoPSIyMy4zMzE3NDUxNDc3MDUwNzgiIGhlaWdodD0iMzMuMzMzOTQ2MjI4MDI3MzQ0IiB2aWV3Qm94PSIwIDAgMjMuMzMxNzQ1MTQ3NzA1MDc4IDMzLjMzMzk0NjIyODAyNzM0NCI+PGc+PHBhdGggZD0iTTcuMTI1MjQsMzIuMzQ5OFE1Ljc2MzY1LDMxLjY0NDgsNS4xNDM3OSwzMS4xOTRDNC41MTk4NCwzMC43NDE3LDMuOTQxNDksMzAuMjI5NywzLjQxNjkxLDI5LjY2NTJDMi44ODUwOSwyOS4wOTMxLDIuNDA4MjEsMjguNDcyMywxLjk5MjU0LDI3LjgxMUMxLjU2OD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Y2N0w2LjY2Njk2LDE2LjY2NjdaIiBmaWxsPSIjRDBFNEZGIiBmaWxsLW9wYWNpdHk9IjEiLz48L2c+PC9zdmc+";
2
+
3
+ export { white_temperature as default };
@@ -0,0 +1,3 @@
1
+ const white_wind_direction = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiBmaWxsPSJub25lIiB2ZXJzaW9uPSIxLjEiIHdpZHRoPSIyNi42NjY2Njc5MzgyMzI0MjIiIGhlaWdodD0iMzMuMzMzMzM1ODc2NDY0ODQ0IiB2aWV3Qm94PSIwIDAgMjYuNjY2NjY3OTM4MjMyNDIyIDMzLjMzMzMzNTg3NjQ2NDg0NCI+PGc+PHBhdGggZD0iTTEzLjMzMzMsMEwyNi42NjY3LDMzLjMzMzNMMTMuMzMzMywyMy4zMzMzTDAsMzMuMzMzM0wxMy4zMzMzLDBaIiBmaWxsPSIjRDBFNEZGIiBmaWxsLW9wYWNpdHk9IjEiLz48L2c+PC9zdmc+";
2
+
3
+ export { white_wind_direction as default };
@@ -0,0 +1,3 @@
1
+ const white_wind_speed = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiBmaWxsPSJub25lIiB2ZXJzaW9uPSIxLjEiIHdpZHRoPSIzMy4zMzMzMzU4NzY0NjQ4NDQiIGhlaWdodD0iMjguMzMzMzM1ODc2NDY0ODQ0IiB2aWV3Qm94PSIwIDAgMzMuMzMzMzM1ODc2NDY0ODQ0IDI4LjMzMzMzNTg3NjQ2NDg0NCI+PGc+PHBhdGggZD0iTTIwLjgzMzMsMjMuMzMzM0MyMC44MzMzLDI2LjA5NDgsMTguNTk0OCwyOC4zMzMzLDE1LjgzMzMs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IGZpbGw9IiNEMEU0RkYiIGZpbGwtb3BhY2l0eT0iMSIvPjwvZz48L3N2Zz4=";
2
+
3
+ export { white_wind_speed as default };
@@ -1,5 +1,6 @@
1
- import { defineComponent, ref, onMounted, watch, openBlock, createElementBlock, normalizeClass, Fragment, renderList, createElementVNode, toDisplayString } from 'vue';
1
+ import { defineComponent, ref, onMounted, watch, openBlock, createElementBlock, normalizeClass, Fragment, renderList, createElementVNode, toDisplayString, unref } from 'vue';
2
2
  import dayjs from 'dayjs';
3
+ import { useThemeHook } from '../../../utils.mjs';
3
4
  import { getAirQuality } from './api/index.mjs';
4
5
  import wind_direction from './images/wind_direction.svg.mjs';
5
6
  import wind_speed from './images/wind_speed.svg.mjs';
@@ -7,6 +8,12 @@ import temperature from './images/temperature.svg.mjs';
7
8
  import pressure from './images/pressure.svg.mjs';
8
9
  import humidity from './images/humidity.svg.mjs';
9
10
  import precipitation from './images/precipitation.svg.mjs';
11
+ import white_wind_direction from './images/white_wind_direction.svg.mjs';
12
+ import white_humidity from './images/white_humidity.svg.mjs';
13
+ import white_precipitation from './images/white_precipitation.svg.mjs';
14
+ import white_pressure from './images/white_pressure.svg.mjs';
15
+ import white_temperature from './images/white_temperature.svg.mjs';
16
+ import white_wind_speed from './images/white_wind_speed.svg.mjs';
10
17
 
11
18
  const _hoisted_1 = { class: "condition" };
12
19
  const _hoisted_2 = ["src"];
@@ -24,48 +31,55 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
24
31
  },
25
32
  setup(__props) {
26
33
  const props = __props;
34
+ const { isDark } = useThemeHook();
27
35
  const list = ref([
28
36
  {
29
37
  name: "风向",
30
38
  value: "--",
31
39
  unit: "",
32
40
  key: "windDirection",
33
- backgroundUrl: wind_direction
41
+ backgroundUrl: wind_direction,
42
+ whiteBackgroundUrl: white_wind_direction
34
43
  },
35
44
  {
36
45
  name: "风级",
37
46
  value: "--",
38
47
  unit: "--",
39
48
  key: "windScale",
40
- backgroundUrl: wind_speed
49
+ backgroundUrl: wind_speed,
50
+ whiteBackgroundUrl: white_wind_speed
41
51
  },
42
52
  {
43
53
  name: "温度",
44
54
  value: "--",
45
55
  unit: "°C",
46
56
  key: "temperature",
47
- backgroundUrl: temperature
57
+ backgroundUrl: temperature,
58
+ whiteBackgroundUrl: white_temperature
48
59
  },
49
60
  {
50
61
  name: "气压",
51
62
  value: "--",
52
63
  unit: "hPa",
53
64
  key: "pres",
54
- backgroundUrl: pressure
65
+ backgroundUrl: pressure,
66
+ whiteBackgroundUrl: white_pressure
55
67
  },
56
68
  {
57
69
  name: "湿度",
58
70
  value: "--",
59
71
  unit: "%",
60
72
  key: "humidity",
61
- backgroundUrl: humidity
73
+ backgroundUrl: humidity,
74
+ whiteBackgroundUrl: white_humidity
62
75
  },
63
76
  {
64
77
  name: "降水量",
65
78
  value: "--",
66
79
  unit: "mm",
67
80
  key: "rain",
68
- backgroundUrl: precipitation
81
+ backgroundUrl: precipitation,
82
+ whiteBackgroundUrl: white_precipitation
69
83
  }
70
84
  ]);
71
85
  const fetchData = () => {
@@ -100,8 +114,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
100
114
  }, [
101
115
  createElementVNode("span", _hoisted_1, toDisplayString(item.name), 1),
102
116
  createElementVNode("img", {
103
- src: item.backgroundUrl
104
- }, null, 8, _hoisted_2),
117
+ src: unref(isDark) ? item.backgroundUrl : item.whiteBackgroundUrl,
118
+ class: normalizeClass({ white: !unref(isDark) })
119
+ }, null, 10, _hoisted_2),
105
120
  createElementVNode("span", _hoisted_3, toDisplayString(item.value), 1),
106
121
  createElementVNode("span", _hoisted_4, toDisplayString(item.unit), 1)
107
122
  ], 2);
@@ -0,0 +1,90 @@
1
+ import _BasicNoData from './index.vue';
2
+ export declare const DvAimsBasicNoData: {
3
+ new (...args: any[]): {
4
+ $: import("vue").ComponentInternalInstance;
5
+ $data: {};
6
+ $props: {
7
+ key?: string | number | symbol | undefined;
8
+ style?: unknown;
9
+ ref?: import("vue").VNodeRef | undefined;
10
+ ref_for?: boolean | undefined;
11
+ ref_key?: string | undefined;
12
+ onVnodeBeforeMount?: ((vnode: globalThis.VNode<import("vue").RendererNode, import("vue").RendererElement, {
13
+ [key: string]: any;
14
+ }>) => void) | ((vnode: globalThis.VNode<import("vue").RendererNode, import("vue").RendererElement, {
15
+ [key: string]: any;
16
+ }>) => void)[] | undefined;
17
+ onVnodeMounted?: ((vnode: globalThis.VNode<import("vue").RendererNode, import("vue").RendererElement, {
18
+ [key: string]: any;
19
+ }>) => void) | ((vnode: globalThis.VNode<import("vue").RendererNode, import("vue").RendererElement, {
20
+ [key: string]: any;
21
+ }>) => void)[] | undefined;
22
+ onVnodeBeforeUpdate?: ((vnode: globalThis.VNode<import("vue").RendererNode, import("vue").RendererElement, {
23
+ [key: string]: any;
24
+ }>, oldVNode: globalThis.VNode<import("vue").RendererNode, import("vue").RendererElement, {
25
+ [key: string]: any;
26
+ }>) => void) | ((vnode: globalThis.VNode<import("vue").RendererNode, import("vue").RendererElement, {
27
+ [key: string]: any;
28
+ }>, oldVNode: globalThis.VNode<import("vue").RendererNode, import("vue").RendererElement, {
29
+ [key: string]: any;
30
+ }>) => void)[] | undefined;
31
+ onVnodeUpdated?: ((vnode: globalThis.VNode<import("vue").RendererNode, import("vue").RendererElement, {
32
+ [key: string]: any;
33
+ }>, oldVNode: globalThis.VNode<import("vue").RendererNode, import("vue").RendererElement, {
34
+ [key: string]: any;
35
+ }>) => void) | ((vnode: globalThis.VNode<import("vue").RendererNode, import("vue").RendererElement, {
36
+ [key: string]: any;
37
+ }>, oldVNode: globalThis.VNode<import("vue").RendererNode, import("vue").RendererElement, {
38
+ [key: string]: any;
39
+ }>) => void)[] | undefined;
40
+ onVnodeBeforeUnmount?: ((vnode: globalThis.VNode<import("vue").RendererNode, import("vue").RendererElement, {
41
+ [key: string]: any;
42
+ }>) => void) | ((vnode: globalThis.VNode<import("vue").RendererNode, import("vue").RendererElement, {
43
+ [key: string]: any;
44
+ }>) => void)[] | undefined;
45
+ onVnodeUnmounted?: ((vnode: globalThis.VNode<import("vue").RendererNode, import("vue").RendererElement, {
46
+ [key: string]: any;
47
+ }>) => void) | ((vnode: globalThis.VNode<import("vue").RendererNode, import("vue").RendererElement, {
48
+ [key: string]: any;
49
+ }>) => void)[] | undefined;
50
+ class?: unknown;
51
+ };
52
+ $attrs: {
53
+ [x: string]: unknown;
54
+ };
55
+ $refs: {
56
+ [x: string]: unknown;
57
+ };
58
+ $slots: Readonly<{
59
+ [name: string]: import("vue").Slot<any> | undefined;
60
+ }>;
61
+ $root: globalThis.ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
62
+ $parent: globalThis.ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
63
+ $emit: (event: string, ...args: any[]) => void;
64
+ $el: any;
65
+ $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}> & {
66
+ beforeCreate?: ((() => void) | (() => void)[]) | undefined;
67
+ created?: ((() => void) | (() => void)[]) | undefined;
68
+ beforeMount?: ((() => void) | (() => void)[]) | undefined;
69
+ mounted?: ((() => void) | (() => void)[]) | undefined;
70
+ beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
71
+ updated?: ((() => void) | (() => void)[]) | undefined;
72
+ activated?: ((() => void) | (() => void)[]) | undefined;
73
+ deactivated?: ((() => void) | (() => void)[]) | undefined;
74
+ beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
75
+ beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
76
+ destroyed?: ((() => void) | (() => void)[]) | undefined;
77
+ unmounted?: ((() => void) | (() => void)[]) | undefined;
78
+ renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
79
+ renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
80
+ 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;
81
+ };
82
+ $forceUpdate: () => void;
83
+ $nextTick: typeof import("vue").nextTick;
84
+ $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 & {};
86
+ __isFragment?: undefined;
87
+ __isTeleport?: undefined;
88
+ __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[]>;
90
+ export default _BasicNoData;
@@ -0,0 +1,6 @@
1
+ import { install } from '../../../../utils.mjs';
2
+ import _BasicNoData from './index.vue.mjs';
3
+
4
+ const DvAimsBasicNoData = install(_BasicNoData);
5
+
6
+ export { DvAimsBasicNoData, _BasicNoData as default };
@@ -0,0 +1,2 @@
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<{}>>, {}, {}>;
2
+ export default _default;
@@ -0,0 +1,14 @@
1
+ import { openBlock, createElementBlock } from 'vue';
2
+ import './index.vue2.mjs';
3
+ import _export_sfc from '../../../../_virtual/_plugin-vue_export-helper.mjs';
4
+
5
+ /* unplugin-vue-components disabled */const _sfc_main = {};
6
+
7
+ const _hoisted_1 = { class: "dv-aims-basic-no-data" };
8
+
9
+ function _sfc_render(_ctx, _cache) {
10
+ return (openBlock(), createElementBlock("div", _hoisted_1, " 暂无数据 "))
11
+ }
12
+ const _BasicNoData = /*#__PURE__*/_export_sfc(_sfc_main, [['render',_sfc_render]]);
13
+
14
+ export { _BasicNoData 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 };
@@ -5,6 +5,7 @@ export * from './common/BasicCard';
5
5
  export * from './common/BasicDialog';
6
6
  export * from './common/BasicPanel';
7
7
  export * from './common/BasicEcharts';
8
+ export * from './common/BasicNoData';
8
9
  /**
9
10
  * 业务组件暴露
10
11
  */
@@ -26,3 +27,4 @@ export * from './MainPollutionMonthRatio';
26
27
  export * from './AirTimeSeriesAnalysis';
27
28
  export * from './TbHbAnalysis';
28
29
  export * from './AirQualityRealTimeAndDay';
30
+ export * from './MainPollutionYearRatioList';
@@ -2,6 +2,7 @@ export { DvAimsBasicCard } from './common/BasicCard/index.mjs';
2
2
  export { DvAimsBasicDialog } from './common/BasicDialog/index.mjs';
3
3
  export { DvAimsBasicPanel } from './common/BasicPanel/index.mjs';
4
4
  export { DvAimsBasicEcharts } from './common/BasicEcharts/index.mjs';
5
+ export { DvAimsBasicNoData } from './common/BasicNoData/index.mjs';
5
6
  export { DvAimsFactorRealTimeRankList } from './FactorRealTimeRankList/index.mjs';
6
7
  export { DvAimsFactorRealTimeRankChart } from './FactorRealTimeRankChart/index.mjs';
7
8
  export { DvAimsFactorTargetYearPeriod } from './FactorTargetYearPeriod/index.mjs';
@@ -20,3 +21,4 @@ export { DvAimsMainPollutionMonthRatio } from './MainPollutionMonthRatio/index.m
20
21
  export { DvAimsAirTimeSeriesAnalysis } from './AirTimeSeriesAnalysis/index.mjs';
21
22
  export { DvAimsTbHbAnalysis } from './TbHbAnalysis/index.mjs';
22
23
  export { DvAimsAirQualityRealTimeAndDay } from './AirQualityRealTimeAndDay/index.mjs';
24
+ export { DvAimsMainPollutionYearRatioList } from './MainPollutionYearRatioList/index.mjs';
@@ -16,3 +16,7 @@ export declare const errorStatusHandler: (status: number, message: string) => vo
16
16
  * @param message 消息提示
17
17
  */
18
18
  export declare const errorCodeHandler: (code: string | Number, message: string) => void;
19
+ /**
20
+ * 将16进制转化为可设置透明度的rgba颜色
21
+ */
22
+ export declare const getHexOpacityColor: (color?: string, opacity?: number) => string;
@@ -32,5 +32,29 @@ const errorCodeHandler = (code, message) => {
32
32
  console.log(`qpi error code: ${newCode}`);
33
33
  messageBox(message, "error");
34
34
  };
35
+ const getHexOpacityColor = (color = "#000", opacity = 0.5) => {
36
+ opacity = Math.max(opacity, 0);
37
+ opacity = Math.min(opacity, 1);
38
+ color = color.replace(/\#/g, "").toUpperCase();
39
+ if (color.length === 3) {
40
+ const arr = color.split("");
41
+ color = "";
42
+ for (let i = 0; i < arr.length; i++)
43
+ color += arr[i] + arr[i];
44
+ }
45
+ let num = Math.round(255 * opacity);
46
+ let str = "";
47
+ const arrHex = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "A", "B", "C", "D", "E", "F"];
48
+ while (num > 0) {
49
+ const mod = num % 16;
50
+ num = (num - mod) / 16;
51
+ str = arrHex[mod] + str;
52
+ }
53
+ if (str.length === 1)
54
+ str = `0${str}`;
55
+ if (str.length === 0)
56
+ str = "00";
57
+ return `#${color + str}`;
58
+ };
35
59
 
36
- export { errorCodeHandler, errorStatusHandler, messageBox };
60
+ export { errorCodeHandler, errorStatusHandler, getHexOpacityColor, messageBox };
package/dist/es/index.mjs CHANGED
@@ -7,6 +7,7 @@ export { DvAimsBasicCard } from './aims/src/common/BasicCard/index.mjs';
7
7
  export { DvAimsBasicDialog } from './aims/src/common/BasicDialog/index.mjs';
8
8
  export { DvAimsBasicPanel } from './aims/src/common/BasicPanel/index.mjs';
9
9
  export { DvAimsBasicEcharts } from './aims/src/common/BasicEcharts/index.mjs';
10
+ export { DvAimsBasicNoData } from './aims/src/common/BasicNoData/index.mjs';
10
11
  export { DvAimsFactorRealTimeRankList } from './aims/src/FactorRealTimeRankList/index.mjs';
11
12
  export { DvAimsFactorRealTimeRankChart } from './aims/src/FactorRealTimeRankChart/index.mjs';
12
13
  export { DvAimsFactorTargetYearPeriod } from './aims/src/FactorTargetYearPeriod/index.mjs';
@@ -25,6 +26,7 @@ export { DvAimsMainPollutionMonthRatio } from './aims/src/MainPollutionMonthRati
25
26
  export { DvAimsAirTimeSeriesAnalysis } from './aims/src/AirTimeSeriesAnalysis/index.mjs';
26
27
  export { DvAimsTbHbAnalysis } from './aims/src/TbHbAnalysis/index.mjs';
27
28
  export { DvAimsAirQualityRealTimeAndDay } from './aims/src/AirQualityRealTimeAndDay/index.mjs';
29
+ export { DvAimsMainPollutionYearRatioList } from './aims/src/MainPollutionYearRatioList/index.mjs';
28
30
  export { DvIpesAirQualityManage } from './ipes/src/AirQualityManage/index.mjs';
29
31
  export { DvIpesAirQuality } from './ipes/src/AirQuality/index.mjs';
30
32
  export { DvIpesAirQualityStandard } from './ipes/src/AirQualityStandard/index.mjs';