@utogether/udp-core 1.0.0 → 1.0.1-beta.2

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 (144) hide show
  1. package/build/plugins.ts +8 -2
  2. package/dist/{403-B1R-4vXw.js → 403-BBQoJwTM.js} +9 -8
  3. package/dist/{404-fXPl8csw.js → 404-BbJPSIWM.js} +15 -14
  4. package/dist/{500-eI5842YB.js → 500-BtFL9R4M.js} +11 -10
  5. package/dist/{AuthorityInfo-CfVH6PaB.js → AuthorityInfo-DhiwCeLN.js} +1 -1
  6. package/dist/{AuthorityInfo.vue_vue_type_style_index_0_lang-DbK-f8jH.js → AuthorityInfo.vue_vue_type_style_index_0_lang-Duyweh89.js} +3 -3
  7. package/dist/{AuthorityPanel-BaLMwMgW.js → AuthorityPanel-BeBNiwqc.js} +1 -1
  8. package/dist/{AuthorityPanel.vue_vue_type_style_index_0_lang-C_bkqLD9.js → AuthorityPanel.vue_vue_type_style_index_0_lang-CIYmnP9-.js} +6 -6
  9. package/dist/{Company-CYC9Avfz.js → Company-CGqmslx-.js} +3 -3
  10. package/dist/{CompanyPanel-B4MzoqN_.js → CompanyPanel-hlDsxD-6.js} +10 -10
  11. package/dist/{Department-B4BNSiYx.js → Department-BZyJtacc.js} +3 -3
  12. package/dist/{DepartmentPanel-zJO89L2O.js → DepartmentPanel-D-a_EBFt.js} +23 -23
  13. package/dist/{DesignPanel-S8P0J97f.js → DesignPanel-Bl4luWDV.js} +1 -1
  14. package/dist/{DesignPanel.vue_vue_type_style_index_0_lang-DW-_Vqrr.js → DesignPanel.vue_vue_type_style_index_0_lang-I8C3iGvz.js} +6 -6
  15. package/dist/{DictView-bIS5-rK-.js → DictView-B4a7Hs1X.js} +9 -9
  16. package/dist/InvOrganization-q4T3y8dQ.js +260 -0
  17. package/dist/{Org-kXHSjsgJ.js → Org-BTGTrAVz.js} +3 -3
  18. package/dist/{Preview-CRyiwUIR.js → Preview-pHD84xqI.js} +1 -1
  19. package/dist/{ReportDefine-WZYIx8Sm.js → ReportDefine-DnnCNQWS.js} +1 -1
  20. package/dist/{ReportDesign-D-7GKgpb.js → ReportDesign-BnI_Q4pg.js} +10 -10
  21. package/dist/{ReportQuery-BIIJny6w.js → ReportQuery-Dby2MmtM.js} +5 -5
  22. package/dist/{ReportQueryFrom-OoUl7N2O.js → ReportQueryFrom-Blm1N8P1.js} +1 -1
  23. package/dist/{ReportQueryFrom.vue_vue_type_style_index_0_lang-B878fgj8.js → ReportQueryFrom.vue_vue_type_style_index_0_lang-CnG_Ybnt.js} +6 -5
  24. package/dist/{ReportTemplate-Cfeq9US-.js → ReportTemplate-D65RXRY_.js} +11 -11
  25. package/dist/{Role-BwTV2QMH.js → Role-eFZoTpXc.js} +3 -3
  26. package/dist/{RoleAssign-De1JjOun.js → RoleAssign-D9-Y3UNz.js} +3 -3
  27. package/dist/{RolePanel-pUBXsqCM.js → RolePanel-CoUOc3sX.js} +1 -1
  28. package/dist/{RolePanel-E3RcdByM.js → RolePanel-DlFw6HSf.js} +1 -1
  29. package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-B2pQwHb0.js → RolePanel.vue_vue_type_script_setup_true_lang-Clwk-MHw.js} +12 -12
  30. package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-CTIad9_Q.js → RolePanel.vue_vue_type_script_setup_true_lang-DKHgNWQP.js} +4 -4
  31. package/dist/{ScrollPanel.vue_vue_type_style_index_0_lang-vMR1fBi0.js → ScrollPanel.vue_vue_type_style_index_0_lang-M2FQJwPU.js} +8 -8
  32. package/dist/{Staff-Czm7A8vI.js → Staff-DFBLCsAd.js} +3 -3
  33. package/dist/StaffInfo-d2CK0oBA.js +4 -0
  34. package/dist/{StaffInfo.vue_vue_type_style_index_0_lang-DMTL7KCh.js → StaffInfo.vue_vue_type_script_setup_true_lang-4m8wK9tq.js} +7 -7
  35. package/dist/{StaffPanel-CHk60LEz.js → StaffPanel-D6aWLKN3.js} +1 -1
  36. package/dist/{StaffPanel.vue_vue_type_script_setup_true_lang-iPKLb5wG.js → StaffPanel.vue_vue_type_script_setup_true_lang-C7YT2CVb.js} +46 -49
  37. package/dist/{SysUser-BGwbttRn.js → SysUser-BdZvYxQH.js} +2 -2
  38. package/dist/{SysUserPanel-BCbKoLKt.js → SysUserPanel-BIVa6LLr.js} +1 -1
  39. package/dist/{SysUserPanel.vue_vue_type_script_setup_true_lang-0QUjnhjF.js → SysUserPanel.vue_vue_type_script_setup_true_lang-BsBKpYR7.js} +1 -2
  40. package/dist/{SystemMenu-BkqZSDKl.js → SystemMenu-C-5VKlHK.js} +51 -49
  41. package/dist/{UserInfo-BsyAcT2d.js → UserInfo-DqXCRZts.js} +1 -1
  42. package/dist/{UserInfo.vue_vue_type_style_index_0_lang-D0-KDxAh.js → UserInfo.vue_vue_type_style_index_0_lang-N3TwfpPx.js} +13 -13
  43. package/dist/{childView-CyuLTUqC.js → childView-B2lSsqS3.js} +1 -1
  44. package/dist/{childView-CF83nhxb.js → childView-DRUNqgjI.js} +1 -1
  45. package/dist/{childView.vue_vue_type_style_index_0_lang-Cch4lE-i.js → childView.vue_vue_type_style_index_0_lang-B9XBDDU_.js} +1 -1
  46. package/dist/{childView.vue_vue_type_style_index_0_lang-CNSgGda3.js → childView.vue_vue_type_style_index_0_lang-oGriyFTv.js} +6 -6
  47. package/dist/{code-rule-Bz-gnktN.js → code-rule-DZC9T6cl.js} +6 -6
  48. package/dist/core.es.js +4 -4
  49. package/dist/{cron-task-CIifSUdW.js → cron-task-BJwPeA5F.js} +11 -11
  50. package/dist/{frameView-_d2mqjjQ.js → frameView-C6wkvok-.js} +15 -14
  51. package/dist/index-DZc3qRTx.js +2650 -0
  52. package/dist/{layoutView-DLKVepB8.js → layoutView-CeJBpZb_.js} +658 -653
  53. package/dist/{login-LREiDfFU.js → login-BOxwzwdB.js} +26 -25
  54. package/dist/{lov-view-DDrIVILB.js → lov-view-DRF-99U4.js} +5 -5
  55. package/dist/{menuInfo-B1FUV-Sk.js → menuInfo-3Sjvs9nM.js} +1 -1
  56. package/dist/{menuInfo.vue_vue_type_style_index_0_lang-Cnk3vdtD.js → menuInfo.vue_vue_type_style_index_0_lang-DrQ560nm.js} +95 -94
  57. package/dist/pda-app-B9tn7jdv.js +696 -0
  58. package/dist/redirect-BqegffKC.js +15 -0
  59. package/dist/{resource-BCwx9fEv.js → resource-BqnxbQNe.js} +7 -7
  60. package/dist/{su-welcome-189A7N4r.js → su-welcome-VwifUK_O.js} +41 -40
  61. package/dist/{sys-config-BZ3sejow.js → sys-config-C0-gSBFO.js} +18 -18
  62. package/dist/udp-core.css +2 -2
  63. package/dist/{utogether-r08LNiIZ.js → utogether-Di1byIum.js} +6 -6
  64. package/package.json +18 -16
  65. package/src/App.vue +3 -3
  66. package/src/components/udp/form-upload.vue +183 -0
  67. package/src/components/udp/index.ts +4 -0
  68. package/src/components/udp/modal-form.vue +180 -0
  69. package/src/components/udp/utils.ts +40 -0
  70. package/src/main.ts +109 -108
  71. package/src/plugins/vxe-table/index.ts +53 -46
  72. package/src/plugins/vxe-table/render.tsx +604 -184
  73. package/src/utils/udp/useRender.ts +420 -0
  74. package/src/views/organization/inv-org/InvOrganization.vue +2 -1
  75. package/src/views/organization/staff/StaffInfo.vue +0 -30
  76. package/src/views/organization/staff/StaffPanel.vue +4 -3
  77. package/src/views/system/menu/AuthorityPanel.vue +2 -2
  78. package/src/views/system/menu/SystemMenu.vue +197 -191
  79. package/src/views/system/menu/menuInfo.vue +11 -6
  80. package/src/views/system/role/AuthorityInfo.vue +1 -19
  81. package/src/views/system/sysUser/SysUserPanel.vue +1 -1
  82. package/src/views/udev/dict/DictView.vue +2 -2
  83. package/src/views/uhome/components/menu-favorite.vue +1 -1
  84. package/src/views/uhome/su-welcome.vue +1 -1
  85. package/src/views/ulogin/login.vue +1 -1
  86. package/types/global.d.ts +0 -1
  87. package/vite.config.ts +9 -2
  88. package/dist/InvOrganization-MuM2jtsG.js +0 -66
  89. package/dist/StaffInfo-DJzvBuxy.js +0 -4
  90. package/dist/core.umd.js +0 -173
  91. package/dist/index-BKIw8tSn.js +0 -9195
  92. package/dist/pda-app-CRhVGijN.js +0 -2209
  93. package/dist/redirect-DiaNDu8F.js +0 -15
  94. package/src/assets/images/empty.png +0 -0
  95. package/src/assets/images/logo.png +0 -0
  96. package/src/components/ReCountTo/README.md +0 -2
  97. package/src/components/ReCountTo/index.ts +0 -18
  98. package/src/components/ReCountTo/src/normal/index.tsx +0 -165
  99. package/src/components/ReCountTo/src/normal/props.ts +0 -37
  100. package/src/components/ReCountTo/src/rebound/index.tsx +0 -67
  101. package/src/components/ReCountTo/src/rebound/props.ts +0 -14
  102. package/src/components/ReCountTo/src/rebound/rebound.css +0 -77
  103. package/src/components/ReCropper/index.ts +0 -14
  104. package/src/components/ReCropper/src/index.tsx +0 -141
  105. package/src/components/ReFlicker/index.css +0 -39
  106. package/src/components/ReFlicker/index.ts +0 -50
  107. package/src/components/ReFlop/index.ts +0 -14
  108. package/src/components/ReFlop/src/Filpper.tsx +0 -99
  109. package/src/components/ReFlop/src/filpper.css +0 -184
  110. package/src/components/ReFlop/src/index.vue +0 -126
  111. package/src/components/ReFlowChart/index.ts +0 -24
  112. package/src/components/ReFlowChart/src/Control.vue +0 -139
  113. package/src/components/ReFlowChart/src/DataDialog.vue +0 -12
  114. package/src/components/ReFlowChart/src/NodePanel.vue +0 -151
  115. package/src/components/ReFlowChart/src/adpterForTurbo.ts +0 -160
  116. package/src/components/ReFlowChart/src/assets/iconfont/iconfont.css +0 -49
  117. package/src/components/ReFlowChart/src/assets/iconfont/iconfont.eot +0 -0
  118. package/src/components/ReFlowChart/src/assets/iconfont/iconfont.js +0 -61
  119. package/src/components/ReFlowChart/src/assets/iconfont/iconfont.json +0 -58
  120. package/src/components/ReFlowChart/src/assets/iconfont/iconfont.svg +0 -47
  121. package/src/components/ReFlowChart/src/assets/iconfont/iconfont.ttf +0 -0
  122. package/src/components/ReFlowChart/src/assets/iconfont/iconfont.woff +0 -0
  123. package/src/components/ReFlowChart/src/assets/iconfont/iconfont.woff2 +0 -0
  124. package/src/components/ReFlowChart/src/config.ts +0 -62
  125. package/src/components/ReSplitPane/index.css +0 -49
  126. package/src/components/ReSplitPane/index.tsx +0 -119
  127. package/src/components/ReSplitPane/resizer.css +0 -45
  128. package/src/components/ReSplitPane/resizer.tsx +0 -30
  129. package/src/components/SuCommon/card/components/Card.vue +0 -148
  130. package/src/components/SuCommon/card/components/DialogForm.vue +0 -127
  131. package/src/components/SuCommon/card/index.vue +0 -142
  132. package/src/components/SuCommon/icon-select/index.vue +0 -241
  133. package/src/components/SuCommon/table/index.vue +0 -208
  134. package/src/components/SuCommon/utils/index.ts +0 -103
  135. package/src/components/SuCommon/utils/slot.tsx +0 -50
  136. package/src/views/components/contextmenu/basic.vue +0 -74
  137. package/src/views/components/contextmenu/context-menu.vue +0 -40
  138. package/src/views/components/contextmenu/menuDynamic.vue +0 -99
  139. package/src/views/components/contextmenu/menuGroup.vue +0 -71
  140. package/src/views/components/count-to/index.vue +0 -43
  141. package/src/views/components/cropping/index.vue +0 -59
  142. package/src/views/components/cropping/picture.jpeg +0 -0
  143. package/src/views/components/split-pane/index.vue +0 -82
  144. package/src/views/components/video/index.vue +0 -57
