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

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 (51) hide show
  1. package/dist/{403-QwBKrRZE.js → 403-D6Wb3JJh.js} +1 -1
  2. package/dist/{404-Cr7MbzNV.js → 404-B_HNbPNV.js} +1 -1
  3. package/dist/{500-B7kCOeIA.js → 500-BMemTTy1.js} +1 -1
  4. package/dist/{AuthorityInfo-Dwml2K4S.js → AuthorityInfo-6wHxwiFM.js} +1 -1
  5. package/dist/{AuthorityPanel-DzPhsPpa.js → AuthorityPanel-OqF_DvXA.js} +1 -1
  6. package/dist/{Company-BhOlvl7Q.js → Company-BLXSfow0.js} +1 -1
  7. package/dist/{CompanyPanel-ByhY5-Sq.js → CompanyPanel-B4kRZ5Cg.js} +1 -1
  8. package/dist/{Department-QvngN63N.js → Department-oFhsa7cd.js} +1 -1
  9. package/dist/{DepartmentPanel-DntGycxr.js → DepartmentPanel-B1UGpu-r.js} +2 -2
  10. package/dist/DepartmentPanel-BL58AdoT.js +2 -0
  11. package/dist/{DesignPanel-BMN4DZ0R.js → DesignPanel-DmkFVw1N.js} +2 -2
  12. package/dist/{DictView-ERFqZ5VD.js → DictView-CC5yMzOq.js} +1 -1
  13. package/dist/{Preview-CVZdnHB1.js → Preview-CAzWxLmP.js} +1 -1
  14. package/dist/{ReportDesign-CjfTyyy_.js → ReportDesign-DwchGG2P.js} +1 -1
  15. package/dist/{ReportQuery-CP-E0Puv.js → ReportQuery-D5jaRJEn.js} +1 -1
  16. package/dist/{ReportQueryFrom-D7SPPAps.js → ReportQueryFrom-CNlmtYey.js} +1 -1
  17. package/dist/{ReportTemplate-DE25zc1f.js → ReportTemplate-CNcTmccs.js} +1 -1
  18. package/dist/{Role-K7v_ZhFE.js → Role-Be8WfdCA.js} +1 -1
  19. package/dist/{RoleAssign-C16fjLaX.js → RoleAssign-CtehGAUf.js} +1 -1
  20. package/dist/{RolePanel-DPCe9k8f.js → RolePanel-CAwITg_q.js} +1 -1
  21. package/dist/{RolePanel-CV-xPlYJ.js → RolePanel-SN0FGFZ7.js} +3 -3
  22. package/dist/{Staff-w2ly4qd0.js → Staff-V2YsNKcj.js} +1 -1
  23. package/dist/{StaffInfo-DPDRpz6F.js → StaffInfo-CKRPW0r4.js} +1 -1
  24. package/dist/{StaffPanel-DI1eTTp9.js → StaffPanel-BxcgMg7u.js} +2 -2
  25. package/dist/{SysUser-BMTX1cJM.js → SysUser-Dxyj5w5m.js} +1 -1
  26. package/dist/{SysUserPanel-xwZdVjdp.js → SysUserPanel-DI6CWcZo.js} +1 -1
  27. package/dist/{SystemMenu-TXhiQZVm.js → SystemMenu-BBHREM8T.js} +2 -2
  28. package/dist/{UserInfo-JQqw8FMT.js → UserInfo-BMVQ0xwE.js} +1 -1
  29. package/dist/{authority-Bi6BGB5B.js → authority-BJFEUdrh.js} +1 -1
  30. package/dist/{childView-CyrcwshT.js → childView-BBjPEraB.js} +1 -1
  31. package/dist/{childView-Bk8OD9bV.js → childView-DNqG2UVm.js} +1 -1
  32. package/dist/core.es.js +5 -5
  33. package/dist/{layoutView-DFUjrqAS.js → layoutView-B6Mx2ERA.js} +237 -237
  34. package/dist/{login-BdCDnuXL.js → login-D_Hjy3Jd.js} +82 -84
  35. package/dist/{lov-view-DkmG4K57.js → lov-view-DM5Nm5tW.js} +1 -1
  36. package/dist/{menuInfo-kp2wNYOp.js → menuInfo-BlOY1KZW.js} +1 -1
  37. package/dist/{su-welcome-JeiovGpe.js → su-welcome-DVD3S_du.js} +4 -4
  38. package/dist/{router-CeluSGiD.js → system-Cm3lyBas.js} +451 -454
  39. package/dist/{udp-core-Dhm-BlAs.js → udp-core-DaQd5CF1.js} +212 -216
  40. package/dist/udp-core.css +1 -1
  41. package/dist/{useDataThemeChange-BCy8JBG7.js → useDataThemeChange-DJ4K3VGp.js} +31 -31
  42. package/dist/{useNav-DY8FkltH.js → useNav-BhOJIdrJ.js} +8 -8
  43. package/package.json +1 -1
  44. package/src/App.vue +5 -0
  45. package/src/components/udp/grid/index.vue +9 -11
  46. package/src/components/udp/utils.ts +420 -414
  47. package/src/main.ts +109 -110
  48. package/src/router/utils.ts +2 -3
  49. package/src/views/login/login-view.vue +297 -301
  50. package/src/views/ulogin/login.vue +3 -32
  51. package/dist/DepartmentPanel-BCXqC39J.js +0 -2
@@ -2,48 +2,35 @@ import { c as e, o as t, r as n, t as r } from "./api-BFNxcxSN.js";
2
2
  import { a as i, c as a, i as o, r as s } from "./contant-Q77dU_V3.js";
3
3
  import { createVNode as c, defineAsyncComponent as ee, defineComponent as l, isProxy as u, resolveComponent as te, toRaw as d } from "vue";
4
4
  import { NProgress as ne, buildHierarchyTree as f, cookies as p, dbstorage as m, http as h, isUrl as g, openLink as re, storageLocal as _ } from "@utogether/utils";
5
- import { clone as v, findIndexOf as ie, findLastIndexOf as ae, isEmpty as oe, isEqual as y, merge as se, toDateString as ce } from "xe-utils";
6
- import { createPinia as le, defineStore as b } from "pinia";
7
- import { useTimeoutFn as ue } from "@vueuse/core";
8
- import { createI18n as de } from "vue-i18n";
9
- import { VxeUI as fe } from "vxe-table";
5
+ import { clone as v, findIndexOf as ie, findLastIndexOf as ae, isEmpty as oe, isEqual as y, merge as b, toDateString as se } from "xe-utils";
6
+ import { createPinia as ce, defineStore as x } from "pinia";
7
+ import { useTimeoutFn as le } from "@vueuse/core";
8
+ import { createI18n as ue } from "vue-i18n";
9
+ import { VxeUI as de } from "vxe-table";
10
10
  //#region \0rolldown/runtime.js
