@utogether/udp-core 2.0.0-beta.27 → 2.0.0-beta.28

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 (100) hide show
  1. package/dist/{403-gdcH0-Bo.js → 403-CyoOD-Ik.js} +1 -1
  2. package/dist/{404-Se2SF97M.js → 404-Ch_OHTw0.js} +1 -1
  3. package/dist/{500-B6j9AqLo.js → 500-Cf9am7HK.js} +1 -1
  4. package/dist/{AuthorityInfo-CQ8ydZvr.js → AuthorityInfo-BJ427cqG.js} +1 -1
  5. package/dist/{AuthorityInfo.vue_vue_type_style_index_0_lang-C4NRvS8p.js → AuthorityInfo.vue_vue_type_style_index_0_lang-D9y7AwbB.js} +11 -12
  6. package/dist/{Company-BzSVBSC4.js → Company-qo-lKPkv.js} +3 -3
  7. package/dist/{CompanyPanel-DBjZB4aJ.js → CompanyPanel-DkKWAKvY.js} +7 -7
  8. package/dist/{Department-BkgseHo8.js → Department-CHUQByKX.js} +3 -3
  9. package/dist/{DepartmentPanel-Sen93_2M.js → DepartmentPanel-C742dfOO.js} +27 -28
  10. package/dist/{DesignPanel-pqDcwaFC.js → DesignPanel-D9oE5R7m.js} +1 -1
  11. package/dist/{DesignPanel.vue_vue_type_style_index_0_lang-BjtYyEw7.js → DesignPanel.vue_vue_type_style_index_0_lang-hYldVEbo.js} +192 -108
  12. package/dist/{DictView-CJLG4LlE.js → DictView-CrFXprP9.js} +1 -1
  13. package/dist/{InvOrganization-D0Jq1IAa.js → InvOrganization-Cz8SzIgs.js} +6 -7
  14. package/dist/{Org-CO_1WT39.js → Org-Bzt6yKox.js} +9 -10
  15. package/dist/{Preview-DLI4Bwel.js → Preview-jonigfMQ.js} +1 -1
  16. package/dist/{ReportDefine-Cw46OnJ_.js → ReportDefine-BpiM5Ovq.js} +1 -1
  17. package/dist/{ReportDesign-D4sHTXT7.js → ReportDesign-fp09cXJ7.js} +24 -25
  18. package/dist/{ReportQuery-DtOCvQSN.js → ReportQuery-52ZP1PYP.js} +1 -1
  19. package/dist/{ReportQueryFrom-QjL-ETPq.js → ReportQueryFrom-DSYavJb1.js} +1 -1
  20. package/dist/{ReportQueryFrom.vue_vue_type_style_index_0_lang-Dj9ne87n.js → ReportQueryFrom.vue_vue_type_style_index_0_lang-DBGYEp0u.js} +4 -4
  21. package/dist/{ReportTemplate-BxAgc_Aj.js → ReportTemplate-CA_UW0eD.js} +3 -3
  22. package/dist/{Role-Df77BBD-.js → Role-DqOt8Bk0.js} +3 -3
  23. package/dist/{RoleAssign-BrunouML.js → RoleAssign-BdxhefhQ.js} +3 -3
  24. package/dist/{RolePanel-HLA7XBlN.js → RolePanel-2gZ3H0ET.js} +1 -1
  25. package/dist/{RolePanel-DSVwqhiD.js → RolePanel-BsNd0svJ.js} +1 -1
  26. package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-CN0rUxKz.js → RolePanel.vue_vue_type_script_setup_true_lang-DLOwgF99.js} +9 -9
  27. package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-CKlbqRa5.js → RolePanel.vue_vue_type_script_setup_true_lang-DmzD9kab.js} +26 -27
  28. package/dist/{ScrollPanel.vue_vue_type_style_index_0_lang-D_FeSXKv.js → ScrollPanel.vue_vue_type_style_index_0_lang-B9ptUMeI.js} +7 -7
  29. package/dist/{Staff-BeL1xcRf.js → Staff-D3L8fEoY.js} +3 -3
  30. package/dist/{StaffInfo-CIfnltyX.js → StaffInfo-DYRw6ZYJ.js} +1 -1
  31. package/dist/{StaffInfo.vue_vue_type_script_setup_true_lang-DbLFwWfG.js → StaffInfo.vue_vue_type_script_setup_true_lang-xqEOQnMs.js} +1 -1
  32. package/dist/{StaffPanel-BV2CHWac.js → StaffPanel-DkrNH6Px.js} +1 -1
  33. package/dist/{StaffPanel.vue_vue_type_script_setup_true_lang-CvT-Vp2G.js → StaffPanel.vue_vue_type_script_setup_true_lang-BPBMnliy.js} +8 -9
  34. package/dist/{SysUser-DPfNvthk.js → SysUser-Bl1-cIpJ.js} +2 -2
  35. package/dist/{SysUserPanel-CoLKYlQE.js → SysUserPanel-yxNLaBwt.js} +1 -1
  36. package/dist/{SysUserPanel.vue_vue_type_script_setup_true_lang-lcO3Cjbq.js → SysUserPanel.vue_vue_type_script_setup_true_lang-BDcsgSl5.js} +11 -12
  37. package/dist/{SystemMenu-sdj1dRDA.js → SystemMenu-C4_Arn12.js} +9 -10
  38. package/dist/{UserInfo-CTX4hhFl.js → UserInfo-QcNwJCUR.js} +1 -1
  39. package/dist/{UserInfo.vue_vue_type_style_index_0_lang-ClhCd_8z.js → UserInfo.vue_vue_type_style_index_0_lang-DLIeUphX.js} +5 -6
  40. package/dist/{childView-BDmWwJO5.js → childView-B23DEO2u.js} +1 -1
  41. package/dist/{childView-Dx3ACtHa.js → childView-saDZQv9x.js} +1 -1
  42. package/dist/{childView.vue_vue_type_style_index_0_lang-CfKq_0FN.js → childView.vue_vue_type_style_index_0_lang-RsKR6CAC.js} +14 -15
  43. package/dist/{childView.vue_vue_type_style_index_0_lang-DxZNtkhd.js → childView.vue_vue_type_style_index_0_lang-ZFEfavUY.js} +11 -12
  44. package/dist/{code-rule-cvN4gYC_.js → code-rule-2_Ihx_by.js} +12 -13
  45. package/dist/core.es.js +21 -19
  46. package/dist/{cron-task-B0TkxFdp.js → cron-task-BFOPJQIk.js} +3 -4
  47. package/dist/{frameView-5cy5BSgS.js → frameView-f7Ya0Knj.js} +1 -1
  48. package/dist/img/minicolors.png +0 -0
  49. package/dist/{index-C5WRTwvI.js → index-BpdTDaTk.js} +811 -604
  50. package/dist/{layout-home-DrARg-3o.js → layout-home-v3DPJ7rB.js} +12 -13
  51. package/dist/{layoutView-25v_ngk5.js → layoutView-DZHoQDH1.js} +186 -187
  52. package/dist/{log-in-Bmz5Uhbt.js → log-in-BPAMJTwH.js} +4 -5
  53. package/dist/{log-out-B-8m3oNj.js → log-out-DZACF0jg.js} +8 -9
  54. package/dist/{login-Cmp2RvvW.js → login-B8cwozax.js} +22 -23
  55. package/dist/{lov-view-BATtzw2X.js → lov-view-Ba7Y7xy0.js} +4 -5
  56. package/dist/{menuInfo-BIvrE7nm.js → menuInfo-BpRKFYK8.js} +1 -1
  57. package/dist/{menuInfo.vue_vue_type_style_index_0_lang-B6USomit.js → menuInfo.vue_vue_type_style_index_0_lang-DJ5sUC6m.js} +17 -18
  58. package/dist/{pda-app-CzHVyeEa.js → pda-app-C0jJecrL.js} +7 -8
  59. package/dist/{resource-Y5lGB38n.js → resource-BG22Cw4P.js} +4 -4
  60. package/dist/su-welcome-DaxhbrC6.js +879 -0
  61. package/dist/{sys-config-CqO03LeC.js → sys-config-CG2fMtak.js} +22 -23
  62. package/dist/udp-core.css +1 -1
  63. package/dist/{useNav-C-rCgubt.js → useNav-_u2UAQWk.js} +24 -24
  64. package/index.ts +54 -51
  65. package/package.json +21 -21
  66. package/src/api/http.ts +10 -4
  67. package/src/api/index.ts +51 -51
  68. package/src/api/user.ts +64 -64
  69. package/src/components/udp/content/index.vue +93 -93
  70. package/src/components/udp/form-upload/form-upload.vue +496 -496
  71. package/src/components/udp/grid/index.vue +643 -544
  72. package/src/components/udp/index.ts +2 -1
  73. package/src/components/udp/modal-form/index.vue +326 -0
  74. package/src/components/udp/utils.ts +420 -420
  75. package/src/layout/components/lay-navbar/index.vue +240 -240
  76. package/src/layout/components/lay-search/components/SearchModal.vue +185 -185
  77. package/src/layout/components/lay-sidebar/mixNav.vue +261 -261
  78. package/src/layout/components/lay-sidebar/sidebarItem.vue +199 -195
  79. package/src/layout/components/lay-sidebar/vertical.vue +92 -92
  80. package/src/layout/layoutView.vue +1 -0
  81. package/src/main.ts +111 -111
  82. package/src/plugins/i18n/zh.ts +5 -1
  83. package/src/plugins/vxe-table/index.ts +116 -116
  84. package/src/router/index.ts +158 -156
  85. package/src/router/utils.ts +434 -430
  86. package/src/store/modules/permission.ts +1 -1
  87. package/src/store/modules/system.ts +193 -193
  88. package/src/style/print-lock.css +380 -375
  89. package/src/style/suprint.css +990 -985
  90. package/src/utils/authority/index.ts +46 -46
  91. package/src/utils/dataFormat/index.ts +309 -222
  92. package/src/utils/udp/http/index.ts +19 -11
  93. package/src/views/uhome/components/home-todo.vue +15 -3
  94. package/src/views/uhome/dynamic-card.vue +31 -31
  95. package/src/views/uhome/su-welcome.vue +310 -310
  96. package/src/views/ulogin/login.vue +292 -292
  97. package/src/views/urpt/design/DesignPanel.vue +538 -507
  98. package/src/views/urpt/design/print-data.ts +39 -59
  99. package/dist/await-to-js.es5-Bv3Eu4mi.js +0 -10
  100. package/dist/su-welcome-CXA6OzBw.js +0 -878
