yh-report 2.4.44 → 2.4.47

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.
@@ -1,4 +1,4 @@
1
- import { ref, computed, defineComponent, reactive, watch, nextTick, triggerRef, onMounted, openBlock, createElementBlock, createVNode, unref, withCtx, Fragment, renderList, withDirectives, createBlock, normalizeProps, guardReactiveProps, resolveDynamicComponent, mergeProps, vShow, renderSlot, onUnmounted, useCssVars, shallowRef, onBeforeMount, resolveComponent, resolveDirective, normalizeStyle, createTextVNode, createCommentVNode, toDisplayString, createElementVNode, normalizeClass, h } from "vue";
1
+ import { ref, computed, defineComponent, reactive, watch, nextTick, triggerRef, onMounted, openBlock, createElementBlock, createVNode, unref, withCtx, Fragment, renderList, withDirectives, createBlock, normalizeProps, guardReactiveProps, resolveDynamicComponent, mergeProps, vShow, renderSlot, onUnmounted, useCssVars, shallowRef, onBeforeMount, resolveComponent, resolveDirective, normalizeStyle, createTextVNode, toDisplayString, createCommentVNode, createElementVNode, normalizeClass, h } from "vue";
2
2
  import { ElMessage, ElForm, ElFormItem, ElOption, ElLoading, ElMessageBox, ElEmpty, ElButton } from "element-plus";
3
3
  import axios from "@/libs/api.request.js";
4
4
  import { cloneDeep, get } from "lodash-es";
@@ -1271,7 +1271,7 @@ function on(Y, K = (e) => {
1271
1271
  K(e.detail);
1272
1272
  });
1273
1273
  }
