@partex/one-core 2.0.0 → 2.0.1

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/lib/one-core.js CHANGED
@@ -1,14 +1,14 @@
1
- var _n = Object.defineProperty;
2
- var $n = (e, a, t) => a in e ? _n(e, a, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[a] = t;
3
- var Ye = (e, a, t) => ($n(e, typeof a != "symbol" ? a + "" : a, t), t);
4
- import { defineComponent as W, openBlock as y, createElementBlock as A, createElementVNode as g, reactive as La, h as G, resolveComponent as p, createBlock as D, withCtx as n, createVNode as o, toDisplayString as V, ref as _, onMounted as se, onBeforeUnmount as fa, createTextVNode as U, pushScopeId as ye, popScopeId as we, Fragment as x, createCommentVNode as I, watch as te, renderList as na, withDirectives as la, vShow as ra, normalizeClass as vo, createSlots as Ba, renderSlot as be, withKeys as Fa, nextTick as Cn, normalizeStyle as kn, computed as go, mergeProps as aa, shallowRef as Nn } from "vue";
5
- import { createDiscreteApi as Tn, darkTheme as Ne, NTooltip as Te, NButton as Z, NPopconfirm as bo, NIcon as ue, NGrid as Se, NForm as Be, NFormItemGi as Sn, NInput as _e, NSelect as He, NInputNumber as Je, NDatePicker as qa, NTimePicker as yo, NSwitch as ma, NUpload as wo, NUploadDragger as On, NFlex as re, NPopover as Oe, NDataTable as Fe, useNotification as $e, NBadge as An, NRadioGroup as In, NRadioButton as Dn, NDropdown as _o, NMenu as Pn, NDrawer as Bn, NDrawerContent as Fn, NCard as Ga, NModal as $o, NTabs as ha, NTabPane as va, NFormItem as Ke, NGi as We, NDivider as Mn, NInputGroup as Ha, NInputGroupLabel as Co, NGridItem as Un, NCascader as jn, NTreeSelect as En, NSkeleton as zn } from "naive-ui";
1
+ var Cn = Object.defineProperty;
2
+ var kn = (e, a, t) => a in e ? Cn(e, a, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[a] = t;
3
+ var Ye = (e, a, t) => (kn(e, typeof a != "symbol" ? a + "" : a, t), t);
4
+ import { defineComponent as W, openBlock as y, createElementBlock as A, createElementVNode as g, reactive as La, h as G, resolveComponent as p, createBlock as D, withCtx as n, createVNode as o, toDisplayString as V, ref as _, onMounted as ue, onBeforeUnmount as fa, createTextVNode as U, pushScopeId as ye, popScopeId as we, Fragment as x, createCommentVNode as I, watch as te, renderList as na, withDirectives as la, vShow as ra, normalizeClass as vo, createSlots as Ba, renderSlot as be, withKeys as Fa, nextTick as Nn, normalizeStyle as Tn, computed as go, mergeProps as aa, shallowRef as Sn } from "vue";
5
+ import { createDiscreteApi as On, darkTheme as Ne, NTooltip as Te, NButton as Z, NPopconfirm as bo, NIcon as se, NGrid as Se, NForm as Be, NFormItemGi as An, NInput as _e, NSelect as He, NInputNumber as Je, NDatePicker as qa, NTimePicker as yo, NSwitch as ma, NUpload as wo, NUploadDragger as In, NFlex as ne, NPopover as Oe, NDataTable as Fe, useNotification as $e, NBadge as Dn, NRadioGroup as Pn, NRadioButton as Bn, NDropdown as _o, NMenu as Fn, NDrawer as $o, NDrawerContent as Co, NCard as Ga, NModal as ko, NTabs as ha, NTabPane as va, NFormItem as Ke, NGi as We, NDivider as Mn, NInputGroup as Ha, NInputGroupLabel as No, NGridItem as Un, NCascader as jn, NTreeSelect as En, NSkeleton as zn } from "naive-ui";
6
6
  import Ja from "axios";
7
7
  import { createRouter as Rn, createWebHistory as Vn, useRoute as ga, useRouter as Me } from "vue-router";
8
8
  import ta from "md5";
9
9
  import { useI18n as Ce } from "vue-i18n";
10
10
  import Ln from "jsqr";
11
- import ko from "vuedraggable";
11
+ import To from "vuedraggable";
12
12
  const qn = W({
13
13
  name: "OcActionButton",
14
14
  props: {
@@ -41,7 +41,7 @@ const qn = W({
41
41
  function Wn(e, a) {
42
42
  return y(), A("svg", Hn, Kn);
43
43
  }
44
- const No = /* @__PURE__ */ M(Gn, [["render", Wn]]), Qn = {}, Xn = {
44
+ const So = /* @__PURE__ */ M(Gn, [["render", Wn]]), Qn = {}, Xn = {
45
45
  xmlns: "http://www.w3.org/2000/svg",
46
46
  "xmlns:xlink": "http://www.w3.org/1999/xlink",
47
47
  viewBox: "0 0 24 24"
@@ -166,7 +166,7 @@ const Ul = /* @__PURE__ */ M(Dl, [["render", Ml]]), jl = {}, El = {
166
166
  function Vl(e, a) {
167
167
  return y(), A("svg", El, Rl);
168
168
  }
169
- const To = /* @__PURE__ */ M(jl, [["render", Vl]]), Ll = {}, ql = {
169
+ const Oo = /* @__PURE__ */ M(jl, [["render", Vl]]), Ll = {}, ql = {
170
170
  xmlns: "http://www.w3.org/2000/svg",
171
171
  "xmlns:xlink": "http://www.w3.org/1999/xlink",
172
172
  viewBox: "0 0 24 24"
@@ -254,7 +254,7 @@ const mr = /* @__PURE__ */ M(ir, [["render", fr]]), hr = {}, vr = {
254
254
  function yr(e, a) {
255
255
  return y(), A("svg", vr, br);
256
256
  }
257
- const So = /* @__PURE__ */ M(hr, [["render", yr]]), wr = {}, _r = {
257
+ const Ao = /* @__PURE__ */ M(hr, [["render", yr]]), wr = {}, _r = {
258
258
  xmlns: "http://www.w3.org/2000/svg",
259
259
  "xmlns:xlink": "http://www.w3.org/1999/xlink",
260
260
  viewBox: "0 0 24 24"
@@ -269,7 +269,7 @@ const So = /* @__PURE__ */ M(hr, [["render", yr]]), wr = {}, _r = {
269
269
  function kr(e, a) {
270
270
  return y(), A("svg", _r, Cr);
271
271
  }
272
- const Oo = /* @__PURE__ */ M(wr, [["render", kr]]), Nr = {}, Tr = {
272
+ const Io = /* @__PURE__ */ M(wr, [["render", kr]]), Nr = {}, Tr = {
273
273
  xmlns: "http://www.w3.org/2000/svg",
274
274
  "xmlns:xlink": "http://www.w3.org/1999/xlink",
275
275
  viewBox: "0 0 24 24"
@@ -314,7 +314,7 @@ const Wa = /* @__PURE__ */ M(Ir, [["render", Fr]]), Mr = {}, Ur = {
314
314
  function zr(e, a) {
315
315
  return y(), A("svg", Ur, Er);
316
316
  }
317
- const Ao = /* @__PURE__ */ M(Mr, [["render", zr]]), Rr = {}, Vr = {
317
+ const Do = /* @__PURE__ */ M(Mr, [["render", zr]]), Rr = {}, Vr = {
318
318
  xmlns: "http://www.w3.org/2000/svg",
319
319
  "xmlns:xlink": "http://www.w3.org/1999/xlink",
320
320
  viewBox: "0 0 24 24"
@@ -359,7 +359,7 @@ const Yr = /* @__PURE__ */ M(Jr, [["render", Xr]]), Zr = {}, xr = {
359
359
  function ts(e, a) {
360
360
  return y(), A("svg", xr, as);
361
361
  }
362
- const Io = /* @__PURE__ */ M(Zr, [["render", ts]]), os = {}, ns = {
362
+ const Po = /* @__PURE__ */ M(Zr, [["render", ts]]), os = {}, ns = {
363
363
  xmlns: "http://www.w3.org/2000/svg",
364
364
  "xmlns:xlink": "http://www.w3.org/1999/xlink",
365
365
  viewBox: "0 0 24 24"
@@ -415,18 +415,18 @@ ce.beforeEach(() => {
415
415
  Oa == null || Oa.removeAttribute("style");
416
416
  });
417
417
  const $s = Object.prototype.hasOwnProperty;
418
- function Do(e, a) {
418
+ function Bo(e, a) {
419
419
  const t = [];
420
420
  for (const s in e) {
421
421
  if (!$s.call(e, s))
422
422
  continue;
423
423
  const i = e[s], f = encodeURIComponent(s);
424
424
  let u;
425
- typeof i == "object" ? u = Do(i, a ? a + "[" + f + "]" : f) : u = (a ? a + "[" + f + "]" : f) + "=" + encodeURIComponent(i), t.push(u);
425
+ typeof i == "object" ? u = Bo(i, a ? a + "[" + f + "]" : f) : u = (a ? a + "[" + f + "]" : f) + "=" + encodeURIComponent(i), t.push(u);
426
426
  }
427
427
  return t.join("&");
428
428
  }
429
- const { notification: Aa } = Tn(["notification"], {
429
+ const { notification: Aa } = On(["notification"], {
430
430
  configProviderProps: {
431
431
  themeOverrides: {
432
432
  common: {
@@ -479,7 +479,7 @@ Ue.interceptors.request.use(
479
479
  e.cancelToken = Ma.token;
480
480
  const a = de("token", !1);
481
481
  if (e.headers && a && (e.headers["X-Auth-Token"] = a), ((t = e.method) == null ? void 0 : t.toLocaleUpperCase()) === "GET") {
482
- const s = Do(e.data);
482
+ const s = Bo(e.data);
483
483
  s && (e.url = `${e.url}?${s}`);
484
484
  }
485
485
  return e;
@@ -520,28 +520,28 @@ Ue.interceptors.response.use(
520
520
  );
521
521
  const Fb = () => {
522
522
  Ma.cancel(), Ma = Ja.CancelToken.source();
523
- }, Cs = () => ne("api/auth/user/logout"), ks = () => ne("api/manager/message/markReadAll"), Ns = () => ne("api/auth/user/updateTenantRenewalStatus"), Ts = (e) => ne("api/manager/job/remove", e), Ss = (e) => ne("api/manager/job/retry", {
523
+ }, Cs = () => le("api/auth/user/logout"), ks = () => le("api/manager/message/markReadAll"), Ns = () => le("api/auth/user/updateTenantRenewalStatus"), Ts = (e) => le("api/manager/job/remove", e), Ss = (e) => le("api/manager/job/retry", {
524
524
  jobId: e
525
525
  }), Os = (e) => new Promise((a, t) => {
526
526
  const s = wa(e);
527
- ne("api/manager/job/page", s).then((i) => {
527
+ le("api/manager/job/page", s).then((i) => {
528
528
  const f = ya(i);
529
529
  a(f);
530
530
  }).catch(() => {
531
531
  t();
532
532
  });
533
- }), Po = (e) => new Promise((a, t) => {
533
+ }), Fo = (e) => new Promise((a, t) => {
534
534
  const s = new FormData();
535
535
  s.append("jobType", "EXPORT"), Object.keys(e).forEach((i) => {
536
536
  e.query && i === "query" ? s.append("query", JSON.stringify(e.query)) : s.append(i, e[i]);
537
- }), Uo("api/manager/job/submit", s).then(() => {
537
+ }), Eo("api/manager/job/submit", s).then(() => {
538
538
  et(!0), a();
539
539
  }).catch((i) => {
540
540
  t(i);
541
541
  });
542
542
  }), As = (e) => new Promise((a, t) => {
543
543
  const s = wa(e);
544
- s.status === -1 && (s.status = ""), ne("api/manager/message/messagePage", s).then((i) => {
544
+ s.status === -1 && (s.status = ""), le("api/manager/message/messagePage", s).then((i) => {
545
545
  const f = ya(i);
546
546
  a({
547
547
  data: f,
@@ -550,13 +550,13 @@ const Fb = () => {
550
550
  }).catch(() => {
551
551
  t();
552
552
  });
553
- }), Is = (e) => ne("api/manager/message/markRead", {
553
+ }), Is = (e) => le("api/manager/message/markRead", {
554
554
  messageId: e
555
555
  }), Ut = (e) => {
556
556
  const a = JSON.parse(JSON.stringify(e));
557
- return a.password = ta(a.password), ne("api/user/v2/login", a);
557
+ return a.password = ta(a.password), le("api/user/v2/login", a);
558
558
  }, Ds = () => new Promise((e, a) => {
559
- ne("api/auth/user/getCurrentUserInfo", {}, "json", 1e4).then((t) => {
559
+ le("api/auth/user/getCurrentUserInfo", {}, "json", 1e4).then((t) => {
560
560
  const s = ["046459"];
561
561
  t.commissioner = !1, s.includes(String(t.tenantLoginCode)) && (t.commissioner = !0);
562
562
  const i = t.ownedProducts ? JSON.parse(t.ownedProducts) : [];
@@ -576,7 +576,7 @@ const Fb = () => {
576
576
  a();
577
577
  });
578
578
  });
579
- let Bo = !0;
579
+ let Mo = !0;
580
580
  const N = La({
581
581
  commissioner: !1,
582
582
  factoryId: "",
@@ -620,13 +620,13 @@ const N = La({
620
620
  industryCategory: "0"
621
621
  });
622
622
  function Ps(e) {
623
- Bo = e;
623
+ Mo = e;
624
624
  }
625
- function Fo(e) {
625
+ function Uo(e) {
626
626
  const a = window.location.host;
627
627
  if (a.includes("partexiot")) {
628
628
  const t = de("token", !1);
629
- N.industryCategory = e.industryCategory || "0", !a.includes("vpn") && Bo && (e.industryCategory === "0" && a.includes("printing") && (window.location.href = `https://www.partexiot.cn/auth?auth=${t}`), e.industryCategory === "1" && !a.includes("printing") && (window.location.href = `https://printing.partexiot.cn/auth?auth=${t}`));
629
+ N.industryCategory = e.industryCategory || "0", !a.includes("vpn") && Mo && (e.industryCategory === "0" && a.includes("printing") && (window.location.href = `https://www.partexiot.cn/auth?auth=${t}`), e.industryCategory === "1" && !a.includes("printing") && (window.location.href = `https://printing.partexiot.cn/auth?auth=${t}`));
630
630
  }
631
631
  if (N.commissioner = e.commissioner, N.factoryId = e.factoryId, N.tenantLoginCode = e.tenantLoginCode, N.userId = e.userId, N.email = e.email, N.name = e.name, N.realName = e.realName, N.tenantName = e.tenantName, N.phone = e.phone, N.info = e.info, N.kind = e.kind, N.oeeStatus = e.oeeStatus || 0, N.ncFlg = e.ncFlg || 0, N.systemType = e.systemType, N.platform_tdm = e.platform_tdm, N.platform_qms = e.platform_qms, N.platform_twin = e.platform_twin, N.platform_maintain = e.platform_maintain, N.platform_simple_tdm = e.platform_simple_tdm, N.authorizationGroupArray = e.authorizationGroupArray || [], N.authorizationMachineArray = e.authorizationMachineArray || [], N.iot_menu_authorization = e.iot_menu_authorization || [], N.tdm_menu_authorization = e.tdm_menu_authorization || [], N.qms_menu_authorization = e.qms_menu_authorization || [], N.maintain_menu_authorization = e.maintain_menu_authorization || [], N.endTime = e.endTime ?? 0, N.tenantStatus = e.tenantStatus ?? 1, N.renewalStatus = e.renewalStatus ?? 0, N.roleId = e.roleId || 0, N.kind === 1) {
632
632
  const t = e.info, s = String(e.info.type);
@@ -640,7 +640,7 @@ function Fo(e) {
640
640
  function Qa() {
641
641
  return new Promise((e, a) => {
642
642
  Ds().then((t) => {
643
- Fo(t), e(t);
643
+ Uo(t), e(t);
644
644
  }).catch(() => {
645
645
  a();
646
646
  });
@@ -655,7 +655,7 @@ function Xa() {
655
655
  theme: "light"
656
656
  }, N.kind = 0, N.systemType = 0, N.oeeStatus = 0, N.ncFlg = 0, N.password = "", N.enable = !0, N.platform_tdm = !1, N.platform_qms = !1, N.platform_twin = !1, N.platform_maintain = !1, N.platform_simple_tdm = !1, N.authorizationGroupArray = [], N.authorizationMachineArray = [], N.iot_menu_authorization = [], N.tdm_menu_authorization = [], N.qms_menu_authorization = [], N.maintain_menu_authorization = [], N.endTime = 0, N.tenantStatus = 1, N.renewalStatus = 0, N.roleId = 1;
657
657
  }
658
- async function Mo() {
658
+ async function jo() {
659
659
  await Cs().catch(() => null), ba("token"), Xa(), window.location.href = "/login";
660
660
  }
661
661
  const Ya = window.localStorage;
@@ -892,13 +892,13 @@ const js = (e, a, t = "json") => Ue({
892
892
  method: "GET",
893
893
  data: a,
894
894
  responseType: t
895
- }), ne = (e, a = {}, t = "json", s = 3e5) => Ue({
895
+ }), le = (e, a = {}, t = "json", s = 3e5) => Ue({
896
896
  url: `${xa}${e}`,
897
897
  method: "POST",
898
898
  data: a,
899
899
  responseType: t,
900
900
  timeout: s
901
- }), Rb = (e) => Ue(e), Uo = (e, a) => Ue({
901
+ }), Rb = (e) => Ue(e), Eo = (e, a) => Ue({
902
902
  headers: {
903
903
  "Content-Type": "multipart/form-data"
904
904
  },
@@ -927,7 +927,7 @@ function ia(e) {
927
927
  const a = document.body;
928
928
  a.dataset.lang = e;
929
929
  }
930
- function jo(e) {
930
+ function zo(e) {
931
931
  H.theme = e;
932
932
  const a = document.body, t = document.querySelector("meta[name=theme-color]");
933
933
  t && (e ? (t.setAttribute("content", "#2b2b2d"), a.dataset.theme = "dark") : (t.setAttribute("content", "#ffffff"), a.dataset.theme = ""));
@@ -941,11 +941,11 @@ function Rs(e) {
941
941
  function Vs(e) {
942
942
  H.needUpdate = e;
943
943
  }
944
- const Eo = () => {
944
+ const Ro = () => {
945
945
  H.isMobile = window.screen.availWidth < 769;
946
946
  };
947
- window.addEventListener("resize", Eo);
948
- Eo();
947
+ window.addEventListener("resize", Ro);
948
+ Ro();
949
949
  const Ze = (e, a) => G(
950
950
  Te,
951
951
  {},
@@ -972,7 +972,7 @@ const Ze = (e, a) => G(
972
972
  } else
973
973
  f.onClick = e.onClick;
974
974
  return t && (u.icon = () => G(
975
- ue,
975
+ se,
976
976
  {},
977
977
  {
978
978
  default: () => G(
@@ -1010,10 +1010,10 @@ const Ze = (e, a) => G(
1010
1010
  return e.forEach((i) => {
1011
1011
  let f;
1012
1012
  i.type === "detail" && (f = Ze(
1013
- xe(i, "primary", So, a, t),
1013
+ xe(i, "primary", Ao, a, t),
1014
1014
  H.lang === "zh-CN" ? "详情" : "Detail"
1015
1015
  )), i.type === "edit" && (f = Ze(
1016
- xe(i, "success", Oo, a, t),
1016
+ xe(i, "success", Io, a, t),
1017
1017
  H.lang === "zh-CN" ? "编辑" : "Edit"
1018
1018
  )), i.type === "delete" && (f = zt(
1019
1019
  Ze(
@@ -1059,7 +1059,7 @@ const Ks = /* @__PURE__ */ M(Ls, [["render", Js]]), Ws = W({
1059
1059
  components: {
1060
1060
  IconChevronLeft: pl,
1061
1061
  NButton: Z,
1062
- NIcon: ue
1062
+ NIcon: se
1063
1063
  },
1064
1064
  props: {
1065
1065
  to: {
@@ -1098,14 +1098,14 @@ function Qs(e, a, t, s, i, f) {
1098
1098
  }
1099
1099
  const Xs = /* @__PURE__ */ M(Ws, [["render", Qs]]);
1100
1100
  var ea = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
1101
- function zo(e) {
1101
+ function Vo(e) {
1102
1102
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1103
1103
  }
1104
1104
  function Ys(e) {
1105
1105
  var a = typeof e;
1106
1106
  return e != null && (a == "object" || a == "function");
1107
1107
  }
1108
- var Ie = Ys, Zs = typeof ea == "object" && ea && ea.Object === Object && ea, Ro = Zs, xs = Ro, eu = typeof self == "object" && self && self.Object === Object && self, au = xs || eu || Function("return this")(), pe = au, tu = pe, ou = function() {
1108
+ var Ie = Ys, Zs = typeof ea == "object" && ea && ea.Object === Object && ea, Lo = Zs, xs = Lo, eu = typeof self == "object" && self && self.Object === Object && self, au = xs || eu || Function("return this")(), pe = au, tu = pe, ou = function() {
1109
1109
  return tu.Date.now();
1110
1110
  }, nu = ou, lu = /\s/;
1111
1111
  function ru(e) {
@@ -1117,7 +1117,7 @@ var su = ru, uu = su, iu = /^\s+/;
1117
1117
  function du(e) {
1118
1118
  return e && e.slice(0, uu(e) + 1).replace(iu, "");
1119
1119
  }
1120
- var cu = du, pu = pe, fu = pu.Symbol, at = fu, Rt = at, Vo = Object.prototype, mu = Vo.hasOwnProperty, hu = Vo.toString, qe = Rt ? Rt.toStringTag : void 0;
1120
+ var cu = du, pu = pe, fu = pu.Symbol, at = fu, Rt = at, qo = Object.prototype, mu = qo.hasOwnProperty, hu = qo.toString, qe = Rt ? Rt.toStringTag : void 0;
1121
1121
  function vu(e) {
1122
1122
  var a = mu.call(e, qe), t = e[qe];
1123
1123
  try {
@@ -1209,15 +1209,15 @@ function Hu(e, a, t) {
1209
1209
  return Q.cancel = $, Q.flush = z, Q;
1210
1210
  }
1211
1211
  var Ju = Hu;
1212
- const Ku = /* @__PURE__ */ zo(Ju);
1212
+ const Ku = /* @__PURE__ */ Vo(Ju);
1213
1213
  let tt = 3840, ot = 2160;
1214
- const Lo = La({
1214
+ const Go = La({
1215
1215
  scale: 1
1216
1216
  });
1217
1217
  function Wu(e, a) {
1218
1218
  tt = e, ot = a;
1219
1219
  }
1220
- function qo() {
1220
+ function Ho() {
1221
1221
  let e = 1;
1222
1222
  const a = window.innerWidth, t = window.innerHeight, s = tt, i = ot, f = parseFloat(
1223
1223
  (s / i).toFixed(5)
@@ -1233,10 +1233,10 @@ function qo() {
1233
1233
  );
1234
1234
  e = r > 1 ? 1 : r;
1235
1235
  }
1236
- Lo.scale = e;
1236
+ Go.scale = e;
1237
1237
  }
1238
1238
  function Qu() {
1239
- const e = Ku(qo, 200);
1239
+ const e = Ku(Ho, 200);
1240
1240
  return e(), window.addEventListener("resize", e), () => {
1241
1241
  tt = 3840, ot = 2160, window.removeEventListener("resize", e);
1242
1242
  };
@@ -1250,7 +1250,7 @@ const Xu = W({
1250
1250
  const e = () => {
1251
1251
  ce.push(H.platformUrl);
1252
1252
  }, a = _();
1253
- return se(() => {
1253
+ return ue(() => {
1254
1254
  a.value = setInterval(() => {
1255
1255
  ce.push(H.platformUrl);
1256
1256
  }, 3e3);
@@ -1290,7 +1290,7 @@ const ti = /* @__PURE__ */ M(Xu, [["render", ai], ["__scopeId", "data-v-4387c328
1290
1290
  const e = () => {
1291
1291
  ce.push(H.platformUrl);
1292
1292
  }, a = _();
1293
- return se(() => {
1293
+ return ue(() => {
1294
1294
  a.value = setInterval(() => {
1295
1295
  ce.push(H.platformUrl);
1296
1296
  }, 3e3);
@@ -1333,7 +1333,7 @@ const di = /* @__PURE__ */ M(oi, [["render", ii], ["__scopeId", "data-v-d1bdd42b
1333
1333
  default: ""
1334
1334
  }
1335
1335
  }
1336
- }), Go = (e) => (ye("data-v-6af53728"), e = e(), we(), e), pi = { class: "oc-footer" }, fi = /* @__PURE__ */ Go(() => /* @__PURE__ */ g("span", { style: { "font-family": "Arial, Helvetica, sans-serif" } }, "©", -1)), mi = /* @__PURE__ */ Go(() => /* @__PURE__ */ g("a", {
1336
+ }), Jo = (e) => (ye("data-v-6af53728"), e = e(), we(), e), pi = { class: "oc-footer" }, fi = /* @__PURE__ */ Jo(() => /* @__PURE__ */ g("span", { style: { "font-family": "Arial, Helvetica, sans-serif" } }, "©", -1)), mi = /* @__PURE__ */ Jo(() => /* @__PURE__ */ g("a", {
1337
1337
  href: "https://beian.miit.gov.cn/",
1338
1338
  target: "_blank",
1339
1339
  class: "oc-footer-record"
@@ -1357,7 +1357,7 @@ var bi = gi;
1357
1357
  function yi(e, a) {
1358
1358
  return e === a || e !== e && a !== a;
1359
1359
  }
1360
- var Ho = yi, wi = Ho;
1360
+ var Ko = yi, wi = Ko;
1361
1361
  function _i(e, a) {
1362
1362
  for (var t = e.length; t--; )
1363
1363
  if (wi(e[t][0], a))
@@ -1423,7 +1423,7 @@ function td(e) {
1423
1423
  var a = Xi(e);
1424
1424
  return a == xi || a == ed || a == Zi || a == ad;
1425
1425
  }
1426
- var Jo = td, od = pe, nd = od["__core-js_shared__"], ld = nd, Pa = ld, Jt = function() {
1426
+ var Wo = td, od = pe, nd = od["__core-js_shared__"], ld = nd, Pa = ld, Jt = function() {
1427
1427
  var e = /[^.]+$/.exec(Pa && Pa.keys && Pa.keys.IE_PROTO || "");
1428
1428
  return e ? "Symbol(src)_1." + e : "";
1429
1429
  }();
@@ -1444,7 +1444,7 @@ function dd(e) {
1444
1444
  }
1445
1445
  return "";
1446
1446
  }
1447
- var Ko = dd, cd = Jo, pd = sd, fd = Ie, md = Ko, hd = /[\\^$.*+?()[\]{}|]/g, vd = /^\[object .+?Constructor\]$/, gd = Function.prototype, bd = Object.prototype, yd = gd.toString, wd = bd.hasOwnProperty, _d = RegExp(
1447
+ var Qo = dd, cd = Wo, pd = sd, fd = Ie, md = Qo, hd = /[\\^$.*+?()[\]{}|]/g, vd = /^\[object .+?Constructor\]$/, gd = Function.prototype, bd = Object.prototype, yd = gd.toString, wd = bd.hasOwnProperty, _d = RegExp(
1448
1448
  "^" + yd.call(wd).replace(hd, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
1449
1449
  );
1450
1450
  function $d(e) {
@@ -1594,12 +1594,12 @@ function Qc(e, a, t) {
1594
1594
  writable: !0
1595
1595
  }) : e[a] = t;
1596
1596
  }
1597
- var Wo = Qc, Xc = Wo, Yc = Ho, Zc = Object.prototype, xc = Zc.hasOwnProperty;
1597
+ var Xo = Qc, Xc = Xo, Yc = Ko, Zc = Object.prototype, xc = Zc.hasOwnProperty;
1598
1598
  function ep(e, a, t) {
1599
1599
  var s = e[a];
1600
1600
  (!(xc.call(e, a) && Yc(s, t)) || t === void 0 && !(a in e)) && Xc(e, a, t);
1601
1601
  }
1602
- var Qo = ep, ap = Qo, tp = Wo;
1602
+ var Yo = ep, ap = Yo, tp = Xo;
1603
1603
  function op(e, a, t, s) {
1604
1604
  var i = !t;
1605
1605
  t || (t = {});
@@ -1619,7 +1619,7 @@ var lp = np, rp = Qe, sp = je, up = "[object Arguments]";
1619
1619
  function ip(e) {
1620
1620
  return sp(e) && rp(e) == up;
1621
1621
  }
1622
- var dp = ip, Xt = dp, cp = je, Xo = Object.prototype, pp = Xo.hasOwnProperty, fp = Xo.propertyIsEnumerable, mp = Xt(/* @__PURE__ */ function() {
1622
+ var dp = ip, Xt = dp, cp = je, Zo = Object.prototype, pp = Zo.hasOwnProperty, fp = Zo.propertyIsEnumerable, mp = Xt(/* @__PURE__ */ function() {
1623
1623
  return arguments;
1624
1624
  }()) ? Xt : function(e) {
1625
1625
  return cp(e) && pp.call(e, "callee") && !fp.call(e, "callee");
@@ -1633,7 +1633,7 @@ da.exports;
1633
1633
  var t = pe, s = bp, i = a && !a.nodeType && a, f = i && !0 && e && !e.nodeType && e, u = f && f.exports === i, r = u ? t.Buffer : void 0, c = r ? r.isBuffer : void 0, h = c || s;
1634
1634
  e.exports = h;
1635
1635
  })(da, da.exports);
1636
- var Yo = da.exports, yp = 9007199254740991, wp = /^(?:0|[1-9]\d*)$/;
1636
+ var xo = da.exports, yp = 9007199254740991, wp = /^(?:0|[1-9]\d*)$/;
1637
1637
  function _p(e, a) {
1638
1638
  var t = typeof e;
1639
1639
  return a = a ?? yp, !!a && (t == "number" || t != "symbol" && wp.test(e)) && e > -1 && e % 1 == 0 && e < a;
@@ -1642,7 +1642,7 @@ var $p = _p, Cp = 9007199254740991;
1642
1642
  function kp(e) {
1643
1643
  return typeof e == "number" && e > -1 && e % 1 == 0 && e <= Cp;
1644
1644
  }
1645
- var Zo = kp, Np = Qe, Tp = Zo, Sp = je, Op = "[object Arguments]", Ap = "[object Array]", Ip = "[object Boolean]", Dp = "[object Date]", Pp = "[object Error]", Bp = "[object Function]", Fp = "[object Map]", Mp = "[object Number]", Up = "[object Object]", jp = "[object RegExp]", Ep = "[object Set]", zp = "[object String]", Rp = "[object WeakMap]", Vp = "[object ArrayBuffer]", Lp = "[object DataView]", qp = "[object Float32Array]", Gp = "[object Float64Array]", Hp = "[object Int8Array]", Jp = "[object Int16Array]", Kp = "[object Int32Array]", Wp = "[object Uint8Array]", Qp = "[object Uint8ClampedArray]", Xp = "[object Uint16Array]", Yp = "[object Uint32Array]", Y = {};
1645
+ var en = kp, Np = Qe, Tp = en, Sp = je, Op = "[object Arguments]", Ap = "[object Array]", Ip = "[object Boolean]", Dp = "[object Date]", Pp = "[object Error]", Bp = "[object Function]", Fp = "[object Map]", Mp = "[object Number]", Up = "[object Object]", jp = "[object RegExp]", Ep = "[object Set]", zp = "[object String]", Rp = "[object WeakMap]", Vp = "[object ArrayBuffer]", Lp = "[object DataView]", qp = "[object Float32Array]", Gp = "[object Float64Array]", Hp = "[object Int8Array]", Jp = "[object Int16Array]", Kp = "[object Int32Array]", Wp = "[object Uint8Array]", Qp = "[object Uint8ClampedArray]", Xp = "[object Uint16Array]", Yp = "[object Uint32Array]", Y = {};
1646
1646
  Y[qp] = Y[Gp] = Y[Hp] = Y[Jp] = Y[Kp] = Y[Wp] = Y[Qp] = Y[Xp] = Y[Yp] = !0;
1647
1647
  Y[Op] = Y[Ap] = Y[Vp] = Y[Ip] = Y[Lp] = Y[Dp] = Y[Pp] = Y[Bp] = Y[Fp] = Y[Mp] = Y[Up] = Y[jp] = Y[Ep] = Y[zp] = Y[Rp] = !1;
1648
1648
  function Zp(e) {
@@ -1657,7 +1657,7 @@ function ef(e) {
1657
1657
  var st = ef, ca = { exports: {} };
1658
1658
  ca.exports;
1659
1659
  (function(e, a) {
1660
- var t = Ro, s = a && !a.nodeType && a, i = s && !0 && e && !e.nodeType && e, f = i && i.exports === s, u = f && t.process, r = function() {
1660
+ var t = Lo, s = a && !a.nodeType && a, i = s && !0 && e && !e.nodeType && e, f = i && i.exports === s, u = f && t.process, r = function() {
1661
1661
  try {
1662
1662
  var c = i && i.require && i.require("util").types;
1663
1663
  return c || u && u.binding && u.binding("util");
@@ -1666,7 +1666,7 @@ ca.exports;
1666
1666
  }();
1667
1667
  e.exports = r;
1668
1668
  })(ca, ca.exports);
1669
- var ut = ca.exports, af = xp, tf = st, Yt = ut, Zt = Yt && Yt.isTypedArray, of = Zt ? tf(Zt) : af, nf = of, lf = lp, rf = hp, sf = rt, uf = Yo, df = $p, cf = nf, pf = Object.prototype, ff = pf.hasOwnProperty;
1669
+ var ut = ca.exports, af = xp, tf = st, Yt = ut, Zt = Yt && Yt.isTypedArray, of = Zt ? tf(Zt) : af, nf = of, lf = lp, rf = hp, sf = rt, uf = xo, df = $p, cf = nf, pf = Object.prototype, ff = pf.hasOwnProperty;
1670
1670
  function mf(e, a) {
1671
1671
  var t = sf(e), s = !t && rf(e), i = !t && !s && uf(e), f = !t && !s && !i && cf(e), u = t || s || i || f, r = u ? lf(e.length, String) : [], c = r.length;
1672
1672
  for (var h in e)
@@ -1677,7 +1677,7 @@ function mf(e, a) {
1677
1677
  df(h, c))) && r.push(h);
1678
1678
  return r;
1679
1679
  }
1680
- var xo = mf, hf = Object.prototype;
1680
+ var an = mf, hf = Object.prototype;
1681
1681
  function vf(e) {
1682
1682
  var a = e && e.constructor, t = typeof a == "function" && a.prototype || hf;
1683
1683
  return e === t;
@@ -1688,7 +1688,7 @@ function gf(e, a) {
1688
1688
  return e(a(t));
1689
1689
  };
1690
1690
  }
1691
- var en = gf, bf = en, yf = bf(Object.keys, Object), wf = yf, _f = it, $f = wf, Cf = Object.prototype, kf = Cf.hasOwnProperty;
1691
+ var tn = gf, bf = tn, yf = bf(Object.keys, Object), wf = yf, _f = it, $f = wf, Cf = Object.prototype, kf = Cf.hasOwnProperty;
1692
1692
  function Nf(e) {
1693
1693
  if (!_f(e))
1694
1694
  return $f(e);
@@ -1697,11 +1697,11 @@ function Nf(e) {
1697
1697
  kf.call(e, t) && t != "constructor" && a.push(t);
1698
1698
  return a;
1699
1699
  }
1700
- var Tf = Nf, Sf = Jo, Of = Zo;
1700
+ var Tf = Nf, Sf = Wo, Of = en;
1701
1701
  function Af(e) {
1702
1702
  return e != null && Of(e.length) && !Sf(e);
1703
1703
  }
1704
- var an = Af, If = xo, Df = Tf, Pf = an;
1704
+ var on = Af, If = an, Df = Tf, Pf = on;
1705
1705
  function Bf(e) {
1706
1706
  return Pf(e) ? If(e) : Df(e);
1707
1707
  }
@@ -1726,7 +1726,7 @@ function Hf(e) {
1726
1726
  s == "constructor" && (a || !Gf.call(e, s)) || t.push(s);
1727
1727
  return t;
1728
1728
  }
1729
- var Jf = Hf, Kf = xo, Wf = Jf, Qf = an;
1729
+ var Jf = Hf, Kf = an, Wf = Jf, Qf = on;
1730
1730
  function Xf(e) {
1731
1731
  return Qf(e) ? Kf(e, !0) : Wf(e);
1732
1732
  }
@@ -1765,7 +1765,7 @@ var lm = nm;
1765
1765
  function rm() {
1766
1766
  return [];
1767
1767
  }
1768
- var tn = rm, sm = lm, um = tn, im = Object.prototype, dm = im.propertyIsEnumerable, xt = Object.getOwnPropertySymbols, cm = xt ? function(e) {
1768
+ var nn = rm, sm = lm, um = nn, im = Object.prototype, dm = im.propertyIsEnumerable, xt = Object.getOwnPropertySymbols, cm = xt ? function(e) {
1769
1769
  return e == null ? [] : (e = Object(e), sm(xt(e), function(a) {
1770
1770
  return dm.call(e, a);
1771
1771
  }));
@@ -1779,30 +1779,30 @@ function vm(e, a) {
1779
1779
  e[i + t] = a[t];
1780
1780
  return e;
1781
1781
  }
1782
- var on = vm, gm = en, bm = gm(Object.getPrototypeOf, Object), nn = bm, ym = on, wm = nn, _m = pt, $m = tn, Cm = Object.getOwnPropertySymbols, km = Cm ? function(e) {
1782
+ var ln = vm, gm = tn, bm = gm(Object.getPrototypeOf, Object), rn = bm, ym = ln, wm = rn, _m = pt, $m = nn, Cm = Object.getOwnPropertySymbols, km = Cm ? function(e) {
1783
1783
  for (var a = []; e; )
1784
1784
  ym(a, _m(e)), e = wm(e);
1785
1785
  return a;
1786
- } : $m, ln = km, Nm = Ta, Tm = ln;
1786
+ } : $m, sn = km, Nm = Ta, Tm = sn;
1787
1787
  function Sm(e, a) {
1788
1788
  return Nm(e, Tm(e), a);
1789
1789
  }
1790
- var Om = Sm, Am = on, Im = rt;
1790
+ var Om = Sm, Am = ln, Im = rt;
1791
1791
  function Dm(e, a, t) {
1792
1792
  var s = a(e);
1793
1793
  return Im(e) ? s : Am(s, t(e));
1794
1794
  }
1795
- var rn = Dm, Pm = rn, Bm = pt, Fm = dt;
1795
+ var un = Dm, Pm = un, Bm = pt, Fm = dt;
1796
1796
  function Mm(e) {
1797
1797
  return Pm(e, Fm, Bm);
1798
1798
  }
1799
- var Um = Mm, jm = rn, Em = ln, zm = ct;
1799
+ var Um = Mm, jm = un, Em = sn, zm = ct;
1800
1800
  function Rm(e) {
1801
1801
  return jm(e, zm, Em);
1802
1802
  }
1803
- var Vm = Rm, Lm = De, qm = pe, Gm = Lm(qm, "DataView"), Hm = Gm, Jm = De, Km = pe, Wm = Jm(Km, "Promise"), Qm = Wm, Xm = De, Ym = pe, Zm = Xm(Ym, "Set"), xm = Zm, e1 = De, a1 = pe, t1 = e1(a1, "WeakMap"), o1 = t1, ja = Hm, Ea = lt, za = Qm, Ra = xm, Va = o1, sn = Qe, Le = Ko, eo = "[object Map]", n1 = "[object Object]", ao = "[object Promise]", to = "[object Set]", oo = "[object WeakMap]", no = "[object DataView]", l1 = Le(ja), r1 = Le(Ea), s1 = Le(za), u1 = Le(Ra), i1 = Le(Va), ke = sn;
1803
+ var Vm = Rm, Lm = De, qm = pe, Gm = Lm(qm, "DataView"), Hm = Gm, Jm = De, Km = pe, Wm = Jm(Km, "Promise"), Qm = Wm, Xm = De, Ym = pe, Zm = Xm(Ym, "Set"), xm = Zm, e1 = De, a1 = pe, t1 = e1(a1, "WeakMap"), o1 = t1, ja = Hm, Ea = lt, za = Qm, Ra = xm, Va = o1, dn = Qe, Le = Qo, eo = "[object Map]", n1 = "[object Object]", ao = "[object Promise]", to = "[object Set]", oo = "[object WeakMap]", no = "[object DataView]", l1 = Le(ja), r1 = Le(Ea), s1 = Le(za), u1 = Le(Ra), i1 = Le(Va), ke = dn;
1804
1804
  (ja && ke(new ja(new ArrayBuffer(1))) != no || Ea && ke(new Ea()) != eo || za && ke(za.resolve()) != ao || Ra && ke(new Ra()) != to || Va && ke(new Va()) != oo) && (ke = function(e) {
1805
- var a = sn(e), t = a == n1 ? e.constructor : void 0, s = t ? Le(t) : "";
1805
+ var a = dn(e), t = a == n1 ? e.constructor : void 0, s = t ? Le(t) : "";
1806
1806
  if (s)
1807
1807
  switch (s) {
1808
1808
  case l1:
@@ -1893,7 +1893,7 @@ var eh = x1, ah = Ie, io = Object.create, th = /* @__PURE__ */ function() {
1893
1893
  var t = new e();
1894
1894
  return e.prototype = void 0, t;
1895
1895
  };
1896
- }(), oh = th, nh = oh, lh = nn, rh = it;
1896
+ }(), oh = th, nh = oh, lh = rn, rh = it;
1897
1897
  function sh(e) {
1898
1898
  return typeof e.constructor == "function" && !rh(e) ? nh(lh(e)) : {};
1899
1899
  }
@@ -1905,9 +1905,9 @@ var fh = ph, mh = fh, hh = st, co = ut, po = co && co.isMap, vh = po ? hh(po) :
1905
1905
  function _h(e) {
1906
1906
  return yh(e) && bh(e) == wh;
1907
1907
  }
1908
- var $h = _h, Ch = $h, kh = st, fo = ut, mo = fo && fo.isSet, Nh = mo ? kh(mo) : Ch, Th = Nh, Sh = qc, Oh = Hc, Ah = Qo, Ih = jf, Dh = em, Ph = am, Bh = om, Fh = hm, Mh = Om, Uh = Um, jh = Vm, Eh = ft, zh = f1, Rh = eh, Vh = uh, Lh = rt, qh = Yo, Gh = gh, Hh = Ie, Jh = Th, Kh = dt, Wh = ct, Qh = 1, Xh = 2, Yh = 4, un = "[object Arguments]", Zh = "[object Array]", xh = "[object Boolean]", e0 = "[object Date]", a0 = "[object Error]", dn = "[object Function]", t0 = "[object GeneratorFunction]", o0 = "[object Map]", n0 = "[object Number]", cn = "[object Object]", l0 = "[object RegExp]", r0 = "[object Set]", s0 = "[object String]", u0 = "[object Symbol]", i0 = "[object WeakMap]", d0 = "[object ArrayBuffer]", c0 = "[object DataView]", p0 = "[object Float32Array]", f0 = "[object Float64Array]", m0 = "[object Int8Array]", h0 = "[object Int16Array]", v0 = "[object Int32Array]", g0 = "[object Uint8Array]", b0 = "[object Uint8ClampedArray]", y0 = "[object Uint16Array]", w0 = "[object Uint32Array]", X = {};
1909
- X[un] = X[Zh] = X[d0] = X[c0] = X[xh] = X[e0] = X[p0] = X[f0] = X[m0] = X[h0] = X[v0] = X[o0] = X[n0] = X[cn] = X[l0] = X[r0] = X[s0] = X[u0] = X[g0] = X[b0] = X[y0] = X[w0] = !0;
1910
- X[a0] = X[dn] = X[i0] = !1;
1908
+ var $h = _h, Ch = $h, kh = st, fo = ut, mo = fo && fo.isSet, Nh = mo ? kh(mo) : Ch, Th = Nh, Sh = qc, Oh = Hc, Ah = Yo, Ih = jf, Dh = em, Ph = am, Bh = om, Fh = hm, Mh = Om, Uh = Um, jh = Vm, Eh = ft, zh = f1, Rh = eh, Vh = uh, Lh = rt, qh = xo, Gh = gh, Hh = Ie, Jh = Th, Kh = dt, Wh = ct, Qh = 1, Xh = 2, Yh = 4, cn = "[object Arguments]", Zh = "[object Array]", xh = "[object Boolean]", e0 = "[object Date]", a0 = "[object Error]", pn = "[object Function]", t0 = "[object GeneratorFunction]", o0 = "[object Map]", n0 = "[object Number]", fn = "[object Object]", l0 = "[object RegExp]", r0 = "[object Set]", s0 = "[object String]", u0 = "[object Symbol]", i0 = "[object WeakMap]", d0 = "[object ArrayBuffer]", c0 = "[object DataView]", p0 = "[object Float32Array]", f0 = "[object Float64Array]", m0 = "[object Int8Array]", h0 = "[object Int16Array]", v0 = "[object Int32Array]", g0 = "[object Uint8Array]", b0 = "[object Uint8ClampedArray]", y0 = "[object Uint16Array]", w0 = "[object Uint32Array]", X = {};
1909
+ X[cn] = X[Zh] = X[d0] = X[c0] = X[xh] = X[e0] = X[p0] = X[f0] = X[m0] = X[h0] = X[v0] = X[o0] = X[n0] = X[fn] = X[l0] = X[r0] = X[s0] = X[u0] = X[g0] = X[b0] = X[y0] = X[w0] = !0;
1910
+ X[a0] = X[pn] = X[i0] = !1;
1911
1911
  function oa(e, a, t, s, i, f) {
1912
1912
  var u, r = a & Qh, c = a & Xh, h = a & Yh;
1913
1913
  if (t && (u = i ? t(e, s, i, f) : t(e)), u !== void 0)
@@ -1919,10 +1919,10 @@ function oa(e, a, t, s, i, f) {
1919
1919
  if (u = zh(e), !r)
1920
1920
  return Bh(e, u);
1921
1921
  } else {
1922
- var w = Eh(e), m = w == dn || w == t0;
1922
+ var w = Eh(e), m = w == pn || w == t0;
1923
1923
  if (qh(e))
1924
1924
  return Ph(e, r);
1925
- if (w == cn || w == un || m && !i) {
1925
+ if (w == fn || w == cn || m && !i) {
1926
1926
  if (u = c || m ? {} : Vh(e), !r)
1927
1927
  return c ? Mh(e, Dh(u, e)) : Fh(e, Ih(u, e));
1928
1928
  } else {
@@ -1950,12 +1950,13 @@ function N0(e) {
1950
1950
  return $0(e, C0 | k0);
1951
1951
  }
1952
1952
  var T0 = N0;
1953
- const le = /* @__PURE__ */ zo(T0), S0 = W({
1953
+ const re = /* @__PURE__ */ Vo(T0), S0 = W({
1954
1954
  name: "OcForm",
1955
1955
  components: {
1956
+ NIcon: se,
1956
1957
  NGrid: Se,
1957
1958
  NForm: Be,
1958
- NFormItemGi: Sn,
1959
+ NFormItemGi: An,
1959
1960
  NButton: Z,
1960
1961
  NInput: _e,
1961
1962
  NSelect: He,
@@ -1964,7 +1965,7 @@ const le = /* @__PURE__ */ zo(T0), S0 = W({
1964
1965
  NTimePicker: yo,
1965
1966
  NSwitch: ma,
1966
1967
  NUpload: wo,
1967
- NUploadDragger: On,
1968
+ NUploadDragger: In,
1968
1969
  IconMailInboxAdd: Wa
1969
1970
  },
1970
1971
  props: {
@@ -2005,7 +2006,7 @@ const le = /* @__PURE__ */ zo(T0), S0 = W({
2005
2006
  },
2006
2007
  setup(e, { expose: a }) {
2007
2008
  const t = _(), s = _({}), i = _([]), f = (w) => !(e.edit && w.edit && !w.edit.show), u = () => {
2008
- const w = le(e.items);
2009
+ const w = re(e.items);
2009
2010
  w.forEach((m) => {
2010
2011
  if (m.rule && m.rule.validator && typeof m.rule.validator == "string") {
2011
2012
  const v = m.rule.validator, O = new Function("rule", "value", v);
@@ -2019,14 +2020,14 @@ const le = /* @__PURE__ */ zo(T0), S0 = W({
2019
2020
  }, h = () => new Promise((w, m) => {
2020
2021
  var v;
2021
2022
  (v = t.value) == null || v.validate((O) => {
2022
- O ? m() : w(le(s.value));
2023
+ O ? m() : w(re(s.value));
2023
2024
  });
2024
2025
  }), C = () => {
2025
2026
  var w;
2026
2027
  (w = t.value) == null || w.restoreValidation();
2027
2028
  };
2028
- return se(() => {
2029
- s.value = le(e.data), u();
2029
+ return ue(() => {
2030
+ s.value = re(e.data), u();
2030
2031
  }), a({ validate: h, restoreValidation: C }), te(
2031
2032
  () => e.items,
2032
2033
  () => {
@@ -2035,7 +2036,7 @@ const le = /* @__PURE__ */ zo(T0), S0 = W({
2035
2036
  ), te(
2036
2037
  () => e.data,
2037
2038
  (w) => {
2038
- s.value = le(w);
2039
+ s.value = re(w);
2039
2040
  }
2040
2041
  ), {
2041
2042
  formRef: t,
@@ -2085,7 +2086,8 @@ function D0(e, a, t, s, i, f) {
2085
2086
  clearable: $.clearable,
2086
2087
  minlength: $.minlength,
2087
2088
  maxlength: $.maxlength,
2088
- rows: $.rows
2089
+ rows: $.rows,
2090
+ "show-count": ""
2089
2091
  }, null, 8, ["value", "onUpdate:value", "type", "disabled", "readonly", "clearable", "minlength", "maxlength", "rows"])) : I("", !0),
2090
2092
  $.input === "number" ? (y(), D(r, {
2091
2093
  key: 1,
@@ -2188,17 +2190,17 @@ function D0(e, a, t, s, i, f) {
2188
2190
  _: 1
2189
2191
  }, 8, ["model", "disabled", "inline", "labelWidth", "labelAlign", "labelPlacement"]);
2190
2192
  }
2191
- const pn = /* @__PURE__ */ M(S0, [["render", D0]]), P0 = W({
2193
+ const mn = /* @__PURE__ */ M(S0, [["render", D0]]), P0 = W({
2192
2194
  name: "HeaderPop",
2193
2195
  components: {
2194
- NFlex: re,
2196
+ NFlex: ne,
2195
2197
  NInput: _e,
2196
2198
  NPopover: Oe,
2197
2199
  NTooltip: Te,
2198
2200
  NButton: Z,
2199
- NIcon: ue,
2201
+ NIcon: se,
2200
2202
  NDataTable: Fe,
2201
- IconSearch: To,
2203
+ IconSearch: Oo,
2202
2204
  IconArrowClockwise: sa,
2203
2205
  IconArrowSquareDown: bl
2204
2206
  // IconFullScreenMaximize
@@ -2455,15 +2457,15 @@ function F0(e, a, t, s, i, f) {
2455
2457
  const M0 = /* @__PURE__ */ M(P0, [["render", F0]]), U0 = W({
2456
2458
  name: "HeaderPop",
2457
2459
  components: {
2458
- NBadge: An,
2460
+ NBadge: Dn,
2459
2461
  NPopover: Oe,
2460
- NFlex: re,
2462
+ NFlex: ne,
2461
2463
  NTooltip: Te,
2462
2464
  NButton: Z,
2463
- NIcon: ue,
2465
+ NIcon: se,
2464
2466
  NDataTable: Fe,
2465
- NRadioGroup: In,
2466
- NRadioButton: Dn,
2467
+ NRadioGroup: Pn,
2468
+ NRadioButton: Bn,
2467
2469
  IconAlert: el,
2468
2470
  IconClear: rl,
2469
2471
  IconArrowClockwise: sa
@@ -2697,11 +2699,11 @@ const z0 = /* @__PURE__ */ M(U0, [["render", E0]]), R0 = W({
2697
2699
  Pop: M0,
2698
2700
  Message: z0,
2699
2701
  NDropdown: _o,
2700
- NMenu: Pn,
2701
- NIcon: ue,
2702
+ NMenu: Fn,
2703
+ NIcon: se,
2702
2704
  NButton: Z,
2703
- NDrawer: Bn,
2704
- NDrawerContent: Fn,
2705
+ NDrawer: $o,
2706
+ NDrawerContent: Co,
2705
2707
  NCard: Ga,
2706
2708
  IconWeatherSunny: Il,
2707
2709
  IconWeatherMoon: kl,
@@ -2741,7 +2743,7 @@ const z0 = /* @__PURE__ */ M(U0, [["render", E0]]), R0 = W({
2741
2743
  },
2742
2744
  setup(e) {
2743
2745
  const { t: a } = Ce(), t = ga(), s = Me(), i = $e(), f = _(""), u = _("/iot/home"), r = _(!1), c = _(!1), h = _(void 0), C = _(10), w = _([]), m = _(""), v = _(de("lang", "zh-CN")), O = (T) => {
2744
- r.value = T, jo(T), ve("theme", T, 0);
2746
+ r.value = T, zo(T), ve("theme", T, 0);
2745
2747
  }, k = (T) => {
2746
2748
  const J = T.split("/");
2747
2749
  u.value = `/${J[1]}/${J[2]}`, Ua();
@@ -2770,7 +2772,7 @@ const z0 = /* @__PURE__ */ M(U0, [["render", E0]]), R0 = W({
2770
2772
  default: () => T.label
2771
2773
  }
2772
2774
  ), z = (T) => T.icon ? G(
2773
- ue,
2775
+ se,
2774
2776
  {
2775
2777
  size: 24,
2776
2778
  onClick: () => b(T)
@@ -2865,7 +2867,7 @@ const z0 = /* @__PURE__ */ M(U0, [["render", E0]]), R0 = W({
2865
2867
  }
2866
2868
  ), T;
2867
2869
  }, P = async (T) => {
2868
- T === "logout" && Mo(), T === "theme" && O(!r.value), T === "language" && ee(), T === "info" && s.push("/custom/my"), T === "report" && s.push("/custom/report"), T === "android" && window.open("http://miiot.partexiot.cn/dk7u"), T === "ios" && window.open("https://apps.apple.com/cn/app/id1587313547"), T === "chrome" && window.open("http://partex-cloud-static.oss-cn-hangzhou.aliyuncs.com/Software/chrome_installer.exe"), T === "edge" && window.open("http://partex-cloud-static.oss-cn-hangzhou.aliyuncs.com/Software/MicrosoftEdgeSetup.exe"), T === "dashboard_IoT" && window.open(
2870
+ T === "logout" && jo(), T === "theme" && O(!r.value), T === "language" && ee(), T === "info" && s.push("/custom/my"), T === "report" && s.push("/custom/report"), T === "android" && window.open("http://miiot.partexiot.cn/dk7u"), T === "ios" && window.open("https://apps.apple.com/cn/app/id1587313547"), T === "chrome" && window.open("http://partex-cloud-static.oss-cn-hangzhou.aliyuncs.com/Software/chrome_installer.exe"), T === "edge" && window.open("http://partex-cloud-static.oss-cn-hangzhou.aliyuncs.com/Software/MicrosoftEdgeSetup.exe"), T === "dashboard_IoT" && window.open(
2869
2871
  "http://partex-cloud-static.oss-cn-hangzhou.aliyuncs.com/Software/%E9%9B%B6%E6%8D%B7%E4%BA%92%E8%81%94IoT_v1.2.0.zip"
2870
2872
  ), T === "dashboard_Prt" && window.open(
2871
2873
  "http://partex-cloud-static.oss-cn-hangzhou.aliyuncs.com/Software/%E9%9B%B6%E6%8D%B7%E4%BA%92%E8%81%94%E5%8D%B0%E5%88%B7%E7%89%88_v1.2.0.zip"
@@ -2887,7 +2889,7 @@ const z0 = /* @__PURE__ */ M(U0, [["render", E0]]), R0 = W({
2887
2889
  const T = document.getElementById("app");
2888
2890
  T && T.classList.add("outrange"), i.info({
2889
2891
  action: () => G(
2890
- re,
2892
+ ne,
2891
2893
  {
2892
2894
  size: [15, 15]
2893
2895
  },
@@ -2959,7 +2961,7 @@ const z0 = /* @__PURE__ */ M(U0, [["render", E0]]), R0 = W({
2959
2961
  )
2960
2962
  ]), i.info({
2961
2963
  action: () => G(
2962
- re,
2964
+ ne,
2963
2965
  {
2964
2966
  size: [15, 15]
2965
2967
  },
@@ -2986,7 +2988,7 @@ const z0 = /* @__PURE__ */ M(U0, [["render", E0]]), R0 = W({
2986
2988
  T && T.classList.add("outrange");
2987
2989
  }
2988
2990
  };
2989
- return se(() => {
2991
+ return ue(() => {
2990
2992
  ia(v.value), oe(), k(t.path), R(), F(), w.value = L();
2991
2993
  }), te(() => H.isMobile, () => {
2992
2994
  window.screen.availWidth <= 1300 && window.screen.availWidth >= 1030 ? m.value = "tiny-menu" : window.screen.availWidth < 769 ? m.value = "hide-menu" : m.value = "";
@@ -3015,7 +3017,7 @@ const z0 = /* @__PURE__ */ M(U0, [["render", E0]]), R0 = W({
3015
3017
  clearInterval(window.versionMonitor);
3016
3018
  },
3017
3019
  action: () => G(
3018
- re,
3020
+ ne,
3019
3021
  {
3020
3022
  justify: "space-between"
3021
3023
  },
@@ -3273,14 +3275,14 @@ function H0(e, a, t, s, i, f) {
3273
3275
  }, 8, ["show"])
3274
3276
  ]);
3275
3277
  }
3276
- const J0 = /* @__PURE__ */ M(R0, [["render", H0]]), fn = (e) => {
3278
+ const J0 = /* @__PURE__ */ M(R0, [["render", H0]]), hn = (e) => {
3277
3279
  const a = new FormData();
3278
3280
  return Object.keys(e).forEach((t) => {
3279
3281
  e.query && t === "query" ? a.append("query", JSON.stringify(e.query)) : a.append(t, e[t]);
3280
- }), Uo("api/manager/job/submit", a);
3282
+ }), Eo("api/manager/job/submit", a);
3281
3283
  }, K0 = (e) => new Promise((a, t) => {
3282
3284
  const s = wa(e);
3283
- ne("api/manager/job/page", s).then((i) => {
3285
+ le("api/manager/job/page", s).then((i) => {
3284
3286
  const f = ya(i);
3285
3287
  a(f);
3286
3288
  }).catch(() => {
@@ -3292,14 +3294,14 @@ const J0 = /* @__PURE__ */ M(R0, [["render", H0]]), fn = (e) => {
3292
3294
  IconDismiss: Ge,
3293
3295
  IconArrowClockwise: sa,
3294
3296
  IconMailInboxAdd: Wa,
3295
- IconCloudArrowDown: Ao,
3296
- NModal: $o,
3297
+ IconCloudArrowDown: Do,
3298
+ NModal: ko,
3297
3299
  NCard: Ga,
3298
- NFlex: re,
3300
+ NFlex: ne,
3299
3301
  NUpload: wo,
3300
3302
  NButton: Z,
3301
3303
  NTooltip: Te,
3302
- NIcon: ue,
3304
+ NIcon: se,
3303
3305
  NDataTable: Fe
3304
3306
  },
3305
3307
  props: {
@@ -3412,7 +3414,7 @@ const J0 = /* @__PURE__ */ M(R0, [["render", H0]]), fn = (e) => {
3412
3414
  }, w = (k) => {
3413
3415
  u.value.pageSize = k, u.value.page = 1, v();
3414
3416
  }, m = (k) => new Promise((b, d) => {
3415
- k.file.file && fn({
3417
+ k.file.file && hn({
3416
3418
  jobType: "IMPORT",
3417
3419
  jobTypeName: e.type,
3418
3420
  jobParams: e.params,
@@ -3581,7 +3583,7 @@ function Y0(e, a, t, s, i, f) {
3581
3583
  _: 3
3582
3584
  }, 8, ["show", "on-mask-click"]);
3583
3585
  }
3584
- const mn = /* @__PURE__ */ M(Q0, [["render", Y0]]), Z0 = {
3586
+ const vn = /* @__PURE__ */ M(Q0, [["render", Y0]]), Z0 = {
3585
3587
  Platform: {
3586
3588
  iot: "智能效率监测平台",
3587
3589
  tdm: "智能刀具管理平台",
@@ -4304,7 +4306,7 @@ const _v = /* @__PURE__ */ M(tv, [["render", wv]]), $v = W({
4304
4306
  (r, c) => {
4305
4307
  u(Number(c) || 0, Number(r));
4306
4308
  }
4307
- ), se(() => {
4309
+ ), ue(() => {
4308
4310
  u();
4309
4311
  }), {
4310
4312
  displayedValueRef: t
@@ -4314,13 +4316,13 @@ const _v = /* @__PURE__ */ M(tv, [["render", wv]]), $v = W({
4314
4316
  function Cv(e, a, t, s, i, f) {
4315
4317
  return V(e.displayedValueRef);
4316
4318
  }
4317
- const hn = /* @__PURE__ */ M($v, [["render", Cv]]), kv = W({
4319
+ const gn = /* @__PURE__ */ M($v, [["render", Cv]]), kv = W({
4318
4320
  name: "OcLogo",
4319
4321
  components: {
4320
4322
  NGrid: Se,
4321
4323
  NGi: We,
4322
4324
  NDivider: Mn,
4323
- NumberRoll: hn
4325
+ NumberRoll: gn
4324
4326
  },
4325
4327
  props: {
4326
4328
  text: {
@@ -4330,7 +4332,7 @@ const hn = /* @__PURE__ */ M($v, [["render", Cv]]), kv = W({
4330
4332
  },
4331
4333
  setup() {
4332
4334
  const e = _(Date.now()), a = _(void 0), t = (s) => ge(s, "yyyy-MM-dd hh:mm:ss");
4333
- return se(() => {
4335
+ return ue(() => {
4334
4336
  a.value = setInterval(() => {
4335
4337
  e.value = Date.now();
4336
4338
  }, 1e3);
@@ -4390,8 +4392,8 @@ function Sv(e, a, t, s, i, f) {
4390
4392
  }
4391
4393
  const Ov = /* @__PURE__ */ M(kv, [["render", Sv], ["__scopeId", "data-v-e71866dd"]]), Av = (e) => {
4392
4394
  const a = JSON.parse(JSON.stringify(e));
4393
- return a.oldPassword = ta(a.oldPassword), a.newPassword = ta(a.newPassword), a.comfirmPassword = ta(a.comfirmPassword), ne("api/auth/user/modifyPassword", a);
4394
- }, Iv = (e) => ne("api/auth/user/update", e), Dv = W({
4395
+ return a.oldPassword = ta(a.oldPassword), a.newPassword = ta(a.newPassword), a.comfirmPassword = ta(a.comfirmPassword), le("api/auth/user/modifyPassword", a);
4396
+ }, Iv = (e) => le("api/auth/user/update", e), Dv = W({
4395
4397
  name: "OcMy",
4396
4398
  components: {
4397
4399
  NGrid: Se,
@@ -4693,7 +4695,7 @@ function Rv(e, a, t, s, i, f) {
4693
4695
  const Vv = /* @__PURE__ */ M(Dv, [["render", Rv]]);
4694
4696
  function Lv(e) {
4695
4697
  return new Promise((a, t) => {
4696
- ne("api/manager/factory-params/detail", { keyName: e }).then((s) => {
4698
+ le("api/manager/factory-params/detail", { keyName: e }).then((s) => {
4697
4699
  const i = JSON.parse(s.valueJson ?? "[]");
4698
4700
  a(i);
4699
4701
  }).catch(() => {
@@ -4704,11 +4706,11 @@ function Lv(e) {
4704
4706
  const qv = W({
4705
4707
  name: "OcReport",
4706
4708
  components: {
4707
- NFlex: re,
4709
+ NFlex: ne,
4708
4710
  NDataTable: Fe,
4709
4711
  NDatePicker: qa,
4710
4712
  NInputGroup: Ha,
4711
- NInputGroupLabel: Co
4713
+ NInputGroupLabel: No
4712
4714
  },
4713
4715
  setup() {
4714
4716
  const { t: e } = Ce(), a = _(!0), t = $e(), s = _([
@@ -4756,7 +4758,7 @@ const qv = W({
4756
4758
  }
4757
4759
  }
4758
4760
  ]), i = _([]), f = _([Date.now(), Date.now()]), u = (c) => {
4759
- a.value = !0, fn({
4761
+ a.value = !0, hn({
4760
4762
  jobType: "EXPORT",
4761
4763
  jobTypeName: c,
4762
4764
  jobParams: JSON.stringify({
@@ -4832,10 +4834,10 @@ const Kv = /* @__PURE__ */ M(qv, [["render", Jv]]), Wv = W({
4832
4834
  name: "OcScan",
4833
4835
  components: {
4834
4836
  NButton: Z,
4835
- NModal: $o,
4837
+ NModal: ko,
4836
4838
  NCard: Ga,
4837
- NFlex: re,
4838
- NIcon: ue,
4839
+ NFlex: ne,
4840
+ NIcon: se,
4839
4841
  IconDismiss: Ge
4840
4842
  },
4841
4843
  emits: ["on-update:value"],
@@ -4869,7 +4871,7 @@ const Kv = /* @__PURE__ */ M(qv, [["render", Jv]]), Wv = W({
4869
4871
  }, O = (b) => {
4870
4872
  t.value.srcObject !== void 0 ? t.value.srcObject = b : window.videoEl.mozSrcObject !== void 0 ? t.value.mozSrcObject = b : window.URL.createObjectURL ? t.value.src = window.URL.createObjectURL(b) : window.webkitURL ? t.value.src = window.webkitURL.createObjectURL(b) : t.value.src = b, t.value.play().then(m);
4871
4873
  }, k = () => {
4872
- s.value = !0, Cn(() => {
4874
+ s.value = !0, Nn(() => {
4873
4875
  navigator.mediaDevices && navigator.mediaDevices.getUserMedia ? (i.value = !0, h = document.getElementById("oc-scan-canvas"), h && (c = h.getContext("2d", { willReadFrequently: !0 })), navigator.mediaDevices.getUserMedia({ video: !0 }).then(O).catch(function(b) {
4874
4876
  console.log(b);
4875
4877
  })) : (i.value = !1, f.error({
@@ -4990,7 +4992,7 @@ const eg = /* @__PURE__ */ M(Wv, [["render", xv], ["__scopeId", "data-v-c9f98f5b
4990
4992
  }, f = (u) => {
4991
4993
  s.value = u, a("on-update:value", [t.value, s.value]);
4992
4994
  };
4993
- return se(() => {
4995
+ return ue(() => {
4994
4996
  e.value && (t.value = e.value[0], s.value = e.value[1]);
4995
4997
  }), te(() => e.value, (u) => {
4996
4998
  u && (t.value = u[0], s.value = u[1]);
@@ -5028,7 +5030,7 @@ function ng(e, a, t, s, i, f) {
5028
5030
  const lg = /* @__PURE__ */ M(ag, [["render", ng], ["__scopeId", "data-v-8ef98aeb"]]), rg = W({
5029
5031
  name: "OcSearchBarItem",
5030
5032
  components: {
5031
- NIcon: ue,
5033
+ NIcon: se,
5032
5034
  NButton: Z,
5033
5035
  NGrid: Se,
5034
5036
  NGridItem: Un,
@@ -5042,9 +5044,9 @@ const lg = /* @__PURE__ */ M(ag, [["render", ng], ["__scopeId", "data-v-8ef98aeb
5042
5044
  NTreeSelect: En,
5043
5045
  NDatePicker: qa,
5044
5046
  NInputGroup: Ha,
5045
- NInputGroupLabel: Co,
5047
+ NInputGroupLabel: No,
5046
5048
  OcTimePickRange: lg,
5047
- IconArrowDown: Io,
5049
+ IconArrowDown: Po,
5048
5050
  IconArrowUp: us
5049
5051
  },
5050
5052
  props: {
@@ -5336,7 +5338,7 @@ function ig(e, a, t, s, i, f) {
5336
5338
  "onUpdate:value": (K) => e.searchData[P] = K,
5337
5339
  options: l.options,
5338
5340
  "show-checkmark": !1,
5339
- style: kn(
5341
+ style: Tn(
5340
5342
  l.width ? typeof l.width == "number" ? {
5341
5343
  width: `${l.width}px`
5342
5344
  } : {
@@ -5522,14 +5524,14 @@ function vg(e, a, t, s, i, f) {
5522
5524
  const gg = /* @__PURE__ */ M(cg, [["render", vg]]), bg = W({
5523
5525
  name: "OcSearchBar",
5524
5526
  components: {
5525
- NFlex: re,
5526
- NIcon: ue,
5527
+ NFlex: ne,
5528
+ NIcon: se,
5527
5529
  NTooltip: Te,
5528
5530
  NButton: Z,
5529
5531
  NPopover: Oe,
5530
- IconArrowDown: Io,
5532
+ IconArrowDown: Po,
5531
5533
  IconReset: ms,
5532
- IconSearch: To,
5534
+ IconSearch: Oo,
5533
5535
  IconBar: _s,
5534
5536
  OcSearchBarItem: dg,
5535
5537
  OcSearchBarPop: gg
@@ -5597,7 +5599,7 @@ const gg = /* @__PURE__ */ M(cg, [["render", vg]]), bg = W({
5597
5599
  };
5598
5600
  return s({ setValues: v, setData: (k) => {
5599
5601
  u.value && u.value.dataFactory(k);
5600
- } }), se(() => {
5602
+ } }), ue(() => {
5601
5603
  setTimeout(() => {
5602
5604
  let k = e.value;
5603
5605
  if (e.cache) {
@@ -5816,7 +5818,7 @@ function Cg(e, a, t, s, i, f) {
5816
5818
  ], 64))
5817
5819
  ], 34);
5818
5820
  }
5819
- const vn = /* @__PURE__ */ M(bg, [["render", Cg]]), kg = W({
5821
+ const bn = /* @__PURE__ */ M(bg, [["render", Cg]]), kg = W({
5820
5822
  name: "OcSkeleton",
5821
5823
  components: {
5822
5824
  NGrid: Se,
@@ -5873,19 +5875,19 @@ const Sg = /* @__PURE__ */ M(kg, [["render", Tg]]), Og = W({
5873
5875
  NTooltip: Te,
5874
5876
  NPopover: Oe,
5875
5877
  NButton: Z,
5876
- NIcon: ue,
5877
- NFlex: re,
5878
+ NIcon: se,
5879
+ NFlex: ne,
5878
5880
  NPopconfirm: bo,
5879
5881
  IconFilter: or,
5880
5882
  IconNavigation: Hr,
5881
- IconEye: So,
5883
+ IconEye: Ao,
5882
5884
  IconPin: Yr,
5883
- IconAdd: No,
5885
+ IconAdd: So,
5884
5886
  IconMailInboxAdd: Wa,
5885
- IconCloudArrowDown: Ao,
5886
- Draggable: ko,
5887
- OcSearchBar: vn,
5888
- OcImporter: mn
5887
+ IconCloudArrowDown: Do,
5888
+ Draggable: To,
5889
+ OcSearchBar: bn,
5890
+ OcImporter: vn
5889
5891
  },
5890
5892
  props: {
5891
5893
  columns: {
@@ -5984,7 +5986,7 @@ const Sg = /* @__PURE__ */ M(kg, [["render", Tg]]), Og = W({
5984
5986
  }
5985
5987
  B();
5986
5988
  }, fe = () => {
5987
- c.value = !0, Po({
5989
+ c.value = !0, Fo({
5988
5990
  ...e.exporter,
5989
5991
  jobParams: JSON.stringify(v.value)
5990
5992
  }).then(() => {
@@ -5998,19 +6000,19 @@ const Sg = /* @__PURE__ */ M(kg, [["render", Tg]]), Og = W({
5998
6000
  c.value = !1;
5999
6001
  });
6000
6002
  }, oe = (S = !1) => {
6001
- const ee = le(e.columns), R = [], j = [], F = {}, T = {};
6003
+ const ee = re(e.columns), R = [], j = [], F = {}, T = {};
6002
6004
  let J = {};
6003
6005
  if (ee.forEach((q) => {
6004
6006
  if (q.search) {
6005
6007
  q.search.title || (q.search.title = q.title), q.search.defaultValue && (F[q.search.key || q.key] = q.search.defaultValue);
6006
- const ae = le(q.search);
6008
+ const ae = re(q.search);
6007
6009
  T[q.search.key || q.key] = ae;
6008
6010
  }
6009
6011
  if (delete q.search, q.render && typeof q.render == "string") {
6010
6012
  const ae = q.render, me = new Function("rowData", "rowIndex", "h", ae);
6011
6013
  q.render = (he, Xe) => me(he, Xe, G);
6012
6014
  }
6013
- R.push(le(q)), O.value = le(F), j.push({
6015
+ R.push(re(q)), O.value = re(F), j.push({
6014
6016
  ...q,
6015
6017
  show: q.show || !0,
6016
6018
  pin: q.pin || !1
@@ -6023,7 +6025,7 @@ const Sg = /* @__PURE__ */ M(kg, [["render", Tg]]), Og = W({
6023
6025
  }
6024
6026
  }
6025
6027
  if (e.actions && e.actions.length > 0) {
6026
- const q = le(e.actions), ae = {
6028
+ const q = re(e.actions), ae = {
6027
6029
  title: () => s("Common.action"),
6028
6030
  key: "action",
6029
6031
  align: "center",
@@ -6044,7 +6046,7 @@ const Sg = /* @__PURE__ */ M(kg, [["render", Tg]]), Og = W({
6044
6046
  ...J
6045
6047
  }, w.value = j, t.value && t.value.setValues(JSON.parse(JSON.stringify(v.value))), t.value && t.value.setData(JSON.parse(JSON.stringify(k.value)));
6046
6048
  };
6047
- return se(() => {
6049
+ return ue(() => {
6048
6050
  oe(!0);
6049
6051
  }), te(
6050
6052
  () => w.value,
@@ -6317,46 +6319,46 @@ function Ig(e, a, t, s, i, f) {
6317
6319
  }, null, 8, ["show", "type", "file"])) : I("", !0)
6318
6320
  ], 64);
6319
6321
  }
6320
- const gn = /* @__PURE__ */ M(Og, [["render", Ig]]), Dg = (e, a, t) => `<template>
6321
- <OcTable
6322
- :columns="columns"
6323
- :actions="actions"
6324
- :fetch="fetchData"
6325
- :drawer="drawerData"
6326
- ></OcTable>
6327
- <n-drawer v-model:show="drawer" width="900" placement="right">
6328
- <n-drawer-content
6329
- :title="ocFormEdit ? $t('Common.edit') : $t('Common.add')"
6330
- closable
6331
- >
6332
- <OcForm
6333
- ref="ocFormRef"
6334
- :items="forms"
6335
- :data="drawerData"
6336
- :edit="ocFormEdit"
6337
- />
6338
- <template #footer>
6339
- <n-flex>
6340
- <n-button @click="drawerCancel">
6341
- {{ $t('Common.cancel') }}
6342
- </n-button>
6343
- <n-button class="button-primary" @click="drawerSubmit">
6344
- {{ $t('Common.apply') }}
6345
- </n-button>
6346
- </n-flex>
6347
- </template>
6348
- </n-drawer-content>
6349
- </n-drawer>
6322
+ const yn = /* @__PURE__ */ M(Og, [["render", Ig]]), Dg = (e, a, t, s) => `<template>
6323
+ <div>
6324
+ <OcTable
6325
+ :columns="columns"
6326
+ :actions="actions"
6327
+ :fetch="fetchData"
6328
+ :add-fn="drawerAdd"
6329
+ ></OcTable>
6330
+ <n-drawer v-model:show="drawer" width="900" placement="right">
6331
+ <n-drawer-content
6332
+ :title="ocFormEdit ? $t('Common.edit') : $t('Common.add')"
6333
+ closable
6334
+ >
6335
+ <OcForm
6336
+ ref="ocFormRef"
6337
+ :items="forms"
6338
+ :data="drawerData"
6339
+ :edit="ocFormEdit"
6340
+ />
6341
+ <template #footer>
6342
+ <n-flex>
6343
+ <n-button @click="drawerCancel">
6344
+ {{ $t('Common.cancel') }}
6345
+ </n-button>
6346
+ <n-button class="button-primary" @click="drawerSubmit">
6347
+ {{ $t('Common.apply') }}
6348
+ </n-button>
6349
+ </n-flex>
6350
+ </template>
6351
+ </n-drawer-content>
6352
+ </n-drawer>
6353
+ </div>
6350
6354
  </template>
6351
6355
 
6352
6356
  <script setup lang="ts">
6353
6357
  import type {
6354
- IOcDataTableColumn,
6355
6358
  IOcDataTableColumns,
6356
6359
  IActionButton,
6357
6360
  IFormItems
6358
6361
  } from '@partex/one-core'
6359
- import { OcTable, OcForm } from '@partex/one-core'
6360
6362
 
6361
6363
  const ocFormRef = ref()
6362
6364
  const ocFormEdit = ref(false)
@@ -6373,13 +6375,20 @@ const columns = ref<IOcDataTableColumns>(${JSON.stringify(e)})
6373
6375
  // }
6374
6376
  // }
6375
6377
  const actions = ref<IActionButton[]>(${JSON.stringify(a)})
6378
+ const forms = ref<IFormItems>(${JSON.stringify(t)})
6376
6379
  const drawerData = ref({
6377
- items: ${JSON.stringify(t)},
6380
+ items: forms.value,
6378
6381
  fetch: () => {
6379
6382
  // return Promise function
6380
6383
  }
6381
6384
  })
6382
6385
 
6386
+ const fetchData = (value: any) => {
6387
+ return new Promise((resolve) => {
6388
+ resolve(${JSON.stringify(s)})
6389
+ })
6390
+ }
6391
+
6383
6392
  const drawerAdd = (): void => {
6384
6393
  // TODO
6385
6394
  ocFormEdit.value = false
@@ -6430,14 +6439,14 @@ const drawerSubmit = (): void => {
6430
6439
  var c;
6431
6440
  (c = f.value) == null || c.getAction("editor.action.formatDocument").run();
6432
6441
  }
6433
- const i = _(), f = Nn(), u = (c) => {
6442
+ const i = _(), f = Sn(), u = (c) => {
6434
6443
  f.value = c, setTimeout(() => {
6435
6444
  s();
6436
6445
  }, 800);
6437
6446
  }, r = (c) => {
6438
6447
  a("update:value", c);
6439
6448
  };
6440
- return se(() => {
6449
+ return ue(() => {
6441
6450
  i.value = e.value;
6442
6451
  }), te(
6443
6452
  () => e.value,
@@ -6469,7 +6478,7 @@ function Bg(e, a, t, s, i, f) {
6469
6478
  const Sa = /* @__PURE__ */ M(Pg, [["render", Bg], ["__scopeId", "data-v-a3f61317"]]), Fg = W({
6470
6479
  name: "OcTableEditHeader",
6471
6480
  components: {
6472
- NFlex: re,
6481
+ NFlex: ne,
6473
6482
  NForm: Be,
6474
6483
  NFormItem: Ke,
6475
6484
  NButton: Z,
@@ -6506,13 +6515,13 @@ const Sa = /* @__PURE__ */ M(Pg, [["render", Bg], ["__scopeId", "data-v-a3f61317
6506
6515
  }), s = () => {
6507
6516
  if (!e.value)
6508
6517
  return;
6509
- const m = le(e.value);
6518
+ const m = re(e.value);
6510
6519
  m.ellipsis && typeof m.ellipsis == "object" && (m.ellipsis.tooltip ? m.ellipsis = !0 : m.ellipsis = !1), m.search || (m.search = {
6511
6520
  // @ts-ignore
6512
6521
  type: ""
6513
6522
  }), t.value = m;
6514
6523
  }, i = () => {
6515
- const m = le(t.value);
6524
+ const m = re(t.value);
6516
6525
  return m.ellipsis && (m.ellipsis = {
6517
6526
  tooltip: !0
6518
6527
  }), m.search.type === "" && delete m.search, m;
@@ -6631,7 +6640,7 @@ const Sa = /* @__PURE__ */ M(Pg, [["render", Bg], ["__scopeId", "data-v-a3f61317
6631
6640
  }, w = () => {
6632
6641
  a("update:cancel", !1);
6633
6642
  };
6634
- return se(() => {
6643
+ return ue(() => {
6635
6644
  s();
6636
6645
  }), te(
6637
6646
  () => e.value,
@@ -6652,7 +6661,7 @@ const Sa = /* @__PURE__ */ M(Pg, [["render", Bg], ["__scopeId", "data-v-a3f61317
6652
6661
  doCancel: w
6653
6662
  };
6654
6663
  }
6655
- }), bn = (e) => (ye("data-v-96ff5615"), e = e(), we(), e), Mg = { class: "oc-table-edit-header" }, Ug = /* @__PURE__ */ bn(() => /* @__PURE__ */ g("div", null, "提供 rowData, rowIndex, h", -1)), jg = /* @__PURE__ */ bn(() => /* @__PURE__ */ g("br", null, null, -1));
6664
+ }), wn = (e) => (ye("data-v-96ff5615"), e = e(), we(), e), Mg = { class: "oc-table-edit-header" }, Ug = /* @__PURE__ */ wn(() => /* @__PURE__ */ g("div", null, "提供 rowData, rowIndex, h", -1)), jg = /* @__PURE__ */ wn(() => /* @__PURE__ */ g("br", null, null, -1));
6656
6665
  function Eg(e, a, t, s, i, f) {
6657
6666
  const u = p("NInput"), r = p("NFormItem"), c = p("NSelect"), h = p("NInputNumber"), C = p("NSwitch"), w = p("NForm"), m = p("NTabPane"), v = p("OcTableEditCode"), O = p("NTabs"), k = p("NButton"), b = p("NFlex");
6658
6667
  return y(), A("div", Mg, [
@@ -7160,7 +7169,7 @@ function Eg(e, a, t, s, i, f) {
7160
7169
  const zg = /* @__PURE__ */ M(Fg, [["render", Eg], ["__scopeId", "data-v-96ff5615"]]), Rg = W({
7161
7170
  name: "OcTableEditAction",
7162
7171
  components: {
7163
- NFlex: re,
7172
+ NFlex: ne,
7164
7173
  NForm: Be,
7165
7174
  NFormItem: Ke,
7166
7175
  NButton: Z,
@@ -7234,8 +7243,8 @@ const zg = /* @__PURE__ */ M(Fg, [["render", Eg], ["__scopeId", "data-v-96ff5615
7234
7243
  value: "error"
7235
7244
  }
7236
7245
  ]);
7237
- return se(() => {
7238
- e.value && (t.value = le(e.value));
7246
+ return ue(() => {
7247
+ e.value && (t.value = re(e.value));
7239
7248
  }), {
7240
7249
  element: t,
7241
7250
  options: f,
@@ -7412,7 +7421,7 @@ function Hg(e, a, t, s, i, f) {
7412
7421
  const Jg = /* @__PURE__ */ M(Rg, [["render", Hg], ["__scopeId", "data-v-fe3e1c3f"]]), Kg = W({
7413
7422
  name: "OcTableEditAction",
7414
7423
  components: {
7415
- NFlex: re,
7424
+ NFlex: ne,
7416
7425
  NForm: Be,
7417
7426
  NFormItem: Ke,
7418
7427
  NButton: Z,
@@ -7631,8 +7640,8 @@ const Jg = /* @__PURE__ */ M(Rg, [["render", Hg], ["__scopeId", "data-v-fe3e1c3f
7631
7640
  value: "focus"
7632
7641
  }
7633
7642
  ]);
7634
- return se(() => {
7635
- e.value && (t.value = le(e.value));
7643
+ return ue(() => {
7644
+ e.value && (t.value = re(e.value));
7636
7645
  }), {
7637
7646
  element: t,
7638
7647
  options: f,
@@ -8132,20 +8141,23 @@ function Qg(e, a, t, s, i, f) {
8132
8141
  const Xg = /* @__PURE__ */ M(Kg, [["render", Qg], ["__scopeId", "data-v-1f7dfc48"]]), Yg = W({
8133
8142
  name: "OcTableEdit",
8134
8143
  components: {
8135
- Draggable: ko,
8144
+ Draggable: To,
8136
8145
  NButton: Z,
8137
- NIcon: ue,
8146
+ NIcon: se,
8138
8147
  NPopover: Oe,
8139
- OcTable: gn,
8148
+ OcTable: yn,
8140
8149
  OcTableEditHeader: zg,
8141
8150
  OcTableEditAction: Jg,
8142
8151
  OcTableEditForm: Xg,
8143
8152
  OcTableEditCode: Sa,
8144
- OcForm: pn,
8145
- IconDrafts: Oo,
8146
- IconAdd: No,
8153
+ OcForm: mn,
8154
+ IconDrafts: Io,
8155
+ IconAdd: So,
8147
8156
  NGrid: Se,
8148
- NGi: We
8157
+ NGi: We,
8158
+ NFlex: ne,
8159
+ NDrawer: $o,
8160
+ NDrawerContent: Co
8149
8161
  },
8150
8162
  setup() {
8151
8163
  const e = _(), a = _([]), t = _(), s = _([]), i = _(), f = _([]), u = _(), r = _(!1), c = _(!1), h = go(() => ({
@@ -8247,7 +8259,12 @@ const Xg = /* @__PURE__ */ M(Kg, [["render", Qg], ["__scopeId", "data-v-1f7dfc48
8247
8259
  m.value[j] = R, B();
8248
8260
  },
8249
8261
  createVue: () => {
8250
- b.value = Dg(C.value, w.value, m.value);
8262
+ b.value = Dg(
8263
+ C.value,
8264
+ w.value,
8265
+ m.value,
8266
+ v.value
8267
+ );
8251
8268
  },
8252
8269
  addHeader: (R) => {
8253
8270
  switch (R) {
@@ -8275,7 +8292,7 @@ const Xg = /* @__PURE__ */ M(Kg, [["render", Qg], ["__scopeId", "data-v-1f7dfc48
8275
8292
  }), Zg = /* @__PURE__ */ g("br", null, null, -1), xg = { class: "com-card" }, eb = /* @__PURE__ */ g("span", { class: "com-title" }, "Header", -1), ab = { class: "oc-table-edit-header-item" }, tb = /* @__PURE__ */ g("br", null, null, -1), ob = { class: "com-card" }, nb = /* @__PURE__ */ g("span", { class: "com-title" }, "Action", -1), lb = { class: "oc-table-edit-header-item" }, rb = /* @__PURE__ */ g("br", null, null, -1), sb = { class: "com-card" }, ub = /* @__PURE__ */ g("span", { class: "com-title" }, "Form", -1), ib = { class: "oc-table-edit-header-item" }, db = /* @__PURE__ */ g("br", null, null, -1), cb = { class: "com-card" }, pb = /* @__PURE__ */ g("span", { class: "com-title" }, "Table Data", -1), fb = { class: "com-card" }, mb = /* @__PURE__ */ g("span", { class: "com-title" }, "Form Data", -1), hb = { class: "com-card" }, vb = /* @__PURE__ */ g("span", { class: "com-title" }, "VUE", -1);
8276
8293
  function gb(e, a, t, s, i, f) {
8277
8294
  const u = p("OcTable"), r = p("OcForm"), c = p("NButton"), h = p("NFlex"), C = p("NDrawerContent"), w = p("NDrawer"), m = p("IconAdd"), v = p("NIcon"), O = p("OcTableEditHeader"), k = p("NPopover"), b = p("IconDrafts"), d = p("Draggable"), B = p("OcTableEditAction"), $ = p("OcTableEditForm"), z = p("OcTableEditCode"), Q = p("NGi"), E = p("NGrid");
8278
- return y(), A(x, null, [
8295
+ return y(), A("div", null, [
8279
8296
  o(u, {
8280
8297
  columns: e.columns,
8281
8298
  actions: e.actions,
@@ -8665,7 +8682,7 @@ function gb(e, a, t, s, i, f) {
8665
8682
  ]),
8666
8683
  _: 1
8667
8684
  })
8668
- ], 64);
8685
+ ]);
8669
8686
  }
8670
8687
  const bb = /* @__PURE__ */ M(Yg, [["render", gb]]), ho = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
8671
8688
  __proto__: null,
@@ -8675,39 +8692,39 @@ const bb = /* @__PURE__ */ M(Yg, [["render", gb]]), ho = /* @__PURE__ */ Object.
8675
8692
  OcAuth: Ks,
8676
8693
  OcBack: Xs,
8677
8694
  OcFooter: vi,
8678
- OcForm: pn,
8695
+ OcForm: mn,
8679
8696
  OcHeader: J0,
8680
- OcImporter: mn,
8697
+ OcImporter: vn,
8681
8698
  OcLogin: _v,
8682
8699
  OcLogo: Ov,
8683
8700
  OcMy: Vv,
8684
- OcNumberRoll: hn,
8701
+ OcNumberRoll: gn,
8685
8702
  OcReport: Kv,
8686
8703
  OcScan: eg,
8687
- OcSearchBar: vn,
8704
+ OcSearchBar: bn,
8688
8705
  OcSkeleton: Sg,
8689
- OcTable: gn,
8706
+ OcTable: yn,
8690
8707
  OcTableEdit: bb,
8691
8708
  fnClearUser: Xa,
8692
- fnComputedScale: qo,
8693
- fnDownload: Po,
8709
+ fnComputedScale: Ho,
8710
+ fnDownload: Fo,
8694
8711
  fnGetUser: Qa,
8695
8712
  fnListenerScale: Qu,
8696
8713
  fnRenderAction: Ae,
8697
8714
  fnSetLang: ia,
8698
8715
  fnSetNormalWidthAndHeight: Wu,
8699
8716
  fnSetPlatform: zs,
8700
- fnSetTheme: jo,
8701
- fnSetUser: Fo,
8702
- fnUserLogout: Mo,
8717
+ fnSetTheme: zo,
8718
+ fnSetUser: Uo,
8719
+ fnUserLogout: jo,
8703
8720
  headerStore: H,
8704
8721
  langCN: ev,
8705
8722
  langUS: av,
8706
- scaleStore: Lo,
8723
+ scaleStore: Go,
8707
8724
  userStore: N
8708
- }, Symbol.toStringTag, { value: "Module" })), yb = "2.0.0";
8709
- let yn;
8710
- async function wn() {
8725
+ }, Symbol.toStringTag, { value: "Module" })), yb = "2.0.1";
8726
+ let _n;
8727
+ async function $n() {
8711
8728
  const e = await fetch(
8712
8729
  `${window.location.protocol}//${window.location.host}`,
8713
8730
  {
@@ -8718,11 +8735,11 @@ async function wn() {
8718
8735
  return e.headers.get("etag") || e.headers.get("last-modified");
8719
8736
  }
8720
8737
  async function wb() {
8721
- const e = await wn();
8722
- yn !== e && Vs(!0);
8738
+ const e = await $n();
8739
+ _n !== e && Vs(!0);
8723
8740
  }
8724
8741
  async function _b() {
8725
- yn = await wn(), window.versionMonitor && clearInterval(window.versionMonitor), window.versionMonitor = setInterval(() => {
8742
+ _n = await $n(), window.versionMonitor && clearInterval(window.versionMonitor), window.versionMonitor = setInterval(() => {
8726
8743
  wb();
8727
8744
  }, 60 * 1e3);
8728
8745
  }
@@ -8754,23 +8771,23 @@ const Cb = $b({
8754
8771
  }), Jb = Cb.install;
8755
8772
  export {
8756
8773
  Rb as CUSTOM,
8757
- Uo as FILE,
8774
+ Eo as FILE,
8758
8775
  js as GET,
8759
- No as IconAdd,
8776
+ So as IconAdd,
8760
8777
  el as IconAlert,
8761
8778
  sa as IconArrowClockwise,
8762
- Io as IconArrowDown,
8779
+ Po as IconArrowDown,
8763
8780
  bl as IconArrowSquareDown,
8764
8781
  us as IconArrowUp,
8765
8782
  _s as IconBar,
8766
8783
  Ka as IconCalendarArrowDown,
8767
8784
  pl as IconChevronLeft,
8768
8785
  rl as IconClear,
8769
- Ao as IconCloudArrowDown,
8786
+ Do as IconCloudArrowDown,
8770
8787
  mr as IconDelete,
8771
8788
  Ge as IconDismiss,
8772
- Oo as IconDrafts,
8773
- So as IconEye,
8789
+ Io as IconDrafts,
8790
+ Ao as IconEye,
8774
8791
  or as IconFilter,
8775
8792
  Bb as IconFullScreenMaximize,
8776
8793
  Ul as IconGridDots,
@@ -8778,7 +8795,7 @@ export {
8778
8795
  Hr as IconNavigation,
8779
8796
  Yr as IconPin,
8780
8797
  ms as IconReset,
8781
- To as IconSearch,
8798
+ Oo as IconSearch,
8782
8799
  kl as IconWeatherMoon,
8783
8800
  Il as IconWeatherSunny,
8784
8801
  ti as Oc404,
@@ -8787,20 +8804,20 @@ export {
8787
8804
  Ks as OcAuth,
8788
8805
  Xs as OcBack,
8789
8806
  vi as OcFooter,
8790
- pn as OcForm,
8807
+ mn as OcForm,
8791
8808
  J0 as OcHeader,
8792
- mn as OcImporter,
8809
+ vn as OcImporter,
8793
8810
  _v as OcLogin,
8794
8811
  Ov as OcLogo,
8795
8812
  Vv as OcMy,
8796
- hn as OcNumberRoll,
8813
+ gn as OcNumberRoll,
8797
8814
  Kv as OcReport,
8798
8815
  eg as OcScan,
8799
- vn as OcSearchBar,
8816
+ bn as OcSearchBar,
8800
8817
  Sg as OcSkeleton,
8801
- gn as OcTable,
8818
+ yn as OcTable,
8802
8819
  bb as OcTableEdit,
8803
- ne as POST,
8820
+ le as POST,
8804
8821
  $b as create,
8805
8822
  Ub as darkTheme,
8806
8823
  Cb as default,
@@ -8811,11 +8828,11 @@ export {
8811
8828
  qb as fnCheckQMSRole,
8812
8829
  Lb as fnCheckTDMRole,
8813
8830
  Xa as fnClearUser,
8814
- qo as fnComputedScale,
8831
+ Ho as fnComputedScale,
8815
8832
  ua as fnDecodeCursor,
8816
8833
  ba as fnDelStorage,
8817
8834
  Us as fnDeleteLoad,
8818
- Po as fnDownload,
8835
+ Fo as fnDownload,
8819
8836
  Pe as fnEncodeCursor,
8820
8837
  ge as fnFormatTime,
8821
8838
  zb as fnFormatUnits,
@@ -8831,15 +8848,15 @@ export {
8831
8848
  Wu as fnSetNormalWidthAndHeight,
8832
8849
  zs as fnSetPlatform,
8833
8850
  ve as fnSetStorage,
8834
- jo as fnSetTheme,
8835
- Fo as fnSetUser,
8851
+ zo as fnSetTheme,
8852
+ Uo as fnSetUser,
8836
8853
  jb as fnThrottle,
8837
- Mo as fnUserLogout,
8854
+ jo as fnUserLogout,
8838
8855
  H as headerStore,
8839
8856
  Jb as install,
8840
8857
  ev as langCN,
8841
8858
  av as langUS,
8842
8859
  Mb as lightTheme,
8843
- Lo as scaleStore,
8860
+ Go as scaleStore,
8844
8861
  N as userStore
8845
8862
  };