@utogether/udp-core 2.0.0-beta.25 → 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 (164) 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 -73
  76. package/src/api/index.ts +1 -1
  77. package/src/components/SuQrcode/src/index.tsx +231 -236
  78. package/src/components/udp/grid/index.vue +9 -11
  79. package/src/components/udp/utils.ts +420 -414
  80. package/src/layout/components/lay-panel/index.vue +2 -6
  81. package/src/layout/components/lay-search/components/SearchModal.vue +7 -3
  82. package/src/main.ts +111 -110
  83. package/src/router/index.ts +156 -187
  84. package/src/router/utils.ts +2 -3
  85. package/src/store/modules/system.ts +7 -0
  86. package/src/style/vxetable.scss +372 -364
  87. package/src/utils/authority/index.ts +46 -29
  88. package/src/utils/udp/http/index.ts +115 -64
  89. package/src/utils/udp/http/types.d.ts +15 -14
  90. package/src/views/login/login-view.vue +280 -301
  91. package/src/views/organization/department/DepartmentPanel.vue +3 -4
  92. package/src/views/system/sys/sys-config.vue +344 -344
  93. package/src/views/uhome/components/home-todo.vue +179 -178
  94. package/src/views/ulogin/login.vue +8 -41
  95. package/tsconfig.json +2 -3
  96. package/types/global.d.ts +234 -234
  97. package/vite.config.ts +2 -1
  98. package/dist/403-QwBKrRZE.js +0 -72
  99. package/dist/404-Cr7MbzNV.js +0 -72
  100. package/dist/500-B7kCOeIA.js +0 -77
  101. package/dist/AuthorityInfo-Dwml2K4S.js +0 -91
  102. package/dist/AuthorityPanel-DzPhsPpa.js +0 -98
  103. package/dist/Company-BhOlvl7Q.js +0 -21
  104. package/dist/CompanyPanel-ByhY5-Sq.js +0 -199
  105. package/dist/DataSet-CuGZcKC-.js +0 -141
  106. package/dist/Department-QvngN63N.js +0 -21
  107. package/dist/DepartmentPanel-BCXqC39J.js +0 -2
  108. package/dist/DepartmentPanel-DntGycxr.js +0 -242
  109. package/dist/DesignPanel-BMN4DZ0R.js +0 -1196
  110. package/dist/DictView-ERFqZ5VD.js +0 -100
  111. package/dist/File-WJXjGYxr.js +0 -89
  112. package/dist/InvOrganization-BwMmD8Ua.js +0 -76
  113. package/dist/Org-HgnOWubi.js +0 -76
  114. package/dist/Preview-CVZdnHB1.js +0 -45
  115. package/dist/ReIcon-DecitXmg.js +0 -413
  116. package/dist/ReportDefine-BgLM-Rjk.js +0 -10
  117. package/dist/ReportDesign-CjfTyyy_.js +0 -158
  118. package/dist/ReportQuery-CP-E0Puv.js +0 -101
  119. package/dist/ReportQueryFrom-D7SPPAps.js +0 -198
  120. package/dist/ReportTemplate-DE25zc1f.js +0 -162
  121. package/dist/Role-K7v_ZhFE.js +0 -21
  122. package/dist/RoleAssign-C16fjLaX.js +0 -22
  123. package/dist/RolePanel-CV-xPlYJ.js +0 -176
  124. package/dist/RolePanel-DPCe9k8f.js +0 -131
  125. package/dist/ScrollPanel-DW30pGz1.js +0 -88
  126. package/dist/Staff-w2ly4qd0.js +0 -22
  127. package/dist/StaffInfo-DPDRpz6F.js +0 -149
  128. package/dist/StaffPanel-DI1eTTp9.js +0 -143
  129. package/dist/SysUser-BMTX1cJM.js +0 -12
  130. package/dist/SysUserPanel-xwZdVjdp.js +0 -365
  131. package/dist/SystemMenu-TXhiQZVm.js +0 -154
  132. package/dist/UserInfo-JQqw8FMT.js +0 -194
  133. package/dist/_plugin-vue_export-helper-C6QCLu9I.js +0 -8
  134. package/dist/api-BFNxcxSN.js +0 -30
  135. package/dist/authority-Bi6BGB5B.js +0 -20
  136. package/dist/await-to-js.es5-DkWYmPXW.js +0 -10
  137. package/dist/childView-Bk8OD9bV.js +0 -181
  138. package/dist/childView-CyrcwshT.js +0 -184
  139. package/dist/code-rule-QFrhqFrW.js +0 -151
  140. package/dist/contant-Q77dU_V3.js +0 -4
  141. package/dist/cron-task-BpUDKEAU.js +0 -131
  142. package/dist/flow-task-DAc2NrDU.js +0 -11
  143. package/dist/frameView-Di0zJZUR.js +0 -39
  144. package/dist/layout-home-BVp7vYLR.js +0 -239
  145. package/dist/layoutView-DFUjrqAS.js +0 -2662
  146. package/dist/log-in-BrNB0mLz.js +0 -117
  147. package/dist/log-out-dYfqvzy6.js +0 -111
  148. package/dist/login-BdCDnuXL.js +0 -233
  149. package/dist/login-log-CJak-ANA.js +0 -79
  150. package/dist/lov-view-DkmG4K57.js +0 -95
  151. package/dist/menuInfo-kp2wNYOp.js +0 -346
  152. package/dist/mitt-CQgI7DYU.js +0 -27
  153. package/dist/pda-app-CA7YI37u.js +0 -589
  154. package/dist/redirect-N0k4tImU.js +0 -16
  155. package/dist/resource-CfQTHFcs.js +0 -94
  156. package/dist/router-CeluSGiD.js +0 -1531
  157. package/dist/su-welcome-JeiovGpe.js +0 -799
  158. package/dist/sys-config-Ddb3vBpK.js +0 -316
  159. package/dist/udp-core-Dhm-BlAs.js +0 -2032
  160. package/dist/useDataThemeChange-BCy8JBG7.js +0 -226
  161. package/dist/useNav-DY8FkltH.js +0 -106
  162. package/dist/utogether-l7JXs4Lv.js +0 -4
  163. package/dist/water-mark-WDQZ9YqB.js +0 -119
  164. package/dist/wecom-push-kWkAVRCj.js +0 -77