1274
- const _hoisted_1$2 = { class: "yh-statement-view-conditions" }, _sfc_main$5 = /* @__PURE__ */ defineComponent({
1274
+ const _hoisted_1$3 = { class: "yh-statement-view-conditions" }, _sfc_main$5 = /* @__PURE__ */ defineComponent({
1275
1275
  __name: "reportConditions",
1276
1276
  props: {
1277
1277
  config: null,
@@ -1310,7 +1310,7 @@ const _hoisted_1$2 = { class: "yh-statement-view-conditions" }, _sfc_main$5 = /*
1310
1310
  ...Z,
1311
1311
  elWidth: Z.elWidth || 210,
1312
1312
  formItemType: bt,
1313
- placeholder: _t + et || at,
1313
+ placeholder: rct(_t + et || at),
1314
1314
  type: St || "",
1315
1315
  optionData: [],
1316
1316
  value: ""
@@ -1409,9 +1409,9 @@ const _hoisted_1$2 = { class: "yh-statement-view-conditions" }, _sfc_main$5 = /*
1409
1409
  }
1410
1410
  function N(O, R, H, Z) {
1411
1411
  const { columnName: rt, defaultValue: tt, isNull: it } = O;
1412
- O.placeholder = H + "开始";
1412
+ O.placeholder = rct(H + "开始");
1413
1413
  const ut = cloneDeep(O);
1414
- ut.name = "-", ut.columnName = `end_${rt}`, ut.placeholder = H + "结束";
1414
+ ut.name = "-", ut.columnName = `end_${rt}`, ut.placeholder = rct(H + "结束");
1415
1415
  let ft = tt || "";
1416
1416
  $.value.push({
1417
1417
  name: `end_${rt}`,
@@ -1422,7 +1422,7 @@ const _hoisted_1$2 = { class: "yh-statement-view-conditions" }, _sfc_main$5 = /*
1422
1422
  }
1423
1423
  function L(O) {
1424
1424
  return {
1425
- label: O.name,
1425
+ label: rct(O.name),
1426
1426
  required: O.isNull,
1427
1427
  style: O.columnName.indexOf("end_") > -1 ? { marginLeft: "-22px" } : {}
1428
1428
  };
@@ -1442,14 +1442,14 @@ const _hoisted_1$2 = { class: "yh-statement-view-conditions" }, _sfc_main$5 = /*
1442
1442
  function q(O, R) {
1443
1443
  let H = $.value.findIndex((Z) => Z.name === R.columnName);
1444
1444
  if (R.value = O, $.value[H].value = O, ["ElSelect", "ElTreeSelect", "ElSwitch", "ElDatePicker", "ElTimePicker", "ElColorPicker"].includes(R.formItemType)) {
1445
- if (C.data.searchOnBlur)
1445
+ if (!C.data.searchOnBlur)
1446
1446
  return !1;
1447
1447
  _ = !0, G();
1448
1448
  }
1449
1449
  }
1450
1450
  function Q(O, R) {
1451
1451
  if (["ElInput", "ElInputNumber"].includes(O.formItemType)) {
1452
- if (R === "blur" && C.data.searchOnBlur)
1452
+ if (R === "blur" && !C.data.searchOnBlur)
1453
1453
  return !1;
1454
1454
  _ = !0, G();
1455
1455
  }
@@ -1505,7 +1505,7 @@ const _hoisted_1$2 = { class: "yh-statement-view-conditions" }, _sfc_main$5 = /*
1505
1505
  return K({
1506
1506
  changeValue: G
1507
1507
  }), onMounted(() => {
1508
- }), (O, R) => (openBlock(), createElementBlock("div", _hoisted_1$2, [
1508
+ }), (O, R) => (openBlock(), createElementBlock("div", _hoisted_1$3, [
1509
1509
  createVNode(unref(ElForm), { inline: "" }, {
1510
1510
  default: withCtx(() => [
1511
1511
  (openBlock(!0), createElementBlock(Fragment, null, renderList(M.value, (H) => withDirectives((openBlock(), createBlock(unref(ElFormItem), normalizeProps(guardReactiveProps(L(H))), {
@@ -32528,13 +32528,13 @@ const exportExcel = async (Y, K, e = "gray", C = 0) => {
32528
32528
  setup(Y, { emit: K }) {
32529
32529
  const e = Y;
32530
32530
  useCssVars((b) => ({
32531
- "5cd4e969": unref(n).border,
32532
- "200c382a": unref(n).background,
32533
- "8c069bb6": unref(n).evenBackground,
32534
- 60907725: unref(n).fixedBackground,
32535
- "0a43185f": unref(n).fixedEvenBackground,
32536
- b2148226: unref(n).hoverBackground,
32537
- "6c997ce0": unref(n).activeColor
32531
+ "5e22ae19": unref(n).border,
32532
+ "5675d09b": unref(n).background,
32533
+ "7252c6d5": unref(n).evenBackground,
32534
+ "9a060f16": unref(n).fixedBackground,
32535
+ "64ee71af": unref(n).fixedEvenBackground,
32536
+ "0d3b7f86": unref(n).hoverBackground,
32537
+ "54c9b3a0": unref(n).activeColor
32538
32538
  }));
32539
32539
  const C = ref(), k = ref(), g = ref(), o = shallowRef([]), a = computed(() => ({
32540
32540
  width: e.config.widthType === "%" ? `calc(${e.config.width}% - 10px)` : `${e.config.width - 10}px`,
@@ -32725,7 +32725,7 @@ const exportExcel = async (Y, K, e = "gray", C = 0) => {
32725
32725
  onClick: S
32726
32726
  }, {
32727
32727
  default: withCtx(() => [
32728
- createTextVNode(" 搜索 ")
32728
+ createTextVNode(toDisplayString(unref(rct)("搜索")), 1)
32729
32729
  ]),
32730
32730
  _: 1
32731
32731
  })) : createCommentVNode("", !0),
@@ -32746,7 +32746,7 @@ const exportExcel = async (Y, K, e = "gray", C = 0) => {
32746
32746
  onClick: U
32747
32747
  }, {
32748
32748
  default: withCtx(() => [
32749
- createTextVNode(toDisplayString(unref(I)) + "全部 ", 1)
32749
+ createTextVNode(toDisplayString(unref(I)) + toDisplayString(unref(rct)("全部")), 1)
32750
32750
  ]),
32751
32751
  _: 1
32752
32752
  })) : createCommentVNode("", !0)
@@ -32831,12 +32831,12 @@ const exportExcel = async (Y, K, e = "gray", C = 0) => {
32831
32831
  };
32832
32832
  chartData.option.tooltip = tooltip;
32833
32833
  }
32834
- }, chartItem_vue_vue_type_style_index_0_scoped_9e0f3d12_lang = "", _export_sfc = (Y, K) => {
32834
+ }, chartItem_vue_vue_type_style_index_0_scoped_28377e9f_lang = "", _export_sfc = (Y, K) => {
32835
32835
  const e = Y.__vccOpts || Y;
32836
32836
  for (const [C, k] of K)
32837
32837
  e[C] = k;
32838
32838
  return e;
32839
- }, _sfc_main$3 = {
32839
+ }, _hoisted_1$2 = ["element-loading-text"], _sfc_main$3 = {
32840
32840
  __name: "chartItem",
32841
32841
  props: {
32842
32842
  chartData: {
@@ -32898,14 +32898,14 @@ const exportExcel = async (Y, K, e = "gray", C = 0) => {
32898
32898
  return withDirectives((openBlock(), createElementBlock("div", {
32899
32899
  ref_key: "chartRef",
32900
32900
  ref: C,
32901
- "element-loading-text": "正在加载数据......",
32901
+ "element-loading-text": unref(rct)("正在加载数据......"),
32902
32902
  class: "chart chart-common"
32903
- }, null, 512)), [
32903
+ }, null, 8, _hoisted_1$2)), [
32904
32904
  [s, o.value]
32905
32905
  ]);
32906
32906
  };
32907
32907
  }
32908
- }, chartItem = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-9e0f3d12"]]), _sfc_main$2 = /* @__PURE__ */ defineComponent({
32908
+ }, chartItem = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-28377e9f"]]), _sfc_main$2 = /* @__PURE__ */ defineComponent({
32909
32909
  __name: "chartViewItem",
32910
32910
  props: {
32911
32911
  index: null,
@@ -32958,7 +32958,7 @@ const exportExcel = async (Y, K, e = "gray", C = 0) => {
32958
32958
  }, null, 8, ["id", "chart-data"])
32959
32959
  ], 4));
32960
32960
  }
32961
- }), _hoisted_1$1 = { class: "yh-statement-label-item-label" }, _hoisted_2$1 = { class: "yh-statement-label-item-value" }, _hoisted_3$1 = { class: "yh-statement-label-item-children" }, _hoisted_4$1 = { class: "yh-statement-label-item-label" }, _hoisted_5 = { class: "yh-statement-label-item-value" }, _sfc_main$1 = /* @__PURE__ */ defineComponent({
32961
+ }), _hoisted_1$1 = ["element-loading-text"], _hoisted_2$1 = { class: "yh-statement-label-item-label" }, _hoisted_3$1 = { class: "yh-statement-label-item-value" }, _hoisted_4$1 = { class: "yh-statement-label-item-children" }, _hoisted_5 = { class: "yh-statement-label-item-label" }, _hoisted_6 = { class: "yh-statement-label-item-value" }, _sfc_main$1 = /* @__PURE__ */ defineComponent({
32962
32962
  __name: "labelItem",
32963
32963
  props: {
32964
32964
  config: null,
@@ -32967,17 +32967,17 @@ const exportExcel = async (Y, K, e = "gray", C = 0) => {
32967
32967
  setup(Y, { expose: K }) {
32968
32968
  const e = Y;
32969
32969
  useCssVars((f) => ({
32970
- aa74df84: unref(t),
32971
- d7c504a2: unref(r),
32972
- "29c89a3f": unref(C).color0,
32973
- "29c89a40": unref(C).color1,
32974
- "29c89a41": unref(C).color2,
32975
- "29c89a42": unref(C).color3,
32976
- "29c89a43": unref(C).color4,
32977
- "29c89a44": unref(C).color5,
32978
- "29c89a45": unref(C).color6,
32979
- "29c89a46": unref(C).color7,
32980
- "29c89a47": unref(C).color8
32970
+ "04b20b21": unref(t),
32971
+ "77c05f2c": unref(r),
32972
+ "10af1562": unref(C).color0,
32973
+ "10af1563": unref(C).color1,
32974
+ "10af1564": unref(C).color2,
32975
+ "10af1565": unref(C).color3,
32976
+ "10af1566": unref(C).color4,
32977
+ "10af1567": unref(C).color5,
32978
+ "10af1568": unref(C).color6,
32979
+ "10af1569": unref(C).color7,
32980
+ "10af156a": unref(C).color8
32981
32981
  }));
32982
32982
  const C = computed(() => {
32983
32983
  let f = {};
@@ -33092,23 +33092,23 @@ const exportExcel = async (Y, K, e = "gray", C = 0) => {
33092
33092
  }), (f, u) => {
33093
33093
  const m = resolveDirective("loading");
33094
33094
  return withDirectives((openBlock(), createElementBlock("div", {
33095
- "element-loading-text": "正在加载数据......",
33095
+ "element-loading-text": unref(rct)("正在加载数据......"),
33096
33096
  class: normalizeClass(`yh-report-view-container yh-statement-label-item${unref(o) ? "" : " not-single"}`),
33097
33097
  style: normalizeStyle(unref(n))
33098
33098
  }, [
33099
33099
  unref(o) ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
33100
- createElementVNode("div", _hoisted_1$1, toDisplayString(unref(a).label), 1),
33101
- createElementVNode("div", _hoisted_2$1, toDisplayString(unref(a).value), 1)
33102
- ], 64)) : (openBlock(!0), createElementBlock(Fragment, { key: 1 }, renderList(g.value, (p, S) => (openBlock(), createElementBlock("div", _hoisted_3$1, [
33103
- createElementVNode("div", _hoisted_4$1, toDisplayString(p.label), 1),
33104
- createElementVNode("div", _hoisted_5, toDisplayString(p.value), 1)
33100
+ createElementVNode("div", _hoisted_2$1, toDisplayString(unref(a).label), 1),
33101
+ createElementVNode("div", _hoisted_3$1, toDisplayString(unref(a).value), 1)
33102
+ ], 64)) : (openBlock(!0), createElementBlock(Fragment, { key: 1 }, renderList(g.value, (p, S) => (openBlock(), createElementBlock("div", _hoisted_4$1, [
33103
+ createElementVNode("div", _hoisted_5, toDisplayString(p.label), 1),
33104
+ createElementVNode("div", _hoisted_6, toDisplayString(p.value), 1)
33105
33105
  ]))), 256))
33106
- ], 6)), [
33106
+ ], 14, _hoisted_1$1)), [
33107
33107
  [m, k.value]
33108
33108
  ]);
33109
33109
  };
33110
33110
  }
33111
- }), labelItem_vue_vue_type_style_index_0_scoped_831e4128_lang = "", labelItem = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-831e4128"]]), _hoisted_1 = { class: "yh-statement-table-title" }, _hoisted_2 = { class: "back-top" }, _hoisted_3 = /* @__PURE__ */ createElementVNode("i", { class: "iconfont icon-backtop" }, null, -1), _hoisted_4 = [
33111
+ }), labelItem_vue_vue_type_style_index_0_scoped_8bbd4e2d_lang = "", labelItem = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-8bbd4e2d"]]), _hoisted_1 = { class: "yh-statement-table-title" }, _hoisted_2 = { class: "back-top" }, _hoisted_3 = /* @__PURE__ */ createElementVNode("i", { class: "iconfont icon-backtop" }, null, -1), _hoisted_4 = [
33112
33112
  _hoisted_3
