@utogether/udp-core 1.0.1-beta.1 → 1.0.1-beta.10

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 (140) hide show
  1. package/build/plugins.ts +39 -32
  2. package/dist/{403-Dp617CWX.js → 403-Ctxjn4q8.js} +1 -1
  3. package/dist/{404-Cz_Axb6Y.js → 404-W5yzyiZ9.js} +1 -1
  4. package/dist/{500-BGCtRNse.js → 500-DXuGEOm4.js} +1 -1
  5. package/dist/{AuthorityInfo-DGGfm7IS.js → AuthorityInfo-C2tflCt8.js} +1 -1
  6. package/dist/AuthorityInfo.vue_vue_type_style_index_0_lang-SVgy3HX7.js +100 -0
  7. package/dist/{Company-IV3GTnzY.js → Company-PLez5GoH.js} +3 -3
  8. package/dist/{CompanyPanel-qV-_VtoL.js → CompanyPanel-CIGaQooL.js} +16 -16
  9. package/dist/{Department-B3W-OxW8.js → Department-B9wLsXFm.js} +3 -3
  10. package/dist/{DepartmentPanel-Cw3OWxE7.js → DepartmentPanel-DSM4lTaz.js} +1 -1
  11. package/dist/{DesignPanel-BFxR2fHJ.js → DesignPanel-B6a9wW_A.js} +1 -1
  12. package/dist/{DesignPanel.vue_vue_type_style_index_0_lang-DljbeFba.js → DesignPanel.vue_vue_type_style_index_0_lang-DtHfoDQk.js} +24 -26
  13. package/dist/DictView-DhFbQxdJ.js +110 -0
  14. package/dist/InvOrganization-D90AbR3b.js +66 -0
  15. package/dist/Org-DxBkYabD.js +39 -0
  16. package/dist/{Preview-BlDMmpdR.js → Preview-BFtRpBxw.js} +1 -1
  17. package/dist/{ReportDefine-Cub_85LA.js → ReportDefine-BIa2QryC.js} +1 -1
  18. package/dist/{ReportDesign-hFhq5UVE.js → ReportDesign-CnyjI-WD.js} +43 -43
  19. package/dist/{ReportQuery-ChkWEyxT.js → ReportQuery-BiK7yEhV.js} +1 -1
  20. package/dist/{ReportQueryFrom-KVyD_8Dj.js → ReportQueryFrom-C2rqdFTm.js} +1 -1
  21. package/dist/{ReportQueryFrom.vue_vue_type_style_index_0_lang-CLNODquq.js → ReportQueryFrom.vue_vue_type_style_index_0_lang-Ba9HLnXQ.js} +1 -1
  22. package/dist/{ReportTemplate-ag9NDvh2.js → ReportTemplate-DdkLscP3.js} +28 -28
  23. package/dist/{Role-_q3lQ8CZ.js → Role-BrsxgK8D.js} +6 -6
  24. package/dist/{RoleAssign-DZb9IRsm.js → RoleAssign-DiqwJqDa.js} +8 -8
  25. package/dist/{RolePanel-CsLsz-Ds.js → RolePanel-BDusGyo7.js} +1 -1
  26. package/dist/{RolePanel-BQb1LlhD.js → RolePanel-Dqx5dI3f.js} +1 -1
  27. package/dist/RolePanel.vue_vue_type_script_setup_true_lang-2Z1q_5uW.js +132 -0
  28. package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-BrnRgHEk.js → RolePanel.vue_vue_type_script_setup_true_lang-B5lUnaMI.js} +44 -38
  29. package/dist/{ScrollPanel.vue_vue_type_style_index_0_lang-CaFKRwXu.js → ScrollPanel.vue_vue_type_style_index_0_lang-vSP23fEq.js} +21 -21
  30. package/dist/{Staff-BSf9Ypbk.js → Staff-Cwi9LQiZ.js} +3 -3
  31. package/dist/{StaffInfo-BNKasyMF.js → StaffInfo-XjVtyaMv.js} +1 -1
  32. package/dist/{StaffInfo.vue_vue_type_script_setup_true_lang-DDZ7ukd0.js → StaffInfo.vue_vue_type_script_setup_true_lang-wSrAuyet.js} +11 -11
  33. package/dist/{StaffPanel-Bpq0WVlH.js → StaffPanel-C-wYcFdv.js} +1 -1
  34. package/dist/{StaffPanel.vue_vue_type_script_setup_true_lang-BhiJ0Q-Q.js → StaffPanel.vue_vue_type_script_setup_true_lang-DZNArmnC.js} +2 -2
  35. package/dist/{SysUser-FAABuNti.js → SysUser-O4tvr-Ur.js} +2 -2
  36. package/dist/{SysUserPanel-PxJeOgHm.js → SysUserPanel-B853docZ.js} +1 -1
  37. package/dist/SysUserPanel.vue_vue_type_script_setup_true_lang-DhiYYC97.js +294 -0
  38. package/dist/{SystemMenu-C-7NAGon.js → SystemMenu-CXR6mrXr.js} +26 -26
  39. package/dist/{UserInfo-ClXKtyGo.js → UserInfo-BkP8pE2a.js} +1 -1
  40. package/dist/{UserInfo.vue_vue_type_style_index_0_lang-8N7P4Hl7.js → UserInfo.vue_vue_type_style_index_0_lang-D4r_umjV.js} +39 -37
  41. package/dist/{childView-C_HmDQNd.js → childView-D0HwbgDT.js} +1 -1
  42. package/dist/{childView-uUlBcTza.js → childView-TRqUkSDC.js} +1 -1
  43. package/dist/{childView.vue_vue_type_style_index_0_lang-Ckjmw6wJ.js → childView.vue_vue_type_style_index_0_lang-BzISq0Jf.js} +40 -40
  44. package/dist/{childView.vue_vue_type_style_index_0_lang-y0sDvYx5.js → childView.vue_vue_type_style_index_0_lang-DQRgNsJY.js} +1 -1
  45. package/dist/{code-rule-AgCVDKFy.js → code-rule-BV7PQWhK.js} +9 -10
  46. package/dist/core.es.js +14 -11
  47. package/dist/{cron-task-C6FgQxTi.js → cron-task-9ZS9bi7K.js} +1 -1
  48. package/dist/{frameView-BDgISK7N.js → frameView-DE83AN50.js} +1 -1
  49. package/dist/img/l_img.svg +1 -1
  50. package/dist/img/minicolors.png +0 -0
  51. package/dist/img/v_img.svg +1 -1
  52. package/dist/index-DVARtten.js +2623 -0
  53. package/dist/{layoutView-yb3DV2DQ.js → layoutView-D1U-c4By.js} +111 -110
  54. package/dist/{login-log-CvVnyGi3.js → login-log-kqKzKTto.js} +1 -1
  55. package/dist/{login-RRpljbkm.js → login-sPCEiTGT.js} +106 -113
  56. package/dist/{lov-view-C9-rjzZR.js → lov-view-76NcYTYl.js} +2 -2
  57. package/dist/{menuInfo-CzPQyFhp.js → menuInfo-CxjfjFpm.js} +1 -1
  58. package/dist/{menuInfo.vue_vue_type_style_index_0_lang-BumXunCg.js → menuInfo.vue_vue_type_style_index_0_lang-C2qahH3r.js} +100 -97
  59. package/dist/{pda-app-Dvy3U-b6.js → pda-app-BUH16bLj.js} +211 -197
  60. package/dist/{resource-Fy0lFkSV.js → resource-CCuHzoA6.js} +15 -15
  61. package/dist/{su-welcome-DYvSCUST.js → su-welcome-mRArONsd.js} +109 -110
  62. package/dist/{sys-config-DJ1vNQTy.js → sys-config-Cvt05yF6.js} +7 -7
  63. package/dist/udp-core.css +2 -2
  64. package/dist/{utogether-CjmJiHoE.js → utogether-Dm_VBQHR.js} +1 -1
  65. package/index.ts +40 -36
  66. package/package.json +1 -1
  67. package/src/App.vue +65 -70
  68. package/src/api/index.ts +1 -1
  69. package/src/components/SuCharts/src/UserInfo.vue +78 -78
  70. package/src/components/SuScrollTree/ScrollPanel.vue +3 -3
  71. package/src/components/udp/count-down.vue +536 -0
  72. package/src/components/udp/flip-down/FlipCard/flip-card.vue +251 -0
  73. package/src/components/udp/flip-down/FlipCard/interfaces.ts +4 -0
  74. package/src/components/udp/flip-down/FlipClock/flip-clock.vue +113 -0
  75. package/src/components/udp/form-upload.vue +414 -64
  76. package/src/components/udp/form.vue +112 -0
  77. package/src/components/udp/grid.vue +495 -0
  78. package/src/components/udp/index.ts +10 -4
  79. package/src/components/udp/lov.vue +388 -0
  80. package/src/components/udp/modal-form.vue +11 -2
  81. package/src/components/udp/modal-grid.vue +288 -0
  82. package/src/components/udp/upload.vue +423 -0
  83. package/src/components/udp/utils.ts +447 -40
  84. package/src/directives/permission/index.ts +1 -1
  85. package/src/layout/components/lay-navbar/index.vue +1 -1
  86. package/src/layout/components/lay-panel/index.vue +150 -150
  87. package/src/layout/components/lay-search/index.vue +25 -25
  88. package/src/layout/components/lay-sidebar/breadCrumb.vue +1 -1
  89. package/src/layout/components/lay-tag/index.vue +625 -625
  90. package/src/layout/layoutView.vue +215 -215
  91. package/src/main.ts +23 -13
  92. package/src/plugins/i18n/en.ts +302 -289
  93. package/src/plugins/i18n/zh.ts +348 -337
  94. package/src/plugins/vxe-table/index.ts +53 -46
  95. package/src/plugins/vxe-table/render.tsx +956 -817
  96. package/src/router/index.ts +187 -183
  97. package/src/router/modules/remaining.ts +58 -83
  98. package/src/style/button.scss +85 -78
  99. package/src/style/tailwind.css +1 -68
  100. package/src/style/vxetable.scss +44 -11
  101. package/src/utils/authority/index.ts +1 -1
  102. package/src/utils/{http → udp/http}/index.ts +8 -24
  103. package/src/utils/{http → udp/http}/types.d.ts +8 -5
  104. package/src/utils/udp/useRender.ts +17 -6
  105. package/src/views/login/login-view.vue +2 -2
  106. package/src/views/organization/company/CompanyPanel.vue +259 -259
  107. package/src/views/organization/inv-org/InvOrganization.vue +2 -3
  108. package/src/views/organization/org/Org.vue +9 -5
  109. package/src/views/system/menu/SystemMenu.vue +183 -197
  110. package/src/views/system/menu/menuInfo.vue +363 -371
  111. package/src/views/system/role/AuthorityInfo.vue +19 -15
  112. package/src/views/system/role/Role.vue +1 -5
  113. package/src/views/system/role/RolePanel.vue +11 -2
  114. package/src/views/system/role/UserInfo.vue +195 -193
  115. package/src/views/system/role-assign/RoleAssign.vue +57 -57
  116. package/src/views/system/role-assign/RolePanel.vue +139 -136
  117. package/src/views/system/sys/sys-config.vue +1 -1
  118. package/src/views/system/sysUser/SysUserPanel.vue +278 -278
  119. package/src/views/uapp/pda/pda-app.vue +208 -176
  120. package/src/views/udev/dict/DictView.vue +118 -106
  121. package/src/views/udev/dict/childView.vue +7 -7
  122. package/src/views/udev/lov/lov-view.vue +91 -91
  123. package/src/views/ufile/aggregation/File.vue +5 -5
  124. package/src/views/ufile/file/water-mark.vue +14 -14
  125. package/src/views/uhome/su-welcome.vue +3 -3
  126. package/src/views/ulogin/login.vue +14 -9
  127. package/src/views/upms/user/login-log.vue +1 -1
  128. package/src/views/urpt/design/DesignPanel.vue +507 -526
  129. package/src/views/urpt/design/ReportDesign.vue +15 -19
  130. package/src/views/urpt/static-resource/resource.vue +3 -3
  131. package/src/views/urpt/template/ReportTemplate.vue +7 -7
  132. package/types/global.d.ts +2 -1
  133. package/vite.config.ts +6 -2
  134. package/dist/AuthorityInfo.vue_vue_type_style_index_0_lang-BqccGW7v.js +0 -102
  135. package/dist/DictView-C-i7e4hZ.js +0 -95
  136. package/dist/InvOrganization-cfT6riGU.js +0 -260
  137. package/dist/Org-CA7vTDIF.js +0 -35
  138. package/dist/RolePanel.vue_vue_type_script_setup_true_lang-cmW7zBLu.js +0 -126
  139. package/dist/SysUserPanel.vue_vue_type_script_setup_true_lang-njefUln5.js +0 -288
  140. package/dist/index-DzOzUkf6.js +0 -3388