@@ -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 b, createCommentVNode as x, Fragment as B } from "vue";
2
- import { successMessage as U } from "@utogether/utils";
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";
2
+ import { successMessage as B } from "@utogether/utils";
3
3
  import { useClipboard as N } from "@vueuse/core";
4
- import { B as y } from "./index-BKIw8tSn.js";
4
+ import { x as y } from "./index-DZc3qRTx.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
- }) => [r(B, null, [r(l("ut-button"), {
35
+ }) => [r(U, null, [r(l("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), U("复制成功,快试试右键粘贴吧");
66
+ m(d + "/ufil/" + e.templateUrl), B("复制成功,快试试右键粘贴吧");
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: f
80
- }, null, 512), t.value ? (u(), b(C, {
80
+ }, null, 512), t.value ? (u(), x(C, {
81
81
  key: 0,
82
82
  record: a.value,
83
83
  items: p,
@@ -88,7 +88,7 @@ const q = {
88
88
  url: n,
89
89
  onClose: i[0] || (i[0] = (R) => t.value = !1),
90
90
  onConfirm: h
91
- }, null, 8, ["record"])) : x("", !0)]);
91
+ }, null, 8, ["record"])) : b("", !0)]);
92
92
  };
93
93
  }
94
94
  });
@@ -1,10 +1,11 @@
1
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 { w as G, i as oe, c as ne, p as le, _ as ae } from "./index-BKIw8tSn.js";
3
- import ce from "dayjs";
4
- import { dbstorage as ie, delay as re, warnMessage as ue, successMessage as de, lunarCalendar as me, cookies as fe } from "@utogether/utils";
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-DZc3qRTx.js";
5
6
  import { clone as _e, max as ve } from "xe-utils";