33113
33113
  ], _sfc_main = /* @__PURE__ */ defineComponent({
33114
33114
  __name: "reportRun",
@@ -33150,7 +33150,7 @@ const exportExcel = async (Y, K, e = "gray", C = 0) => {
33150
33150
  k.value ? (openBlock(), createBlock(unref(ElEmpty), {
33151
33151
  key: 1,
33152
33152
  class: "yh-statement-table-viewer-container",
33153
- description: "获取配置时出现错误"
33153
+ description: unref(rct)("获取配置时出现错误")
33154
33154
  }, {
33155
33155
  default: withCtx(() => [
33156
33156
  createVNode(unref(ElButton), {
@@ -33158,13 +33158,13 @@ const exportExcel = async (Y, K, e = "gray", C = 0) => {
33158
33158
  onClick: c[0] || (c[0] = (u) => s.$router.back())
33159
33159
  }, {
33160
33160
  default: withCtx(() => [
33161
- createTextVNode(" 返回 ")
33161
+ createTextVNode(toDisplayString(unref(rct)("返回")), 1)
33162
33162
  ]),
33163
33163
  _: 1
33164
33164
  })
33165
33165
  ]),
33166
33166
  _: 1
33167
- })) : withDirectives((openBlock(), createElementBlock("section", {
33167
+ }, 8, ["description"])) : withDirectives((openBlock(), createElementBlock("section", {
33168
33168
  key: 0,
33169
33169
  class: "yh-report-viewer-wrapper",
33170
33170
  ref_key: "viewWrapper",
@@ -33204,14 +33204,16 @@ const exportExcel = async (Y, K, e = "gray", C = 0) => {
33204
33204
  ], 64);
33205
33205
  };
33206
33206
  }
33207
- }), reportRun_vue_vue_type_style_index_0_lang = "", silenceExport = async (Y) => {
33207
+ }), reportRun_vue_vue_type_style_index_0_lang = "";
33208
+ let rct = (Y) => Y;
33209
+ const silenceExport = async (Y) => {
33208
33210
  let { name: K, remoteOptions: e } = await getConfig(Y);
33209
33211
  for (let C = 0; C < e.length; C++)
33210
33212
  e[C].type;
33211
33213
  }, index = {
33212
33214
  install(Y, K) {
33213
- let { router: e, pinia: C, isAdmin: k = !1 } = K;
33214
- k && (e.addRoute("Index", {
33215
+ let { router: e, pinia: C, isAdmin: k = !1, ct: g } = K;
33216
+ g && (rct = g), k && (e.addRoute("Index", {
33215
33217
  path: "statement/list",
33216
33218
  name: "报表列表",
33217
33219
  meta: {
@@ -33219,7 +33221,7 @@ const exportExcel = async (Y, K, e = "gray", C = 0) => {
33219
33221
  title: "报表列表",
33220
33222
  icon: "iconfont icon-s-grid"
33221
33223
  },
33222
- component: () => import("./StatementList-03adad7c.mjs")
33224
+ component: () => import("./StatementList-fd138d0c.mjs")
33223
33225
  }), e.addRoute("Index", {
33224
33226
  path: "statement/design/:id",
33225
33227
  name: "报表设计",
@@ -33228,7 +33230,7 @@ const exportExcel = async (Y, K, e = "gray", C = 0) => {
33228
33230
  title: "报表设计",
33229
33231
  icon: "iconfont icon-s-grid"
33230
33232
  },
33231
- component: () => import("./StatementDesign-b0889d4e.mjs")
33233
+ component: () => import("./StatementDesign-65b6acc0.mjs")
33232
33234
  }), e.addRoute("Index", {
33233
33235
  path: "statement/detail/:id",
33234
33236
  name: "后台报表查看",
@@ -33237,7 +33239,7 @@ const exportExcel = async (Y, K, e = "gray", C = 0) => {
33237
33239
  title: "后台报表查看",
33238
33240
  icon: "iconfont icon-s-grid"
33239
33241
  },
33240
- component: () => import("./StatementDetail-6eb503df.mjs")
33242
+ component: () => import("./StatementDetail-7b83b10c.mjs")
33241
33243
  })), e.addRoute({
33242
33244
  path: "/statementdetail/:id",
33243
33245
  name: "报表查看",
@@ -33248,7 +33250,7 @@ const exportExcel = async (Y, K, e = "gray", C = 0) => {
33248
33250
  isWhite: !0
33249
33251
  },
33250
33252
  props: !0,
33251
- component: () => import("./StatementDetail-6eb503df.mjs")
33253
+ component: () => import("./StatementDetail-7b83b10c.mjs")
33252
33254
  });
33253
33255
  }
33254
33256
  };
@@ -33279,7 +33281,7 @@ function dynamicReportView(Y) {
33279
33281
  })
33280
33282
  );
33281
33283
  }
33282
- console.info("%cyh-report %cVer 2.4.44", "color:#409EFF;font-size: 22px;font-weight:bolder;text-shadow: 2px 2px 4px #84c1ff;", "color:#fff;font-size: 12px;background-color:#409EFF;padding:2px 4px;border-radius:3px;");
33284
+ console.info("%cyh-report %cVer 2.4.47", "color:#409EFF;font-size: 22px;font-weight:bolder;text-shadow: 2px 2px 4px #84c1ff;", "color:#fff;font-size: 12px;background-color:#409EFF;padding:2px 4px;border-radius:3px;");
33283
33285
  export {
33284
33286
  CellType as C,
33285
33287
  DataSourceColumnDataType as D,
@@ -33292,24 +33294,25 @@ export {
33292
33294
  completeBasicReportProperties as c,
33293
33295
  dayjs as d,
33294
33296
  getThemeColors as e,
33295
- componentTransition as f,
33297
+ renderCellStyle as f,
33296
33298
  getList as g,
33297
- colors as h,
33298
- chartItem as i,
33299
- defaultCol as j,
33300
- defaultCell as k,
33301
- defaultRow as l,
33302
- chartsTypeList as m,
33303
- getDateSourceColumns as n,
33304
- getDateSourceList as o,
33299
+ componentTransition as h,
33300
+ colors as i,
33301
+ chartItem as j,
33302
+ defaultCol as k,
33303
+ defaultCell as l,
33304
+ defaultRow as m,
33305
+ chartsTypeList as n,
33306
+ getDateSourceColumns as o,
33305
33307
  parseExpression as p,
33306
- _sfc_main as q,
33307
- renderCellStyle as r,
33308
+ getDateSourceList as q,
33309
+ rct as r,
33308
33310
  save as s,
33309
- getReportDefaultOption as t,
33310
- silenceExport as u,
33311
+ _sfc_main as t,
33312
+ getReportDefaultOption as u,
33311
33313
  validateAndCompleteTableConfig as v,
33312
- index as w,
33313
- dynamicReportView as x
33314
+ silenceExport as w,
33315
+ index as x,
33316
+ dynamicReportView as y
33314
33317
  };
33315
- //# sourceMappingURL=index-423d273c.mjs.map
33318
+ //# sourceMappingURL=index-a72362e6.mjs.map