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

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 (161) hide show
  1. package/dist/403-gdcH0-Bo.js +65 -0
  2. package/dist/404-Se2SF97M.js +65 -0
  3. package/dist/500-B6j9AqLo.js +67 -0
  4. package/dist/AuthorityInfo-CQ8ydZvr.js +4 -0
  5. package/dist/AuthorityInfo.vue_vue_type_style_index_0_lang-C4NRvS8p.js +100 -0
  6. package/dist/AuthorityPanel-lVnZ5bce.js +4 -0
  7. package/dist/AuthorityPanel.vue_vue_type_style_index_0_lang-nsfhDlvV.js +113 -0
  8. package/dist/Company-BzSVBSC4.js +25 -0
  9. package/dist/CompanyPanel-DBjZB4aJ.js +204 -0
  10. package/dist/DataSet-iBHzs75s.js +147 -0
  11. package/dist/Department-BkgseHo8.js +25 -0
  12. package/dist/DepartmentPanel-Sen93_2M.js +249 -0
  13. package/dist/DesignPanel-pqDcwaFC.js +4 -0
  14. package/dist/DesignPanel.vue_vue_type_style_index_0_lang-BjtYyEw7.js +1013 -0
  15. package/dist/DictView-CJLG4LlE.js +110 -0
  16. package/dist/InvOrganization-D0Jq1IAa.js +74 -0
  17. package/dist/Org-CO_1WT39.js +39 -0
  18. package/dist/Preview-DLI4Bwel.js +48 -0
  19. package/dist/ReportDefine-Cw46OnJ_.js +10 -0
  20. package/dist/ReportDesign-D4sHTXT7.js +165 -0
  21. package/dist/ReportQuery-DtOCvQSN.js +74 -0
  22. package/dist/ReportQueryFrom-QjL-ETPq.js +4 -0
  23. package/dist/ReportQueryFrom.vue_vue_type_style_index_0_lang-Dj9ne87n.js +177 -0
  24. package/dist/ReportTemplate-BxAgc_Aj.js +161 -0
  25. package/dist/Role-Df77BBD-.js +25 -0
  26. package/dist/RoleAssign-BrunouML.js +26 -0
  27. package/dist/RolePanel-DSVwqhiD.js +4 -0
  28. package/dist/RolePanel-HLA7XBlN.js +4 -0
  29. package/dist/RolePanel.vue_vue_type_script_setup_true_lang-CKlbqRa5.js +132 -0
  30. package/dist/RolePanel.vue_vue_type_script_setup_true_lang-CN0rUxKz.js +152 -0
  31. package/dist/ScrollPanel.vue_vue_type_style_index_0_lang-D_FeSXKv.js +99 -0
  32. package/dist/Staff-BeL1xcRf.js +26 -0
  33. package/dist/StaffInfo-CIfnltyX.js +4 -0
  34. package/dist/StaffInfo.vue_vue_type_script_setup_true_lang-DbLFwWfG.js +107 -0
  35. package/dist/StaffPanel-BV2CHWac.js +4 -0
  36. package/dist/StaffPanel.vue_vue_type_script_setup_true_lang-CvT-Vp2G.js +153 -0
  37. package/dist/SysUser-DPfNvthk.js +15 -0
  38. package/dist/SysUserPanel-CoLKYlQE.js +4 -0
  39. package/dist/SysUserPanel.vue_vue_type_script_setup_true_lang-lcO3Cjbq.js +353 -0
  40. package/dist/SystemMenu-sdj1dRDA.js +156 -0
  41. package/dist/UserInfo-CTX4hhFl.js +4 -0
  42. package/dist/UserInfo.vue_vue_type_style_index_0_lang-ClhCd_8z.js +160 -0
  43. package/dist/await-to-js.es5-Bv3Eu4mi.js +10 -0
  44. package/dist/childView-BDmWwJO5.js +4 -0
  45. package/dist/childView-Dx3ACtHa.js +4 -0
  46. package/dist/childView.vue_vue_type_style_index_0_lang-CfKq_0FN.js +183 -0
  47. package/dist/childView.vue_vue_type_style_index_0_lang-DxZNtkhd.js +143 -0
  48. package/dist/code-rule-cvN4gYC_.js +148 -0
  49. package/dist/core.es.js +24 -6
  50. package/dist/cron-task-B0TkxFdp.js +135 -0
  51. package/dist/flow-task-PoDnE_kE.js +10 -0
  52. package/dist/frameView-5cy5BSgS.js +43 -0
  53. package/dist/img/minicolors.png +0 -0
  54. package/dist/index-C5WRTwvI.js +3006 -0
  55. package/dist/layout-home-DrARg-3o.js +232 -0
  56. package/dist/layoutView-25v_ngk5.js +3191 -0
  57. package/dist/log-in-Bmz5Uhbt.js +116 -0
  58. package/dist/log-out-B-8m3oNj.js +130 -0
  59. package/dist/login-Cmp2RvvW.js +217 -0
  60. package/dist/login-log-CVvRgZSu.js +70 -0
  61. package/dist/lov-view-BATtzw2X.js +99 -0
  62. package/dist/menuInfo-BIvrE7nm.js +4 -0
  63. package/dist/menuInfo.vue_vue_type_style_index_0_lang-B6USomit.js +360 -0
  64. package/dist/pda-app-CzHVyeEa.js +707 -0
  65. package/dist/redirect-DTz8GSnv.js +15 -0
  66. package/dist/resource-Y5lGB38n.js +97 -0
  67. package/dist/su-welcome-CXA6OzBw.js +878 -0
  68. package/dist/sys-config-CqO03LeC.js +385 -0
  69. package/dist/udp-core.css +1 -2
  70. package/dist/useNav-C-rCgubt.js +84 -0
  71. package/dist/utogether-MlnyYtNS.js +4 -0
  72. package/dist/wecom-push-B75FLee5.js +70 -0
  73. package/index.ts +3 -2
  74. package/package.json +1 -1
  75. package/src/App.vue +79 -78
  76. package/src/api/index.ts +1 -1
  77. package/src/components/SuQrcode/src/index.tsx +231 -236
  78. package/src/layout/components/lay-panel/index.vue +2 -6
  79. package/src/layout/components/lay-search/components/SearchModal.vue +7 -3
  80. package/src/main.ts +25 -23
  81. package/src/router/index.ts +156 -187
  82. package/src/store/modules/system.ts +7 -0
  83. package/src/style/vxetable.scss +372 -364
  84. package/src/utils/authority/index.ts +46 -29
  85. package/src/utils/udp/http/index.ts +115 -64
  86. package/src/utils/udp/http/types.d.ts +15 -14
  87. package/src/views/login/login-view.vue +4 -21
  88. package/src/views/organization/department/DepartmentPanel.vue +3 -4
  89. package/src/views/system/sys/sys-config.vue +344 -344
  90. package/src/views/uhome/components/home-todo.vue +179 -178
  91. package/src/views/ulogin/login.vue +5 -9
  92. package/tsconfig.json +2 -3
  93. package/types/global.d.ts +234 -234
  94. package/vite.config.ts +2 -1
  95. package/dist/403-D6Wb3JJh.js +0 -72
  96. package/dist/404-B_HNbPNV.js +0 -72
  97. package/dist/500-BMemTTy1.js +0 -77
  98. package/dist/AuthorityInfo-6wHxwiFM.js +0 -91
  99. package/dist/AuthorityPanel-OqF_DvXA.js +0 -98
  100. package/dist/Company-BLXSfow0.js +0 -21
  101. package/dist/CompanyPanel-B4kRZ5Cg.js +0 -199
  102. package/dist/DataSet-CuGZcKC-.js +0 -141
  103. package/dist/Department-oFhsa7cd.js +0 -21
  104. package/dist/DepartmentPanel-B1UGpu-r.js +0 -242
  105. package/dist/DepartmentPanel-BL58AdoT.js +0 -2
  106. package/dist/DesignPanel-DmkFVw1N.js +0 -1196
  107. package/dist/DictView-CC5yMzOq.js +0 -100
  108. package/dist/File-WJXjGYxr.js +0 -89
  109. package/dist/InvOrganization-BwMmD8Ua.js +0 -76
  110. package/dist/Org-HgnOWubi.js +0 -76
  111. package/dist/Preview-CAzWxLmP.js +0 -45
  112. package/dist/ReIcon-DecitXmg.js +0 -413
  113. package/dist/ReportDefine-BgLM-Rjk.js +0 -10
  114. package/dist/ReportDesign-DwchGG2P.js +0 -158
  115. package/dist/ReportQuery-D5jaRJEn.js +0 -101
  116. package/dist/ReportQueryFrom-CNlmtYey.js +0 -198
  117. package/dist/ReportTemplate-CNcTmccs.js +0 -162
  118. package/dist/Role-Be8WfdCA.js +0 -21
  119. package/dist/RoleAssign-CtehGAUf.js +0 -22
  120. package/dist/RolePanel-CAwITg_q.js +0 -131
  121. package/dist/RolePanel-SN0FGFZ7.js +0 -176
  122. package/dist/ScrollPanel-DW30pGz1.js +0 -88
  123. package/dist/Staff-V2YsNKcj.js +0 -22
  124. package/dist/StaffInfo-CKRPW0r4.js +0 -149
  125. package/dist/StaffPanel-BxcgMg7u.js +0 -143
  126. package/dist/SysUser-Dxyj5w5m.js +0 -12
  127. package/dist/SysUserPanel-DI6CWcZo.js +0 -365
  128. package/dist/SystemMenu-BBHREM8T.js +0 -154
  129. package/dist/UserInfo-BMVQ0xwE.js +0 -194
  130. package/dist/_plugin-vue_export-helper-C6QCLu9I.js +0 -8
  131. package/dist/api-BFNxcxSN.js +0 -30
  132. package/dist/authority-BJFEUdrh.js +0 -20
  133. package/dist/await-to-js.es5-DkWYmPXW.js +0 -10
  134. package/dist/childView-BBjPEraB.js +0 -184
  135. package/dist/childView-DNqG2UVm.js +0 -181
  136. package/dist/code-rule-QFrhqFrW.js +0 -151
  137. package/dist/contant-Q77dU_V3.js +0 -4
  138. package/dist/cron-task-BpUDKEAU.js +0 -131
  139. package/dist/flow-task-DAc2NrDU.js +0 -11
  140. package/dist/frameView-Di0zJZUR.js +0 -39
  141. package/dist/layout-home-BVp7vYLR.js +0 -239
  142. package/dist/layoutView-B6Mx2ERA.js +0 -2662
  143. package/dist/log-in-BrNB0mLz.js +0 -117
  144. package/dist/log-out-dYfqvzy6.js +0 -111
  145. package/dist/login-D_Hjy3Jd.js +0 -231
  146. package/dist/login-log-CJak-ANA.js +0 -79
  147. package/dist/lov-view-DM5Nm5tW.js +0 -95
  148. package/dist/menuInfo-BlOY1KZW.js +0 -346
  149. package/dist/mitt-CQgI7DYU.js +0 -27
  150. package/dist/pda-app-CA7YI37u.js +0 -589
  151. package/dist/redirect-N0k4tImU.js +0 -16
  152. package/dist/resource-CfQTHFcs.js +0 -94
  153. package/dist/su-welcome-DVD3S_du.js +0 -799
  154. package/dist/sys-config-Ddb3vBpK.js +0 -316
  155. package/dist/system-Cm3lyBas.js +0 -1528
  156. package/dist/udp-core-DaQd5CF1.js +0 -2028
  157. package/dist/useDataThemeChange-DJ4K3VGp.js +0 -226
  158. package/dist/useNav-BhOJIdrJ.js +0 -106
  159. package/dist/utogether-l7JXs4Lv.js +0 -4
  160. package/dist/water-mark-WDQZ9YqB.js +0 -119
  161. package/dist/wecom-push-kWkAVRCj.js +0 -77