@@ -1,7 +1,7 @@
1
- import { defineComponent as w, ref as o, resolveComponent as l, createElementBlock as k, openBlock as u, createVNode as r, createBlock as x, createCommentVNode as b, Fragment as U } from "vue";
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
2
  import { successMessage as B } from "@utogether/utils";
3
3
  import { useClipboard as N } from "@vueuse/core";
4
- import { x as y } from "./index-DzOzUkf6.js";
4
+ import { x as y } from "./index-DVARtten.js";
5
5
  const q = {
6
6
  name: "StaticResource"
7
7
  }, V = /* @__PURE__ */ w({
@@ -15,15 +15,15 @@ const q = {
15
15
  align: "center"
16
16
  }, {
17
17
  field: "templateCode",
18
- title: "message.file.resourceCode",
18
+ title: "message.urpt.resourceCode",
19
19
  width: 140
20
20
  }, {
21
21
  field: "templateName",
22
- title: "message.file.resourceName",
22
+ title: "message.urpt.resourceName",
23
23
  width: 150
24
24
  }, {
25
25
  field: "templateUrl",
26
- title: "message.file.resourceUrl",
26
+ title: "message.urpt.resourceUrl",
27
27
  miWidth: 200
28
28
  }, {
29
29
  field: "operate",
@@ -32,20 +32,20 @@ const q = {
32
32
  slots: {
33
33
  default: ({
34
34
  row: e
35
- }) => [r(U, null, [r(l("ut-button"), {
35
+ }) => [l(U, null, [l(r("ut-button"), {
36
36
  content: "download",
37
37
  icon: "ri-download-line",
38
38
  status: "success",
39
39
  onTap: () => g(e)
40
40
  }, null)])]
41
41
  }
42
- }], f = {
42
+ }], p = {
43
43
  toolbarButtonClick({
44
44
  code: e
45
45
  }) {
46
46
  e === "add" && _();
47
47
  }
48
- }, p = [{
48
+ }, f = [{
49
49
  field: "templateCode",
50
50
  required: !0
51
51
  }, {
@@ -67,26 +67,26 @@ const q = {
67
67
  }, h = () => {
68
68
  s.value.refreshData();
69
69
  };
70
- return (e, i) => {
71
- const v = l("ut-grid"), C = l("ut-modal-form");
72
- return u(), k("div", null, [r(v, {
70
+ return (e, u) => {
71
+ const v = r("ut-grid"), C = r("ut-modal-form");
72
+ return i(), k("div", null, [l(v, {
73
73
  ref_key: "xgrid",
74
74
  ref: s,
75
75
  columns: c,
76
76
  url: n,
77
77
  editable: !1,
78
78
  mode: "form",
79
- events: f
80
- }, null, 512), t.value ? (u(), x(C, {
79
+ events: p
80
+ }, null, 512), t.value ? (i(), x(C, {
81
81
  key: 0,
82
82
  record: a.value,
83
- items: p,
83
+ items: f,
84
84
  width: 300,
85
85
  height: 340,
86
86
  "data-status": "add",
87
87
  title: "静态资源新增",
88
88
  url: n,
89
- onClose: i[0] || (i[0] = (R) => t.value = !1),
89
+ onClose: u[0] || (u[0] = (R) => t.value = !1),
90
90
  onConfirm: h
91
91
  }, null, 8, ["record"])) : b("", !0)]);
92
92
  };
@@ -1,8 +1,8 @@
1
- import { defineComponent as J, ref as y, onMounted as K, resolveComponent as _, createBlock as N, openBlock as a, withCtx as c, createElementVNode as e, createVNode as i, 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 oe } from "vue-router";
3
- import ne from "dayjs";
4
- import { dbstorage as le, delay as ae, warnMessage as ce, successMessage as ie, lunarCalendar as re, cookies as ue } from "@utogether/utils";
5
- import { q as G, e as de, n as me, _ as fe } from "./index-DzOzUkf6.js";
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";
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-DVARtten.js";
6
6
  import { clone as _e, max as ve } from "xe-utils";
7
7
  import pe from "vuedraggable";
8
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({
@@ -14,61 +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, r = y([]), $ = y([]), b = y(!1), I = y(!1), u = y({}), E = 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
- r.value.splice(s, 1);
22
- const t = (n = u.value[o.parentId]) == null ? void 0 : n.findIndex((v) => v === o.menuId);
23
- u.value[o.parentId].splice(t, 1);
24
- }, V = (o) => {
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;
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) => {
25
25
  const s = [], t = [];
26
- return o.children.forEach((n) => {
27
- ["5", "100"].includes(n.menuCategory) ? s.push(n) : t.push(n);
26
+ return n.children.forEach((o) => {
27
+ ["5", "100"].includes(o.menuCategory) ? s.push(o) : t.push(o);
28
28
  }), { folder: s, menus: t };
29
29
  }, A = () => {
30
- j.dataSource.forEach((o) => {
31
- u.value[o.parentId] ? u.value[o.parentId].push(o.menuId) : u.value[o.parentId] = [o.menuId];
30
+ j.dataSource.forEach((n) => {
31
+ r.value[n.parentId] ? r.value[n.parentId].push(n.menuId) : r.value[n.parentId] = [n.menuId];
32
32
  });
33
- }, q = (o, s) => {
33
+ }, q = (n, s) => {
34
34
  debugger;
35
35
  if (s.checked) {
36
- if (r.value.length === 16)
36
+ if (u.value.length === 16)
37
37
  return X(() => {
38
- u.value[o.id].splice(u.value[o.id].length - 1, 1);
39
- }), ce("最多只能选择16个常用功能");
40
- const t = o.children.find((n) => n.id === s.label);
41
- t && (t.seqNo = H() + 10, t.menuId = t.id, r.value.push(t));
38
+ r.value[n.id].splice(r.value[n.id].length - 1, 1);
39
+ }), ie("最多只能选择16个常用功能");
40
+ const t = n.children.find((o) => o.id === s.label);
41
+ t && (t.seqNo = H() + 10, t.menuId = t.id, u.value.push(t));
42
42
  } else {
43
- let t = r.value.findIndex((n) => n.menuId === s.label);
44
- t !== -1 && r.value.splice(t, 1), t = u.value[o.id].findIndex((n) => n === s.label), t !== -1 && u.value[o.id].splice(t, 1);
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);
45
45
  }
46
46
  }, F = () => {
47
- r.value.forEach((o, s) => {
48
- o.seqNo = (s + 1) * 10;
47
+ u.value.forEach((n, s) => {
48
+ n.seqNo = (s + 1) * 10;
49
49
  });
50
50
  }, H = () => {
51
- var o;
52
- return ((o = ve(r.value, (s) => s.seqNo)) == null ? void 0 : o.seqNo) || 0;
51
+ var n;
52
+ return ((n = ve(u.value, (s) => s.seqNo)) == null ? void 0 : n.seqNo) || 0;
53
53
  }, T = () => {
54
- console.log(r);
55
- const o = r.value.map((s) => ({
54
+ const n = u.value.map((s) => ({
56
55
  userName: j.userName,
57
56
  menuId: s.menuId,
58
57
  seqNo: s.seqNo
59
58
  }));
60
- console.log(o), I.value = !0, G().post(De, o).then(() => {
61
- ie(), D(), z("success");
59
+ I.value = !0, G().post(De, n).then(() => {
60
+ ce(), D(), z("success");
62
61
  }).finally(() => {
63
62
  I.value = !1;
64
63
  });
65
64
  }, D = () => {
66
65
  b.value = !1, z("close");
67
- }, L = (o) => ["#409eff", "#67c23a", "#13c2c2", "#e85f33", "orange"][o % 5], z = h;
66
+ }, L = (n) => ["#409eff", "#67c23a", "#13c2c2", "#e85f33", "orange"][n % 5], z = h;
68
67
  return K(() => {
69
- r.value = _e(j.dataSource, !0), b.value = !0, E();
70
- }), (o, s) => {
71
- const t = _("el-empty"), n = _("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, 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");
72
71
  return a(), N(U, {
73
72
  modelValue: b.value,
74
73
  "onUpdate:modelValue": s[0] || (s[0] = (m) => b.value = m),
@@ -80,37 +79,37 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
80
79
  "show-footer": "",
81
80
  onClose: D
82
81
  }, {
83
- default: c(() => [
82
+ default: i(() => [
84
83
  e("div", ge, [
85
- i(v, {
84
+ c(v, {
86
85
  heigth: "100",
87
86
  class: "w-full border-b border-slate-300"
88
87
  }, {
89
- default: c(() => [
88
+ default: i(() => [
90
89
  e("div", he, [
91
- r.value.length ? O("", !0) : (a(), N(t, {
90
+ u.value.length ? O("", !0) : (a(), N(t, {
92
91
  key: 0,
93
92
  "image-size": 50,
94
93
  description: "",
95
94
  class: "p-0"
96
95
  })),
97
- i(B(pe), {
98
- list: r.value,
96
+ c(B(pe), {
97
+ list: u.value,
99
98
  handle: ".drag-item",
100
99
  animation: "300",
101
100
  "item-key": "id",
102
101
  class: "flex",
103
102
  onEnd: F
104
103
  }, {
105
- item: c(({ element: m, index: l }) => [
104
+ item: i(({ element: m, index: l }) => [
106
105
  e("div", xe, [
107
106
  e("div", ye, [
108
107
  e("div", {
109
108
  class: "rounded-full w-10 h-10 flex items-center justify-center",
110
109
  style: Q({ backgroundColor: L(l) })
111
110
  }, [
112
- i(n, {
113
- icon: m.icon || `ri:${o.icons[l]}-line`,
111
+ c(o, {
112
+ icon: m.icon || `ri:${n.icons[l]}-line`,
114
113
  class: "text-2xl text-white"
115
114
  }, null, 8, ["icon"])
116
115
  ], 4),
@@ -128,8 +127,8 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
128
127
  ]),
129
128
  _: 1
130
129
  }),
131
- i(v, { class: "u-favorite-menu--contain" }, {
132
- default: c(() => [
130
+ c(v, { class: "u-favorite-menu--contain" }, {
131
+ default: i(() => [
133
132
  e("div", ke, [
134
133
  (a(!0), p(k, null, C($.value, (m) => (a(), p("div", {
135
134
  key: m.id,
@@ -140,12 +139,12 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
140
139
  e("div", Ne, f(m.menuName), 1)
141
140
  ]),
142
141
  e("div", $e, [
143
- i(S, {
144
- modelValue: u.value[m.id],
145
- "onUpdate:modelValue": (l) => u.value[m.id] = l,
142
+ c(S, {
143
+ modelValue: r.value[m.id],
144
+ "onUpdate:modelValue": (l) => r.value[m.id] = l,
146
145
  onChange: (l) => q(m, l)
147
146
  }, {
148
- default: c(() => [
147
+ default: i(() => [
149
148
  (a(!0), p(k, null, C(V(m).menus, (l) => (a(), N(M, {
150
149
  key: l.id,
151
150
  label: l.id,
@@ -164,12 +163,12 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
164
163
  e("div", Ve, f(l.menuName), 1)
165
164
  ]),
166
165
  e("div", Me, [
167
- i(S, {
168
- modelValue: u.value[l.id],
169
- "onUpdate:modelValue": (d) => u.value[l.id] = d,
166
+ c(S, {
167
+ modelValue: r.value[l.id],
168
+ "onUpdate:modelValue": (d) => r.value[l.id] = d,
170
169
  onChange: (d) => q(l, d)
171
170
  }, {
172
- default: c(() => [
171
+ default: i(() => [
173
172
  (a(!0), p(k, null, C(V(l).menus, (d) => (a(), N(M, {
174
173
  key: d.id,
175
174
  label: d.id,
@@ -188,12 +187,12 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
188
187
  e("div", Ue, f(d.menuName), 1)
189
188
  ]),
190
189
  e("div", je, [
191
- i(S, {
192
- modelValue: u.value[d.id],
193
- "onUpdate:modelValue": (x) => u.value[d.id] = x,
190
+ c(S, {
191
+ modelValue: r.value[d.id],
192
+ "onUpdate:modelValue": (x) => r.value[d.id] = x,
194
193
  onChange: (x) => q(l, x)
195
194
  }, {
196
- default: c(() => [
195
+ default: i(() => [
197
196
  (a(!0), p(k, null, C(V(d).menus, (x) => (a(), N(M, {
198
197
  key: x.id,
199
198
  label: x.id,
@@ -212,14 +211,14 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
212
211
  })
213
212
  ])
214
213
  ]),
215
- footer: c(() => [
214
+ footer: i(() => [
216
215
  e("div", qe, [
217
- i(w, {
216
+ c(w, {
218
217
  content: "cancel",
219
218
  status: "warning",
220
219
  onTap: D
221
220
  }),
222
- i(w, {
221
+ c(w, {
223
222
  content: "confirm",
224
223
  onTap: T
225
224
  })
@@ -229,43 +228,43 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
229
228
  }, 8, ["modelValue", "loading"]);
230
229
  };
231
230
  }
232
- }), 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" }, ot = { class: "text-gray-400 text-sm" }, nt = { class: "p-1" }, lt = /* @__PURE__ */ J({
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({
233
232
  name: "SuHome",
234
233
  __name: "su-welcome",
235
234
  setup(P) {
236
- const h = de(), j = oe(), r = y([]), $ = y([]), b = y(!1), I = y(!1), u = Z(() => {
235
+ const h = de(), j = ne(), u = y([]), $ = y([]), b = y(!1), I = y(!1), r = Z(() => {
237
236
  var s;
238
237
  return (s = h.getUserInfo.name) == null ? void 0 : s.slice(0, 1);
239
238
  }), E = () => {
240
- var t, n;
241
- return h.isAdminRole ? "系统管理员" : (n = (t = h.getUserInfo) == null ? void 0 : t.sysRoles) == null ? void 0 : n.map((v) => v.roleName).join(",");
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(",");
242
241
  }, R = () => {
243
242
  var t;
244
- return h.isAdminRole ? "【系统管理员】拥有所有组织" : E() === "项目组管理员" ? "【项目组管理员】拥有所有组织" : (t = h.getOrglist) == null ? void 0 : t.map((n) => n.orgName).join(",");
243
+ return h.isAdminRole ? "【系统管理员】拥有所有组织" : E() === "项目组管理员" ? "【项目组管理员】拥有所有组织" : (t = h.getOrglist) == null ? void 0 : t.map((o) => o.orgName).join(",");
245
244
  }, V = () => {
246
- const s = Number(ne().format("HH"));
245
+ const s = Number(oe().format("HH"));
247
246
  return s < 12 ? "上午好" : s < 18 ? "下午好" : "晚上好";
248
247
  }, A = () => {
249
248
  const s = /* @__PURE__ */ new Date(), t = re.solar2lunar(
250
249
  s.getFullYear(),
251
250
  s.getMonth() + 1,
252
251
  s.getDate()
253
- ), { gzYear: n, IMonthCn: v, IDayCn: M, cMonth: S, cDay: w, ncWeek: U } = t;
254
- return `${S}月${w}日 ${n}${v}${M} ${U}`;
252
+ ), { gzYear: o, IMonthCn: v, IDayCn: M, cMonth: S, cDay: w, ncWeek: U } = t;
253
+ return `${S}月${w}日 ${o}${v}${M} ${U}`;
255
254
  }, q = () => {
256
255
  const s = "/upfm/v1/menuFavority";
257
256
  I.value = !0;
258
257
  const t = { pageSize: 20, pageNum: 1, userName: ue.get(me) };
259
- G().get(s, t).then((n) => {
260
- r.value = (n == null ? void 0 : n.list) || [];
258
+ G().get(s, t).then((o) => {
259
+ u.value = (o == null ? void 0 : o.list) || [];
261
260
  }).finally(() => {
262
261
  I.value = !1;
263
262
  });
264
263
  }, F = (s) => {
265
264
  j.push(s.menuPath);
266
265
  }, H = () => {
267
- var n;
268
- const s = "/upms/v1/userMonitor", t = { pageSize: 8, pageNum: 1, employeeName: (n = h.getUserInfo) == null ? void 0 : n.name };
266
+ var o;
267
+ const s = "/upfm/v1/userMonitor", t = { pageSize: 8, pageNum: 1, employeeName: (o = h.getUserInfo) == null ? void 0 : o.name };
269
268
  G().get(s, t).then((v) => {
270
269
  $.value = (v == null ? void 0 : v.list) || [];
271
270
  });
@@ -318,7 +317,7 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
318
317
  10: { 1: "假", 2: "假", 3: "假", 4: "假", 5: "假", 6: "假", 7: "假", 12: "班" }
319
318
  }
320
319
  }
321
- ], o = [
320
+ ], n = [
322
321
  { name: "元旦", date: "2024-01-01" },
323
322
  { name: "春节", date: "2024-02-10" },
324
323
  { name: "清明节", date: "2024-04-04" },
@@ -329,17 +328,17 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
329
328
  ];
330
329
  return (s, t) => {
331
330
  var x;
332
- const n = _("el-avatar"), v = _("ut-countdown"), M = _("el-empty"), S = _("iconify-icon-offline"), w = _("el-card"), U = _("el-col"), m = _("ut-calendar"), l = _("el-row"), d = ee("spinning");
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");
333
332
  return a(), p("div", Le, [
334
333
  e("div", ze, [
335
334
  e("div", Re, [
336
335
  e("div", null, [
337
- i(n, {
336
+ c(o, {
338
337
  size: "large",
339
338
  class: "text-4xl font-bold bg-[var(--el-color-primary)]"
340
339
  }, {
341
- default: c(() => [
342
- Y(f(u.value), 1)
340
+ default: i(() => [
341
+ Y(f(r.value), 1)
343
342
  ]),
344
343
  _: 1
345
344
  })
@@ -364,7 +363,7 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
364
363
  ]),
365
364
  e("div", Ge, [
366
365
  e("span", Pe, [
367
- i(v, {
366
+ c(v, {
368
367
  "show-days": !1,
369
368
  "show-labels": !1
370
369
  })
@@ -372,19 +371,19 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
372
371
  e("div", We, f(A()), 1)
373
372
  ])
374
373
  ]),
375
- i(l, {
374
+ c(l, {
376
375
  class: "m-2",
377
376
  gutter: 10
378
377
  }, {
379
- default: c(() => [
378
+ default: i(() => [
380
379
  te((a(), N(U, {
381
380
  lg: 24,
382
381
  md: 24,
383
382
  class: ""
384
383
  }, {
385
- default: c(() => [
386
- i(w, { class: "mb-2" }, {
387
- header: c(() => [
384
+ default: i(() => [
385
+ c(w, { class: "mb-2" }, {
386
+ header: i(() => [
388
387
  e("div", { class: "flex items-center justify-between dark:bg-black" }, [
389
388
  t[5] || (t[5] = e("span", { class: "font-bold" }, "常用菜单", -1)),
390
389
  e("span", {
@@ -396,18 +395,18 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
396
395
  ]))
397
396
  ])
398
397
  ]),
399
- default: c(() => [
398
+ default: i(() => [
400
399
  e("div", Ye, [
401
- r.value.length ? O("", !0) : (a(), N(M, {
400
+ u.value.length ? O("", !0) : (a(), N(M, {
402
401
  key: 0,
403
402
  "image-size": 100,
404
403
  description: "快来添加常用菜单吧!",
405
404
  class: "p-0 pb-3"
406
405
  })),
407
406
  e("ul", {
408
- class: se(["p-0 w-full h-full grid grid-rows-1 grid-cols-8 u-dashed-menu", { "grid-rows-2": r.value.length > 8 }])
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 }])
409
408
  }, [
410
- (a(!0), p(k, null, C(r.value, (g, W) => (a(), p("li", {
409
+ (a(!0), p(k, null, C(u.value, (g, W) => (a(), p("li", {
411
410
  key: g.id,
412
411
  class: "text-center list-none bg-white",
413
412
  onClick: (at) => F(g)
@@ -417,7 +416,7 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
417
416
  class: "rounded-full w-10 h-10 flex items-center justify-center",
418
417
  style: Q({ backgroundColor: D(W) })
419
418
  }, [
420
- i(S, {
419
+ c(S, {
421
420
  icon: g.icon || `ri:${L[W]}-line`,
422
421
  class: "text-2xl text-white"
423
422
  }, null, 8, ["icon"])
@@ -436,19 +435,19 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
436
435
  })), [
437
436
  [d, I.value]
438
437
  ]),
439
- i(U, {
438
+ c(U, {
440
439
  xl: 16,
441
440
  lg: 12,
442
441
  md: 24
443
442
  }, {
444
- default: c(() => [
445
- i(w, { class: "mb-2" }, {
446
- header: c(() => t[7] || (t[7] = [
443
+ default: i(() => [
444
+ c(w, { class: "mb-2" }, {
445
+ header: i(() => t[7] || (t[7] = [
447
446
  e("div", { class: "font-bold" }, [
448
447
  e("span", null, "个人动态")
449
448
  ], -1)
450
449
  ])),
451
- default: c(() => [
450
+ default: i(() => [
452
451
  e("div", Xe, [
453
452
  e("ul", Ze, [
454
453
  (a(!0), p(k, null, C($.value, (g) => (a(), p("li", {
@@ -457,9 +456,9 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
457
456
  }, [
458
457
  e("div", et, [
459
458
  e("div", null, [
460
- i(n, { class: "text-base" }, {
461
- default: c(() => [
462
- Y(f(u.value), 1)
459
+ c(o, { class: "text-base" }, {
460
+ default: i(() => [
461
+ Y(f(r.value), 1)
463
462
  ]),
464
463
  _: 1
465
464
  })
@@ -469,7 +468,7 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
469
468
  e("span", st, f(g.browser), 1),
470
469
  e("span", null, f(g.browserVersion || g.platformVersion), 1)
471
470
  ]),
472
- e("div", ot, f(g.loginTime), 1)
471
+ e("div", nt, f(g.loginTime), 1)
473
472
  ])
474
473
  ])
475
474
  ]))), 128))
@@ -481,24 +480,24 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
481
480
  ]),
482
481
  _: 1
483
482
  }),
484
- i(U, {
483
+ c(U, {
485
484
  xl: 8,
486
485
  lg: 12,
487
486
  md: 24,
488
487
  class: ""
489
488
  }, {
490
- default: c(() => [
491
- i(w, { class: "mb-2" }, {
492
- header: c(() => t[8] || (t[8] = [
489
+ default: i(() => [
490
+ c(w, { class: "mb-2" }, {
491
+ header: i(() => t[8] || (t[8] = [
493
492
  e("div", { class: "font-bold" }, [
494
493
  e("span", null, "日历")
495
494
  ], -1)
496
495
  ])),
497
- default: c(() => [
498
- e("div", nt, [
499
- i(m, {
496
+ default: i(() => [
497
+ e("div", ot, [
498
+ c(m, {
500
499
  holidays: z,
501
- "statutory-holiday": o
500
+ "statutory-holiday": n
502
501
  })
503
502
  ])
504
503
  ]),
@@ -512,7 +511,7 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
512
511
  }),
513
512
  b.value ? (a(), N(Ee, {
514
513
  key: 0,
515
- "data-source": r.value,
514
+ "data-source": u.value,
516
515
  "user-name": B(h).getUserInfo.userName,
517
516
  icons: L,
518
517
  onClose: t[0] || (t[0] = (g) => b.value = !1),
@@ -521,7 +520,7 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
521
520
  ]);
522
521
  };
523
522
  }
524
- }), _t = /* @__PURE__ */ fe(lt, [["__scopeId", "data-v-4f622fd8"]]);
523
+ }), _t = /* @__PURE__ */ fe(lt, [["__scopeId", "data-v-5b8ab4a4"]]);
525
524
  export {
526
525
  _t as default
527
526
  };
@@ -1,9 +1,9 @@
1
1
  import { defineComponent as M, ref as j, reactive as E, computed as O, onMounted as S, resolveComponent as c, resolveDirective as T, withDirectives as q, createElementBlock as x, openBlock as A, createElementVNode as u, createVNode as a, withCtx as o, createTextVNode as v, toDisplayString as p } from "vue";
2
2
  import { useI18n as B } from "vue-i18n";
3
3
  import { t as N } from "./await-to-js.es5-BtRbN2QH.js";
4
- import { cookies as F, successMessage as J, warnMessage as Y } from "@utogether/utils";
5
- import { isArray as K } from "xe-utils";
6
- import { x as R, m as H, q as Q } from "./index-DzOzUkf6.js";
4
+ import { cookies as F, successMessage as J, warnMessage as K } from "@utogether/utils";
5
+ import { isArray as R } from "xe-utils";
6
+ import { x as Y, m as H, q as Q } from "./index-DVARtten.js";
7
7
  const W = { class: "flex flex-col items-center bg-white u-system-config" }, X = { class: "flex justify-end w-1/2 p-2" }, Z = { class: "flex w-1/2 p-2 overflow-y-auto border border-gray-300 rounded-md" }, ee = { class: "flex items-center" }, te = { class: "pl-2 text-xs" }, se = { class: "pl-2" }, ae = { class: "pl-2" }, le = { class: "flex items-center" }, oe = { class: "pl-2 text-xs" }, ne = { class: "pl-2" }, ie = { class: "flex items-center" }, ue = { class: "pl-2 text-xs" }, k = "/upfm/v1/sysConfig", be = /* @__PURE__ */ M({
8
8
  __name: "sys-config",
9
9
  setup(de) {
@@ -11,12 +11,12 @@ const W = { class: "flex flex-col items-center bg-white u-system-config" }, X =
11
11
  defaultLanguage: "zh",
12
12
  title: "U-DP",
13
13
  ispTitle: "U-DP",
14
- i18nEnabled: "Y",
14
+ i18nEnabled: "N",
15
15
  copyright: "深圳友聚信息技术有限公司",
16
16
  logo: [],
17
17
  backgroundImg: [],
18
18
  favicon: []
19
- }), y = Q(), { t: m } = B(), f = j(R());
19
+ }), y = Q(), { t: m } = B(), f = j(Y());
20
20
  let r = [];
21
21
  const U = E({
22
22
  defaultLanguage: [
@@ -42,7 +42,7 @@ const W = { class: "flex flex-col items-center bg-white u-system-config" }, X =
42
42
  configCategory: "system",
43
43
  fileName: ""
44
44
  };
45
- K(s[t]) && (l.configValue = C(s[t][0]).url, l.fileName = C(s[t][0]).name);
45
+ R(s[t]) && (l.configValue = C(s[t][0]).url, l.fileName = C(s[t][0]).name);
46
46
  const d = r.findIndex((i) => i.configCode === t);
47
47
  d !== -1 ? r[d] = Object.assign(r[d], l) : r.push(l);
48
48
  }), e == null || e.validate(async (t) => {
@@ -56,7 +56,7 @@ const W = { class: "flex flex-col items-center bg-white u-system-config" }, X =
56
56
  });
57
57
  }, C = (e) => e != null && e.response ? { url: e.response.data, name: e.name } : { url: (e == null ? void 0 : e.realpath) || (e == null ? void 0 : e.url), name: e == null ? void 0 : e.name }, V = (e) => {
58
58
  if (e)
59
- return Y(m("message.tip.singleImg"));
59
+ return K(m("message.tip.singleImg"));
60
60
  }, w = () => {
61
61
  Object.keys(s).forEach((e) => {
62
62
  const t = r.find((l) => l.configCode === e);