@utogether/udp-core 1.0.1-beta.15 → 1.0.1-beta.16

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.
Files changed (71) hide show
  1. package/dist/{403-DpJevH-h.js → 403-RBzulrcG.js} +1 -1
  2. package/dist/{404-BpqJK3YD.js → 404-DX-dU_6C.js} +1 -1
  3. package/dist/{500-DyvRbMD_.js → 500-BCTk0__d.js} +1 -1
  4. package/dist/{AuthorityInfo-Cyu4XHXx.js → AuthorityInfo-BADTOenq.js} +1 -1
  5. package/dist/{AuthorityInfo.vue_vue_type_style_index_0_lang-BxmnEEFq.js → AuthorityInfo.vue_vue_type_style_index_0_lang-Cv46yAx_.js} +3 -3
  6. package/dist/{Company-BLygcYrI.js → Company-B-61KrWd.js} +3 -3
  7. package/dist/{CompanyPanel-D5Tgw6LF.js → CompanyPanel-CawSrEff.js} +10 -10
  8. package/dist/{Department-qI9OninZ.js → Department-CrzJPtvP.js} +3 -3
  9. package/dist/{DepartmentPanel-P-P8fPZQ.js → DepartmentPanel-DYuL8H-j.js} +23 -23
  10. package/dist/{DesignPanel-BxjD0AZi.js → DesignPanel-DEAv6V68.js} +1 -1
  11. package/dist/{DesignPanel.vue_vue_type_style_index_0_lang-DN_OKxCu.js → DesignPanel.vue_vue_type_style_index_0_lang-BsnXZ2td.js} +6 -6
  12. package/dist/{DictView-PWL_Vf0T.js → DictView-BuO-2b-c.js} +15 -16
  13. package/dist/{InvOrganization-JXBXyn3G.js → InvOrganization-CBgKBJAn.js} +1 -1
  14. package/dist/{Org-DcTJn6YQ.js → Org-BaQw2r-o.js} +3 -3
  15. package/dist/{Preview-IKvbHI8a.js → Preview-DvCrmKNk.js} +1 -1
  16. package/dist/{ReportDefine-_G7ts7Ch.js → ReportDefine-DyhWz0as.js} +1 -1
  17. package/dist/{ReportDesign-7h5oFklh.js → ReportDesign-DgZ2f2zv.js} +9 -9
  18. package/dist/{ReportQuery-dj0BQUyi.js → ReportQuery-DTZYbCDi.js} +1 -1
  19. package/dist/{ReportQueryFrom-6WaZPg9i.js → ReportQueryFrom-B-vtJegP.js} +1 -1
  20. package/dist/{ReportQueryFrom.vue_vue_type_style_index_0_lang-ChhcBPqa.js → ReportQueryFrom.vue_vue_type_style_index_0_lang-D6izgxph.js} +1 -1
  21. package/dist/{ReportTemplate-DIvJ3RrB.js → ReportTemplate-DA1ZqKGf.js} +11 -11
  22. package/dist/{Role-ia_3qAZU.js → Role-mbqoav5t.js} +3 -3
  23. package/dist/{RoleAssign-D0zVl4y3.js → RoleAssign-ltEJIEcr.js} +3 -3
  24. package/dist/{RolePanel-CQxOiAzj.js → RolePanel-1g1a-G8D.js} +1 -1
  25. package/dist/{RolePanel-BiGGmP2w.js → RolePanel-u90v9eS0.js} +1 -1
  26. package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-BYDLRS_x.js → RolePanel.vue_vue_type_script_setup_true_lang-D9YxpGnt.js} +1 -1
  27. package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-Dwv5LFbf.js → RolePanel.vue_vue_type_script_setup_true_lang-LC4Egk-Q.js} +9 -9
  28. package/dist/{ScrollPanel.vue_vue_type_style_index_0_lang-gPP4duO8.js → ScrollPanel.vue_vue_type_style_index_0_lang-DZ3W1epK.js} +8 -8
  29. package/dist/{Staff-Bf_oUqF6.js → Staff-CJ2GgCL3.js} +3 -3
  30. package/dist/{StaffInfo-D5aisjx2.js → StaffInfo-3KkodDCK.js} +1 -1
  31. package/dist/{StaffInfo.vue_vue_type_script_setup_true_lang-6PX7Bx6A.js → StaffInfo.vue_vue_type_script_setup_true_lang-CW-isIxJ.js} +7 -7
  32. package/dist/{StaffPanel--zKzd4rt.js → StaffPanel-DoXPSoY5.js} +1 -1
  33. package/dist/{StaffPanel.vue_vue_type_script_setup_true_lang-BWZSIFpq.js → StaffPanel.vue_vue_type_script_setup_true_lang-DvhGnOMZ.js} +2 -2
  34. package/dist/{SysUser-BelbESLR.js → SysUser-BuIZhMPh.js} +2 -2
  35. package/dist/{SysUserPanel-BixKqQcA.js → SysUserPanel-t1GJcJGM.js} +1 -1
  36. package/dist/{SysUserPanel.vue_vue_type_script_setup_true_lang-BhaWZEfo.js → SysUserPanel.vue_vue_type_script_setup_true_lang-CDDkFLlN.js} +6 -6
  37. package/dist/{SystemMenu-D40tzcSj.js → SystemMenu-DuLEL6_l.js} +10 -10
  38. package/dist/{UserInfo-DTyk071j.js → UserInfo-WWby4lts.js} +1 -1
  39. package/dist/{UserInfo.vue_vue_type_style_index_0_lang-p9MByikC.js → UserInfo.vue_vue_type_style_index_0_lang-B06ZSrJV.js} +10 -10
  40. package/dist/{childView-so5qSxr0.js → childView-B0-EAoAi.js} +1 -1
  41. package/dist/{childView-xL3iE1yN.js → childView-IYY4L8VK.js} +1 -1
  42. package/dist/{childView.vue_vue_type_style_index_0_lang-DK1ei5uM.js → childView.vue_vue_type_style_index_0_lang-B56v6yK7.js} +1 -1
  43. package/dist/{childView.vue_vue_type_style_index_0_lang-CKcXpSqa.js → childView.vue_vue_type_style_index_0_lang-CjF8nZuj.js} +6 -6
  44. package/dist/{code-rule-DC35y76w.js → code-rule-DDLdi3pP.js} +6 -6
  45. package/dist/core.es.js +17 -12
  46. package/dist/{cron-task-BhjQ4S68.js → cron-task-p3-AFN1w.js} +11 -11
  47. package/dist/{frameView-G_zhG9pf.js → frameView-B_WAZErD.js} +1 -1
  48. package/dist/{index-C6ehxLLO.js → index-24fnvUBy.js} +741 -540
  49. package/dist/{layoutView-CO2U8qCQ.js → layoutView-CoEp2afn.js} +25 -27
  50. package/dist/login-DP0oP70W.js +249 -0
  51. package/dist/{lov-view-Cr929NMD.js → lov-view-BDoZRK-v.js} +5 -5
  52. package/dist/{menuInfo-BWuROp7u.js → menuInfo-5Xls76qB.js} +1 -1
  53. package/dist/{menuInfo.vue_vue_type_style_index_0_lang-9nouHUjO.js → menuInfo.vue_vue_type_style_index_0_lang-BfZczW9a.js} +7 -7
  54. package/dist/{pda-app-CQP1sMAI.js → pda-app-DxGYn4G7.js} +18 -18
  55. package/dist/{resource-BDQLrMpK.js → resource-BnYWe_-Q.js} +7 -7
  56. package/dist/{su-welcome-CZysrZQ1.js → su-welcome-B2rNhhDH.js} +88 -88
  57. package/dist/{sys-config-BiGNMYSA.js → sys-config-Bb4WkxZK.js} +6 -6
  58. package/dist/udp-core.css +2 -2
  59. package/dist/utogether-MlnyYtNS.js +4 -0
  60. package/index.ts +12 -4
  61. package/package.json +1 -1
  62. package/src/layout/hooks/useTag.ts +221 -233
  63. package/src/main.ts +114 -113
  64. package/src/style/login.css +336 -336
  65. package/src/style/vxetable.scss +13 -0
  66. package/src/utils/index.ts +3 -1
  67. package/src/views/udev/dict/DictView.vue +2 -2
  68. package/src/views/ulogin/login.vue +323 -323
  69. package/types/global.d.ts +230 -236
  70. package/dist/login-DzyK2soP.js +0 -278
  71. package/dist/utogether-BRirriOz.js +0 -182
