hs-admin-ui 17.3.5 → 17.3.7

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,6 +1,6 @@
1
- import { S as v, X as F, H as y, ay as P, J as L, dU as K, M as A, dV as ne, dW as C, dX as h, ab as R, T as le, bf as re, aq as oe, af as D, ak as se, b3 as ie, b4 as ue, dY as ce, W as de, b6 as fe, b7 as ge, b2 as me, dZ as pe, aU as ye, aT as be, d_ as he, d$ as ve, e0 as _e, e1 as xe, e2 as we, e3 as De, e4 as Ce, e5 as Ee, e6 as Ae, an as Se, Z as Ne, L as Te, e7 as Be, e8 as Fe, a5 as Pe, e9 as Me, ea as je, eb as Ie, ec as Le, ed as Re, K as Oe, ee as ke, ef as Ye, eg as $e, eh as Ue, ei as Ke, ej as He, ek as qe, el as We, ax as Je, em as ze, en as Ze, ad as Qe, eo as Ve, ep as Xe, eq as Ge, er as et, es as tt, V as at, am as nt, N as lt, et as rt, eu as ot, ao as st, ev as it, ew as ut, au as ct, ex as dt, ey as ft, ez as gt, eA as mt, eB as pt, eC as yt, eD as bt, eE as ht, eF as vt, eG as _t, eH as xt, eI as wt, eJ as Dt, eK as Ct, eL as Et, eM as At, eN as St, eO as Nt, eP as Tt, eQ as Bt, eR as Ft, eS as Pt, eT as Mt, eU as jt, eV as It } from "./bcVisual.vue_vue_type_style_index_0_scoped_a917535e_lang-Ba5ByMVA.js";
2
- import { ref as Lt, onBeforeUnmount as Rt, nextTick as Ot } from "vue";
3
- function kt(t, e) {
1
+ import { T as v, Y as F, I as y, aw as P, K as L, dU as K, N as A, dV as ne, dW as C, dX as h, ab as O, U as le, bf as re, aq as oe, af as D, ak as se, b3 as ie, b4 as ue, dY as ce, X as de, b6 as fe, b7 as ge, b2 as me, dZ as pe, aU as ye, aT as be, d_ as he, d$ as ve, e0 as _e, e1 as xe, e2 as we, e3 as De, e4 as Ce, e5 as Ee, e6 as Ae, am as Se, $ as Ne, M as Te, e7 as Be, e8 as Fe, a5 as Pe, e9 as Me, ea as je, eb as Ie, ec as Le, ed as Oe, L as Re, ee as Ye, ef as $e, eg as ke, eh as Ue, ei as Ke, ej as He, ek as qe, el as We, av as Je, em as ze, en as Qe, ad as Xe, eo as Ze, ep as Ge, eq as Ve, er as et, es as tt, W as at, al as nt, O as lt, et as rt, eu as ot, ao as st, ev as it, ew as ut, au as ct, ex as dt, ey as ft, ez as gt, eA as mt, eB as pt, eC as yt, eD as bt, eE as ht, eF as vt, eG as _t, eH as xt, eI as wt, eJ as Dt, eK as Ct, eL as Et, eM as At, eN as St, eO as Nt, eP as Tt, eQ as Bt, eR as Ft, eS as Pt, eT as Mt, eU as jt, eV as It } from "./bcVisual.vue_vue_type_style_index_0_scoped_39bc1e22_lang-DIm1RA0A.js";
2
+ import { ref as Lt, onBeforeUnmount as Ot, nextTick as Rt } from "vue";
3
+ function Yt(t, e) {
4
4
  const n = M(t), a = M(e);
5
5
  let l = 0;
6
6
  const o = n.length;
@@ -38,7 +38,7 @@ function M(t, e) {
38
38
  return t;
39
39
  }
40
40
  let q = "127.0.0.1", W = 54321, f;
41
- function Yt(t, e, n = "ws") {
41
+ function $t(t, e, n = "ws") {
42
42
  return f || (f = new ws(t, e, {
43
43
  automaticOpen: !1,
44
44
  //是否自动连接标志(true|false),默认为true
@@ -62,16 +62,16 @@ function Yt(t, e, n = "ws") {
62
62
  typeof a.detail == "object" ? (typeof a.detail.message == "string" && f.log("遇到一个错误: " + a.detail.message, a), typeof a.detail.data == "string" && f.log("遇到一个错误: " + a.detail.message, a)) : typeof a.data == "string" ? f.log("遇到一个错误: " + a.data, a) : f.log("遇到一个错误", a);
63
63
  }, f);
64
64
  }
65
- const O = () => Yt(q, W);
65
+ const R = () => $t(q, W);
66
66
  function J() {
67
- const t = O();
67
+ const t = R();
68
68
  return t.open(), new Promise((e, n) => {
69
69
  t.addEventListener("open", e), t.addEventListener("close", n);
70
70
  });
71
71
  }
72
72
  function z(t) {
73
73
  return J().then(() => {
74
- const e = O(), n = function(l, o) {
74
+ const e = R(), n = function(l, o) {
75
75
  e.protocol === "ws" && (e.setHost(q), e.setPort(W)), e.protocol, e.open();
76
76
  }, a = function(l) {
77
77
  e.log("SENT: <br/>" + l), e.log("正在发送消息..."), e.send(l);
@@ -83,7 +83,7 @@ function z(t) {
83
83
  v.warning("请先启动康虎云打印服务器!");
84
84
  });
85
85
  }
86
- async function Z(t, e) {
86
+ async function Q(t, e) {
87
87
  var x, g, N, T;
88
88
  if (!t.config_info)
89
89
  return v.warning("请先添加模板!"), Promise.reject();
@@ -190,7 +190,7 @@ async function Z(t, e) {
190
190
  Data: u.length ? u : [{}]
191
191
  }), console.log("trimPrintData整理打印数据=>>>>>", m), m;
192
192
  }
193
- function $t(t) {
193
+ function kt(t) {
194
194
  return new Promise((e, n) => {
195
195
  try {
196
196
  let a = document.createElement("canvas"), l = a.getContext("2d"), o = new Image();
@@ -215,7 +215,7 @@ async function Ut(t, e) {
215
215
  e || (e = {
216
216
  detail: []
217
217
  });
218
- const l = await Z(a, e);
218
+ const l = await Q(a, e);
219
219
  return z(JSON.stringify(l));
220
220
  }
221
221
  const Kt = (t) => ({
@@ -240,9 +240,9 @@ const Kt = (t) => ({
240
240
  v.error("复制失败!"), n(a);
241
241
  }
242
242
  });
243
- function Q(t, e, n = ["id"]) {
243
+ function X(t, e, n = ["id"]) {
244
244
  for (let a in e)
245
- Object.keys(t).includes(a) ? typeof e[a] == "object" && !Array.isArray(e[a]) ? Q(t[a], e[a]) : t[a] = e[a] : n.includes(a) && (t[a] = e[a]);
245
+ Object.keys(t).includes(a) ? typeof e[a] == "object" && !Array.isArray(e[a]) ? X(t[a], e[a]) : t[a] = e[a] : n.includes(a) && (t[a] = e[a]);
246
246
  return t;
247
247
  }
248
248
  function qt(t) {
@@ -255,14 +255,14 @@ function qt(t) {
255
255
  return v.warning("暂不不支持全屏"), !1;
256
256
  C.toggle(t);
257
257
  }
258
- return Rt(() => {
258
+ return Ot(() => {
259
259
  C.off("change", n);
260
260
  }), { isFullPage: e, toggle: a };
261
261
  }
262
262
  function S(t, e) {
263
263
  if (!t)
264
264
  return "";
265
- let n = t.getDay(), a = V(t), l = Math.floor((t.getMonth() + 3) / 3).toString();
265
+ let n = t.getDay(), a = Z(t), l = Math.floor((t.getMonth() + 3) / 3).toString();
266
266
  const o = {
267
267
  "Y+": t.getFullYear().toString(),
268
268
  // 年
@@ -299,7 +299,7 @@ function S(t, e) {
299
299
  }
300
300
  return e;
301
301
  }
302
- function V(t) {
302
+ function Z(t) {
303
303
  let e = new Date(t.getTime()), n = e.getDay() || 7;
304
304
  e.setDate(e.getDate() - n + 1 + 5);
305
305
  let a = new Date(e.getFullYear(), 0, 1), l = a.getDay(), o = 1;
@@ -328,12 +328,12 @@ function Jt(t) {
328
328
  let e = new Date(t).getHours();
329
329
  return e < 6 ? "凌晨好" : e < 9 ? "早上好" : e < 12 ? "上午好" : e < 14 ? "中午好" : e < 17 ? "下午好" : e < 19 ? "傍晚好" : e < 22 ? "晚上好" : "夜里好";
330
330
  }
331
- const zt = (t, e, n) => n ? `${n}%` : "-", Zt = (t, e, n) => n ? S(new Date(n), "YYYY-mm-dd") : "-", Qt = (t, e, n) => n ? S(new Date(n), "YYYY-mm-dd HH:MM:SS") : "-", Vt = (t, e, n) => {
331
+ const zt = (t, e, n) => n ? `${n}%` : "-", Qt = (t, e, n) => n ? S(new Date(n), "YYYY-mm-dd") : "-", Xt = (t, e, n) => n ? S(new Date(n), "YYYY-mm-dd HH:MM:SS") : "-", Zt = (t, e, n) => {
332
332
  if (!n)
333
333
  return "-";
334
334
  let a = 0;
335
335
  return typeof t == "number" && (a = t), typeof n == "number" && (a = n), S(new Date(a * 1e3), "HH:MM:SS");
336
- }, Xt = (t = "0", e = 4) => Number.parseFloat(t).toFixed(e), Gt = (t = "0") => Number.parseFloat(t).toFixed(2), ea = (t) => {
336
+ }, Gt = (t = "0", e = 4) => Number.parseFloat(t).toFixed(e), Vt = (t = "0") => Number.parseFloat(t).toFixed(2), ea = (t) => {
337
337
  let e = t && t.toUpperCase();
338
338
  const n = {
339
339
  11: "北京",
@@ -408,7 +408,7 @@ const zt = (t, e, n) => n ? `${n}%` : "-", Zt = (t, e, n) => n ? S(new Date(n),
408
408
  };
409
409
  function na({ uniqueId: t, projectCode: e, templateName: n, tableConfig: a, tableData: l }) {
410
410
  const o = [];
411
- if (a.filter((c) => R({ ...c.data, uniqueId: t })).map((c) => c.data).filter((c) => c.fieldExport == !0).forEach((c) => {
411
+ if (a.filter((c) => O({ ...c.data, uniqueId: t })).map((c) => c.data).filter((c) => c.fieldExport == !0).forEach((c) => {
412
412
  le.includes(c.type) || o.push(c);
413
413
  }), y.isEmpty(o))
414
414
  return v.warning("未配置导出字段"), Promise.reject();
@@ -539,7 +539,7 @@ function na({ uniqueId: t, projectCode: e, templateName: n, tableConfig: a, tabl
539
539
  function la(t) {
540
540
  return new Promise((e, n) => {
541
541
  const a = {}, l = t.columnConfig.filter(
542
- (r) => R({
542
+ (r) => O({
543
543
  ...r.data,
544
544
  uniqueId: t.uniqueId
545
545
  })
@@ -572,14 +572,14 @@ function la(t) {
572
572
  const s = new Blob([r], {
573
573
  type: "application/vnd.ms-excel"
574
574
  });
575
- k(s, t.template_name + ".xlsx");
575
+ Y(s, t.template_name + ".xlsx");
576
576
  });
577
577
  });
578
578
  }
579
579
  function ra(t, e = "/pri/easyexcel/export_model_all") {
580
580
  return new Promise((n, a) => {
581
581
  const l = t.columnConfig.filter(
582
- (d) => R({
582
+ (d) => O({
583
583
  ...d.data,
584
584
  uniqueId: t.uniqueId
585
585
  })
@@ -625,7 +625,7 @@ function ra(t, e = "/pri/easyexcel/export_model_all") {
625
625
  const m = new Blob([d], {
626
626
  type: "application/vnd.ms-excel"
627
627
  });
628
- k(m, t.template_name + ".xlsx");
628
+ Y(m, t.template_name + ".xlsx");
629
629
  });
630
630
  });
631
631
  }
@@ -633,7 +633,7 @@ function oa(t) {
633
633
  const e = document.createElement("a");
634
634
  e.href = t.url, e.download = t.name, e.style.display = "none", document.body.appendChild(e), e.click(), document.body.removeChild(e);
635
635
  }
636
- function k(t, e) {
636
+ function Y(t, e) {
637
637
  let n = document.createElement("a");
638
638
  n.href = window.URL.createObjectURL(t), n.download = /\./.test(e) ? e : e + ".xlsx", document.body.appendChild(n), n.click(), document.body.removeChild(n);
639
639
  }
@@ -670,7 +670,7 @@ const ia = {
670
670
  },
671
671
  // 移除 loading
672
672
  done: (t = 0) => {
673
- Ot(() => {
673
+ Rt(() => {
674
674
  setTimeout(() => {
675
675
  var n;
676
676
  window.nextLoading = !1;
@@ -831,15 +831,15 @@ const ma = (t, e, n) => {
831
831
  const a = e.toLowerCase();
832
832
  return t.filter((l) => n(l).some((r) => r && r.toLowerCase().includes(a)));
833
833
  };
834
- let X;
834
+ let G;
835
835
  const pa = 60 * 1e3;
836
- let Y = !1, j = !1, B;
837
- const ya = /<script.*?src=["'](.*?)["'].*?><\/script>/g, $ = /index-(.*?)\.js/g, G = async () => fetch("/index.html?timestep=" + Date.now()).then((t) => t.text()).then((t) => {
836
+ let $ = !1, j = !1, B;
837
+ const ya = /<script.*?src=["'](.*?)["'].*?><\/script>/g, k = /index-(.*?)\.js/g, V = async () => fetch("/index.html?timestep=" + Date.now()).then((t) => t.text()).then((t) => {
838
838
  var n, a;
839
- const e = (n = t.match(ya)) == null ? void 0 : n.filter((l) => $.test(l));
840
- return e && e.length > 0 ? y.get(((a = e[0]) == null ? void 0 : a.match($)) || [], "0", "") : "";
841
- }), ee = () => G().then((t) => {
842
- t && t != X && !Y && (Y = !0, te(), se.confirm("系统版本更新了,是否立即刷新页面?", "提示", {
839
+ const e = (n = t.match(ya)) == null ? void 0 : n.filter((l) => k.test(l));
840
+ return e && e.length > 0 ? y.get(((a = e[0]) == null ? void 0 : a.match(k)) || [], "0", "") : "";
841
+ }), ee = () => V().then((t) => {
842
+ t && t != G && !$ && ($ = !0, te(), se.confirm("系统版本更新了,是否立即刷新页面?", "提示", {
843
843
  confirmButtonText: "立即刷新",
844
844
  cancelButtonText: "稍后刷新",
845
845
  type: "warning",
@@ -856,8 +856,8 @@ function te() {
856
856
  B && (clearTimeout(B), B = 0);
857
857
  }
858
858
  async function ba() {
859
- return G().then((t) => {
860
- X = t, I(), document.addEventListener("visibilitychange", () => {
859
+ return V().then((t) => {
860
+ G = t, I(), document.addEventListener("visibilitychange", () => {
861
861
  j = document.hidden, j ? te() : (ee(), I());
862
862
  });
863
863
  });
@@ -900,20 +900,20 @@ const U = (t) => {
900
900
  add: he,
901
901
  addUrlParams: ve,
902
902
  axiosInterceptors: _e,
903
- cfprint: O,
903
+ cfprint: R,
904
904
  checkPlugin: J,
905
905
  clearAllIndexDB: xe,
906
906
  convertCurrency: K,
907
907
  copyText: Ht,
908
908
  dataURLtoBlob: sa,
909
- dateFormatHMS: Vt,
910
- dateFormatYMD: Zt,
911
- dateFormatYMDHMS: Qt,
909
+ dateFormatHMS: Zt,
910
+ dateFormatYMD: Qt,
911
+ dateFormatYMDHMS: Xt,
912
912
  decimalDigits: we,
913
913
  decrypt: aa,
914
914
  deepClone: De,
915
915
  div: Ce,
916
- downloadFile: k,
916
+ downloadFile: Y,
917
917
  elSvg: Ee,
918
918
  encrypt: ta,
919
919
  encryptionTool: Ae,
@@ -937,39 +937,39 @@ const U = (t) => {
937
937
  getNumbers: je,
938
938
  getStoreSystemParams: Ie,
939
939
  getSystemParams: Le,
940
- getTableDataType: Re,
941
- getUrlBase64: $t,
942
- getUrlParams: Oe,
943
- getWeek: V,
944
- globalComponentSize: ke,
945
- handleEmpty: Ye,
946
- handleOpenLink: $e,
940
+ getTableDataType: Oe,
941
+ getUrlBase64: kt,
942
+ getUrlParams: Re,
943
+ getWeek: Z,
944
+ globalComponentSize: Ye,
945
+ handleEmpty: $e,
946
+ handleOpenLink: ke,
947
947
  iframeMessage: Ue,
948
948
  isLegalNumber: Ke,
949
949
  isMobile: He,
950
950
  isObjectValueEqual: H,
951
951
  isToNumber: qe,
952
952
  isUpdate: ba,
953
- judementSameArr: kt,
953
+ judementSameArr: Yt,
954
954
  lazyImg: We,
955
955
  lodash: y,
956
956
  mathTool: Je,
957
957
  message: ze,
958
- messageBox: Ze,
959
- mittBus: Qe,
960
- notification: Ve,
961
- numberToChinese: Xe,
962
- other: Ge,
958
+ messageBox: Qe,
959
+ mittBus: Xe,
960
+ notification: Ze,
961
+ numberToChinese: Ge,
962
+ other: Ve,
963
963
  percentFormat: zt,
964
964
  popupPlugin: et,
965
965
  print: Ut,
966
- processData: Q,
966
+ processData: X,
967
967
  push: tt,
968
968
  removeConfig: at,
969
969
  removeDuplicate: M,
970
970
  request: A,
971
- scale2Format: Gt,
972
- scaleFormat: Xt,
971
+ scale2Format: Vt,
972
+ scaleFormat: Gt,
973
973
  sendMsg: z,
974
974
  setColumnWidthConfig: nt,
975
975
  setConfig: lt,
@@ -982,7 +982,7 @@ const U = (t) => {
982
982
  times: ut,
983
983
  transferString: ga,
984
984
  treeToList: ca,
985
- trimPrintData: Z,
985
+ trimPrintData: Q,
986
986
  useChangeColor: E,
987
987
  useMittBus: ct,
988
988
  useRequest: dt,
@@ -1022,5 +1022,5 @@ export {
1022
1022
  na as e,
1023
1023
  fa as g,
1024
1024
  xa as i,
1025
- Q as p
1025
+ X as p
1026
1026
  };
@@ -1,5 +1,5 @@
1
1
  import { ref as I, computed as E, defineComponent as B, watch as pe, provide as Ke, reactive as vt, toRefs as Dt, createElementBlock as M, openBlock as F, normalizeClass as T, unref as o, renderSlot as D, inject as Te, onMounted as Xe, onBeforeUnmount as gt, onUpdated as Gr, createVNode as L, Fragment as Ve, nextTick as Fe, useSlots as Vn, createElementVNode as k, withCtx as q, createBlock as J, createCommentVNode as N, resolveDynamicComponent as mt, normalizeStyle as ne, createTextVNode as Ut, toDisplayString as Ee, TransitionGroup as Kr, toRef as At, Transition as Xr, withDirectives as yt, vShow as Yr, onActivated as Hn, Teleport as Gn, withModifiers as de, isRef as Zr, vModelRadio as Jr, markRaw as sr, effectScope as Kn, shallowRef as st, renderList as Qr, withKeys as en, createSlots as ir, mergeProps as or } from "vue";
2
- import { du as Xn, bl as Pe, dv as ht, dw as Se, bv as Yn, dx as tn, dy as rn, bx as Zn, bo as He, bp as Wt, dz as Jn, bw as Qn, bm as ea, bu as ke, dA as Vt, dB as it, dC as nn, dD as an, dE as qe, dF as ot, bn as ta, v as Ht, e as Re, bE as lt, b as Q, d as x, c as sn, bS as we, _ as se, ch as Gt, u as ae, d6 as Kt, o as bt, bY as Ft, t as Ye, A as on, c0 as ln, dG as ra, f as ut, de as _t, w as xe, s as Xt, k as Oe, l as na, a as _e, bW as un, z as aa, bK as sa, c2 as Yt, cd as cn, co as lr, c4 as Ze, cq as ia, cf as oa, cp as la, B as ct, dH as ua, dI as ca, h as fn, bX as fa, E as re, cx as Zt, cn as da, F as pa, dJ as va, dK as dn, dL as ga, dM as ma, bO as ya, b_ as Le, d9 as ha, dN as pn, ce as ba, cs as vn, bV as gn, bR as ee, dO as wa, dP as _a, dQ as ur, dR as $a, dk as Ta } from "./bcVisual.vue_vue_type_style_index_0_scoped_a917535e_lang-Ba5ByMVA.js";
2
+ import { du as Xn, bl as Pe, dv as ht, dw as Se, bv as Yn, dx as tn, dy as rn, bx as Zn, bo as He, bp as Wt, dz as Jn, bw as Qn, bm as ea, bu as ke, dA as Vt, dB as it, dC as nn, dD as an, dE as qe, dF as ot, bn as ta, v as Ht, e as Re, bE as lt, b as Q, d as x, c as sn, bS as we, _ as se, ch as Gt, u as ae, d6 as Kt, o as bt, bY as Ft, t as Ye, A as on, c0 as ln, dG as ra, f as ut, de as _t, w as xe, s as Xt, k as Oe, l as na, a as _e, bW as un, z as aa, bK as sa, c2 as Yt, cd as cn, co as lr, c4 as Ze, cq as ia, cf as oa, cp as la, B as ct, dH as ua, dI as ca, h as fn, bX as fa, E as re, cx as Zt, cn as da, F as pa, dJ as va, dK as dn, dL as ga, dM as ma, bO as ya, b_ as Le, d9 as ha, dN as pn, ce as ba, cs as vn, bV as gn, bR as ee, dO as wa, dP as _a, dQ as ur, dR as $a, dk as Ta } from "./bcVisual.vue_vue_type_style_index_0_scoped_39bc1e22_lang-DIm1RA0A.js";
3
3
  var Ea = /\s/;
4
4
  function Sa(t) {
5
5
  for (var e = t.length; e-- && Ea.test(t.charAt(e)); )