@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.
- package/dist/es/aims/src/AirQualityCalendar/index.vue.mjs +70 -52
- package/dist/es/aims/src/AirQualityLevelMonthRatio/index.vue.mjs +13 -10
- package/dist/es/aims/src/AirQualityLevelYearRatio/index.vue.mjs +3 -3
- package/dist/es/aims/src/AirQualityPresentSituation/index.vue.mjs +3 -3
- package/dist/es/aims/src/AirQualityRealTimeAndDay/index.vue.mjs +1 -1
- package/dist/es/aims/src/AirTimeSeriesAnalysis/index.vue.mjs +10 -10
- package/dist/es/aims/src/CieqContributionMonthRatio/index.vue.mjs +18 -17
- package/dist/es/aims/src/CieqContributionYearRatio/index.vue.mjs +15 -12
- package/dist/es/aims/src/FactorRealTimeRankChart/index.vue.mjs +34 -8
- package/dist/es/aims/src/FactorRealTimeRankList/index.vue.mjs +19 -9
- package/dist/es/aims/src/MainPollutionMonthRatio/index.vue.mjs +5 -5
- package/dist/es/aims/src/MainPollutionYearRatio/index.vue.mjs +2 -2
- package/dist/es/aims/src/MainPollutionYearRatioList/api/index.d.ts +123 -0
- package/dist/es/aims/src/MainPollutionYearRatioList/api/index.mjs +11 -0
- package/dist/es/aims/src/MainPollutionYearRatioList/index.d.ts +125 -0
- package/dist/es/aims/src/MainPollutionYearRatioList/index.mjs +7 -0
- package/dist/es/aims/src/MainPollutionYearRatioList/index.vue.d.ts +35 -0
- package/dist/es/aims/src/MainPollutionYearRatioList/index.vue.mjs +98 -0
- package/dist/es/aims/src/MainPollutionYearRatioList/index.vue2.mjs +3 -0
- package/dist/es/aims/src/MainPollutionYearRatioList/index.vue3.mjs +6 -0
- package/dist/es/aims/src/MulGridAirQualityLevelMonthRatio/index.vue.mjs +13 -10
- package/dist/es/aims/src/MulGridCieqContributionMonthRatio/index.vue.mjs +22 -18
- package/dist/es/aims/src/TbHbAnalysis/index.vue.mjs +11 -9
- package/dist/es/aims/src/WeatherCondition/images/white_humidity.svg.mjs +3 -0
- package/dist/es/aims/src/WeatherCondition/images/white_precipitation.svg.mjs +3 -0
- package/dist/es/aims/src/WeatherCondition/images/white_pressure.svg.mjs +3 -0
- package/dist/es/aims/src/WeatherCondition/images/white_temperature.svg.mjs +3 -0
- package/dist/es/aims/src/WeatherCondition/images/white_wind_direction.svg.mjs +3 -0
- package/dist/es/aims/src/WeatherCondition/images/white_wind_speed.svg.mjs +3 -0
- package/dist/es/aims/src/WeatherCondition/index.vue.mjs +24 -9
- package/dist/es/aims/src/common/BasicNoData/index.d.ts +90 -0
- package/dist/es/aims/src/common/BasicNoData/index.mjs +6 -0
- package/dist/es/aims/src/common/BasicNoData/index.vue.d.ts +2 -0
- package/dist/es/aims/src/common/BasicNoData/index.vue.mjs +14 -0
- package/dist/es/aims/src/common/BasicNoData/index.vue2.mjs +3 -0
- package/dist/es/aims/src/index.d.ts +2 -0
- package/dist/es/aims/src/index.mjs +2 -0
- package/dist/es/aims/utils/tools.d.ts +4 -0
- package/dist/es/aims/utils/tools.mjs +25 -1
- package/dist/es/index.mjs +2 -0
- package/dist/es/style.css +1 -1
- package/dist/lib/aims/index.js +4 -4
- package/dist/lib/aims/src/AirQualityCalendar/index.vue.js +70 -52
- package/dist/lib/aims/src/AirQualityLevelMonthRatio/index.vue.js +14 -11
- package/dist/lib/aims/src/AirQualityLevelYearRatio/index.vue.js +3 -3
- package/dist/lib/aims/src/AirQualityPresentSituation/index.vue.js +3 -3
- package/dist/lib/aims/src/AirQualityRealTimeAndDay/index.vue.js +1 -1
- package/dist/lib/aims/src/AirTimeSeriesAnalysis/index.vue.js +10 -10
- package/dist/lib/aims/src/CieqContributionMonthRatio/index.vue.js +18 -17
- package/dist/lib/aims/src/CieqContributionYearRatio/index.vue.js +15 -12
- package/dist/lib/aims/src/FactorRealTimeRankChart/index.vue.js +32 -6
- package/dist/lib/aims/src/FactorRealTimeRankList/index.vue.js +20 -10
- package/dist/lib/aims/src/MainPollutionMonthRatio/index.vue.js +5 -5
- package/dist/lib/aims/src/MainPollutionYearRatio/index.vue.js +2 -2
- package/dist/lib/aims/src/MainPollutionYearRatioList/api/index.d.ts +123 -0
- package/dist/lib/aims/src/MainPollutionYearRatioList/api/index.js +15 -0
- package/dist/lib/aims/src/MainPollutionYearRatioList/index.d.ts +125 -0
- package/dist/lib/aims/src/MainPollutionYearRatioList/index.js +12 -0
- package/dist/lib/aims/src/MainPollutionYearRatioList/index.vue.d.ts +35 -0
- package/dist/lib/aims/src/MainPollutionYearRatioList/index.vue.js +102 -0
- package/dist/lib/aims/src/MainPollutionYearRatioList/index.vue2.js +7 -0
- package/dist/lib/aims/src/MainPollutionYearRatioList/index.vue3.js +10 -0
- package/dist/lib/aims/src/MulGridAirQualityLevelMonthRatio/index.vue.js +14 -11
- package/dist/lib/aims/src/MulGridCieqContributionMonthRatio/index.vue.js +23 -19
- package/dist/lib/aims/src/TbHbAnalysis/index.vue.js +11 -9
- package/dist/lib/aims/src/WeatherCondition/images/white_humidity.svg.js +7 -0
- package/dist/lib/aims/src/WeatherCondition/images/white_precipitation.svg.js +7 -0
- package/dist/lib/aims/src/WeatherCondition/images/white_pressure.svg.js +7 -0
- package/dist/lib/aims/src/WeatherCondition/images/white_temperature.svg.js +7 -0
- package/dist/lib/aims/src/WeatherCondition/images/white_wind_direction.svg.js +7 -0
- package/dist/lib/aims/src/WeatherCondition/images/white_wind_speed.svg.js +7 -0
- package/dist/lib/aims/src/WeatherCondition/index.vue.js +23 -8
- package/dist/lib/aims/src/common/BasicNoData/index.d.ts +90 -0
- package/dist/lib/aims/src/common/BasicNoData/index.js +11 -0
- package/dist/lib/aims/src/common/BasicNoData/index.vue.d.ts +2 -0
- package/dist/lib/aims/src/common/BasicNoData/index.vue.js +18 -0
- package/dist/lib/aims/src/common/BasicNoData/index.vue2.js +7 -0
- package/dist/lib/aims/src/index.d.ts +2 -0
- package/dist/lib/aims/src/index.js +40 -36
- package/dist/lib/aims/utils/tools.d.ts +4 -0
- package/dist/lib/aims/utils/tools.js +25 -0
- package/dist/lib/index.js +154 -150
- package/dist/lib/style.css +1 -1
- package/dist/style/style-aims.css +1 -1
- package/package.json +2 -2
- package/dist/es/aims/src/AirQualityCalendar/images/left-arrow-double.png.mjs +0 -3
- package/dist/es/aims/src/AirQualityCalendar/images/left-arrow.png.mjs +0 -3
- package/dist/es/aims/src/AirQualityCalendar/images/right-arrow-double.png.mjs +0 -3
- package/dist/es/aims/src/AirQualityCalendar/images/right-arrow.png.mjs +0 -3
- package/dist/lib/aims/src/AirQualityCalendar/images/left-arrow-double.png.js +0 -7
- package/dist/lib/aims/src/AirQualityCalendar/images/left-arrow.png.js +0 -7
- package/dist/lib/aims/src/AirQualityCalendar/images/right-arrow-double.png.js +0 -7
- package/dist/lib/aims/src/AirQualityCalendar/images/right-arrow.png.js +0 -7
|
@@ -1,42 +1,26 @@
|
|
|
1
|
-
import { ElDatePicker } from 'element-plus/es';
|
|
1
|
+
import { ElIcon, ElDatePicker } from 'element-plus/es';
|
|
2
2
|
import 'element-plus/es/components/base/style/css';
|
|
3
3
|
import 'element-plus/es/components/date-picker/style/css';
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import _imports_1 from './images/left-arrow.png.mjs';
|
|
7
|
-
import _imports_2 from './images/right-arrow.png.mjs';
|
|
8
|
-
import _imports_3 from './images/right-arrow-double.png.mjs';
|
|
4
|
+
import 'element-plus/es/components/icon/style/css';
|
|
5
|
+
import { defineComponent, ref, reactive, onMounted, watch, openBlock, createElementBlock, createElementVNode, createVNode, withCtx, unref, isRef, Fragment, renderList, toDisplayString, withDirectives, normalizeStyle, vShow } from 'vue';
|
|
9
6
|
import dayjs from 'dayjs';
|
|
7
|
+
import { DArrowLeft, ArrowLeft, ArrowRight, DArrowRight } from '@element-plus/icons-vue';
|
|
10
8
|
import { factorToColor } from 'fpi-tg-factor-tools';
|
|
9
|
+
import '../common/BasicNoData/index.mjs';
|
|
11
10
|
import { getEnvFeatureCalendar } from './api/index.mjs';
|
|
11
|
+
import _BasicNoData from '../common/BasicNoData/index.vue.mjs';
|
|
12
12
|
|
|
13
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
|
-
const _hoisted_4 =
|
|
17
|
-
const _hoisted_5 =
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
const
|
|
21
|
-
const
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
const _hoisted_8 = { class: "flex img-right" };
|
|
25
|
-
const _hoisted_9 = /* @__PURE__ */ createElementVNode("img", { src: _imports_2 }, null, -1);
|
|
26
|
-
const _hoisted_10 = [
|
|
27
|
-
_hoisted_9
|
|
28
|
-
];
|
|
29
|
-
const _hoisted_11 = /* @__PURE__ */ createElementVNode("img", { src: _imports_3 }, null, -1);
|
|
30
|
-
const _hoisted_12 = [
|
|
31
|
-
_hoisted_11
|
|
32
|
-
];
|
|
33
|
-
const _hoisted_13 = { class: "flex weeks" };
|
|
34
|
-
const _hoisted_14 = { class: "flex calendar-content" };
|
|
35
|
-
const _hoisted_15 = { class: "day" };
|
|
36
|
-
const _hoisted_16 = { class: "num" };
|
|
37
|
-
const _hoisted_17 = { class: "suff-null-day" };
|
|
38
|
-
const _hoisted_18 = { class: "flex legends" };
|
|
39
|
-
const _hoisted_19 = { class: "level" };
|
|
16
|
+
const _hoisted_4 = { class: "flex img-right" };
|
|
17
|
+
const _hoisted_5 = { class: "flex weeks" };
|
|
18
|
+
const _hoisted_6 = { class: "flex calendar-content" };
|
|
19
|
+
const _hoisted_7 = { class: "day" };
|
|
20
|
+
const _hoisted_8 = { class: "num" };
|
|
21
|
+
const _hoisted_9 = { class: "suff-null-day" };
|
|
22
|
+
const _hoisted_10 = { class: "flex legends" };
|
|
23
|
+
const _hoisted_11 = { class: "level" };
|
|
40
24
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
41
25
|
__name: "index",
|
|
42
26
|
props: {
|
|
@@ -110,12 +94,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
110
94
|
level: "无数据",
|
|
111
95
|
key: "noData",
|
|
112
96
|
color: "#FFFFFF",
|
|
113
|
-
bgColor: "
|
|
97
|
+
bgColor: "#909399"
|
|
114
98
|
}
|
|
115
99
|
]
|
|
116
100
|
});
|
|
117
101
|
const getDayBgColor = (item) => {
|
|
118
|
-
return Number(item.value) && Number(item.value) > 0 ? factorToColor(props.apiParams.factorCode, item.value, "day") : "
|
|
102
|
+
return Number(item.value) && Number(item.value) > 0 ? factorToColor(props.apiParams.factorCode, item.value, "day") : "#909399";
|
|
119
103
|
};
|
|
120
104
|
const getDayValue = (item) => {
|
|
121
105
|
return !item.value && item.value !== 0 ? "-" : String(item.value).includes(".") ? item.value.toFixed(2) : item.value;
|
|
@@ -164,40 +148,69 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
164
148
|
}
|
|
165
149
|
);
|
|
166
150
|
return (_ctx, _cache) => {
|
|
167
|
-
const
|
|
151
|
+
const _component_ElIcon = ElIcon;
|
|
152
|
+
const _component_ElDatePicker = ElDatePicker;
|
|
168
153
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
169
154
|
createElementVNode("div", _hoisted_2, [
|
|
170
155
|
createElementVNode("div", _hoisted_3, [
|
|
171
156
|
createElementVNode("div", {
|
|
172
157
|
class: "arrow left-arrow-double",
|
|
173
158
|
onClick: _cache[0] || (_cache[0] = ($event) => changeTime(-1, "year"))
|
|
174
|
-
},
|
|
159
|
+
}, [
|
|
160
|
+
createVNode(_component_ElIcon, null, {
|
|
161
|
+
default: withCtx(() => [
|
|
162
|
+
createVNode(unref(DArrowLeft))
|
|
163
|
+
]),
|
|
164
|
+
_: 1
|
|
165
|
+
})
|
|
166
|
+
]),
|
|
175
167
|
createElementVNode("div", {
|
|
176
168
|
class: "arrow left-arrow",
|
|
177
169
|
onClick: _cache[1] || (_cache[1] = ($event) => changeTime(-1, "month"))
|
|
178
|
-
},
|
|
170
|
+
}, [
|
|
171
|
+
createVNode(_component_ElIcon, null, {
|
|
172
|
+
default: withCtx(() => [
|
|
173
|
+
createVNode(unref(ArrowLeft))
|
|
174
|
+
]),
|
|
175
|
+
_: 1
|
|
176
|
+
})
|
|
177
|
+
])
|
|
179
178
|
]),
|
|
180
|
-
createVNode(
|
|
181
|
-
modelValue: dateTime
|
|
182
|
-
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => dateTime.value = $event),
|
|
179
|
+
createVNode(_component_ElDatePicker, {
|
|
180
|
+
modelValue: unref(dateTime),
|
|
181
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => isRef(dateTime) ? dateTime.value = $event : null),
|
|
183
182
|
teleported: false,
|
|
184
183
|
type: "month",
|
|
185
184
|
clearable: false,
|
|
186
185
|
"disabled-date": pickerOptions,
|
|
187
186
|
onChange: changeDatePicker
|
|
188
187
|
}, null, 8, ["modelValue"]),
|
|
189
|
-
createElementVNode("div",
|
|
188
|
+
createElementVNode("div", _hoisted_4, [
|
|
190
189
|
createElementVNode("div", {
|
|
191
190
|
class: "arrow right-arrow",
|
|
192
191
|
onClick: _cache[3] || (_cache[3] = ($event) => changeTime(1, "month"))
|
|
193
|
-
},
|
|
192
|
+
}, [
|
|
193
|
+
createVNode(_component_ElIcon, null, {
|
|
194
|
+
default: withCtx(() => [
|
|
195
|
+
createVNode(unref(ArrowRight))
|
|
196
|
+
]),
|
|
197
|
+
_: 1
|
|
198
|
+
})
|
|
199
|
+
]),
|
|
194
200
|
createElementVNode("div", {
|
|
195
201
|
class: "arrow right-arrow-double",
|
|
196
202
|
onClick: _cache[4] || (_cache[4] = ($event) => changeTime(1, "year"))
|
|
197
|
-
},
|
|
203
|
+
}, [
|
|
204
|
+
createVNode(_component_ElIcon, null, {
|
|
205
|
+
default: withCtx(() => [
|
|
206
|
+
createVNode(unref(DArrowRight))
|
|
207
|
+
]),
|
|
208
|
+
_: 1
|
|
209
|
+
})
|
|
210
|
+
])
|
|
198
211
|
])
|
|
199
212
|
]),
|
|
200
|
-
createElementVNode("div",
|
|
213
|
+
createElementVNode("div", _hoisted_5, [
|
|
201
214
|
(openBlock(), createElementBlock(Fragment, null, renderList(weeks, (item, index) => {
|
|
202
215
|
return createElementVNode("div", {
|
|
203
216
|
key: index,
|
|
@@ -205,39 +218,44 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
205
218
|
}, toDisplayString(item), 1);
|
|
206
219
|
}), 64))
|
|
207
220
|
]),
|
|
208
|
-
createElementVNode("div",
|
|
209
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(calendarData.preNullList, (item, index) => {
|
|
221
|
+
withDirectives(createElementVNode("div", _hoisted_6, [
|
|
222
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(calendarData).preNullList, (item, index) => {
|
|
210
223
|
return openBlock(), createElementBlock("div", {
|
|
211
224
|
key: index,
|
|
212
225
|
class: "item pre-null"
|
|
213
226
|
});
|
|
214
227
|
}), 128)),
|
|
215
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(calendarData.list, (item, index) => {
|
|
228
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(calendarData).list, (item, index) => {
|
|
216
229
|
return openBlock(), createElementBlock("div", {
|
|
217
230
|
key: index,
|
|
218
231
|
class: "item",
|
|
219
232
|
style: normalizeStyle({ background: getDayBgColor(item) })
|
|
220
233
|
}, [
|
|
221
|
-
createElementVNode("div",
|
|
222
|
-
createElementVNode("div",
|
|
234
|
+
createElementVNode("div", _hoisted_7, toDisplayString(index + 1), 1),
|
|
235
|
+
createElementVNode("div", _hoisted_8, toDisplayString(getDayValue(item)), 1)
|
|
223
236
|
], 4);
|
|
224
237
|
}), 128)),
|
|
225
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(calendarData.suffNullList, (item, index) => {
|
|
238
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(calendarData).suffNullList, (item, index) => {
|
|
226
239
|
return openBlock(), createElementBlock("div", {
|
|
227
240
|
key: index,
|
|
228
241
|
class: "item flex suff-null"
|
|
229
242
|
}, [
|
|
230
|
-
createElementVNode("div",
|
|
243
|
+
createElementVNode("div", _hoisted_9, toDisplayString(index + 1 + unref(calendarData).list.length), 1)
|
|
231
244
|
]);
|
|
232
245
|
}), 128))
|
|
246
|
+
], 512), [
|
|
247
|
+
[vShow, unref(calendarData).list.length]
|
|
248
|
+
]),
|
|
249
|
+
withDirectives(createVNode(unref(_BasicNoData), null, null, 512), [
|
|
250
|
+
[vShow, !unref(calendarData).list.length]
|
|
233
251
|
]),
|
|
234
|
-
createElementVNode("div",
|
|
235
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(calendarData.legends, (item, index) => {
|
|
252
|
+
createElementVNode("div", _hoisted_10, [
|
|
253
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(calendarData).legends, (item, index) => {
|
|
236
254
|
return openBlock(), createElementBlock("div", {
|
|
237
255
|
key: index,
|
|
238
256
|
class: "item"
|
|
239
257
|
}, [
|
|
240
|
-
createElementVNode("div",
|
|
258
|
+
createElementVNode("div", _hoisted_11, toDisplayString(item.level), 1),
|
|
241
259
|
createElementVNode("div", {
|
|
242
260
|
class: "flex num",
|
|
243
261
|
style: normalizeStyle({ color: item.color, background: item.bgColor })
|
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
import { defineComponent, ref, onMounted, watch, openBlock, createElementBlock, normalizeClass, createElementVNode,
|
|
1
|
+
import { defineComponent, ref, onMounted, watch, openBlock, createElementBlock, normalizeClass, createElementVNode, unref, createBlock } 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 { getAirQualityStatis } 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-cieq-contributio-ratio";
|
|
10
|
-
const noDataColor = "
|
|
12
|
+
const noDataColor = "var(--dv-color-text-secondary)";
|
|
11
13
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
12
14
|
__name: "index",
|
|
13
15
|
props: {
|
|
@@ -62,7 +64,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
62
64
|
show: false
|
|
63
65
|
},
|
|
64
66
|
axisLabel: {
|
|
65
|
-
color: "
|
|
67
|
+
color: "var(--dv-color-text-primary)",
|
|
66
68
|
fontSize: 12,
|
|
67
69
|
interval: 0,
|
|
68
70
|
formatter: (value) => value.substr(5)
|
|
@@ -73,7 +75,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
73
75
|
type: "value",
|
|
74
76
|
name: "%",
|
|
75
77
|
nameTextStyle: {
|
|
76
|
-
color: "
|
|
78
|
+
color: "var(--dv-color-text-secondary)",
|
|
77
79
|
padding: [0, 30, 0, 0]
|
|
78
80
|
},
|
|
79
81
|
splitNumber: 3,
|
|
@@ -85,12 +87,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
85
87
|
},
|
|
86
88
|
axisLabel: {
|
|
87
89
|
show: true,
|
|
88
|
-
color: "
|
|
90
|
+
color: "var(--dv-color-text-secondary)"
|
|
89
91
|
},
|
|
90
92
|
splitLine: {
|
|
91
93
|
show: true,
|
|
92
94
|
lineStyle: {
|
|
93
|
-
color: ["
|
|
95
|
+
color: ["var(--dv-color-border-light)"]
|
|
94
96
|
}
|
|
95
97
|
}
|
|
96
98
|
},
|
|
@@ -99,7 +101,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
99
101
|
bottom: 0,
|
|
100
102
|
itemGap: 4,
|
|
101
103
|
textStyle: {
|
|
102
|
-
color: "
|
|
104
|
+
color: "var(--dv-color-text-primary)",
|
|
103
105
|
fontSize: 12
|
|
104
106
|
},
|
|
105
107
|
itemWidth: 10,
|
|
@@ -186,11 +188,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
186
188
|
createElementVNode("div", {
|
|
187
189
|
class: normalizeClass(`${clsfix}-echarts`)
|
|
188
190
|
}, [
|
|
189
|
-
|
|
191
|
+
Boolean(unref(chartsFullOptions).options) ? (openBlock(), createBlock(unref(_sfc_main$1), {
|
|
192
|
+
key: 0,
|
|
190
193
|
height: "100%",
|
|
191
|
-
"full-options": chartsFullOptions
|
|
194
|
+
"full-options": unref(chartsFullOptions),
|
|
192
195
|
loading: false
|
|
193
|
-
}, null, 8, ["full-options"])
|
|
196
|
+
}, null, 8, ["full-options"])) : (openBlock(), createBlock(unref(_BasicNoData), { key: 1 }))
|
|
194
197
|
], 2)
|
|
195
198
|
], 2);
|
|
196
199
|
};
|
|
@@ -7,7 +7,7 @@ import _sfc_main$1 from '../common/BasicEcharts/index.vue.mjs';
|
|
|
7
7
|
import '../common/BasicEcharts/index.vue2.mjs';
|
|
8
8
|
|
|
9
9
|
const clsfix = "dv-aims-cieq-contributio-ratio";
|
|
10
|
-
const noDataColor = "
|
|
10
|
+
const noDataColor = "var(--dv-color-text-secondary)";
|
|
11
11
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
12
12
|
__name: "index",
|
|
13
13
|
props: {
|
|
@@ -28,7 +28,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
28
28
|
bottom: -4,
|
|
29
29
|
itemGap: 4,
|
|
30
30
|
textStyle: {
|
|
31
|
-
color: "
|
|
31
|
+
color: "var(--dv-color-text-primary)",
|
|
32
32
|
fontSize: 12
|
|
33
33
|
},
|
|
34
34
|
icon: "circle",
|
|
@@ -51,7 +51,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
51
51
|
data: list2,
|
|
52
52
|
label: {
|
|
53
53
|
position: "outer",
|
|
54
|
-
color: "
|
|
54
|
+
color: "var(--dv-color-text-primary)",
|
|
55
55
|
overflow: "none",
|
|
56
56
|
formatter: (params) => {
|
|
57
57
|
const { name, value, value2 } = params.data;
|
|
@@ -20,7 +20,7 @@ const _hoisted_12 = [
|
|
|
20
20
|
];
|
|
21
21
|
const _hoisted_13 = { class: "name" };
|
|
22
22
|
const clsfix = "dv-aims-air-quality-present-situation";
|
|
23
|
-
const noDataColor = "
|
|
23
|
+
const noDataColor = "var(--dv-color-text-secondary)";
|
|
24
24
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
25
25
|
__name: "index",
|
|
26
26
|
props: {
|
|
@@ -51,14 +51,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
51
51
|
const fetchData = () => {
|
|
52
52
|
getCityDetail(props.apiParams).then((res) => {
|
|
53
53
|
if (res.data) {
|
|
54
|
-
realtimeData.cieqVal = Number(res.data.cieq).toFixed(2);
|
|
54
|
+
realtimeData.cieqVal = Number.isNaN(Number(res.data.cieq)) ? "--" : Number(res.data.cieq).toFixed(2);
|
|
55
55
|
realtimeData.firstPollution = res.data.mainPollutants;
|
|
56
56
|
realtimeData.factorList = realtimeData.factorList.map((item) => {
|
|
57
57
|
const obj = res.data?.commonFactorData.find((c) => c.code === item.code);
|
|
58
58
|
return {
|
|
59
59
|
...item,
|
|
60
60
|
value: obj ? obj.value : "--",
|
|
61
|
-
color: obj ? factorToColor(item.code, obj.value, "day") : noDataColor
|
|
61
|
+
color: obj && obj.value !== "--" ? factorToColor(item.code, obj.value, "day") : noDataColor
|
|
62
62
|
};
|
|
63
63
|
});
|
|
64
64
|
}
|
|
@@ -25,7 +25,7 @@ const _hoisted_14 = /* @__PURE__ */ createElementVNode("li", { class: "bottom-le
|
|
|
25
25
|
], -1);
|
|
26
26
|
const _hoisted_15 = { class: "name" };
|
|
27
27
|
const clsfix = "dv-aims-air-quality-realtime-and-day";
|
|
28
|
-
const noDataColor = "
|
|
28
|
+
const noDataColor = "var(--dv-color-text-secondary)";
|
|
29
29
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
30
30
|
__name: "index",
|
|
31
31
|
props: {
|
|
@@ -26,9 +26,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
26
26
|
options: {
|
|
27
27
|
grid: {
|
|
28
28
|
left: 20,
|
|
29
|
-
bottom:
|
|
29
|
+
bottom: 10,
|
|
30
30
|
right: 20,
|
|
31
|
-
top:
|
|
31
|
+
top: 60,
|
|
32
32
|
containLabel: true
|
|
33
33
|
},
|
|
34
34
|
tooltip: {
|
|
@@ -72,7 +72,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
72
72
|
show: false
|
|
73
73
|
},
|
|
74
74
|
axisLabel: {
|
|
75
|
-
color: "
|
|
75
|
+
color: "var(--dv-color-text-primary)",
|
|
76
76
|
fontSize: 12,
|
|
77
77
|
formatter: (value) => formatterTime(value)
|
|
78
78
|
},
|
|
@@ -83,7 +83,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
83
83
|
type: "value",
|
|
84
84
|
name: "μg/m³",
|
|
85
85
|
nameTextStyle: {
|
|
86
|
-
color: "
|
|
86
|
+
color: "var(--dv-color-text-secondary)",
|
|
87
87
|
padding: [0, 30, 0, 0]
|
|
88
88
|
},
|
|
89
89
|
axisTick: {
|
|
@@ -94,13 +94,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
94
94
|
},
|
|
95
95
|
axisLabel: {
|
|
96
96
|
show: true,
|
|
97
|
-
color: "
|
|
97
|
+
color: "var(--dv-color-text-secondary)"
|
|
98
98
|
},
|
|
99
99
|
splitNumber: 3,
|
|
100
100
|
splitLine: {
|
|
101
101
|
show: true,
|
|
102
102
|
lineStyle: {
|
|
103
|
-
color: ["
|
|
103
|
+
color: ["var(--dv-color-border-light)"]
|
|
104
104
|
}
|
|
105
105
|
}
|
|
106
106
|
},
|
|
@@ -108,7 +108,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
108
108
|
type: "value",
|
|
109
109
|
name: "mg/m³",
|
|
110
110
|
nameTextStyle: {
|
|
111
|
-
color: "
|
|
111
|
+
color: "var(--dv-color-text-secondary)",
|
|
112
112
|
padding: [0, 0, 0, 30]
|
|
113
113
|
},
|
|
114
114
|
splitNumber: 3,
|
|
@@ -120,7 +120,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
120
120
|
},
|
|
121
121
|
axisLabel: {
|
|
122
122
|
show: true,
|
|
123
|
-
color: "
|
|
123
|
+
color: "var(--dv-color-text-secondary)"
|
|
124
124
|
},
|
|
125
125
|
splitLine: {
|
|
126
126
|
show: true,
|
|
@@ -132,10 +132,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
132
132
|
],
|
|
133
133
|
legend: {
|
|
134
134
|
show: true,
|
|
135
|
-
|
|
135
|
+
top: 0,
|
|
136
136
|
itemGap: 3,
|
|
137
137
|
textStyle: {
|
|
138
|
-
color: "
|
|
138
|
+
color: "var(--dv-color-text-primary)",
|
|
139
139
|
fontSize: 12
|
|
140
140
|
},
|
|
141
141
|
itemWidth: 16,
|
|
@@ -22,14 +22,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
22
22
|
const generateOption = (xData, series) => {
|
|
23
23
|
return {
|
|
24
24
|
options: {
|
|
25
|
-
colors: [
|
|
26
|
-
"#0062FF",
|
|
27
|
-
"#0AAEFF",
|
|
28
|
-
"#2AC94F",
|
|
29
|
-
"#FF792E",
|
|
30
|
-
"#F84439",
|
|
31
|
-
"#FFB443"
|
|
32
|
-
],
|
|
33
25
|
grid: {
|
|
34
26
|
left: 10,
|
|
35
27
|
bottom: 30,
|
|
@@ -69,7 +61,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
69
61
|
show: false
|
|
70
62
|
},
|
|
71
63
|
axisLabel: {
|
|
72
|
-
color: "
|
|
64
|
+
color: "var(--dv-color-text-primary)",
|
|
73
65
|
fontSize: 12,
|
|
74
66
|
interval: 0,
|
|
75
67
|
formatter: (value) => value.substr(5)
|
|
@@ -79,7 +71,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
79
71
|
yAxis: {
|
|
80
72
|
type: "value",
|
|
81
73
|
nameTextStyle: {
|
|
82
|
-
color: "
|
|
74
|
+
color: "var(--dv-color-text-secondary)",
|
|
83
75
|
padding: [0, 30, 0, 0]
|
|
84
76
|
},
|
|
85
77
|
splitNumber: 3,
|
|
@@ -91,12 +83,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
91
83
|
},
|
|
92
84
|
axisLabel: {
|
|
93
85
|
show: true,
|
|
94
|
-
color: "
|
|
86
|
+
color: "var(--dv-color-text-secondary)"
|
|
95
87
|
},
|
|
96
88
|
splitLine: {
|
|
97
89
|
show: true,
|
|
98
90
|
lineStyle: {
|
|
99
|
-
color: ["
|
|
91
|
+
color: ["var(--dv-color-border-light)"]
|
|
100
92
|
}
|
|
101
93
|
}
|
|
102
94
|
},
|
|
@@ -105,7 +97,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
105
97
|
bottom: 0,
|
|
106
98
|
itemGap: 10,
|
|
107
99
|
textStyle: {
|
|
108
|
-
color: "
|
|
100
|
+
color: "var(--dv-color-text-primary)",
|
|
109
101
|
fontSize: 12
|
|
110
102
|
},
|
|
111
103
|
itemWidth: 10,
|
|
@@ -119,12 +111,20 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
119
111
|
};
|
|
120
112
|
};
|
|
121
113
|
const fetchData = () => {
|
|
114
|
+
const colors = [
|
|
115
|
+
"#0062FF",
|
|
116
|
+
"#0AAEFF",
|
|
117
|
+
"#2AC94F",
|
|
118
|
+
"#FF792E",
|
|
119
|
+
"#F84439",
|
|
120
|
+
"#FFB443"
|
|
121
|
+
];
|
|
122
122
|
getAirQualityStatis(props.apiParams).then((res) => {
|
|
123
123
|
if (res.data && res.data.CIEQ) {
|
|
124
124
|
const data1 = res.data.CIEQ.CIEQMonthValueRate;
|
|
125
125
|
const data2 = res.data.CIEQ.CIEQMonthValue;
|
|
126
126
|
const xData = data2.times;
|
|
127
|
-
const list = BASE_FACTOR.filter((item) => item.code !== "aqi").map((item) => {
|
|
127
|
+
const list = BASE_FACTOR.filter((item) => item.code !== "aqi").map((item, index) => {
|
|
128
128
|
const key = `V_ICIEQ_${item.key}`;
|
|
129
129
|
const value1s = data1[key] ?? [];
|
|
130
130
|
const value2s = data2[key] ?? [];
|
|
@@ -133,13 +133,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
133
133
|
name: item.name,
|
|
134
134
|
type: "bar",
|
|
135
135
|
stack: "x",
|
|
136
|
-
data: value2s.map((c,
|
|
136
|
+
data: value2s.map((c, index2) => {
|
|
137
137
|
return {
|
|
138
138
|
value: c,
|
|
139
|
-
rate: value1s[
|
|
140
|
-
cieq: cieqs[
|
|
139
|
+
rate: value1s[index2],
|
|
140
|
+
cieq: cieqs[index2]
|
|
141
141
|
};
|
|
142
142
|
}),
|
|
143
|
+
color: colors[index],
|
|
143
144
|
barWidth: 15
|
|
144
145
|
};
|
|
145
146
|
});
|
|
@@ -23,14 +23,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
23
23
|
const generateOption = (list, cieq) => {
|
|
24
24
|
return {
|
|
25
25
|
options: {
|
|
26
|
-
colors: [
|
|
27
|
-
"#0062FF",
|
|
28
|
-
"#0AAEFF",
|
|
29
|
-
"#2AC94F",
|
|
30
|
-
"#FF792E",
|
|
31
|
-
"#F84439",
|
|
32
|
-
"#FFB443"
|
|
33
|
-
],
|
|
34
26
|
title: [
|
|
35
27
|
{
|
|
36
28
|
show: props.showCieq,
|
|
@@ -56,7 +48,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
56
48
|
bottom: -4,
|
|
57
49
|
itemGap: 10,
|
|
58
50
|
textStyle: {
|
|
59
|
-
color: "
|
|
51
|
+
color: "var(--dv-color-text-primary)",
|
|
60
52
|
fontSize: 12
|
|
61
53
|
},
|
|
62
54
|
icon: "circle",
|
|
@@ -79,7 +71,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
79
71
|
data: list,
|
|
80
72
|
label: {
|
|
81
73
|
position: "outside",
|
|
82
|
-
color: "
|
|
74
|
+
color: "var(--dv-color-text-primary)",
|
|
83
75
|
overflow: "none",
|
|
84
76
|
formatter: (params) => {
|
|
85
77
|
const { name, value, value2 } = params.data;
|
|
@@ -92,12 +84,20 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
92
84
|
};
|
|
93
85
|
};
|
|
94
86
|
const fetchData = () => {
|
|
87
|
+
const colors = [
|
|
88
|
+
"#0062FF",
|
|
89
|
+
"#0AAEFF",
|
|
90
|
+
"#2AC94F",
|
|
91
|
+
"#FF792E",
|
|
92
|
+
"#F84439",
|
|
93
|
+
"#FFB443"
|
|
94
|
+
];
|
|
95
95
|
getAirQualityStatis(props.apiParams).then((res) => {
|
|
96
96
|
if (res.data && res.data.CIEQ) {
|
|
97
97
|
const data1 = res.data.CIEQ.CIEQYearValueRate;
|
|
98
98
|
const data2 = res.data.CIEQ.CIEQYearValue;
|
|
99
99
|
const cieq = res.data.CIEQ.CIEQYearValue.cieq;
|
|
100
|
-
const list = BASE_FACTOR.filter((item) => item.code !== "aqi").map((item) => {
|
|
100
|
+
const list = BASE_FACTOR.filter((item) => item.code !== "aqi").map((item, index) => {
|
|
101
101
|
const key = `V_ICIEQ_${item.key}`;
|
|
102
102
|
const value1 = data1[key] ?? 0;
|
|
103
103
|
const value2 = data2[key] ?? 0;
|
|
@@ -105,7 +105,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
105
105
|
name: item.name,
|
|
106
106
|
code: item.code,
|
|
107
107
|
value: value1,
|
|
108
|
-
value2
|
|
108
|
+
value2,
|
|
109
|
+
itemStyle: {
|
|
110
|
+
color: colors[index]
|
|
111
|
+
}
|
|
109
112
|
};
|
|
110
113
|
});
|
|
111
114
|
chartsFullOptions.value = generateOption(list, cieq);
|