@@ -1,878 +0,0 @@
1
- import * as re from "vue";
2
- import { defineComponent as W, ref as h, onMounted as K, resolveComponent as u, openBlock as a, createBlock as N, withCtx as i, createElementVNode as e, createVNode as l, createCommentVNode as P, unref as B, normalizeStyle as oe, toDisplayString as I, createElementBlock as w, Fragment as L, renderList as A, nextTick as se, resolveDirective as ue, withDirectives as ce, normalizeClass as de, createTextVNode as J, defineAsyncComponent as me, computed as fe, onBeforeMount as pe } from "vue";
3
- import * as ve from "@utogether/utils";
4
- import { dbstorage as _e, delay as ge, warnMessage as he, successMessage as ye, cookies as G, storageLocal as xe, getDictChildren as Q, lunarCalendar as be } from "@utogether/utils";
5
- import q from "crypto-js";
6
- import { t as X } from "./await-to-js.es5-Bv3Eu4mi.js";
7
- import ne from "dayjs";
8
- import { n as Y, X as le, w as ae, Q as we, j as ke, y as Ce, x as Z, v as ee, _ as $e } from "./index-C5WRTwvI.js";
9
- import * as Ie from "vue-router";
10
- import { useRouter as ie } from "vue-router";
11
- import Ne, { clone as Se, max as Ue, isEmpty as Ve } from "xe-utils";
12
- import Te from "vuedraggable";
13
- import Me from "vxe-pc-ui";
14
- import { loadModule as Pe } from "vue3-sfc-loader";
15
- import * as Ee from "echarts";
16
- import { u as De } from "./useNav-C-rCgubt.js";
17
- const Le = { class: "" }, Re = { class: "w-full h-24" }, Fe = { class: "" }, je = { class: "h-24 w-24 flex justify-center items-center flex-col relative drag-item ut-menu-top-item" }, Ae = { class: "w-[90%] text-xs mt-2 text-ellipsis overflow-hidden whitespace-nowrap text-center" }, Oe = ["onClick"], ze = {
18
- class: "p-3 pb-14",
19
- style: { "padding-bottom": "54px" }
20
- }, He = { class: "flex items-center" }, Be = { class: "ml-1 font-bold text-base" }, We = { class: "pl-3 py-2" }, Ye = { class: "flex items-center" }, qe = { class: "ml-1 font-bold text-sm" }, Ge = { class: "pl-3 py-2" }, Ke = { class: "flex items-center" }, Je = { class: "ml-1 font-bold text-sm" }, Xe = { class: "py-2" }, Qe = { class: "flex justify-end" }, Ze = "/upfm/v1/menuFavority", et = /* @__PURE__ */ W({
21
- __name: "menu-favorite",
22
- props: {
23
- dataSource: { default: () => [] },
24
- icons: { default: () => [] },
25
- userName: { default: "" }
26
- },
27
- emits: ["close", "success"],
28
- setup(R, { emit: k }) {
29
- const C = R, c = h([]), r = h([]), v = h(!1), d = h(!1), m = h({}), S = async () => {
30
- r.value = await _e.getItem(`U-${C.userName}-ROUTES`), r.value = r.value.filter((o) => o.menuCode !== "SysHome"), await ge(64), $();
31
- }, z = (o, n) => {
32
- c.value.splice(n, 1);
33
- const s = m.value[o.parentId]?.findIndex((t) => t === o.menuId);
34
- m.value[o.parentId].splice(s, 1);
35
- }, y = (o) => {
36
- const n = [], s = [];
37
- return o.children.forEach((t) => {
38
- ["5", "100"].includes(t.menuCategory) ? n.push(t) : s.push(t);
39
- }), { folder: n, menus: s };
40
- }, $ = () => {
41
- C.dataSource.forEach((o) => {
42
- m.value[o.parentId] ? m.value[o.parentId].push(o.menuId) : m.value[o.parentId] = [o.menuId];
43
- });
44
- }, _ = (o, n) => {
45
- if (n.checked) {
46
- if (c.value.length === 16)
47
- return se(() => {
48
- m.value[o.id].splice(m.value[o.id].length - 1, 1);
49
- }), he("最多只能选择16个常用功能");
50
- const s = o.children.find((t) => t.id === n.label);
51
- s && (s.seqNo = F() + 10, s.menuId = s.id, c.value.push(s));
52
- } else {
53
- let s = c.value.findIndex((t) => t.menuId === n.label);
54
- s !== -1 && c.value.splice(s, 1), s = m.value[o.id].findIndex((t) => t === n.label), s !== -1 && m.value[o.id].splice(s, 1);
55
- }
56
- }, E = () => {
57
- c.value.forEach((o, n) => {
58
- o.seqNo = (n + 1) * 10;
59
- });
60
- }, F = () => Ue(c.value, (o) => o.seqNo)?.seqNo || 0, O = () => {
61
- const o = c.value.map((n, s) => ({
62
- userName: C.userName,
63
- menuId: n.menuId,
64
- seqNo: 10 * (s + 1)
65
- }));
66
- d.value = !0, Y().post(Ze, o).then(() => {
67
- ye(), V(), D("success");
68
- }).finally(() => {
69
- d.value = !1;
70
- });
71
- }, V = () => {
72
- v.value = !1, D("close");
73
- }, T = (o) => ["#409eff", "#67c23a", "#13c2c2", "#e85f33", "orange"][o % 5], D = k;
74
- return K(() => {
75
- c.value = Se(C.dataSource, !0), v.value = !0, S();
76
- }), (o, n) => {
77
- const s = u("el-empty"), t = u("iconify-icon-offline"), f = u("el-scrollbar"), g = u("vxe-checkbox"), U = u("vxe-checkbox-group"), M = u("ut-button"), j = u("vxe-modal");
78
- return a(), N(j, {
79
- modelValue: v.value,
80
- "onUpdate:modelValue": n[0] || (n[0] = (p) => v.value = p),
81
- loading: d.value,
82
- width: "75%",
83
- height: "80%",
84
- title: "常用菜单设置(拖动可改变菜单顺序)",
85
- "class-name": "u-favorite-modal",
86
- "show-footer": "",
87
- onClose: V
88
- }, {
89
- default: i(() => [
90
- e("div", Le, [
91
- l(f, {
92
- heigth: "100",
93
- class: "w-full border-b border-slate-300"
94
- }, {
95
- default: i(() => [
96
- e("div", Re, [
97
- c.value.length ? P("", !0) : (a(), N(s, {
98
- key: 0,
99
- "image-size": 50,
100
- description: "",
101
- class: "p-0"
102
- })),
103
- l(B(Te), {
104
- list: c.value,
105
- handle: ".drag-item",
106
- animation: "300",
107
- "item-key": "id",
108
- class: "flex",
109
- onEnd: E
110
- }, {
111
- item: i(({ element: p, index: x }) => [
112
- e("div", Fe, [
113
- e("div", je, [
114
- e("div", {
115
- class: "rounded-full w-10 h-10 flex items-center justify-center",
116
- style: oe({ backgroundColor: T(x) })
117
- }, [
118
- l(t, {
119
- icon: p.icon || `ri:${R.icons[x]}-line`,
120
- class: "text-2xl text-white"
121
- }, null, 8, ["icon"])
122
- ], 4),
123
- e("span", Ae, I(p.menuName), 1),
124
- e("i", {
125
- class: "ri-indeterminate-circle-line right-3 top-2 text-base hidden ut-menu-del",
126
- onClick: (b) => z(p, x)
127
- }, null, 8, Oe)
128
- ])
129
- ])
130
- ]),
131
- _: 1
132
- }, 8, ["list"])
133
- ])
134
- ]),
135
- _: 1
136
- }),
137
- l(f, { class: "u-favorite-menu--contain" }, {
138
- default: i(() => [
139
- e("div", ze, [
140
- (a(!0), w(L, null, A(r.value, (p) => (a(), w("div", {
141
- key: p.id,
142
- class: "grandparent-node"
143
- }, [
144
- e("div", He, [
145
- n[1] || (n[1] = e("div", { class: "w-2 h-4 bg-green-400" }, null, -1)),
146
- e("div", Be, I(p.menuName), 1)
147
- ]),
148
- e("div", We, [
149
- l(U, {
150
- modelValue: m.value[p.id],
151
- "onUpdate:modelValue": (x) => m.value[p.id] = x,
152
- onChange: (x) => _(p, x)
153
- }, {
154
- default: i(() => [
155
- (a(!0), w(L, null, A(y(p).menus, (x) => (a(), N(g, {
156
- key: x.id,
157
- label: x.id,
158
- content: x.menuName
159
- }, null, 8, ["label", "content"]))), 128))
160
- ]),
161
- _: 2
162
- }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])
163
- ]),
164
- (a(!0), w(L, null, A(y(p).folder, (x) => (a(), w("div", {
165
- key: x.id,
166
- class: "parent-node pl-3"
167
- }, [
168
- e("div", Ye, [
169
- n[2] || (n[2] = e("div", { class: "w-2 h-4 bg-blue-400" }, null, -1)),
170
- e("div", qe, I(x.menuName), 1)
171
- ]),
172
- e("div", Ge, [
173
- l(U, {
174
- modelValue: m.value[x.id],
175
- "onUpdate:modelValue": (b) => m.value[x.id] = b,
176
- onChange: (b) => _(x, b)
177
- }, {
178
- default: i(() => [
179
- (a(!0), w(L, null, A(y(x).menus, (b) => (a(), N(g, {
180
- key: b.id,
181
- label: b.id,
182
- content: b.menuName
183
- }, null, 8, ["label", "content"]))), 128))
184
- ]),
185
- _: 2
186
- }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])
187
- ]),
188
- (a(!0), w(L, null, A(y(x).folder, (b) => (a(), w("div", {
189
- key: b.id,
190
- class: "child-node pl-3"
191
- }, [
192
- e("div", Ke, [
193
- n[3] || (n[3] = e("div", { class: "w-2 h-4 bg-red-400" }, null, -1)),
194
- e("div", Je, I(b.menuName), 1)
195
- ]),
196
- e("div", Xe, [
197
- l(U, {
198
- modelValue: m.value[b.id],
199
- "onUpdate:modelValue": (H) => m.value[b.id] = H,
200
- onChange: (H) => _(x, H)
201
- }, {
202
- default: i(() => [
203
- (a(!0), w(L, null, A(y(b).menus, (H) => (a(), N(g, {
204
- key: H.id,
205
- label: H.id,
206
- content: H.menuName
207
- }, null, 8, ["label", "content"]))), 128))
208
- ]),
209
- _: 2
210
- }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])
211
- ])
212
- ]))), 128))
213
- ]))), 128))
214
- ]))), 128))
215
- ])
216
- ]),
217
- _: 1
218
- })
219
- ])
220
- ]),
221
- footer: i(() => [
222
- e("div", Qe, [
223
- l(M, {
224
- content: "cancel",
225
- status: "warning",
226
- onTap: V
227
- }),
228
- l(M, {
229
- content: "confirm",
230
- onTap: O
231
- })
232
- ])
233
- ]),
234
- _: 1
235
- }, 8, ["modelValue", "loading"]);
236
- };
237
- }
238
- }), tt = { class: "default:bg-white dark:bg-black" }, ot = ["onClick"], st = { class: "h-20 flex justify-center items-center flex-col" }, nt = { class: "text-xs mt-2" }, lt = /* @__PURE__ */ W({
239
- __name: "common-menu",
240
- setup(R) {
241
- const k = ie(), C = le(), c = h([]), r = h(!1), v = h(!1), d = () => {
242
- const $ = "/upfm/v1/menuFavority";
243
- v.value = !0;
244
- const _ = { pageSize: 20, pageNum: 1, userName: G.get(ae) };
245
- Y().get($, _).then((E) => {
246
- c.value = E?.list || [];
247
- }).finally(() => {
248
- v.value = !1;
249
- });
250
- }, m = () => {
251
- r.value = !0;
252
- }, S = ($) => {
253
- k.push($.menuPath);
254
- }, z = ($) => ["#409eff", "#67c23a", "#13c2c2", "#e85f33", "orange"][$ % 5], y = [
255
- "community",
256
- "shield-star",
257
- "group",
258
- "settings",
259
- "star",
260
- "train",
261
- "send-plane",
262
- "rocket",
263
- "device",
264
- "compass",
265
- "map-pin",
266
- "keynote",
267
- "article",
268
- "tv",
269
- "database-2",
270
- "calendar"
271
- ];
272
- return K(() => {
273
- d();
274
- }), ($, _) => {
275
- const E = u("el-empty"), F = u("iconify-icon-offline"), O = u("el-card"), V = ue("spinning");
276
- return ce((a(), w("div", null, [
277
- l(O, { class: "mb-2" }, {
278
- header: i(() => [
279
- e("div", { class: "flex items-center justify-between dark:bg-black" }, [
280
- _[2] || (_[2] = e("span", { class: "font-bold" }, "常用菜单", -1)),
281
- e("span", {
282
- class: "text-xs text-gray-400 cursor-pointer",
283
- onClick: m
284
- }, [..._[1] || (_[1] = [
285
- e("span", null, "更多", -1),
286
- e("i", { class: "vxe-icon-arrow-right" }, null, -1)
287
- ])])
288
- ])
289
- ]),
290
- default: i(() => [
291
- e("div", tt, [
292
- c.value.length ? P("", !0) : (a(), N(E, {
293
- key: 0,
294
- "image-size": 100,
295
- description: "快来添加常用菜单吧!",
296
- class: "p-0 pb-3"
297
- })),
298
- e("ul", {
299
- class: de(["p-0 w-full h-full grid grid-rows-1 grid-cols-8 u-dashed-menu", { "grid-rows-2": c.value.length > 8 }])
300
- }, [
301
- (a(!0), w(L, null, A(c.value, (T, D) => (a(), w("li", {
302
- key: T.id,
303
- class: "text-center list-none bg-white",
304
- onClick: (o) => S(T)
305
- }, [
306
- e("div", st, [
307
- e("div", {
308
- class: "rounded-full w-10 h-10 flex items-center justify-center",
309
- style: oe({ backgroundColor: z(D) })
310
- }, [
311
- l(F, {
312
- icon: T.icon || `ri:${y[D]}-line`,
313
- class: "text-2xl text-white"
314
- }, null, 8, ["icon"])
315
- ], 4),
316
- e("span", nt, I(T.menuName), 1)
317
- ])
318
- ], 8, ot))), 128))
319
- ], 2)
320
- ]),
321
- _[3] || (_[3] = e("div", null, null, -1))
322
- ]),
323
- _: 1
324
- }),
325
- r.value ? (a(), N(et, {
326
- key: 0,
327
- "data-source": c.value,
328
- "user-name": B(C).getUserInfo.userName,
329
- icons: y,
330
- onClose: _[0] || (_[0] = (T) => r.value = !1),
331
- onSuccess: d
332
- }, null, 8, ["data-source", "user-name"])) : P("", !0)
333
- ])), [
334
- [V, v.value]
335
- ]);
336
- };
337
- }
338
- }), at = {
339
- class: "flex items-center w-full pl-2 pr-3 pt-1"
340
- }, it = {
341
- class: "pl-1"
342
- }, rt = {
343
- class: "flex items-center w-full pl-2 pr-3 pt-1"
344
- }, ut = {
345
- class: "pl-1"
346
- }, ct = "/uwfl/activiti", dt = /* @__PURE__ */ W({
347
- __name: "home-todo",
348
- setup(R) {
349
- const k = ie(), C = h(null), c = h(null), r = h("todo"), v = h(!1), d = h(!1), m = h(""), S = h(null), z = h(null), y = h({
350
- todo: [],
351
- finish: [],
352
- todoPage: {},
353
- finishPage: {}
354
- }), $ = {
355
- pageNum: 1,
356
- pageSize: 20
357
- }, _ = [{
358
- field: "taskId"
359
- }, {
360
- field: "taskName"
361
- }, {
362
- field: "taskTitle"
363
- }, {
364
- field: "createDate"
365
- }, {
366
- field: "createBy",
367
- title: "message.creator"
368
- }, {
369
- field: "operate",
370
- width: 90,
371
- fixed: "right",
372
- slots: {
373
- default: ({
374
- row: o
375
- }) => [l(L, null, [l(u("ut-button"), {
376
- visible: r.value === "todo",
377
- content: "todoTask",
378
- icon: "ri-send-plane-line",
379
- onTap: () => D(o, "edit")
380
- }, null), l(u("ut-button"), {
381
- visible: r.value === "finish",
382
- content: "look",
383
- status: "info",
384
- onTap: () => D(o)
385
- }, null)])]
386
- }
387
- }], E = {
388
- pageChange({
389
- pageSize: o,
390
- currentPage: n
391
- }) {
392
- y.value[`${r.value}Page`] = {
393
- pageNum: n,
394
- pageSize: o
395
- }, V(r.value, S.value);
396
- }
397
- }, F = () => {
398
- y.value[`${r.value}Page`] = $, V(r.value, S.value);
399
- }, O = () => {
400
- S.value = null, F();
401
- }, V = async (o, n) => {
402
- const s = o === "todo" ? "/listTasksToBeHandle" : "/listHandledTask", t = {
403
- ...y.value[`${r.value}Page`],
404
- searchField: n,
405
- userName: G.get(ae)
406
- }, [f, g] = await X(Y().post(ct + s, t));
407
- if (f) return;
408
- y.value[o] = g.list, y.value[o + "Page"].total = g.total;
409
- const U = o === "todo" ? C : c;
410
- U.value.getInstance().loadData(g.list), U.value.setPagerConfig({
411
- ...y.value[o + "Page"]
412
- });
413
- }, T = async ({
414
- value: o
415
- }) => {
416
- const n = o === "todo" ? C : c, s = _.find((f) => f.field === "operate");
417
- s.width = o === "todo" ? 160 : 80, await se(), n.value.getInstance().reloadColumn(_);
418
- const t = y.value[`${r.value}Page`];
419
- y.value[`${r.value}Page`] = Ve(t) ? t : $, V(r.value, S.value);
420
- }, D = (o, n = "detail") => {
421
- const {
422
- sourceKey: s,
423
- sourceId: t,
424
- processInstId: f
425
- } = o, g = Object.assign({
426
- dataStatus: n,
427
- workflowCode: s,
428
- businessKey: t,
429
- processInstanceId: f
430
- }, o);
431
- sessionStorage.setItem("kPROCESSKEY", JSON.stringify(g)), k.push({
432
- name: "FlowApproval"
433
- });
434
- };
435
- return K(() => {
436
- y.value[`${r.value}Page`] = $, V("todo", null);
437
- }), (o, n) => {
438
- const s = u("vxe-input"), t = u("ut-button"), f = u("ut-grid"), g = u("vxe-tab-pane"), U = u("vxe-tabs"), M = u("vxe-image"), j = u("vxe-modal");
439
- return a(), w("div", null, [l(U, {
440
- modelValue: r.value,
441
- "onUpdate:modelValue": n[2] || (n[2] = (p) => r.value = p),
442
- type: "border-card",
443
- onTabChange: T
444
- }, {
445
- default: i(() => [l(g, {
446
- name: "todo",
447
- title: o.$t("message.t_todoFlow")
448
- }, {
449
- default: i(() => [e("div", at, [l(s, {
450
- modelValue: S.value,
451
- "onUpdate:modelValue": n[0] || (n[0] = (p) => S.value = p),
452
- class: "flex-1 w-full",
453
- placeholder: "请输入任务编码或名称或标题查询"
454
- }, null, 8, ["modelValue"]), e("div", it, [l(t, {
455
- content: "search",
456
- icon: "ri-search-line",
457
- onTap: F
458
- }), l(t, {
459
- content: "reset",
460
- status: "info",
461
- icon: "ri-cycle-line",
462
- onTap: O
463
- })])]), l(f, {
464
- ref_key: "xgrid",
465
- ref: C,
466
- columns: _,
467
- data: y.value.todo,
468
- events: E,
469
- editable: !1,
470
- "need-export": !1,
471
- "proxy-config": {
472
- enabled: !1
473
- },
474
- "toolbar-config": {
475
- enabled: !1
476
- },
477
- height: "360"
478
- }, null, 8, ["data"])]),
479
- _: 1
480
- }, 8, ["title"]), l(g, {
481
- name: "finish",
482
- lazy: "",
483
- title: o.$t("message.t_finishFlow")
484
- }, {
485
- default: i(() => [e("div", rt, [l(s, {
486
- modelValue: S.value,
487
- "onUpdate:modelValue": n[1] || (n[1] = (p) => S.value = p),
488
- class: "flex-1 w-full",
489
- placeholder: "请输入任务编码或名称或标题查询"
490
- }, null, 8, ["modelValue"]), e("div", ut, [l(t, {
491
- content: "search",
492
- icon: "ri-search-line",
493
- onTap: F
494
- }), l(t, {
495
- content: "reset",
496
- status: "info",
497
- icon: "ri-cycle-line",
498
- onTap: O
499
- })])]), l(f, {
500
- ref_key: "ygrid",
501
- ref: c,
502
- columns: _,
503
- data: y.value.finish,
504
- events: E,
505
- editable: !1,
506
- "need-export": !1,
507
- "proxy-config": {
508
- enabled: !1
509
- },
510
- "toolbar-config": {
511
- enabled: !1
512
- },
513
- height: "360"
514
- }, null, 8, ["data"]), n[4] || (n[4] = J(" /> ", -1))]),
515
- _: 1
516
- }, 8, ["title"])]),
517
- _: 1
518
- }, 8, ["modelValue"]), l(j, {
519
- modelValue: v.value,
520
- "onUpdate:modelValue": n[3] || (n[3] = (p) => v.value = p),
521
- loading: d.value,
522
- title: z.value,
523
- height: "360"
524
- }, {
525
- default: i(() => [l(M, {
526
- src: m.value,
527
- height: 520,
528
- width: "75%"
529
- }, null, 8, ["src"])]),
530
- _: 1
531
- }, 8, ["modelValue", "loading", "title"])]);
532
- };
533
- }
534
- }), mt = /* @__PURE__ */ W({
535
- __name: "dynamic-component",
536
- props: {
537
- data: { default: () => ({}) }
538
- },
539
- setup(R) {
540
- const k = R, C = ke().VITE_ROUTER_HISTORY, c = {
541
- compileOptions: {
542
- mode: "module",
543
- // 关键配置
544
- hoistStatic: !0
545
- },
546
- moduleCache: {
547
- vue: re,
548
- "vue-router": Ie,
549
- "await-to-js": X,
550
- "@utogether/utils": ve,
551
- "@utogether/udp-core": we,
552
- "xe-utils": Ne,
553
- dayjs: ne,
554
- echarts: Ee,
555
- "vxe-pc-ui": Me
556
- },
557
- async getFile(v) {
558
- return await (await fetch(v)).text();
559
- },
560
- addStyle(v) {
561
- const d = Object.assign(document.createElement("style"), {
562
- textContent: v
563
- }), m = document.head.getElementsByTagName("style")[0] || null;
564
- document.head.insertBefore(d, m);
565
- }
566
- }, r = me(async () => {
567
- const v = `${window.origin}${C ? "/" + C : ""}${k.data.url}.vue`;
568
- return await Pe(v, c);
569
- });
570
- return (v, d) => (a(), N(B(r)));
571
- }
572
- }), ft = {
573
- class: "dynamic-card w-full"
574
- }, pt = /* @__PURE__ */ W({
575
- __name: "dynamic-card",
576
- props: {
577
- list: {
578
- default: () => []
579
- }
580
- },
581
- setup(R) {
582
- return (k, C) => {
583
- const c = u("vxe-card"), r = u("vxe-col"), v = u("vxe-row");
584
- return a(), w("div", ft, [l(v, {
585
- gutter: [10, 10],
586
- wrap: ""
587
- }, {
588
- default: i(() => [(a(!0), w(L, null, A(R.list, (d) => (a(), N(r, {
589
- key: d.id,
590
- span: d.span
591
- }, {
592
- default: i(() => [l(c, {
593
- title: d.title,
594
- height: d.height,
595
- shadow: ""
596
- }, {
597
- default: i(() => [l(mt, {
598
- data: d
599
- }, null, 8, ["data"])]),
600
- _: 2
601
- }, 1032, ["title", "height"])]),
602
- _: 2
603
- }, 1032, ["span"]))), 128))]),
604
- _: 1
605
- })]);
606
- };
607
- }
608
- }), vt = "2.0.0-beta.27", te = {
609
- version: vt
610
- }, _t = { class: "ut-home m-3" }, gt = {
611
- key: 0,
612
- class: "h-32 mb-4 p-4 flex justify-between items-center bg-white home-page"
613
- }, ht = { class: "flex flex-row items-center flex-[2]" }, yt = { class: "ml-4 text-xs flex-[2]" }, xt = { class: "flex justify-center items-center" }, bt = { class: "py-2 text-gray-500 flex" }, wt = { class: "w-2/3" }, kt = {
614
- key: 0,
615
- class: "text-gray-500 flex"
616
- }, Ct = { class: "w-2/3" }, $t = { class: "flex flex-col" }, It = { class: "text-4xl" }, Nt = { class: "mt-1 ml-3" }, St = { class: "p-3" }, Ut = { class: "p-0 w-full h-full" }, Vt = { class: "flex" }, Tt = { class: "ml-3" }, Mt = { class: "text-blue-600 mr-3" }, Pt = { class: "text-gray-400 text-sm" }, Et = { class: "p-1" }, Dt = /* @__PURE__ */ W({
617
- name: "UdpWelcome",
618
- __name: "su-welcome",
619
- setup(R) {
620
- const k = le(), C = h([]), c = h([]), r = h(!1), v = h({}), d = h({ UserProfile: !1, ToDo: !1, FavorityMenu: !1, Calendar: !1, LoginInfo: !1 }), m = fe(() => k.getUserInfo.name?.slice(0, 1)), { passwordItems: S, logout: z } = De(), y = h(te.version.substring(0, 1) === "2");
621
- let $ = null;
622
- const _ = () => k.isAdminRole ? "系统管理员" : k.getUserInfo?.sysRoles?.map((t) => t.roleName).join(","), E = () => k.isAdminRole ? "【系统管理员】拥有所有组织" : k.getOrglist?.map((t) => t.orgName).join(","), F = () => {
623
- const s = Number(ne().format("HH"));
624
- return s < 12 ? "上午好" : s < 18 ? "下午好" : "晚上好";
625
- }, O = () => {
626
- const s = /* @__PURE__ */ new Date(), t = be.solar2lunar(s.getFullYear(), s.getMonth() + 1, s.getDate()), { gzYear: f, IMonthCn: g, IDayCn: U, cMonth: M, cDay: j, ncWeek: p } = t;
627
- return `${M}月${j}日 ${f}${g}${U} ${p}`;
628
- }, V = () => {
629
- const s = "/upfm/v1/userMonitor", t = { pageSize: 8, pageNum: 1, employeeName: k.getUserInfo?.name };
630
- Y().get(s, t).then((f) => {
631
- C.value = f?.list || [];
632
- });
633
- }, T = async () => {
634
- const s = Y(), [t, f] = await X(
635
- s.get("/upfm/sysHomeConfig", { pageSize: 1e3, pageNum: 1, enabled: "1", isRoleFilter: "Y" })
636
- );
637
- t || f?.list.forEach((g) => {
638
- g.type === "custom" ? c.value.push(g) : d.value[g.code] = !!g.code;
639
- });
640
- }, D = async () => {
641
- const s = q.AES.decrypt(G.get(Z), ee).toString(q.enc.Utf8), t = Q("SU.DEFAULT_PASSWORD")?.find((f) => f.dictCode === "default");
642
- t && t.dictName === s ? (v.value = {
643
- id: k.getUserInfo.id,
644
- oldUserPwd: s
645
- }, r.value = !0, window.clearInterval($)) : t && t.dictName !== s && window.clearInterval($);
646
- };
647
- pe(() => {
648
- if (xe.getItem(Ce).initialPasswordModification === "Y") {
649
- const t = q.AES.decrypt(G.get(Z), ee).toString(q.enc.Utf8), f = Q("SU.DEFAULT_PASSWORD")?.find((g) => g.dictCode === "default");
650
- (!f || f?.dictName === t) && ($ = setInterval(() => {
651
- D();
652
- }, 1e3));
653
- }
654
- }), K(() => {
655
- V(), te.version.substring(0, 1) === "2" ? T() : d.value = { UserProfile: !1, ToDo: !1, FavorityMenu: !1, Calendar: !1, LoginInfo: !0 };
656
- });
657
- const o = [
658
- {
659
- 2023: { 12: { 30: "班", 31: "班" } }
660
- },
661
- {
662
- 2024: {
663
- 1: { 1: "假" },
664
- 2: {
665
- 4: "班",
666
- 10: "假",
667
- 11: "假",
668
- 12: "假",
669
- 13: "假",
670
- 14: "假",
671
- 15: "假",
672
- 16: "假",
673
- 17: "假",
674
- 18: "班"
675
- },
676
- 4: { 4: "假", 5: "假", 6: "假", 7: "班", 28: "班" },
677
- 5: { 1: "假", 2: "假", 3: "假", 4: "假", 5: "假", 11: "班" },
678
- 6: { 8: "假", 9: "假", 10: "假" },
679
- 9: { 15: "假", 16: "假", 17: "假", 14: "班", 29: "班" },
680
- 10: { 1: "假", 2: "假", 3: "假", 4: "假", 5: "假", 6: "假", 7: "假", 12: "班" }
681
- }
682
- }
683
- ], n = [
684
- { name: "元旦", date: "2024-01-01" },
685
- { name: "春节", date: "2024-02-10" },
686
- { name: "清明节", date: "2024-04-04" },
687
- { name: "劳动节", date: "2024-05-01" },
688
- { name: "端午节", date: "2024-06-10" },
689
- { name: "中秋节", date: "2024-09-17" },
690
- { name: "国庆节", date: "2024-10-01" }
691
- ];
692
- return (s, t) => {
693
- const f = u("el-avatar"), g = u("ut-flip-down"), U = u("el-row"), M = u("el-col"), j = u("el-card"), p = u("ut-calendar"), x = u("ut-modal-form");
694
- return a(), w("div", _t, [
695
- d.value.UserProfile ? (a(), w("div", gt, [
696
- e("div", ht, [
697
- e("div", null, [
698
- l(f, {
699
- size: "large",
700
- class: "text-4xl font-bold bg-[var(--el-color-primary)]"
701
- }, {
702
- default: i(() => [
703
- J(I(m.value), 1)
704
- ]),
705
- _: 1
706
- })
707
- ]),
708
- e("div", yt, [
709
- e("div", xt, [
710
- e("span", null, I(F()) + ", " + I(B(k).getUserInfo?.name || "") + ",欢迎回来! ", 1),
711
- t[2] || (t[2] = e("div", {
712
- class: "flex flex-[2] justify-center items-center font-bold",
713
- style: { color: "var(--el-color-primary)" }
714
- }, " 星光不问赶路人,岁月不负有心人,以梦为马,不负韶华! ", -1))
715
- ]),
716
- e("div", bt, [
717
- t[3] || (t[3] = e("span", { class: "inline-block" }, " 所属角色: ", -1)),
718
- e("div", wt, I(_()), 1)
719
- ]),
720
- _() !== "系统管理员" ? (a(), w("div", kt, [
721
- t[4] || (t[4] = e("span", { class: "inline-block" }, " 所属组织: ", -1)),
722
- e("div", Ct, I(E()), 1)
723
- ])) : P("", !0)
724
- ])
725
- ]),
726
- e("div", $t, [
727
- e("span", It, [
728
- l(g, {
729
- "show-days": !1,
730
- "show-labels": !1
731
- })
732
- ]),
733
- e("div", Nt, I(O()), 1)
734
- ])
735
- ])) : P("", !0),
736
- y.value ? (a(), N(U, { key: 1 }, {
737
- default: i(() => [
738
- l(pt, { list: c.value }, null, 8, ["list"])
739
- ]),
740
- _: 1
741
- })) : P("", !0),
742
- l(U, {
743
- class: "m-2",
744
- gutter: 10
745
- }, {
746
- default: i(() => [
747
- d.value.FavorityMenu ? (a(), N(M, {
748
- key: 0,
749
- lg: 24,
750
- md: 24,
751
- class: ""
752
- }, {
753
- default: i(() => [
754
- l(lt)
755
- ]),
756
- _: 1
757
- })) : P("", !0),
758
- d.value.ToDo ? (a(), N(M, {
759
- key: 1,
760
- lg: 24,
761
- md: 24,
762
- class: ""
763
- }, {
764
- default: i(() => [
765
- l(j, null, {
766
- header: i(() => [...t[5] || (t[5] = [
767
- e("div", { class: "font-bold" }, [
768
- e("span", null, "流程审批")
769
- ], -1)
770
- ])]),
771
- default: i(() => [
772
- e("div", null, [
773
- l(dt)
774
- ])
775
- ]),
776
- _: 1
777
- })
778
- ]),
779
- _: 1
780
- })) : P("", !0),
781
- d.value.LoginInfo ? (a(), N(M, {
782
- key: 2,
783
- xl: 16,
784
- lg: 12,
785
- md: 24
786
- }, {
787
- default: i(() => [
788
- l(j, { class: "mb-2" }, {
789
- header: i(() => [...t[6] || (t[6] = [
790
- e("div", { class: "font-bold" }, [
791
- e("span", null, "个人动态")
792
- ], -1)
793
- ])]),
794
- default: i(() => [
795
- e("div", St, [
796
- e("ul", Ut, [
797
- (a(!0), w(L, null, A(C.value, (b) => (a(), w("li", {
798
- key: b.id,
799
- class: "w-full list-none p-2 border-b border-gray-200"
800
- }, [
801
- e("div", Vt, [
802
- e("div", null, [
803
- l(f, { class: "text-base" }, {
804
- default: i(() => [
805
- J(I(m.value), 1)
806
- ]),
807
- _: 1
808
- })
809
- ]),
810
- e("div", Tt, [
811
- e("div", null, [
812
- e("span", Mt, I(b.browser), 1),
813
- e("span", null, I(b.browserVersion || b.platformVersion), 1)
814
- ]),
815
- e("div", Pt, I(b.loginTime), 1)
816
- ])
817
- ])
818
- ]))), 128))
819
- ])
820
- ])
821
- ]),
822
- _: 1
823
- })
824
- ]),
825
- _: 1
826
- })) : P("", !0),
827
- d.value.Calendar ? (a(), N(M, {
828
- key: 3,
829
- xl: 8,
830
- lg: 12,
831
- md: 24,
832
- class: ""
833
- }, {
834
- default: i(() => [
835
- l(j, { class: "mb-2" }, {
836
- header: i(() => [...t[7] || (t[7] = [
837
- e("div", { class: "font-bold" }, [
838
- e("span", null, "日历")
839
- ], -1)
840
- ])]),
841
- default: i(() => [
842
- e("div", Et, [
843
- l(p, {
844
- holidays: o,
845
- "statutory-holiday": n
846
- })
847
- ])
848
- ]),
849
- _: 1
850
- })
851
- ]),
852
- _: 1
853
- })) : P("", !0)
854
- ]),
855
- _: 1
856
- }),
857
- r.value ? (a(), N(x, {
858
- key: 2,
859
- record: v.value,
860
- items: B(S)(),
861
- width: 360,
862
- height: 250,
863
- "modal-options": { showClose: !1 },
864
- "show-cancle-button": !1,
865
- "data-status": "update",
866
- title: s.$t("message.udp.passwordReset"),
867
- url: "/uums/user/updatePwd",
868
- method: "put",
869
- onClose: t[0] || (t[0] = (b) => r.value = !1),
870
- onConfirm: t[1] || (t[1] = (b) => B(z)())
871
- }, null, 8, ["record", "items", "title"])) : P("", !0)
872
- ]);
873
- };
874
- }
875
- }), Gt = /* @__PURE__ */ $e(Dt, [["__scopeId", "data-v-aa57aaaf"]]);
876
- export {
877
- Gt as default
878
- };