@utogether/udp-core 2.0.0-beta.24 → 2.0.0-beta.25

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 (149) hide show
  1. package/dist/403-QwBKrRZE.js +72 -0
  2. package/dist/404-Cr7MbzNV.js +72 -0
  3. package/dist/500-B7kCOeIA.js +77 -0
  4. package/dist/AuthorityInfo-Dwml2K4S.js +91 -0
  5. package/dist/AuthorityPanel-DzPhsPpa.js +98 -0
  6. package/dist/Company-BhOlvl7Q.js +21 -0
  7. package/dist/CompanyPanel-ByhY5-Sq.js +199 -0
  8. package/dist/DataSet-CuGZcKC-.js +141 -0
  9. package/dist/Department-QvngN63N.js +21 -0
  10. package/dist/DepartmentPanel-BCXqC39J.js +2 -0
  11. package/dist/DepartmentPanel-DntGycxr.js +242 -0
  12. package/dist/DesignPanel-BMN4DZ0R.js +1196 -0
  13. package/dist/DictView-ERFqZ5VD.js +100 -0
  14. package/dist/File-WJXjGYxr.js +89 -0
  15. package/dist/InvOrganization-BwMmD8Ua.js +76 -0
  16. package/dist/Org-HgnOWubi.js +76 -0
  17. package/dist/Preview-CVZdnHB1.js +45 -0
  18. package/dist/ReIcon-DecitXmg.js +413 -0
  19. package/dist/ReportDefine-BgLM-Rjk.js +10 -0
  20. package/dist/ReportDesign-CjfTyyy_.js +158 -0
  21. package/dist/ReportQuery-CP-E0Puv.js +101 -0
  22. package/dist/ReportQueryFrom-D7SPPAps.js +198 -0
  23. package/dist/ReportTemplate-DE25zc1f.js +162 -0
  24. package/dist/Role-K7v_ZhFE.js +21 -0
  25. package/dist/RoleAssign-C16fjLaX.js +22 -0
  26. package/dist/RolePanel-CV-xPlYJ.js +176 -0
  27. package/dist/RolePanel-DPCe9k8f.js +131 -0
  28. package/dist/ScrollPanel-DW30pGz1.js +88 -0
  29. package/dist/Staff-w2ly4qd0.js +22 -0
  30. package/dist/StaffInfo-DPDRpz6F.js +149 -0
  31. package/dist/StaffPanel-DI1eTTp9.js +143 -0
  32. package/dist/SysUser-BMTX1cJM.js +12 -0
  33. package/dist/SysUserPanel-xwZdVjdp.js +365 -0
  34. package/dist/SystemMenu-TXhiQZVm.js +154 -0
  35. package/dist/UserInfo-JQqw8FMT.js +194 -0
  36. package/dist/_plugin-vue_export-helper-C6QCLu9I.js +8 -0
  37. package/dist/api-BFNxcxSN.js +30 -0
  38. package/dist/authority-Bi6BGB5B.js +20 -0
  39. package/dist/await-to-js.es5-DkWYmPXW.js +10 -0
  40. package/dist/childView-Bk8OD9bV.js +181 -0
  41. package/dist/childView-CyrcwshT.js +184 -0
  42. package/dist/code-rule-QFrhqFrW.js +151 -0
  43. package/dist/contant-Q77dU_V3.js +4 -0
  44. package/dist/core.es.js +6 -23
  45. package/dist/cron-task-BpUDKEAU.js +131 -0
  46. package/dist/flow-task-DAc2NrDU.js +11 -0
  47. package/dist/frameView-Di0zJZUR.js +39 -0
  48. package/dist/img/v_img.svg +1 -1
  49. package/dist/layout-home-BVp7vYLR.js +239 -0
  50. package/dist/layoutView-DFUjrqAS.js +2662 -0
  51. package/dist/log-in-BrNB0mLz.js +117 -0
  52. package/dist/log-out-dYfqvzy6.js +111 -0
  53. package/dist/login-BdCDnuXL.js +233 -0
  54. package/dist/login-log-CJak-ANA.js +79 -0
  55. package/dist/lov-view-DkmG4K57.js +95 -0
  56. package/dist/menuInfo-kp2wNYOp.js +346 -0
  57. package/dist/mitt-CQgI7DYU.js +27 -0
  58. package/dist/pda-app-CA7YI37u.js +589 -0
  59. package/dist/redirect-N0k4tImU.js +16 -0
  60. package/dist/resource-CfQTHFcs.js +94 -0
  61. package/dist/router-CeluSGiD.js +1531 -0
  62. package/dist/su-welcome-JeiovGpe.js +799 -0
  63. package/dist/sys-config-Ddb3vBpK.js +316 -0
  64. package/dist/udp-core-Dhm-BlAs.js +2032 -0
  65. package/dist/udp-core.css +2 -1
  66. package/dist/useDataThemeChange-BCy8JBG7.js +226 -0
  67. package/dist/useNav-DY8FkltH.js +106 -0
  68. package/dist/utogether-l7JXs4Lv.js +4 -0
  69. package/dist/water-mark-WDQZ9YqB.js +119 -0
  70. package/dist/wecom-push-kWkAVRCj.js +77 -0
  71. package/package.json +1 -1
  72. package/src/api/index.ts +51 -51
  73. package/src/components/udp/index.ts +9 -8
  74. package/src/components/udp/lov/index.vue +430 -0
  75. package/src/components/udp/upload/index.vue +444 -444
  76. package/src/main.ts +110 -111
  77. package/src/plugins/vxe-table/index.ts +1 -1
  78. package/src/plugins/vxe-table/render.tsx +999 -998
  79. package/tsconfig.json +1 -1
  80. package/vite.config.ts +8 -3
  81. package/dist/403-DDCAPCYb.js +0 -65
  82. package/dist/404-BclWW4UB.js +0 -65
  83. package/dist/500-BAggMgTl.js +0 -67
  84. package/dist/AuthorityInfo-liCxYVNc.js +0 -4
  85. package/dist/AuthorityInfo.vue_vue_type_style_index_0_lang-Bd5A4CD-.js +0 -100
  86. package/dist/AuthorityPanel-CRlAwbaI.js +0 -4
  87. package/dist/AuthorityPanel.vue_vue_type_style_index_0_lang-DxhZjp1S.js +0 -114
  88. package/dist/Company-DjaOAaWM.js +0 -25
  89. package/dist/CompanyPanel-Dp_2z717.js +0 -206
  90. package/dist/DataSet-DT-rGICv.js +0 -147
  91. package/dist/Department-Bp5RGbl9.js +0 -25
  92. package/dist/DepartmentPanel-Bg4xM4Lx.js +0 -254
  93. package/dist/DesignPanel-BS2ioHd_.js +0 -4
  94. package/dist/DesignPanel.vue_vue_type_style_index_0_lang-DWwfRVCj.js +0 -1013
  95. package/dist/DictView-pYJXt6IS.js +0 -111
  96. package/dist/InvOrganization-D90gRzlN.js +0 -74
  97. package/dist/Org-Dk4KuIx2.js +0 -39
  98. package/dist/Preview-DpZR6uKs.js +0 -48
  99. package/dist/ReportDefine-PtJnfaLw.js +0 -10
  100. package/dist/ReportDesign-4HWkcTtA.js +0 -165
  101. package/dist/ReportQuery-BPY1lWFn.js +0 -75
  102. package/dist/ReportQueryFrom-CHFlkZ42.js +0 -4
  103. package/dist/ReportQueryFrom.vue_vue_type_style_index_0_lang-DbbQydKz.js +0 -178
  104. package/dist/ReportTemplate-C2F3oy8I.js +0 -161
  105. package/dist/Role-iTP6DYOi.js +0 -25
  106. package/dist/RoleAssign-DIYNHQeF.js +0 -26
  107. package/dist/RolePanel-0ojFIz9G.js +0 -4
  108. package/dist/RolePanel-B0Yr5vjo.js +0 -4
  109. package/dist/RolePanel.vue_vue_type_script_setup_true_lang-CHAj3dCD.js +0 -132
  110. package/dist/RolePanel.vue_vue_type_script_setup_true_lang-CXZBxePU.js +0 -154
  111. package/dist/ScrollPanel.vue_vue_type_style_index_0_lang-DtNzPRjS.js +0 -101
  112. package/dist/Staff-sftZ0bIV.js +0 -26
  113. package/dist/StaffInfo-BG2FMXzR.js +0 -4
  114. package/dist/StaffInfo.vue_vue_type_script_setup_true_lang-DzGn0pYY.js +0 -108
  115. package/dist/StaffPanel-BydqiitC.js +0 -4
  116. package/dist/StaffPanel.vue_vue_type_script_setup_true_lang-C42Pnb-b.js +0 -154
  117. package/dist/SysUser-qMGVHpJ_.js +0 -15
  118. package/dist/SysUserPanel-Bh1HgSAr.js +0 -4
  119. package/dist/SysUserPanel.vue_vue_type_script_setup_true_lang-BBEMYLQN.js +0 -356
  120. package/dist/SystemMenu-DUbWmLip.js +0 -156
  121. package/dist/UserInfo-DNkiTdWm.js +0 -4
  122. package/dist/UserInfo.vue_vue_type_style_index_0_lang-B1eNklEd.js +0 -160
  123. package/dist/await-to-js.es5-Bv3Eu4mi.js +0 -10
  124. package/dist/childView-CjUjh8Da.js +0 -4
  125. package/dist/childView-DT9luEEK.js +0 -4
  126. package/dist/childView.vue_vue_type_style_index_0_lang-CgqosFJQ.js +0 -183
  127. package/dist/childView.vue_vue_type_style_index_0_lang-DkXHMFPd.js +0 -143
  128. package/dist/code-rule-uOazxFfn.js +0 -148
  129. package/dist/cron-task-DEykunjo.js +0 -135
  130. package/dist/flow-task-B07st2aD.js +0 -10
  131. package/dist/frameView-FxzlbkeM.js +0 -44
  132. package/dist/index-BnxyUGKa.js +0 -7944
  133. package/dist/layout-home-C0jme8Ju.js +0 -232
  134. package/dist/layoutView-BqMAHIxF.js +0 -3239
  135. package/dist/log-in-skZaWMBY.js +0 -117
  136. package/dist/log-out-BiND7muW.js +0 -130
  137. package/dist/login-C-184YPO.js +0 -235
  138. package/dist/login-log-BEHYT0v0.js +0 -70
  139. package/dist/lov-view-Df-swRfy.js +0 -99
  140. package/dist/menuInfo-CpyjX4a4.js +0 -4
  141. package/dist/menuInfo.vue_vue_type_style_index_0_lang-D09-OKji.js +0 -363
  142. package/dist/pda-app-DP87aTBc.js +0 -710
  143. package/dist/redirect-BqegffKC.js +0 -15
  144. package/dist/resource-CAldbnw4.js +0 -97
  145. package/dist/su-welcome-DoBUqadB.js +0 -42225
  146. package/dist/sys-config-hGuE7DUf.js +0 -385
  147. package/dist/useNav-Cf_e5pBY.js +0 -92
  148. package/dist/utogether-MlnyYtNS.js +0 -4
  149. package/dist/wecom-push-DR7NsNro.js +0 -70