@@ -1,7 +1,7 @@
1
- import { defineComponent as re, ref as N, computed as G, watch as me, createVNode as p, Fragment as Y, withDirectives as he, unref as C, resolveDirective as be, nextTick as ve, resolveComponent as x, createElementBlock as Oe, openBlock as J, createBlock as _e, createCommentVNode as we, isVNode as Te } from "vue";
1
+ import { defineComponent as re, ref as N, computed as G, watch as me, createVNode as p, Fragment as Y, withDirectives as he, unref as C, resolveDirective as be, nextTick as ve, resolveComponent as x, createElementBlock as Oe, openBlock as J, createBlock as we, createCommentVNode as _e, isVNode as Te } from "vue";
2
2
  import { useI18n as je } from "vue-i18n";
3
3
  import { t as Ce } from "./await-to-js.es5-BtRbN2QH.js";
4
- import { I as Se, x as xe, q as $e, _ as Pe } from "./index-C6ehxLLO.js";
4
+ import { I as Se, B as xe, w as $e, _ as Pe } from "./index-24fnvUBy.js";
5
5
  import { withInstall as Ve, useRender as Ae } from "@utogether/utils";
6
6
  import { clone as oe, isString as Z } from "xe-utils";
7
7
  import Ne from "qrcode";
@@ -113,7 +113,7 @@ function b(e, t) {
113
113
  }), { validator: n } = r;
114
114
  return R(n) && (r.validator = ce(n, r)), r;
115
115
  }