@@ -0,0 +1,707 @@
1
+ import { defineComponent as re, ref as N, computed as G, watch as me, createVNode as p, Fragment as Y, withDirectives as he, unref as C, resolveDirective as be, nextTick as ve, resolveComponent as x, openBlock as J, createElementBlock as Oe, createBlock as _e, createCommentVNode as we, isVNode as Te } from "vue";
2
+ import { useI18n as je } from "vue-i18n";
3
+ import { t as Ce } from "./await-to-js.es5-Bv3Eu4mi.js";
4
+ import { I as Se, g as xe, n as $e, _ as Pe } from "./index-C5WRTwvI.js";
5
+ import { withInstall as Ve, useRender as Ae } from "@utogether/utils";
6
+ import { clone as oe, isString as Z } from "xe-utils";
7
+ import Ne from "qrcode";
8
+ const z = {
9
+ silent: !1,
10
+ logLevel: "warn"
11
+ };
12
+ function j(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 ke = () => ({
19
+ func: () => {
20
+ },
21
+ bool: !0,
22
+ string: "",
23
+ number: 0,
24
+ array: () => [],
25
+ object: () => ({}),
26
+ integer: 0
27
+ }), ie = Object.prototype, se = ie.toString, Le = ie.hasOwnProperty, ae = /^\s*function (\w+)/;
28
+ function ee(e) {
29
+ const t = e?.type ?? e;
30
+ if (t) {
31
+ const r = t.toString().match(ae);
32
+ return r ? r[1] : "";
33
+ }
34
+ return "";
35
+ }
36
+ function Re(e) {
37
+ if (e == null)
38
+ return "";
39
+ const t = e.constructor.toString().match(ae);
40
+ return t ? t[1].replace(/^Async/, "") : "";
41
+ }
42
+ function te(e) {
43
+ return "structuredClone" in globalThis ? structuredClone(e) : Array.isArray(e) ? [...e] : j(e) ? Object.assign({}, e) : e;
44
+ }
45
+ function le() {
46
+ }
47
+ let c = le;
48
+ process.env.NODE_ENV !== "production" && (c = typeof console < "u" ? function(r, n = z.logLevel) {
49
+ z.silent === !1 && console[n](`[VueTypes warn]: ${r}`);
50
+ } : le);
51
+ const k = (e, t) => Le.call(e, t), Ie = Number.isInteger || function(t) {
52
+ return typeof t == "number" && isFinite(t) && Math.floor(t) === t;
53
+ }, L = Array.isArray || function(t) {
54
+ return se.call(t) === "[object Array]";
55
+ }, R = (e) => se.call(e) === "[object Function]", M = (e, t) => j(e) && k(e, "_vueTypes_name") && (!t || e._vueTypes_name === t), ue = (e) => j(e) && (k(e, "type") || ["_vueTypes_name", "validator", "default", "required"].some(
56
+ (t) => k(e, t)
57
+ ));
58
+ function ce(e, t) {
59
+ return Object.defineProperty(e.bind(t), "__original", {
60
+ value: e
61
+ });
62
+ }
63
+ function S(e, t, r = !1) {
64
+ let n, o = !0, a = "";
65
+ j(e) ? n = e : n = { type: e };
66
+ const s = M(n) ? n._vueTypes_name + " - " : "";
67
+ if (ue(n) && n.type !== null) {
68
+ if (n.type === void 0 || n.type === !0 || !n.required && t == null)
69
+ return o;
70
+ L(n.type) ? (o = n.type.some(
71
+ (d) => S(d, t, !0) === !0
72
+ ), a = n.type.map((d) => ee(d)).join(" or ")) : (a = ee(n), a === "Array" ? o = L(t) : a === "Object" ? o = j(t) : a === "String" || a === "Number" || a === "Boolean" || a === "Function" ? o = Re(t) === a : o = t instanceof n.type);
73
+ }
74
+ if (!o) {
75
+ const d = `${s}value "${t}" should be of type "${a}"`;
76
+ return r === !1 ? (c(d), !1) : d;
77
+ }
78
+ if (k(n, "validator") && R(n.validator)) {
79
+ const d = c, y = [];
80
+ if (c = (g) => {
81
+ y.push(g);
82
+ }, o = n.validator(t), c = d, !o) {
83
+ const g = (y.length > 1 ? "* " : "") + y.join(`
84
+ * `);
85
+ return y.length = 0, r === !1 ? (c(g), o) : g;
86
+ }
87
+ }
88
+ return o;
89
+ }
90
+ function b(e, t) {
91
+ const r = 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 k(this, "default") && delete this.default, this;
109
+ }
110
+ return !R(o) && S(this, o, !0) !== !0 ? (c(`${this._vueTypes_name} - invalid default value: "${o}"`), this) : (L(o) ? this.default = () => te(o) : j(o) ? this.default = () => te(o) : this.default = o, this);
111
+ }
112
+ }
113
+ }), { validator: n } = r;
114
+ return R(n) && (r.validator = ce(n, r)), r;
115
+ }
116
+ function _(e, t) {
117
+ const r = b(e, t);
118
+ return Object.defineProperty(r, "validate", {
119
+ value(n) {
120
+ return R(this.validator) && c(
121
+ `${this._vueTypes_name} - calling .validate() will overwrite the current custom validator function. Validator info:
122
+ ${JSON.stringify(
123
+ this
124
+ )}`
125
+ ), this.validator = ce(n, this), this;
126
+ }
127
+ });
128
+ }
129
+ function B(e) {
130
+ return e.replace(/^(?!\s*$)/gm, " ");
131
+ }
132
+ const Ue = () => _("any", {}), qe = () => _("function", {
133
+ type: Function
134
+ }), ne = () => _("boolean", {
135
+ type: Boolean
136
+ }), De = () => _("string", {
137
+ type: String
138
+ }), Be = () => _("number", {
139
+ type: Number
140
+ }), Ee = () => _("array", {
141
+ type: Array
142
+ }), Fe = () => _("object", {
143
+ type: Object
144
+ }), We = () => b("integer", {
145
+ type: Number,
146
+ validator(e) {
147
+ const t = Ie(e);
148
+ return t === !1 && c(`integer - "${e}" is not an integer`), t;
149
+ }
150
+ }), Ye = () => b("symbol", {
151
+ validator(e) {
152
+ const t = typeof e == "symbol";
153
+ return t === !1 && c(`symbol - invalid value "${e}"`), t;
154
+ }
155
+ }), ze = () => Object.defineProperty(
156
+ {
157
+ type: null,
158
+ validator(e) {
159
+ const t = e === null;
160
+ return t === !1 && c("nullable - value should be null"), t;
161
+ }
162
+ },
163
+ "_vueTypes_name",
164
+ { value: "nullable" }
165
+ );
166
+ function Me(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 b(e.name || "<<anonymous function>>", {
172
+ type: null,
173
+ validator(r) {
174
+ const n = e(r);
175
+ return n || c(`${this._vueTypes_name} - ${t}`), n;
176
+ }
177
+ });
178
+ }
179
+ function Qe(e) {
180
+ if (!L(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((n) => typeof n == "symbol" ? n.toString() : n).join('", "')}".`, r = {
185
+ validator(n) {
186
+ const o = e.indexOf(n) !== -1;
187
+ return o || c(t), o;
188
+ }
189
+ };
190
+ if (e.indexOf(null) === -1) {
191
+ const n = e.reduce(
192
+ (o, a) => {
193
+ if (a != null) {
194
+ const s = a.constructor;
195
+ o.indexOf(s) === -1 && o.push(s);
196
+ }
197
+ return o;
198
+ },
199
+ []
200
+ );
201
+ n.length > 0 && (r.type = n);
202
+ }
203
+ return b("oneOf", r);
204
+ }
205
+ function He(e) {
206
+ if (!L(e))
207
+ throw new TypeError(
208
+ "[VueTypes error]: You must provide an array as argument"
209
+ );
210
+ let t = !1, r = !1, n = [];
211
+ for (let a = 0; a < e.length; a += 1) {
212
+ const s = e[a];
213
+ if (ue(s)) {
214
+ if (R(s.validator) && (t = !0), M(s, "oneOf") && s.type) {
215
+ n = n.concat(s.type);
216
+ continue;
217
+ }
218
+ if (M(s, "nullable")) {
219
+ r = !0;
220
+ continue;
221
+ }
222
+ if (s.type === !0 || !s.type) {
223
+ c('oneOfType - invalid usage of "true" and "null" as types.');
224
+ continue;
225
+ }
226
+ n = n.concat(s.type);
227
+ } else
228
+ n.push(s);
229
+ }
230
+ n = n.filter((a, s) => n.indexOf(a) === s);
231
+ const o = r === !1 && n.length > 0 ? n : null;
232
+ return t ? b("oneOfType", {
233
+ type: o,
234
+ validator(a) {
235
+ const s = [], d = e.some((y) => {
236
+ const g = S(y, a, !0);
237
+ return typeof g == "string" && s.push(g), g === !0;
238
+ });
239
+ return d || c(
240
+ `oneOfType - provided value does not match any of the ${s.length} passed-in validators:
241
+ ${B(s.join(`
242
+ `))}`
243
+ ), d;
244
+ }
245
+ }) : b("oneOfType", {
246
+ type: o
247
+ });
248
+ }
249
+ function Xe(e) {
250
+ return b("arrayOf", {
251
+ type: Array,
252
+ validator(t) {
253
+ let r = "";
254
+ const n = t.every((o) => (r = S(e, o, !0), r === !0));
255
+ return n || c(`arrayOf - value validation error:
256
+ ${B(r)}`), n;
257
+ }
258
+ });
259
+ }
260
+ function Ke(e) {
261
+ return b("instanceOf", {
262
+ type: e
263
+ });
264
+ }
265
+ function Ge(e) {
266
+ return b("objectOf", {
267
+ type: Object,
268
+ validator(t) {
269
+ let r = "";
270
+ if (!j(t))
271
+ return !1;
272
+ const n = Object.keys(t).every((o) => (r = S(e, t[o], !0), r === !0));
273
+ return n || c(`objectOf - value validation error:
274
+ ${B(r)}`), n;
275
+ }
276
+ });
277
+ }
278
+ function Je(e) {
279
+ const t = Object.keys(e), r = t.filter((o) => !!e[o]?.required), n = b("shape", {
280
+ type: Object,
281
+ validator(o) {
282
+ if (!j(o))
283
+ return !1;
284
+ const a = Object.keys(o);
285
+ if (r.length > 0 && r.some((s) => a.indexOf(s) === -1)) {
286
+ const s = r.filter(
287
+ (d) => a.indexOf(d) === -1
288
+ );
289
+ return s.length === 1 ? c(`shape - required property "${s[0]}" is not defined.`) : c(
290
+ `shape - required properties "${s.join(
291
+ '", "'
292
+ )}" are not defined.`
293
+ ), !1;
294
+ }
295
+ return a.every((s) => {
296
+ if (t.indexOf(s) === -1)
297
+ return this._vueTypes_isLoose === !0 ? !0 : (c(
298
+ `shape - shape definition does not include a "${s}" property. Allowed keys: "${t.join(
299
+ '", "'
300
+ )}".`
301
+ ), !1);
302
+ const d = e[s], y = S(d, o[s], !0);
303
+ return typeof y == "string" && c(`shape - "${s}" property validation error:
304
+ ${B(y)}`), y === !0;
305
+ });
306
+ }
307
+ });
308
+ return Object.defineProperty(n, "_vueTypes_isLoose", {
309
+ writable: !0,
310
+ value: !1
311
+ }), Object.defineProperty(n, "loose", {
312
+ get() {
313
+ return this._vueTypes_isLoose = !0, this;
314
+ }
315
+ }), n;
316
+ }
317
+ var Ze = Object.defineProperty, et = (e, t, r) => t in e ? Ze(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, h = (e, t, r) => (et(e, typeof t != "symbol" ? t + "" : t, r), r);
318
+ const tt = /* @__PURE__ */ (() => {
319
+ var e;
320
+ return (
321
+ // eslint-disable-next-line @typescript-eslint/no-extraneous-class
322
+ e = class {
323
+ static get any() {
324
+ return Ue();
325
+ }
326
+ static get func() {
327
+ return qe().def(this.defaults.func);
328
+ }
329
+ static get bool() {
330
+ return this.defaults.bool === void 0 ? ne() : ne().def(this.defaults.bool);
331
+ }
332
+ static get string() {
333
+ return De().def(this.defaults.string);
334
+ }
335
+ static get number() {
336
+ return Be().def(this.defaults.number);
337
+ }
338
+ static get array() {
339
+ return Ee().def(this.defaults.array);
340
+ }
341
+ static get object() {
342
+ return Fe().def(this.defaults.object);
343
+ }
344
+ static get integer() {
345
+ return We().def(this.defaults.integer);
346
+ }
347
+ static get symbol() {
348
+ return Ye();
349
+ }
350
+ static get nullable() {
351
+ return ze();
352
+ }
353
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
354
+ static extend(...t) {
355
+ c(
356
+ "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."
357
+ );
358
+ }
359
+ }, h(e, "defaults", {}), h(e, "sensibleDefaults"), h(e, "config", z), h(e, "custom", Me), h(e, "oneOf", Qe), h(e, "instanceOf", Ke), h(e, "oneOfType", He), h(e, "arrayOf", Xe), h(e, "objectOf", Ge), h(e, "shape", Je), h(e, "utils", {
360
+ validate(t, r) {
361
+ return S(r, t, !0) === !0;
362
+ },
363
+ toType(t, r, n = !1) {
364
+ return n ? _(t, r) : b(t, r);
365
+ }
366
+ }), e
367
+ );
368
+ })();
369
+ function de(e = ke()) {
370
+ var t;
371
+ return t = class extends tt {
372
+ static get sensibleDefaults() {
373
+ return { ...this.defaults };
374
+ }
375
+ static set sensibleDefaults(r) {
376
+ if (r === !1) {
377
+ this.defaults = {};
378
+ return;
379
+ }
380
+ if (r === !0) {
381
+ this.defaults = { ...e };
382
+ return;
383
+ }
384
+ this.defaults = { ...r };
385
+ }
386
+ }, h(t, "defaults", { ...e }), t;
387
+ }
388
+ class mt extends de() {
389
+ }
390
+ const nt = de({
391
+ func: void 0,
392
+ bool: void 0,
393
+ string: void 0,
394
+ number: void 0,
395
+ object: void 0,
396
+ integer: void 0
397
+ });
398
+ class D extends nt {
399
+ // a native-like validator that supports the `.validable` method
400
+ static get style() {
401
+ return _("style", {
402
+ type: [String, Object]
403
+ });
404
+ }
405
+ static get VNodeChild() {
406
+ return _("VNodeChild", {
407
+ type: void 0
408
+ });
409
+ }
410
+ }
411
+ const rt = {
412
+ // img 或者 canvas,img不支持logo嵌套
413
+ tag: D.string.validate((e) => ["canvas", "img"].includes(e)).def("canvas"),
414
+ // 二维码内容
415
+ text: {
416
+ type: [String, Array],
417
+ default: null
418
+ },
419
+ // qrcode.js配置项
420
+ options: {
421
+ type: Object,
422
+ default: () => ({})
423
+ },
424
+ // 宽度
425
+ width: D.number.def(200),
426
+ // logo
427
+ logo: {
428
+ type: [String, Object],
429
+ default: () => ""
430
+ },
431
+ // 是否过期
432
+ disabled: D.bool.def(!1),
433
+ // 过期提示内容
434
+ disabledText: D.string.def("")
435
+ }, ot = /* @__PURE__ */ re({
436
+ name: "SuQrcode",
437
+ props: rt,
438
+ emits: ["done", "click", "disabled-click"],
439
+ setup(e, {
440
+ emit: t
441
+ }) {
442
+ const {
443
+ toCanvas: r,
444
+ toDataURL: n
445
+ } = Ne, o = N(!0), a = N(null), s = G(() => String(e.text)), d = G(() => ({
446
+ width: e.width + "px",
447
+ height: e.width + "px"
448
+ })), y = async () => {
449
+ await ve();
450
+ const i = oe(e.options || {}, !0);
451
+ if (e.tag === "canvas") {
452
+ i.errorCorrectionLevel = i.errorCorrectionLevel || $(C(s));
453
+ const l = await E(C(s), i);
454
+ i.scale = e.width === 0 ? void 0 : e.width / l * 4;
455
+ const u = await r(C(a), C(s), i);
456
+ if (e.logo) {
457
+ const f = await g(u);
458
+ t("done", f), o.value = !1;
459
+ } else
460
+ t("done", u.toDataURL()), o.value = !1;
461
+ } else {
462
+ const l = await n(s.value, {
463
+ errorCorrectionLevel: "H",
464
+ width: e.width,
465
+ ...i
466
+ });
467
+ C(a).src = l, t("done", l), o.value = !1;
468
+ }
469
+ };
470
+ me(() => s.value, (i) => {
471
+ i && y();
472
+ }, {
473
+ deep: !0,
474
+ immediate: !0
475
+ });
476
+ const g = (i) => {
477
+ const l = i.width, u = Object.assign({
478
+ logoSize: 0.15,
479
+ bgColor: "#ffffff",
480
+ borderSize: 0.05,
481
+ crossOrigin: "anonymous",
482
+ borderRadius: 8,
483
+ logoRadius: 0
484
+ }, Z(e.logo) ? {} : e.logo), {
485
+ logoSize: f = 0.15,
486
+ bgColor: m = "#ffffff",
487
+ borderSize: O = 0.05,
488
+ crossOrigin: P = "anonymous",
489
+ borderRadius: fe = 8,
490
+ logoRadius: W = 0
491
+ } = u, pe = Z(e.logo) ? e.logo : e.logo.src, w = l * f, T = l * (1 - f) / 2, Q = l * (f + O), H = l * (1 - f - O) / 2, v = i.getContext("2d");
492
+ if (!v) return;
493
+ I(v)(H, H, Q, Q, fe), v.fillStyle = m, v.fill();
494
+ const V = new Image();
495
+ (P || W) && V.setAttribute("crossOrigin", P), V.src = pe;
496
+ const ye = (A) => {
497
+ v.drawImage(A, T, T, w, w);
498
+ }, ge = (A) => {
499
+ const q = document.createElement("canvas");
500
+ q.width = T + w, q.height = T + w;
501
+ const X = q.getContext("2d");
502
+ if (!X || !v || (X.drawImage(A, T, T, w, w), I(v)(T, T, w, w, W), !v)) return;
503
+ const K = v.createPattern(q, "no-repeat");
504
+ K && (v.fillStyle = K, v.fill());
505
+ };
506
+ return new Promise((A) => {
507
+ V.onload = () => {
508
+ W ? ge(V) : ye(V), A(i.toDataURL());
509
+ };
510
+ });
511
+ }, E = async (i, l) => {
512
+ const u = document.createElement("canvas");
513
+ return await r(u, i, l), u.width;
514
+ }, $ = (i) => i.length > 36 ? "M" : i.length > 16 ? "Q" : "H", I = (i) => (l, u, f, m, O) => {
515
+ const P = Math.min(f, m);
516
+ return O > P / 2 && (O = P / 2), i.beginPath(), i.moveTo(l + O, u), i.arcTo(l + f, u, l + f, u + m, O), i.arcTo(l + f, u + m, l, u + m, O), i.arcTo(l, u + m, l, u, O), i.arcTo(l, u, l + f, u, O), i.closePath(), i;
517
+ }, U = () => {
518
+ t("click");
519
+ }, F = () => {
520
+ t("disabled-click");
521
+ };
522
+ return () => p(Y, null, [he(p("div", {
523
+ class: "qrcode relative inline-block",
524
+ style: C(d)
525
+ }, [e.tag === "canvas" ? p("canvas", {
526
+ ref: a,
527
+ onClick: U
528
+ }, null) : p("img", {
529
+ ref: a,
530
+ onClick: U
531
+ }, null), e.disabled && p("div", {
532
+ class: "qrcode--disabled absolute top-0 left-0 flex w-full h-full items-center justify-center",
533
+ onClick: F
534
+ }, [p("div", {
535
+ class: "absolute top-[50%] left-[50%] font-bold"
536
+ }, [p(Se, {
537
+ class: "cursor-pointer",
538
+ icon: "refresh-right",
539
+ width: "30",
540
+ color: "var(--el-color-primary)"
541
+ }, null), p("div", null, [e.disabledText])])])]), [[be("loading"), C(o)]])]);
542
+ }
543
+ }), it = Ve(ot);
544
+ function st(e) {
545
+ return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !Te(e);
546
+ }
547
+ const at = {
548
+ name: "PdaApp"
549
+ }, lt = /* @__PURE__ */ re({
550
+ ...at,
551
+ setup(e) {
552
+ const t = xe(), r = Ae(), {
553
+ t: n
554
+ } = je(), o = "/upms/v1/app-manage", a = N(null), s = N({}), d = [{
555
+ type: "checkbox",
556
+ width: 45,
557
+ align: "center"
558
+ }, {
559
+ field: "appVersion",
560
+ title: "message.udp.appVersion",
561
+ width: 110
562
+ }, {
563
+ field: "buildNo",
564
+ title: "message.udp.buildNo",
565
+ width: 130
566
+ }, {
567
+ field: "isForceUpdate",
568
+ title: "message.udp.isForceUpdate",
569
+ width: 130,
570
+ formatter: ({
571
+ row: i
572
+ }) => i.isForceUpdate === "Y" ? n("message.udp.forceUpdate") : n("message.udp.freeUpdate")
573
+ }, {
574
+ field: "versionInfo",
575
+ title: "message.udp.versionInfo",
576
+ miWidth: 200
577
+ }, {
578
+ field: "enabled",
579
+ title: "message.status",
580
+ width: 90,
581
+ formatter: ({
582
+ row: i
583
+ }) => i.enabled === "1" ? n("message.udp.appupper") : n("message.udp.applower")
584
+ }, {
585
+ field: "creationDate",
586
+ width: 140
587
+ }, {
588
+ field: "operate",
589
+ width: 260,
590
+ fixed: "right",
591
+ slots: {
592
+ default: ({
593
+ row: i
594
+ }) => {
595
+ const l = i.enabled === "1" ? "applower" : "appupper", u = i.enabled === "1" ? "warning" : "primary", f = i.enabled === "1" ? "ri-inbox-archive-line" : "ri-inbox-unarchive-line";
596
+ return i.enabled !== "1" ? [p(x("ut-button"), {
597
+ content: l,
598
+ icon: f,
599
+ status: u,
600
+ onTap: () => y(i)
601
+ }, null)] : [
602
+ p(Y, null, [p("div", {
603
+ style: "display: flex; justify-content: space-between;"
604
+ }, [p(x("ut-button"), {
605
+ content: l,
606
+ icon: f,
607
+ status: u,
608
+ onTap: () => y(i)
609
+ }, null), p(x("el-popover"), {
610
+ placement: "left"
611
+ }, {
612
+ default: () => [p(Y, null, [p(it, {
613
+ text: t + "/ufil/" + i.downloadUrl
614
+ }, null)])],
615
+ reference: () => {
616
+ let m;
617
+ return p(x("el-button"), {
618
+ type: "success"
619
+ }, st(m = n("message.btn.scan")) ? m : {
620
+ default: () => [m]
621
+ });
622
+ }
623
+ })])])
624
+ // <el-popover
625
+ // placement="left"
626
+ // v-slots={{
627
+ // reference: () => <el-button type="primary">外网下载</el-button>
628
+ // }}
629
+ // >
630
+ // <>
631
+ // <SuQrcode text={'http://jemes.uzuo.cn/gateway/ufil/' + row.downloadUrl} />
632
+ // </>
633
+ // </el-popover>
634
+ ];
635
+ }
636
+ }
637
+ }], y = async (i) => {
638
+ const l = oe(i, !0);
639
+ l.enabled = i.enabled === "1" ? "0" : "1", await Ce($e().put(o, l)), a.value.refreshData();
640
+ }, g = (i) => {
641
+ i === "add" && I(), i === "del" && U();
642
+ }, E = [{
643
+ field: "appVersion",
644
+ title: "message.udp.appVersion",
645
+ required: !0
646
+ }, {
647
+ field: "buildNo",
648
+ title: "message.udp.buildNo",
649
+ required: !0
650
+ }, {
651
+ field: "isForceUpdate",
652
+ title: "message.udp.isForceUpdate",
653
+ required: !0,
654
+ itemRender: r.renderSwitch({
655
+ openLabel: n("message.udp.forceUpdate"),
656
+ closeLabel: n("message.udp.freeUpdate"),
657
+ openValue: "Y",
658
+ closeValue: "N"
659
+ })
660
+ }, {
661
+ field: "versionInfo",
662
+ title: "message.udp.versionInfo",
663
+ required: !0,
664
+ itemRender: r.renderTextarea()
665
+ }, {
666
+ field: "downloadUrl",
667
+ required: !1,
668
+ title: "message.udp.downloadUrl",
669
+ itemRender: r.renderUpload()
670
+ }], $ = N(!1), I = () => {
671
+ s.value = {
672
+ // downloadUrl: 'https://vxeui.com/resource/img/fj577.jpg'
673
+ // downloadUrl: '/resource/image/20250817/15806d21e3f445dcae0e2e0825c76a79.jpg'
674
+ }, $.value = !0;
675
+ }, U = () => {
676
+ a.value.getInstance().commitProxy("delete");
677
+ }, F = () => {
678
+ a.value.refreshData();
679
+ };
680
+ return (i, l) => {
681
+ const u = x("ut-grid"), f = x("ut-modal-form");
682
+ return J(), Oe("div", null, [p(u, {
683
+ ref_key: "xgrid",
684
+ ref: a,
685
+ columns: d,
686
+ url: o,
687
+ mode: "form",
688
+ onButtonClick: g
689
+ }, null, 512), $.value ? (J(), _e(f, {
690
+ key: 0,
691
+ record: s.value,
692
+ items: E,
693
+ width: 420,
694
+ height: 450,
695
+ title: i.$t("message.title.appAdd"),
696
+ url: o,
697
+ class: "ut-app-form",
698
+ "data-status": "add",
699
+ onClose: l[0] || (l[0] = (m) => $.value = !1),
700
+ onConfirm: F
701
+ }, null, 8, ["record", "title"])) : we("", !0)]);
702
+ };
703
+ }
704
+ }), ht = /* @__PURE__ */ Pe(lt, [["__scopeId", "data-v-4c7392db"]]);
705
+ export {
706
+ ht as default
707
+ };