11
- var pe = Object.create, x = Object.defineProperty, me = Object.getOwnPropertyDescriptor, he = Object.getOwnPropertyNames, ge = Object.getPrototypeOf, _e = Object.prototype.hasOwnProperty, ve = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports), S = (e, t) => {
11
+ var fe = Object.create, S = Object.defineProperty, pe = Object.getOwnPropertyDescriptor, me = Object.getOwnPropertyNames, he = Object.getPrototypeOf, ge = Object.prototype.hasOwnProperty, _e = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports), C = (e, t) => {
12
12
  let n = {};
13
- for (var r in e) x(n, r, {
13
+ for (var r in e) S(n, r, {
14
14
  get: e[r],
15
15
  enumerable: !0
16
16
  });
17
- return t || x(n, Symbol.toStringTag, { value: "Module" }), n;
18
- }, ye = (e, t, n, r) => {
19
- if (t && typeof t == "object" || typeof t == "function") for (var i = he(t), a = 0, o = i.length, s; a < o; a++) s = i[a], !_e.call(e, s) && s !== n && x(e, s, {
17
+ return t || S(n, Symbol.toStringTag, { value: "Module" }), n;
18
+ }, ve = (e, t, n, r) => {
19
+ if (t && typeof t == "object" || typeof t == "function") for (var i = me(t), a = 0, o = i.length, s; a < o; a++) s = i[a], !ge.call(e, s) && s !== n && S(e, s, {
20
20
  get: ((e) => t[e]).bind(null, s),
21
- enumerable: !(r = me(t, s)) || r.enumerable
21
+ enumerable: !(r = pe(t, s)) || r.enumerable
22
22
  });
23
23
  return e;
24
- }, be = (e, t, n) => (n = e == null ? {} : pe(ge(e)), ye(t || !e || !e.__esModule ? x(n, "default", {
24
+ }, ye = (e, t, n) => (n = e == null ? {} : fe(he(e)), ve(t || !e || !e.__esModule ? S(n, "default", {
25
25
  value: e,
26
26
  enumerable: !0
27
- }) : n, e)), C = le();
28
- function xe(e) {
29
- e.use(C);
30
- }
31
- //#endregion
32
- //#region src/layout/types.ts
33
- var w = [{
34
- path: "/welcome",
35
- name: "UdpWelcome",
36
- meta: {
37
- title: "message.udp.home",
38
- icon: "home-filled"
39
- }
40
- }], T = (e) => {
27
+ }) : n, e)), w = (e) => {
41
28
  let t = e.indexOf("windows nt 5.1") > -1 || e.indexOf("windows xp") > -1;
42
29
  if (e.indexOf("windows xp"), t) return "WinXP";
43
30
  if (e.indexOf("windows nt 6.1") > -1 || e.indexOf("windows 7") > -1) return "Win7";
44
31
  if (e.indexOf("windows nt6.2") > -1 || e.indexOf("windows 8") > -1) return "Win8";
45
32
  if (e.indexOf("windows nt 10.0") > -1 || e.indexOf("windows 10") > -1) return "Win10";
46
- }, E = (e) => {
33
+ }, be = (e) => {
47
34
  let t = null, n = {
48
35
  Chrome: e.indexOf("chrome") > -1 && e.indexOf("safari") > -1,
49
36
  Firefox: e.indexOf("firefox") > -1,
@@ -59,44 +46,81 @@ var w = [{
59
46
  browser: t,
60
47
  browserVersion: r
61
48
  };
62
- }, D = {
63
- onBeforeLogined: () => {},
64
- onLogined: () => {},
65
- onBeforeLogout: () => {},
66
- onAfterLogout: () => {}
67
- }, Se = () => {
68
- D.onBeforeLogined();
69
- }, Ce = () => {
70
- D.onLogined();
71
- }, we = () => {
72
- D.onBeforeLogout();
73
- }, Te = () => {
74
- D.onAfterLogout();
75
- }, Ee = (e, t) => {
76
- let n = [];
77
- for (let r of e) r[t] && n.push(r[t]);
78
- return Array.from(new Set(n));
79
- }, O = (e) => {
80
- let t = e.replace("#", "").match(/../g);
81
- for (let e = 0; e < 3; e++) t[e] = parseInt(t[e], 16);
82
- return t;
83
- }, k = (e, t, n) => {
84
- let r = [
85
- e.toString(16),
86
- t.toString(16),
87
- n.toString(16)
88
- ];
89
- for (let e = 0; e < 3; e++) r[e].length == 1 && (r[e] = `0${r[e]}`);
90
- return `#${r.join("")}`;
91
- }, De = (e, t) => {
92
- let n = O(e);
93
- for (let e = 0; e < 3; e++) n[e] = Math.floor(n[e] * (1 - t));
94
- return k(n[0], n[1], n[2]);
95
- }, Oe = (e, t) => {
96
- let n = O(e);
97
- for (let e = 0; e < 3; e++) n[e] = Math.floor((255 - n[e]) * t + n[e]);
98
- return k(n[0], n[1], n[2]);
99
- }, ke = /* @__PURE__ */ S({ default: () => je }), Ae = {
49
+ }, xe = () => h.get(`${r()}/uums/roleMenu`), Se = () => h.get(`${r()}/upfm/v1/lov/selectAll`), Ce = (e) => h.get(`${r()}/uums/roleMenu/userMenu`, e), we = (e) => {
50
+ let t = navigator.userAgent.toLowerCase(), { browser: n, browserVersion: i } = be(t), a = {
51
+ userName: e,
52
+ loginTime: se(/* @__PURE__ */ new Date()),
53
+ browser: n,
54
+ browserVersion: i,
55
+ operatingSystem: w(t)
56
+ };
57
+ return h.request("post", `${r()}/upfm/v1/userMonitor`, a);
58
+ }, T = ce();
59
+ function Te(e) {
60
+ e.use(T);
61
+ }
62
+ //#endregion
63
+ //#region src/layout/types.ts
64
+ var E = [{
65
+ path: "/welcome",
66
+ name: "UdpWelcome",
67
+ meta: {
68
+ title: "message.udp.home",
69
+ icon: "home-filled"
70
+ }
71
+ }], D = x("udp-multiTags", {
72
+ state: () => ({
73
+ multiTags: _.getItem(`${e()}configure`)?.multiTagsCache ? _.getItem(`${e()}tags`) : [...E, ...Q().flatteningRoutes.filter((e) => e?.meta?.fixedTag)],
74
+ multiTagsCache: _.getItem(`${e()}configure`)?.multiTagsCache
75
+ }),
76
+ getters: { getMultiTagsCache(e) {
77
+ return e.multiTagsCache;
78
+ } },
79
+ actions: {
80
+ multiTagsCacheChange(t) {
81
+ this.multiTagsCache = t, t ? _.setItem(`${e()}tags`, this.multiTags) : _.removeItem(`${e()}tags`);
82
+ },
83
+ tagsCache(t) {
84
+ this.getMultiTagsCache && _.setItem(`${e()}tags`, t);
85
+ },
86
+ handleTags(e, t, n) {
87
+ switch (e) {
88
+ case "equal":
89
+ this.multiTags = t, this.tagsCache(this.multiTags);
90
+ break;
91
+ case "push":
92
+ {
93
+ let e = t;
94
+ if (e?.meta?.hiddenTag || g(e?.name) || e?.meta?.title?.length === 0) return;
95
+ let n = e.path;
96
+ if (this.multiTags.some((t) => t.path === n && y(t?.query, e?.query) && y(t?.params, e?.params))) return;
97
+ let r = e?.meta?.dynamicLevel ?? -1;
98
+ if (r > 0 && this.multiTags.filter((e) => e?.path === n).length >= r) {
99
+ let e = this.multiTags.findIndex((e) => e?.path === n);
100
+ e !== -1 && this.multiTags.splice(e, 1);
101
+ }
102
+ this.multiTags.push(t), this.tagsCache(this.multiTags);
103
+ }
104
+ break;
105
+ case "splice":
106
+ if (n) this.multiTags.splice(n?.startIndex, n?.length);
107
+ else {
108
+ let e = this.multiTags.findIndex((e) => e.path === t);
109
+ if (e === -1) return;
110
+ this.multiTags.splice(e, 1);
111
+ }
112
+ return this.tagsCache(this.multiTags), this.multiTags;
113
+ case "slice": return this.multiTags.slice(-1);
114
+ }
115
+ }
116
+ }
117
+ });
118
+ function O() {
119
+ return D(T);
120
+ }
121
+ //#endregion
122
+ //#region src/plugins/i18n/module/u-report.ts
123
+ var Ee = /* @__PURE__ */ C({ default: () => De }), k = {
100
124
  zh: { message: {
101
125
  reportCode: "报表编号",
102
126
  tempPath: "模版路径",
@@ -142,10 +166,10 @@ var w = [{
142
166
  defaultValue: "Default Value",
143
167
  isRequired: "Required"
144
168
  } }
145
- }, je = {
146
- zh: { ...Ae.zh.message },
147
- en: { ...Ae.en.message }
148
- }, Me = /* @__PURE__ */ S({ default: () => Pe }), Ne = [{
169
+ }, De = {
170
+ zh: { ...k.zh.message },
171
+ en: { ...k.en.message }
172
+ }, Oe = /* @__PURE__ */ C({ default: () => ke }), A = [{
149
173
  zh: { message: {
150
174
  taskName: "任务名称",
151
175
  processInstId: "任务编码",
@@ -187,10 +211,10 @@ var w = [{
187
211
  description: "description",
188
212
  flowDesign: "Flow Design"
189
213
  } }
190
- }], Pe = {
191
- zh: { ...Object.assign({}, ...Ne.map((e) => e.zh.message)) },
192
- en: { ...Object.assign({}, ...Ne.map((e) => e.en.message)) }
193
- }, Fe = /* @__PURE__ */ S({ default: () => Ie }), Ie = {
214
+ }], ke = {
215
+ zh: { ...Object.assign({}, ...A.map((e) => e.zh.message)) },
216
+ en: { ...Object.assign({}, ...A.map((e) => e.en.message)) }
217
+ }, Ae = /* @__PURE__ */ C({ default: () => je }), je = {
194
218
  zh: { message: {
195
219
  msgtemplateCode: "模板代码",
196
220
  msgtemplateName: "模板名称",
@@ -204,7 +228,7 @@ var w = [{
204
228
  msgServiceName: "消息服务名称"
205
229
  } },
206
230
  en: { message: { xx: "xxx" } }
207
- }, Le = {
231
+ }, Me = {
208
232
  udp: {
209
233
  dark: "深色",
210
234
  light: "浅色",
@@ -570,7 +594,7 @@ var w = [{
570
594
  userInfo: "用户信息",
571
595
  layoutRole: "【{name}】角色列表"
572
596
  }
573
- }, Re = {
597
+ }, Ne = {
574
598
  udp: {
575
599
  dark: "深色",
576
600
  light: "浅色",
@@ -849,170 +873,38 @@ var w = [{
849
873
  dictDispose: "dictDispose",
850
874
  isSearch: "isSearch",
851
875
  isCol: "isCol"
852
- }, ze = /* @__PURE__ */ Object.assign({
853
- "./module/u-report.ts": ke,
854
- "./module/u-workflow.ts": Me,
855
- "./module/umsg.ts": Fe
856
- }), A = {};
857
- for (let e in ze) A[e.replace(/(\.\/module\/|\.ts)/g, "")] = ze[e].default;
858
- var Be = Object.keys(A).filter((e) => A[e]).map((e) => A[e]), Ve = {
876
+ }, j = /* @__PURE__ */ Object.assign({
877
+ "./module/u-report.ts": Ee,
878
+ "./module/u-workflow.ts": Oe,
879
+ "./module/umsg.ts": Ae
880
+ }), M = {};
881
+ for (let e in j) M[e.replace(/(\.\/module\/|\.ts)/g, "")] = j[e].default;
882
+ var N = Object.keys(M).filter((e) => M[e]).map((e) => M[e]), Pe = {
859
883
  zh: {
860
884
  ..._.getItem(i),
861
- message: se(Le, ...Be.map((e) => e.zh.message))
885
+ message: b(Me, ...N.map((e) => e.zh.message))
862
886
  },
863
887
  en: {
864
888
  ..._.getItem(o),
865
- message: Object.assign(Re, ...Be.map((e) => e.en.message))
889
+ message: Object.assign(Ne, ...N.map((e) => e.en.message))
866
890
  }
867
- }, j = null;
868
- function He(t, n = { messages: {} }) {
869
- j = de({
891
+ }, P = null;
892
+ function Fe(t, n = { messages: {} }) {
893
+ P = ue({
870
894
  legacy: !1,
871
895
  locale: _.getItem(`${e()}locale`)?.locale ?? "zh",
872
896
  fallbackLocale: "en",
873
897
  globalInjection: !0,
874
- messages: se(Ve, n.messages)
875
- }), fe.setLanguage("zh-CN"), t.use(j);
876
- }
877
- var M = () => j;
878
- function Ue(e = "", t = !0) {
879
- return e ? typeof e == "object" ? e[j.global.locale.value] : t ? j.global.t.call(j.global, e) : e : "";
898
+ messages: b(Pe, n.messages)
899
+ }), de.setLanguage("zh-CN"), t.use(P);
880
900
  }
881
- //#endregion
882
- //#region src/store/modules/system.ts
883
- var We = b("udp-system", {
884
- state: () => ({
885
- baseURL: "",
886
- userInfo: {},
887
- systemInfo: {},
888
- dataDict: {},
889
- sysConfig: {},
890
- menui18n: {},
891
- i18n: {},
892
- dicts: [],
893
- orgList: [],
894
- invOrgList: [],
895
- homeMenus: [],
896
- sessionKey: "",
897
- orgId: "",
898
- userName: "",
899
- organizationId: "",
900
- password: "",
901
- isAdminRole: !1
902
- }),
903
- getters: {
904
- getBaseURL() {
905
- return this.baseURL;
906
- },
907
- getUserInfo() {
908
- return this.userInfo;
909
- },
910
- getSysConfig() {
911
- return this.sysConfig;
912
- },
913
- getEmployee() {
914
- return this.employee;
915
- },
916
- getSessionKey() {
917
- return this.sessionKey;
918
- },
919
- getMenuI18n() {
920
- return this.menui18n;
921
- },
922
- getI18n() {
923
- return this.i18n;
924
- },
925
- getOrglist() {
926
- return this.orgList;
927
- },
928
- getOrgId() {
929
- return this.orgId;
930
- },
931
- getOrganizationId() {
932
- return this.organizationId;
933
- },
934
- getDataDict() {
935
- return this.dataDict;
936
- },
937
- getUserName() {
938
- return this.userName;
939
- },
940
- getAdminRole(e) {
941
- return e.isAdminRole;
942
- },
943
- getPassword(e) {
944
- return e.password;
945
- },
946
- getHomeMenus(e) {
947
- return e.homeMenus;
948
- },
949
- getOrganizationCode(e) {
950
- return e.invOrgList?.find((t) => t.id === e.organizationId)?.organizationCode;
951
- },
952
- getOrg(e) {
953
- return e.orgList.find((t) => t.id === e.orgId);
954
- }
955
- },
956
- actions: {
957
- setBaseURL(e) {
958
- this.sessionKey = e;
959
- },
960
- setSessionKey(e) {
961
- this.sessionKey = e.access_token || e;
962
- },
963
- setSysConfig(e) {
964
- this.sysConfig = e;
965
- },
966
- setOrgId(e) {
967
- this.orgId = e;
968
- },
969
- setOrganizationId(e) {
970
- this.organizationId = e;
971
- },
972
- setMenuI18n(e) {
973
- this.menui18n = e;
974
- },
975
- setI18n(e) {
976
- this.i18n = e;
977
- },
978
- setUserName(e) {
979
- this.userName = e;
980
- },
981
- setHomeMenus(e) {
982
- this.homeMenus = e;
983
- },
984
- setInvOrgList(e) {
985
- this.invOrgList = e;
986
- },
987
- setOrgList(e) {
988
- this.orgList = e;
989
- },
990
- setPassword(e) {
991
- this.password = e;
992
- },
993
- setDict(e) {
994
- this.dicts = e, e?.forEach((e) => {
995
- this.dataDict[e.dictCode] = e;
996
- }), _.setItem("kLov", this.dataDict);
997
- },
998
- setSystemInfo(e) {
999
- this.systemInfo = e;
1000
- let t = e.employeeList?.length ? e.employeeList[0] : "";
1001
- this.userInfo = e.user || {}, this.employee = Object.assign({}, t, e.user), this.orgId = e.orgId, this.organizationId = e.organizationId, this.orgList = e.orgList;
1002
- let n = {
1003
- orgId: e.orgId,
1004
- organizationId: e.organizationId
1005
- };
1006
- p.set("kCookies_param", JSON.stringify(n)), this.isAdminRole = this.employee.sysRoles.some((e) => e.roleCode === "admin" || ["管理员"].includes(e.roleName)), q().setAuthButton(e.dataMenus);
1007
- }
1008
- }
1009
- });
1010
- function N() {
1011
- return We(C);
901
+ var F = () => P;
902
+ function Ie(e = "", t = !0) {
903
+ return e ? typeof e == "object" ? e[P.global.locale.value] : t ? P.global.t.call(P.global, e) : e : "";
1012
904
  }
1013
905
  //#endregion
1014
906
  //#region src/router/createComponent.tsx
1015
- function Ge(e, t) {
907
+ function Le(e, t) {
1016
908
  return /* @__PURE__ */ l({
1017
909
  name: e,
1018
910
  components: { asyncComponent: t },
@@ -1022,17 +914,8 @@ function Ge(e, t) {
1022
914
  });
1023
915
  }
1024
916
  //#endregion
1025
- //#region src/api/user.ts
1026
- var Ke = () => h.get(`${r()}/uums/roleMenu`), P = () => h.get(`${r()}/upfm/v1/lov/selectAll`), F = (e) => h.get(`${r()}/uums/roleMenu/userMenu`, e), qe = (e) => {
1027
- let t = navigator.userAgent.toLowerCase(), { browser: n, browserVersion: i } = E(t), a = {
1028
- userName: e,
1029
- loginTime: ce(/* @__PURE__ */ new Date()),
1030
- browser: n,
1031
- browserVersion: i,
1032
- operatingSystem: T(t)
1033
- };
1034
- return h.request("post", `${r()}/upfm/v1/userMonitor`, a);
1035
- }, Je = () => import("./layoutView-DFUjrqAS.js"), Ye = () => import("./frameView-Di0zJZUR.js"), I = /* @__PURE__ */ function(e) {
917
+ //#region src/router/utils.ts
918
+ var Re = () => import("./layoutView-B6Mx2ERA.js"), ze = () => import("./frameView-Di0zJZUR.js"), I = /* @__PURE__ */ function(e) {
1036
919
  return e.Link = "3", e.Menu = "5", e.Lowcode = "10", e;
1037
920
  }(I || {});
1038
921
  function L(e) {
@@ -1044,7 +927,7 @@ function R(e) {
1044
927
  let t = v(e, !0).filter((e) => e && e.meta?.showLink !== !1);
1045
928
  return t.forEach((e) => e.children &&= R(e.children)), t;
1046
929
  }
1047
- function Xe(e, t, n = "path") {
930
+ function Be(e, t, n = "path") {
1048
931
  function r(e, t, i) {
1049
932
  for (let a = 0; a < e.length; a++) {
1050
933
  let o = e[a];
@@ -1064,15 +947,15 @@ function z(e, t) {
1064
947
  for (let r = 0; r < t.length; r++) if (t[r].children instanceof Array && t[r].children.length > 0 && (n = z(e, t[r].children), n)) return u(n) ? d(n) : n;
1065
948
  return null;
1066
949
  }
1067
- function Ze() {
1068
- $.hasRoute("pathMatch") || $.addRoute({
950
+ function Ve() {
951
+ X.hasRoute("pathMatch") || X.addRoute({
1069
952
  path: "/:pathMatch(.*)",
1070
953
  name: "pathMatch",
1071
954
  redirect: "/error/404"
1072
955
  });
1073
956
  }
1074
- function Qe() {
1075
- let e = M();
957
+ function He() {
958
+ let e = F();
1076
959
  e.global?.mergeLocaleMessage("zh", W.zh), e.global?.mergeLocaleMessage("en", W.en), _.setItem("menu_zh", W.zh), _.setItem("menu_en", W.en);
1077
960
  }
1078
961
  function B(e) {
@@ -1082,31 +965,31 @@ function B(e) {
1082
965
  let n = [], r = [];
1083
966
  e[t].children.forEach((e) => {
1084
967
  e.menuCategory === "1" ? r.push(e) : n.push(e);
1085
- }), e[t].children = r, N().setHomeMenus(n);
968
+ }), e[t].children = r, $().setHomeMenus(n);
1086
969
  }
1087
970
  let n = v(K(e), !0);
1088
- Qe(), V(n).map((e) => {
1089
- let { options: t } = $;
1090
- t.routes[0].children.findIndex((t) => t.path === e.path) === -1 && ($.options.routes[0].children.push(e), L($.options.routes[0].children), $.hasRoute(e?.name) || $.addRoute(e));
971
+ He(), V(n).map((e) => {
972
+ let { options: t } = X;
973
+ t.routes[0].children.findIndex((t) => t.path === e.path) === -1 && (X.options.routes[0].children.push(e), L(X.options.routes[0].children), X.hasRoute(e?.name) || X.addRoute(e));
1091
974
  });
1092
975
  }
1093
- q().changeSetting(e), Y().getMultiTagsCache || Y().handleTags("equal", [...w, ...q().flatteningRoutes.filter((e) => e?.meta?.fixedTag)]), Ze();
976
+ Q().changeSetting(e), O().getMultiTagsCache || O().handleTags("equal", [...E, ...Q().flatteningRoutes.filter((e) => e?.meta?.fixedTag)]), Ve();
1094
977
  }
1095
- async function $e(e) {
978
+ async function Ue(e) {
1096
979
  let r = [], i = `U-${e}-ROUTES`;
1097
- return t().CachingAsyncRoutes && await m.getItem(i).then((e) => r = e), P().then((e) => N().setDict(e)), await Ke().then(async (e) => {
1098
- N().setSystemInfo(e), await n().get("/uums/cusOrganization", {
980
+ return t().CachingAsyncRoutes && await m.getItem(i).then((e) => r = e), await xe().then(async (e) => {
981
+ $().setSystemInfo(e), await n().get("/uums/cusOrganization", {
1099
982
  pageSize: 100,
1100
983
  pageNum: 1,
1101
984
  orgId: e.orgId
1102
- }).then((e) => N().setInvOrgList(e?.list || []));
985
+ }).then((e) => $().setInvOrgList(e?.list || []));
1103
986
  }), r?.length ? new Promise((t) => {
1104
- B(r), F({ userName: e }).then((e) => {
987
+ B(r), Ce({ userName: e }).then((e) => {
1105
988
  m.setItem(i, e);
1106
- }), t($);
989
+ }), t(X);
1107
990
  }) : new Promise((t) => {
1108
- F({ userName: e }).then((e) => {
1109
- B(v(e, !0)), m.setItem(i, e), t($);
991
+ Ce({ userName: e }).then((e) => {
992
+ B(v(e, !0)), m.setItem(i, e), t(X);
1110
993
  });
1111
994
  });
1112
995
  }
@@ -1133,28 +1016,28 @@ function H(e) {
1133
1016
  function U({ name: e }, t) {
1134
1017
  switch (t) {
1135
1018
  case "add":
1136
- q().cacheOperate({
1019
+ Q().cacheOperate({
1137
1020
  mode: "add",
1138
1021
  name: e
1139
1022
  });
1140
1023
  break;
1141
1024
  case "delete":
1142
- q().cacheOperate({
1025
+ Q().cacheOperate({
1143
1026
  mode: "delete",
1144
1027
  name: e
1145
1028
  });
1146
1029
  break;
1147
1030
  case "refresh":
1148
- q().cacheOperate({
1031
+ Q().cacheOperate({
1149
1032
  mode: "refresh",
1150
1033
  name: e
1151
1034
  });
1152
1035
  break;
1153
- default: q().cacheOperate({
1036
+ default: Q().cacheOperate({
1154
1037
  mode: "delete",
1155
1038
  name: e
1156
- }), ue(() => {
1157
- q().cacheOperate({
1039
+ }), le(() => {
1040
+ Q().cacheOperate({
1158
1041
  mode: "add",
1159
1042
  name: e
1160
1043
  });
@@ -1165,7 +1048,7 @@ var W = {
1165
1048
  zh: {},
1166
1049
  en: {}
1167
1050
  }, G = [], K = (e) => {
1168
- let t = _t();
1051
+ let t = ot();
1169
1052
  if (!e || !e.length) return;
1170
1053
  let n = Object.keys(t);
1171
1054
  for (let r = 0; r < e.length; r++) {
@@ -1182,11 +1065,11 @@ var W = {
1182
1065
  permissionCode: s,
1183
1066
  extraIcon: c,
1184
1067
  frameSrc: l
1185
- }), W.zh[i.i18nField] = i.menuName || i.menuNameEn, W.en[i.i18nField] = i.menuNameEn || i.menuName, i.name = i.menuCode || i.name, i.path = i.menuPath || i.path, !i.parentId) i.component = Je;
1186
- else if (i.meta?.frameSrc) i.component = Ye;
1068
+ }), W.zh[i.i18nField] = i.menuName || i.menuNameEn, W.en[i.i18nField] = i.menuNameEn || i.menuName, i.name = i.menuCode || i.name, i.path = i.menuPath || i.path, !i.parentId) i.component = Re;
1069
+ else if (i.meta?.frameSrc) i.component = ze;
1187
1070
  else if (i.menuCategory === I.Lowcode) {
1188
1071
  let e = n.findIndex((e) => e.includes("lowcode-contain"));
1189
- i.component = Ge(i.name, ee(() => import(
1072
+ i.component = Le(i.name, ee(() => import(
1190
1073
  /* @vite-ignore */
1191
1074
  n[e]
1192
1075
  ))), Object.assign(i.meta, { moduleType: i.moduleType });
@@ -1198,151 +1081,37 @@ var W = {
1198
1081
  }
1199
1082
  return e;
1200
1083
  };
1201
- function et(e, t = !0) {
1202
- let n = Y().multiTags.findIndex((t) => {
1084
+ function We(e, t = !0) {
1085
+ let n = O().multiTags.findIndex((t) => {
1203
1086
  if (e.query) {
1204
1087
  if (e.path === t.path) return e.query === t.query;
1205
1088
  } else return e.path === t.path;
1206
1089
  });
1207
- if (Y().handleTags("splice", "", {
1090
+ if (O().handleTags("splice", "", {
1208
1091
  startIndex: n,
1209
1092
  length: 1
1210
1093
  }), U(e.matched, "delete"), t) {
1211
- let e = Y().handleTags("slice");
1212
- $.push({
1094
+ let e = O().handleTags("slice");
1095
+ X.push({
1213
1096
  path: e[0].path,
1214
1097
  query: e[0].query
1215
1098
  });
1216
1099
  }
1217
1100
  }
1218
- function tt(e) {
1101
+ function Ge(e) {
1219
1102
  return e?.children && e.children.length > 1 ? e.redirect ? e.children.filter((t) => t.path === e.redirect)[0] : e.children[0] : e;
1220
1103
  }
1221
- function nt(e = !1) {
1222
- let t = tt(q().wholeMenus[0]?.children[0]);
1223
- return e && Y().handleTags("push", t), t;
1104
+ function Ke(e = !1) {
1105
+ let t = Ge(Q().wholeMenus[0]?.children[0]);
1106
+ return e && O().handleTags("push", t), t;
1224
1107
  }
1225
- function rt() {
1108
+ function qe() {
1226
1109
  return G;
1227
1110
  }
1228
- //#endregion
1229
- //#region src/store/modules/permission.ts
1230
- var it = b("udp-permission", {
1231
- state: () => ({
1232
- constantMenus: dt,
1233
- wholeMenus: [],
1234
- menusTree: [],
1235
- flatteningRoutes: [],
1236
- buttonAuth: [],
1237
- cachePageList: []
1238
- }),
1239
- getters: { getButtonAuth() {
1240
- return this.buttonAuth;
1241
- } },
1242
- actions: {
1243
- asyncActionRoutes(e = []) {
1244
- if (this.wholeMenus.length > 0) return;
1245
- let t = ae(e, (e) => e.menuCode === "SysHome"), n = v(this.constantMenus, !0);
1246
- if (t !== -1) {
1247
- let n = this.constantMenus.find((e) => e.name === "home");
1248
- e[t].children && n.children.push(...e[t].children), e.splice(t, 1);
1249
- }
1250
- this.wholeMenus = R(L(this.constantMenus.concat(e))), this.flatteningRoutes = V(this.constantMenus.concat(e)), this.menusTree = v(this.wholeMenus, !0), this.constantMenus = n;
1251
- },
1252
- async changeSetting(e) {
1253
- await this.asyncActionRoutes(e);
1254
- },
1255
- setAuthButton(e) {
1256
- this.buttonAuth = e;
1257
- },
1258
- setWholeMenus(e) {
1259
- this.wholeMenus = e;
1260
- },
1261
- clearCache() {
1262
- let e = this.cachePageList.length, t = Ee(Y().multiTags, "name");
1263
- for (; e > 0;) t.findIndex((t) => t === this.cachePageList[e - 1]) === -1 && this.cachePageList.splice(this.cachePageList.indexOf(this.cachePageList[e - 1]), 1), e--;
1264
- },
1265
- cacheOperate({ mode: e, name: t }) {
1266
- let n = this.cachePageList.findIndex((e) => e === t);
1267
- switch (e) {
1268
- case "refresh":
1269
- this.cachePageList = this.cachePageList.filter((e) => e !== t), this.clearCache();
1270
- break;
1271
- case "add":
1272
- this.cachePageList.push(t);
1273
- break;
1274
- case "delete":
1275
- n !== -1 && this.cachePageList.splice(n, 1), this.clearCache();
1276
- break;
1277
- case "reset":
1278
- this.cachePageList = [];
1279
- break;
1280
- }
1281
- },
1282
- clearAllCachePage() {
1283
- this.wholeMenus = [], this.menusTree = [], this.buttonAuth = [], this.cachePageList = [];
1284
- }
1285
- }
1286
- });
1287
- function q() {
1288
- return it(C);
1289
- }
1290
- //#endregion
1291
- //#region src/store/modules/multiTags.ts
1292
- var J = b("udp-multiTags", {
1293
- state: () => ({
1294
- multiTags: _.getItem(`${e()}configure`)?.multiTagsCache ? _.getItem(`${e()}tags`) : [...w, ...q().flatteningRoutes.filter((e) => e?.meta?.fixedTag)],
1295
- multiTagsCache: _.getItem(`${e()}configure`)?.multiTagsCache
1296
- }),
1297
- getters: { getMultiTagsCache(e) {
1298
- return e.multiTagsCache;
1299
- } },
1300
- actions: {
1301
- multiTagsCacheChange(t) {
1302
- this.multiTagsCache = t, t ? _.setItem(`${e()}tags`, this.multiTags) : _.removeItem(`${e()}tags`);
1303
- },
1304
- tagsCache(t) {
1305
- this.getMultiTagsCache && _.setItem(`${e()}tags`, t);
1306
- },
1307
- handleTags(e, t, n) {
1308
- switch (e) {
1309
- case "equal":
1310
- this.multiTags = t, this.tagsCache(this.multiTags);
1311
- break;
1312
- case "push":
1313
- {
1314
- let e = t;
1315
- if (e?.meta?.hiddenTag || g(e?.name) || e?.meta?.title?.length === 0) return;
1316
- let n = e.path;
1317
- if (this.multiTags.some((t) => t.path === n && y(t?.query, e?.query) && y(t?.params, e?.params))) return;
1318
- let r = e?.meta?.dynamicLevel ?? -1;
1319
- if (r > 0 && this.multiTags.filter((e) => e?.path === n).length >= r) {
1320
- let e = this.multiTags.findIndex((e) => e?.path === n);
1321
- e !== -1 && this.multiTags.splice(e, 1);
1322
- }
1323
- this.multiTags.push(t), this.tagsCache(this.multiTags);
1324
- }
1325
- break;
1326
- case "splice":
1327
- if (n) this.multiTags.splice(n?.startIndex, n?.length);
1328
- else {
1329
- let e = this.multiTags.findIndex((e) => e.path === t);
1330
- if (e === -1) return;
1331
- this.multiTags.splice(e, 1);
1332
- }
1333
- return this.tagsCache(this.multiTags), this.multiTags;
1334
- case "slice": return this.multiTags.slice(-1);
1335
- }
1336
- }
1337
- }
1338
- });
1339
- function Y() {
1340
- return J(C);
1341
- }
1342
- var at = {
1111
+ var Je = {
1343
1112
  path: "/",
1344
1113
  name: "home",
1345
- component: () => import("./layoutView-DFUjrqAS.js"),
1114
+ component: () => import("./layoutView-B6Mx2ERA.js"),
1346
1115
  redirect: "/welcome",
1347
1116
  meta: {
1348
1117
  icon: "home-filled",
@@ -1352,16 +1121,16 @@ var at = {
1352
1121
  children: [{
1353
1122
  path: "/welcome",
1354
1123
  name: "UdpWelcome",
1355
- component: () => import("./su-welcome-JeiovGpe.js"),
1124
+ component: () => import("./su-welcome-DVD3S_du.js"),
1356
1125
  meta: {
1357
1126
  title: "message.udp.home",
1358
1127
  keepAlive: !0
1359
1128
  }
1360
1129
  }]
1361
- }, ot = {
1130
+ }, Ye = {
1362
1131
  path: "/error",
1363
1132
  name: "error",
1364
- component: () => import("./layoutView-DFUjrqAS.js"),
1133
+ component: () => import("./layoutView-B6Mx2ERA.js"),
1365
1134
  redirect: "/error/403",
1366
1135
  meta: {
1367
1136
  showLink: !1,
@@ -1372,14 +1141,14 @@ var at = {
1372
1141
  children: [{
1373
1142
  path: "/error/403",
1374
1143
  name: "403",
1375
- component: () => import("./403-QwBKrRZE.js"),
1144
+ component: () => import("./403-D6Wb3JJh.js"),
1376
1145
  meta: { title: "message.udp.fourZeroThree" }
1377
1146
  }]
1378
- }, X = [
1147
+ }, q = [
1379
1148
  {
1380
1149
  path: "/login",
1381
1150
  name: "login",
1382
- component: () => import("./login-BdCDnuXL.js"),
1151
+ component: () => import("./login-D_Hjy3Jd.js"),
1383
1152
  meta: {
1384
1153
  title: "message.udp.login",
1385
1154
  showLink: !1
@@ -1388,7 +1157,7 @@ var at = {
1388
1157
  {
1389
1158
  path: "/error/404",
1390
1159
  name: "404",
1391
- component: () => import("./404-Cr7MbzNV.js"),
1160
+ component: () => import("./404-B_HNbPNV.js"),
1392
1161
  meta: {
1393
1162
  title: "message.udp.fourZeroFour",
1394
1163
  showLink: !1
@@ -1397,7 +1166,7 @@ var at = {
1397
1166
  {
1398
1167
  path: "/error/500",
1399
1168
  name: "500",
1400
- component: () => import("./500-B7kCOeIA.js"),
1169
+ component: () => import("./500-BMemTTy1.js"),
1401
1170
  meta: {
1402
1171
  title: "message.udp.five",
1403
1172
  showLink: !1
@@ -1406,7 +1175,7 @@ var at = {
1406
1175
  {
1407
1176
  path: "/redirect",
1408
1177
  name: "redirect",
1409
- component: () => import("./layoutView-DFUjrqAS.js"),
1178
+ component: () => import("./layoutView-B6Mx2ERA.js"),
1410
1179
  meta: {
1411
1180
  icon: "home-filled",
1412
1181
  title: "message.udp.home",
@@ -1419,8 +1188,8 @@ var at = {
1419
1188
  component: () => import("./redirect-N0k4tImU.js")
1420
1189
  }]
1421
1190
  }
1422
- ], st = {
1423
- component: () => import("./layoutView-DFUjrqAS.js"),
1191
+ ], Xe = {
1192
+ component: () => import("./layoutView-B6Mx2ERA.js"),
1424
1193
  path: "/utask",
1425
1194
  redirect: "/utask/task/flow-task",
1426
1195
  meta: {
@@ -1438,36 +1207,36 @@ var at = {
1438
1207
  activePath: "/uflow/index"
1439
1208
  }
1440
1209
  }]
1441
- }, ct = /* @__PURE__ */ Object.assign({
1442
- "../views/organization/company/Company.vue": () => import("./Company-BhOlvl7Q.js"),
1443
- "../views/organization/company/CompanyPanel.vue": () => import("./CompanyPanel-ByhY5-Sq.js").then((e) => e.n),
1444
- "../views/organization/department/Department.vue": () => import("./Department-QvngN63N.js"),
1445
- "../views/organization/department/DepartmentPanel.vue": () => import("./DepartmentPanel-BCXqC39J.js"),
1210
+ }, Ze = /* @__PURE__ */ Object.assign({
1211
+ "../views/organization/company/Company.vue": () => import("./Company-BLXSfow0.js"),
1212
+ "../views/organization/company/CompanyPanel.vue": () => import("./CompanyPanel-B4kRZ5Cg.js").then((e) => e.n),
1213
+ "../views/organization/department/Department.vue": () => import("./Department-oFhsa7cd.js"),
1214
+ "../views/organization/department/DepartmentPanel.vue": () => import("./DepartmentPanel-BL58AdoT.js"),
1446
1215
  "../views/organization/inv-org/InvOrganization.vue": () => import("./InvOrganization-BwMmD8Ua.js"),
1447
1216
  "../views/organization/org/Org.vue": () => import("./Org-HgnOWubi.js"),
1448
- "../views/organization/staff/Staff.vue": () => import("./Staff-w2ly4qd0.js"),
1449
- "../views/organization/staff/StaffInfo.vue": () => import("./StaffInfo-DPDRpz6F.js").then((e) => e.n),
1450
- "../views/organization/staff/StaffPanel.vue": () => import("./StaffPanel-DI1eTTp9.js").then((e) => e.n),
1217
+ "../views/organization/staff/Staff.vue": () => import("./Staff-V2YsNKcj.js"),
1218
+ "../views/organization/staff/StaffInfo.vue": () => import("./StaffInfo-CKRPW0r4.js").then((e) => e.n),
1219
+ "../views/organization/staff/StaffPanel.vue": () => import("./StaffPanel-BxcgMg7u.js").then((e) => e.n),
1451
1220
  "../views/system/cron/cron-task.vue": () => import("./cron-task-BpUDKEAU.js"),
1452
1221
  "../views/system/layout/layout-home.vue": () => import("./layout-home-BVp7vYLR.js"),
1453
- "../views/system/menu/AuthorityPanel.vue": () => import("./AuthorityPanel-DzPhsPpa.js").then((e) => e.n),
1454
- "../views/system/menu/SystemMenu.vue": () => import("./SystemMenu-TXhiQZVm.js"),
1455
- "../views/system/menu/menuInfo.vue": () => import("./menuInfo-kp2wNYOp.js").then((e) => e.n),
1456
- "../views/system/role/AuthorityInfo.vue": () => import("./AuthorityInfo-Dwml2K4S.js").then((e) => e.n),
1457
- "../views/system/role/Role.vue": () => import("./Role-K7v_ZhFE.js"),
1458
- "../views/system/role/RolePanel.vue": () => import("./RolePanel-CV-xPlYJ.js").then((e) => e.n),
1459
- "../views/system/role/UserInfo.vue": () => import("./UserInfo-JQqw8FMT.js").then((e) => e.n),
1460
- "../views/system/role-assign/RoleAssign.vue": () => import("./RoleAssign-C16fjLaX.js"),
1461
- "../views/system/role-assign/RolePanel.vue": () => import("./RolePanel-DPCe9k8f.js").then((e) => e.n),
1222
+ "../views/system/menu/AuthorityPanel.vue": () => import("./AuthorityPanel-OqF_DvXA.js").then((e) => e.n),
1223
+ "../views/system/menu/SystemMenu.vue": () => import("./SystemMenu-BBHREM8T.js"),
1224
+ "../views/system/menu/menuInfo.vue": () => import("./menuInfo-BlOY1KZW.js").then((e) => e.n),
1225
+ "../views/system/role/AuthorityInfo.vue": () => import("./AuthorityInfo-6wHxwiFM.js").then((e) => e.n),
1226
+ "../views/system/role/Role.vue": () => import("./Role-Be8WfdCA.js"),
1227
+ "../views/system/role/RolePanel.vue": () => import("./RolePanel-SN0FGFZ7.js").then((e) => e.n),
1228
+ "../views/system/role/UserInfo.vue": () => import("./UserInfo-BMVQ0xwE.js").then((e) => e.n),
1229
+ "../views/system/role-assign/RoleAssign.vue": () => import("./RoleAssign-CtehGAUf.js"),
1230
+ "../views/system/role-assign/RolePanel.vue": () => import("./RolePanel-CAwITg_q.js").then((e) => e.n),
1462
1231
  "../views/system/sys/sys-config.vue": () => import("./sys-config-Ddb3vBpK.js"),
1463
- "../views/system/sysUser/SysUser.vue": () => import("./SysUser-BMTX1cJM.js"),
1464
- "../views/system/sysUser/SysUserPanel.vue": () => import("./SysUserPanel-xwZdVjdp.js").then((e) => e.n),
1232
+ "../views/system/sysUser/SysUser.vue": () => import("./SysUser-Dxyj5w5m.js"),
1233
+ "../views/system/sysUser/SysUserPanel.vue": () => import("./SysUserPanel-DI6CWcZo.js").then((e) => e.n),
1465
1234
  "../views/uapp/pda/pda-app.vue": () => import("./pda-app-CA7YI37u.js"),
1466
1235
  "../views/udev/coderule/code-rule.vue": () => import("./code-rule-QFrhqFrW.js"),
1467
- "../views/udev/dict/DictView.vue": () => import("./DictView-ERFqZ5VD.js"),
1468
- "../views/udev/dict/childView.vue": () => import("./childView-Bk8OD9bV.js").then((e) => e.n),
1469
- "../views/udev/lov/childView.vue": () => import("./childView-CyrcwshT.js").then((e) => e.n),
1470
- "../views/udev/lov/lov-view.vue": () => import("./lov-view-DkmG4K57.js"),
1236
+ "../views/udev/dict/DictView.vue": () => import("./DictView-CC5yMzOq.js"),
1237
+ "../views/udev/dict/childView.vue": () => import("./childView-DNqG2UVm.js").then((e) => e.n),
1238
+ "../views/udev/lov/childView.vue": () => import("./childView-BBjPEraB.js").then((e) => e.n),
1239
+ "../views/udev/lov/lov-view.vue": () => import("./lov-view-DM5Nm5tW.js"),
1471
1240
  "../views/udev/wx/wecom-push.vue": () => import("./wecom-push-kWkAVRCj.js"),
1472
1241
  "../views/ufile/aggregation/File.vue": () => import("./File-WJXjGYxr.js"),
1473
1242
  "../views/ufile/file/water-mark.vue": () => import("./water-mark-WDQZ9YqB.js"),
@@ -1475,49 +1244,49 @@ var at = {
1475
1244
  "../views/upms/interface/log-out.vue": () => import("./log-out-dYfqvzy6.js"),
1476
1245
  "../views/upms/user/login-log.vue": () => import("./login-log-CJak-ANA.js"),
1477
1246
  "../views/urpt/dataSet/DataSet.vue": () => import("./DataSet-CuGZcKC-.js"),
1478
- "../views/urpt/design/DesignPanel.vue": () => import("./DesignPanel-BMN4DZ0R.js").then((e) => e.n),
1479
- "../views/urpt/design/Preview.vue": () => import("./Preview-CVZdnHB1.js").then((e) => e.n),
1480
- "../views/urpt/design/ReportDesign.vue": () => import("./ReportDesign-CjfTyyy_.js"),
1481
- "../views/urpt/query/ReportQuery.vue": () => import("./ReportQuery-CP-E0Puv.js"),
1482
- "../views/urpt/query/ReportQueryFrom.vue": () => import("./ReportQueryFrom-D7SPPAps.js").then((e) => e.n),
1247
+ "../views/urpt/design/DesignPanel.vue": () => import("./DesignPanel-DmkFVw1N.js").then((e) => e.n),
1248
+ "../views/urpt/design/Preview.vue": () => import("./Preview-CAzWxLmP.js").then((e) => e.n),
1249
+ "../views/urpt/design/ReportDesign.vue": () => import("./ReportDesign-DwchGG2P.js"),
1250
+ "../views/urpt/query/ReportQuery.vue": () => import("./ReportQuery-D5jaRJEn.js"),
1251
+ "../views/urpt/query/ReportQueryFrom.vue": () => import("./ReportQueryFrom-CNlmtYey.js").then((e) => e.n),
1483
1252
  "../views/urpt/report-request/ReportDefine.vue": () => import("./ReportDefine-BgLM-Rjk.js"),
1484
1253
  "../views/urpt/static-resource/resource.vue": () => import("./resource-CfQTHFcs.js"),
1485
- "../views/urpt/template/ReportTemplate.vue": () => import("./ReportTemplate-DE25zc1f.js")
1486
- }), lt = X, Z = [
1487
- at,
1488
- ot,
1489
- st
1490
- ], ut = H(V(f(L(Z)))), dt = L(Z).concat(...X), ft = Object.keys(X).map((e) => X[e].path), pt = /* @__PURE__ */ new Set();
1491
- function mt() {
1492
- pt.clear();
1254
+ "../views/urpt/template/ReportTemplate.vue": () => import("./ReportTemplate-CNcTmccs.js")
1255
+ }), Qe = q, J = [
1256
+ Je,
1257
+ Ye,
1258
+ Xe
1259
+ ], $e = H(V(f(L(J)))), et = L(J).concat(...q), tt = Object.keys(q).map((e) => q[e].path), nt = /* @__PURE__ */ new Set();
1260
+ function rt() {
1261
+ nt.clear();
1493
1262
  }
1494
- function ht() {
1495
- $.getRoutes().forEach((e) => {
1263
+ function it() {
1264
+ X.getRoutes().forEach((e) => {
1496
1265
  let { name: t, meta: n } = e;
1497
- t && $.hasRoute(t) && n?.backstage && ($.removeRoute(t), $.options.routes = H(V(f(L(Z)))));
1498
- }), q().clearAllCachePage(), mt();
1266
+ t && X.hasRoute(t) && n?.backstage && (X.removeRoute(t), X.options.routes = H(V(f(L(J)))));
1267
+ }), Q().clearAllCachePage(), rt();
1499
1268
  }
1500
- var Q = null, $ = null;
1501
- function gt(e, t) {
1502
- Q = e, $ = t, Object.assign(Q, ct);
1269
+ var Y = null, X = null;
1270
+ function at(e, t) {
1271
+ Y = e, X = t, Object.assign(Y, Ze);
1503
1272
  }
1504
- function _t() {
1505
- return Q;
1273
+ function ot() {
1274
+ return Y;
1506
1275
  }
1507
- var vt = ["/login"], yt = (e, t, n) => {
1276
+ var st = ["/login"], ct = (e, t, n) => {
1508
1277
  let r = p.get(s), i = g(e?.name);
1509
1278
  function a() {
1510
- vt.includes(e.fullPath) ? n(t.fullPath) : n();
1279
+ st.includes(e.fullPath) ? n(t.fullPath) : n();
1511
1280
  }
1512
1281
  if (t?.name && t?.name !== "login") {
1513
1282
  let t = e.matched.find((t) => t.path === e.path || t.name === e.name && e.params)?.components;
1514
1283
  i ? (re(e?.name), ne?.done()) : t?.default || e.name === "redirect" ? a() : n({ path: "/error/404" });
1515
- } else q().wholeMenus.length === 0 && $e(r).then((t) => {
1516
- if (!Y().getMultiTagsCache) {
1517
- let { path: n } = e, r = z(n, ie(X, (e) => e.path === n) === -1 ? t.options.routes[0].children : t.options.routes);
1284
+ } else Q().wholeMenus.length === 0 && Ue(r).then((t) => {
1285
+ if (!O().getMultiTagsCache) {
1286
+ let { path: n } = e, r = z(n, ie(q, (e) => e.path === n) === -1 ? t.options.routes[0].children : t.options.routes);
1518
1287
  if (r && r.meta?.title) {
1519
1288
  let { path: e, name: t, meta: n } = r;
1520
- Y().handleTags("push", {
1289
+ O().handleTags("push", {
1521
1290
  path: e,
1522
1291
  name: t,
1523
1292
  meta: n
@@ -1526,6 +1295,234 @@ var vt = ["/login"], yt = (e, t, n) => {
1526
1295
  }
1527
1296
  oe(e.name) && t.push(e.fullPath);
1528
1297
  }), t.fullPath === "/" && e.fullPath === "/login" && !e.query?.tokenExpire ? (e.path = "/welcome", e.fullPath = "/welcome", e.name = "UdpWelcome") : t.fullPath === "/" && e.path === "/workflow/approve/index" && (e.path = "/welcome", e.fullPath = "/welcome", e.name = "UdpWelcome", e.query = {}), a();
1529
- };
1298
+ }, Z = {
1299
+ onBeforeLogined: () => {},
1300
+ onLogined: () => {},
1301
+ onBeforeLogout: () => {},
1302
+ onAfterLogout: () => {}
1303
+ }, lt = () => {
1304
+ Z.onBeforeLogined();
1305
+ }, ut = () => {
1306
+ Z.onLogined();
1307
+ }, dt = () => {
1308
+ Z.onBeforeLogout();
1309
+ }, ft = () => {
1310
+ Z.onAfterLogout();
1311
+ }, pt = (e, t) => {
1312
+ let n = [];
1313
+ for (let r of e) r[t] && n.push(r[t]);
1314
+ return Array.from(new Set(n));
1315
+ }, mt = (e) => {
1316
+ let t = e.replace("#", "").match(/../g);
1317
+ for (let e = 0; e < 3; e++) t[e] = parseInt(t[e], 16);
1318
+ return t;
1319
+ }, ht = (e, t, n) => {
1320
+ let r = [
1321
+ e.toString(16),
1322
+ t.toString(16),
1323
+ n.toString(16)
1324
+ ];
1325
+ for (let e = 0; e < 3; e++) r[e].length == 1 && (r[e] = `0${r[e]}`);
1326
+ return `#${r.join("")}`;
1327
+ }, gt = (e, t) => {
1328
+ let n = mt(e);
1329
+ for (let e = 0; e < 3; e++) n[e] = Math.floor(n[e] * (1 - t));
1330
+ return ht(n[0], n[1], n[2]);
1331
+ }, _t = (e, t) => {
1332
+ let n = mt(e);
1333
+ for (let e = 0; e < 3; e++) n[e] = Math.floor((255 - n[e]) * t + n[e]);
1334
+ return ht(n[0], n[1], n[2]);
1335
+ }, vt = x("udp-permission", {
1336
+ state: () => ({
1337
+ constantMenus: et,
1338
+ wholeMenus: [],
1339
+ menusTree: [],
1340
+ flatteningRoutes: [],
1341
+ buttonAuth: [],
1342
+ cachePageList: []
1343
+ }),
1344
+ getters: { getButtonAuth() {
1345
+ return this.buttonAuth;
1346
+ } },
1347
+ actions: {
1348
+ asyncActionRoutes(e = []) {
1349
+ if (this.wholeMenus.length > 0) return;
1350
+ let t = ae(e, (e) => e.menuCode === "SysHome"), n = v(this.constantMenus, !0);
1351
+ if (t !== -1) {
1352
+ let n = this.constantMenus.find((e) => e.name === "home");
1353
+ e[t].children && n.children.push(...e[t].children), e.splice(t, 1);
1354
+ }
1355
+ this.wholeMenus = R(L(this.constantMenus.concat(e))), this.flatteningRoutes = V(this.constantMenus.concat(e)), this.menusTree = v(this.wholeMenus, !0), this.constantMenus = n;
1356
+ },
1357
+ async changeSetting(e) {
1358
+ await this.asyncActionRoutes(e);
1359
+ },
1360
+ setAuthButton(e) {
1361
+ this.buttonAuth = e;
1362
+ },
1363
+ setWholeMenus(e) {
1364
+ this.wholeMenus = e;
1365
+ },
1366
+ clearCache() {
1367
+ let e = this.cachePageList.length, t = pt(O().multiTags, "name");
1368
+ for (; e > 0;) t.findIndex((t) => t === this.cachePageList[e - 1]) === -1 && this.cachePageList.splice(this.cachePageList.indexOf(this.cachePageList[e - 1]), 1), e--;
1369
+ },
1370
+ cacheOperate({ mode: e, name: t }) {
1371
+ let n = this.cachePageList.findIndex((e) => e === t);
1372
+ switch (e) {
1373
+ case "refresh":
1374
+ this.cachePageList = this.cachePageList.filter((e) => e !== t), this.clearCache();
1375
+ break;
1376
+ case "add":
1377
+ this.cachePageList.push(t);
1378
+ break;
1379
+ case "delete":
1380
+ n !== -1 && this.cachePageList.splice(n, 1), this.clearCache();
1381
+ break;
1382
+ case "reset":
1383
+ this.cachePageList = [];
1384
+ break;
1385
+ }
1386
+ },
1387
+ clearAllCachePage() {
1388
+ this.wholeMenus = [], this.menusTree = [], this.buttonAuth = [], this.cachePageList = [];
1389
+ }
1390
+ }
1391
+ });
1392
+ function Q() {
1393
+ return vt(T);
1394
+ }
1395
+ //#endregion
1396
+ //#region src/store/modules/system.ts
1397
+ var yt = x("udp-system", {
1398
+ state: () => ({
1399
+ baseURL: "",
1400
+ userInfo: {},
1401
+ systemInfo: {},
1402
+ dataDict: {},
1403
+ sysConfig: {},
1404
+ menui18n: {},
1405
+ i18n: {},
1406
+ dicts: [],
1407
+ orgList: [],
1408
+ invOrgList: [],
1409
+ homeMenus: [],
1410
+ sessionKey: "",
1411
+ orgId: "",
1412
+ userName: "",
1413
+ organizationId: "",
1414
+ password: "",
1415
+ isAdminRole: !1
1416
+ }),
1417
+ getters: {
1418
+ getBaseURL() {
1419
+ return this.baseURL;
1420
+ },
1421
+ getUserInfo() {
1422
+ return this.userInfo;
1423
+ },
1424
+ getSysConfig() {
1425
+ return this.sysConfig;
1426
+ },
1427
+ getEmployee() {
1428
+ return this.employee;
1429
+ },
1430
+ getSessionKey() {
1431
+ return this.sessionKey;
1432
+ },
1433
+ getMenuI18n() {
1434
+ return this.menui18n;
1435
+ },
1436
+ getI18n() {
1437
+ return this.i18n;
1438
+ },
1439
+ getOrglist() {
1440
+ return this.orgList;
1441
+ },
1442
+ getOrgId() {
1443
+ return this.orgId;
1444
+ },
1445
+ getOrganizationId() {
1446
+ return this.organizationId;
1447
+ },
1448
+ getDataDict() {
1449
+ return this.dataDict;
1450
+ },
1451
+ getUserName() {
1452
+ return this.userName;
1453
+ },
1454
+ getAdminRole(e) {
1455
+ return e.isAdminRole;
1456
+ },
1457
+ getPassword(e) {
1458
+ return e.password;
1459
+ },
1460
+ getHomeMenus(e) {
1461
+ return e.homeMenus;
1462
+ },
1463
+ getOrganizationCode(e) {
1464
+ return e.invOrgList?.find((t) => t.id === e.organizationId)?.organizationCode;
1465
+ },
1466
+ getOrg(e) {
1467
+ return e.orgList.find((t) => t.id === e.orgId);
1468
+ }
1469
+ },
1470
+ actions: {
1471
+ setBaseURL(e) {
1472
+ this.sessionKey = e;
1473
+ },
1474
+ setSessionKey(e) {
1475
+ this.sessionKey = e.access_token || e;
1476
+ },
1477
+ setSysConfig(e) {
1478
+ this.sysConfig = e;
1479
+ },
1480
+ setOrgId(e) {
1481
+ this.orgId = e;
1482
+ },
1483
+ setOrganizationId(e) {
1484
+ this.organizationId = e;
1485
+ },
1486
+ setMenuI18n(e) {
1487
+ this.menui18n = e;
1488
+ },
1489
+ setI18n(e) {
1490
+ this.i18n = e;
1491
+ },
1492
+ setUserName(e) {
1493
+ this.userName = e;
1494
+ },
1495
+ setHomeMenus(e) {
1496
+ this.homeMenus = e;
1497
+ },
1498
+ setInvOrgList(e) {
1499
+ this.invOrgList = e;
1500
+ },
1501
+ setOrgList(e) {
1502
+ this.orgList = e;
1503
+ },
1504
+ setPassword(e) {
1505
+ this.password = e;
1506
+ },
1507
+ setDict(e) {
1508
+ this.dicts = e, e?.forEach((e) => {
1509
+ this.dataDict[e.dictCode] = e;
1510
+ }), _.setItem("kLov", this.dataDict);
1511
+ },
1512
+ setSystemInfo(e) {
1513
+ this.systemInfo = e;
1514
+ let t = e.employeeList?.length ? e.employeeList[0] : "";
1515
+ this.userInfo = e.user || {}, this.employee = Object.assign({}, t, e.user), this.orgId = e.orgId, this.organizationId = e.organizationId, this.orgList = e.orgList;
1516
+ let n = {
1517
+ orgId: e.orgId,
1518
+ organizationId: e.organizationId
1519
+ };
1520
+ p.set("kCookies_param", JSON.stringify(n)), this.isAdminRole = this.employee.sysRoles.some((e) => e.roleCode === "admin" || ["管理员"].includes(e.roleName)), Q().setAuthButton(e.dataMenus);
1521
+ }
1522
+ }
1523
+ });
1524
+ function $() {
1525
+ return yt(T);
1526
+ }
1530
1527
  //#endregion
1531
- export { E as A, De as C, Se as D, Te as E, ve as F, S as I, be as L, w as M, xe as N, we as O, C as P, He as S, D as T, P as _, $ as a, M as b, J as c, et as d, z as f, U as g, nt as h, ht as i, T as j, Ce as k, Y as l, rt as m, ft as n, yt as o, Xe as p, lt as r, gt as s, ut as t, q as u, qe as v, Oe as w, Ue as x, N as y };
1528
+ export { T as A, F as C, O as D, D as E, _e as F, C as I, ye as L, we as M, be as N, E as O, w as P, U as S, Fe as T, We as _, Z as a, qe as b, dt as c, tt as d, Qe as f, at as g, ct as h, _t as i, Se as j, Te as k, ut as l, X as m, Q as n, ft as o, it as p, gt as r, lt as s, $ as t, $e as u, z as v, Ie as w, Ke as x, Be as y };