@ued_fpi/data-visual 1.2.11 → 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 +6 -9
- package/dist/es/aims/src/TbHbAnalysis/index.vue.mjs +3 -1
- package/dist/es/style.css +1 -1
- package/dist/lib/aims/src/AirQualityCalendar/index.vue.js +5 -8
- package/dist/lib/aims/src/TbHbAnalysis/index.vue.js +3 -1
- package/dist/lib/style.css +1 -1
- package/package.json +2 -2
|
@@ -2,8 +2,9 @@ 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
4
|
import 'element-plus/es/components/icon/style/css';
|
|
5
|
-
import { defineComponent, ref, reactive, onMounted, watch,
|
|
5
|
+
import { defineComponent, ref, reactive, onMounted, watch, openBlock, createElementBlock, createElementVNode, createVNode, withCtx, unref, isRef, Fragment, renderList, toDisplayString, withDirectives, normalizeStyle, vShow } from 'vue';
|
|
6
6
|
import dayjs from 'dayjs';
|
|
7
|
+
import { DArrowLeft, ArrowLeft, ArrowRight, DArrowRight } from '@element-plus/icons-vue';
|
|
7
8
|
import { factorToColor } from 'fpi-tg-factor-tools';
|
|
8
9
|
import '../common/BasicNoData/index.mjs';
|
|
9
10
|
import { getEnvFeatureCalendar } from './api/index.mjs';
|
|
@@ -147,12 +148,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
147
148
|
}
|
|
148
149
|
);
|
|
149
150
|
return (_ctx, _cache) => {
|
|
150
|
-
const _component_DArrowLeft = resolveComponent("DArrowLeft");
|
|
151
151
|
const _component_ElIcon = ElIcon;
|
|
152
|
-
const _component_ArrowLeft = resolveComponent("ArrowLeft");
|
|
153
152
|
const _component_ElDatePicker = ElDatePicker;
|
|
154
|
-
const _component_ArrowRight = resolveComponent("ArrowRight");
|
|
155
|
-
const _component_DArrowRight = resolveComponent("DArrowRight");
|
|
156
153
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
157
154
|
createElementVNode("div", _hoisted_2, [
|
|
158
155
|
createElementVNode("div", _hoisted_3, [
|
|
@@ -162,7 +159,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
162
159
|
}, [
|
|
163
160
|
createVNode(_component_ElIcon, null, {
|
|
164
161
|
default: withCtx(() => [
|
|
165
|
-
createVNode(
|
|
162
|
+
createVNode(unref(DArrowLeft))
|
|
166
163
|
]),
|
|
167
164
|
_: 1
|
|
168
165
|
})
|
|
@@ -173,7 +170,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
173
170
|
}, [
|
|
174
171
|
createVNode(_component_ElIcon, null, {
|
|
175
172
|
default: withCtx(() => [
|
|
176
|
-
createVNode(
|
|
173
|
+
createVNode(unref(ArrowLeft))
|
|
177
174
|
]),
|
|
178
175
|
_: 1
|
|
179
176
|
})
|
|
@@ -195,7 +192,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
195
192
|
}, [
|
|
196
193
|
createVNode(_component_ElIcon, null, {
|
|
197
194
|
default: withCtx(() => [
|
|
198
|
-
createVNode(
|
|
195
|
+
createVNode(unref(ArrowRight))
|
|
199
196
|
]),
|
|
200
197
|
_: 1
|
|
201
198
|
})
|
|
@@ -206,7 +203,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
206
203
|
}, [
|
|
207
204
|
createVNode(_component_ElIcon, null, {
|
|
208
205
|
default: withCtx(() => [
|
|
209
|
-
createVNode(
|
|
206
|
+
createVNode(unref(DArrowRight))
|
|
210
207
|
]),
|
|
211
208
|
_: 1
|
|
212
209
|
})
|
|
@@ -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: "本期",
|