@@ -0,0 +1,3006 @@
1
+ import * as je from "vue";
2
+ import { defineComponent as _, createVNode as ze, resolveComponent as se, isProxy as we, toRaw as be, defineAsyncComponent as ht, openBlock as ft, createBlock as gt, withCtx as yt, h as N, createApp as wt, computed as ve, ref as te } from "vue";
3
+ import { ElConfigProvider as Te } from "element-plus";
4
+ import { checkVersion as bt } from "version-rocket";
5
+ import { http as T, isUrl as Ve, storageLocal as f, buildHierarchyTree as ue, dbstorage as oe, cookies as U, openLink as vt, NProgress as Tt, VxetableRender as Ct, useGlobal as Be, deviceDetection as St, storageSession as kt } from "@utogether/utils";
6
+ import { toDateString as v, isEqual as Ce, merge as de, clone as j, findIndexOf as xt, isEmpty as Pt, findLastIndexOf as Dt, getWhatDay as O, isArray as It } from "xe-utils";
7
+ import { createPinia as Lt, defineStore as B } from "pinia";
8
+ import { useTimeoutFn as Mt } from "@vueuse/core";
9
+ import { createI18n as Rt, useI18n as Nt } from "vue-i18n";
10
+ import qe, { VxeUI as D } from "vxe-table";
11
+ import { Icon as Se } from "@iconify/vue";
12
+ import Ot from "vue-tippy";
13
+ import Et from "element-resize-detector";
14
+ var At = {
15
+ name: "en",
16
+ el: {
17
+ breadcrumb: { label: "Breadcrumb" },
18
+ colorpicker: {
19
+ confirm: "OK",
20
+ clear: "Clear",
21
+ defaultLabel: "color picker",
22
+ description: "current color is {color}. press enter to select a new color.",
23
+ alphaLabel: "pick alpha value",
24
+ alphaDescription: "alpha {alpha}, current color is {color}",
25
+ hueLabel: "pick hue value",
26
+ hueDescription: "hue {hue}, current color is {color}",
27
+ svLabel: "pick saturation and brightness value",
28
+ svDescription: "saturation {saturation}, brightness {brightness}, current color is {color}",
29
+ predefineDescription: "select {value} as the color"
30
+ },
31
+ datepicker: {
32
+ now: "Now",
33
+ today: "Today",
34
+ cancel: "Cancel",
35
+ clear: "Clear",
36
+ confirm: "OK",
37
+ dateTablePrompt: "Use the arrow keys and enter to select the day of the month",
38
+ monthTablePrompt: "Use the arrow keys and enter to select the month",
39
+ yearTablePrompt: "Use the arrow keys and enter to select the year",
40
+ selectedDate: "Selected date",
41
+ selectDate: "Select date",
42
+ selectTime: "Select time",
43
+ startDate: "Start Date",
44
+ startTime: "Start Time",
45
+ endDate: "End Date",
46
+ endTime: "End Time",
47
+ prevYear: "Previous Year",
48
+ nextYear: "Next Year",
49
+ prevMonth: "Previous Month",
50
+ nextMonth: "Next Month",
51
+ year: "",
52
+ month1: "January",
53
+ month2: "February",
54
+ month3: "March",
55
+ month4: "April",
56
+ month5: "May",
57
+ month6: "June",
58
+ month7: "July",
59
+ month8: "August",
60
+ month9: "September",
61
+ month10: "October",
62
+ month11: "November",
63
+ month12: "December",
64
+ weeks: {
65
+ sun: "Sun",
66
+ mon: "Mon",
67
+ tue: "Tue",
68
+ wed: "Wed",
69
+ thu: "Thu",
70
+ fri: "Fri",
71
+ sat: "Sat"
72
+ },
73
+ weeksFull: {
74
+ sun: "Sunday",
75
+ mon: "Monday",
76
+ tue: "Tuesday",
77
+ wed: "Wednesday",
78
+ thu: "Thursday",
79
+ fri: "Friday",
80
+ sat: "Saturday"
81
+ },
82
+ months: {
83
+ jan: "Jan",
84
+ feb: "Feb",
85
+ mar: "Mar",
86
+ apr: "Apr",
87
+ may: "May",
88
+ jun: "Jun",
89
+ jul: "Jul",
90
+ aug: "Aug",
91
+ sep: "Sep",
92
+ oct: "Oct",
93
+ nov: "Nov",
94
+ dec: "Dec"
95
+ }
96
+ },
97
+ inputNumber: {
98
+ decrease: "decrease number",
99
+ increase: "increase number"
100
+ },
101
+ select: {
102
+ loading: "Loading",
103
+ noMatch: "No matching data",
104
+ noData: "No data",
105
+ placeholder: "Select"
106
+ },
107
+ mention: { loading: "Loading" },
108
+ dropdown: { toggleDropdown: "Toggle Dropdown" },
109
+ cascader: {
110
+ noMatch: "No matching data",
111
+ loading: "Loading",
112
+ placeholder: "Select",
113
+ noData: "No data"
114
+ },
115
+ pagination: {
116
+ goto: "Go to",
117
+ pagesize: "/page",
118
+ total: "Total {total}",
119
+ pageClassifier: "",
120
+ page: "Page",
121
+ prev: "Go to previous page",
122
+ next: "Go to next page",
123
+ currentPage: "page {pager}",
124
+ prevPages: "Previous {pager} pages",
125
+ nextPages: "Next {pager} pages",
126
+ deprecationWarning: "Deprecated usages detected, please refer to the el-pagination documentation for more details"
127
+ },
128
+ dialog: { close: "Close this dialog" },
129
+ drawer: { close: "Close this dialog" },
130
+ messagebox: {
131
+ title: "Message",
132
+ confirm: "OK",
133
+ cancel: "Cancel",
134
+ error: "Illegal input",
135
+ close: "Close this dialog"
136
+ },
137
+ upload: {
138
+ deleteTip: "press delete to remove",
139
+ delete: "Delete",
140
+ preview: "Preview",
141
+ continue: "Continue"
142
+ },
143
+ slider: {
144
+ defaultLabel: "slider between {min} and {max}",
145
+ defaultRangeStartLabel: "pick start value",
146
+ defaultRangeEndLabel: "pick end value"
147
+ },
148
+ table: {
149
+ emptyText: "No Data",
150
+ confirmFilter: "Confirm",
151
+ resetFilter: "Reset",
152
+ clearFilter: "All",
153
+ sumText: "Sum",
154
+ selectAllLabel: "Select all rows",
155
+ selectRowLabel: "Select this row",
156
+ expandRowLabel: "Expand this row",
157
+ collapseRowLabel: "Collapse this row",
158
+ sortLabel: "Sort by {column}",
159
+ filterLabel: "Filter by {column}"
160
+ },
161
+ tag: { close: "Close this tag" },
162
+ tour: {
163
+ next: "Next",
164
+ previous: "Previous",
165
+ finish: "Finish",
166
+ close: "Close this dialog"
167
+ },
168
+ tree: { emptyText: "No Data" },
169
+ transfer: {
170
+ noMatch: "No matching data",
171
+ noData: "No data",
172
+ titles: ["List 1", "List 2"],
173
+ filterPlaceholder: "Enter keyword",
174
+ noCheckedFormat: "{total} items",
175
+ hasCheckedFormat: "{checked}/{total} checked"
176
+ },
177
+ image: { error: "FAILED" },
178
+ pageHeader: { title: "Back" },
179
+ popconfirm: {
180
+ confirmButtonText: "Yes",
181
+ cancelButtonText: "No"
182
+ },
183
+ carousel: {
184
+ leftArrow: "Carousel arrow left",
185
+ rightArrow: "Carousel arrow right",
186
+ indicator: "Carousel switch to index {index}"
187
+ },
188
+ inputOTP: {
189
+ groupLabel: "OTP Input",
190
+ defaultLabel: "Please enter OTP character {index}"
191
+ }
192
+ }
193
+ }, Ft = {
194
+ name: "zh-cn",
195
+ el: {
196
+ breadcrumb: { label: "面包屑" },
197
+ colorpicker: {
198
+ confirm: "确定",
199
+ clear: "清空",
200
+ defaultLabel: "颜色选择器",
201
+ description: "当前颜色 {color},按 Enter 键选择新颜色",
202
+ alphaLabel: "选择透明度的值",
203
+ alphaDescription: "透明度 {alpha}, 当前颜色 {color}",
204
+ hueLabel: "选择色相值",
205
+ hueDescription: "色相 {hue}, 当前颜色 {color}",
206
+ svLabel: "选择饱和度与明度的值",
207
+ svDescription: "饱和度 {saturation}, 明度 {brightness}, 当前颜色 {color}",
208
+ predefineDescription: "选择 {value} 作为颜色"
209
+ },
210
+ datepicker: {
211
+ now: "此刻",
212
+ today: "今天",
213
+ cancel: "取消",
214
+ clear: "清空",
215
+ confirm: "确定",
216
+ dateTablePrompt: "使用方向键与 Enter 键可选择日期",
217
+ monthTablePrompt: "使用方向键与 Enter 键可选择月份",
218
+ yearTablePrompt: "使用方向键与 Enter 键可选择年份",
219
+ selectedDate: "已选日期",
220
+ selectDate: "选择日期",
221
+ selectTime: "选择时间",
222
+ startDate: "开始日期",
223
+ startTime: "开始时间",
224
+ endDate: "结束日期",
225
+ endTime: "结束时间",
226
+ prevYear: "前一年",
227
+ nextYear: "后一年",
228
+ prevMonth: "上个月",
229
+ nextMonth: "下个月",
230
+ year: "年",
231
+ month1: "1 月",
232
+ month2: "2 月",
233
+ month3: "3 月",
234
+ month4: "4 月",
235
+ month5: "5 月",
236
+ month6: "6 月",
237
+ month7: "7 月",
238
+ month8: "8 月",
239
+ month9: "9 月",
240
+ month10: "10 月",
241
+ month11: "11 月",
242
+ month12: "12 月",
243
+ weeks: {
244
+ sun: "日",
245
+ mon: "一",
246
+ tue: "二",
247
+ wed: "三",
248
+ thu: "四",
249
+ fri: "五",
250
+ sat: "六"
251
+ },
252
+ weeksFull: {
253
+ sun: "星期日",
254
+ mon: "星期一",
255
+ tue: "星期二",
256
+ wed: "星期三",
257
+ thu: "星期四",
258
+ fri: "星期五",
259
+ sat: "星期六"
260
+ },
261
+ months: {
262
+ jan: "一月",
263
+ feb: "二月",
264
+ mar: "三月",
265
+ apr: "四月",
266
+ may: "五月",
267
+ jun: "六月",
268
+ jul: "七月",
269
+ aug: "八月",
270
+ sep: "九月",
271
+ oct: "十月",
272
+ nov: "十一月",
273
+ dec: "十二月"
274
+ }
275
+ },
276
+ inputNumber: {
277
+ decrease: "减少数值",
278
+ increase: "增加数值"
279
+ },
280
+ select: {
281
+ loading: "加载中",
282
+ noMatch: "无匹配数据",
283
+ noData: "无数据",
284
+ placeholder: "请选择"
285
+ },
286
+ mention: { loading: "加载中" },
287
+ dropdown: { toggleDropdown: "切换下拉选项" },
288
+ cascader: {
289
+ noMatch: "无匹配数据",
290
+ loading: "加载中",
291
+ placeholder: "请选择",
292
+ noData: "暂无数据"
293
+ },
294
+ pagination: {
295
+ goto: "前往",
296
+ pagesize: "条/页",
297
+ total: "共 {total} 条",
298
+ pageClassifier: "页",
299
+ page: "页",
300
+ prev: "上一页",
301
+ next: "下一页",
302
+ currentPage: "第 {pager} 页",
303
+ prevPages: "向前 {pager} 页",
304
+ nextPages: "向后 {pager} 页",
305
+ deprecationWarning: "你使用了一些已被废弃的用法,请参考 el-pagination 的官方文档"
306
+ },
307
+ dialog: { close: "关闭此对话框" },
308
+ drawer: { close: "关闭此对话框" },
309
+ messagebox: {
310
+ title: "提示",
311
+ confirm: "确定",
312
+ cancel: "取消",
313
+ error: "输入的数据不合法!",
314
+ close: "关闭此对话框"
315
+ },
316
+ upload: {
317
+ deleteTip: "按 Delete 键可删除",
318
+ delete: "删除",
319
+ preview: "查看图片",
320
+ continue: "继续上传"
321
+ },
322
+ slider: {
323
+ defaultLabel: "滑块介于 {min} 至 {max}",
324
+ defaultRangeStartLabel: "选择起始值",
325
+ defaultRangeEndLabel: "选择结束值"
326
+ },
327
+ table: {
328
+ emptyText: "暂无数据",
329
+ confirmFilter: "筛选",
330
+ resetFilter: "重置",
331
+ clearFilter: "全部",
332
+ sumText: "合计",
333
+ selectAllLabel: "选择所有行",
334
+ selectRowLabel: "选择当前行",
335
+ expandRowLabel: "展开当前行",
336
+ collapseRowLabel: "收起当前行",
337
+ sortLabel: "按 {column} 排序",
338
+ filterLabel: "按 {column} 过滤"
339
+ },
340
+ tag: { close: "关闭此标签" },
341
+ tour: {
342
+ next: "下一步",
343
+ previous: "上一步",
344
+ finish: "结束导览",
345
+ close: "关闭此对话框"
346
+ },
347
+ tree: { emptyText: "暂无数据" },
348
+ transfer: {
349
+ noMatch: "无匹配数据",
350
+ noData: "无数据",
351
+ titles: ["列表 1", "列表 2"],
352
+ filterPlaceholder: "请输入搜索内容",
353
+ noCheckedFormat: "共 {total} 项",
354
+ hasCheckedFormat: "已选 {checked}/{total} 项"
355
+ },
356
+ image: { error: "加载失败" },
357
+ pageHeader: { title: "返回" },
358
+ popconfirm: {
359
+ confirmButtonText: "确定",
360
+ cancelButtonText: "取消"
361
+ },
362
+ carousel: {
363
+ leftArrow: "上一张幻灯片",
364
+ rightArrow: "下一张幻灯片",
365
+ indicator: "幻灯片切换至索引 {index}"
366
+ },
367
+ inputOTP: {
368
+ groupLabel: "一次性密码输入框",
369
+ defaultLabel: "请输入第 {index} 位 OTP 字符"
370
+ }
371
+ }
372
+ };
373
+ let re = {}, We = {};
374
+ const Ut = (e, t) => {
375
+ re = Object.assign(re, t), e.config.globalProperties.$config = I();
376
+ }, I = () => re, $t = (e = {}) => {
377
+ We = e;
378
+ }, A = () => We, w = () => I().ResponsiveStorageNameSpace, _t = "menu_zh", jt = "menu_en", He = "authorized-token", zt = "kCookies_token", Vt = "kSysConfig", Ge = "loginer", ra = "k-UTOGETHER-Q66!", ia = "UDP_PWSD", q = () => ({
379
+ post: (e, t, o) => T.post(`${x(e)}${e}`, t, o),
380
+ get: (e, t, o) => T.get(`${x(e)}${e}`, t, o),
381
+ put: (e, t) => T.put(`${x(e)}${e}`, t),
382
+ delete: (e, t) => T.delete(`${x(e)}${e}`, t)
383
+ }), Bt = (e) => {
384
+ T.setRouter(e);
385
+ }, qt = (e) => {
386
+ T.setBaseUrl(e);
387
+ }, Wt = window.location.origin + "/gateway", x = (e) => {
388
+ const t = ["/uath/", "/uwfl/", "/uums/", "/upfm/", "/urpt/", "/usch/"];
389
+ return e && A().VITE_DEBUG === "true" && !t.some((o) => e.includes(o)) ? A().VITE_DEBUG_URL : A().VITE_BASE_URL === "origin" ? Wt : A().VITE_BASE_URL;
390
+ }, Ht = () => ({
391
+ post: (e, t, o) => T.post(`${J()}${e}`, t, o),
392
+ get: (e, t, o) => T.get(`${J()}${e}`, t, o),
393
+ put: (e, t) => T.put(`${J()}${e}`, t),
394
+ delete: (e, t) => T.delete(`${J()}${e}`, t)
395
+ }), J = () => A().VITE_DEBUG_URL, Je = (e) => {
396
+ const t = e.indexOf("windows nt 5.1") > -1 || e.indexOf("windows xp") > -1;
397
+ if (e.indexOf("windows xp") > -1, t) return "WinXP";
398
+ if (e.indexOf("windows nt 6.1") > -1 || e.indexOf("windows 7") > -1) return "Win7";
399
+ if (e.indexOf("windows nt6.2") > -1 || e.indexOf("windows 8") > -1) return "Win8";
400
+ if (e.indexOf("windows nt 10.0") > -1 || e.indexOf("windows 10") > -1) return "Win10";
401
+ }, Ke = (e) => {
402
+ let t = null;
403
+ const o = {
404
+ Chrome: e.indexOf("chrome") > -1 && e.indexOf("safari") > -1,
405
+ // Chrome浏览器
406
+ Firefox: e.indexOf("firefox") > -1,
407
+ // 火狐浏览器
408
+ Opera: e.indexOf("opera") > -1,
409
+ // Opera浏览器
410
+ Safari: e.indexOf("safari") > -1 && e.indexOf("chrome") == -1,
411
+ // safari浏览器
412
+ Edge: e.indexOf("edg") > -1,
413
+ // Edge浏览器
414
+ MetaSr: e.indexOf("metaSr") > -1,
415
+ // 搜狗浏览器
416
+ QQBrowser: /qqbrowser/.test(e),
417
+ // qq浏览器
418
+ WeixinBrowser: /MicroMessenger/i.test(e)
419
+ // 微信浏览器
420
+ };
421
+ let n = "";
422
+ for (const a in o)
423
+ o[a] && (n = e.match(/chrome\/([\d.]+)/)[1], t = a);
424
+ return { browser: t, browserVersion: n };
425
+ }, Gt = () => T.get(`${x()}/uums/roleMenu`), Ye = () => T.get(`${x()}/upfm/v1/lov/selectAll`), ke = (e) => T.get(`${x()}/uums/roleMenu/userMenu`, e), Jt = (e) => {
426
+ const t = navigator.userAgent.toLowerCase(), { browser: o, browserVersion: n } = Ke(t), a = {
427
+ userName: e,
428
+ loginTime: v(/* @__PURE__ */ new Date()),
429
+ browser: o,
430
+ browserVersion: n,
431
+ operatingSystem: Je(t)
432
+ };
433
+ return T.request("post", `${x()}/upfm/v1/userMonitor`, a);
434
+ }, E = Lt();
435
+ function Kt(e) {
436
+ e.use(E);
437
+ }
438
+ const W = [
439
+ {
440
+ path: "/welcome",
441
+ name: "UdpWelcome",
442
+ meta: {
443
+ title: "message.udp.home",
444
+ icon: "home-filled"
445
+ }
446
+ }
447
+ ], Qe = B("udp-multiTags", {
448
+ state: () => ({
449
+ // 存储标签页信息(路由信息)
450
+ multiTags: f.getItem(`${w()}configure`)?.multiTagsCache ? f.getItem(`${w()}tags`) : [...W, ...b().flatteningRoutes.filter((e) => e?.meta?.fixedTag)],
451
+ multiTagsCache: f.getItem(`${w()}configure`)?.multiTagsCache
452
+ }),
453
+ getters: {
454
+ getMultiTagsCache(e) {
455
+ return e.multiTagsCache;
456
+ }
457
+ },
458
+ actions: {
459
+ multiTagsCacheChange(e) {
460
+ this.multiTagsCache = e, e ? f.setItem(`${w()}tags`, this.multiTags) : f.removeItem(`${w()}tags`);
461
+ },
462
+ tagsCache(e) {
463
+ this.getMultiTagsCache && f.setItem(`${w()}tags`, e);
464
+ },
465
+ handleTags(e, t, o) {
466
+ switch (e) {
467
+ case "equal":
468
+ this.multiTags = t, this.tagsCache(this.multiTags);
469
+ break;
470
+ case "push":
471
+ {
472
+ const n = t;
473
+ if (n?.meta?.hiddenTag || Ve(n?.name) || n?.meta?.title?.length === 0) return;
474
+ const a = n.path;
475
+ if (this.multiTags.some((i) => i.path === a && Ce(i?.query, n?.query) && Ce(i?.params, n?.params))) return;
476
+ const r = n?.meta?.dynamicLevel ?? -1;
477
+ if (r > 0 && this.multiTags.filter((i) => i?.path === a).length >= r) {
478
+ const i = this.multiTags.findIndex((d) => d?.path === a);
479
+ i !== -1 && this.multiTags.splice(i, 1);
480
+ }
481
+ this.multiTags.push(t), this.tagsCache(this.multiTags);
482
+ }
483
+ break;
484
+ case "splice":
485
+ if (o)
486
+ this.multiTags.splice(o?.startIndex, o?.length);
487
+ else {
488
+ const n = this.multiTags.findIndex((a) => a.path === t);
489
+ if (n === -1) return;
490
+ this.multiTags.splice(n, 1);
491
+ }
492
+ return this.tagsCache(this.multiTags), this.multiTags;
493
+ case "slice":
494
+ return this.multiTags.slice(-1);
495
+ }
496
+ }
497
+ }
498
+ });
499
+ function C() {
500
+ return Qe(E);
501
+ }
502
+ const xe = {
503
+ zh: {
504
+ message: {
505
+ reportCode: "报表编号",
506
+ tempPath: "模版路径",
507
+ tempFile: "模版文件",
508
+ exportFileType: "文件类型",
509
+ parameterType: "参数类型",
510
+ valueType: "值类型",
511
+ parameterField: "参数字段名",
512
+ parameterName: "参数名称",
513
+ showField: "显示字段",
514
+ valueField: "值字段",
515
+ exportNo: "导出编号",
516
+ moduleName: "模块名称",
517
+ exportResult: "导出结果",
518
+ exportStatus: "导出状态",
519
+ exportMsg: "提示信息",
520
+ fileType: "文件类型",
521
+ exportDate: "完成时间"
522
+ }
523
+ },
524
+ en: {
525
+ message: {
526
+ tempPath: "tempPath",
527
+ tempFile: "tempFile",
528
+ exportFileType: "exportFileType",
529
+ parameterType: "parameterType",
530
+ valueType: "valueType",
531
+ serviceCode: "serviceCode",
532
+ parameterField: "parameterField",
533
+ parameterName: "parameterName",
534
+ showField: "showField",
535
+ valueField: "valueField",
536
+ exportNo: "exportNo",
537
+ moduleName: "moduleName",
538
+ printPosition: "Print Position",
539
+ exportResult: "exportResult",
540
+ exportStatus: "exportStatus",
541
+ exportMsg: "exportMsg",
542
+ fileType: "fileType",
543
+ exportDate: "Export Date",
544
+ dataSetCode: "Dataset Code",
545
+ dataSetName: "Dataset Name",
546
+ dataSetType: "Dataset Type",
547
+ dataSetUrl: "Dataset Url",
548
+ defaultValue: "Default Value",
549
+ isRequired: "Required"
550
+ }
551
+ }
552
+ }, Yt = {
553
+ zh: { ...xe.zh.message },
554
+ en: { ...xe.en.message }
555
+ }, Qt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
556
+ __proto__: null,
557
+ default: Yt
558
+ }, Symbol.toStringTag, { value: "Module" })), Zt = {
559
+ zh: {
560
+ message: {
561
+ taskName: "任务名称",
562
+ processInstId: "任务编码",
563
+ taskTitle: "任务标题",
564
+ taskPhase: "流程阶段",
565
+ agreement: "审批意见",
566
+ description: "备注",
567
+ actuatorCode: "执行器编码",
568
+ actuatorName: "执行器名称",
569
+ actuatorType: "注册方式",
570
+ actuatorAddress: "机器地址"
571
+ }
572
+ },
573
+ en: {
574
+ message: {
575
+ taskName: "taskName",
576
+ processInstId: "processInstId",
577
+ taskTitle: "taskTitle",
578
+ taskPhase: "taskPhase",
579
+ agreement: "agreement",
580
+ description: "description",
581
+ actuatorCode: "Actuator Code",
582
+ actuatorName: "Actuator Name",
583
+ actuatorType: "Actuator Type",
584
+ actuatorAddress: "Actuator Adress"
585
+ }
586
+ }
587
+ }, Xt = {
588
+ zh: {
589
+ message: {
590
+ flowId: "流程标识",
591
+ flowName: "流程名称",
592
+ flowCode: "流程业务",
593
+ description: "流程描述",
594
+ flowDesign: "流程设计",
595
+ version: "版本",
596
+ effectDate: "生效日期"
597
+ }
598
+ },
599
+ en: {
600
+ message: {
601
+ flowId: "flowId",
602
+ flowName: "flowName",
603
+ flowCode: "flowCode",
604
+ description: "description",
605
+ flowDesign: "Flow Design"
606
+ }
607
+ }
608
+ }, Pe = [Zt, Xt], eo = {
609
+ zh: {
610
+ ...Object.assign({}, ...Pe.map((e) => e.zh.message))
611
+ },
612
+ en: {
613
+ ...Object.assign({}, ...Pe.map((e) => e.en.message))
614
+ }
615
+ }, to = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
616
+ __proto__: null,
617
+ default: eo
618
+ }, Symbol.toStringTag, { value: "Module" })), oo = {
619
+ zh: {
620
+ message: {
621
+ msgtemplateCode: "模板代码",
622
+ msgtemplateName: "模板名称",
623
+ msgTitle: "消息标题",
624
+ msgType: "消息类型",
625
+ language: "语言",
626
+ templateContent: "模板内容",
627
+ msgCode: "消息代码",
628
+ msgName: "消息名称",
629
+ msgService: "消息服务",
630
+ msgServiceName: "消息服务名称"
631
+ }
632
+ },
633
+ en: {
634
+ message: {
635
+ xx: "xxx"
636
+ }
637
+ }
638
+ }, no = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
639
+ __proto__: null,
640
+ default: oo
641
+ }, Symbol.toStringTag, { value: "Module" })), ao = {
642
+ udp: {
643
+ dark: "深色",
644
+ light: "浅色",
645
+ smart: "灵动",
646
+ card: "卡片",
647
+ theme: "主题色",
648
+ pageStyle: "主题模式",
649
+ navigationMode: "菜单布局",
650
+ tagStyle: "页签风格",
651
+ collapse: "折叠",
652
+ expand: "展开",
653
+ login: "登 陆",
654
+ home: "首页",
655
+ logout: "退出系统",
656
+ password: "密码",
657
+ passwordReset: "密码重置",
658
+ oldPwd: "旧密码",
659
+ newPwd: "新密码",
660
+ confirmPwd: "确认密码",
661
+ reload: "重新加载",
662
+ closeCurrentTab: "关闭当前标签页",
663
+ closeLeftTabs: "关闭左侧标签页",
664
+ closeRightTabs: "关闭右侧标签页",
665
+ closeOtherTabs: "关闭其他标签页",
666
+ closeAllTabs: "关闭全部标签页",
667
+ wholeFullScreen: "整体页面全屏",
668
+ wholeExitFullScreen: "整体页面退出全屏",
669
+ contentFullScreen: "内容区全屏",
670
+ contentExitFullScreen: "内容区退出全屏",
671
+ fourZeroFour: "404",
672
+ fourZeroThree: "403",
673
+ five: "500",
674
+ flowTask: "流程任务",
675
+ backtop: "回到顶部",
676
+ error: "Error Page",
677
+ continueAdd: "连续添加",
678
+ menuQuery: "菜单搜索",
679
+ systemTitle: "系统标题",
680
+ systemLogo: "LOGO",
681
+ systemFavicon: "favicon",
682
+ homeBackimg: "首页背景",
683
+ baseUrl: "服务路径",
684
+ copyright: "版权信息",
685
+ showTitle: "显示项目名称",
686
+ i18nEnabled: "国际化",
687
+ orgTaggle: "启用组织切换",
688
+ initialPasswordModification: "初始密码修改",
689
+ baseColor: "基准色",
690
+ techSupport: "技术支持",
691
+ defaultLanguage: "默认语言",
692
+ roleName: "角色名称",
693
+ roleCode: "角色编码",
694
+ roleDesc: "角色说明",
695
+ loginTime: "登录时间",
696
+ operatingSystem: "操作系统",
697
+ ip: "ip地址",
698
+ browserVersion: "浏览器版本",
699
+ browser: "浏览器",
700
+ dictCode: "字典编码",
701
+ dictName: "字典名称",
702
+ dictDesc: "字典描述",
703
+ dictType: "字典类型",
704
+ ruleCode: "规则代码",
705
+ ruleName: "规则名称",
706
+ fieldType: "段类型",
707
+ fieldValue: "段值",
708
+ dateMask: "日期掩码",
709
+ resetFrequency: "重置频率",
710
+ seqLength: "位数",
711
+ startValue: "开始值",
712
+ currentValue: "当前值",
713
+ haveBeenUsed: "使用中",
714
+ description: "描述",
715
+ unitName: "单位名称",
716
+ unitCode: "单位编码",
717
+ unitNote: "单位介绍",
718
+ deleteCompany: "部门存在子级,请先删除子级",
719
+ tip: "温馨提示",
720
+ today: "今天",
721
+ yesterday: "昨天",
722
+ lastWeek: "一周内",
723
+ lastMonth: "1月内",
724
+ threeMonth: "3月内",
725
+ halfYear: "半年内",
726
+ anniversary: "1年内",
727
+ newVersion: "检测到新版本",
728
+ updatenow: "立即更新",
729
+ updateLater: "稍后更新",
730
+ appVersion: "版本号",
731
+ buildNo: "构建号",
732
+ versionInfo: "版本信息",
733
+ isForceUpdate: "安装方式",
734
+ downloadUrl: "APK文件",
735
+ forceUpdate: "强制更新",
736
+ freeUpdate: "自主更新",
737
+ placeholder: "请录入",
738
+ userName: "用户姓名",
739
+ loginUser: "登录账户",
740
+ loginAccount: "账户名",
741
+ userCode: "用户编码",
742
+ userType: "用户类型",
743
+ roleList: "角色列表",
744
+ userList: "用户列表",
745
+ orgCode: "业务实体编码",
746
+ orgName: "业务实体名称",
747
+ orgAlias: "业务实体简称",
748
+ orgDesc: "业务实体描述",
749
+ organizationName: "组织名称",
750
+ organizationCode: "组织编码",
751
+ appupper: "已上架",
752
+ applower: "已下架",
753
+ isApprovalPage: "审批页面",
754
+ showLink: "菜单可见",
755
+ componentType: "组件类型",
756
+ componentCode: "组件编码",
757
+ componentTitle: "组件标题",
758
+ componentSpan: "栅格列数(24等分)",
759
+ componentHeight: "组件高度",
760
+ componentPath: "组件路径",
761
+ componentRole: "角色",
762
+ configCode: "推送编码",
763
+ corpId: "企业id",
764
+ agentId: "应用编码",
765
+ corpSecret: "应用密钥",
766
+ redirectUrl: "应用地址",
767
+ pushTitle: "推送标题",
768
+ picUrl: "缩略图"
769
+ },
770
+ btn: {
771
+ passwordReset: "密码重置",
772
+ add: "新增",
773
+ agree: "同意",
774
+ approve: "审批",
775
+ appupper: "上架",
776
+ applower: "下架",
777
+ auth: "权限",
778
+ back: "返回",
779
+ cancel: "取消",
780
+ completed: "完工",
781
+ close: "关闭",
782
+ toggle: "切换",
783
+ confirm: "确认",
784
+ config: "配置",
785
+ copy: "复制",
786
+ customSize: "自定义纸张",
787
+ detail: "详情",
788
+ directPrint: "直接打印",
789
+ design: "设 计",
790
+ delete: "删除",
791
+ del: "删除",
792
+ download: "下载",
793
+ dispatchUser: "分配用户",
794
+ dispatchAuth: "分配权限",
795
+ FAQ: "常见问题",
796
+ finish: "完成",
797
+ fetch: "查询",
798
+ edit: "编辑",
799
+ export: "导出",
800
+ import: "导入",
801
+ encode: "编码",
802
+ importJSON: "导入模板数据",
803
+ downloadTemp: "模板下载",
804
+ inv: "库存组织",
805
+ look: "查看",
806
+ lov: "值集",
807
+ inbound: "入库",
808
+ more: "更多",
809
+ outbound: "出库",
810
+ preview: "预览",
811
+ print: "打印",
812
+ paramSet: "参数集",
813
+ reset: "重置",
814
+ resumeTask: "继续",
815
+ role: "角色",
816
+ repaint: "重绘",
817
+ save: "保存",
818
+ scan: "扫码下载",
819
+ stopTask: "停止",
820
+ suspendTask: "暂停",
821
+ search: "搜索",
822
+ sync: "同步",
823
+ submit: "提交",
824
+ taskLog: "任务日志",
825
+ revoke: "撤销",
826
+ reject: "拒绝",
827
+ upload: "上传",
828
+ goback: "返回",
829
+ disabled: "禁用",
830
+ enable: "启用",
831
+ flowDesign: "流程设计",
832
+ resetPassword: "重置密码",
833
+ bindUser: "关联用户",
834
+ bankinfo: "银行账号"
835
+ },
836
+ urpt: {
837
+ templateName: "模版名称",
838
+ templateCode: "模版编码",
839
+ paperType: "纸张类型",
840
+ printPosition: "打印视图",
841
+ buttonCode: "按钮编码",
842
+ resourceCode: "资源编码",
843
+ resourceName: "资源名称",
844
+ resourceUrl: "资源路径",
845
+ fileName: "文件名称",
846
+ fileSize: "文件大小",
847
+ filePath: "文件路径",
848
+ fileExtend: "文件类型",
849
+ textAlign: "对齐方式",
850
+ color: "色彩",
851
+ fillOpacity: "透明度",
852
+ fontSize: "字体大小",
853
+ rotation: "倾斜角度",
854
+ watermarkCode: "水印编码",
855
+ watermarkContent: "水印内容",
856
+ watermarkTrigger: "触发时机",
857
+ watermarkType: "水印类型",
858
+ xAxis: "横坐标",
859
+ yAxis: "纵坐标"
860
+ },
861
+ add: "新增",
862
+ operate: "操作",
863
+ emptyData: "暂无数据",
864
+ creationDate: "创建时间",
865
+ createdByName: "创建人",
866
+ creationName: "创建人",
867
+ lastUpdateDate: "更新日期",
868
+ creator: "创建人",
869
+ updater: "修改人",
870
+ lastUpdatedByName: "更新人",
871
+ sort: "序号",
872
+ seqNo: "序号",
873
+ remark: "备注",
874
+ loading: "加载中...",
875
+ keyword: "关键字",
876
+ required: "请录入",
877
+ isRequired: "必填否",
878
+ dataSetCode: "数据集编码",
879
+ dataSetName: "数据集名称",
880
+ dataSetType: "数据集类型",
881
+ dataSetUrl: "URL/服务编码",
882
+ paramCode: "参数编码",
883
+ paramName: "参数名称",
884
+ defaultValue: "默认值",
885
+ enabled: "启用",
886
+ disabled: "禁用",
887
+ to: "至",
888
+ startDate: "开始日期",
889
+ endDate: "截至日期",
890
+ operateSuccess: "操作成功!",
891
+ operateFailed: "操作失败!",
892
+ selectedRecord: "请至少选择一条记录",
893
+ delRecord: "您确定要删除选择的数据吗?",
894
+ importSuccess: "导入成功!",
895
+ importFailed: "数据导入失败,请往下滚动以便查看错误信息",
896
+ importRecord: "您确定要导入数据吗?",
897
+ importEmpty: "数据列表为空,请先导入数据列表",
898
+ importTip: `1、表格模板的【列标题】不可修改;
899
+ 2、单次导入数据数量应小于2000条;
900
+ 3、数据字典直接录入字典值表示,能极大的提高表格渲染速度哦。例如: 数据字典【是否】Y/N
901
+ 4、导入成功,系统提示【导入成功数量xxx条】其中的数量包括表头行`,
902
+ errorInfo: "异常信息",
903
+ publish: "发布",
904
+ menuName: "菜单名称(中文)",
905
+ menuNameEn: "菜单名称(英文)",
906
+ menuType: "菜单类型",
907
+ menuCode: "菜单编码",
908
+ permissionCode: "权限编码",
909
+ permissionName: "权限名称",
910
+ menuPath: "路由",
911
+ frameSrc: "内链URI",
912
+ externalURI: "外链URI",
913
+ redirect: "重定向路径",
914
+ i18nField: "标题字段",
915
+ extraIcon: "额外图标",
916
+ icon: "图标",
917
+ jobResult: "执行结果",
918
+ endTime: "结束时间",
919
+ startTime: "开始时间",
920
+ errorMessage: "异常信息",
921
+ jobStatus: "任务状态",
922
+ jobParam: "执行器任务参数",
923
+ jobHandler: "任务处理类",
924
+ jobClassName: "实现类",
925
+ jobCron: "任务执行corn",
926
+ jobName: "任务名称",
927
+ jobDescription: "任务描述",
928
+ interfaceName: "接口名称",
929
+ interfaceUrl: "接口地址",
930
+ requestDate: "请求日期",
931
+ requestStatus: "请求状态",
932
+ requestParameter: "body参数",
933
+ responseTimeConsume: "响应时间(ms)",
934
+ responseContent: "响应内容",
935
+ stacktrace: "错误堆栈",
936
+ status: "状态",
937
+ email: "邮箱",
938
+ userPassword: "登录密码",
939
+ remarks: "备注",
940
+ userPwd: "用户密码",
941
+ unitName: "用户单位",
942
+ employeeCode: "编号",
943
+ employeeName: "姓名",
944
+ department: "部门",
945
+ gender: "性别",
946
+ releateUser: "关联用户",
947
+ identity: "身份证号码",
948
+ employeeDate: "入职日期",
949
+ solarDay: "出生日期",
950
+ phone: "座机号",
951
+ mobile: "手机号",
952
+ deptName: "部门名称",
953
+ deptCode: "部门编码",
954
+ deptType: "部门类型",
955
+ deletePartment: "部门存在子级,请先删除子级",
956
+ lovCode: "视图编码",
957
+ lovName: "视图名称",
958
+ valueField: "值字段名",
959
+ displayField: "显示字段名",
960
+ lovTitle: "视图标题",
961
+ lovType: "视图类型",
962
+ lovUrl: "视图URI",
963
+ colField: "表格字段名",
964
+ colTitle: "表格列标题",
965
+ colWidth: "列宽度",
966
+ fieldType: "字段类型",
967
+ dictName: "数据字典",
968
+ isSearch: "查询字段",
969
+ isCol: "表格列",
970
+ sqlStatement: "SQL语句",
971
+ fileName: "附件名称",
972
+ fileSize: "附件大小",
973
+ tip: {
974
+ projectConfig: "项目配置",
975
+ closeConfig: "关闭配置",
976
+ clearCache: "清空缓存",
977
+ toLogin: "清空缓存并返回登录页",
978
+ del: "确定要删除{msg}吗?",
979
+ uploadFormat: "上传格式{type}",
980
+ imageSize: "图片尺寸{size}",
981
+ imageCapacity: "图片大小{capacity}",
982
+ singleImg: "仅支持设置单张图",
983
+ emptyAuth: "无系统权限, 请先给用户分配角色重试",
984
+ initPassword: "初始密码为:【{code}】,请及时修改密码",
985
+ loginFailure: "用户名或密码不能为空",
986
+ selectRole: "请先勾选角色数据",
987
+ confirmSync: "确认同步数据吗?",
988
+ updatenow: "立即更新",
989
+ newVersion: "检测到新版本",
990
+ updateLater: "稍后更新",
991
+ confirmResetPassword: "确认重置密码吗?"
992
+ },
993
+ title: {
994
+ employeeInfo: "员工信息",
995
+ cronLog: "执行日志",
996
+ memuInfo: "菜单配置",
997
+ authority: "【{role}】权限明细",
998
+ authUser: "【{role}】分配用户",
999
+ authEdit: "角色编辑",
1000
+ roleInfo: "角色列表",
1001
+ appAdd: "App版本新增",
1002
+ dictList: "【{name}】字典值列表",
1003
+ dictInfo: "【{name}】字典值",
1004
+ lovView: "值集视图",
1005
+ lovColConfig: "值集列配置",
1006
+ sequenceInfo: "{name}单据序列配置",
1007
+ userInfo: "用户信息",
1008
+ layoutRole: "【{name}】角色列表"
1009
+ }
1010
+ }, so = {
1011
+ udp: {
1012
+ dark: "深色",
1013
+ light: "浅色",
1014
+ smart: "灵动",
1015
+ card: "卡片",
1016
+ theme: "主题色",
1017
+ pageStyle: "Page Style",
1018
+ navigationMode: "Navigation Node",
1019
+ tagStyle: "Tag Style",
1020
+ collapse: "Collapse",
1021
+ expand: "Expand",
1022
+ login: "Login",
1023
+ home: "Home",
1024
+ logout: "Logout",
1025
+ password: "Password",
1026
+ passwordReset: "Password Reset",
1027
+ oldPwd: "Old Password",
1028
+ newPwd: "New Password",
1029
+ confirmPwd: "Confirm Password",
1030
+ reload: "Reload",
1031
+ closeCurrentTab: "Close Current Tab",
1032
+ closeLeftTabs: "Close Left Tabs",
1033
+ closeRightTabs: "Close Right Tabs",
1034
+ closeOtherTabs: "Close Other Tabs",
1035
+ closeAllTabs: "Close All Tabs",
1036
+ wholeFullScreen: "Whole Full Screen",
1037
+ wholeExitFullScreen: "Whole Exit Full Screen",
1038
+ contentFullScreen: "Content Fulll Screen",
1039
+ contentExitFullScreen: "Content Exit Full Screen",
1040
+ fourZeroFour: "404",
1041
+ fourZeroThree: "403",
1042
+ five: "500",
1043
+ backtop: "Back Top",
1044
+ error: "Error Page",
1045
+ continueAdd: "Continue Add",
1046
+ menuQuery: "Menu Search",
1047
+ systemTitle: "System Title",
1048
+ systemLogo: "LOGO",
1049
+ systemFavicon: "favicon",
1050
+ homeBackimg: "Home Background Image",
1051
+ baseUrl: "Base Url",
1052
+ copyright: "Copy Right",
1053
+ i18nEnabled: "Internationalize",
1054
+ defaultLanguage: "Language",
1055
+ roleName: "Role Name",
1056
+ roleCode: "Role Code",
1057
+ roleDesc: "Role Desc",
1058
+ loginTime: "Login Time",
1059
+ operatingSystem: "Operate System",
1060
+ ip: "ip",
1061
+ browserVersion: "Browser Version",
1062
+ browser: "Browser",
1063
+ dictCode: "Dict Code",
1064
+ dictName: "Dict Name",
1065
+ dictType: "Dict Type",
1066
+ ruleCode: "Rule Code",
1067
+ ruleName: "Rule Name",
1068
+ fieldType: "Field Type",
1069
+ fieldValue: "Field Value",
1070
+ dateMask: "Data Mask",
1071
+ resetFrequency: "Reset Frequency",
1072
+ seqLength: "Seq Length",
1073
+ startValue: "Start Value",
1074
+ currentValue: "Current Value",
1075
+ haveBeenUsed: "Have Been Used",
1076
+ unitName: "Unit Name",
1077
+ unitCode: "Unit Code",
1078
+ unitNote: "Unit Note",
1079
+ deleteCompany: "There are child levels in the Company, please delete the child level first",
1080
+ tip: "tip",
1081
+ today: "Today",
1082
+ yesterday: "Yesterday",
1083
+ lastWeek: "Last Week",
1084
+ lastMonth: "Last Month",
1085
+ threeMonth: "Three Month",
1086
+ halfYear: "Half Year",
1087
+ anniversary: "Anniversary",
1088
+ newVersion: "检测到新版本",
1089
+ updatenow: "立即更新",
1090
+ updateLater: "稍后更新",
1091
+ appVersion: "版本号",
1092
+ buildNo: "构建号",
1093
+ versionInfo: "版本信息",
1094
+ isForceUpdate: "安装方式",
1095
+ downloadUrl: "APK文件",
1096
+ forceUpdate: "强制更新",
1097
+ freeUpdate: "自主更新",
1098
+ userName: "User Name",
1099
+ userCode: "user Code",
1100
+ sysType: "User Type",
1101
+ orgCode: "Business Unit Code",
1102
+ orgName: "Business Unit Name",
1103
+ orgAlias: "Business Unit Alias",
1104
+ orgDesc: "Business Unit Descript",
1105
+ organizationName: "Organization Name",
1106
+ organizationCode: "Organization Code"
1107
+ },
1108
+ btn: {
1109
+ add: "Add",
1110
+ agree: "Agree",
1111
+ approve: "Approval",
1112
+ appupper: "App Add",
1113
+ applower: "App Remove",
1114
+ auth: "Authority",
1115
+ back: "Back",
1116
+ cancel: "Cancel",
1117
+ completed: "Completed",
1118
+ close: "Close",
1119
+ toggle: "Toggle",
1120
+ confirm: "Confirm",
1121
+ config: "Config",
1122
+ copy: "Copy",
1123
+ customSize: "Custom Size",
1124
+ detail: "Detail",
1125
+ directPrint: "Direct Print",
1126
+ design: "Design",
1127
+ delete: "Delete",
1128
+ del: "Delete",
1129
+ download: "Download",
1130
+ dispatchUser: "Dispatch User",
1131
+ dispatchAuth: "Dispatch Authority",
1132
+ finish: "Finish",
1133
+ fetch: "Fetch",
1134
+ edit: "Edit",
1135
+ export: "Export",
1136
+ import: "Import",
1137
+ encode: "Encode",
1138
+ importJSON: "Import Data",
1139
+ look: "Look",
1140
+ lov: "Lov",
1141
+ inbound: "Inbound",
1142
+ more: "More",
1143
+ outbound: "Outbound",
1144
+ preview: "Preview",
1145
+ print: "Print",
1146
+ paramSet: "Param Set",
1147
+ reset: "Reset",
1148
+ resumeTask: "Resume",
1149
+ role: "Role",
1150
+ repaint: "Repaint",
1151
+ save: "Save",
1152
+ scan: "Scan Download",
1153
+ stopTask: "Stop",
1154
+ suspendTask: "Suspend",
1155
+ search: "Search",
1156
+ sync: "Sync",
1157
+ submit: "Submit",
1158
+ taskLog: "Log",
1159
+ revoke: "Revoke",
1160
+ reject: "Reject",
1161
+ upload: "Upload"
1162
+ },
1163
+ file: {
1164
+ templateName: "Template Name",
1165
+ templateCode: "Template Code",
1166
+ paperType: "Paper Type",
1167
+ printPosition: "Print Position",
1168
+ buttonCode: "Button Code",
1169
+ resourceCode: "Resource Code",
1170
+ resourceName: "Resource Name",
1171
+ resourceUrl: "Resource Url",
1172
+ fileName: "File Name",
1173
+ fileSize: "File Size",
1174
+ filePath: "File Path",
1175
+ fileExtend: "File Extend",
1176
+ textAlign: "Text Align",
1177
+ color: "Color",
1178
+ fillOpacity: "Fill Opacity",
1179
+ fontSize: "Font Size",
1180
+ rotation: "Rotation",
1181
+ watermarkCode: "Watermark Code",
1182
+ watermarkContent: "Watermark Content",
1183
+ watermarkTrigger: "Watermark Trigger",
1184
+ watermarkType: "Watermark Type",
1185
+ xAxis: "xAxis",
1186
+ yAxis: "yAxis"
1187
+ },
1188
+ add: "Add",
1189
+ operate: "Operate",
1190
+ emptyData: "Empty Data",
1191
+ creationDate: "Creation Date",
1192
+ createdByName: "CreatedBy Name",
1193
+ creationName: "Creation Name",
1194
+ lastUpdateDate: "LastUpdate Date",
1195
+ lastUpdatedByName: "LastUpdatedBy Name",
1196
+ sort: "Sort",
1197
+ seqNo: "Seq No",
1198
+ remark: "Remark",
1199
+ loading: "Loading...",
1200
+ keyword: "Keyword",
1201
+ required: "Required",
1202
+ isRequired: "Is Required",
1203
+ dataSetCode: "Dataset Code",
1204
+ dataSetName: "Dataset Name",
1205
+ dataSetType: "Dataset Type",
1206
+ dataSetUrl: "Dataset Url",
1207
+ paramCode: "Param Code",
1208
+ paramName: "Param Name",
1209
+ defaultValue: "Default Value",
1210
+ enabled: "Enabled",
1211
+ disabled: "Disabled",
1212
+ to: "To",
1213
+ startDate: "Start Date",
1214
+ endDate: "End Date",
1215
+ operateSuccess: "Operate Success!",
1216
+ operateFailed: "Operate Failed!",
1217
+ selectedRecord: "Please select at least one record",
1218
+ delRecord: "Are you sure you want to delete this record?",
1219
+ importSuccess: "Import Success!",
1220
+ importFailed: "Data import failed, please scroll down to view the error message",
1221
+ importRecord: "Are you sure you want to import the data?",
1222
+ importEmpty: "The data list is empty, please import the data list first",
1223
+ importTip: `1. The column headings in the table template cannot be modified;
1224
+ 2. The number of data imported at a time should be less than 2000;
1225
+ 3. Directly entering dictionary values into the data dictionary can greatly improve the speed of table rendering. For example: Data Dictionary [Yes/No] Y/N
1226
+ 4. Import successful, system prompts' xxx successful imports', including header rows`,
1227
+ errorInfo: "Error Info",
1228
+ publish: "Publish",
1229
+ menuName: "Menu Name",
1230
+ menuNameEn: "Menu Name",
1231
+ menuType: "Menu Type",
1232
+ menuCode: "Menu Code",
1233
+ permissionCode: "Permission Code",
1234
+ permissionName: "Permission Name",
1235
+ menuPath: "Menu Path",
1236
+ frameSrc: "Internal Link URI",
1237
+ externalURI: "External Link URI",
1238
+ redirect: "Redirect",
1239
+ i18nField: "Language Field",
1240
+ extraIcon: "Extra Icon",
1241
+ icon: "Icon",
1242
+ jobResult: "Job Result",
1243
+ endTime: "End Time",
1244
+ startTime: "Start Time",
1245
+ errorMessage: "Error Message",
1246
+ jobStatus: "Job Status",
1247
+ jobParam: "Job Param",
1248
+ jobHandler: "Job Handler",
1249
+ jobClassName: "Job ClassName",
1250
+ jobCron: "Job Cron",
1251
+ jobName: "Job Name",
1252
+ jobDescription: "Job Description",
1253
+ interfaceName: "Interface Name",
1254
+ interfaceUrl: "Interface Url",
1255
+ requestDate: "Request Date",
1256
+ requestStatus: "Request Status",
1257
+ requestParameter: "Request Parameter",
1258
+ responseTimeConsume: "Response TimeConsume(ms)",
1259
+ responseContent: "Response Content",
1260
+ stacktrace: "Stacktrace",
1261
+ status: "Status",
1262
+ email: "Email",
1263
+ userPassword: "Password",
1264
+ remarks: "Remarks",
1265
+ userPwd: "Password",
1266
+ unitName: "Department",
1267
+ employeeCode: "Employee Code",
1268
+ employeeName: "Employee Name",
1269
+ department: "Department",
1270
+ gender: "Sex",
1271
+ releateUser: "Releate User",
1272
+ identity: "Identity",
1273
+ employeeDate: "Employee Date",
1274
+ solarDay: "Solar Day",
1275
+ phone: "Phone",
1276
+ mobile: "Mobile",
1277
+ deptName: "Department Name",
1278
+ deptCode: "Department Code",
1279
+ deptType: "Department Type",
1280
+ deletePartment: "There are child levels in the department, please delete the child level first",
1281
+ lovCode: "LovCode",
1282
+ lovName: "lovName",
1283
+ valueField: "valueField",
1284
+ displayField: "displayField",
1285
+ lovTitle: "lovTitle",
1286
+ colField: "colField",
1287
+ colTitle: "colTitle",
1288
+ width: "width",
1289
+ dictDispose: "dictDispose",
1290
+ isSearch: "isSearch",
1291
+ isCol: "isCol"
1292
+ }, De = /* @__PURE__ */ Object.assign({ "./module/u-report.ts": Qt, "./module/u-workflow.ts": to, "./module/umsg.ts": no }), K = {};
1293
+ for (const e in De)
1294
+ K[e.replace(/(\.\/module\/|\.ts)/g, "")] = De[e].default;
1295
+ const Ie = Object.keys(K).filter((e) => K[e]).map((e) => K[e]), ro = {
1296
+ zh: {
1297
+ ...f.getItem(_t),
1298
+ message: de(ao, ...Ie.map((e) => e.zh.message))
1299
+ },
1300
+ en: {
1301
+ ...f.getItem(jt),
1302
+ message: Object.assign(so, ...Ie.map((e) => e.en.message))
1303
+ }
1304
+ };
1305
+ let $ = null;
1306
+ function io(e, t = { messages: {} }) {
1307
+ $ = Rt({
1308
+ legacy: !1,
1309
+ locale: f.getItem(`${w()}locale`)?.locale ?? "zh",
1310
+ fallbackLocale: "en",
1311
+ globalInjection: !0,
1312
+ messages: de(ro, t.messages)
1313
+ }), D.setLanguage("zh-CN"), e.use($);
1314
+ }
1315
+ const Y = () => $;
1316
+ function Ze(e = "", t = !0) {
1317
+ if (!e)
1318
+ return "";
1319
+ if (typeof e == "object") {
1320
+ const o = $.global.locale;
1321
+ return e[o.value];
1322
+ }
1323
+ return t ? $.global.t.call($.global, e) : e;
1324
+ }
1325
+ function lo(e, t) {
1326
+ return /* @__PURE__ */ _({
1327
+ name: e,
1328
+ components: {
1329
+ asyncComponent: t
1330
+ },
1331
+ setup() {
1332
+ return () => ze(se("async-component"), null, null);
1333
+ }
1334
+ });
1335
+ }
1336
+ const co = () => import("./layoutView-25v_ngk5.js"), uo = () => import("./frameView-5cy5BSgS.js");
1337
+ function H(e) {
1338
+ return e.forEach((t) => {
1339
+ t?.meta?.rank === null && (t.meta.rank = void 0), t?.meta?.rank === 0 && t.name !== "home" && t.path !== "/" && console.warn("rank only the home page can be 0");
1340
+ }), e.sort((t, o) => t?.meta?.rank - o?.meta?.rank);
1341
+ }
1342
+ function Xe(e) {
1343
+ const t = j(e, !0).filter((o) => o && o.meta?.showLink !== !1);
1344
+ return t.forEach((o) => o.children && (o.children = Xe(o.children))), t;
1345
+ }
1346
+ function la(e, t, o = "path") {
1347
+ function n(a, s, r) {
1348
+ for (let i = 0; i < a.length; i++) {
1349
+ const d = a[i];
1350
+ if (d[o] === s) return r;
1351
+ if (!(!d.children || !d.children.length)) {
1352
+ if (r.push(d.path), n(d.children, s, r).length) return r;
1353
+ r.pop();
1354
+ }
1355
+ }
1356
+ return [];
1357
+ }
1358
+ return n(t, e, []);
1359
+ }
1360
+ function et(e, t) {
1361
+ let o = t.find((n) => n.path == e);
1362
+ if (o)
1363
+ return we(o) ? be(o) : o;
1364
+ for (let n = 0; n < t.length; n++)
1365
+ if (t[n].children instanceof Array && t[n].children.length > 0 && (o = et(e, t[n].children), o))
1366
+ return we(o) ? be(o) : o;
1367
+ return null;
1368
+ }
1369
+ function mo() {
1370
+ g.hasRoute("pathMatch") || g.addRoute({
1371
+ path: "/:pathMatch(.*)",
1372
+ name: "pathMatch",
1373
+ redirect: "/error/404"
1374
+ });
1375
+ }
1376
+ function po() {
1377
+ const e = Y();
1378
+ e.global?.mergeLocaleMessage("zh", F.zh), e.global?.mergeLocaleMessage("en", F.en), f.setItem("menu_zh", F.zh), f.setItem("menu_en", F.en);
1379
+ }
1380
+ function Le(e) {
1381
+ if (e?.length) {
1382
+ const t = e.findIndex((n) => n.menuCode === "SysHome");
1383
+ if (t !== -1) {
1384
+ const n = [], a = [];
1385
+ e[t].children.forEach((s) => {
1386
+ s.menuCategory !== "1" ? n.push(s) : a.push(s);
1387
+ }), e[t].children = a, V().setHomeMenus(n);
1388
+ }
1389
+ const o = j(at(e), !0);
1390
+ po(), ee(o).map((n) => {
1391
+ const { options: a } = g;
1392
+ a.routes[0].children.findIndex((s) => s.path === n.path) === -1 && (g.options.routes[0].children.push(n), H(g.options.routes[0].children), g.hasRoute(n?.name) || g.addRoute(n));
1393
+ });
1394
+ }
1395
+ b().changeSetting(e), C().getMultiTagsCache || C().handleTags("equal", [
1396
+ ...W,
1397
+ ...b().flatteningRoutes.filter((t) => t?.meta?.fixedTag)
1398
+ ]), mo();
1399
+ }
1400
+ async function ho(e) {
1401
+ let t = [];
1402
+ const o = `U-${e}-ROUTES`;
1403
+ return I().CachingAsyncRoutes && await oe.getItem(o).then((n) => t = n), await Gt().then(async (n) => {
1404
+ V().setSystemInfo(n), await q().get("/uums/cusOrganization", { pageSize: 100, pageNum: 1, orgId: n.orgId }).then((a) => V().setInvOrgList(a?.list || []));
1405
+ }), t?.length ? new Promise((n) => {
1406
+ Le(t), ke({ userName: e }).then((a) => {
1407
+ oe.setItem(o, a);
1408
+ }), n(g);
1409
+ }) : new Promise((n) => {
1410
+ ke({ userName: e }).then((a) => {
1411
+ Le(j(a, !0)), oe.setItem(o, a), n(g);
1412
+ });
1413
+ });
1414
+ }
1415
+ function ee(e) {
1416
+ if (e.length === 0) return e;
1417
+ let t = ue(e);
1418
+ for (let o = 0; o < t.length; o++)
1419
+ t[o].children && (t = t.slice(0, o + 1).concat(t[o].children, t.slice(o + 1)));
1420
+ return t;
1421
+ }
1422
+ function tt(e) {
1423
+ if (e.length === 0) return e;
1424
+ const t = [];
1425
+ return e.forEach((o) => {
1426
+ o.path === "/" ? t.push({
1427
+ component: o.component,
1428
+ name: o.name,
1429
+ path: o.path,
1430
+ redirect: o.redirect,
1431
+ meta: o.meta,
1432
+ children: []
1433
+ }) : t[0].children.push({ ...o });
1434
+ }), t;
1435
+ }
1436
+ function ot({ name: e }, t) {
1437
+ switch (t) {
1438
+ case "add":
1439
+ b().cacheOperate({ mode: "add", name: e });
1440
+ break;
1441
+ case "delete":
1442
+ b().cacheOperate({ mode: "delete", name: e });
1443
+ break;
1444
+ case "refresh":
1445
+ b().cacheOperate({ mode: "refresh", name: e });
1446
+ break;
1447
+ default:
1448
+ b().cacheOperate({ mode: "delete", name: e }), Mt(() => {
1449
+ b().cacheOperate({ mode: "add", name: e });
1450
+ }, 100);
1451
+ }
1452
+ }
1453
+ const F = {
1454
+ zh: {},
1455
+ en: {}
1456
+ }, nt = [], at = (e) => {
1457
+ const t = Oo();
1458
+ if (!e || !e.length) return;
1459
+ const o = Object.keys(t);
1460
+ for (let n = 0; n < e.length; n++) {
1461
+ const a = e[n];
1462
+ a?.children && a.children.length && !a.redirect && (a.redirect = a.children[0].path);
1463
+ const { icon: s, permissionCode: r, extraIcon: i, frameSrc: d } = a;
1464
+ if (a.isApprovalPage === "Y" && nt.push(a), a.meta = {
1465
+ keepAlive: !0,
1466
+ rank: a.sort,
1467
+ title: `${a.i18nField}`,
1468
+ // 审批流设计页面和审批页面的code写死,只需配置页面即可(保底方式)
1469
+ // showLink: !['UDPFlowTask'].includes(v.menuCode) ? null : false
1470
+ showLink: a.showLink !== "N"
1471
+ }, a.hiddenTag = null, Object.assign(a.meta, { icon: s, permissionCode: r, extraIcon: i, frameSrc: d }), F.zh[a.i18nField] = a.menuName || a.menuNameEn, F.en[a.i18nField] = a.menuNameEn || a.menuName, a.name = a.menuCode || a.name, a.path = a.menuPath || a.path, !a.parentId)
1472
+ a.component = co;
1473
+ else if (a.meta?.frameSrc)
1474
+ a.component = uo;
1475
+ else if (a.menuCategory === "10") {
1476
+ const c = o.findIndex((u) => u.includes("lowcode-contain"));
1477
+ a.component = lo(
1478
+ a.name,
1479
+ ht(() => import(
1480
+ /* @vite-ignore */
1481
+ o[c]
1482
+ ))
1483
+ ), Object.assign(a.meta, { moduleType: a.moduleType });
1484
+ } else if (a.menuCategory !== "5") {
1485
+ const c = o.findIndex((u) => u.includes(a.path));
1486
+ if (a.component = t[o[c]], a.menuCategory === "3" && a.name.includes("${access_token}")) {
1487
+ let u = a.name;
1488
+ const y = JSON.parse(U.get(He));
1489
+ u = a.name.replace("${access_token}", y.accessToken), u = a.name.includes("${refresh_token}") ? u.replace("${refresh_token}", y.refreshToken) : u, u = a.name.includes("${expires_in}") ? u.replace("${expires_in}", y.expires) : u, a.name = u;
1490
+ }
1491
+ }
1492
+ a?.children && a.children.length ? at(a.children) : delete a.children;
1493
+ }
1494
+ return e;
1495
+ };
1496
+ function fo(e, t = !0) {
1497
+ const o = C().multiTags.findIndex((n) => {
1498
+ if (e.query) {
1499
+ if (e.path === n.path)
1500
+ return e.query === n.query;
1501
+ } else
1502
+ return e.path === n.path;
1503
+ });
1504
+ if (C().handleTags("splice", "", { startIndex: o, length: 1 }), ot(e.matched, "delete"), t) {
1505
+ const n = C().handleTags("slice");
1506
+ g.push({
1507
+ path: n[0].path,
1508
+ query: n[0].query
1509
+ });
1510
+ }
1511
+ }
1512
+ function go(e) {
1513
+ return e?.children && e.children.length > 1 ? e.redirect ? e.children.filter((t) => t.path === e.redirect)[0] : e.children[0] : e;
1514
+ }
1515
+ function ca(e = !1) {
1516
+ const t = go(b().wholeMenus[0]?.children[0]);
1517
+ return e && C().handleTags("push", t), t;
1518
+ }
1519
+ function yo() {
1520
+ return nt;
1521
+ }
1522
+ const wo = () => import("./layoutView-25v_ngk5.js"), bo = {
1523
+ path: "/",
1524
+ name: "home",
1525
+ component: wo,
1526
+ redirect: "/welcome",
1527
+ meta: {
1528
+ icon: "home-filled",
1529
+ title: "message.udp.home",
1530
+ rank: 0
1531
+ },
1532
+ children: [
1533
+ {
1534
+ path: "/welcome",
1535
+ name: "UdpWelcome",
1536
+ component: () => import("./su-welcome-CXA6OzBw.js"),
1537
+ meta: {
1538
+ title: "message.udp.home",
1539
+ keepAlive: !0
1540
+ }
1541
+ }
1542
+ ]
1543
+ }, vo = () => import("./layoutView-25v_ngk5.js"), To = {
1544
+ path: "/error",
1545
+ name: "error",
1546
+ component: vo,
1547
+ redirect: "/error/403",
1548
+ meta: {
1549
+ showLink: !1,
1550
+ icon: "information-line",
1551
+ title: "message.udp.error",
1552
+ rank: 999
1553
+ },
1554
+ children: [
1555
+ {
1556
+ path: "/error/403",
1557
+ name: "403",
1558
+ component: () => import("./403-gdcH0-Bo.js"),
1559
+ meta: {
1560
+ title: "message.udp.fourZeroThree"
1561
+ }
1562
+ }
1563
+ ]
1564
+ }, Co = () => import("./layoutView-25v_ngk5.js"), z = [
1565
+ {
1566
+ path: "/login",
1567
+ name: "login",
1568
+ component: () => import("./login-Cmp2RvvW.js"),
1569
+ meta: {
1570
+ title: "message.udp.login",
1571
+ showLink: !1
1572
+ }
1573
+ },
1574
+ {
1575
+ path: "/error/404",
1576
+ name: "404",
1577
+ component: () => import("./404-Se2SF97M.js"),
1578
+ meta: {
1579
+ title: "message.udp.fourZeroFour",
1580
+ showLink: !1
1581
+ }
1582
+ },
1583
+ {
1584
+ path: "/error/500",
1585
+ name: "500",
1586
+ component: () => import("./500-B6j9AqLo.js"),
1587
+ meta: {
1588
+ title: "message.udp.five",
1589
+ showLink: !1
1590
+ }
1591
+ },
1592
+ {
1593
+ path: "/redirect",
1594
+ name: "redirect",
1595
+ component: Co,
1596
+ meta: {
1597
+ icon: "home-filled",
1598
+ title: "message.udp.home",
1599
+ showLink: !1,
1600
+ rank: 104
1601
+ },
1602
+ children: [
1603
+ {
1604
+ path: "/redirect/:path(.*)",
1605
+ // 2024-12-17
1606
+ name: "redirectView",
1607
+ component: () => import("./redirect-DTz8GSnv.js")
1608
+ }
1609
+ ]
1610
+ }
1611
+ ], So = () => import("./layoutView-25v_ngk5.js"), ko = {
1612
+ component: So,
1613
+ path: "/utask",
1614
+ redirect: "/utask/task/flow-task",
1615
+ meta: {
1616
+ showLink: !1,
1617
+ icon: "IF-pure-iconfont-tabs",
1618
+ title: "message.udp.flowTask"
1619
+ },
1620
+ children: [
1621
+ // query 传参模式
1622
+ {
1623
+ path: "/utask/task/flow-task",
1624
+ name: "FlowTask",
1625
+ component: () => import("./flow-task-PoDnE_kE.js"),
1626
+ meta: {
1627
+ // 不在menu菜单中显示
1628
+ title: "",
1629
+ showLink: !1,
1630
+ activePath: "/uflow/index"
1631
+ }
1632
+ }
1633
+ ]
1634
+ }, xo = /* @__PURE__ */ Object.assign({
1635
+ "../views/organization/company/Company.vue": () => import("./Company-BzSVBSC4.js"),
1636
+ "../views/organization/company/CompanyPanel.vue": () => import("./CompanyPanel-DBjZB4aJ.js"),
1637
+ "../views/organization/department/Department.vue": () => import("./Department-BkgseHo8.js"),
1638
+ "../views/organization/department/DepartmentPanel.vue": () => import("./DepartmentPanel-Sen93_2M.js"),
1639
+ "../views/organization/inv-org/InvOrganization.vue": () => import("./InvOrganization-D0Jq1IAa.js"),
1640
+ "../views/organization/org/Org.vue": () => import("./Org-CO_1WT39.js"),
1641
+ "../views/organization/staff/Staff.vue": () => import("./Staff-BeL1xcRf.js"),
1642
+ "../views/organization/staff/StaffInfo.vue": () => import("./StaffInfo-CIfnltyX.js"),
1643
+ "../views/organization/staff/StaffPanel.vue": () => import("./StaffPanel-BV2CHWac.js"),
1644
+ "../views/system/cron/cron-task.vue": () => import("./cron-task-B0TkxFdp.js"),
1645
+ "../views/system/layout/layout-home.vue": () => import("./layout-home-DrARg-3o.js"),
1646
+ "../views/system/menu/AuthorityPanel.vue": () => import("./AuthorityPanel-lVnZ5bce.js"),
1647
+ "../views/system/menu/SystemMenu.vue": () => import("./SystemMenu-sdj1dRDA.js"),
1648
+ "../views/system/menu/menuInfo.vue": () => import("./menuInfo-BIvrE7nm.js"),
1649
+ "../views/system/role-assign/RoleAssign.vue": () => import("./RoleAssign-BrunouML.js"),
1650
+ "../views/system/role-assign/RolePanel.vue": () => import("./RolePanel-HLA7XBlN.js"),
1651
+ "../views/system/role/AuthorityInfo.vue": () => import("./AuthorityInfo-CQ8ydZvr.js"),
1652
+ "../views/system/role/Role.vue": () => import("./Role-Df77BBD-.js"),
1653
+ "../views/system/role/RolePanel.vue": () => import("./RolePanel-DSVwqhiD.js"),
1654
+ "../views/system/role/UserInfo.vue": () => import("./UserInfo-CTX4hhFl.js"),
1655
+ "../views/system/sys/sys-config.vue": () => import("./sys-config-CqO03LeC.js"),
1656
+ "../views/system/sysUser/SysUser.vue": () => import("./SysUser-DPfNvthk.js"),
1657
+ "../views/system/sysUser/SysUserPanel.vue": () => import("./SysUserPanel-CoLKYlQE.js"),
1658
+ "../views/uapp/pda/pda-app.vue": () => import("./pda-app-CzHVyeEa.js"),
1659
+ "../views/udev/coderule/code-rule.vue": () => import("./code-rule-cvN4gYC_.js"),
1660
+ "../views/udev/dict/DictView.vue": () => import("./DictView-CJLG4LlE.js"),
1661
+ "../views/udev/dict/childView.vue": () => import("./childView-BDmWwJO5.js"),
1662
+ "../views/udev/lov/childView.vue": () => import("./childView-Dx3ACtHa.js"),
1663
+ "../views/udev/lov/lov-view.vue": () => import("./lov-view-BATtzw2X.js"),
1664
+ "../views/udev/wx/wecom-push.vue": () => import("./wecom-push-B75FLee5.js"),
1665
+ "../views/upms/interface/log-in.vue": () => import("./log-in-Bmz5Uhbt.js"),
1666
+ "../views/upms/interface/log-out.vue": () => import("./log-out-B-8m3oNj.js"),
1667
+ "../views/upms/user/login-log.vue": () => import("./login-log-CVvRgZSu.js"),
1668
+ "../views/urpt/dataSet/DataSet.vue": () => import("./DataSet-iBHzs75s.js"),
1669
+ "../views/urpt/design/DesignPanel.vue": () => import("./DesignPanel-pqDcwaFC.js"),
1670
+ "../views/urpt/design/Preview.vue": () => import("./Preview-DLI4Bwel.js"),
1671
+ "../views/urpt/design/ReportDesign.vue": () => import("./ReportDesign-D4sHTXT7.js"),
1672
+ "../views/urpt/query/ReportQuery.vue": () => import("./ReportQuery-DtOCvQSN.js"),
1673
+ "../views/urpt/query/ReportQueryFrom.vue": () => import("./ReportQueryFrom-QjL-ETPq.js"),
1674
+ "../views/urpt/report-request/ReportDefine.vue": () => import("./ReportDefine-Cw46OnJ_.js"),
1675
+ "../views/urpt/static-resource/resource.vue": () => import("./resource-Y5lGB38n.js"),
1676
+ "../views/urpt/template/ReportTemplate.vue": () => import("./ReportTemplate-BxAgc_Aj.js")
1677
+ }), Po = z, me = [bo, To, ko], Do = tt(
1678
+ ee(ue(H(me)))
1679
+ ), Io = H(me).concat(...z), ua = Object.keys(z).map((e) => z[e].path), Lo = /* @__PURE__ */ new Set();
1680
+ function Mo() {
1681
+ Lo.clear();
1682
+ }
1683
+ function Ro() {
1684
+ g.getRoutes().forEach((e) => {
1685
+ const { name: t, meta: o } = e;
1686
+ t && g.hasRoute(t) && o?.backstage && (g.removeRoute(t), g.options.routes = tt(ee(ue(H(me)))));
1687
+ }), b().clearAllCachePage(), Mo();
1688
+ }
1689
+ let ie = null, g = null;
1690
+ function No(e, t) {
1691
+ ie = e, g = t, Object.assign(ie, xo);
1692
+ }
1693
+ function Oo() {
1694
+ return ie;
1695
+ }
1696
+ const Eo = ["/login"], Ao = (e, t) => {
1697
+ const o = U.get(Ge), n = Ve(e?.name);
1698
+ function a() {
1699
+ return Eo.includes(e.fullPath) ? t.fullPath : void 0;
1700
+ }
1701
+ if (t?.name && t?.name !== "login") {
1702
+ const s = e.matched.find((r) => r.path === e.path || r.name === e.name && e.params)?.components;
1703
+ if (n)
1704
+ vt(e?.name), Tt?.done();
1705
+ else if (s?.default || e.name === "redirect")
1706
+ a();
1707
+ else
1708
+ return { path: "/error/404" };
1709
+ } else
1710
+ b().wholeMenus.length === 0 && ho(o).then((s) => {
1711
+ if (!C().getMultiTagsCache) {
1712
+ const { path: r } = e, d = xt(z, (u) => u.path === r) === -1 ? s.options.routes[0].children : s.options.routes, c = et(r, d);
1713
+ if (c && c.meta?.title) {
1714
+ const { path: u, name: y, meta: L } = c;
1715
+ C().handleTags("push", { path: u, name: y, meta: L });
1716
+ }
1717
+ }
1718
+ Pt(e.name) && s.push(e.fullPath);
1719
+ }), 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();
1720
+ }, G = {
1721
+ onBeforeLogined: () => {
1722
+ },
1723
+ onLogined: () => {
1724
+ },
1725
+ onBeforeLogout: () => {
1726
+ },
1727
+ onAfterLogout: () => {
1728
+ }
1729
+ }, da = () => {
1730
+ G.onBeforeLogined();
1731
+ }, ma = () => {
1732
+ G.onLogined();
1733
+ }, pa = () => {
1734
+ G.onBeforeLogout();
1735
+ }, ha = () => {
1736
+ G.onAfterLogout();
1737
+ }, Fo = (e, t) => {
1738
+ const o = [];
1739
+ for (const n of e)
1740
+ n[t] && o.push(n[t]);
1741
+ return Array.from(new Set(o));
1742
+ }, st = (e) => {
1743
+ const t = e.replace("#", "").match(/../g);
1744
+ for (let o = 0; o < 3; o++) t[o] = parseInt(t[o], 16);
1745
+ return t;
1746
+ }, rt = (e, t, o) => {
1747
+ const n = [e.toString(16), t.toString(16), o.toString(16)];
1748
+ for (let a = 0; a < 3; a++)
1749
+ n[a].length == 1 && (n[a] = `0${n[a]}`);
1750
+ return `#${n.join("")}`;
1751
+ }, Uo = (e, t) => {
1752
+ const o = st(e);
1753
+ for (let n = 0; n < 3; n++) o[n] = Math.floor(o[n] * (1 - t));
1754
+ return rt(o[0], o[1], o[2]);
1755
+ }, $o = (e, t) => {
1756
+ const o = st(e);
1757
+ for (let n = 0; n < 3; n++) o[n] = Math.floor((255 - o[n]) * t + o[n]);
1758
+ return rt(o[0], o[1], o[2]);
1759
+ }, _o = B("udp-permission", {
1760
+ state: () => ({
1761
+ // 静态路由生成的菜单
1762
+ constantMenus: Io,
1763
+ // 整体路由生成的菜单(静态、动态)
1764
+ wholeMenus: [],
1765
+ // 深拷贝一个菜单树,与导航菜单不冲突
1766
+ menusTree: [],
1767
+ // 整体路由(一维数组格式)
1768
+ flatteningRoutes: [],
1769
+ buttonAuth: [],
1770
+ // 缓存页面keepAlive
1771
+ cachePageList: []
1772
+ }),
1773
+ getters: {
1774
+ getButtonAuth() {
1775
+ return this.buttonAuth;
1776
+ }
1777
+ },
1778
+ actions: {
1779
+ asyncActionRoutes(e = []) {
1780
+ if (this.wholeMenus.length > 0) return;
1781
+ const t = Dt(e, (n) => n.menuCode === "SysHome"), o = j(this.constantMenus, !0);
1782
+ if (t !== -1) {
1783
+ const n = this.constantMenus.find((a) => a.name === "home");
1784
+ e[t].children && n.children.push(...e[t].children), e.splice(t, 1);
1785
+ }
1786
+ this.wholeMenus = Xe(H(this.constantMenus.concat(e))), this.flatteningRoutes = ee(this.constantMenus.concat(e)), this.menusTree = j(this.wholeMenus, !0), this.constantMenus = o;
1787
+ },
1788
+ async changeSetting(e) {
1789
+ await this.asyncActionRoutes(e);
1790
+ },
1791
+ setAuthButton(e) {
1792
+ this.buttonAuth = e;
1793
+ },
1794
+ setWholeMenus(e) {
1795
+ this.wholeMenus = e;
1796
+ },
1797
+ /** 监听缓存页面是否存在于标签页,不存在则删除 */
1798
+ clearCache() {
1799
+ let e = this.cachePageList.length;
1800
+ const t = Fo(C().multiTags, "name");
1801
+ for (; e > 0; )
1802
+ t.findIndex((o) => o === this.cachePageList[e - 1]) === -1 && this.cachePageList.splice(this.cachePageList.indexOf(this.cachePageList[e - 1]), 1), e--;
1803
+ },
1804
+ cacheOperate({ mode: e, name: t }) {
1805
+ const o = this.cachePageList.findIndex((n) => n === t);
1806
+ switch (e) {
1807
+ case "refresh":
1808
+ this.cachePageList = this.cachePageList.filter((n) => n !== t), this.clearCache();
1809
+ break;
1810
+ case "add":
1811
+ this.cachePageList.push(t);
1812
+ break;
1813
+ case "delete":
1814
+ o !== -1 && this.cachePageList.splice(o, 1), this.clearCache();
1815
+ break;
1816
+ case "reset":
1817
+ this.cachePageList = [];
1818
+ break;
1819
+ }
1820
+ },
1821
+ /** 清空缓存页面 */
1822
+ clearAllCachePage() {
1823
+ this.wholeMenus = [], this.menusTree = [], this.buttonAuth = [], this.cachePageList = [];
1824
+ }
1825
+ }
1826
+ });
1827
+ function b() {
1828
+ return _o(E);
1829
+ }
1830
+ const jo = B("udp-system", {
1831
+ state: () => ({
1832
+ baseURL: "",
1833
+ userInfo: {},
1834
+ systemInfo: {},
1835
+ dataDict: {},
1836
+ sysConfig: {},
1837
+ menui18n: {},
1838
+ i18n: {},
1839
+ dicts: [],
1840
+ orgList: [],
1841
+ invOrgList: [],
1842
+ homeMenus: [],
1843
+ roleList: [],
1844
+ sessionKey: "",
1845
+ orgId: "",
1846
+ userName: "",
1847
+ organizationId: "",
1848
+ password: "",
1849
+ isAdminRole: !1
1850
+ }),
1851
+ getters: {
1852
+ getBaseURL() {
1853
+ return this.baseURL;
1854
+ },
1855
+ getUserInfo() {
1856
+ return this.userInfo;
1857
+ },
1858
+ getSysConfig() {
1859
+ return this.sysConfig;
1860
+ },
1861
+ getEmployee() {
1862
+ return this.employee;
1863
+ },
1864
+ getSessionKey() {
1865
+ return this.sessionKey;
1866
+ },
1867
+ getMenuI18n() {
1868
+ return this.menui18n;
1869
+ },
1870
+ getI18n() {
1871
+ return this.i18n;
1872
+ },
1873
+ getOrglist() {
1874
+ return this.orgList;
1875
+ },
1876
+ getOrgId() {
1877
+ return this.orgId;
1878
+ },
1879
+ getOrganizationId() {
1880
+ return this.organizationId;
1881
+ },
1882
+ getDataDict() {
1883
+ return this.dataDict;
1884
+ },
1885
+ getUserName() {
1886
+ return this.userName;
1887
+ },
1888
+ getAdminRole(e) {
1889
+ return e.isAdminRole;
1890
+ },
1891
+ getPassword(e) {
1892
+ return e.password;
1893
+ },
1894
+ getHomeMenus(e) {
1895
+ return e.homeMenus;
1896
+ },
1897
+ getRoleList(e) {
1898
+ return e.roleList;
1899
+ },
1900
+ getOrganizationCode(e) {
1901
+ return e.invOrgList?.find((t) => t.id === e.organizationId)?.organizationCode;
1902
+ },
1903
+ getOrg(e) {
1904
+ return e.orgList.find((t) => t.id === e.orgId);
1905
+ }
1906
+ },
1907
+ actions: {
1908
+ // baseURL
1909
+ setBaseURL(e) {
1910
+ this.sessionKey = e;
1911
+ },
1912
+ setSessionKey(e) {
1913
+ this.sessionKey = e.access_token || e;
1914
+ },
1915
+ // sysConfig
1916
+ setSysConfig(e) {
1917
+ this.sysConfig = e;
1918
+ },
1919
+ // orgId
1920
+ setOrgId(e) {
1921
+ this.orgId = e;
1922
+ },
1923
+ setOrganizationId(e) {
1924
+ this.organizationId = e;
1925
+ },
1926
+ setMenuI18n(e) {
1927
+ this.menui18n = e;
1928
+ },
1929
+ setI18n(e) {
1930
+ this.i18n = e;
1931
+ },
1932
+ setUserName(e) {
1933
+ this.userName = e;
1934
+ },
1935
+ // 首页子菜单列表
1936
+ setHomeMenus(e) {
1937
+ this.homeMenus = e;
1938
+ },
1939
+ // 库存组织列表
1940
+ setInvOrgList(e) {
1941
+ this.invOrgList = e;
1942
+ },
1943
+ setOrgList(e) {
1944
+ this.orgList = e;
1945
+ },
1946
+ setPassword(e) {
1947
+ this.password = e;
1948
+ },
1949
+ setDict(e) {
1950
+ this.dicts = e, e?.forEach((t) => {
1951
+ this.dataDict[t.dictCode] = t;
1952
+ }), f.setItem("kLov", this.dataDict);
1953
+ },
1954
+ // 系统信息
1955
+ setSystemInfo(e) {
1956
+ this.systemInfo = e;
1957
+ const t = e.employeeList?.length ? e.employeeList[0] : "";
1958
+ this.userInfo = e.user || {}, this.employee = Object.assign({}, t, e.user), this.orgId = e.orgId, this.organizationId = e.organizationId, this.orgList = e.orgList, this.roleList = e.user?.sysRoles;
1959
+ const o = {
1960
+ orgId: e.orgId,
1961
+ organizationId: e.organizationId
1962
+ };
1963
+ U.set("kCookies_param", JSON.stringify(o)), this.isAdminRole = this.employee.sysRoles.some((n) => n.roleCode === "admin" || ["管理员"].includes(n.roleName)), b().setAuthButton(e.dataMenus);
1964
+ }
1965
+ }
1966
+ });
1967
+ function V() {
1968
+ return jo(E);
1969
+ }
1970
+ const zo = _({
1971
+ name: "app",
1972
+ components: {
1973
+ [Te.name]: Te
1974
+ },
1975
+ computed: {
1976
+ currentLocale() {
1977
+ return this.$storage?.locale?.locale === "zh" ? Ft : At;
1978
+ }
1979
+ },
1980
+ async beforeCreate() {
1981
+ await q().get("/upfm/v1/sysConfig", {}).then((e) => {
1982
+ const t = {};
1983
+ e.list?.forEach((n) => {
1984
+ t[n.configCode] = n.configValue, n.fileName && (t[n.configCode] = x() + "/ufil" + n.configValue);
1985
+ });
1986
+ const o = e.list?.find((n) => n.configCode === "title")?.configValue;
1987
+ t.title = o || "U-DP", f.setItem(Vt, t), t.releaseNote !== !1 && this.pollingVersion(t.title);
1988
+ });
1989
+ },
1990
+ mounted() {
1991
+ Ye().then((e) => V().setDict(e));
1992
+ },
1993
+ methods: {
1994
+ // / 版本实时更新检测,只作用于线上环境
1995
+ pollingVersion(e) {
1996
+ const t = A().VITE_ROUTER_HISTORY;
1997
+ bt(
1998
+ {
1999
+ pollingTime: 3e5,
2000
+ checkOriginSpecifiedFilesUrl: [`${location.origin}${t ? `/${t}` : ""}/index.html`],
2001
+ enable: process.env.NODE_ENV !== "development"
2002
+ },
2003
+ {
2004
+ title: e,
2005
+ description: this.$t("message.udp.newVersion"),
2006
+ buttonText: this.$t("message.udp.updatenow"),
2007
+ cancelButtonText: this.$t("message.udp.updateLater")
2008
+ }
2009
+ );
2010
+ }
2011
+ }
2012
+ }), Vo = (e, t) => {
2013
+ const o = e.__vccOpts || e;
2014
+ for (const [n, a] of t)
2015
+ o[n] = a;
2016
+ return o;
2017
+ };
2018
+ function Bo(e, t, o, n, a, s) {
2019
+ const r = se("router-view"), i = se("el-config-provider");
2020
+ return ft(), gt(i, {
2021
+ size: "small",
2022
+ "z-index": 5555,
2023
+ locale: e.currentLocale
2024
+ }, {
2025
+ default: yt(() => [
2026
+ ze(r)
2027
+ ]),
2028
+ _: 1
2029
+ }, 8, ["locale"]);
2030
+ }
2031
+ const qo = /* @__PURE__ */ Vo(zo, [["render", Bo]]);
2032
+ Ct(qe, { serviceApi: q(), i18n: Ze });
2033
+ Jo();
2034
+ const Wo = {
2035
+ // 对组件内置的提示语进行国际化翻译
2036
+ // @ts-ignore
2037
+ i18n: (e, t) => Y().global.t(e, t),
2038
+ // 可选,对参数中的列头、校验提示..等进行自动翻译(只对支持国际化的有效)
2039
+ translate(e) {
2040
+ return e && ["message.", "el."].findIndex((o) => e.includes(o)) !== -1 ? Y().global.t.call(Y().global.locale, e) : e;
2041
+ }
2042
+ };
2043
+ function Ho(e = {}) {
2044
+ qe.setConfig(de(Wo, e)), D.interceptor.add("event.clearEdit", {
2045
+ tableInterceptorMethod(t) {
2046
+ const { $event: o } = t;
2047
+ if (o.target.className.indexOf("vxe-table--ignore-clear") > -1) return !1;
2048
+ }
2049
+ });
2050
+ }
2051
+ function Go(e) {
2052
+ D.setTheme(e);
2053
+ }
2054
+ function Jo() {
2055
+ D.commands.add("utTodyay", {
2056
+ dateRangePickerCommandMethod({ $dateRangePicker: e }) {
2057
+ const t = v(/* @__PURE__ */ new Date(), "yyyy-MM-dd 00:00:00"), o = v(/* @__PURE__ */ new Date(), "yyyy-MM-dd 23:59:59");
2058
+ e.setModelValue(t, o);
2059
+ }
2060
+ }), D.commands.add("utYesterDay", {
2061
+ dateRangePickerCommandMethod({ $dateRangePicker: e }) {
2062
+ const t = v(O(/* @__PURE__ */ new Date(), -1), "yyyy-MM-dd 00:00:00"), o = v(O(/* @__PURE__ */ new Date(), -1), "yyyy-MM-dd 23:59:59");
2063
+ e.setModelValue(t, o);
2064
+ }
2065
+ }), D.commands.add("utRecentWeek", {
2066
+ dateRangePickerCommandMethod({ $dateRangePicker: e }) {
2067
+ const t = v(O(/* @__PURE__ */ new Date(), -7), "yyyy-MM-dd 00:00:00"), o = v(/* @__PURE__ */ new Date(), "yyyy-MM-dd 23:59:59");
2068
+ e.setModelValue(t, o);
2069
+ }
2070
+ }), D.commands.add("utRecentMonth", {
2071
+ dateRangePickerCommandMethod({ $dateRangePicker: e }) {
2072
+ const t = v(O(/* @__PURE__ */ new Date(), -30), "yyyy-MM-dd 00:00:00"), o = v(/* @__PURE__ */ new Date(), "yyyy-MM-dd 23:59:59");
2073
+ e.setModelValue(t, o);
2074
+ }
2075
+ }), D.commands.add("utRecentThreeMonth", {
2076
+ dateRangePickerCommandMethod({ $dateRangePicker: e }) {
2077
+ const t = v(O(/* @__PURE__ */ new Date(), -90), "yyyy-MM-dd 00:00:00"), o = v(/* @__PURE__ */ new Date(), "yyyy-MM-dd 23:59:59");
2078
+ e.setModelValue(t, o);
2079
+ }
2080
+ }), D.commands.add("utRecentHalfYear", {
2081
+ dateRangePickerCommandMethod({ $dateRangePicker: e }) {
2082
+ const t = v(O(/* @__PURE__ */ new Date(), -180), "yyyy-MM-dd 00:00:00"), o = v(/* @__PURE__ */ new Date(), "yyyy-MM-dd 23:59:59");
2083
+ e.setModelValue(t, o);
2084
+ }
2085
+ }), D.commands.add("utRecentYear", {
2086
+ dateRangePickerCommandMethod({ $dateRangePicker: e }) {
2087
+ const t = v(O(/* @__PURE__ */ new Date(), -365), "yyyy-MM-dd 00:00:00"), o = v(/* @__PURE__ */ new Date(), "yyyy-MM-dd 23:59:59");
2088
+ e.setModelValue(t, o);
2089
+ }
2090
+ });
2091
+ }
2092
+ var pe = Object.defineProperty, Ko = Object.getOwnPropertyDescriptor, Yo = Object.getOwnPropertyNames, Qo = Object.prototype.hasOwnProperty, Zo = (e, t, o) => t in e ? pe(e, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[t] = o, Xo = (e, t) => {
2093
+ for (var o in t) pe(e, o, { get: t[o], enumerable: !0 });
2094
+ }, en = (e, t, o, n) => {
2095
+ if (t && typeof t == "object" || typeof t == "function") for (let a of Yo(t)) !Qo.call(e, a) && a !== o && pe(e, a, { get: () => t[a], enumerable: !(n = Ko(t, a)) || n.enumerable });
2096
+ return e;
2097
+ }, tn = (e, t, o) => (en(e, t, "default"), o), Me = (e, t, o) => (Zo(e, typeof t != "symbol" ? t + "" : t, o), o), he = {};
2098
+ Xo(he, { Vue: () => je });
2099
+ tn(he, je);
2100
+ var Z = class {
2101
+ static install(e, t) {
2102
+ let { nameSpace: o = this._nameSpace, memory: n } = t;
2103
+ return n && this.clearAll(o, n), new Z(e, t);
2104
+ }
2105
+ static clearAll(e, t) {
2106
+ Object.keys(t).forEach((o) => {
2107
+ let n = e + o;
2108
+ Object.prototype.hasOwnProperty.call(window.localStorage, n) && window.localStorage.removeItem(n);
2109
+ });
2110
+ }
2111
+ static get(e) {
2112
+ return JSON.parse(window.localStorage.getItem(e));
2113
+ }
2114
+ static set(e, t) {
2115
+ t = typeof t == "object" ? JSON.stringify(t) : t, window.localStorage.setItem(e, t);
2116
+ }
2117
+ static getData(e, t) {
2118
+ if (Object.prototype.hasOwnProperty.call(window.localStorage, this._getStaticKey(t, e))) return JSON.parse(window.localStorage.getItem(this._getStaticKey(t, e)));
2119
+ }
2120
+ constructor(e, t) {
2121
+ let o = Z, { version: n = 3, nameSpace: a = o._nameSpace, memory: s } = t, r = (c) => a + c, i = n === 3 ? (0, he.reactive)(s) : s;
2122
+ Object.keys(i).length === 0 && console.warn("key cannot be empty"), Object.keys(i).forEach((c) => {
2123
+ let u = i[c];
2124
+ o.set(r(c), u), Reflect.defineProperty(i, c, { get: () => o.get(r(c)), set: (y) => o.set(r(c), y), configurable: !0 }), n === 2 && e.util.defineReactive(i, c, i[c]);
2125
+ });
2126
+ let d = n === 3 ? e.config.globalProperties : e.prototype;
2127
+ Reflect.defineProperty(d, "$storage", { get: () => i });
2128
+ }
2129
+ }, R = Z;
2130
+ Me(R, "_nameSpace", "rs-"), Me(R, "_getStaticKey", (e, t) => `${e ?? Z._nameSpace}${t}`);
2131
+ const on = (e, t) => {
2132
+ const o = w(), n = Object.assign(
2133
+ {
2134
+ // 国际化 默认中文zh
2135
+ locale: R.getData("locale", o) ?? {
2136
+ locale: t.Locale ?? "zh"
2137
+ },
2138
+ // layout模式以及主题
2139
+ layout: R.getData("layout", o) ?? {
2140
+ layout: t.Layout ?? "vertical",
2141
+ theme: t.Theme ?? "default",
2142
+ darkMode: t.DarkMode ?? !1,
2143
+ sidebarStatus: t.SidebarStatus ?? !0,
2144
+ epThemeColor: t.EpThemeColor ?? "#409EFF",
2145
+ themeColor: t.Theme ?? "light",
2146
+ // 主题色(对应项目配置中的主题色,与theme不同的是它不会受到浅色、深色主题模式切换的影响,只会在手动点击主题色时改变)
2147
+ overallStyle: t.OverallStyle ?? "light"
2148
+ // 主题模式(浅色:light、深色:dark、自动:system)
2149
+ },
2150
+ configure: R.getData("configure", o) ?? {
2151
+ grey: t.Grey ?? !1,
2152
+ weak: t.Weak ?? !1,
2153
+ hideTabs: t.HideTabs ?? !1,
2154
+ showLogo: t.ShowLogo ?? !0,
2155
+ showModel: t.ShowModel ?? "smart",
2156
+ multiTagsCache: t.MultiTagsCache ?? !1
2157
+ },
2158
+ cnd: R.getData("cnd", o) ?? {}
2159
+ },
2160
+ t.MultiTagsCache ? {
2161
+ // 默认显示首页tag
2162
+ tags: R.getData("tags", o) ?? W
2163
+ } : {}
2164
+ );
2165
+ e.use(R, { nameSpace: o, memory: n });
2166
+ }, it = (e) => {
2167
+ if (!e) return !0;
2168
+ const t = g.currentRoute.value.meta?.permissionCode;
2169
+ if (!t) return !0;
2170
+ It(e) || (e = [e]);
2171
+ const o = b().getButtonAuth;
2172
+ if (!o) return !0;
2173
+ let n = !1;
2174
+ return e.forEach((a) => {
2175
+ if (!n) {
2176
+ const s = `${t}.${a}`;
2177
+ n = o.includes(s);
2178
+ }
2179
+ }), n;
2180
+ }, lt = (e = "fetch", t = "edit") => {
2181
+ if (!e) return !0;
2182
+ const o = g.currentRoute.value.meta?.permissionCode;
2183
+ if (!o) return !0;
2184
+ const n = b().getButtonAuth;
2185
+ if (!n) return !0;
2186
+ const a = `${o}.${e}`;
2187
+ return n.includes(a) && !n.includes(`${o}.${t}`);
2188
+ }, ct = Object.freeze(
2189
+ {
2190
+ left: 0,
2191
+ top: 0,
2192
+ width: 16,
2193
+ height: 16
2194
+ }
2195
+ ), X = Object.freeze({
2196
+ rotate: 0,
2197
+ vFlip: !1,
2198
+ hFlip: !1
2199
+ }), fe = Object.freeze({
2200
+ ...ct,
2201
+ ...X
2202
+ }), le = Object.freeze({
2203
+ ...fe,
2204
+ body: "",
2205
+ hidden: !1
2206
+ });
2207
+ function nn(e, t) {
2208
+ const o = {};
2209
+ !e.hFlip != !t.hFlip && (o.hFlip = !0), !e.vFlip != !t.vFlip && (o.vFlip = !0);
2210
+ const n = ((e.rotate || 0) + (t.rotate || 0)) % 4;
2211
+ return n && (o.rotate = n), o;
2212
+ }
2213
+ function Re(e, t) {
2214
+ const o = nn(e, t);
2215
+ for (const n in le)
2216
+ n in X ? n in e && !(n in o) && (o[n] = X[n]) : n in t ? o[n] = t[n] : n in e && (o[n] = e[n]);
2217
+ return o;
2218
+ }
2219
+ function an(e, t) {
2220
+ const o = e.icons, n = e.aliases || /* @__PURE__ */ Object.create(null), a = /* @__PURE__ */ Object.create(null);
2221
+ function s(r) {
2222
+ if (o[r])
2223
+ return a[r] = [];
2224
+ if (!(r in a)) {
2225
+ a[r] = null;
2226
+ const i = n[r] && n[r].parent, d = i && s(i);
2227
+ d && (a[r] = [i].concat(d));
2228
+ }
2229
+ return a[r];
2230
+ }
2231
+ return Object.keys(o).concat(Object.keys(n)).forEach(s), a;
2232
+ }
2233
+ function sn(e, t, o) {
2234
+ const n = e.icons, a = e.aliases || /* @__PURE__ */ Object.create(null);
2235
+ let s = {};
2236
+ function r(i) {
2237
+ s = Re(
2238
+ n[i] || a[i],
2239
+ s
2240
+ );
2241
+ }
2242
+ return r(t), o.forEach(r), Re(e, s);
2243
+ }
2244
+ function rn(e, t) {
2245
+ const o = [];
2246
+ if (typeof e != "object" || typeof e.icons != "object")
2247
+ return o;
2248
+ e.not_found instanceof Array && e.not_found.forEach((a) => {
2249
+ t(a, null), o.push(a);
2250
+ });
2251
+ const n = an(e);
2252
+ for (const a in n) {
2253
+ const s = n[a];
2254
+ s && (t(a, sn(e, a, s)), o.push(a));
2255
+ }
2256
+ return o;
2257
+ }
2258
+ const ln = {
2259
+ provider: "",
2260
+ aliases: {},
2261
+ not_found: {},
2262
+ ...ct
2263
+ };
2264
+ function ne(e, t) {
2265
+ for (const o in t)
2266
+ if (o in e && typeof e[o] != typeof t[o])
2267
+ return !1;
2268
+ return !0;
2269
+ }
2270
+ function cn(e) {
2271
+ if (typeof e != "object" || e === null)
2272
+ return null;
2273
+ const t = e;
2274
+ if (typeof t.prefix != "string" || !e.icons || typeof e.icons != "object" || !ne(e, ln))
2275
+ return null;
2276
+ const o = t.icons;
2277
+ for (const a in o) {
2278
+ const s = o[a];
2279
+ if (
2280
+ // Name cannot be empty
2281
+ !a || // Must have body
2282
+ typeof s.body != "string" || // Check other props
2283
+ !ne(
2284
+ s,
2285
+ le
2286
+ )
2287
+ )
2288
+ return null;
2289
+ }
2290
+ const n = t.aliases || /* @__PURE__ */ Object.create(null);
2291
+ for (const a in n) {
2292
+ const s = n[a], r = s.parent;
2293
+ if (
2294
+ // Name cannot be empty
2295
+ !a || // Parent must be set and point to existing icon
2296
+ typeof r != "string" || !o[r] && !n[r] || // Check other props
2297
+ !ne(
2298
+ s,
2299
+ le
2300
+ )
2301
+ )
2302
+ return null;
2303
+ }
2304
+ return t;
2305
+ }
2306
+ const ut = Object.freeze({
2307
+ width: null,
2308
+ height: null
2309
+ }), dt = Object.freeze({
2310
+ // Dimensions
2311
+ ...ut,
2312
+ // Transformations
2313
+ ...X
2314
+ });
2315
+ function un(e, t) {
2316
+ const o = {
2317
+ ...e
2318
+ };
2319
+ for (const n in t) {
2320
+ const a = t[n], s = typeof a;
2321
+ n in ut ? (a === null || a && (s === "string" || s === "number")) && (o[n] = a) : s === typeof o[n] && (o[n] = n === "rotate" ? a % 4 : a);
2322
+ }
2323
+ return o;
2324
+ }
2325
+ const dn = /[\s,]+/;
2326
+ function mn(e, t) {
2327
+ t.split(dn).forEach((o) => {
2328
+ switch (o.trim()) {
2329
+ case "horizontal":
2330
+ e.hFlip = !0;
2331
+ break;
2332
+ case "vertical":
2333
+ e.vFlip = !0;
2334
+ break;
2335
+ }
2336
+ });
2337
+ }
2338
+ function pn(e, t = 0) {
2339
+ const o = e.replace(/^-?[0-9.]*/, "");
2340
+ function n(a) {
2341
+ for (; a < 0; )
2342
+ a += 4;
2343
+ return a % 4;
2344
+ }
2345
+ if (o === "") {
2346
+ const a = parseInt(e);
2347
+ return isNaN(a) ? 0 : n(a);
2348
+ } else if (o !== e) {
2349
+ let a = 0;
2350
+ switch (o) {
2351
+ case "%":
2352
+ a = 25;
2353
+ break;
2354
+ case "deg":
2355
+ a = 90;
2356
+ }
2357
+ if (a) {
2358
+ let s = parseFloat(e.slice(0, e.length - o.length));
2359
+ return isNaN(s) ? 0 : (s = s / a, s % 1 === 0 ? n(s) : 0);
2360
+ }
2361
+ }
2362
+ return t;
2363
+ }
2364
+ const hn = /(-?[0-9.]*[0-9]+[0-9.]*)/g, fn = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
2365
+ function Ne(e, t, o) {
2366
+ if (t === 1)
2367
+ return e;
2368
+ if (o = o || 100, typeof e == "number")
2369
+ return Math.ceil(e * t * o) / o;
2370
+ if (typeof e != "string")
2371
+ return e;
2372
+ const n = e.split(hn);
2373
+ if (n === null || !n.length)
2374
+ return e;
2375
+ const a = [];
2376
+ let s = n.shift(), r = fn.test(s);
2377
+ for (; ; ) {
2378
+ if (r) {
2379
+ const i = parseFloat(s);
2380
+ isNaN(i) ? a.push(s) : a.push(Math.ceil(i * t * o) / o);
2381
+ } else
2382
+ a.push(s);
2383
+ if (s = n.shift(), s === void 0)
2384
+ return a.join("");
2385
+ r = !r;
2386
+ }
2387
+ }
2388
+ function gn(e, t = "defs") {
2389
+ let o = "";
2390
+ const n = e.indexOf("<" + t);
2391
+ for (; n >= 0; ) {
2392
+ const a = e.indexOf(">", n), s = e.indexOf("</" + t);
2393
+ if (a === -1 || s === -1)
2394
+ break;
2395
+ const r = e.indexOf(">", s);
2396
+ if (r === -1)
2397
+ break;
2398
+ o += e.slice(a + 1, s).trim(), e = e.slice(0, n).trim() + e.slice(r + 1);
2399
+ }
2400
+ return {
2401
+ defs: o,
2402
+ content: e
2403
+ };
2404
+ }
2405
+ function yn(e, t) {
2406
+ return e ? "<defs>" + e + "</defs>" + t : t;
2407
+ }
2408
+ function wn(e, t, o) {
2409
+ const n = gn(e);
2410
+ return yn(n.defs, t + n.content + o);
2411
+ }
2412
+ const bn = (e) => e === "unset" || e === "undefined" || e === "none";
2413
+ function vn(e, t) {
2414
+ const o = {
2415
+ ...fe,
2416
+ ...e
2417
+ }, n = {
2418
+ ...dt,
2419
+ ...t
2420
+ }, a = {
2421
+ left: o.left,
2422
+ top: o.top,
2423
+ width: o.width,
2424
+ height: o.height
2425
+ };
2426
+ let s = o.body;
2427
+ [o, n].forEach((p) => {
2428
+ const l = [], S = p.hFlip, ye = p.vFlip;
2429
+ let M = p.rotate;
2430
+ S ? ye ? M += 2 : (l.push(
2431
+ "translate(" + (a.width + a.left).toString() + " " + (0 - a.top).toString() + ")"
2432
+ ), l.push("scale(-1 1)"), a.top = a.left = 0) : ye && (l.push(
2433
+ "translate(" + (0 - a.left).toString() + " " + (a.height + a.top).toString() + ")"
2434
+ ), l.push("scale(1 -1)"), a.top = a.left = 0);
2435
+ let P;
2436
+ switch (M < 0 && (M -= Math.floor(M / 4) * 4), M = M % 4, M) {
2437
+ case 1:
2438
+ P = a.height / 2 + a.top, l.unshift(
2439
+ "rotate(90 " + P.toString() + " " + P.toString() + ")"
2440
+ );
2441
+ break;
2442
+ case 2:
2443
+ l.unshift(
2444
+ "rotate(180 " + (a.width / 2 + a.left).toString() + " " + (a.height / 2 + a.top).toString() + ")"
2445
+ );
2446
+ break;
2447
+ case 3:
2448
+ P = a.width / 2 + a.left, l.unshift(
2449
+ "rotate(-90 " + P.toString() + " " + P.toString() + ")"
2450
+ );
2451
+ break;
2452
+ }
2453
+ M % 2 === 1 && (a.left !== a.top && (P = a.left, a.left = a.top, a.top = P), a.width !== a.height && (P = a.width, a.width = a.height, a.height = P)), l.length && (s = wn(
2454
+ s,
2455
+ '<g transform="' + l.join(" ") + '">',
2456
+ "</g>"
2457
+ ));
2458
+ });
2459
+ const r = n.width, i = n.height, d = a.width, c = a.height;
2460
+ let u, y;
2461
+ r === null ? (y = i === null ? "1em" : i === "auto" ? c : i, u = Ne(y, d / c)) : (u = r === "auto" ? d : r, y = i === null ? Ne(u, c / d) : i === "auto" ? c : i);
2462
+ const L = {}, m = (p, l) => {
2463
+ bn(l) || (L[p] = l.toString());
2464
+ };
2465
+ m("width", u), m("height", y);
2466
+ const h = [a.left, a.top, d, c];
2467
+ return L.viewBox = h.join(" "), {
2468
+ attributes: L,
2469
+ viewBox: h,
2470
+ body: s
2471
+ };
2472
+ }
2473
+ const Tn = /\sid="(\S+)"/g, Cn = "IconifyId" + Date.now().toString(16) + (Math.random() * 16777216 | 0).toString(16);
2474
+ let Sn = 0;
2475
+ function kn(e, t = Cn) {
2476
+ const o = [];
2477
+ let n;
2478
+ for (; n = Tn.exec(e); )
2479
+ o.push(n[1]);
2480
+ if (!o.length)
2481
+ return e;
2482
+ const a = "suffix" + (Math.random() * 16777216 | Date.now()).toString(16);
2483
+ return o.forEach((s) => {
2484
+ const r = typeof t == "function" ? t(s) : t + (Sn++).toString(), i = s.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
2485
+ e = e.replace(
2486
+ // Allowed characters before id: [#;"]
2487
+ // Allowed characters after id: [)"], .[a-z]
2488
+ new RegExp('([#;"])(' + i + ')([")]|\\.[a-z])', "g"),
2489
+ "$1" + r + a + "$3"
2490
+ );
2491
+ }), e = e.replace(new RegExp(a, "g"), ""), e;
2492
+ }
2493
+ function xn(e, t) {
2494
+ let o = e.indexOf("xlink:") === -1 ? "" : ' xmlns:xlink="http://www.w3.org/1999/xlink"';
2495
+ for (const n in t)
2496
+ o += " " + n + '="' + t[n] + '"';
2497
+ return '<svg xmlns="http://www.w3.org/2000/svg"' + o + ">" + e + "</svg>";
2498
+ }
2499
+ function Pn(e) {
2500
+ return e.replace(/"/g, "'").replace(/%/g, "%25").replace(/#/g, "%23").replace(/</g, "%3C").replace(/>/g, "%3E").replace(/\s+/g, " ");
2501
+ }
2502
+ function Dn(e) {
2503
+ return "data:image/svg+xml," + Pn(e);
2504
+ }
2505
+ function In(e) {
2506
+ return 'url("' + Dn(e) + '")';
2507
+ }
2508
+ const Oe = {
2509
+ ...dt,
2510
+ inline: !1
2511
+ }, Ln = {
2512
+ xmlns: "http://www.w3.org/2000/svg",
2513
+ "xmlns:xlink": "http://www.w3.org/1999/xlink",
2514
+ "aria-hidden": !0,
2515
+ role: "img"
2516
+ }, Mn = {
2517
+ display: "inline-block"
2518
+ }, ce = {
2519
+ backgroundColor: "currentColor"
2520
+ }, mt = {
2521
+ backgroundColor: "transparent"
2522
+ }, Ee = {
2523
+ Image: "var(--svg)",
2524
+ Repeat: "no-repeat",
2525
+ Size: "100% 100%"
2526
+ }, Ae = {
2527
+ webkitMask: ce,
2528
+ mask: ce,
2529
+ background: mt
2530
+ };
2531
+ for (const e in Ae) {
2532
+ const t = Ae[e];
2533
+ for (const o in Ee)
2534
+ t[e + o] = Ee[o];
2535
+ }
2536
+ const Q = {};
2537
+ ["horizontal", "vertical"].forEach((e) => {
2538
+ const t = e.slice(0, 1) + "Flip";
2539
+ Q[e + "-flip"] = t, Q[e.slice(0, 1) + "-flip"] = t, Q[e + "Flip"] = t;
2540
+ });
2541
+ function Fe(e) {
2542
+ return e + (e.match(/^[-0-9.]+$/) ? "px" : "");
2543
+ }
2544
+ const Rn = (e, t) => {
2545
+ const o = un(Oe, t), n = { ...Ln }, a = t.mode || "svg", s = {}, r = t.style, i = typeof r == "object" && !(r instanceof Array) ? r : {};
2546
+ for (let p in t) {
2547
+ const l = t[p];
2548
+ if (l !== void 0)
2549
+ switch (p) {
2550
+ // Properties to ignore
2551
+ case "icon":
2552
+ case "style":
2553
+ case "onLoad":
2554
+ case "mode":
2555
+ case "ssr":
2556
+ break;
2557
+ // Boolean attributes
2558
+ case "inline":
2559
+ case "hFlip":
2560
+ case "vFlip":
2561
+ o[p] = l === !0 || l === "true" || l === 1;
2562
+ break;
2563
+ // Flip as string: 'horizontal,vertical'
2564
+ case "flip":
2565
+ typeof l == "string" && mn(o, l);
2566
+ break;
2567
+ // Color: override style
2568
+ case "color":
2569
+ s.color = l;
2570
+ break;
2571
+ // Rotation as string
2572
+ case "rotate":
2573
+ typeof l == "string" ? o[p] = pn(l) : typeof l == "number" && (o[p] = l);
2574
+ break;
2575
+ // Remove aria-hidden
2576
+ case "ariaHidden":
2577
+ case "aria-hidden":
2578
+ l !== !0 && l !== "true" && delete n["aria-hidden"];
2579
+ break;
2580
+ default: {
2581
+ const S = Q[p];
2582
+ S ? (l === !0 || l === "true" || l === 1) && (o[S] = !0) : Oe[p] === void 0 && (n[p] = l);
2583
+ }
2584
+ }
2585
+ }
2586
+ const d = vn(e, o), c = d.attributes;
2587
+ if (o.inline && (s.verticalAlign = "-0.125em"), a === "svg") {
2588
+ n.style = {
2589
+ ...s,
2590
+ ...i
2591
+ }, Object.assign(n, c);
2592
+ let p = 0, l = t.id;
2593
+ return typeof l == "string" && (l = l.replace(/-/g, "_")), n.innerHTML = kn(d.body, l ? () => l + "ID" + p++ : "iconifyVue"), N("svg", n);
2594
+ }
2595
+ const { body: u, width: y, height: L } = e, m = a === "mask" || (a === "bg" ? !1 : u.indexOf("currentColor") !== -1), h = xn(u, {
2596
+ ...c,
2597
+ width: y + "",
2598
+ height: L + ""
2599
+ });
2600
+ return n.style = {
2601
+ ...s,
2602
+ "--svg": In(h),
2603
+ width: Fe(c.width),
2604
+ height: Fe(c.height),
2605
+ ...Mn,
2606
+ ...m ? ce : mt,
2607
+ ...i
2608
+ }, N("span", n);
2609
+ }, ge = /* @__PURE__ */ Object.create(null);
2610
+ function Nn(e, t) {
2611
+ ge[e] = t;
2612
+ }
2613
+ function fa(e, t) {
2614
+ const o = typeof e.prefix == "string" ? e.prefix + ":" : "";
2615
+ cn(e) && rn(e, (n, a) => {
2616
+ a && (ge[o + n] = a);
2617
+ });
2618
+ }
2619
+ const Ue = _({
2620
+ // Do not inherit other attributes: it is handled by render()
2621
+ inheritAttrs: !1,
2622
+ // Render icon
2623
+ render() {
2624
+ const e = this.$attrs, t = e.icon, o = typeof t == "string" ? ge[t] : typeof t == "object" ? t : null;
2625
+ return o === null || typeof o != "object" || typeof o.body != "string" ? this.$slots.default ? this.$slots.default() : null : Rn({
2626
+ ...fe,
2627
+ ...o
2628
+ }, e);
2629
+ }
2630
+ }), On = _({
2631
+ name: "IconOffline",
2632
+ components: { IconifyIcon: Ue },
2633
+ props: {
2634
+ icon: {
2635
+ default: null
2636
+ }
2637
+ },
2638
+ render() {
2639
+ typeof this.icon == "object" && Nn(this.icon, this.icon);
2640
+ const e = this.$attrs;
2641
+ return N(
2642
+ Ue,
2643
+ {
2644
+ icon: this.icon,
2645
+ style: e?.style ? Object.assign(e.style, { outline: "none" }) : { outline: "none" },
2646
+ ...e
2647
+ },
2648
+ {
2649
+ default: () => []
2650
+ }
2651
+ );
2652
+ }
2653
+ });
2654
+ _({
2655
+ name: "IconifyIconOnline",
2656
+ components: { IconifyIcon: Se },
2657
+ props: {
2658
+ icon: {
2659
+ type: String,
2660
+ default: ""
2661
+ }
2662
+ },
2663
+ render() {
2664
+ const e = this.$attrs;
2665
+ return N(
2666
+ Se,
2667
+ {
2668
+ icon: `${this.icon}`,
2669
+ style: e?.style ? Object.assign(e.style, { outline: "none" }) : { outline: "none" },
2670
+ ...e
2671
+ },
2672
+ {
2673
+ default: () => []
2674
+ }
2675
+ );
2676
+ }
2677
+ });
2678
+ const En = _({
2679
+ name: "FontIcon",
2680
+ props: {
2681
+ icon: {
2682
+ type: String,
2683
+ default: ""
2684
+ }
2685
+ },
2686
+ render() {
2687
+ const e = this.$attrs;
2688
+ return Object.keys(e).includes("uni") || e?.iconType === "uni" ? N(
2689
+ "i",
2690
+ {
2691
+ class: "iconfont",
2692
+ ...e
2693
+ },
2694
+ this.icon
2695
+ ) : Object.keys(e).includes("svg") || e?.iconType === "svg" ? N(
2696
+ "svg",
2697
+ {
2698
+ class: "icon-svg",
2699
+ "aria-hidden": !0
2700
+ },
2701
+ {
2702
+ default: () => [
2703
+ N("use", {
2704
+ "xlink:href": `#${this.icon}`
2705
+ })
2706
+ ]
2707
+ }
2708
+ ) : N("i", {
2709
+ class: `iconfont ${this.icon}`,
2710
+ ...e
2711
+ });
2712
+ }
2713
+ }), An = On, Fn = En, Un = {
2714
+ mounted(e, t) {
2715
+ const { value: o } = t;
2716
+ if (o) {
2717
+ const a = `${g.currentRoute.value.meta?.prefixAuth}.${o}`;
2718
+ b().getButtonAuth.includes(a) || e.parentNode.removeChild(e);
2719
+ } else
2720
+ throw new Error(`need roles! Like v-auth="['admin','test']"`);
2721
+ }
2722
+ };
2723
+ function $n(e) {
2724
+ return { all: e = e || /* @__PURE__ */ new Map(), on: function(t, o) {
2725
+ var n = e.get(t);
2726
+ n ? n.push(o) : e.set(t, [o]);
2727
+ }, off: function(t, o) {
2728
+ var n = e.get(t);
2729
+ n && (o ? n.splice(n.indexOf(o) >>> 0, 1) : e.set(t, []));
2730
+ }, emit: function(t, o) {
2731
+ var n = e.get(t);
2732
+ n && n.slice().map(function(a) {
2733
+ a(o);
2734
+ }), (n = e.get("*")) && n.slice().map(function(a) {
2735
+ a(t, o);
2736
+ });
2737
+ } };
2738
+ }
2739
+ const _n = $n(), $e = Et({
2740
+ strategy: "scroll"
2741
+ }), jn = {
2742
+ mounted(e, t, o) {
2743
+ $e.listenTo(e, (n) => {
2744
+ const a = n.offsetWidth, s = n.offsetHeight;
2745
+ t?.instance ? _n.emit("resize", { detail: { width: a, height: s } }) : o.el.dispatchEvent(new CustomEvent("resize", { detail: { width: a, height: s } }));
2746
+ });
2747
+ },
2748
+ unmounted(e) {
2749
+ $e.uninstall(e);
2750
+ }
2751
+ }, _e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2752
+ __proto__: null,
2753
+ auth: Un,
2754
+ resize: jn
2755
+ }, Symbol.toStringTag, { value: "Module" })), k = wt(qo);
2756
+ k.use(Ot, {
2757
+ defaultProps: { animation: "perspective" }
2758
+ });
2759
+ const zn = (e) => {
2760
+ e.config.globalProperties.$hasAuthority = it, e.config.globalProperties.$isViewonly = lt, e.config.globalProperties.$serviceApi = q(), e.config.globalProperties.$debuggerApi = Ht(), e.config.globalProperties.$url = x(), window.$i18n = Ze;
2761
+ }, Vn = (e) => {
2762
+ Object.keys(_e).forEach((t) => {
2763
+ e.directive(t, _e[t]);
2764
+ });
2765
+ }, Bn = ({ router: e, config: t, lang: o, views: n, env: a, tableConfig: s }) => (No(n, e), k.use(e), Bt(e), Ut(k, t), $t(a), Ho(s), new Promise((r) => {
2766
+ io(k, o), k.component("IconifyIconOffline", An), k.component("FontIcon", Fn), zn(k), qt(x()), Vn(k), Kt(k), on(k, t), r({ app: k, router: e });
2767
+ }));
2768
+ function pt() {
2769
+ const { $storage: e, $config: t } = Be(), o = () => {
2770
+ Qe().multiTagsCache && (!e.tags || e.tags.length === 0) && (e.tags = W), e?.locale || (Nt().locale.value = t?.Locale ?? "zh"), e && !e?.layout && (e.layout = {
2771
+ layout: t?.Layout ?? "vertical",
2772
+ theme: t?.Theme ?? "default",
2773
+ darkMode: t?.DarkMode ?? !1,
2774
+ sidebarStatus: t?.SidebarStatus ?? !0,
2775
+ epThemeColor: t?.EpThemeColor ?? "#409EFF",
2776
+ overallStyle: t?.OverallStyle ?? "light"
2777
+ }), e && !e?.configure && (e.configure = {
2778
+ grey: t?.Grey ?? !1,
2779
+ weak: t?.Weak ?? !1,
2780
+ hideTabs: t?.HideTabs ?? !1,
2781
+ showLogo: t?.ShowLogo ?? !0,
2782
+ showModel: t?.ShowModel ?? "smart",
2783
+ multiTagsCache: t?.MultiTagsCache ?? !1
2784
+ });
2785
+ }, n = ve(() => e?.layout.layout), a = ve(() => e?.layout);
2786
+ return {
2787
+ layout: n,
2788
+ layoutTheme: a,
2789
+ initStorage: o
2790
+ };
2791
+ }
2792
+ const qn = B("udp-app", {
2793
+ state: () => ({
2794
+ sidebar: {
2795
+ opened: f.getItem(`${w()}layout`)?.sidebarStatus ?? I().SidebarStatus,
2796
+ withoutAnimation: !1,
2797
+ isClickCollapse: !1
2798
+ },
2799
+ // 这里的layout用于监听容器拖拉后恢复对应的菜单布局
2800
+ layout: f.getItem(`${w()}layout`)?.layout ?? I().Layout,
2801
+ device: St() ? "mobile" : "desktop"
2802
+ }),
2803
+ getters: {
2804
+ getSidebarStatus() {
2805
+ return this.sidebar.opened;
2806
+ },
2807
+ getDevice() {
2808
+ return this.device;
2809
+ }
2810
+ },
2811
+ actions: {
2812
+ TOGGLE_SIDEBAR(e, t) {
2813
+ const o = f.getItem(`${w()}layout`);
2814
+ o && (e && t ? (this.sidebar.withoutAnimation = !0, this.sidebar.opened = !0, o.sidebarStatus = !0) : !e && t ? (this.sidebar.withoutAnimation = !0, this.sidebar.opened = !1, o.sidebarStatus = !1) : !e && !t && (this.sidebar.withoutAnimation = !1, this.sidebar.opened = !this.sidebar.opened, this.sidebar.isClickCollapse = !this.sidebar.opened, o.sidebarStatus = this.sidebar.opened), f.setItem(`${w()}layout`, o));
2815
+ },
2816
+ async toggleSideBar(e, t) {
2817
+ await this.TOGGLE_SIDEBAR(e, t);
2818
+ },
2819
+ toggleDevice(e) {
2820
+ this.device = e;
2821
+ },
2822
+ setLayout(e) {
2823
+ this.layout = e;
2824
+ }
2825
+ }
2826
+ });
2827
+ function Wn() {
2828
+ return qn(E);
2829
+ }
2830
+ const Hn = B("udp-epTheme", {
2831
+ state: () => ({
2832
+ epThemeColor: f.getItem(`${w()}-layout`)?.epThemeColor ?? I().EpThemeColor,
2833
+ epTheme: f.getItem(`${w()}-layout`)?.theme ?? I().Theme
2834
+ }),
2835
+ getters: {
2836
+ getEpThemeColor() {
2837
+ return this.epThemeColor;
2838
+ },
2839
+ // 用于mix菜单布局下hamburger-svg的fill属性
2840
+ fill() {
2841
+ return this.epTheme === "light" ? "#409eff" : this.epTheme === "yellow" ? "#d25f00" : "#fff";
2842
+ }
2843
+ },
2844
+ actions: {
2845
+ setEpThemeColor(e) {
2846
+ const t = f.getItem(`${w()}layout`);
2847
+ this.epTheme = t?.theme, this.epThemeColor = e, t && (t.epThemeColor = e, f.setItem(`${w()}layout`, t));
2848
+ }
2849
+ }
2850
+ });
2851
+ function ae() {
2852
+ return Hn(E);
2853
+ }
2854
+ function Gn() {
2855
+ const { layoutTheme: e, layout: t } = pt(), o = te([
2856
+ /* 道奇蓝(默认) */
2857
+ { color: "#1b2a47", themeColor: "default" },
2858
+ /* 亮白色 */
2859
+ { color: "#ffffff", themeColor: "light" },
2860
+ /* 猩红色 */
2861
+ { color: "#f5222d", themeColor: "dusk" },
2862
+ /* 橙红色 */
2863
+ { color: "#fa541c", themeColor: "volcano" },
2864
+ /* 金色 */
2865
+ { color: "#fadb14", themeColor: "yellow" },
2866
+ /* 绿宝石 */
2867
+ { color: "#13c2c2", themeColor: "mingQing" },
2868
+ /* 酸橙绿 */
2869
+ { color: "#52c41a", themeColor: "auroraGreen" },
2870
+ /* 深粉色 */
2871
+ { color: "#eb2f96", themeColor: "pink" },
2872
+ /* 深紫罗兰色 */
2873
+ { color: "#722ed1", themeColor: "saucePurple" }
2874
+ ]), { $storage: n } = Be(), a = te(n?.layout?.darkMode), s = te(n?.layout?.overallStyle), r = document.documentElement;
2875
+ function i(m, h, p) {
2876
+ const l = p || document.body;
2877
+ let { className: S } = l;
2878
+ S = S.replace(h, "").trim(), l.className = m ? `${S} ${h}` : S;
2879
+ }
2880
+ function d(m = I().Theme ?? "default") {
2881
+ if (e.value.theme = m, document.documentElement.setAttribute("data-theme", m), document.documentElement.className = "", document.documentElement.classList.add(`layout-theme-${m}`), n.layout = {
2882
+ layout: t.value,
2883
+ theme: m,
2884
+ darkMode: a.value,
2885
+ sidebarStatus: n.layout?.sidebarStatus,
2886
+ epThemeColor: n.layout?.epThemeColor,
2887
+ overallStyle: s.value
2888
+ }, m === "default" || m === "light")
2889
+ u(I().EpThemeColor || "#409EFF");
2890
+ else {
2891
+ const h = o.value.find((p) => p.themeColor === m);
2892
+ u(h.color);
2893
+ }
2894
+ }
2895
+ function c(m, h, p) {
2896
+ document.documentElement.style.setProperty(
2897
+ `--el-color-primary-${m}-${h}`,
2898
+ a.value ? Uo(p, h / 10) : $o(p, h / 10)
2899
+ );
2900
+ }
2901
+ const u = (m) => {
2902
+ ae().setEpThemeColor(m), document.documentElement.style.setProperty("--el-color-primary", m);
2903
+ for (let h = 1; h <= 2; h++)
2904
+ c("dark", h, m);
2905
+ for (let h = 1; h <= 9; h++)
2906
+ c("light", h, m);
2907
+ };
2908
+ function y(m) {
2909
+ s.value = m, ae().epTheme === "light" && a.value ? d("default") : d(ae().epTheme), Go(a.value ? "dark" : "light"), a.value ? (document.documentElement.classList.add("dark"), document.documentElement.classList.remove("default")) : (document.documentElement.classList.add("default"), document.documentElement.classList.remove("dark"));
2910
+ }
2911
+ function L() {
2912
+ U.remove(zt), U.remove(He), U.remove(Ge), f.clear(), kt.clear();
2913
+ const { Grey: m, Weak: h, MultiTagsCache: p, EpThemeColor: l, Layout: S } = I();
2914
+ Wn().setLayout(S), u(l), C().multiTagsCacheChange(p), i(m, "html-grey", document.querySelector("html")), i(h, "html-weakness", document.querySelector("html")), g.push("/login"), C().handleTags("equal", [...W]), Ro();
2915
+ }
2916
+ return {
2917
+ body: r,
2918
+ overallStyle: s,
2919
+ dataTheme: a,
2920
+ layoutTheme: e,
2921
+ themeColors: o,
2922
+ onReset: L,
2923
+ toggleClass: i,
2924
+ dataThemeChange: y,
2925
+ setEpThemeColor: u,
2926
+ setLayoutThemeColor: d
2927
+ };
2928
+ }
2929
+ const ga = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2930
+ __proto__: null,
2931
+ constantRoutes: Do,
2932
+ default: Bn,
2933
+ delCurrentRoute: fo,
2934
+ getBrower: Ke,
2935
+ getPlatform: Je,
2936
+ getProcessMenu: yo,
2937
+ getServiceApi: q,
2938
+ handleAliveRoute: ot,
2939
+ hasAuthority: it,
2940
+ initDict: Ye,
2941
+ isViewonly: lt,
2942
+ lifeCycleEvent: G,
2943
+ remainingRouters: Po,
2944
+ routerBefore: Ao,
2945
+ store: E,
2946
+ useDataThemeChange: Gn,
2947
+ useLayout: pt,
2948
+ useMultiTagsStore: C,
2949
+ usePermissionStore: b,
2950
+ useSystemStore: V,
2951
+ userMonitor: Jt
2952
+ }, Symbol.toStringTag, { value: "Module" }));
2953
+ export {
2954
+ G as A,
2955
+ ha as B,
2956
+ da as C,
2957
+ pa as D,
2958
+ ma as E,
2959
+ Fn as F,
2960
+ ua as G,
2961
+ Po as H,
2962
+ An as I,
2963
+ Ro as J,
2964
+ w as K,
2965
+ g as L,
2966
+ W as M,
2967
+ Ao as N,
2968
+ E as O,
2969
+ Ze as P,
2970
+ ga as Q,
2971
+ Wn as R,
2972
+ Gn as S,
2973
+ ae as T,
2974
+ pt as U,
2975
+ C as V,
2976
+ b as W,
2977
+ V as X,
2978
+ Jt as Y,
2979
+ Vo as _,
2980
+ fa as a,
2981
+ Nn as b,
2982
+ Do as c,
2983
+ fo as d,
2984
+ _n as e,
2985
+ et as f,
2986
+ x as g,
2987
+ Ke as h,
2988
+ I as i,
2989
+ A as j,
2990
+ la as k,
2991
+ Je as l,
2992
+ yo as m,
2993
+ q as n,
2994
+ ca as o,
2995
+ ot as p,
2996
+ it as q,
2997
+ Bn as r,
2998
+ Ye as s,
2999
+ lt as t,
3000
+ zt as u,
3001
+ ra as v,
3002
+ Ge as w,
3003
+ ia as x,
3004
+ Vt as y,
3005
+ He as z
3006
+ };