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