@utogether/udp-core 1.0.4 → 2.0.0-beta.3

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 (184) hide show
  1. package/dist/{403-DASI6Pwz.js → 403-CxOqlq0f.js} +3 -3
  2. package/dist/403-WCboRvzZ-ZAPgYStl.js +65 -0
  3. package/dist/404-2V0Qi-d7-DkNwQggp.js +65 -0
  4. package/dist/{404-YhBA92cb.js → 404-xdB6lFeQ.js} +1 -1
  5. package/dist/500-BYfzvixf-CGpEieyQ.js +67 -0
  6. package/dist/{500-ywbFF5MX.js → 500-C94bRK2S.js} +2 -2
  7. package/dist/AuthorityInfo-DBovfUjB-DpQwT9Q5.js +4 -0
  8. package/dist/{AuthorityInfo-tCSX2Fh7.js → AuthorityInfo-Dy3b_nFN.js} +1 -1
  9. package/dist/{AuthorityInfo.vue_vue_type_style_index_0_lang-Cwd6UT2i.js → AuthorityInfo.vue_vue_type_style_index_0_lang-Bh7IbcdY.js} +2 -2
  10. package/dist/AuthorityInfo.vue_vue_type_style_index_0_lang-D-l_Az3s-Cw7WmFxz.js +100 -0
  11. package/dist/AuthorityPanel-CRlAwbaI-G7pZXKdE.js +4 -0
  12. package/dist/{AuthorityPanel-BeBNiwqc.js → AuthorityPanel-CRlAwbaI.js} +1 -1
  13. package/dist/AuthorityPanel.vue_vue_type_style_index_0_lang-DxhZjp1S-CJvk3pW8.js +114 -0
  14. package/dist/{AuthorityPanel.vue_vue_type_style_index_0_lang-CIYmnP9-.js → AuthorityPanel.vue_vue_type_style_index_0_lang-DxhZjp1S.js} +31 -24
  15. package/dist/Company-B4vsXy2I-CkNCOqjJ.js +25 -0
  16. package/dist/{Company-l23MEzdM.js → Company-gKkfnhLt.js} +3 -3
  17. package/dist/{CompanyPanel-D_s0rh6h.js → CompanyPanel-BF5Pc35s.js} +7 -7
  18. package/dist/CompanyPanel-Czcx8Gyw-CvndXwB_.js +206 -0
  19. package/dist/DataSet-DT-rGICv-DaUfgbxk.js +147 -0
  20. package/dist/{Department-DSEvORLg.js → Department-D0I3QVZe.js} +3 -3
  21. package/dist/Department-D0dVUrGC-C6HJcYI1.js +25 -0
  22. package/dist/{DepartmentPanel-WN8nOgCV.js → DepartmentPanel-2LHODgc7.js} +22 -22
  23. package/dist/DepartmentPanel-e91Lxr1j-BS_A-ILd.js +254 -0
  24. package/dist/{DesignPanel-DirEGh9M.js → DesignPanel-CtF3cAAQ.js} +1 -1
  25. package/dist/DesignPanel-DdFl_ohi-uCwFxcl1.js +4 -0
  26. package/dist/DesignPanel.vue_vue_type_style_index_0_lang-BACPrfUI-cC7yL0uY.js +1013 -0
  27. package/dist/{DesignPanel.vue_vue_type_style_index_0_lang-D02hXSrN.js → DesignPanel.vue_vue_type_style_index_0_lang-BCYgwoVt.js} +3 -3
  28. package/dist/DictView-BzQLOf_P-DDicwdmM.js +111 -0
  29. package/dist/{DictView-DiIQdiek.js → DictView-H3V5hxg3.js} +17 -16
  30. package/dist/{InvOrganization-b7v3g9EJ.js → InvOrganization-BiGLnbqe.js} +2 -2
  31. package/dist/InvOrganization-atbhw0CI-BABbVt9V.js +74 -0
  32. package/dist/Org-BW1YHG-Q-Cow7JWlD.js +39 -0
  33. package/dist/{Org-BORfx1PL.js → Org-DQTCQHNY.js} +2 -2
  34. package/dist/Preview-DJtVsoq1-CCGidQjJ.js +48 -0
  35. package/dist/{Preview-DkRn_TSc.js → Preview-DXaiis29.js} +1 -1
  36. package/dist/{ReportDefine-Cd0QeaWA.js → ReportDefine-BLh4CiER.js} +1 -1
  37. package/dist/ReportDefine-CNx_ob99-6NQAHK-Q.js +10 -0
  38. package/dist/ReportDesign-FbQ6yTJS-C1pPAUSp.js +165 -0
  39. package/dist/{ReportDesign-4qNqyeEW.js → ReportDesign-Ni1YxrLC.js} +7 -7
  40. package/dist/ReportQuery-C5gz8Lgd-Eu2cQmda.js +75 -0
  41. package/dist/{ReportQuery-BJfTFpec.js → ReportQuery-C8G88_qF.js} +1 -1
  42. package/dist/ReportQueryFrom-C7scua5v-uHXWq8Gy.js +4 -0
  43. package/dist/{ReportQueryFrom-CB7sExZx.js → ReportQueryFrom-CuZKPtB4.js} +1 -1
  44. package/dist/{ReportQueryFrom.vue_vue_type_style_index_0_lang-CqO_2Ier.js → ReportQueryFrom.vue_vue_type_style_index_0_lang-BAn_siFW.js} +7 -7
  45. package/dist/ReportQueryFrom.vue_vue_type_style_index_0_lang-DCbz67Wa-vK6r2uCl.js +178 -0
  46. package/dist/ReportTemplate-BDANdIWv-D_IGjR1w.js +161 -0
  47. package/dist/{ReportTemplate-B69muSgT.js → ReportTemplate-DFnDXWmx.js} +8 -8
  48. package/dist/{Role-Bo4YrNDC.js → Role-BQ7hsfPn.js} +3 -3
  49. package/dist/Role-ByB0WbxW-5E8Mb148.js +25 -0
  50. package/dist/RoleAssign-DW6iC_0v-Bis61auk.js +26 -0
  51. package/dist/{RoleAssign-kOMYJ4s3.js → RoleAssign-UPCg2d4G.js} +3 -3
  52. package/dist/RolePanel-BM2MaQPU-CgcsbfaX.js +4 -0
  53. package/dist/{RolePanel-BSJmjyqc.js → RolePanel-C-mQ5XRq.js} +1 -1
  54. package/dist/RolePanel-ClQy8DBL-DARL4O-o.js +4 -0
  55. package/dist/{RolePanel-B1d4e6uk.js → RolePanel-CoSXOCZN.js} +1 -1
  56. package/dist/RolePanel.vue_vue_type_script_setup_true_lang-Bc_Ao_PU-DMmxr2iI.js +132 -0
  57. package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-DgQpfjaU.js → RolePanel.vue_vue_type_script_setup_true_lang-Bg-t2UhF.js} +7 -7
  58. package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-DCzX-ZP_.js → RolePanel.vue_vue_type_script_setup_true_lang-D-o7HYZ8.js} +8 -8
  59. package/dist/RolePanel.vue_vue_type_script_setup_true_lang-fthF1zkp-JsbQJoDy.js +154 -0
  60. package/dist/ScrollPanel.vue_vue_type_style_index_0_lang-ByWIwajm-BsBf2Vs3.js +100 -0
  61. package/dist/{ScrollPanel.vue_vue_type_style_index_0_lang-WNOYFxJ1.js → ScrollPanel.vue_vue_type_style_index_0_lang-CCsoxDfk.js} +1 -1
  62. package/dist/Staff-CuxzvhD9-D0KTcyRh.js +25 -0
  63. package/dist/{Staff-BFp3zNNR.js → Staff-D-CmvG1R.js} +3 -3
  64. package/dist/StaffInfo-CY7gUICu-EZUhUwIp.js +4 -0
  65. package/dist/{StaffInfo-DcU9_40C.js → StaffInfo-Idhvuc6e.js} +1 -1
  66. package/dist/StaffInfo.vue_vue_type_script_setup_true_lang-Dd8gtQz8-Dlkt-eCn.js +108 -0
  67. package/dist/{StaffInfo.vue_vue_type_script_setup_true_lang-CtfN2CAr.js → StaffInfo.vue_vue_type_script_setup_true_lang-MUGKjnHU.js} +1 -1
  68. package/dist/{StaffPanel-7exWkZd9.js → StaffPanel-CDDmAYE5.js} +1 -1
  69. package/dist/StaffPanel-CwqG0_xr-CrvzLJoc.js +4 -0
  70. package/dist/{StaffPanel.vue_vue_type_script_setup_true_lang-v5xOXKRS.js → StaffPanel.vue_vue_type_script_setup_true_lang-Bdilqbee.js} +42 -42
  71. package/dist/StaffPanel.vue_vue_type_script_setup_true_lang-DCdBy8Hu-BXrueqi0.js +143 -0
  72. package/dist/SysUser-9Q2UJWhi-DprWXFlR.js +15 -0
  73. package/dist/{SysUser-B3uB_cp2.js → SysUser-a-j5bppr.js} +2 -2
  74. package/dist/{SysUserPanel-B0CLp5AO.js → SysUserPanel-6V232wwB.js} +1 -1
  75. package/dist/SysUserPanel-bJy69O7x-BJtBgFEs.js +4 -0
  76. package/dist/{SysUserPanel.vue_vue_type_script_setup_true_lang-Cwea_4dY.js → SysUserPanel.vue_vue_type_script_setup_true_lang-BOtHuMVy.js} +126 -111
  77. package/dist/SysUserPanel.vue_vue_type_script_setup_true_lang-DUPFqgz3-BSqRCMen.js +356 -0
  78. package/dist/{SystemMenu-a59l4hTk.js → SystemMenu-BnVeOSOQ.js} +50 -47
  79. package/dist/SystemMenu-DGOAolc1-CJSLHP8i.js +156 -0
  80. package/dist/UserInfo-CKoOHkAM-DDWp0I_U.js +4 -0
  81. package/dist/{UserInfo-D1IA2oLt.js → UserInfo-Cax9b2nw.js} +1 -1
  82. package/dist/UserInfo.vue_vue_type_style_index_0_lang-BaT53SSu-DsNaAomO.js +160 -0
  83. package/dist/{UserInfo.vue_vue_type_style_index_0_lang-DDVgYRD5.js → UserInfo.vue_vue_type_style_index_0_lang-D-cw11i9.js} +2 -2
  84. package/dist/await-to-js.es5-Bv3Eu4mi-UCggJjes.js +10 -0
  85. package/dist/await-to-js.es5-Bv3Eu4mi.js +10 -0
  86. package/dist/childView-0YZQ6GBn-CEqg7k5d.js +4 -0
  87. package/dist/{childView-6rCeLcsx.js → childView-DKG3eZo8.js} +1 -1
  88. package/dist/childView-DKkgi3yo-D47ft-vi.js +4 -0
  89. package/dist/{childView-JdrkroL5.js → childView-siumuBz0.js} +1 -1
  90. package/dist/childView.vue_vue_type_style_index_0_lang-ABMrGInv-ClOdE_sa.js +143 -0
  91. package/dist/{childView.vue_vue_type_style_index_0_lang-BfcnWnx9.js → childView.vue_vue_type_style_index_0_lang-CUfXDS1q.js} +28 -25
  92. package/dist/{childView.vue_vue_type_style_index_0_lang-B8x99f1B.js → childView.vue_vue_type_style_index_0_lang-CW3EbAmW.js} +8 -8
  93. package/dist/childView.vue_vue_type_style_index_0_lang-CaW106ve-CClTM8PK.js +180 -0
  94. package/dist/{code-rule-2lkPF547.js → code-rule-Dtoree6F.js} +2 -2
  95. package/dist/code-rule-wQyfgpNL-C4evD4Co.js +148 -0
  96. package/dist/core.es.js +10 -10
  97. package/dist/cron-task-C-kryDtd-C0NuGZCe.js +135 -0
  98. package/dist/{cron-task-DV1pGO1m.js → cron-task-GSRgA7S5.js} +2 -2
  99. package/dist/flow-task-B07st2aD-CgQvagSQ.js +10 -0
  100. package/dist/frameView-BOGA3ezf-QoSxzmSQ.js +44 -0
  101. package/dist/{frameView-C0bzSB8c.js → frameView-Cy6wxW0K.js} +1 -1
  102. package/dist/index-Dc7xWMiC.js +7265 -0
  103. package/dist/layout-home-3Dy4onl4.js +228 -0
  104. package/dist/layout-home-CYHksXN_-Basy-3IH.js +228 -0
  105. package/dist/layoutView-BaRvAbIa-xVgfqspc.js +3302 -0
  106. package/dist/{layoutView-CTV-E4Cj.js → layoutView-DMjNscJ-.js} +148 -149
  107. package/dist/log-in-Cx1dGik8-BVeEHeZ8.js +117 -0
  108. package/dist/{log-in-CoBP2x6u.js → log-in-VAG6Cvcx.js} +8 -8
  109. package/dist/log-out-COYdxrNC-ftopGZdE.js +130 -0
  110. package/dist/{log-out-KX8FiRVf.js → log-out-DZGaMCjC.js} +4 -4
  111. package/dist/{login-CtCoGWzD.js → login-CqVMdNHs.js} +126 -136
  112. package/dist/login-Dg9ofNS8-Bocp1XMA.js +241 -0
  113. package/dist/login-log-DJBGJVV0-AoOyj0jD.js +70 -0
  114. package/dist/lov-view-C0T5prk8-B2DBmn55.js +97 -0
  115. package/dist/{lov-view-Bm0JEzzg.js → lov-view-Cc68_28B.js} +7 -7
  116. package/dist/{menuInfo-D2qPoRwz.js → menuInfo-BIrIaJlH.js} +1 -1
  117. package/dist/menuInfo-BZJ_q7bz-Drho-_QC.js +4 -0
  118. package/dist/menuInfo.vue_vue_type_style_index_0_lang-BA8xjUo3-BCZ1wipf.js +363 -0
  119. package/dist/{menuInfo.vue_vue_type_style_index_0_lang-DoQjX9Ly.js → menuInfo.vue_vue_type_style_index_0_lang-DlE4w35X.js} +38 -36
  120. package/dist/{pda-app-SbcIclbH.js → pda-app-DnjphrRS.js} +9 -9
  121. package/dist/pda-app-m9hsppHo-B4xyja1o.js +710 -0
  122. package/dist/redirect-BqegffKC-CBCIuqmz.js +15 -0
  123. package/dist/resource-C6KEIXu--B_ddyecm.js +97 -0
  124. package/dist/{resource-Cdq1UKGI.js → resource-DISgPDM7.js} +4 -4
  125. package/dist/su-welcome-BjbuSrBZ.js +49424 -0
  126. package/dist/su-welcome-CYYy-dzr-D3RKPoB0.js +42089 -0
  127. package/dist/sys-config-DCjJGtht-DARDjlrt.js +370 -0
  128. package/dist/{sys-config-CCOf4xbj.js → sys-config-Yc9vh1t1.js} +13 -13
  129. package/dist/udp-core.css +1 -1
  130. package/dist/utogether-MlnyYtNS-CGgjFNPS.js +4 -0
  131. package/package.json +5 -2
  132. package/src/App.vue +37 -31
  133. package/src/components/udp/content/index.vue +88 -88
  134. package/src/components/udp/form-upload/form-upload.vue +492 -0
  135. package/src/components/udp/grid/index.vue +524 -524
  136. package/src/components/udp/index.ts +6 -5
  137. package/src/components/udp/ut-stamp-badge/index.vue +271 -271
  138. package/src/components/udp/utils.ts +408 -408
  139. package/src/layout/components/lay-content/index.vue +4 -11
  140. package/src/layout/components/lay-search/components/SearchModal.vue +181 -189
  141. package/src/layout/components/lay-setting/index.vue +503 -503
  142. package/src/layout/components/lay-sidebar/sidebar-logo.vue +101 -101
  143. package/src/layout/components/lay-tag/index.vue +598 -598
  144. package/src/layout/hooks/useNav.ts +176 -176
  145. package/src/layout/hooks/useTag.ts +227 -227
  146. package/src/layout/layoutView.vue +216 -215
  147. package/src/layout/types.ts +93 -93
  148. package/src/main.ts +111 -115
  149. package/src/plugins/i18n/zh.ts +17 -3
  150. package/src/plugins/vxe-table/index.ts +116 -116
  151. package/src/plugins/vxe-table/render.tsx +968 -950
  152. package/src/router/index.ts +187 -187
  153. package/src/router/modules/home.ts +32 -32
  154. package/src/router/utils.ts +420 -420
  155. package/src/store/modules/epTheme.ts +48 -48
  156. package/src/style/vxetable.scss +18 -2
  157. package/src/utils/dataFormat/index.ts +222 -222
  158. package/src/utils/lifecycle.ts +39 -39
  159. package/src/views/organization/department/DepartmentPanel.vue +303 -303
  160. package/src/views/organization/staff/StaffInfo.vue +127 -127
  161. package/src/views/organization/staff/StaffPanel.vue +3 -3
  162. package/src/views/system/layout/layout-home.vue +237 -0
  163. package/src/views/system/menu/AuthorityPanel.vue +10 -9
  164. package/src/views/system/menu/SystemMenu.vue +194 -185
  165. package/src/views/system/menu/menuInfo.vue +384 -384
  166. package/src/views/system/sysUser/SysUserPanel.vue +363 -347
  167. package/src/views/udev/coderule/code-rule.vue +132 -132
  168. package/src/views/udev/dict/DictView.vue +118 -118
  169. package/src/views/udev/dict/childView.vue +184 -183
  170. package/src/views/udev/lov/childView.vue +174 -174
  171. package/src/views/uhome/components/common-menu.vue +118 -0
  172. package/src/views/uhome/components/dynamic-component.vue +66 -0
  173. package/src/views/uhome/components/home-todo.vue +170 -0
  174. package/src/views/uhome/components/menu-favorite.vue +315 -315
  175. package/src/views/uhome/dynamic-card.vue +31 -0
  176. package/src/views/uhome/su-welcome.vue +48 -113
  177. package/src/views/ulogin/login.vue +336 -325
  178. package/src/views/upms/interface/log-in.vue +100 -100
  179. package/src/views/upms/interface/log-out.vue +104 -104
  180. package/src/views/upms/user/login-log.vue +54 -54
  181. package/types/global.d.ts +232 -231
  182. package/dist/await-to-js.es5-BtRbN2QH.js +0 -10
  183. package/dist/index-BbtbEMCH.js +0 -4649
  184. package/dist/su-welcome-BHDsjqqV.js +0 -524
