@partex/one-core 2.0.16 → 2.0.17

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,7 +1,7 @@
1
1
  var bn = Object.defineProperty;
2
2
  var wn = (e, o, t) => o in e ? bn(e, o, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[o] = t;
3
3
  var Ye = (e, o, t) => (wn(e, typeof o != "symbol" ? o + "" : o, t), t);
4
- import { defineComponent as W, openBlock as v, createElementBlock as I, createElementVNode as h, h as L, reactive as Uo, resolveComponent as p, createBlock as A, withCtx as s, createVNode as l, toDisplayString as z, ref as N, Fragment as oe, normalizeStyle as ua, createCommentVNode as M, createTextVNode as E, onMounted as ge, onBeforeUnmount as Lo, watch as ae, renderList as ao, withDirectives as no, vShow as ro, normalizeClass as ca, createSlots as Oo, renderSlot as me, withKeys as Io, nextTick as _n, computed as $n, mergeProps as Cn } from "vue";
4
+ import { defineComponent as W, openBlock as v, createElementBlock as I, createElementVNode as h, h as R, reactive as Uo, resolveComponent as p, createBlock as A, withCtx as s, createVNode as l, toDisplayString as z, ref as N, Fragment as oe, normalizeStyle as ua, createCommentVNode as M, createTextVNode as E, onMounted as ge, onBeforeUnmount as Lo, watch as ae, renderList as ao, withDirectives as no, vShow as ro, normalizeClass as ca, createSlots as Oo, renderSlot as me, withKeys as Io, nextTick as _n, computed as $n, mergeProps as Cn } from "vue";
5
5
  import { NPopover as _e, NFlex as re, NButton as X, NTooltip as Te, NIcon as le, NPopconfirm as da, NGrid as je, NForm as Ro, NFormItemGi as Nn, NInput as We, NSelect as pa, NInputNumber as fa, NDatePicker as Eo, NTimePicker as ha, NSwitch as kn, NUpload as ma, NUploadDragger as Tn, createDiscreteApi as Sn, NDataTable as ze, useNotification as $e, NBadge as On, NRadioGroup as In, NRadioButton as Pn, NDropdown as ga, NMenu as An, NDrawer as Dn, NDrawerContent as Mn, NCard as Vo, NModal as va, NTabs as jn, NTabPane as zn, NFormItem as ya, NGi as co, NDivider as Bn, darkTheme as Se, NConfigProvider as Fn, NDialogProvider as Un, NNotificationProvider as Ln, zhCN as Rn, dateZhCN as En, NInputGroup as qo, NInputGroupLabel as ba, NGridItem as Vn, NCascader as qn, NTreeSelect as Gn, NSkeleton as Hn } from "naive-ui";
6
6
  import { createI18n as xn, useI18n as Ce } from "vue-i18n";
7
7
  import { useRoute as po, useRouter as Be, createRouter as Jn, createWebHistory as Kn } from "vue-router";
@@ -524,7 +524,7 @@ function go(e, o = !1) {
524
524
  showQuickJumper: !0,
525
525
  showSizePicker: !0,
526
526
  pageSlot: 8,
527
- prefix: () => L("div", {}, { default: () => `共${e.total}条` })
527
+ prefix: () => R("div", {}, { default: () => `共${e.total}条` })
528
528
  },
529
529
  records: t
530
530
  };
@@ -789,7 +789,7 @@ const _s = {
789
789
  "zh-CN": { ..._s },
790
790
  "fr-FR": {}
791
791
  }