116
- function _(e, t) {
116
+ function w(e, t) {
117
117
  const r = b(e, t);
118
118
  return Object.defineProperty(r, "validate", {
119
119
  value(n) {
@@ -129,17 +129,17 @@ ${JSON.stringify(
129
129
  function B(e) {
130
130
  return e.replace(/^(?!\s*$)/gm, " ");
131
131
  }
132
- const Ue = () => _("any", {}), qe = () => _("function", {
132
+ const Ue = () => w("any", {}), qe = () => w("function", {
133
133
  type: Function
134
- }), ne = () => _("boolean", {
134
+ }), ne = () => w("boolean", {
135
135
  type: Boolean
136
- }), De = () => _("string", {
136
+ }), De = () => w("string", {
137
137
  type: String
138
- }), Be = () => _("number", {
138
+ }), Be = () => w("number", {
139
139
  type: Number
140
- }), Ee = () => _("array", {
140
+ }), Ee = () => w("array", {
141
141
  type: Array
142
- }), Fe = () => _("object", {
142
+ }), Fe = () => w("object", {
143
143
  type: Object
144
144
  }), We = () => b("integer", {
145
145
  type: Number,
@@ -364,7 +364,7 @@ const tt = /* @__PURE__ */ (() => {
364
364
  return S(r, t, !0) === !0;
365
365
  },
366
366
  toType(t, r, n = !1) {
367
- return n ? _(t, r) : b(t, r);
367
+ return n ? w(t, r) : b(t, r);
368
368
  }
369
369
  }), e
370
370
  );
@@ -401,12 +401,12 @@ const nt = de({
401
401
  class D extends nt {
402
402
  // a native-like validator that supports the `.validable` method
403
403
  static get style() {
404
- return _("style", {
404
+ return w("style", {
405
405
  type: [String, Object]
406
406
  });
407
407
  }
408
408
  static get VNodeChild() {
409
- return _("VNodeChild", {
409
+ return w("VNodeChild", {
410
410
  type: void 0
411
411
  });
412
412
  }
@@ -491,18 +491,18 @@ const rt = {
491
491
  crossOrigin: P = "anonymous",
492
492
  borderRadius: fe = 8,
493
493
  logoRadius: W = 0
494
- } = u, pe = Z(e.logo) ? e.logo : e.logo.src, w = l * f, T = l * (1 - f) / 2, Q = l * (f + O), H = l * (1 - f - O) / 2, v = i.getContext("2d");
494
+ } = u, pe = Z(e.logo) ? e.logo : e.logo.src, _ = l * f, T = l * (1 - f) / 2, Q = l * (f + O), H = l * (1 - f - O) / 2, v = i.getContext("2d");
495
495
  if (!v) return;
496
496
  I(v)(H, H, Q, Q, fe), v.fillStyle = m, v.fill();
497
497
  const V = new Image();
498
498
  (P || W) && V.setAttribute("crossOrigin", P), V.src = pe;
499
499
  const ye = (A) => {
500
- v.drawImage(A, T, T, w, w);
500
+ v.drawImage(A, T, T, _, _);
501
501
  }, ge = (A) => {
502
502
  const q = document.createElement("canvas");
503
- q.width = T + w, q.height = T + w;
503
+ q.width = T + _, q.height = T + _;
504
504
  const X = q.getContext("2d");
505
- if (!X || !v || (X.drawImage(A, T, T, w, w), I(v)(T, T, w, w, W), !v)) return;
505
+ if (!X || !v || (X.drawImage(A, T, T, _, _), I(v)(T, T, _, _, W), !v)) return;
506
506
  const K = v.createPattern(q, "no-repeat");
507
507
  K && (v.fillStyle = K, v.fill());
508
508
  };
@@ -689,7 +689,7 @@ const at = {
689
689
  url: o,
690
690
  mode: "form",
691
691
  onButtonClick: g
692
- }, null, 512), $.value ? (J(), _e(f, {
692
+ }, null, 512), $.value ? (J(), we(f, {
693
693
  key: 0,
694
694
  record: s.value,
695
695
  items: E,
@@ -701,7 +701,7 @@ const at = {
701
701
  "data-status": "add",
702
702
  onClose: l[0] || (l[0] = (m) => $.value = !1),
703
703
  onConfirm: F
704
- }, null, 8, ["record", "title"])) : we("", !0)]);
704
+ }, null, 8, ["record", "title"])) : _e("", !0)]);
705
705
  };
706
706
  }
707
707
  }), ht = /* @__PURE__ */ Pe(lt, [["__scopeId", "data-v-85aa0bfb"]]);
@@ -1,7 +1,7 @@
1
- import { defineComponent as w, ref as o, resolveComponent as r, createElementBlock as k, openBlock as i, createVNode as l, createBlock as x, createCommentVNode as b, Fragment as U } from "vue";
2
- import { successMessage as B } from "@utogether/utils";
1
+ import { defineComponent as w, ref as o, resolveComponent as r, createElementBlock as k, openBlock as i, createVNode as l, createBlock as b, createCommentVNode as x, Fragment as B } from "vue";
2
+ import { successMessage as U } from "@utogether/utils";
3
3
  import { useClipboard as N } from "@vueuse/core";
4
- import { x as y } from "./index-C6ehxLLO.js";
4
+ import { B as y } from "./index-24fnvUBy.js";
5
5
  const q = {
6
6
  name: "StaticResource"
7
7
  }, V = /* @__PURE__ */ w({
@@ -32,7 +32,7 @@ const q = {
32
32
  slots: {
33
33
  default: ({
34
34
  row: e
35
- }) => [l(U, null, [l(r("ut-button"), {
35
+ }) => [l(B, null, [l(r("ut-button"), {
36
36
  content: "download",
37
37
  icon: "ri-download-line",
38
38
  status: "success",
@@ -63,7 +63,7 @@ const q = {
63
63
  }], t = o(!1), _ = (e) => {
64
64
  a.value = {}, t.value = !0;
65
65
  }, g = (e) => {
66
- m(d + "/ufil/" + e.templateUrl), B("复制成功,快试试右键粘贴吧");
66
+ m(d + "/ufil/" + e.templateUrl), U("复制成功,快试试右键粘贴吧");
67
67
  }, h = () => {
68
68
  s.value.refreshData();
69
69
  };
@@ -77,7 +77,7 @@ const q = {
77
77
  editable: !1,
78
78
  mode: "form",
79
79
  events: p
80
- }, null, 512), t.value ? (i(), x(C, {
80
+ }, null, 512), t.value ? (i(), b(C, {
81
81
  key: 0,
82
82
  record: a.value,
83
83
  items: f,
@@ -88,7 +88,7 @@ const q = {
88
88
  url: n,
89
89
  onClose: u[0] || (u[0] = (R) => t.value = !1),
90
90
  onConfirm: h
91
- }, null, 8, ["record"])) : b("", !0)]);
91
+ }, null, 8, ["record"])) : x("", !0)]);
92
92
  };
93
93
  }
94
94
  });
@@ -1,11 +1,11 @@
1
- import { defineComponent as J, ref as y, onMounted as K, resolveComponent as _, createBlock as N, openBlock as a, withCtx as i, createElementVNode as e, createVNode as c, createCommentVNode as O, unref as B, normalizeStyle as Q, toDisplayString as f, createElementBlock as p, Fragment as k, renderList as C, nextTick as X, computed as Z, resolveDirective as ee, createTextVNode as Y, withDirectives as te, normalizeClass as se } from "vue";
2
- import { useRouter as ne } from "vue-router";
3
- import oe from "dayjs";
1
+ import { defineComponent as J, ref as y, onMounted as K, resolveComponent as _, createBlock as N, openBlock as a, withCtx as i, createElementVNode as e, createVNode as c, createCommentVNode as O, unref as B, normalizeStyle as Q, toDisplayString as f, createElementBlock as v, Fragment as k, renderList as C, nextTick as X, computed as Z, resolveDirective as ee, createTextVNode as Y, withDirectives as te, normalizeClass as se } from "vue";
2
+ import { useRouter as oe } from "vue-router";
3
+ import ne from "dayjs";
4
4
  import { dbstorage as le, delay as ae, warnMessage as ie, successMessage as ce, lunarCalendar as re, cookies as ue } from "@utogether/utils";
5
- import { q as G, e as de, n as me, _ as fe } from "./index-C6ehxLLO.js";
6
- import { clone as _e, max as ve } from "xe-utils";
7
- import pe from "vuedraggable";
8
- const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye = { class: "h-24 w-24 flex justify-center items-center flex-col relative drag-item ut-menu-top-item" }, be = { class: "w-[90%] text-xs mt-2 text-ellipsis overflow-hidden whitespace-nowrap text-center" }, we = ["onClick"], ke = { class: "p-3" }, Ce = { class: "flex items-center" }, Ne = { class: "ml-1 font-bold text-base" }, $e = { class: "pl-3 py-2" }, Ie = { class: "flex items-center" }, Ve = { class: "ml-1 font-bold text-sm" }, Me = { class: "pl-3 py-2" }, Se = { class: "flex items-center" }, Ue = { class: "ml-1 font-bold text-sm" }, je = { class: "py-2" }, qe = { class: "flex justify-end" }, De = "/upfm/v1/menuFavority", Ee = /* @__PURE__ */ J({
5
+ import { w as G, i as de, p as me, _ as fe } from "./index-24fnvUBy.js";
6
+ import { clone as _e, max as pe } from "xe-utils";
7
+ import ve from "vuedraggable";
8
+ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye = { class: "h-24 w-24 flex justify-center items-center flex-col relative drag-item ut-menu-top-item" }, be = { class: "w-[90%] text-xs mt-2 text-ellipsis overflow-hidden whitespace-nowrap text-center" }, we = ["onClick"], ke = { class: "p-3" }, Ce = { class: "flex items-center" }, Ne = { class: "ml-1 font-bold text-base" }, $e = { class: "pl-3 py-2" }, Ie = { class: "flex items-center" }, Ve = { class: "ml-1 font-bold text-sm" }, Me = { class: "pl-3 py-2" }, Se = { class: "flex items-center" }, Ue = { class: "ml-1 font-bold text-sm" }, je = { class: "py-2" }, De = { class: "flex justify-end" }, Ee = "/upfm/v1/menuFavority", Le = /* @__PURE__ */ J({
9
9
  __name: "menu-favorite",
10
10
  props: {
11
11
  dataSource: { default: () => [] },
@@ -14,60 +14,60 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
14
14
  },
15
15
  emits: ["close", "success"],
16
16
  setup(P, { emit: h }) {
17
- const j = P, u = y([]), $ = y([]), b = y(!1), I = y(!1), r = y({}), E = async () => {
18
- $.value = await le.getItem(`U-${j.userName}-ROUTES`), $.value = $.value.filter((n) => n.menuCode !== "SysHome"), await ae(64), A();
19
- }, R = (n, s) => {
20
- var o;
17
+ const j = P, u = y([]), $ = y([]), b = y(!1), I = y(!1), r = y({}), L = async () => {
18
+ $.value = await le.getItem(`U-${j.userName}-ROUTES`), $.value = $.value.filter((o) => o.menuCode !== "SysHome"), await ae(64), A();
19
+ }, R = (o, s) => {
20
+ var n;
21
21
  u.value.splice(s, 1);
22
- const t = (o = r.value[n.parentId]) == null ? void 0 : o.findIndex((v) => v === n.menuId);
23
- r.value[n.parentId].splice(t, 1);
24
- }, V = (n) => {
22
+ const t = (n = r.value[o.parentId]) == null ? void 0 : n.findIndex((p) => p === o.menuId);
23
+ r.value[o.parentId].splice(t, 1);
24
+ }, V = (o) => {
25
25
  const s = [], t = [];
26
- return n.children.forEach((o) => {
27
- ["5", "100"].includes(o.menuCategory) ? s.push(o) : t.push(o);
26
+ return o.children.forEach((n) => {
27
+ ["5", "100"].includes(n.menuCategory) ? s.push(n) : t.push(n);
28
28
  }), { folder: s, menus: t };
29
29
  }, A = () => {
30
- j.dataSource.forEach((n) => {
31
- r.value[n.parentId] ? r.value[n.parentId].push(n.menuId) : r.value[n.parentId] = [n.menuId];
30
+ j.dataSource.forEach((o) => {
31
+ r.value[o.parentId] ? r.value[o.parentId].push(o.menuId) : r.value[o.parentId] = [o.menuId];
32
32
  });
33
- }, q = (n, s) => {
33
+ }, D = (o, s) => {
34
34
  debugger;
35
35
  if (s.checked) {
36
36
  if (u.value.length === 16)
37
37
  return X(() => {
38
- r.value[n.id].splice(r.value[n.id].length - 1, 1);
38
+ r.value[o.id].splice(r.value[o.id].length - 1, 1);
39
39
  }), ie("最多只能选择16个常用功能");
40
- const t = n.children.find((o) => o.id === s.label);
40
+ const t = o.children.find((n) => n.id === s.label);
41
41
  t && (t.seqNo = H() + 10, t.menuId = t.id, u.value.push(t));
42
42
  } else {
43
- let t = u.value.findIndex((o) => o.menuId === s.label);
44
- t !== -1 && u.value.splice(t, 1), t = r.value[n.id].findIndex((o) => o === s.label), t !== -1 && r.value[n.id].splice(t, 1);
43
+ let t = u.value.findIndex((n) => n.menuId === s.label);
44
+ t !== -1 && u.value.splice(t, 1), t = r.value[o.id].findIndex((n) => n === s.label), t !== -1 && r.value[o.id].splice(t, 1);
45
45
  }
46
46
  }, F = () => {
47
- u.value.forEach((n, s) => {
48
- n.seqNo = (s + 1) * 10;
47
+ u.value.forEach((o, s) => {
48
+ o.seqNo = (s + 1) * 10;
49
49
  });
50
50
  }, H = () => {
51
- var n;
52
- return ((n = ve(u.value, (s) => s.seqNo)) == null ? void 0 : n.seqNo) || 0;
51
+ var o;
52
+ return ((o = pe(u.value, (s) => s.seqNo)) == null ? void 0 : o.seqNo) || 0;
53
53
  }, T = () => {
54
- const n = u.value.map((s) => ({
54
+ const o = u.value.map((s) => ({
55
55
  userName: j.userName,
56
56
  menuId: s.menuId,
57
57
  seqNo: s.seqNo
58
58
  }));
59
- I.value = !0, G().post(De, n).then(() => {
60
- ce(), D(), z("success");
59
+ I.value = !0, G().post(Ee, o).then(() => {
60
+ ce(), E(), z("success");
61
61
  }).finally(() => {
62
62
  I.value = !1;
63
63
  });
64
- }, D = () => {
64
+ }, E = () => {
65
65
  b.value = !1, z("close");
66
- }, L = (n) => ["#409eff", "#67c23a", "#13c2c2", "#e85f33", "orange"][n % 5], z = h;
66
+ }, q = (o) => ["#409eff", "#67c23a", "#13c2c2", "#e85f33", "orange"][o % 5], z = h;
67
67
  return K(() => {
68
- u.value = _e(j.dataSource, !0), b.value = !0, E();
69
- }), (n, s) => {
70
- const t = _("el-empty"), o = _("iconify-icon-offline"), v = _("el-scrollbar"), M = _("vxe-checkbox"), S = _("vxe-checkbox-group"), w = _("ut-button"), U = _("vxe-modal");
68
+ u.value = _e(j.dataSource, !0), b.value = !0, L();
69
+ }), (o, s) => {
70
+ const t = _("el-empty"), n = _("iconify-icon-offline"), p = _("el-scrollbar"), M = _("vxe-checkbox"), S = _("vxe-checkbox-group"), w = _("ut-button"), U = _("vxe-modal");
71
71
  return a(), N(U, {
72
72
  modelValue: b.value,
73
73
  "onUpdate:modelValue": s[0] || (s[0] = (m) => b.value = m),
@@ -77,11 +77,11 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
77
77
  title: "常用菜单设置(拖动可改变菜单顺序)",
78
78
  "class-name": "u-favorite-modal",
79
79
  "show-footer": "",
80
- onClose: D
80
+ onClose: E
81
81
  }, {
82
82
  default: i(() => [
83
83
  e("div", ge, [
84
- c(v, {
84
+ c(p, {
85
85
  heigth: "100",
86
86
  class: "w-full border-b border-slate-300"
87
87
  }, {
@@ -93,7 +93,7 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
93
93
  description: "",
94
94
  class: "p-0"
95
95
  })),
96
- c(B(pe), {
96
+ c(B(ve), {
97
97
  list: u.value,
98
98
  handle: ".drag-item",
99
99
  animation: "300",
@@ -106,10 +106,10 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
106
106
  e("div", ye, [
107
107
  e("div", {
108
108
  class: "rounded-full w-10 h-10 flex items-center justify-center",
109
- style: Q({ backgroundColor: L(l) })
109
+ style: Q({ backgroundColor: q(l) })
110
110
  }, [
111
- c(o, {
112
- icon: m.icon || `ri:${n.icons[l]}-line`,
111
+ c(n, {
112
+ icon: m.icon || `ri:${o.icons[l]}-line`,
113
113
  class: "text-2xl text-white"
114
114
  }, null, 8, ["icon"])
115
115
  ], 4),
@@ -127,10 +127,10 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
127
127
  ]),
128
128
  _: 1
129
129
  }),
130
- c(v, { class: "u-favorite-menu--contain" }, {
130
+ c(p, { class: "u-favorite-menu--contain" }, {
131
131
  default: i(() => [
132
132
  e("div", ke, [
133
- (a(!0), p(k, null, C($.value, (m) => (a(), p("div", {
133
+ (a(!0), v(k, null, C($.value, (m) => (a(), v("div", {
134
134
  key: m.id,
135
135
  class: "grandparent-node"
136
136
  }, [
@@ -142,10 +142,10 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
142
142
  c(S, {
143
143
  modelValue: r.value[m.id],
144
144
  "onUpdate:modelValue": (l) => r.value[m.id] = l,
145
- onChange: (l) => q(m, l)
145
+ onChange: (l) => D(m, l)
146
146
  }, {
147
147
  default: i(() => [
148
- (a(!0), p(k, null, C(V(m).menus, (l) => (a(), N(M, {
148
+ (a(!0), v(k, null, C(V(m).menus, (l) => (a(), N(M, {
149
149
  key: l.id,
150
150
  label: l.id,
151
151
  content: l.menuName
@@ -154,7 +154,7 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
154
154
  _: 2
155
155
  }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])
156
156
  ]),
157
- (a(!0), p(k, null, C(V(m).folder, (l) => (a(), p("div", {
157
+ (a(!0), v(k, null, C(V(m).folder, (l) => (a(), v("div", {
158
158
  key: l.id,
159
159
  class: "parent-node pl-3"
160
160
  }, [
@@ -166,10 +166,10 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
166
166
  c(S, {
167
167
  modelValue: r.value[l.id],
168
168
  "onUpdate:modelValue": (d) => r.value[l.id] = d,
169
- onChange: (d) => q(l, d)
169
+ onChange: (d) => D(l, d)
170
170
  }, {
171
171
  default: i(() => [
172
- (a(!0), p(k, null, C(V(l).menus, (d) => (a(), N(M, {
172
+ (a(!0), v(k, null, C(V(l).menus, (d) => (a(), N(M, {
173
173
  key: d.id,
174
174
  label: d.id,
175
175
  content: d.menuName
@@ -178,7 +178,7 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
178
178
  _: 2
179
179
  }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])
180
180
  ]),
181
- (a(!0), p(k, null, C(V(l).folder, (d) => (a(), p("div", {
181
+ (a(!0), v(k, null, C(V(l).folder, (d) => (a(), v("div", {
182
182
  key: d.id,
183
183
  class: "child-node pl-3"
184
184
  }, [
@@ -190,10 +190,10 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
190
190
  c(S, {
191
191
  modelValue: r.value[d.id],
192
192
  "onUpdate:modelValue": (x) => r.value[d.id] = x,
193
- onChange: (x) => q(l, x)
193
+ onChange: (x) => D(l, x)
194
194
  }, {
195
195
  default: i(() => [
196
- (a(!0), p(k, null, C(V(d).menus, (x) => (a(), N(M, {
196
+ (a(!0), v(k, null, C(V(d).menus, (x) => (a(), N(M, {
197
197
  key: x.id,
198
198
  label: x.id,
199
199
  content: x.menuName
@@ -212,11 +212,11 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
212
212
  ])
213
213
  ]),
214
214
  footer: i(() => [
215
- e("div", qe, [
215
+ e("div", De, [
216
216
  c(w, {
217
217
  content: "cancel",
218
218
  status: "warning",
219
- onTap: D
219
+ onTap: E
220
220
  }),
221
221
  c(w, {
222
222
  content: "confirm",
@@ -228,53 +228,53 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
228
228
  }, 8, ["modelValue", "loading"]);
229
229
  };
230
230
  }
231
- }), Le = { class: "ut-home m-3" }, ze = { class: "h-32 mb-4 p-4 flex justify-between items-center bg-white home-page" }, Re = { class: "flex flex-row items-center flex-[2]" }, Ae = { class: "ml-4 text-xs flex-[2]" }, Fe = { class: "flex justify-center items-center" }, He = { class: "py-2 text-gray-500 flex" }, Te = { class: "w-2/3" }, Oe = { class: "text-gray-500 flex" }, Be = { class: "w-2/3" }, Ge = { class: "flex flex-col" }, Pe = { class: "text-4xl" }, We = { class: "mt-1 ml-3" }, Ye = { class: "default:bg-white dark:bg-black" }, Je = ["onClick"], Ke = { class: "h-20 flex justify-center items-center flex-col" }, Qe = { class: "text-xs mt-2" }, Xe = { class: "p-3" }, Ze = { class: "p-0 w-full h-full" }, et = { class: "flex" }, tt = { class: "ml-3" }, st = { class: "text-blue-600 mr-3" }, nt = { class: "text-gray-400 text-sm" }, ot = { class: "p-1" }, lt = /* @__PURE__ */ J({
231
+ }), qe = { class: "ut-home m-3" }, ze = { class: "h-32 mb-4 p-4 flex justify-between items-center bg-white home-page" }, Re = { class: "flex flex-row items-center flex-[2]" }, Ae = { class: "ml-4 text-xs flex-[2]" }, Fe = { class: "flex justify-center items-center" }, He = { class: "py-2 text-gray-500 flex" }, Te = { class: "w-2/3" }, Oe = { class: "text-gray-500 flex" }, Be = { class: "w-2/3" }, Ge = { class: "flex flex-col" }, Pe = { class: "text-4xl" }, We = { class: "mt-1 ml-3" }, Ye = { class: "default:bg-white dark:bg-black" }, Je = ["onClick"], Ke = { class: "h-20 flex justify-center items-center flex-col" }, Qe = { class: "text-xs mt-2" }, Xe = { class: "p-3" }, Ze = { class: "p-0 w-full h-full" }, et = { class: "flex" }, tt = { class: "ml-3" }, st = { class: "text-blue-600 mr-3" }, ot = { class: "text-gray-400 text-sm" }, nt = { class: "p-1" }, lt = /* @__PURE__ */ J({
232
232
  name: "SuHome",
233
233
  __name: "su-welcome",
234
234
  setup(P) {
235
- const h = de(), j = ne(), u = y([]), $ = y([]), b = y(!1), I = y(!1), r = Z(() => {
235
+ const h = de(), j = oe(), u = y([]), $ = y([]), b = y(!1), I = y(!1), r = Z(() => {
236
236
  var s;
237
237
  return (s = h.getUserInfo.name) == null ? void 0 : s.slice(0, 1);
238
- }), E = () => {
239
- var t, o;
240
- return h.isAdminRole ? "系统管理员" : (o = (t = h.getUserInfo) == null ? void 0 : t.sysRoles) == null ? void 0 : o.map((v) => v.roleName).join(",");
238
+ }), L = () => {
239
+ var t, n;
240
+ return h.isAdminRole ? "系统管理员" : (n = (t = h.getUserInfo) == null ? void 0 : t.sysRoles) == null ? void 0 : n.map((p) => p.roleName).join(",");
241
241
  }, R = () => {
242
242
  var t;
243
- return h.isAdminRole ? "【系统管理员】拥有所有组织" : E() === "项目组管理员" ? "【项目组管理员】拥有所有组织" : (t = h.getOrglist) == null ? void 0 : t.map((o) => o.orgName).join(",");
243
+ return h.isAdminRole ? "【系统管理员】拥有所有组织" : L() === "项目组管理员" ? "【项目组管理员】拥有所有组织" : (t = h.getOrglist) == null ? void 0 : t.map((n) => n.orgName).join(",");
244
244
  }, V = () => {
245
- const s = Number(oe().format("HH"));
245
+ const s = Number(ne().format("HH"));
246
246
  return s < 12 ? "上午好" : s < 18 ? "下午好" : "晚上好";
247
247
  }, A = () => {
248
248
  const s = /* @__PURE__ */ new Date(), t = re.solar2lunar(
249
249
  s.getFullYear(),
250
250
  s.getMonth() + 1,
251
251
  s.getDate()
252
- ), { gzYear: o, IMonthCn: v, IDayCn: M, cMonth: S, cDay: w, ncWeek: U } = t;
253
- return `${S}月${w}日 ${o}${v}${M} ${U}`;
254
- }, q = () => {
252
+ ), { gzYear: n, IMonthCn: p, IDayCn: M, cMonth: S, cDay: w, ncWeek: U } = t;
253
+ return `${S}月${w}日 ${n}${p}${M} ${U}`;
254
+ }, D = () => {
255
255
  const s = "/upfm/v1/menuFavority";
256
256
  I.value = !0;
257
257
  const t = { pageSize: 20, pageNum: 1, userName: ue.get(me) };
258
- G().get(s, t).then((o) => {
259
- u.value = (o == null ? void 0 : o.list) || [];
258
+ G().get(s, t).then((n) => {
259
+ u.value = (n == null ? void 0 : n.list) || [];
260
260
  }).finally(() => {
261
261
  I.value = !1;
262
262
  });
263
263
  }, F = (s) => {
264
264
  j.push(s.menuPath);
265
265
  }, H = () => {
266
- var o;
267
- const s = "/upfm/v1/userMonitor", t = { pageSize: 8, pageNum: 1, employeeName: (o = h.getUserInfo) == null ? void 0 : o.name };
268
- G().get(s, t).then((v) => {
269
- $.value = (v == null ? void 0 : v.list) || [];
266
+ var n;
267
+ const s = "/upfm/v1/userMonitor", t = { pageSize: 8, pageNum: 1, employeeName: (n = h.getUserInfo) == null ? void 0 : n.name };
268
+ G().get(s, t).then((p) => {
269
+ $.value = (p == null ? void 0 : p.list) || [];
270
270
  });
271
271
  }, T = () => {
272
272
  b.value = !0;
273
273
  };
274
274
  K(() => {
275
- q(), H();
275
+ D(), H();
276
276
  });
277
- const D = (s) => ["#409eff", "#67c23a", "#13c2c2", "#e85f33", "orange"][s % 5], L = [
277
+ const E = (s) => ["#409eff", "#67c23a", "#13c2c2", "#e85f33", "orange"][s % 5], q = [
278
278
  "community",
279
279
  "shield-star",
280
280
  "group",
@@ -317,7 +317,7 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
317
317
  10: { 1: "假", 2: "假", 3: "假", 4: "假", 5: "假", 6: "假", 7: "假", 12: "班" }
318
318
  }
319
319
  }
320
- ], n = [
320
+ ], o = [
321
321
  { name: "元旦", date: "2024-01-01" },
322
322
  { name: "春节", date: "2024-02-10" },
323
323
  { name: "清明节", date: "2024-04-04" },
@@ -328,12 +328,12 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
328
328
  ];
329
329
  return (s, t) => {
330
330
  var x;
331
- const o = _("el-avatar"), v = _("ut-flip-down"), M = _("el-empty"), S = _("iconify-icon-offline"), w = _("el-card"), U = _("el-col"), m = _("ut-calendar"), l = _("el-row"), d = ee("spinning");
332
- return a(), p("div", Le, [
331
+ const n = _("el-avatar"), p = _("ut-flip-down"), M = _("el-empty"), S = _("iconify-icon-offline"), w = _("el-card"), U = _("el-col"), m = _("ut-calendar"), l = _("el-row"), d = ee("spinning");
332
+ return a(), v("div", qe, [
333
333
  e("div", ze, [
334
334
  e("div", Re, [
335
335
  e("div", null, [
336
- c(o, {
336
+ c(n, {
337
337
  size: "large",
338
338
  class: "text-4xl font-bold bg-[var(--el-color-primary)]"
339
339
  }, {
@@ -353,7 +353,7 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
353
353
  ]),
354
354
  e("div", He, [
355
355
  t[2] || (t[2] = e("span", { class: "inline-block" }, " 所属角色: ", -1)),
356
- e("div", Te, f(E()), 1)
356
+ e("div", Te, f(L()), 1)
357
357
  ]),
358
358
  e("div", Oe, [
359
359
  t[3] || (t[3] = e("span", { class: "inline-block" }, " 所属组织: ", -1)),
@@ -363,7 +363,7 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
363
363
  ]),
364
364
  e("div", Ge, [
365
365
  e("span", Pe, [
366
- c(v, {
366
+ c(p, {
367
367
  "show-days": !1,
368
368
  "show-labels": !1
369
369
  })
@@ -406,7 +406,7 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
406
406
  e("ul", {
407
407
  class: se(["p-0 w-full h-full grid grid-rows-1 grid-cols-8 u-dashed-menu", { "grid-rows-2": u.value.length > 8 }])
408
408
  }, [
409
- (a(!0), p(k, null, C(u.value, (g, W) => (a(), p("li", {
409
+ (a(!0), v(k, null, C(u.value, (g, W) => (a(), v("li", {
410
410
  key: g.id,
411
411
  class: "text-center list-none bg-white",
412
412
  onClick: (at) => F(g)
@@ -414,10 +414,10 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
414
414
  e("div", Ke, [
415
415
  e("div", {
416
416
  class: "rounded-full w-10 h-10 flex items-center justify-center",
417
- style: Q({ backgroundColor: D(W) })
417
+ style: Q({ backgroundColor: E(W) })
418
418
  }, [
419
419
  c(S, {
420
- icon: g.icon || `ri:${L[W]}-line`,
420
+ icon: g.icon || `ri:${q[W]}-line`,
421
421
  class: "text-2xl text-white"
422
422
  }, null, 8, ["icon"])
423
423
  ], 4),
@@ -450,13 +450,13 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
450
450
  default: i(() => [
451
451
  e("div", Xe, [
452
452
  e("ul", Ze, [
453
- (a(!0), p(k, null, C($.value, (g) => (a(), p("li", {
453
+ (a(!0), v(k, null, C($.value, (g) => (a(), v("li", {
454
454
  key: g.id,
455
455
  class: "w-full list-none p-2 border-b border-gray-200"
456
456
  }, [
457
457
  e("div", et, [
458
458
  e("div", null, [
459
- c(o, { class: "text-base" }, {
459
+ c(n, { class: "text-base" }, {
460
460
  default: i(() => [
461
461
  Y(f(r.value), 1)
462
462
  ]),
@@ -468,7 +468,7 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
468
468
  e("span", st, f(g.browser), 1),
469
469
  e("span", null, f(g.browserVersion || g.platformVersion), 1)
470
470
  ]),
471
- e("div", nt, f(g.loginTime), 1)
471
+ e("div", ot, f(g.loginTime), 1)
472
472
  ])
473
473
  ])
474
474
  ]))), 128))
@@ -494,10 +494,10 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
494
494
  ], -1)
495
495
  ])),
496
496
  default: i(() => [
497
- e("div", ot, [
497
+ e("div", nt, [
498
498
  c(m, {
499
499
  holidays: z,
500
- "statutory-holiday": n
500
+ "statutory-holiday": o
501
501
  })
502
502
  ])
503
503
  ]),
@@ -509,13 +509,13 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
509
509
  ]),
510
510
  _: 1
511
511
  }),
512
- b.value ? (a(), N(Ee, {
512
+ b.value ? (a(), N(Le, {
513
513
  key: 0,
514
514
  "data-source": u.value,
515
515
  "user-name": B(h).getUserInfo.userName,
516
- icons: L,
516
+ icons: q,
517
517
  onClose: t[0] || (t[0] = (g) => b.value = !1),
518
- onSuccess: q
518
+ onSuccess: D
519
519
  }, null, 8, ["data-source", "user-name"])) : O("", !0)
520
520
  ]);
521
521
  };
@@ -1,10 +1,10 @@
1
- import { defineComponent as x, ref as $, reactive as A, computed as Y, onMounted as J, resolveComponent as p, resolveDirective as R, withDirectives as K, createElementBlock as H, openBlock as E, createElementVNode as u, createVNode as a, withCtx as s, createBlock as B, createCommentVNode as S, unref as v, createTextVNode as F, toDisplayString as r } from "vue";
1
+ import { defineComponent as q, ref as $, reactive as A, computed as x, onMounted as J, resolveComponent as p, resolveDirective as R, withDirectives as K, createElementBlock as H, openBlock as E, createElementVNode as u, createVNode as a, withCtx as s, createBlock as B, createCommentVNode as S, unref as v, createTextVNode as F, toDisplayString as r } from "vue";
2
2
  import { useI18n as Q } from "vue-i18n";
3
3
  import { t as T } from "./await-to-js.es5-BtRbN2QH.js";
4
4
  import { cookies as j, successMessage as W, warnMessage as X } from "@utogether/utils";
5
5
  import { isArray as Z } from "xe-utils";
6
- import { x as ee, m as te, n as z, q as le } from "./index-C6ehxLLO.js";
7
- const ae = { class: "flex flex-col items-center pt-20 bg-white u-system-config" }, oe = { class: "flex w-1/2 p-3 overflow-y-auto border border-gray-300 rounded-md" }, se = { class: "flex items-center" }, ne = { class: "pl-2 text-xs" }, ie = { class: "pl-2" }, ue = { class: "pl-2" }, re = { class: "flex items-center" }, pe = { class: "pl-2 text-xs" }, de = { class: "pl-2" }, ce = { class: "flex items-center" }, me = { class: "pl-2 text-xs" }, ge = { class: "flex justify-end w-1/2 p-2" }, L = "/upfm/v1/sysConfig", Ce = /* @__PURE__ */ x({
6
+ import { B as ee, o as te, p as z, w as le } from "./index-24fnvUBy.js";
7
+ const ae = { class: "flex flex-col items-center pt-20 bg-white u-system-config" }, oe = { class: "flex w-1/2 p-3 overflow-y-auto border border-gray-300 rounded-md" }, se = { class: "flex items-center" }, ne = { class: "pl-2 text-xs" }, ie = { class: "pl-2" }, ue = { class: "pl-2" }, re = { class: "flex items-center" }, pe = { class: "pl-2 text-xs" }, de = { class: "pl-2" }, ce = { class: "flex items-center" }, me = { class: "pl-2 text-xs" }, ge = { class: "flex justify-end w-1/2 p-2" }, L = "/upfm/v1/sysConfig", Ce = /* @__PURE__ */ q({
8
8
  __name: "sys-config",
9
9
  setup(fe) {
10
10
  const N = $(), y = $(!1), l = A({
@@ -61,7 +61,7 @@ const ae = { class: "flex flex-col items-center pt-20 bg-white u-system-config"
61
61
  }
62
62
  ],
63
63
  title: [{ required: !0, message: g("message.required") + g("message.udp.systemTitle"), trigger: "blur" }]
64
- }), h = Y(() => {
64
+ }), h = x(() => {
65
65
  const e = j.get(te);
66
66
  return {
67
67
  Authorization: "Bearer " + JSON.parse(e).accessToken
@@ -106,7 +106,7 @@ const ae = { class: "flex flex-col items-center pt-20 bg-white u-system-config"
106
106
  return J(() => {
107
107
  G();
108
108
  }), (e, t) => {
109
- const i = p("el-input"), n = p("el-form-item"), c = p("el-option"), V = p("el-select"), m = p("el-switch"), O = p("vxe-color-picker"), b = p("el-button"), k = p("el-upload"), M = p("el-form"), q = R("spinning");
109
+ const i = p("el-input"), n = p("el-form-item"), c = p("el-option"), V = p("el-select"), m = p("el-switch"), O = p("vxe-color-picker"), b = p("el-button"), k = p("el-upload"), M = p("el-form"), Y = R("spinning");
110
110
  return K((E(), H("div", ae, [
111
111
  u("div", oe, [
112
112
  a(M, {
@@ -345,7 +345,7 @@ const ae = { class: "flex flex-col items-center pt-20 bg-white u-system-config"
345
345
  })
346
346
  ])
347
347
  ])), [
348
- [q, y.value]
348
+ [Y, y.value]
349
349
  ]);
350
350
  };
351
351
  }