@@ -0,0 +1,710 @@
1
+ import { defineComponent as ne, ref as P, resolveComponent as S, createElementBlock as ve, openBlock as X, createVNode as p, createBlock as me, createCommentVNode as he, Fragment as Y, isVNode as be, computed as K, watch as we, withDirectives as Oe, unref as _, resolveDirective as je, nextTick as Te } from "vue";
2
+ import { useI18n as xe } from "vue-i18n";
3
+ import { c as _e } from "./await-to-js.es5-Bv3Eu4mi-UCggJjes.js";
4
+ import { t as $e, u as Se, W as ke, o as Ce } from "./su-welcome-BjbuSrBZ.js";
5
+ import { useRender as Ue, withInstall as Ve } from "@utogether/utils";
6
+ import { clone as oe, isString as Z } from "xe-utils";
7
+ import Pe from "qrcode";
8
+ const M = {
9
+ silent: !1,
10
+ logLevel: "warn"
11
+ };
12
+ function x(e) {
13
+ if (typeof e != "object" || e === null)
14
+ return !1;
15
+ const t = Object.getPrototypeOf(e);
16
+ return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
17
+ }
18
+ const Ne = () => ({
19
+ func: () => {
20
+ },
21
+ bool: !0,
22
+ string: "",
23
+ number: 0,
24
+ array: () => [],
25
+ object: () => ({}),
26
+ integer: 0
27
+ }), ae = Object.prototype, ie = ae.toString, qe = ae.hasOwnProperty, se = /^\s*function (\w+)/;
28
+ function ee(e) {
29
+ const t = (e == null ? void 0 : e.type) ?? e;
30
+ if (t) {
31
+ const n = t.toString().match(se);
32
+ return n ? n[1] : "";
33
+ }
34
+ return "";
35
+ }
36
+ function Ae(e) {
37
+ if (e == null)
38
+ return "";
39
+ const t = e.constructor.toString().match(se);
40
+ return t ? t[1].replace(/^Async/, "") : "";
41
+ }
42
+ function te(e) {
43
+ return "structuredClone" in globalThis ? structuredClone(e) : Array.isArray(e) ? [...e] : x(e) ? Object.assign({}, e) : e;
44
+ }
45
+ function le() {
46
+ }
47
+ let d = le;
48
+ process.env.NODE_ENV !== "production" && (d = typeof console < "u" ? function(e, t = M.logLevel) {
49
+ M.silent === !1 && console[t](`[VueTypes warn]: ${e}`);
50
+ } : le);
51
+ const N = (e, t) => qe.call(e, t), Ie = Number.isInteger || function(e) {
52
+ return typeof e == "number" && isFinite(e) && Math.floor(e) === e;
53
+ }, q = Array.isArray || function(e) {
54
+ return ie.call(e) === "[object Array]";
55
+ }, A = (e) => ie.call(e) === "[object Function]", Q = (e, t) => x(e) && N(e, "_vueTypes_name") && (!t || e._vueTypes_name === t), ue = (e) => x(e) && (N(e, "type") || ["_vueTypes_name", "validator", "default", "required"].some(
56
+ (t) => N(e, t)
57
+ ));
58
+ function de(e, t) {
59
+ return Object.defineProperty(e.bind(t), "__original", {
60
+ value: e
61
+ });
62
+ }
63
+ function $(e, t, n = !1) {
64
+ let r, o = !0, s = "";
65
+ x(e) ? r = e : r = { type: e };
66
+ const i = Q(r) ? r._vueTypes_name + " - " : "";
67
+ if (ue(r) && r.type !== null) {
68
+ if (r.type === void 0 || r.type === !0 || !r.required && t == null)
69
+ return o;
70
+ q(r.type) ? (o = r.type.some(
71
+ (c) => $(c, t, !0) === !0
72
+ ), s = r.type.map((c) => ee(c)).join(" or ")) : (s = ee(r), s === "Array" ? o = q(t) : s === "Object" ? o = x(t) : s === "String" || s === "Number" || s === "Boolean" || s === "Function" ? o = Ae(t) === s : o = t instanceof r.type);
73
+ }
74
+ if (!o) {
75
+ const c = `${i}value "${t}" should be of type "${s}"`;
76
+ return n === !1 ? (d(c), !1) : c;
77
+ }
78
+ if (N(r, "validator") && A(r.validator)) {
79
+ const c = d, y = [];
80
+ if (d = (g) => {
81
+ y.push(g);
82
+ }, o = r.validator(t), d = c, !o) {
83
+ const g = (y.length > 1 ? "* " : "") + y.join(`
84
+ * `);
85
+ return y.length = 0, n === !1 ? (d(g), o) : g;
86
+ }
87
+ }
88
+ return o;
89
+ }
90
+ function h(e, t) {
91
+ const n = Object.defineProperties(t, {
92
+ _vueTypes_name: {
93
+ value: e,
94
+ writable: !0
95
+ },
96
+ isRequired: {
97
+ get() {
98
+ return this.required = !0, this;
99
+ }
100
+ },
101
+ def: {
102
+ value(o) {
103
+ if (o === void 0) {
104
+ if (this.type === Boolean || Array.isArray(this.type) && this.type.includes(Boolean)) {
105
+ this.default = void 0;
106
+ return;
107
+ }
108
+ return N(this, "default") && delete this.default, this;
109
+ }
110
+ return !A(o) && $(this, o, !0) !== !0 ? (d(`${this._vueTypes_name} - invalid default value: "${o}"`), this) : (q(o) ? this.default = () => te(o) : x(o) ? this.default = () => te(o) : this.default = o, this);
111
+ }
112
+ }
113
+ }), { validator: r } = n;
114
+ return A(r) && (n.validator = de(r, n)), n;
115
+ }
116
+ function O(e, t) {
117
+ const n = h(e, t);
118
+ return Object.defineProperty(n, "validate", {
119
+ value(r) {
120
+ return A(this.validator) && d(
121
+ `${this._vueTypes_name} - calling .validate() will overwrite the current custom validator function. Validator info:
122
+ ${JSON.stringify(
123
+ this
124
+ )}`
125
+ ), this.validator = de(r, this), this;
126
+ }
127
+ });
128
+ }
129
+ function F(e) {
130
+ return e.replace(/^(?!\s*$)/gm, " ");
131
+ }
132
+ const Le = () => O("any", {}), Re = () => O("function", {
133
+ type: Function
134
+ }), re = () => O("boolean", {
135
+ type: Boolean
136
+ }), De = () => O("string", {
137
+ type: String
138
+ }), Fe = () => O("number", {
139
+ type: Number
140
+ }), Ee = () => O("array", {
141
+ type: Array
142
+ }), Be = () => O("object", {
143
+ type: Object
144
+ }), ze = () => h("integer", {
145
+ type: Number,
146
+ validator(e) {
147
+ const t = Ie(e);
148
+ return t === !1 && d(`integer - "${e}" is not an integer`), t;
149
+ }
150
+ }), Ye = () => h("symbol", {
151
+ validator(e) {
152
+ const t = typeof e == "symbol";
153
+ return t === !1 && d(`symbol - invalid value "${e}"`), t;
154
+ }
155
+ }), Me = () => Object.defineProperty(
156
+ {
157
+ type: null,
158
+ validator(e) {
159
+ const t = e === null;
160
+ return t === !1 && d("nullable - value should be null"), t;
161
+ }
162
+ },
163
+ "_vueTypes_name",
164
+ { value: "nullable" }
165
+ );
166
+ function Qe(e, t = "custom validation failed") {
167
+ if (typeof e != "function")
168
+ throw new TypeError(
169
+ "[VueTypes error]: You must provide a function as argument"
170
+ );
171
+ return h(e.name || "<<anonymous function>>", {
172
+ type: null,
173
+ validator(n) {
174
+ const r = e(n);
175
+ return r || d(`${this._vueTypes_name} - ${t}`), r;
176
+ }
177
+ });
178
+ }
179
+ function We(e) {
180
+ if (!q(e))
181
+ throw new TypeError(
182
+ "[VueTypes error]: You must provide an array as argument."
183
+ );
184
+ const t = `oneOf - value should be one of "${e.map((r) => typeof r == "symbol" ? r.toString() : r).join('", "')}".`, n = {
185
+ validator(r) {
186
+ const o = e.indexOf(r) !== -1;
187
+ return o || d(t), o;
188
+ }
189
+ };
190
+ if (e.indexOf(null) === -1) {
191
+ const r = e.reduce(
192
+ (o, s) => {
193
+ if (s != null) {
194
+ const i = s.constructor;
195
+ o.indexOf(i) === -1 && o.push(i);
196
+ }
197
+ return o;
198
+ },
199
+ []
200
+ );
201
+ r.length > 0 && (n.type = r);
202
+ }
203
+ return h("oneOf", n);
204
+ }
205
+ function He(e) {
206
+ if (!q(e))
207
+ throw new TypeError(
208
+ "[VueTypes error]: You must provide an array as argument"
209
+ );
210
+ let t = !1, n = !1, r = [];
211
+ for (let s = 0; s < e.length; s += 1) {
212
+ const i = e[s];
213
+ if (ue(i)) {
214
+ if (A(i.validator) && (t = !0), Q(i, "oneOf") && i.type) {
215
+ r = r.concat(i.type);
216
+ continue;
217
+ }
218
+ if (Q(i, "nullable")) {
219
+ n = !0;
220
+ continue;
221
+ }
222
+ if (i.type === !0 || !i.type) {
223
+ d('oneOfType - invalid usage of "true" and "null" as types.');
224
+ continue;
225
+ }
226
+ r = r.concat(i.type);
227
+ } else
228
+ r.push(i);
229
+ }
230
+ r = r.filter((s, i) => r.indexOf(s) === i);
231
+ const o = n === !1 && r.length > 0 ? r : null;
232
+ return t ? h("oneOfType", {
233
+ type: o,
234
+ validator(s) {
235
+ const i = [], c = e.some((y) => {
236
+ const g = $(y, s, !0);
237
+ return typeof g == "string" && i.push(g), g === !0;
238
+ });
239
+ return c || d(
240
+ `oneOfType - provided value does not match any of the ${i.length} passed-in validators:
241
+ ${F(i.join(`
242
+ `))}`
243
+ ), c;
244
+ }
245
+ }) : h("oneOfType", {
246
+ type: o
247
+ });
248
+ }
249
+ function Ge(e) {
250
+ return h("arrayOf", {
251
+ type: Array,
252
+ validator(t) {
253
+ let n = "";
254
+ const r = t.every((o) => (n = $(e, o, !0), n === !0));
255
+ return r || d(`arrayOf - value validation error:
256
+ ${F(n)}`), r;
257
+ }
258
+ });
259
+ }
260
+ function Je(e) {
261
+ return h("instanceOf", {
262
+ type: e
263
+ });
264
+ }
265
+ function Xe(e) {
266
+ return h("objectOf", {
267
+ type: Object,
268
+ validator(t) {
269
+ let n = "";
270
+ if (!x(t))
271
+ return !1;
272
+ const r = Object.keys(t).every((o) => (n = $(e, t[o], !0), n === !0));
273
+ return r || d(`objectOf - value validation error:
274
+ ${F(n)}`), r;
275
+ }
276
+ });
277
+ }
278
+ function Ke(e) {
279
+ const t = Object.keys(e), n = t.filter((o) => {
280
+ var s;
281
+ return !!((s = e[o]) != null && s.required);
282
+ }), r = h("shape", {
283
+ type: Object,
284
+ validator(o) {
285
+ if (!x(o))
286
+ return !1;
287
+ const s = Object.keys(o);
288
+ if (n.length > 0 && n.some((i) => s.indexOf(i) === -1)) {
289
+ const i = n.filter(
290
+ (c) => s.indexOf(c) === -1
291
+ );
292
+ return i.length === 1 ? d(`shape - required property "${i[0]}" is not defined.`) : d(
293
+ `shape - required properties "${i.join(
294
+ '", "'
295
+ )}" are not defined.`
296
+ ), !1;
297
+ }
298
+ return s.every((i) => {
299
+ if (t.indexOf(i) === -1)
300
+ return this._vueTypes_isLoose === !0 ? !0 : (d(
301
+ `shape - shape definition does not include a "${i}" property. Allowed keys: "${t.join(
302
+ '", "'
303
+ )}".`
304
+ ), !1);
305
+ const c = e[i], y = $(c, o[i], !0);
306
+ return typeof y == "string" && d(`shape - "${i}" property validation error:
307
+ ${F(y)}`), y === !0;
308
+ });
309
+ }
310
+ });
311
+ return Object.defineProperty(r, "_vueTypes_isLoose", {
312
+ writable: !0,
313
+ value: !1
314
+ }), Object.defineProperty(r, "loose", {
315
+ get() {
316
+ return this._vueTypes_isLoose = !0, this;
317
+ }
318
+ }), r;
319
+ }
320
+ var Ze = Object.defineProperty, et = (e, t, n) => t in e ? Ze(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, m = (e, t, n) => (et(e, typeof t != "symbol" ? t + "" : t, n), n);
321
+ const tt = /* @__PURE__ */ (() => {
322
+ var e;
323
+ return (
324
+ // eslint-disable-next-line @typescript-eslint/no-extraneous-class
325
+ e = class {
326
+ static get any() {
327
+ return Le();
328
+ }
329
+ static get func() {
330
+ return Re().def(this.defaults.func);
331
+ }
332
+ static get bool() {
333
+ return this.defaults.bool === void 0 ? re() : re().def(this.defaults.bool);
334
+ }
335
+ static get string() {
336
+ return De().def(this.defaults.string);
337
+ }
338
+ static get number() {
339
+ return Fe().def(this.defaults.number);
340
+ }
341
+ static get array() {
342
+ return Ee().def(this.defaults.array);
343
+ }
344
+ static get object() {
345
+ return Be().def(this.defaults.object);
346
+ }
347
+ static get integer() {
348
+ return ze().def(this.defaults.integer);
349
+ }
350
+ static get symbol() {
351
+ return Ye();
352
+ }
353
+ static get nullable() {
354
+ return Me();
355
+ }
356
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
357
+ static extend(...t) {
358
+ d(
359
+ "VueTypes.extend has been removed. Use the ES6+ method instead. See https://dwightjack.github.io/vue-types/advanced/extending-vue-types.html#extending-namespaced-validators-in-es6 for details."
360
+ );
361
+ }
362
+ }, m(e, "defaults", {}), m(e, "sensibleDefaults"), m(e, "config", M), m(e, "custom", Qe), m(e, "oneOf", We), m(e, "instanceOf", Je), m(e, "oneOfType", He), m(e, "arrayOf", Ge), m(e, "objectOf", Xe), m(e, "shape", Ke), m(e, "utils", {
363
+ validate(t, n) {
364
+ return $(n, t, !0) === !0;
365
+ },
366
+ toType(t, n, r = !1) {
367
+ return r ? O(t, n) : h(t, n);
368
+ }
369
+ }), e
370
+ );
371
+ })();
372
+ function ce(e = Ne()) {
373
+ var t;
374
+ return t = class extends tt {
375
+ static get sensibleDefaults() {
376
+ return { ...this.defaults };
377
+ }
378
+ static set sensibleDefaults(n) {
379
+ if (n === !1) {
380
+ this.defaults = {};
381
+ return;
382
+ }
383
+ if (n === !0) {
384
+ this.defaults = { ...e };
385
+ return;
386
+ }
387
+ this.defaults = { ...n };
388
+ }
389
+ }, m(t, "defaults", { ...e }), t;
390
+ }
391
+ class vt extends ce() {
392
+ }
393
+ const rt = ce({
394
+ func: void 0,
395
+ bool: void 0,
396
+ string: void 0,
397
+ number: void 0,
398
+ object: void 0,
399
+ integer: void 0
400
+ });
401
+ class D extends rt {
402
+ // a native-like validator that supports the `.validable` method
403
+ static get style() {
404
+ return O("style", {
405
+ type: [String, Object]
406
+ });
407
+ }
408
+ static get VNodeChild() {
409
+ return O("VNodeChild", {
410
+ type: void 0
411
+ });
412
+ }
413
+ }
414
+ const nt = {
415
+ // img 或者 canvas,img不支持logo嵌套
416
+ tag: D.string.validate((e) => ["canvas", "img"].includes(e)).def("canvas"),
417
+ // 二维码内容
418
+ text: {
419
+ type: [String, Array],
420
+ default: null
421
+ },
422
+ // qrcode.js配置项
423
+ options: {
424
+ type: Object,
425
+ default: () => ({})
426
+ },
427
+ // 宽度
428
+ width: D.number.def(200),
429
+ // logo
430
+ logo: {
431
+ type: [String, Object],
432
+ default: () => ""
433
+ },
434
+ // 是否过期
435
+ disabled: D.bool.def(!1),
436
+ // 过期提示内容
437
+ disabledText: D.string.def("")
438
+ }, ot = /* @__PURE__ */ ne({
439
+ name: "SuQrcode",
440
+ props: nt,
441
+ emits: ["done", "click", "disabled-click"],
442
+ setup(e, {
443
+ emit: t
444
+ }) {
445
+ const {
446
+ toCanvas: n,
447
+ toDataURL: r
448
+ } = Pe, o = P(!0), s = P(null), i = K(() => String(e.text)), c = K(() => ({
449
+ width: e.width + "px",
450
+ height: e.width + "px"
451
+ })), y = async () => {
452
+ await Te();
453
+ const a = oe(e.options || {}, !0);
454
+ if (e.tag === "canvas") {
455
+ a.errorCorrectionLevel = a.errorCorrectionLevel || k(_(i));
456
+ const l = await E(_(i), a);
457
+ a.scale = e.width === 0 ? void 0 : e.width / l * 4;
458
+ const u = await n(_(s), _(i), a);
459
+ if (e.logo) {
460
+ const f = await g(u);
461
+ t("done", f), o.value = !1;
462
+ } else
463
+ t("done", u.toDataURL()), o.value = !1;
464
+ } else {
465
+ const l = await r(i.value, {
466
+ errorCorrectionLevel: "H",
467
+ width: e.width,
468
+ ...a
469
+ });
470
+ _(s).src = l, t("done", l), o.value = !1;
471
+ }
472
+ };
473
+ we(() => i.value, (a) => {
474
+ a && y();
475
+ }, {
476
+ deep: !0,
477
+ immediate: !0
478
+ });
479
+ const g = (a) => {
480
+ const l = a.width, u = Object.assign({
481
+ logoSize: 0.15,
482
+ bgColor: "#ffffff",
483
+ borderSize: 0.05,
484
+ crossOrigin: "anonymous",
485
+ borderRadius: 8,
486
+ logoRadius: 0
487
+ }, Z(e.logo) ? {} : e.logo), {
488
+ logoSize: f = 0.15,
489
+ bgColor: v = "#ffffff",
490
+ borderSize: w = 0.05,
491
+ crossOrigin: C = "anonymous",
492
+ borderRadius: fe = 8,
493
+ logoRadius: z = 0
494
+ } = u, pe = Z(e.logo) ? e.logo : e.logo.src, j = l * f, T = l * (1 - f) / 2, W = l * (f + w), H = l * (1 - f - w) / 2, b = a.getContext("2d");
495
+ if (!b) return;
496
+ I(b)(H, H, W, W, fe), b.fillStyle = v, b.fill();
497
+ const U = new Image();
498
+ (C || z) && U.setAttribute("crossOrigin", C), U.src = pe;
499
+ const ye = (V) => {
500
+ b.drawImage(V, T, T, j, j);
501
+ }, ge = (V) => {
502
+ const R = document.createElement("canvas");
503
+ R.width = T + j, R.height = T + j;
504
+ const G = R.getContext("2d");
505
+ if (!G || !b || (G.drawImage(V, T, T, j, j), I(b)(T, T, j, j, z), !b)) return;
506
+ const J = b.createPattern(R, "no-repeat");
507
+ J && (b.fillStyle = J, b.fill());
508
+ };
509
+ return new Promise((V) => {
510
+ U.onload = () => {
511
+ z ? ge(U) : ye(U), V(a.toDataURL());
512
+ };
513
+ });
514
+ }, E = async (a, l) => {
515
+ const u = document.createElement("canvas");
516
+ return await n(u, a, l), u.width;
517
+ }, k = (a) => a.length > 36 ? "M" : a.length > 16 ? "Q" : "H", I = (a) => (l, u, f, v, w) => {
518
+ const C = Math.min(f, v);
519
+ return w > C / 2 && (w = C / 2), a.beginPath(), a.moveTo(l + w, u), a.arcTo(l + f, u, l + f, u + v, w), a.arcTo(l + f, u + v, l, u + v, w), a.arcTo(l, u + v, l, u, w), a.arcTo(l, u, l + f, u, w), a.closePath(), a;
520
+ }, L = () => {
521
+ t("click");
522
+ }, B = () => {
523
+ t("disabled-click");
524
+ };
525
+ return () => p(Y, null, [Oe(p("div", {
526
+ class: "qrcode relative inline-block",
527
+ style: _(c)
528
+ }, [e.tag === "canvas" ? p("canvas", {
529
+ ref: s,
530
+ onClick: L
531
+ }, null) : p("img", {
532
+ ref: s,
533
+ onClick: L
534
+ }, null), e.disabled && p("div", {
535
+ class: "qrcode--disabled absolute top-0 left-0 flex w-full h-full items-center justify-center",
536
+ onClick: B
537
+ }, [p("div", {
538
+ class: "absolute top-[50%] left-[50%] font-bold"
539
+ }, [p(Ce, {
540
+ class: "cursor-pointer",
541
+ icon: "refresh-right",
542
+ width: "30",
543
+ color: "var(--el-color-primary)"
544
+ }, null), p("div", null, [e.disabledText])])])]), [[je("loading"), _(o)]])]);
545
+ }
546
+ }), at = Ve(ot);
547
+ function it(e) {
548
+ return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !be(e);
549
+ }
550
+ const st = {
551
+ name: "PdaApp"
552
+ }, lt = /* @__PURE__ */ ne({
553
+ ...st,
554
+ setup(e) {
555
+ const t = Se(), n = Ue(), {
556
+ t: r
557
+ } = xe(), o = "/upms/v1/app-manage", s = P(null), i = P({}), c = [{
558
+ type: "checkbox",
559
+ width: 45,
560
+ align: "center"
561
+ }, {
562
+ field: "appVersion",
563
+ title: "message.udp.appVersion",
564
+ width: 110
565
+ }, {
566
+ field: "buildNo",
567
+ title: "message.udp.buildNo",
568
+ width: 130
569
+ }, {
570
+ field: "isForceUpdate",
571
+ title: "message.udp.isForceUpdate",
572
+ width: 130,
573
+ formatter: ({
574
+ row: a
575
+ }) => a.isForceUpdate === "Y" ? r("message.udp.forceUpdate") : r("message.udp.freeUpdate")
576
+ }, {
577
+ field: "versionInfo",
578
+ title: "message.udp.versionInfo",
579
+ miWidth: 200
580
+ }, {
581
+ field: "enabled",
582
+ title: "message.status",
583
+ width: 90,
584
+ formatter: ({
585
+ row: a
586
+ }) => a.enabled === "1" ? r("message.udp.appupper") : r("message.udp.applower")
587
+ }, {
588
+ field: "creationDate",
589
+ width: 140
590
+ }, {
591
+ field: "operate",
592
+ width: 260,
593
+ fixed: "right",
594
+ slots: {
595
+ default: ({
596
+ row: a
597
+ }) => {
598
+ const l = a.enabled === "1" ? "applower" : "appupper", u = a.enabled === "1" ? "warning" : "primary", f = a.enabled === "1" ? "ri-inbox-archive-line" : "ri-inbox-unarchive-line";
599
+ return a.enabled !== "1" ? [p(S("ut-button"), {
600
+ content: l,
601
+ icon: f,
602
+ status: u,
603
+ onTap: () => y(a)
604
+ }, null)] : [
605
+ p(Y, null, [p("div", {
606
+ style: "display: flex; justify-content: space-between;"
607
+ }, [p(S("ut-button"), {
608
+ content: l,
609
+ icon: f,
610
+ status: u,
611
+ onTap: () => y(a)
612
+ }, null), p(S("el-popover"), {
613
+ placement: "left"
614
+ }, {
615
+ default: () => [p(Y, null, [p(at, {
616
+ text: t + "/ufil/" + a.downloadUrl
617
+ }, null)])],
618
+ reference: () => {
619
+ let v;
620
+ return p(S("el-button"), {
621
+ type: "success"
622
+ }, it(v = r("message.btn.scan")) ? v : {
623
+ default: () => [v]
624
+ });
625
+ }
626
+ })])])
627
+ // <el-popover
628
+ // placement="left"
629
+ // v-slots={{
630
+ // reference: () => <el-button type="primary">外网下载</el-button>
631
+ // }}
632
+ // >
633
+ // <>
634
+ // <SuQrcode text={'http://jemes.uzuo.cn/gateway/ufil/' + row.downloadUrl} />
635
+ // </>
636
+ // </el-popover>
637
+ ];
638
+ }
639
+ }
640
+ }], y = async (a) => {
641
+ const l = oe(a, !0);
642
+ l.enabled = a.enabled === "1" ? "0" : "1", await _e(ke().put(o, l)), s.value.refreshData();
643
+ }, g = (a) => {
644
+ a === "add" && I(), a === "del" && L();
645
+ }, E = [{
646
+ field: "appVersion",
647
+ title: "message.udp.appVersion",
648
+ required: !0
649
+ }, {
650
+ field: "buildNo",
651
+ title: "message.udp.buildNo",
652
+ required: !0
653
+ }, {
654
+ field: "isForceUpdate",
655
+ title: "message.udp.isForceUpdate",
656
+ required: !0,
657
+ itemRender: n.renderSwitch({
658
+ openLabel: r("message.udp.forceUpdate"),
659
+ closeLabel: r("message.udp.freeUpdate"),
660
+ openValue: "Y",
661
+ closeValue: "N"
662
+ })
663
+ }, {
664
+ field: "versionInfo",
665
+ title: "message.udp.versionInfo",
666
+ required: !0,
667
+ itemRender: n.renderTextarea()
668
+ }, {
669
+ field: "downloadUrl",
670
+ required: !1,
671
+ title: "message.udp.downloadUrl",
672
+ itemRender: n.renderUpload()
673
+ }], k = P(!1), I = () => {
674
+ i.value = {
675
+ // downloadUrl: 'https://vxeui.com/resource/img/fj577.jpg'
676
+ // downloadUrl: '/resource/image/20250817/15806d21e3f445dcae0e2e0825c76a79.jpg'
677
+ }, k.value = !0;
678
+ }, L = () => {
679
+ s.value.getInstance().commitProxy("delete");
680
+ }, B = () => {
681
+ s.value.refreshData();
682
+ };
683
+ return (a, l) => {
684
+ const u = S("ut-grid"), f = S("ut-modal-form");
685
+ return X(), ve("div", null, [p(u, {
686
+ ref_key: "xgrid",
687
+ ref: s,
688
+ columns: c,
689
+ url: o,
690
+ mode: "form",
691
+ onButtonClick: g
692
+ }, null, 512), k.value ? (X(), me(f, {
693
+ key: 0,
694
+ record: i.value,
695
+ items: E,
696
+ width: 420,
697
+ height: 450,
698
+ title: a.$t("message.title.appAdd"),
699
+ url: o,
700
+ class: "ut-app-form",
701
+ "data-status": "add",
702
+ onClose: l[0] || (l[0] = (v) => k.value = !1),
703
+ onConfirm: B
704
+ }, null, 8, ["record", "title"])) : he("", !0)]);
705
+ };
706
+ }
707
+ }), mt = /* @__PURE__ */ $e(lt, [["__scopeId", "data-v-4c7392db"]]);
708
+ export {
709
+ mt as default
710
+ };