792
- }), Xo = Cs, R = Uo({
792
+ }), Xo = Cs, U = Uo({
793
793
  needUpdate: !1,
794
794
  download: !1,
795
795
  theme: !1,
@@ -802,37 +802,37 @@ const _s = {
802
802
  platformMainUrl: ""
803
803
  });
804
804
  function Yo(e) {
805
- R.download = e;
805
+ U.download = e;
806
806
  }
807
807
  function Ns(e) {
808
- R.language = e;
808
+ U.language = e;
809
809
  }
810
810
  function Ke(e) {
811
811
  let o;
812
- e ? o = e : R.lang === "zh-CN" ? o = "en-US" : o = "zh-CN", be("lang", o, 0), R.lang = o;
812
+ e ? o = e : U.lang === "zh-CN" ? o = "en-US" : o = "zh-CN", be("lang", o, 0), U.lang = o;
813
813
  const t = document.body;
814
814
  t.dataset.lang = o, Xo.global.locale.value = o;
815
815
  }
816
816
  function Zo(e) {
817
- R.theme = e;
817
+ U.theme = e;
818
818
  const o = document.body, t = document.querySelector("meta[name=theme-color]");
819
819
  e ? o.dataset.theme = "dark" : o.dataset.theme = "", t && (e ? t.setAttribute("content", "#2b2b2d") : t.setAttribute("content", "#ffffff"));
820
820
  }
821
821
  function ks(e) {
822
- R.platformName = e.platformName, R.platformType = e.platformType, R.platformUrl = e.platformUrl, R.platformMainUrl = (e == null ? void 0 : e.platformMainUrl) || "";
822
+ U.platformName = e.platformName, U.platformType = e.platformType, U.platformUrl = e.platformUrl, U.platformMainUrl = (e == null ? void 0 : e.platformMainUrl) || "";
823
823
  }
824
824
  function Ts(e) {
825
- R.platformName = e;
825
+ U.platformName = e;
826
826
  }
827
827
  function Ss(e) {
828
- R.needUpdate = e;
828
+ U.needUpdate = e;
829
829
  }
830
830
  const Ba = () => {
831
- R.isMobile = window.screen.availWidth < 769;
831
+ U.isMobile = window.screen.availWidth < 769;
832
832
  };
833
833
  window.addEventListener("resize", Ba);
834
834
  Ba();
835
- const Ze = (e, o) => L(
835
+ const Ze = (e, o) => R(
836
836
  Te,
837
837
  {},
838
838
  {
@@ -858,11 +858,11 @@ const Ze = (e, o) => L(
858
858
  }
859
859
  e.onClick && typeof e.onClick == "function" && (c.onClick = e.onClick.bind(void 0, n, r));
860
860
  }
861
- return t && (i.icon = () => L(
861
+ return t && (i.icon = () => R(
862
862
  le,
863
863
  {},
864
864
  {
865
- default: () => L(
865
+ default: () => R(
866
866
  t,
867
867
  {},
868
868
  {
@@ -870,7 +870,7 @@ const Ze = (e, o) => L(
870
870
  }
871
871
  )
872
872
  }
873
- )), L(X, c, i);
873
+ )), R(X, c, i);
874
874
  }, Ao = (e, o, t, n) => {
875
875
  const r = {
876
876
  placement: "left"
@@ -882,8 +882,8 @@ const Ze = (e, o) => L(
882
882
  };
883
883
  } else
884
884
  o.onClick && (r["on-positive-click"] = o.onClick.bind(void 0, t, n));
885
- return L(da, r, {
886
- default: () => L(
885
+ return R(da, r, {
886
+ default: () => R(
887
887
  "span",
888
888
  {},
889
889
  {
@@ -904,7 +904,7 @@ const Ze = (e, o) => L(
904
904
  );
905
905
  e.buttonText ? n = r : n = Ze(
906
906
  r,
907
- R.lang === "zh-CN" ? "详情" : "Detail"
907
+ U.lang === "zh-CN" ? "详情" : "Detail"
908
908
  );
909
909
  }
910
910
  if (e.type === "edit") {
@@ -915,7 +915,7 @@ const Ze = (e, o) => L(
915
915
  o,
916
916
  t
917
917
  );
918
- e.buttonText ? n = r : n = Ze(r, R.lang === "zh-CN" ? "编辑" : "Edit");
918
+ e.buttonText ? n = r : n = Ze(r, U.lang === "zh-CN" ? "编辑" : "Edit");
919
919
  }
920
920
  if (e.type === "delete") {
921
921
  let r = he(
@@ -927,12 +927,12 @@ const Ze = (e, o) => L(
927
927
  );
928
928
  e.buttonText ? r = r : r = Ze(
929
929
  r,
930
- R.lang === "zh-CN" ? "删除" : "Delete"
930
+ U.lang === "zh-CN" ? "删除" : "Delete"
931
931
  ), n = Ao(
932
932
  r,
933
933
  {
934
934
  ...e,
935
- confirmText: R.lang === "zh-CN" ? "删除后无法恢复,是否确认删除?" : "Are you sure you want to delete ?"
935
+ confirmText: U.lang === "zh-CN" ? "删除后无法恢复,是否确认删除?" : "Are you sure you want to delete ?"
936
936
  },
937
937
  o,
938
938
  t
@@ -956,14 +956,14 @@ const Ze = (e, o) => L(
956
956
  r.type === "detail" && (c = he(
957
957
  {
958
958
  ...r,
959
- buttonText: R.lang === "zh-CN" ? "详情" : "Detail"
959
+ buttonText: U.lang === "zh-CN" ? "详情" : "Detail"
960
960
  },
961
961
  "primary",
962
962
  void 0,
963
963
  o,
964
964
  t
965
965
  )), r.type === "edit" && (c = he(
966
- { ...r, buttonText: R.lang === "zh-CN" ? "编辑" : "Edit" },
966
+ { ...r, buttonText: U.lang === "zh-CN" ? "编辑" : "Edit" },
967
967
  "success",
968
968
  void 0,
969
969
  o,
@@ -973,7 +973,7 @@ const Ze = (e, o) => L(
973
973
  {
974
974
  ...r,
975
975
  onClick: "",
976
- buttonText: R.lang === "zh-CN" ? "删除" : "Delete"
976
+ buttonText: U.lang === "zh-CN" ? "删除" : "Delete"
977
977
  },
978
978
  "error",
979
979
  void 0,
@@ -982,7 +982,7 @@ const Ze = (e, o) => L(
982
982
  ),
983
983
  {
984
984
  ...r,
985
- confirmText: R.lang === "zh-CN" ? "删除后无法恢复,是否确认删除?" : "Are you sure you want to delete ?"
985
+ confirmText: U.lang === "zh-CN" ? "删除后无法恢复,是否确认删除?" : "Are you sure you want to delete ?"
986
986
  },
987
987
  o,
988
988
  t
@@ -995,7 +995,7 @@ const Ze = (e, o) => L(
995
995
  if (r.children.length > 0) {
996
996
  const c = Is(r.children, o, t);
997
997
  n.push(
998
- L(
998
+ R(
999
999
  _e,
1000
1000
  {
1001
1001
  trigger: "click"
@@ -1013,7 +1013,7 @@ const Ze = (e, o) => L(
1013
1013
  o,
1014
1014
  t
1015
1015
  ),
1016
- default: () => L(
1016
+ default: () => R(
1017
1017
  re,
1018
1018
  {
1019
1019
  vertical: !0
@@ -1030,7 +1030,7 @@ const Ze = (e, o) => L(
1030
1030
  const c = Os(r, o, t);
1031
1031
  n.push(c);
1032
1032
  }
1033
- }), L(
1033
+ }), R(
1034
1034
  "div",
1035
1035
  {
1036
1036
  class: "action-flex"
@@ -1043,7 +1043,7 @@ const Ze = (e, o) => L(
1043
1043
  name: "OcAuth",
1044
1044
  setup() {
1045
1045
  const e = po(), o = Be(), { auth: t } = e.query;
1046
- t ? be("token", t, 0) : mo("token"), o.replace(R.platformUrl);
1046
+ t ? be("token", t, 0) : mo("token"), o.replace(U.platformUrl);
1047
1047
  }
1048
1048
  }), As = {
1049
1049
  class: "com-card flex-center",
@@ -1290,11 +1290,11 @@ const Ws = W({
1290
1290
  title: "404 页面走丢了",
1291
1291
  title2: "Something's missing."
1292
1292
  }), n = () => {
1293
- fe.push(R.platformUrl);
1293
+ fe.push(U.platformUrl);
1294
1294
  }, r = N();
1295
1295
  return ge(() => {
1296
1296
  t.value = o[e.type], r.value = setInterval(() => {
1297
- fe.push(R.platformUrl);
1297
+ fe.push(U.platformUrl);
1298
1298
  }, 3e3);
1299
1299
  }), Lo(() => {
1300
1300
  clearInterval(r.value);
@@ -2511,19 +2511,19 @@ const nm = W({
2511
2511
  key: "jobName",
2512
2512
  width: 300,
2513
2513
  render(b) {
2514
- return L(
2514
+ return R(
2515
2515
  "div",
2516
2516
  {},
2517
2517
  {
2518
2518
  default: () => [
2519
- L(
2519
+ R(
2520
2520
  "p",
2521
2521
  {},
2522
2522
  {
2523
2523
  default: () => b.jobName || "--"
2524
2524
  }
2525
2525
  ),
2526
- L(
2526
+ R(
2527
2527
  "p",
2528
2528
  {
2529
2529
  style: {
@@ -2546,7 +2546,7 @@ const nm = W({
2546
2546
  width: 90,
2547
2547
  render(b) {
2548
2548
  let T = e("Common.processing");
2549
- return b.jobStatus === 1 && (T = e("Common.success")), b.jobStatus === 2 && (T = e("Common.failed")), L(
2549
+ return b.jobStatus === 1 && (T = e("Common.success")), b.jobStatus === 2 && (T = e("Common.failed")), R(
2550
2550
  "span",
2551
2551
  {},
2552
2552
  {
@@ -2630,7 +2630,7 @@ const nm = W({
2630
2630
  Yo(b), o.value = b;
2631
2631
  };
2632
2632
  return g(), ae(
2633
- () => R.download,
2633
+ () => U.download,
2634
2634
  (b) => {
2635
2635
  o.value = b, b && g();
2636
2636
  }
@@ -2782,7 +2782,7 @@ const sm = /* @__PURE__ */ j(nm, [["render", lm]]), im = W({
2782
2782
  width: 300,
2783
2783
  render(b) {
2784
2784
  return [
2785
- L(
2785
+ R(
2786
2786
  "div",
2787
2787
  {
2788
2788
  class: b.status === 1 ? "card-grey-txt" : ""
@@ -2791,7 +2791,7 @@ const sm = /* @__PURE__ */ j(nm, [["render", lm]]), im = W({
2791
2791
  default: () => b.messageContent
2792
2792
  }
2793
2793
  ),
2794
- L(
2794
+ R(
2795
2795
  "div",
2796
2796
  {
2797
2797
  class: "card-grey-txt"
@@ -2824,7 +2824,7 @@ const sm = /* @__PURE__ */ j(nm, [["render", lm]]), im = W({
2824
2824
  });
2825
2825
  }
2826
2826
  }
2827
- ]) : L(
2827
+ ]) : R(
2828
2828
  "div",
2829
2829
  {},
2830
2830
  {
@@ -3052,7 +3052,7 @@ const dm = /* @__PURE__ */ j(im, [["render", cm]]), pm = W({
3052
3052
  return;
3053
3053
  T(w.key), n.push(w.key), d.value = !1;
3054
3054
  }
3055
- }, S = (w) => L(
3055
+ }, S = (w) => R(
3056
3056
  "div",
3057
3057
  {
3058
3058
  onClick: () => C(w)
@@ -3060,7 +3060,7 @@ const dm = /* @__PURE__ */ j(im, [["render", cm]]), pm = W({
3060
3060
  {
3061
3061
  default: () => w.label
3062
3062
  }
3063
- ), q = (w) => L(
3063
+ ), q = (w) => R(
3064
3064
  "div",
3065
3065
  {
3066
3066
  onClick: () => _(w)
@@ -3068,7 +3068,7 @@ const dm = /* @__PURE__ */ j(im, [["render", cm]]), pm = W({
3068
3068
  {
3069
3069
  default: () => w.label
3070
3070
  }
3071
- ), f = (w) => w.icon ? L(
3071
+ ), f = (w) => w.icon ? R(
3072
3072
  le,
3073
3073
  {
3074
3074
  size: 24,
@@ -3082,8 +3082,8 @@ const dm = /* @__PURE__ */ j(im, [["render", cm]]), pm = W({
3082
3082
  }, V = () => {
3083
3083
  d.value = !1;
3084
3084
  }, B = () => {
3085
- let w = R.platformMainUrl || R.platformUrl;
3086
- R.platformMainUrl === "auto" && ($.industryCategory === "0" ? w = "https://www.partexiot.cn" : $.industryCategory === "1" && (w = "https://printing.partexiot.cn"));
3085
+ let w = U.platformMainUrl || U.platformUrl;
3086
+ U.platformMainUrl === "auto" && ($.industryCategory === "0" ? w = "https://www.partexiot.cn" : $.industryCategory === "1" && (w = "https://printing.partexiot.cn"));
3087
3087
  const O = [
3088
3088
  {
3089
3089
  label: o("Platform.iot"),
@@ -3110,47 +3110,42 @@ const dm = /* @__PURE__ */ j(im, [["render", cm]]), pm = W({
3110
3110
  key: "tenantName"
3111
3111
  }
3112
3112
  ];
3113
- return w.push(
3114
- {
3115
- label: `主题 ${u ? "" : "暗"}`,
3116
- key: "theme"
3117
- },
3118
- {
3119
- label: `语言 ${R.lang === "zh-CN" ? "EN" : "中文"}`,
3120
- key: "language"
3121
- }
3122
- ), w.push(
3123
- {
3124
- label: o("Common.dropdownMenu.software"),
3125
- key: "app",
3126
- children: [
3127
- {
3128
- label: o("Common.dropdownMenu.android"),
3129
- key: "android"
3130
- },
3131
- {
3132
- label: o("Common.dropdownMenu.ios"),
3133
- key: "ios"
3134
- },
3135
- {
3136
- label: o("Common.dropdownMenu.chrome"),
3137
- key: "chrome"
3138
- },
3139
- {
3140
- label: o("Common.dropdownMenu.edge"),
3141
- key: "edge"
3142
- },
3143
- {
3144
- label: o("Common.dropdownMenu.dashboard_IoT"),
3145
- key: "dashboard_IoT"
3146
- },
3147
- {
3148
- label: o("Common.dropdownMenu.dashboard_Prt"),
3149
- key: "dashboard_Prt"
3150
- }
3151
- ]
3152
- }
3153
- ), e.report && w.push({
3113
+ return U.isMobile && w.push({
3114
+ label: `语言 ${U.lang === "zh-CN" ? "EN" : "中文"}`,
3115
+ key: "language"
3116
+ }), U.language && w.push({
3117
+ label: `语言 ${U.lang === "zh-CN" ? "EN" : "中文"}`,
3118
+ key: "language"
3119
+ }), w.push({
3120
+ label: o("Common.dropdownMenu.software"),
3121
+ key: "app",
3122
+ children: [
3123
+ {
3124
+ label: o("Common.dropdownMenu.android"),
3125
+ key: "android"
3126
+ },
3127
+ {
3128
+ label: o("Common.dropdownMenu.ios"),
3129
+ key: "ios"
3130
+ },
3131
+ {
3132
+ label: o("Common.dropdownMenu.chrome"),
3133
+ key: "chrome"
3134
+ },
3135
+ {
3136
+ label: o("Common.dropdownMenu.edge"),
3137
+ key: "edge"
3138
+ },
3139
+ {
3140
+ label: o("Common.dropdownMenu.dashboard_IoT"),
3141
+ key: "dashboard_IoT"
3142
+ },
3143
+ {
3144
+ label: o("Common.dropdownMenu.dashboard_Prt"),
3145
+ key: "dashboard_Prt"
3146
+ }
3147
+ ]
3148
+ }), e.report && w.push({
3154
3149
  label: o("Common.dropdownMenu.report"),
3155
3150
  key: "report"
3156
3151
  }), w.push(
@@ -3164,7 +3159,11 @@ const dm = /* @__PURE__ */ j(im, [["render", cm]]), pm = W({
3164
3159
  }
3165
3160
  ), w;
3166
3161
  }, a = async (w) => {
3167
- w === "logout" && pn(), w === "theme" && b(!u.value), w === "language" && Ke(), w === "info" && n.push("/custom/my"), w === "report" && n.push("/custom/report"), w === "android" && window.open("http://miiot.partexiot.cn/dk7u"), w === "ios" && window.open("https://apps.apple.com/cn/app/id1587313547"), w === "chrome" && window.open("http://partex-cloud-static.oss-cn-hangzhou.aliyuncs.com/Software/chrome_installer.exe"), w === "edge" && window.open("http://partex-cloud-static.oss-cn-hangzhou.aliyuncs.com/Software/MicrosoftEdgeSetup.exe"), w === "dashboard_IoT" && window.open(
3162
+ w === "logout" && pn(), w === "theme" && b(!u.value), w === "language" && Ke(), w === "info" && n.push("/custom/my"), w === "report" && n.push("/custom/report"), w === "android" && window.open("http://miiot.partexiot.cn/dk7u"), w === "ios" && window.open("https://apps.apple.com/cn/app/id1587313547"), w === "chrome" && window.open(
3163
+ "http://partex-cloud-static.oss-cn-hangzhou.aliyuncs.com/Software/chrome_installer.exe"
3164
+ ), w === "edge" && window.open(
3165
+ "http://partex-cloud-static.oss-cn-hangzhou.aliyuncs.com/Software/MicrosoftEdgeSetup.exe"
3166
+ ), w === "dashboard_IoT" && window.open(
3168
3167
  "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"
3169
3168
  ), w === "dashboard_Prt" && window.open(
3170
3169
  "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"
@@ -3185,13 +3184,13 @@ const dm = /* @__PURE__ */ j(im, [["render", cm]]), pm = W({
3185
3184
  if ($.tenantStatus === 0 && $.renewalStatus === 0) {
3186
3185
  const w = document.getElementById("app");
3187
3186
  w && w.classList.add("outrange"), r.info({
3188
- action: () => L(
3187
+ action: () => R(
3189
3188
  re,
3190
3189
  {
3191
3190
  size: [15, 15]
3192
3191
  },
3193
3192
  {
3194
- default: () => L(
3193
+ default: () => R(
3195
3194
  X,
3196
3195
  {
3197
3196
  class: "button-primary",
@@ -3216,7 +3215,7 @@ const dm = /* @__PURE__ */ j(im, [["render", cm]]), pm = W({
3216
3215
  let w = `您的订阅即将于${we(
3217
3216
  $.endTime
3218
3217
  )}到期,请联系管理员进行续订`, O = [
3219
- L(
3218
+ R(
3220
3219
  X,
3221
3220
  {
3222
3221
  secondary: !0,
@@ -3232,7 +3231,7 @@ const dm = /* @__PURE__ */ j(im, [["render", cm]]), pm = W({
3232
3231
  $.kind === 99 && (w = `您的订阅即将于${we(
3233
3232
  $.endTime
3234
3233
  )}到期,为保证持续有效的提供服务请立即续订`, O = [
3235
- L(
3234
+ R(
3236
3235
  X,
3237
3236
  {
3238
3237
  secondary: !0,
@@ -3244,7 +3243,7 @@ const dm = /* @__PURE__ */ j(im, [["render", cm]]), pm = W({
3244
3243
  default: () => "稍后提示我"
3245
3244
  }
3246
3245
  ),
3247
- L(
3246
+ R(
3248
3247
  X,
3249
3248
  {
3250
3249
  class: "button-primary",
@@ -3257,7 +3256,7 @@ const dm = /* @__PURE__ */ j(im, [["render", cm]]), pm = W({
3257
3256
  }
3258
3257
  )
3259
3258
  ]), r.info({
3260
- action: () => L(
3259
+ action: () => R(
3261
3260
  re,
3262
3261
  {
3263
3262
  size: [15, 15]
@@ -3272,9 +3271,9 @@ const dm = /* @__PURE__ */ j(im, [["render", cm]]), pm = W({
3272
3271
  });
3273
3272
  }
3274
3273
  }, se = () => {
3275
- n.push(R.platformUrl);
3274
+ n.push(U.platformUrl);
3276
3275
  }, D = () => {
3277
- c.value = R.platformName, t.path.indexOf("iot") > -1 && (c.value = o("Platform.iot")), t.path.indexOf("tdm") > -1 && (c.value = o("Platform.tdm")), t.path.indexOf("qms") > -1 && (c.value = o("Platform.qms")), t.path.indexOf("twin") > -1 && (c.value = o("Platform.twin")), t.path.indexOf("maintain") > -1 && (c.value = o("Platform.maintain")), Ts(c.value);
3276
+ c.value = U.platformName, t.path.indexOf("iot") > -1 && (c.value = o("Platform.iot")), t.path.indexOf("tdm") > -1 && (c.value = o("Platform.tdm")), t.path.indexOf("qms") > -1 && (c.value = o("Platform.qms")), t.path.indexOf("twin") > -1 && (c.value = o("Platform.twin")), t.path.indexOf("maintain") > -1 && (c.value = o("Platform.maintain")), Ts(c.value);
3278
3277
  };
3279
3278
  "backdropFilter" in document.documentElement.style || "WebkitBackdropFilter" in document.documentElement.style || document.body.classList.add("not-support-backdrop");
3280
3279
  const ie = () => {
@@ -3285,10 +3284,13 @@ const dm = /* @__PURE__ */ j(im, [["render", cm]]), pm = W({
3285
3284
  };
3286
3285
  return ge(() => {
3287
3286
  Ne(), T(t.path), D(), ie(), g.value = B();
3288
- }), ae(() => R.isMobile, () => {
3289
- window.screen.availWidth <= 1300 && window.screen.availWidth >= 1030 ? y.value = "tiny-menu" : window.screen.availWidth < 769 ? y.value = "hide-menu" : y.value = "";
3290
3287
  }), ae(
3291
- () => R.lang,
3288
+ () => U.isMobile,
3289
+ () => {
3290
+ window.screen.availWidth <= 1300 && window.screen.availWidth >= 1030 ? y.value = "tiny-menu" : window.screen.availWidth < 769 ? y.value = "hide-menu" : y.value = "";
3291
+ }
3292
+ ), ae(
3293
+ () => U.lang,
3292
3294
  () => {
3293
3295
  D();
3294
3296
  }
@@ -3298,7 +3300,7 @@ const dm = /* @__PURE__ */ j(im, [["render", cm]]), pm = W({
3298
3300
  T(w), ie();
3299
3301
  }
3300
3302
  ), ae(
3301
- () => R.needUpdate,
3303
+ () => U.needUpdate,
3302
3304
  (w) => {
3303
3305
  if (w) {
3304
3306
  m.value = setInterval(() => {
@@ -3311,14 +3313,14 @@ const dm = /* @__PURE__ */ j(im, [["render", cm]]), pm = W({
3311
3313
  onClose: () => {
3312
3314
  clearInterval(window.versionMonitor);
3313
3315
  },
3314
- action: () => L(
3316
+ action: () => R(
3315
3317
  re,
3316
3318
  {
3317
3319
  justify: "space-between"
3318
3320
  },
3319
3321
  {
3320
3322
  default: () => [
3321
- L(
3323
+ R(
3322
3324
  X,
3323
3325
  {
3324
3326
  quaternary: !0,
@@ -3330,7 +3332,7 @@ const dm = /* @__PURE__ */ j(im, [["render", cm]]), pm = W({
3330
3332
  default: () => "稍后"
3331
3333
  }
3332
3334
  ),
3333
- L(
3335
+ R(
3334
3336
  X,
3335
3337
  {
3336
3338
  type: "primary",
@@ -3350,7 +3352,7 @@ const dm = /* @__PURE__ */ j(im, [["render", cm]]), pm = W({
3350
3352
  }
3351
3353
  ), {
3352
3354
  userStore: $,
3353
- commonStore: R,
3355
+ commonStore: U,
3354
3356
  theme: u,
3355
3357
  activeMenu: i,
3356
3358
  platformName: c,
@@ -3638,7 +3640,7 @@ const ym = /* @__PURE__ */ j(pm, [["render", vm]]), fn = (e) => {
3638
3640
  align: "center",
3639
3641
  key: "index",
3640
3642
  render(C, _) {
3641
- return L(
3643
+ return R(
3642
3644
  "span",
3643
3645
  {},
3644
3646
  {
@@ -3658,7 +3660,7 @@ const ym = /* @__PURE__ */ j(pm, [["render", vm]]), fn = (e) => {
3658
3660
  width: 120,
3659
3661
  render(C) {
3660
3662
  let _ = t("Common.processing");
3661
- return C.jobStatus === 1 && (_ = t("Common.success")), C.jobStatus === 2 && (_ = t("Common.failed")), L(
3663
+ return C.jobStatus === 1 && (_ = t("Common.success")), C.jobStatus === 2 && (_ = t("Common.failed")), R(
3662
3664
  "span",
3663
3665
  {},
3664
3666
  {
@@ -3672,7 +3674,7 @@ const ym = /* @__PURE__ */ j(pm, [["render", vm]]), fn = (e) => {
3672
3674
  key: "commitTime",
3673
3675
  width: 200,
3674
3676
  render(C) {
3675
- return L(
3677
+ return R(
3676
3678
  "div",
3677
3679
  {},
3678
3680
  {
@@ -3966,7 +3968,7 @@ const hn = /* @__PURE__ */ j(_m, [["render", Cm]]), Nm = W({
3966
3968
  o.success({
3967
3969
  content: () => e("Notice.success"),
3968
3970
  duration: 3e3
3969
- }), O.kind !== 1 && t.replace(R.platformUrl);
3971
+ }), O.kind !== 1 && t.replace(U.platformUrl);
3970
3972
  }).catch(() => {
3971
3973
  o.error({
3972
3974
  content: () => e("Notice.error"),
@@ -3979,9 +3981,9 @@ const hn = /* @__PURE__ */ j(_m, [["render", Cm]]), Nm = W({
3979
3981
  x ? d.value = !1 : na({
3980
3982
  type: n.value,
3981
3983
  ...g.value
3982
- }).then((U) => {
3984
+ }).then((L) => {
3983
3985
  const Q = ce("loginOption", {});
3984
- Q[g.value.name] = !0, be("loginOption", Q, 0), f(U);
3986
+ Q[g.value.name] = !0, be("loginOption", Q, 0), f(L);
3985
3987
  }).catch(() => {
3986
3988
  g.value.password = "", d.value = !1;
3987
3989
  });
@@ -3989,9 +3991,9 @@ const hn = /* @__PURE__ */ j(_m, [["render", Cm]]), Nm = W({
3989
3991
  x ? d.value = !1 : na({
3990
3992
  type: n.value,
3991
3993
  ...g.value
3992
- }).then((U) => {
3994
+ }).then((L) => {
3993
3995
  const Q = ce("phoneOption", {});
3994
- Q[g.value.name] = !0, be("phoneOption", Q, 0), f(U);
3996
+ Q[g.value.name] = !0, be("phoneOption", Q, 0), f(L);
3995
3997
  }).catch(() => {
3996
3998
  g.value.password = "", d.value = !1;
3997
3999
  });
@@ -4031,7 +4033,7 @@ const hn = /* @__PURE__ */ j(_m, [["render", Cm]]), Nm = W({
4031
4033
  name: "",
4032
4034
  password: ""
4033
4035
  }, (O = c.value) == null || O.restoreValidation(), (x = r.value) == null || x.restoreValidation();
4034
- }, D = (w) => L(
4036
+ }, D = (w) => R(
4035
4037
  "div",
4036
4038
  {
4037
4039
  style: {
@@ -4040,14 +4042,14 @@ const hn = /* @__PURE__ */ j(_m, [["render", Cm]]), Nm = W({
4040
4042
  },
4041
4043
  {
4042
4044
  default: () => [
4043
- L(
4045
+ R(
4044
4046
  "div",
4045
4047
  {},
4046
4048
  {
4047
4049
  default: () => w.label
4048
4050
  }
4049
4051
  ),
4050
- L(
4052
+ R(
4051
4053
  Me,
4052
4054
  {
4053
4055
  class: "oc-login-drop-menu",
@@ -4055,8 +4057,8 @@ const hn = /* @__PURE__ */ j(_m, [["render", Cm]]), Nm = W({
4055
4057
  O.stopPropagation(), O.stopImmediatePropagation();
4056
4058
  const x = ce("loginOption", {});
4057
4059
  delete x[w.label], be("loginOption", x, 0), S();
4058
- const U = g.value.name, Q = T.value.filter(
4059
- (Z) => Z.label.indexOf(U) > -1
4060
+ const L = g.value.name, Q = T.value.filter(
4061
+ (Z) => Z.label.indexOf(L) > -1
4060
4062
  );
4061
4063
  b.value = Q;
4062
4064
  }
@@ -4067,7 +4069,7 @@ const hn = /* @__PURE__ */ j(_m, [["render", Cm]]), Nm = W({
4067
4069
  )
4068
4070
  ]
4069
4071
  }
4070
- ), ie = (w) => L(
4072
+ ), ie = (w) => R(
4071
4073
  "div",
4072
4074
  {
4073
4075
  style: {
@@ -4076,14 +4078,14 @@ const hn = /* @__PURE__ */ j(_m, [["render", Cm]]), Nm = W({
4076
4078
  },
4077
4079
  {
4078
4080
  default: () => [
4079
- L(
4081
+ R(
4080
4082
  "div",
4081
4083
  {},
4082
4084
  {
4083
4085
  default: () => w.label
4084
4086
  }
4085
4087
  ),
4086
- L(
4088
+ R(
4087
4089
  Me,
4088
4090
  {
4089
4091
  class: "oc-login-drop-menu",
@@ -4091,8 +4093,8 @@ const hn = /* @__PURE__ */ j(_m, [["render", Cm]]), Nm = W({
4091
4093
  O.stopPropagation(), O.stopImmediatePropagation();
4092
4094
  const x = ce("phoneOption", {});
4093
4095
  delete x[w.label], be("phoneOption", x, 0), q();
4094
- const U = g.value.name, Q = _.value.filter(
4095
- (Z) => Z.label.indexOf(U) > -1
4096
+ const L = g.value.name, Q = _.value.filter(
4097
+ (Z) => Z.label.indexOf(L) > -1
4096
4098
  );
4097
4099
  C.value = Q;
4098
4100
  }
@@ -4106,7 +4108,7 @@ const hn = /* @__PURE__ */ j(_m, [["render", Cm]]), Nm = W({
4106
4108
  );
4107
4109
  return ft(), mo("token"), S(), q(), {
4108
4110
  tabs: n,
4109
- commonStore: R,
4111
+ commonStore: U,
4110
4112
  pwdRef: i,
4111
4113
  pwdPhoneRef: u,
4112
4114
  formRef: c,
@@ -4571,7 +4573,7 @@ const Qm = {
4571
4573
  return {
4572
4574
  zhCN: Rn,
4573
4575
  dateZhCN: En,
4574
- commonStore: R,
4576
+ commonStore: U,
4575
4577
  lightTheme: Qm,
4576
4578
  darkTheme: Xm
4577
4579
  };
@@ -4936,7 +4938,7 @@ const mg = W({
4936
4938
  align: "center",
4937
4939
  key: "index",
4938
4940
  render(d, m) {
4939
- return L(
4941
+ return R(
4940
4942
  "span",
4941
4943
  {},
4942
4944
  {
@@ -5558,7 +5560,7 @@ function Mg(e, o, t, n, r, c) {
5558
5560
  }, 1024)) : M("", !0),
5559
5561
  a.type === "group" ? (v(), A(S, { key: 1 }, {
5560
5562
  default: s(() => {
5561
- var se, D, ie, w, O, x, U, Q, Z, pe, Ae, Ge, He, G, ne, ve, ye, Xe, gt, vt, yt, bt, wt, _t, $t, Ct, Nt, kt, Tt, St, Ot, It, Pt;
5563
+ var se, D, ie, w, O, x, L, Q, Z, pe, Ae, Ge, He, G, ne, ve, ye, Xe, gt, vt, yt, bt, wt, _t, $t, Ct, Nt, kt, Tt, St, Ot, It, Pt;
5562
5564
  return [
5563
5565
  l(k, {
5564
5566
  value: e.searchData[F],
@@ -5598,7 +5600,7 @@ function Mg(e, o, t, n, r, c) {
5598
5600
  clearable: a.inputTemp.clearable ?? !0,
5599
5601
  style: { flex: "1" }
5600
5602
  }, null, 8, ["value", "onUpdate:value", "disabled", "placeholder", "on-update:value", "clearable"])) : M("", !0),
5601
- ((U = a.inputTemp) == null ? void 0 : U.type) === "number" ? (v(), A(m, {
5603
+ ((L = a.inputTemp) == null ? void 0 : L.type) === "number" ? (v(), A(m, {
5602
5604
  key: 1,
5603
5605
  value: e.searchData[a.input.key],
5604
5606
  "onUpdate:value": (H) => e.searchData[a.input.key] = H,
@@ -5844,7 +5846,7 @@ const Eg = /* @__PURE__ */ j(zg, [["render", Rg]]), Vg = W({
5844
5846
  drawer: d,
5845
5847
  isSlotHeader: m,
5846
5848
  isSlotAction: k,
5847
- commonStore: R,
5849
+ commonStore: U,
5848
5850
  itemData: u,
5849
5851
  doSearch: g,
5850
5852
  clearAll: y
@@ -6199,10 +6201,10 @@ const Xg = /* @__PURE__ */ j(Kg, [["render", Qg]]), Yg = W({
6199
6201
  animation: 200,
6200
6202
  group: "description",
6201
6203
  ghostClass: "ghost"
6202
- })), V = (U) => {
6203
- d.value = !0, o("update:loading", !0), U && (T.value.query = {
6204
+ })), V = (L) => {
6205
+ d.value = !0, o("update:loading", !0), L && (T.value.query = {
6204
6206
  ...T.value.query,
6205
- ...U
6207
+ ...L
6206
6208
  });
6207
6209
  const Q = vo(T.value);
6208
6210
  e.fetch && e.fetch(Q).then((Z) => {
@@ -6211,23 +6213,23 @@ const Xg = /* @__PURE__ */ j(Kg, [["render", Qg]]), Yg = W({
6211
6213
  }).catch(() => {
6212
6214
  d.value = !1, o("update:loading", !1);
6213
6215
  });
6214
- }, B = (U) => {
6215
- T.value.query.page = U, Po(), V();
6216
- }, Y = (U) => {
6217
- T.value.query.pageSize = U, T.value.query.page = 1, Po(), V();
6218
- }, a = (U) => {
6219
- U ? (T.value.query.columnKey = U.columnKey, T.value.query.order = U.order) : (T.value.query.columnKey = null, T.value.query.order = null), V();
6220
- }, F = (U) => {
6221
- U.pin = !U.pin;
6222
- }, Ne = (U) => {
6223
- U.show = !U.show;
6216
+ }, B = (L) => {
6217
+ T.value.query.page = L, Po(), V();
6218
+ }, Y = (L) => {
6219
+ T.value.query.pageSize = L, T.value.query.page = 1, Po(), V();
6220
+ }, a = (L) => {
6221
+ L ? (T.value.query.columnKey = L.columnKey, T.value.query.order = L.order) : (T.value.query.columnKey = null, T.value.query.order = null), V();
6222
+ }, F = (L) => {
6223
+ L.pin = !L.pin;
6224
+ }, Ne = (L) => {
6225
+ L.show = !L.show;
6224
6226
  }, se = () => {
6225
- const U = [];
6227
+ const L = [];
6226
6228
  y.value.forEach((Q) => {
6227
- Q.show && U.push(Q);
6228
- }), g.value = U;
6229
- }, D = (U) => {
6230
- if (T.value = U, e.cache) {
6229
+ Q.show && L.push(Q);
6230
+ }), g.value = L;
6231
+ }, D = (L) => {
6232
+ if (T.value = L, e.cache) {
6231
6233
  const Q = De(f), Z = De(T.value);
6232
6234
  i.replace(`${f}?cursor=${Z}&routerId=${Q}`);
6233
6235
  }
@@ -6246,7 +6248,7 @@ const Xg = /* @__PURE__ */ j(Kg, [["render", Qg]]), Yg = W({
6246
6248
  }).catch(() => {
6247
6249
  m.value = !1;
6248
6250
  });
6249
- }, w = (U = !1) => {
6251
+ }, w = (L = !1) => {
6250
6252
  const Q = de(e.columns), Z = [], pe = [], Ae = {}, Ge = {};
6251
6253
  let He = {};
6252
6254
  if (Q.forEach((G) => {
@@ -6257,14 +6259,14 @@ const Xg = /* @__PURE__ */ j(Kg, [["render", Qg]]), Yg = W({
6257
6259
  }
6258
6260
  if (delete G.search, G.render && typeof G.render == "string") {
6259
6261
  const ne = G.render, ve = new Function("rowData", "rowIndex", "h", ne);
6260
- G.render = (ye, Xe) => ve(ye, Xe, L);
6262
+ G.render = (ye, Xe) => ve(ye, Xe, R);
6261
6263
  }
6262
6264
  Z.push(de(G)), C.value = de(Ae), pe.push({
6263
6265
  ...G,
6264
6266
  show: G.show ?? !0,
6265
6267
  pin: G.pin ?? !1
6266
6268
  });
6267
- }), U && e.cache) {
6269
+ }), L && e.cache) {
6268
6270
  const { cursor: G, routerId: ne } = c.query;
6269
6271
  if (G && ne) {
6270
6272
  const ve = lo(ne), ye = lo(G);
@@ -6293,10 +6295,10 @@ const Xg = /* @__PURE__ */ j(Kg, [["render", Qg]]), Yg = W({
6293
6295
  ...Ae,
6294
6296
  ...He
6295
6297
  }, y.value = pe, n.value && n.value.setValues(JSON.parse(JSON.stringify(T.value))), n.value && n.value.setData(JSON.parse(JSON.stringify(_.value)));
6296
- }, O = (U) => typeof U == "number" ? `${U}px` : U, x = () => {
6298
+ }, O = (L) => typeof L == "number" ? `${L}px` : L, x = () => {
6297
6299
  if (e.height) {
6298
- const U = O(e.height);
6299
- S.value = U, q.value = U;
6300
+ const L = O(e.height);
6301
+ S.value = L, q.value = L;
6300
6302
  return;
6301
6303
  }
6302
6304
  e.minHeight && (S.value = O(e.minHeight)), e.maxHeight && (q.value = O(e.maxHeight));
@@ -6625,7 +6627,7 @@ const ov = /* @__PURE__ */ j(Yg, [["render", ev]]), ra = /* @__PURE__ */ Object.
6625
6627
  OcSearchBar: gn,
6626
6628
  OcSkeleton: Xg,
6627
6629
  OcTable: ov,
6628
- commonStore: R,
6630
+ commonStore: U,
6629
6631
  fnClearUser: ft,
6630
6632
  fnDownload: un,
6631
6633
  fnGetUser: pt,
@@ -6751,7 +6753,7 @@ function e5() {
6751
6753
  ht = 3840, mt = 2160, window.removeEventListener("resize", e);
6752
6754
  };
6753
6755
  }
6754
- const o5 = (e) => !!($.kind === -1 || $.kind === 99 || $.iot_menu_authorization.includes(e)), t5 = (e) => $.platform_tdm ? $.kind === -1 || $.kind === 99 || e === "home" ? !0 : $.tdm_menu_authorization.includes(e) : !1, a5 = (e) => $.platform_qms ? $.kind === -1 || $.kind === 99 || e === "home" ? !0 : $.qms_menu_authorization.includes(e) : !1, n5 = (e) => $.platform_twin ? ($.kind === -1 || $.kind === 99 || e === "home", !0) : !1, r5 = (e) => !!($.kind === -1 || $.kind === 99 || $.maintain_menu_authorization.includes(e)), jv = "2.0.16";
6756
+ const o5 = (e) => !!($.kind === -1 || $.kind === 99 || $.iot_menu_authorization.includes(e)), t5 = (e) => $.platform_tdm ? $.kind === -1 || $.kind === 99 || e === "home" ? !0 : $.tdm_menu_authorization.includes(e) : !1, a5 = (e) => $.platform_qms ? $.kind === -1 || $.kind === 99 || e === "home" ? !0 : $.qms_menu_authorization.includes(e) : !1, n5 = (e) => $.platform_twin ? ($.kind === -1 || $.kind === 99 || e === "home", !0) : !1, r5 = (e) => !!($.kind === -1 || $.kind === 99 || $.maintain_menu_authorization.includes(e)), jv = "2.0.17";
6755
6757
  let vn;
6756
6758
  async function yn() {
6757
6759
  const e = await fetch(
@@ -6854,7 +6856,7 @@ export {
6854
6856
  Xg as OcSkeleton,
6855
6857
  ov as OcTable,
6856
6858
  te as POST,
6857
- R as commonStore,
6859
+ U as commonStore,
6858
6860
  Fv as create,
6859
6861
  Xm as darkTheme,
6860
6862
  Uv as default,