6
7
  import pe from "vuedraggable";
7
- 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 = "/upms/v1/menuFavority", Le = /* @__PURE__ */ J({
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({
8
9
  __name: "menu-favorite",
9
10
  props: {
10
11
  dataSource: { default: () => [] },
@@ -13,8 +14,8 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
13
14
  },
14
15
  emits: ["close", "success"],
15
16
  setup(P, { emit: h }) {
16
- const j = P, r = y([]), $ = y([]), b = y(!1), I = y(!1), u = y({}), L = async () => {
17
- $.value = await ie.getItem(`U-${j.userName}-ROUTES`), $.value = $.value.filter((o) => o.menuCode !== "SysHome"), await re(64), A();
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();
18
19
  }, R = (o, s) => {
19
20
  var n;
20
21
  r.value.splice(s, 1);
@@ -29,13 +30,13 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
29
30
  j.dataSource.forEach((o) => {
30
31
  u.value[o.parentId] ? u.value[o.parentId].push(o.menuId) : u.value[o.parentId] = [o.menuId];
31
32
  });
32
- }, D = (o, s) => {
33
+ }, q = (o, s) => {
33
34
  debugger;
34
35
  if (s.checked) {
35
36
  if (r.value.length === 16)
36
37
  return X(() => {
37
38
  u.value[o.id].splice(u.value[o.id].length - 1, 1);
38
- }), ue("最多只能选择16个常用功能");
39
+ }), ce("最多只能选择16个常用功能");
39
40
  const t = o.children.find((n) => n.id === s.label);
40
41
  t && (t.seqNo = H() + 10, t.menuId = t.id, r.value.push(t));
41
42
  } else {
@@ -56,16 +57,16 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
56
57
  menuId: s.menuId,
57
58
  seqNo: s.seqNo
58
59
  }));
59
- console.log(o), I.value = !0, G().post(Ee, o).then(() => {
60
- de(), E(), z("success");
60
+ console.log(o), I.value = !0, G().post(De, o).then(() => {
61
+ ie(), D(), z("success");
61
62
  }).finally(() => {
62
63
  I.value = !1;
63
64
  });
64
- }, E = () => {
65
+ }, D = () => {
65
66
  b.value = !1, z("close");
66
- }, q = (o) => ["#409eff", "#67c23a", "#13c2c2", "#e85f33", "orange"][o % 5], z = h;
67
+ }, L = (o) => ["#409eff", "#67c23a", "#13c2c2", "#e85f33", "orange"][o % 5], z = h;
67
68
  return K(() => {
68
- r.value = _e(j.dataSource, !0), b.value = !0, L();
69
+ r.value = _e(j.dataSource, !0), b.value = !0, E();
69
70
  }), (o, s) => {
70
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");
71
72
  return a(), N(U, {
@@ -77,7 +78,7 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
77
78
  title: "常用菜单设置(拖动可改变菜单顺序)",
78
79
  "class-name": "u-favorite-modal",
79
80
  "show-footer": "",
80
- onClose: E
81
+ onClose: D
81
82
  }, {
82
83
  default: c(() => [
83
84
  e("div", ge, [
@@ -106,7 +107,7 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
106
107
  e("div", ye, [
107
108
  e("div", {
108
109
  class: "rounded-full w-10 h-10 flex items-center justify-center",
109
- style: Q({ backgroundColor: q(l) })
110
+ style: Q({ backgroundColor: L(l) })
110
111
  }, [
111
112
  i(n, {
112
113
  icon: m.icon || `ri:${o.icons[l]}-line`,
@@ -142,7 +143,7 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
142
143
  i(S, {
143
144
  modelValue: u.value[m.id],
144
145
  "onUpdate:modelValue": (l) => u.value[m.id] = l,
145
- onChange: (l) => D(m, l)
146
+ onChange: (l) => q(m, l)
146
147
  }, {
147
148
  default: c(() => [
148
149
  (a(!0), p(k, null, C(V(m).menus, (l) => (a(), N(M, {
@@ -166,7 +167,7 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
166
167
  i(S, {
167
168
  modelValue: u.value[l.id],
168
169
  "onUpdate:modelValue": (d) => u.value[l.id] = d,
169
- onChange: (d) => D(l, d)
170
+ onChange: (d) => q(l, d)
170
171
  }, {
171
172
  default: c(() => [
172
173
  (a(!0), p(k, null, C(V(l).menus, (d) => (a(), N(M, {
@@ -190,7 +191,7 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
190
191
  i(S, {
191
192
  modelValue: u.value[d.id],
192
193
  "onUpdate:modelValue": (x) => u.value[d.id] = x,
193
- onChange: (x) => D(l, x)
194
+ onChange: (x) => q(l, x)
194
195
  }, {
195
196
  default: c(() => [
196
197
  (a(!0), p(k, null, C(V(d).menus, (x) => (a(), N(M, {
@@ -212,11 +213,11 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
212
213
  ])
213
214
  ]),
214
215
  footer: c(() => [
215
- e("div", De, [
216
+ e("div", qe, [
216
217
  i(w, {
217
218
  content: "cancel",
218
219
  status: "warning",
219
- onTap: E
220
+ onTap: D
220
221
  }),
221
222
  i(w, {
222
223
  content: "confirm",
@@ -228,33 +229,33 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
228
229
  }, 8, ["modelValue", "loading"]);
229
230
  };
230
231
  }
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
+ }), 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({
232
233
  name: "SuHome",
233
234
  __name: "su-welcome",
234
235
  setup(P) {
235
- const h = oe(), j = ne(), r = y([]), $ = y([]), b = y(!1), I = y(!1), u = Z(() => {
236
+ const h = de(), j = oe(), r = y([]), $ = y([]), b = y(!1), I = y(!1), u = Z(() => {
236
237
  var s;
237
238
  return (s = h.getUserInfo.name) == null ? void 0 : s.slice(0, 1);
238
- }), L = () => {
239
+ }), E = () => {
239
240
  var t, n;
240
241
  return h.isAdminRole ? "系统管理员" : (n = (t = h.getUserInfo) == null ? void 0 : t.sysRoles) == null ? void 0 : n.map((v) => v.roleName).join(",");
241
242
  }, R = () => {
242
243
  var t;
243
- return h.isAdminRole ? "【系统管理员】拥有所有组织" : L() === "项目组管理员" ? "【项目组管理员】拥有所有组织" : (t = h.getOrglist) == null ? void 0 : t.map((n) => n.orgName).join(",");
244
+ return h.isAdminRole ? "【系统管理员】拥有所有组织" : E() === "项目组管理员" ? "【项目组管理员】拥有所有组织" : (t = h.getOrglist) == null ? void 0 : t.map((n) => n.orgName).join(",");
244
245
  }, V = () => {
245
- const s = Number(ce().format("HH"));
246
+ const s = Number(ne().format("HH"));
246
247
  return s < 12 ? "上午好" : s < 18 ? "下午好" : "晚上好";
247
248
  }, A = () => {
248
- const s = /* @__PURE__ */ new Date(), t = me.solar2lunar(
249
+ const s = /* @__PURE__ */ new Date(), t = re.solar2lunar(
249
250
  s.getFullYear(),
250
251
  s.getMonth() + 1,
251
252
  s.getDate()
252
253
  ), { gzYear: n, IMonthCn: v, IDayCn: M, cMonth: S, cDay: w, ncWeek: U } = t;
253
254
  return `${S}月${w}日 ${n}${v}${M} ${U}`;
254
- }, D = () => {
255
- const s = "/upms/v1/menuFavority";
255
+ }, q = () => {
256
+ const s = "/upfm/v1/menuFavority";
256
257
  I.value = !0;
257
- const t = { pageSize: 20, pageNum: 1, userName: fe.get(le) };
258
+ const t = { pageSize: 20, pageNum: 1, userName: ue.get(me) };
258
259
  G().get(s, t).then((n) => {
259
260
  r.value = (n == null ? void 0 : n.list) || [];
260
261
  }).finally(() => {
@@ -272,9 +273,9 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
272
273
  b.value = !0;
273
274
  };
274
275
  K(() => {
275
- D(), H();
276
+ q(), H();
276
277
  });
277
- const E = (s) => ["#409eff", "#67c23a", "#13c2c2", "#e85f33", "orange"][s % 5], q = [
278
+ const D = (s) => ["#409eff", "#67c23a", "#13c2c2", "#e85f33", "orange"][s % 5], L = [
278
279
  "community",
279
280
  "shield-star",
280
281
  "group",
@@ -329,7 +330,7 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
329
330
  return (s, t) => {
330
331
  var x;
331
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");
332
- return a(), p("div", qe, [
333
+ return a(), p("div", Le, [
333
334
  e("div", ze, [
334
335
  e("div", Re, [
335
336
  e("div", null, [
@@ -353,7 +354,7 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
353
354
  ]),
354
355
  e("div", He, [
355
356
  t[2] || (t[2] = e("span", { class: "inline-block" }, " 所属角色: ", -1)),
356
- e("div", Te, f(L()), 1)
357
+ e("div", Te, f(E()), 1)
357
358
  ]),
358
359
  e("div", Oe, [
359
360
  t[3] || (t[3] = e("span", { class: "inline-block" }, " 所属组织: ", -1)),
@@ -414,10 +415,10 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
414
415
  e("div", Ke, [
415
416
  e("div", {
416
417
  class: "rounded-full w-10 h-10 flex items-center justify-center",
417
- style: Q({ backgroundColor: E(W) })
418
+ style: Q({ backgroundColor: D(W) })
418
419
  }, [
419
420
  i(S, {
420
- icon: g.icon || `ri:${q[W]}-line`,
421
+ icon: g.icon || `ri:${L[W]}-line`,
421
422
  class: "text-2xl text-white"
422
423
  }, null, 8, ["icon"])
423
424
  ], 4),
@@ -509,18 +510,18 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
509
510
  ]),
510
511
  _: 1
511
512
  }),
512
- b.value ? (a(), N(Le, {
513
+ b.value ? (a(), N(Ee, {
513
514
  key: 0,
514
515
  "data-source": r.value,
515
516
  "user-name": B(h).getUserInfo.userName,
516
- icons: q,
517
+ icons: L,
517
518
  onClose: t[0] || (t[0] = (g) => b.value = !1),
518
- onSuccess: D
519
+ onSuccess: q
519
520
  }, null, 8, ["data-source", "user-name"])) : O("", !0)
520
521
  ]);
521
522
  };
522
523
  }
523
- }), ft = /* @__PURE__ */ ae(lt, [["__scopeId", "data-v-6a2c1a83"]]);
524
+ }), _t = /* @__PURE__ */ fe(lt, [["__scopeId", "data-v-4f622fd8"]]);
524
525
  export {
525
- ft as default
526
+ _t as default
526
527
  };
@@ -1,10 +1,10 @@
1
- import { defineComponent as G, ref as j, reactive as E, computed as M, onMounted as O, resolveComponent as c, resolveDirective as S, withDirectives as T, createElementBlock as A, openBlock as F, createElementVNode as u, createVNode as a, withCtx as o, createTextVNode as v, toDisplayString as p } from "vue";
2
- import { useI18n as q } from "vue-i18n";
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
+ import { useI18n as B } from "vue-i18n";
3
3
  import { t as N } from "./await-to-js.es5-BtRbN2QH.js";
4
- import { cookies as x, successMessage as J, warnMessage as Y } from "@utogether/utils";
4
+ import { cookies as F, successMessage as J, warnMessage as Y } from "@utogether/utils";
5
5
  import { isArray as K } from "xe-utils";
6
- import { B as R, o as H, w as Q } from "./index-BKIw8tSn.js";
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__ */ G({
6
+ import { x as R, m as H, q as Q } from "./index-DZc3qRTx.js";
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) {
10
10
  const L = j(), _ = j(!1), s = E({
@@ -16,7 +16,7 @@ const W = { class: "flex flex-col items-center bg-white u-system-config" }, X =
16
16
  logo: [],
17
17
  backgroundImg: [],
18
18
  favicon: []
19
- }), y = Q(), { t: m } = q(), f = j(R());
19
+ }), y = Q(), { t: m } = B(), f = j(R());
20
20
  let r = [];
21
21
  const U = E({
22
22
  defaultLanguage: [
@@ -29,8 +29,8 @@ const W = { class: "flex flex-col items-center bg-white u-system-config" }, X =
29
29
  title: [
30
30
  { required: !0, message: m("message.required") + m("message.udp.systemTitle"), trigger: "blur" }
31
31
  ]
32
- }), h = M(() => {
33
- const e = x.get(H);
32
+ }), h = O(() => {
33
+ const e = F.get(H);
34
34
  return {
35
35
  Authorization: "Bearer " + JSON.parse(e).accessToken
36
36
  };
@@ -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 = w(s[t][0]).url, l.fileName = w(s[t][0]).name);
45
+ K(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) => {
@@ -51,13 +51,13 @@ const W = { class: "flex flex-col items-center bg-white u-system-config" }, X =
51
51
  const l = r.filter((g) => !g.id), d = r.filter((g) => g.id), i = [];
52
52
  l.length ? i.push(y.post(k, l)) : i.push(y.put(k, d));
53
53
  const [b] = await N(Promise.all(i));
54
- b || (J(), C()), _.value = !1;
54
+ b || (J(), w()), _.value = !1;
55
55
  }
56
56
  });
57
- }, w = (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) => {
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
59
  return Y(m("message.tip.singleImg"));
60
- }, C = () => {
60
+ }, w = () => {
61
61
  Object.keys(s).forEach((e) => {
62
62
  const t = r.find((l) => l.configCode === e);
63
63
  if (t && (s[t.configCode] = t.configValue || s[t.configCode], t.fileName)) {
@@ -69,13 +69,13 @@ const W = { class: "flex flex-col items-center bg-white u-system-config" }, X =
69
69
  });
70
70
  }, z = async () => {
71
71
  const [e, t] = await N(y.get(k, {}));
72
- e || (r = t.list), C();
72
+ e || (r = t.list), w();
73
73
  };
74
- return O(() => {
74
+ return S(() => {
75
75
  z();
76
76
  }), (e, t) => {
77
- const l = c("el-button"), d = c("el-input"), i = c("el-form-item"), b = c("el-option"), g = c("el-select"), I = c("el-switch"), $ = c("el-upload"), B = c("el-form"), D = S("spinning");
78
- return T((F(), A("div", W, [
77
+ const l = c("el-button"), d = c("el-input"), i = c("el-form-item"), b = c("el-option"), g = c("el-select"), I = c("el-switch"), $ = c("el-upload"), D = c("el-form"), G = T("spinning");
78
+ return q((A(), x("div", W, [
79
79
  u("div", X, [
80
80
  a(l, {
81
81
  type: "primary",
@@ -88,7 +88,7 @@ const W = { class: "flex flex-col items-center bg-white u-system-config" }, X =
88
88
  })
89
89
  ]),
90
90
  u("div", Z, [
91
- a(B, {
91
+ a(D, {
92
92
  ref_key: "xfrom",
93
93
  ref: L,
94
94
  model: s,
@@ -267,7 +267,7 @@ const W = { class: "flex flex-col items-center bg-white u-system-config" }, X =
267
267
  }, 8, ["model", "rules"])
268
268
  ])
269
269
  ])), [
270
- [D, _.value]
270
+ [G, _.value]
271
271
  ]);
272
272
  };
273
273
  }