@@ -0,0 +1,799 @@
1
+ import { y as e } from "./router-CeluSGiD.js";
2
+ import { n as t } from "./udp-core-Dhm-BlAs.js";
3
+ import { r as n, s as r } from "./api-BFNxcxSN.js";
4
+ import { n as i, o as a, r as o } from "./contant-Q77dU_V3.js";
5
+ import { t as s } from "./_plugin-vue_export-helper-C6QCLu9I.js";
6
+ import { t as c } from "./await-to-js.es5-DkWYmPXW.js";
7
+ import { t as l } from "./useNav-DY8FkltH.js";
8
+ import * as u from "vue";
9
+ import { Fragment as d, computed as f, createBlock as p, createCommentVNode as m, createElementBlock as h, createElementVNode as g, createTextVNode as _, createVNode as v, defineAsyncComponent as y, defineComponent as b, nextTick as x, normalizeClass as S, normalizeStyle as C, onBeforeMount as w, onMounted as T, openBlock as E, ref as D, renderList as O, resolveComponent as k, resolveDirective as A, toDisplayString as j, unref as M, withCtx as N, withDirectives as P } from "vue";
10
+ import * as F from "@utogether/utils";
11
+ import { cookies as I, dbstorage as L, delay as R, getDictChildren as z, lunarCalendar as ee, storageLocal as te, successMessage as B, warnMessage as V } from "@utogether/utils";
12
+ import H, { clone as U, isEmpty as W, max as G } from "xe-utils";
13
+ import K from "vxe-pc-ui";
14
+ import * as ne from "vue-router";
15
+ import { useRouter as q } from "vue-router";
16
+ import J from "crypto-js";
17
+ import Y from "dayjs";
18
+ import X from "vuedraggable";
19
+ import { loadModule as Z } from "vue3-sfc-loader";
20
+ import * as re from "echarts";
21
+ //#region src/views/uhome/components/menu-favorite.vue?vue&type=script&setup=true&lang.ts
22
+ var ie = { class: "" }, ae = { class: "w-full h-24" }, oe = { class: "" }, se = { class: "h-24 w-24 flex justify-center items-center flex-col relative drag-item ut-menu-top-item" }, ce = { class: "w-[90%] text-xs mt-2 text-ellipsis overflow-hidden whitespace-nowrap text-center" }, le = ["onClick"], ue = {
23
+ class: "p-3 pb-14",
24
+ style: { "padding-bottom": "54px" }
25
+ }, de = { class: "flex items-center" }, fe = { class: "ml-1 font-bold text-base" }, pe = { class: "pl-3 py-2" }, me = { class: "flex items-center" }, he = { class: "ml-1 font-bold text-sm" }, ge = { class: "pl-3 py-2" }, _e = { class: "flex items-center" }, ve = { class: "ml-1 font-bold text-sm" }, ye = { class: "py-2" }, be = { class: "flex justify-end" }, xe = "/upfm/v1/menuFavority", Se = /* @__PURE__ */ b({
26
+ __name: "menu-favorite",
27
+ props: {
28
+ dataSource: { default: () => [] },
29
+ icons: { default: () => [] },
30
+ userName: { default: "" }
31
+ },
32
+ emits: ["close", "success"],
33
+ setup(e, { emit: t }) {
34
+ let r = e, i = D([]), a = D([]), o = D(!1), s = D(!1), c = D({}), l = async () => {
35
+ a.value = await L.getItem(`U-${r.userName}-ROUTES`), a.value = a.value.filter((e) => e.menuCode !== "SysHome"), await R(64), _();
36
+ }, u = (e, t) => {
37
+ i.value.splice(t, 1);
38
+ let n = c.value[e.parentId]?.findIndex((t) => t === e.menuId);
39
+ c.value[e.parentId].splice(n, 1);
40
+ }, f = (e) => {
41
+ let t = [], n = [];
42
+ return e.children.forEach((e) => {
43
+ ["5", "100"].includes(e.menuCategory) ? t.push(e) : n.push(e);
44
+ }), {
45
+ folder: t,
46
+ menus: n
47
+ };
48
+ }, _ = () => {
49
+ r.dataSource.forEach((e) => {
50
+ c.value[e.parentId] ? c.value[e.parentId].push(e.menuId) : c.value[e.parentId] = [e.menuId];
51
+ });
52
+ }, y = (e, t) => {
53
+ if (t.checked) {
54
+ if (i.value.length === 16) return x(() => {
55
+ c.value[e.id].splice(c.value[e.id].length - 1, 1);
56
+ }), V("最多只能选择16个常用功能");
57
+ let n = e.children.find((e) => e.id === t.label);
58
+ n && (n.seqNo = S() + 10, n.menuId = n.id, i.value.push(n));
59
+ } else {
60
+ let n = i.value.findIndex((e) => e.menuId === t.label);
61
+ n !== -1 && i.value.splice(n, 1), n = c.value[e.id].findIndex((e) => e === t.label), n !== -1 && c.value[e.id].splice(n, 1);
62
+ }
63
+ }, b = () => {
64
+ i.value.forEach((e, t) => {
65
+ e.seqNo = (t + 1) * 10;
66
+ });
67
+ }, S = () => G(i.value, (e) => e.seqNo)?.seqNo || 0, w = () => {
68
+ let e = i.value.map((e, t) => ({
69
+ userName: r.userName,
70
+ menuId: e.menuId,
71
+ seqNo: 10 * (t + 1)
72
+ }));
73
+ s.value = !0, n().post(xe, e).then(() => {
74
+ B(), A(), F("success");
75
+ }).finally(() => {
76
+ s.value = !1;
77
+ });
78
+ }, A = () => {
79
+ o.value = !1, F("close");
80
+ }, P = (e) => [
81
+ "#409eff",
82
+ "#67c23a",
83
+ "#13c2c2",
84
+ "#e85f33",
85
+ "orange"
86
+ ][e % 5], F = t;
87
+ return T(() => {
88
+ i.value = U(r.dataSource, !0), o.value = !0, l();
89
+ }), (t, n) => {
90
+ let r = k("el-empty"), l = k("iconify-icon-offline"), _ = k("el-scrollbar"), x = k("vxe-checkbox"), S = k("vxe-checkbox-group"), T = k("ut-button"), D = k("vxe-modal");
91
+ return E(), p(D, {
92
+ modelValue: o.value,
93
+ "onUpdate:modelValue": n[0] ||= (e) => o.value = e,
94
+ loading: s.value,
95
+ width: "75%",
96
+ height: "80%",
97
+ title: "常用菜单设置(拖动可改变菜单顺序)",
98
+ "class-name": "u-favorite-modal",
99
+ "show-footer": "",
100
+ onClose: A
101
+ }, {
102
+ default: N(() => [g("div", ie, [v(_, {
103
+ heigth: "100",
104
+ class: "w-full border-b border-slate-300"
105
+ }, {
106
+ default: N(() => [g("div", ae, [i.value.length ? m("", !0) : (E(), p(r, {
107
+ key: 0,
108
+ "image-size": 50,
109
+ description: "",
110
+ class: "p-0"
111
+ })), v(M(X), {
112
+ list: i.value,
113
+ handle: ".drag-item",
114
+ animation: "300",
115
+ "item-key": "id",
116
+ class: "flex",
117
+ onEnd: b
118
+ }, {
119
+ item: N(({ element: t, index: n }) => [g("div", oe, [g("div", se, [
120
+ g("div", {
121
+ class: "rounded-full w-10 h-10 flex items-center justify-center",
122
+ style: C({ backgroundColor: P(n) })
123
+ }, [v(l, {
124
+ icon: t.icon || `ri:${e.icons[n]}-line`,
125
+ class: "text-2xl text-white"
126
+ }, null, 8, ["icon"])], 4),
127
+ g("span", ce, j(t.menuName), 1),
128
+ g("i", {
129
+ class: "ri-indeterminate-circle-line right-3 top-2 text-base hidden ut-menu-del",
130
+ onClick: (e) => u(t, n)
131
+ }, null, 8, le)
132
+ ])])]),
133
+ _: 1
134
+ }, 8, ["list"])])]),
135
+ _: 1
136
+ }), v(_, { class: "u-favorite-menu--contain" }, {
137
+ default: N(() => [g("div", ue, [(E(!0), h(d, null, O(a.value, (e) => (E(), h("div", {
138
+ key: e.id,
139
+ class: "grandparent-node"
140
+ }, [
141
+ g("div", de, [n[1] ||= g("div", { class: "w-2 h-4 bg-green-400" }, null, -1), g("div", fe, j(e.menuName), 1)]),
142
+ g("div", pe, [v(S, {
143
+ modelValue: c.value[e.id],
144
+ "onUpdate:modelValue": (t) => c.value[e.id] = t,
145
+ onChange: (t) => y(e, t)
146
+ }, {
147
+ default: N(() => [(E(!0), h(d, null, O(f(e).menus, (e) => (E(), p(x, {
148
+ key: e.id,
149
+ label: e.id,
150
+ content: e.menuName
151
+ }, null, 8, ["label", "content"]))), 128))]),
152
+ _: 2
153
+ }, 1032, [
154
+ "modelValue",
155
+ "onUpdate:modelValue",
156
+ "onChange"
157
+ ])]),
158
+ (E(!0), h(d, null, O(f(e).folder, (e) => (E(), h("div", {
159
+ key: e.id,
160
+ class: "parent-node pl-3"
161
+ }, [
162
+ g("div", me, [n[2] ||= g("div", { class: "w-2 h-4 bg-blue-400" }, null, -1), g("div", he, j(e.menuName), 1)]),
163
+ g("div", ge, [v(S, {
164
+ modelValue: c.value[e.id],
165
+ "onUpdate:modelValue": (t) => c.value[e.id] = t,
166
+ onChange: (t) => y(e, t)
167
+ }, {
168
+ default: N(() => [(E(!0), h(d, null, O(f(e).menus, (e) => (E(), p(x, {
169
+ key: e.id,
170
+ label: e.id,
171
+ content: e.menuName
172
+ }, null, 8, ["label", "content"]))), 128))]),
173
+ _: 2
174
+ }, 1032, [
175
+ "modelValue",
176
+ "onUpdate:modelValue",
177
+ "onChange"
178
+ ])]),
179
+ (E(!0), h(d, null, O(f(e).folder, (t) => (E(), h("div", {
180
+ key: t.id,
181
+ class: "child-node pl-3"
182
+ }, [g("div", _e, [n[3] ||= g("div", { class: "w-2 h-4 bg-red-400" }, null, -1), g("div", ve, j(t.menuName), 1)]), g("div", ye, [v(S, {
183
+ modelValue: c.value[t.id],
184
+ "onUpdate:modelValue": (e) => c.value[t.id] = e,
185
+ onChange: (t) => y(e, t)
186
+ }, {
187
+ default: N(() => [(E(!0), h(d, null, O(f(t).menus, (e) => (E(), p(x, {
188
+ key: e.id,
189
+ label: e.id,
190
+ content: e.menuName
191
+ }, null, 8, ["label", "content"]))), 128))]),
192
+ _: 2
193
+ }, 1032, [
194
+ "modelValue",
195
+ "onUpdate:modelValue",
196
+ "onChange"
197
+ ])])]))), 128))
198
+ ]))), 128))
199
+ ]))), 128))])]),
200
+ _: 1
201
+ })])]),
202
+ footer: N(() => [g("div", be, [v(T, {
203
+ content: "cancel",
204
+ status: "warning",
205
+ onTap: A
206
+ }), v(T, {
207
+ content: "confirm",
208
+ onTap: w
209
+ })])]),
210
+ _: 1
211
+ }, 8, ["modelValue", "loading"]);
212
+ };
213
+ }
214
+ }), Ce = { class: "default:bg-white dark:bg-black" }, we = ["onClick"], Te = { class: "h-20 flex justify-center items-center flex-col" }, Ee = { class: "text-xs mt-2" }, De = /* @__PURE__ */ b({
215
+ __name: "common-menu",
216
+ setup(t) {
217
+ let r = q(), i = e(), a = D([]), s = D(!1), c = D(!1), l = () => {
218
+ c.value = !0;
219
+ let e = {
220
+ pageSize: 20,
221
+ pageNum: 1,
222
+ userName: I.get(o)
223
+ };
224
+ n().get("/upfm/v1/menuFavority", e).then((e) => {
225
+ a.value = e?.list || [];
226
+ }).finally(() => {
227
+ c.value = !1;
228
+ });
229
+ }, u = () => {
230
+ s.value = !0;
231
+ }, f = (e) => {
232
+ r.push(e.menuPath);
233
+ }, _ = (e) => [
234
+ "#409eff",
235
+ "#67c23a",
236
+ "#13c2c2",
237
+ "#e85f33",
238
+ "orange"
239
+ ][e % 5], y = [
240
+ "community",
241
+ "shield-star",
242
+ "group",
243
+ "settings",
244
+ "star",
245
+ "train",
246
+ "send-plane",
247
+ "rocket",
248
+ "device",
249
+ "compass",
250
+ "map-pin",
251
+ "keynote",
252
+ "article",
253
+ "tv",
254
+ "database-2",
255
+ "calendar"
256
+ ];
257
+ return T(() => {
258
+ l();
259
+ }), (e, t) => {
260
+ let n = k("el-empty"), r = k("iconify-icon-offline"), o = k("el-card"), b = A("spinning");
261
+ return P((E(), h("div", null, [v(o, { class: "mb-2" }, {
262
+ header: N(() => [g("div", { class: "flex items-center justify-between dark:bg-black" }, [t[2] ||= g("span", { class: "font-bold" }, "常用菜单", -1), g("span", {
263
+ class: "text-xs text-gray-400 cursor-pointer",
264
+ onClick: u
265
+ }, [...t[1] ||= [g("span", null, "更多", -1), g("i", { class: "vxe-icon-arrow-right" }, null, -1)]])])]),
266
+ default: N(() => [g("div", Ce, [a.value.length ? m("", !0) : (E(), p(n, {
267
+ key: 0,
268
+ "image-size": 100,
269
+ description: "快来添加常用菜单吧!",
270
+ class: "p-0 pb-3"
271
+ })), g("ul", { class: S(["p-0 w-full h-full grid grid-rows-1 grid-cols-8 u-dashed-menu", { "grid-rows-2": a.value.length > 8 }]) }, [(E(!0), h(d, null, O(a.value, (e, t) => (E(), h("li", {
272
+ key: e.id,
273
+ class: "text-center list-none bg-white",
274
+ onClick: (t) => f(e)
275
+ }, [g("div", Te, [g("div", {
276
+ class: "rounded-full w-10 h-10 flex items-center justify-center",
277
+ style: C({ backgroundColor: _(t) })
278
+ }, [v(r, {
279
+ icon: e.icon || `ri:${y[t]}-line`,
280
+ class: "text-2xl text-white"
281
+ }, null, 8, ["icon"])], 4), g("span", Ee, j(e.menuName), 1)])], 8, we))), 128))], 2)]), t[3] ||= g("div", null, null, -1)]),
282
+ _: 1
283
+ }), s.value ? (E(), p(Se, {
284
+ key: 0,
285
+ "data-source": a.value,
286
+ "user-name": M(i).getUserInfo.userName,
287
+ icons: y,
288
+ onClose: t[0] ||= (e) => s.value = !1,
289
+ onSuccess: l
290
+ }, null, 8, ["data-source", "user-name"])) : m("", !0)])), [[b, c.value]]);
291
+ };
292
+ }
293
+ }), Oe = { class: "flex items-center w-full pl-2 pr-3 pt-1" }, ke = { class: "pl-1" }, Ae = { class: "flex items-center w-full pl-2 pr-3 pt-1" }, je = { class: "pl-1" }, Me = "/uwfl/activiti", Ne = /* @__PURE__ */ b({
294
+ __name: "home-todo",
295
+ setup(e) {
296
+ let t = q(), r = D(null), i = D(null), a = D("todo"), s = D(!1), l = D(!1), u = D(""), f = D(null), p = D(null), m = D({
297
+ todo: [],
298
+ finish: [],
299
+ todoPage: {},
300
+ finishPage: {}
301
+ }), y = {
302
+ pageNum: 1,
303
+ pageSize: 20
304
+ }, b = [
305
+ { field: "taskId" },
306
+ { field: "taskName" },
307
+ { field: "taskTitle" },
308
+ { field: "createDate" },
309
+ {
310
+ field: "createBy",
311
+ title: "message.creator"
312
+ },
313
+ {
314
+ field: "operate",
315
+ width: 90,
316
+ fixed: "right",
317
+ slots: { default: ({ row: e }) => [v(d, null, [v(k("ut-button"), {
318
+ visible: a.value === "todo",
319
+ content: "todoTask",
320
+ icon: "ri-send-plane-line",
321
+ onTap: () => j(e, "edit")
322
+ }, null), v(k("ut-button"), {
323
+ visible: a.value === "finish",
324
+ content: "look",
325
+ status: "info",
326
+ onTap: () => j(e)
327
+ }, null)])] }
328
+ }
329
+ ], S = { pageChange({ pageSize: e, currentPage: t }) {
330
+ m.value[`${a.value}Page`] = {
331
+ pageNum: t,
332
+ pageSize: e
333
+ }, O(a.value, f.value);
334
+ } }, C = () => {
335
+ m.value[`${a.value}Page`] = y, O(a.value, f.value);
336
+ }, w = () => {
337
+ f.value = null, C();
338
+ }, O = async (e, t) => {
339
+ let s = e === "todo" ? "/listTasksToBeHandle" : "/listHandledTask", l = {
340
+ ...m.value[`${a.value}Page`],
341
+ searchField: t,
342
+ userName: I.get(o)
343
+ }, [u, d] = await c(n().post(Me + s, l));
344
+ if (u) return;
345
+ m.value[e] = d.list, m.value[e + "Page"].total = d.total;
346
+ let f = e === "todo" ? r : i;
347
+ f.value.getInstance().loadData(d.list), f.value.setPagerConfig({ ...m.value[e + "Page"] });
348
+ }, A = async ({ value: e }) => {
349
+ let t = e === "todo" ? r : i, n = b.find((e) => e.field === "operate");
350
+ n.width = e === "todo" ? 160 : 80, await x(), t.value.getInstance().reloadColumn(b);
351
+ let o = m.value[`${a.value}Page`];
352
+ m.value[`${a.value}Page`] = W(o) ? o : y, O(a.value, f.value);
353
+ }, j = (e, n = "detail") => {
354
+ let r = Object.assign({
355
+ dataStatus: n,
356
+ workflowCode: e.sourceKey,
357
+ businessKey: e.sourceId,
358
+ processInstanceId: e.processInstId
359
+ }, e);
360
+ sessionStorage.setItem("kPROCESSKEY", JSON.stringify(r)), t.push({ name: "FlowApproval" });
361
+ };
362
+ return T(() => {
363
+ m.value[`${a.value}Page`] = y, O("todo", null);
364
+ }), (e, t) => {
365
+ let n = k("vxe-input"), o = k("ut-button"), c = k("ut-grid"), d = k("vxe-tab-pane"), y = k("vxe-tabs"), x = k("vxe-image"), T = k("vxe-modal");
366
+ return E(), h("div", null, [v(y, {
367
+ modelValue: a.value,
368
+ "onUpdate:modelValue": t[2] ||= (e) => a.value = e,
369
+ type: "border-card",
370
+ onTabChange: A
371
+ }, {
372
+ default: N(() => [v(d, {
373
+ name: "todo",
374
+ title: e.$t("message.t_todoFlow")
375
+ }, {
376
+ default: N(() => [g("div", Oe, [v(n, {
377
+ modelValue: f.value,
378
+ "onUpdate:modelValue": t[0] ||= (e) => f.value = e,
379
+ class: "flex-1 w-full",
380
+ placeholder: "请输入任务编码或名称或标题查询"
381
+ }, null, 8, ["modelValue"]), g("div", ke, [v(o, {
382
+ content: "search",
383
+ icon: "ri-search-line",
384
+ onTap: C
385
+ }), v(o, {
386
+ content: "reset",
387
+ status: "info",
388
+ icon: "ri-cycle-line",
389
+ onTap: w
390
+ })])]), v(c, {
391
+ ref_key: "xgrid",
392
+ ref: r,
393
+ columns: b,
394
+ data: m.value.todo,
395
+ events: S,
396
+ editable: !1,
397
+ "need-export": !1,
398
+ "proxy-config": { enabled: !1 },
399
+ "toolbar-config": { enabled: !1 },
400
+ height: "360"
401
+ }, null, 8, ["data"])]),
402
+ _: 1
403
+ }, 8, ["title"]), v(d, {
404
+ name: "finish",
405
+ lazy: "",
406
+ title: e.$t("message.t_finishFlow")
407
+ }, {
408
+ default: N(() => [
409
+ g("div", Ae, [v(n, {
410
+ modelValue: f.value,
411
+ "onUpdate:modelValue": t[1] ||= (e) => f.value = e,
412
+ class: "flex-1 w-full",
413
+ placeholder: "请输入任务编码或名称或标题查询"
414
+ }, null, 8, ["modelValue"]), g("div", je, [v(o, {
415
+ content: "search",
416
+ icon: "ri-search-line",
417
+ onTap: C
418
+ }), v(o, {
419
+ content: "reset",
420
+ status: "info",
421
+ icon: "ri-cycle-line",
422
+ onTap: w
423
+ })])]),
424
+ v(c, {
425
+ ref_key: "ygrid",
426
+ ref: i,
427
+ columns: b,
428
+ data: m.value.finish,
429
+ events: S,
430
+ editable: !1,
431
+ "need-export": !1,
432
+ "proxy-config": { enabled: !1 },
433
+ "toolbar-config": { enabled: !1 },
434
+ height: "360"
435
+ }, null, 8, ["data"]),
436
+ t[4] ||= _(" /> ", -1)
437
+ ]),
438
+ _: 1
439
+ }, 8, ["title"])]),
440
+ _: 1
441
+ }, 8, ["modelValue"]), v(T, {
442
+ modelValue: s.value,
443
+ "onUpdate:modelValue": t[3] ||= (e) => s.value = e,
444
+ loading: l.value,
445
+ title: p.value,
446
+ height: "360"
447
+ }, {
448
+ default: N(() => [v(x, {
449
+ src: u.value,
450
+ height: 520,
451
+ width: "75%"
452
+ }, null, 8, ["src"])]),
453
+ _: 1
454
+ }, 8, [
455
+ "modelValue",
456
+ "loading",
457
+ "title"
458
+ ])]);
459
+ };
460
+ }
461
+ }), Pe = /* @__PURE__ */ b({
462
+ __name: "dynamic-component",
463
+ props: { data: { default: () => ({}) } },
464
+ setup(e) {
465
+ let n = e, i = r().VITE_ROUTER_HISTORY, a = {
466
+ compileOptions: {
467
+ mode: "module",
468
+ hoistStatic: !0
469
+ },
470
+ moduleCache: {
471
+ vue: u,
472
+ "vue-router": ne,
473
+ "await-to-js": c,
474
+ "@utogether/utils": F,
475
+ "@utogether/udp-core": t,
476
+ "xe-utils": H,
477
+ dayjs: Y,
478
+ echarts: re,
479
+ "vxe-pc-ui": K
480
+ },
481
+ async getFile(e) {
482
+ return await (await fetch(e)).text();
483
+ },
484
+ addStyle(e) {
485
+ let t = Object.assign(document.createElement("style"), { textContent: e }), n = document.head.getElementsByTagName("style")[0] || null;
486
+ document.head.insertBefore(t, n);
487
+ }
488
+ }, o = y(async () => await Z(`${window.origin}${i ? "/" + i : ""}${n.data.url}.vue`, a));
489
+ return (e, t) => (E(), p(M(o)));
490
+ }
491
+ }), Fe = { class: "dynamic-card w-full" }, Ie = /* @__PURE__ */ b({
492
+ __name: "dynamic-card",
493
+ props: { list: { default: () => [] } },
494
+ setup(e) {
495
+ return (t, n) => {
496
+ let r = k("vxe-card"), i = k("vxe-col"), a = k("vxe-row");
497
+ return E(), h("div", Fe, [v(a, {
498
+ gutter: [10, 10],
499
+ wrap: ""
500
+ }, {
501
+ default: N(() => [(E(!0), h(d, null, O(e.list, (e) => (E(), p(i, {
502
+ key: e.id,
503
+ span: e.span
504
+ }, {
505
+ default: N(() => [v(r, {
506
+ title: e.title,
507
+ height: e.height,
508
+ shadow: ""
509
+ }, {
510
+ default: N(() => [v(Pe, { data: e }, null, 8, ["data"])]),
511
+ _: 2
512
+ }, 1032, ["title", "height"])]),
513
+ _: 2
514
+ }, 1032, ["span"]))), 128))]),
515
+ _: 1
516
+ })]);
517
+ };
518
+ }
519
+ }), Q = {
520
+ name: "@utogether/udp-core",
521
+ private: !1,
522
+ version: "2.0.0-beta.25",
523
+ description: "",
524
+ type: "module",
525
+ main1: "index.ts",
526
+ main: "dist/core.es.js",
527
+ scripts: {
528
+ dev: "vite",
529
+ build: "vite build",
530
+ "preview:build": "pnpm build && vite preview",
531
+ report: "rimraf dist && vite build"
532
+ },
533
+ keywords: [],
534
+ author: "",
535
+ license: "ISC",
536
+ dependencies: { "vue3-sfc-loader": "^0.9.5" }
537
+ }, Le = { class: "ut-home m-3" }, Re = {
538
+ key: 0,
539
+ class: "h-32 mb-4 p-4 flex justify-between items-center bg-white home-page"
540
+ }, ze = { class: "flex flex-row items-center flex-[2]" }, Be = { class: "ml-4 text-xs flex-[2]" }, Ve = { class: "flex justify-center items-center" }, $ = { class: "py-2 text-gray-500 flex" }, He = { class: "w-2/3" }, Ue = {
541
+ key: 0,
542
+ class: "text-gray-500 flex"
543
+ }, We = { class: "w-2/3" }, Ge = { class: "flex flex-col" }, Ke = { class: "text-4xl" }, qe = { class: "mt-1 ml-3" }, Je = { class: "p-3" }, Ye = { class: "p-0 w-full h-full" }, Xe = { class: "flex" }, Ze = { class: "ml-3" }, Qe = { class: "text-blue-600 mr-3" }, $e = { class: "text-gray-400 text-sm" }, et = { class: "p-1" }, tt = /* @__PURE__ */ s(/* @__PURE__ */ b({
544
+ name: "UdpWelcome",
545
+ __name: "su-welcome",
546
+ setup(t) {
547
+ let r = e(), o = D([]), s = D([]), u = D(!1), y = D({}), b = D({
548
+ UserProfile: !1,
549
+ ToDo: !1,
550
+ FavorityMenu: !1,
551
+ Calendar: !1,
552
+ LoginInfo: !1
553
+ }), x = f(() => r.getUserInfo.name?.slice(0, 1)), { passwordItems: S, logout: C } = l(), A = D(Q.version.substring(0, 1) === "2"), P = null, F = () => r.isAdminRole ? "系统管理员" : r.getUserInfo?.sysRoles?.map((e) => e.roleName).join(","), L = () => r.isAdminRole ? "【系统管理员】拥有所有组织" : r.getOrglist?.map((e) => e.orgName).join(","), R = () => {
554
+ let e = Number(Y().format("HH"));
555
+ return e < 12 ? "上午好" : e < 18 ? "下午好" : "晚上好";
556
+ }, B = () => {
557
+ let e = /* @__PURE__ */ new Date(), { gzYear: t, IMonthCn: n, IDayCn: r, cMonth: i, cDay: a, ncWeek: o } = ee.solar2lunar(e.getFullYear(), e.getMonth() + 1, e.getDate());
558
+ return `${i}月${a}日 ${t}${n}${r} ${o}`;
559
+ }, V = () => {
560
+ let e = {
561
+ pageSize: 8,
562
+ pageNum: 1,
563
+ employeeName: r.getUserInfo?.name
564
+ };
565
+ n().get("/upfm/v1/userMonitor", e).then((e) => {
566
+ o.value = e?.list || [];
567
+ });
568
+ }, H = async () => {
569
+ let [e, t] = await c(n().get("/upfm/sysHomeConfig", {
570
+ pageSize: 1e3,
571
+ pageNum: 1,
572
+ enabled: "1",
573
+ isRoleFilter: "Y"
574
+ }));
575
+ e || t?.list.forEach((e) => {
576
+ e.type === "custom" ? s.value.push(e) : b.value[e.code] = !!e.code;
577
+ });
578
+ }, U = async () => {
579
+ let e = J.AES.decrypt(I.get(a), i).toString(J.enc.Utf8), t = z("SU.DEFAULT_PASSWORD")?.find((e) => e.dictCode === "default");
580
+ t && t.dictName === e ? (y.value = {
581
+ id: r.getUserInfo.id,
582
+ oldUserPwd: e
583
+ }, u.value = !0, window.clearInterval(P)) : t && t.dictName !== e && window.clearInterval(P);
584
+ };
585
+ w(() => {
586
+ if (te.getItem("kSysConfig").initialPasswordModification === "Y") {
587
+ let e = J.AES.decrypt(I.get(a), i).toString(J.enc.Utf8), t = z("SU.DEFAULT_PASSWORD")?.find((e) => e.dictCode === "default");
588
+ (!t || t?.dictName === e) && (P = setInterval(() => {
589
+ U();
590
+ }, 1e3));
591
+ }
592
+ }), T(() => {
593
+ V(), Q.version.substring(0, 1) === "2" ? H() : b.value = {
594
+ UserProfile: !1,
595
+ ToDo: !1,
596
+ FavorityMenu: !1,
597
+ Calendar: !1,
598
+ LoginInfo: !0
599
+ };
600
+ });
601
+ let W = [{ 2023: { 12: {
602
+ 30: "班",
603
+ 31: "班"
604
+ } } }, { 2024: {
605
+ 1: { 1: "假" },
606
+ 2: {
607
+ 4: "班",
608
+ 10: "假",
609
+ 11: "假",
610
+ 12: "假",
611
+ 13: "假",
612
+ 14: "假",
613
+ 15: "假",
614
+ 16: "假",
615
+ 17: "假",
616
+ 18: "班"
617
+ },
618
+ 4: {
619
+ 4: "假",
620
+ 5: "假",
621
+ 6: "假",
622
+ 7: "班",
623
+ 28: "班"
624
+ },
625
+ 5: {
626
+ 1: "假",
627
+ 2: "假",
628
+ 3: "假",
629
+ 4: "假",
630
+ 5: "假",
631
+ 11: "班"
632
+ },
633
+ 6: {
634
+ 8: "假",
635
+ 9: "假",
636
+ 10: "假"
637
+ },
638
+ 9: {
639
+ 15: "假",
640
+ 16: "假",
641
+ 17: "假",
642
+ 14: "班",
643
+ 29: "班"
644
+ },
645
+ 10: {
646
+ 1: "假",
647
+ 2: "假",
648
+ 3: "假",
649
+ 4: "假",
650
+ 5: "假",
651
+ 6: "假",
652
+ 7: "假",
653
+ 12: "班"
654
+ }
655
+ } }], G = [
656
+ {
657
+ name: "元旦",
658
+ date: "2024-01-01"
659
+ },
660
+ {
661
+ name: "春节",
662
+ date: "2024-02-10"
663
+ },
664
+ {
665
+ name: "清明节",
666
+ date: "2024-04-04"
667
+ },
668
+ {
669
+ name: "劳动节",
670
+ date: "2024-05-01"
671
+ },
672
+ {
673
+ name: "端午节",
674
+ date: "2024-06-10"
675
+ },
676
+ {
677
+ name: "中秋节",
678
+ date: "2024-09-17"
679
+ },
680
+ {
681
+ name: "国庆节",
682
+ date: "2024-10-01"
683
+ }
684
+ ];
685
+ return (e, t) => {
686
+ let n = k("el-avatar"), i = k("ut-flip-down"), a = k("el-row"), c = k("el-col"), l = k("el-card"), f = k("ut-calendar"), w = k("ut-modal-form");
687
+ return E(), h("div", Le, [
688
+ b.value.UserProfile ? (E(), h("div", Re, [g("div", ze, [g("div", null, [v(n, {
689
+ size: "large",
690
+ class: "text-4xl font-bold bg-[var(--el-color-primary)]"
691
+ }, {
692
+ default: N(() => [_(j(x.value), 1)]),
693
+ _: 1
694
+ })]), g("div", Be, [
695
+ g("div", Ve, [g("span", null, j(R()) + ", " + j(M(r).getUserInfo?.name || "") + ",欢迎回来! ", 1), t[2] ||= g("div", {
696
+ class: "flex flex-[2] justify-center items-center font-bold",
697
+ style: { color: "var(--el-color-primary)" }
698
+ }, " 星光不问赶路人,岁月不负有心人,以梦为马,不负韶华! ", -1)]),
699
+ g("div", $, [t[3] ||= g("span", { class: "inline-block" }, " 所属角色: ", -1), g("div", He, j(F()), 1)]),
700
+ F() === "系统管理员" ? m("", !0) : (E(), h("div", Ue, [t[4] ||= g("span", { class: "inline-block" }, " 所属组织: ", -1), g("div", We, j(L()), 1)]))
701
+ ])]), g("div", Ge, [g("span", Ke, [v(i, {
702
+ "show-days": !1,
703
+ "show-labels": !1
704
+ })]), g("div", qe, j(B()), 1)])])) : m("", !0),
705
+ A.value ? (E(), p(a, { key: 1 }, {
706
+ default: N(() => [v(Ie, { list: s.value }, null, 8, ["list"])]),
707
+ _: 1
708
+ })) : m("", !0),
709
+ v(a, {
710
+ class: "m-2",
711
+ gutter: 10
712
+ }, {
713
+ default: N(() => [
714
+ b.value.FavorityMenu ? (E(), p(c, {
715
+ key: 0,
716
+ lg: 24,
717
+ md: 24,
718
+ class: ""
719
+ }, {
720
+ default: N(() => [v(De)]),
721
+ _: 1
722
+ })) : m("", !0),
723
+ b.value.ToDo ? (E(), p(c, {
724
+ key: 1,
725
+ lg: 24,
726
+ md: 24,
727
+ class: ""
728
+ }, {
729
+ default: N(() => [v(l, null, {
730
+ header: N(() => [...t[5] ||= [g("div", { class: "font-bold" }, [g("span", null, "流程审批")], -1)]]),
731
+ default: N(() => [g("div", null, [v(Ne)])]),
732
+ _: 1
733
+ })]),
734
+ _: 1
735
+ })) : m("", !0),
736
+ b.value.LoginInfo ? (E(), p(c, {
737
+ key: 2,
738
+ xl: 16,
739
+ lg: 12,
740
+ md: 24
741
+ }, {
742
+ default: N(() => [v(l, { class: "mb-2" }, {
743
+ header: N(() => [...t[6] ||= [g("div", { class: "font-bold" }, [g("span", null, "个人动态")], -1)]]),
744
+ default: N(() => [g("div", Je, [g("ul", Ye, [(E(!0), h(d, null, O(o.value, (e) => (E(), h("li", {
745
+ key: e.id,
746
+ class: "w-full list-none p-2 border-b border-gray-200"
747
+ }, [g("div", Xe, [g("div", null, [v(n, { class: "text-base" }, {
748
+ default: N(() => [_(j(x.value), 1)]),
749
+ _: 1
750
+ })]), g("div", Ze, [g("div", null, [g("span", Qe, j(e.browser), 1), g("span", null, j(e.browserVersion || e.platformVersion), 1)]), g("div", $e, j(e.loginTime), 1)])])]))), 128))])])]),
751
+ _: 1
752
+ })]),
753
+ _: 1
754
+ })) : m("", !0),
755
+ b.value.Calendar ? (E(), p(c, {
756
+ key: 3,
757
+ xl: 8,
758
+ lg: 12,
759
+ md: 24,
760
+ class: ""
761
+ }, {
762
+ default: N(() => [v(l, { class: "mb-2" }, {
763
+ header: N(() => [...t[7] ||= [g("div", { class: "font-bold" }, [g("span", null, "日历")], -1)]]),
764
+ default: N(() => [g("div", et, [v(f, {
765
+ holidays: W,
766
+ "statutory-holiday": G
767
+ })])]),
768
+ _: 1
769
+ })]),
770
+ _: 1
771
+ })) : m("", !0)
772
+ ]),
773
+ _: 1
774
+ }),
775
+ u.value ? (E(), p(w, {
776
+ key: 2,
777
+ record: y.value,
778
+ items: M(S)(),
779
+ width: 360,
780
+ height: 250,
781
+ "modal-options": { showClose: !1 },
782
+ "show-cancle-button": !1,
783
+ "data-status": "update",
784
+ title: e.$t("message.udp.passwordReset"),
785
+ url: "/uums/user/updatePwd",
786
+ method: "put",
787
+ onClose: t[0] ||= (e) => u.value = !1,
788
+ onConfirm: t[1] ||= (e) => M(C)()
789
+ }, null, 8, [
790
+ "record",
791
+ "items",
792
+ "title"
793
+ ])) : m("", !0)
794
+ ]);
795
+ };
796
+ }
797
+ }), [["__scopeId", "data-v-aa57aaaf"]]);
798
+ //#endregion
799
+ export { tt as default };