@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.
@@ -8,6 +8,7 @@ require('element-plus/es/components/date-picker/style/css');
8
8
  require('element-plus/es/components/icon/style/css');
9
9
  const vue = require('vue');
10
10
  const dayjs = require('dayjs');
11
+ const iconsVue = require('@element-plus/icons-vue');
11
12
  const fpiTgFactorTools = require('fpi-tg-factor-tools');
12
13
  require('../common/BasicNoData/index.js');
13
14
  const index$1 = require('./api/index.js');
@@ -151,12 +152,8 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
151
152
  }
152
153
  );
153
154
  return (_ctx, _cache) => {
154
- const _component_DArrowLeft = vue.resolveComponent("DArrowLeft");
155
155
  const _component_ElIcon = es.ElIcon;
156
- const _component_ArrowLeft = vue.resolveComponent("ArrowLeft");
157
156
  const _component_ElDatePicker = es.ElDatePicker;
158
- const _component_ArrowRight = vue.resolveComponent("ArrowRight");
159
- const _component_DArrowRight = vue.resolveComponent("DArrowRight");
160
157
  return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
161
158
  vue.createElementVNode("div", _hoisted_2, [
162
159
  vue.createElementVNode("div", _hoisted_3, [
@@ -166,7 +163,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
166
163
  }, [
167
164
  vue.createVNode(_component_ElIcon, null, {
168
165
  default: vue.withCtx(() => [
169
- vue.createVNode(_component_DArrowLeft)
166
+ vue.createVNode(vue.unref(iconsVue.DArrowLeft))
170
167
  ]),
171
168
  _: 1
172
169
  })
@@ -177,7 +174,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
177
174
  }, [
178
175
  vue.createVNode(_component_ElIcon, null, {
179
176
  default: vue.withCtx(() => [
180
- vue.createVNode(_component_ArrowLeft)
177
+ vue.createVNode(vue.unref(iconsVue.ArrowLeft))
181
178
  ]),
182
179
  _: 1
183
180
  })
@@ -199,7 +196,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
199
196
  }, [
200
197
  vue.createVNode(_component_ElIcon, null, {
201
198
  default: vue.withCtx(() => [
202
- vue.createVNode(_component_ArrowRight)
199
+ vue.createVNode(vue.unref(iconsVue.ArrowRight))
203
200
  ]),
204
201
  _: 1
205
202
  })
@@ -210,7 +207,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
210
207
  }, [
211
208
  vue.createVNode(_component_ElIcon, null, {
212
209
  default: vue.withCtx(() => [
213
- vue.createVNode(_component_DArrowRight)
210
+ vue.createVNode(vue.unref(iconsVue.DArrowRight))
214
211
  ]),
215
212
  _: 1
216
213
  })
@@ -142,7 +142,9 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
142
142
  index.getTbHbData(props.apiParams).then((res) => {
143
143
  if (res.data && res.data) {
144
144
  const data = res.data;
145
- const xData = data.times;
145
+ const xData = data.times.map(
146
+ (time) => ["quarter", "month", "week", "day"].includes(props.apiParams.dataType) ? time.slice(5) : ["hour"].includes(props.apiParams.dataType) ? time.slice(-2) : time
147
+ );
146
148
  const list = [
147
149
  {
148
150
  name: "本期",