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

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 (149) hide show
  1. package/dist/403-QwBKrRZE.js +72 -0
  2. package/dist/404-Cr7MbzNV.js +72 -0
  3. package/dist/500-B7kCOeIA.js +77 -0
  4. package/dist/AuthorityInfo-Dwml2K4S.js +91 -0
  5. package/dist/AuthorityPanel-DzPhsPpa.js +98 -0
  6. package/dist/Company-BhOlvl7Q.js +21 -0
  7. package/dist/CompanyPanel-ByhY5-Sq.js +199 -0
  8. package/dist/DataSet-CuGZcKC-.js +141 -0
  9. package/dist/Department-QvngN63N.js +21 -0
  10. package/dist/DepartmentPanel-BCXqC39J.js +2 -0
  11. package/dist/DepartmentPanel-DntGycxr.js +242 -0
  12. package/dist/DesignPanel-BMN4DZ0R.js +1196 -0
  13. package/dist/DictView-ERFqZ5VD.js +100 -0
  14. package/dist/File-WJXjGYxr.js +89 -0
  15. package/dist/InvOrganization-BwMmD8Ua.js +76 -0
  16. package/dist/Org-HgnOWubi.js +76 -0
  17. package/dist/Preview-CVZdnHB1.js +45 -0
  18. package/dist/ReIcon-DecitXmg.js +413 -0
  19. package/dist/ReportDefine-BgLM-Rjk.js +10 -0
  20. package/dist/ReportDesign-CjfTyyy_.js +158 -0
  21. package/dist/ReportQuery-CP-E0Puv.js +101 -0
  22. package/dist/ReportQueryFrom-D7SPPAps.js +198 -0
  23. package/dist/ReportTemplate-DE25zc1f.js +162 -0
  24. package/dist/Role-K7v_ZhFE.js +21 -0
  25. package/dist/RoleAssign-C16fjLaX.js +22 -0
  26. package/dist/RolePanel-CV-xPlYJ.js +176 -0
  27. package/dist/RolePanel-DPCe9k8f.js +131 -0
  28. package/dist/ScrollPanel-DW30pGz1.js +88 -0
  29. package/dist/Staff-w2ly4qd0.js +22 -0
  30. package/dist/StaffInfo-DPDRpz6F.js +149 -0
  31. package/dist/StaffPanel-DI1eTTp9.js +143 -0
  32. package/dist/SysUser-BMTX1cJM.js +12 -0
  33. package/dist/SysUserPanel-xwZdVjdp.js +365 -0
  34. package/dist/SystemMenu-TXhiQZVm.js +154 -0
  35. package/dist/UserInfo-JQqw8FMT.js +194 -0
  36. package/dist/_plugin-vue_export-helper-C6QCLu9I.js +8 -0
  37. package/dist/api-BFNxcxSN.js +30 -0
  38. package/dist/authority-Bi6BGB5B.js +20 -0
  39. package/dist/await-to-js.es5-DkWYmPXW.js +10 -0
  40. package/dist/childView-Bk8OD9bV.js +181 -0
  41. package/dist/childView-CyrcwshT.js +184 -0
  42. package/dist/code-rule-QFrhqFrW.js +151 -0
  43. package/dist/contant-Q77dU_V3.js +4 -0
  44. package/dist/core.es.js +6 -23
  45. package/dist/cron-task-BpUDKEAU.js +131 -0
  46. package/dist/flow-task-DAc2NrDU.js +11 -0
  47. package/dist/frameView-Di0zJZUR.js +39 -0
  48. package/dist/img/v_img.svg +1 -1
  49. package/dist/layout-home-BVp7vYLR.js +239 -0
  50. package/dist/layoutView-DFUjrqAS.js +2662 -0
  51. package/dist/log-in-BrNB0mLz.js +117 -0
  52. package/dist/log-out-dYfqvzy6.js +111 -0
  53. package/dist/login-BdCDnuXL.js +233 -0
  54. package/dist/login-log-CJak-ANA.js +79 -0
  55. package/dist/lov-view-DkmG4K57.js +95 -0
  56. package/dist/menuInfo-kp2wNYOp.js +346 -0
  57. package/dist/mitt-CQgI7DYU.js +27 -0
  58. package/dist/pda-app-CA7YI37u.js +589 -0
  59. package/dist/redirect-N0k4tImU.js +16 -0
  60. package/dist/resource-CfQTHFcs.js +94 -0
  61. package/dist/router-CeluSGiD.js +1531 -0
  62. package/dist/su-welcome-JeiovGpe.js +799 -0
  63. package/dist/sys-config-Ddb3vBpK.js +316 -0
  64. package/dist/udp-core-Dhm-BlAs.js +2032 -0
  65. package/dist/udp-core.css +2 -1
  66. package/dist/useDataThemeChange-BCy8JBG7.js +226 -0
  67. package/dist/useNav-DY8FkltH.js +106 -0
  68. package/dist/utogether-l7JXs4Lv.js +4 -0
  69. package/dist/water-mark-WDQZ9YqB.js +119 -0
  70. package/dist/wecom-push-kWkAVRCj.js +77 -0
  71. package/package.json +1 -1
  72. package/src/api/index.ts +51 -51
  73. package/src/components/udp/index.ts +9 -8
  74. package/src/components/udp/lov/index.vue +430 -0
  75. package/src/components/udp/upload/index.vue +444 -444
  76. package/src/main.ts +110 -111
  77. package/src/plugins/vxe-table/index.ts +1 -1
  78. package/src/plugins/vxe-table/render.tsx +999 -998
  79. package/tsconfig.json +1 -1
  80. package/vite.config.ts +8 -3
  81. package/dist/403-DDCAPCYb.js +0 -65
  82. package/dist/404-BclWW4UB.js +0 -65
  83. package/dist/500-BAggMgTl.js +0 -67
  84. package/dist/AuthorityInfo-liCxYVNc.js +0 -4
  85. package/dist/AuthorityInfo.vue_vue_type_style_index_0_lang-Bd5A4CD-.js +0 -100
  86. package/dist/AuthorityPanel-CRlAwbaI.js +0 -4
  87. package/dist/AuthorityPanel.vue_vue_type_style_index_0_lang-DxhZjp1S.js +0 -114
  88. package/dist/Company-DjaOAaWM.js +0 -25
  89. package/dist/CompanyPanel-Dp_2z717.js +0 -206
  90. package/dist/DataSet-DT-rGICv.js +0 -147
  91. package/dist/Department-Bp5RGbl9.js +0 -25
  92. package/dist/DepartmentPanel-Bg4xM4Lx.js +0 -254
  93. package/dist/DesignPanel-BS2ioHd_.js +0 -4
  94. package/dist/DesignPanel.vue_vue_type_style_index_0_lang-DWwfRVCj.js +0 -1013
  95. package/dist/DictView-pYJXt6IS.js +0 -111
  96. package/dist/InvOrganization-D90gRzlN.js +0 -74
  97. package/dist/Org-Dk4KuIx2.js +0 -39
  98. package/dist/Preview-DpZR6uKs.js +0 -48
  99. package/dist/ReportDefine-PtJnfaLw.js +0 -10
  100. package/dist/ReportDesign-4HWkcTtA.js +0 -165
  101. package/dist/ReportQuery-BPY1lWFn.js +0 -75
  102. package/dist/ReportQueryFrom-CHFlkZ42.js +0 -4
  103. package/dist/ReportQueryFrom.vue_vue_type_style_index_0_lang-DbbQydKz.js +0 -178
  104. package/dist/ReportTemplate-C2F3oy8I.js +0 -161
  105. package/dist/Role-iTP6DYOi.js +0 -25
  106. package/dist/RoleAssign-DIYNHQeF.js +0 -26
  107. package/dist/RolePanel-0ojFIz9G.js +0 -4
  108. package/dist/RolePanel-B0Yr5vjo.js +0 -4
  109. package/dist/RolePanel.vue_vue_type_script_setup_true_lang-CHAj3dCD.js +0 -132
  110. package/dist/RolePanel.vue_vue_type_script_setup_true_lang-CXZBxePU.js +0 -154
  111. package/dist/ScrollPanel.vue_vue_type_style_index_0_lang-DtNzPRjS.js +0 -101
  112. package/dist/Staff-sftZ0bIV.js +0 -26
  113. package/dist/StaffInfo-BG2FMXzR.js +0 -4
  114. package/dist/StaffInfo.vue_vue_type_script_setup_true_lang-DzGn0pYY.js +0 -108
  115. package/dist/StaffPanel-BydqiitC.js +0 -4
  116. package/dist/StaffPanel.vue_vue_type_script_setup_true_lang-C42Pnb-b.js +0 -154
  117. package/dist/SysUser-qMGVHpJ_.js +0 -15
  118. package/dist/SysUserPanel-Bh1HgSAr.js +0 -4
  119. package/dist/SysUserPanel.vue_vue_type_script_setup_true_lang-BBEMYLQN.js +0 -356
  120. package/dist/SystemMenu-DUbWmLip.js +0 -156
  121. package/dist/UserInfo-DNkiTdWm.js +0 -4
  122. package/dist/UserInfo.vue_vue_type_style_index_0_lang-B1eNklEd.js +0 -160
  123. package/dist/await-to-js.es5-Bv3Eu4mi.js +0 -10
  124. package/dist/childView-CjUjh8Da.js +0 -4
  125. package/dist/childView-DT9luEEK.js +0 -4
  126. package/dist/childView.vue_vue_type_style_index_0_lang-CgqosFJQ.js +0 -183
  127. package/dist/childView.vue_vue_type_style_index_0_lang-DkXHMFPd.js +0 -143
  128. package/dist/code-rule-uOazxFfn.js +0 -148
  129. package/dist/cron-task-DEykunjo.js +0 -135
  130. package/dist/flow-task-B07st2aD.js +0 -10
  131. package/dist/frameView-FxzlbkeM.js +0 -44
  132. package/dist/index-BnxyUGKa.js +0 -7944
  133. package/dist/layout-home-C0jme8Ju.js +0 -232
  134. package/dist/layoutView-BqMAHIxF.js +0 -3239
  135. package/dist/log-in-skZaWMBY.js +0 -117
  136. package/dist/log-out-BiND7muW.js +0 -130
  137. package/dist/login-C-184YPO.js +0 -235
  138. package/dist/login-log-BEHYT0v0.js +0 -70
  139. package/dist/lov-view-Df-swRfy.js +0 -99
  140. package/dist/menuInfo-CpyjX4a4.js +0 -4
  141. package/dist/menuInfo.vue_vue_type_style_index_0_lang-D09-OKji.js +0 -363
  142. package/dist/pda-app-DP87aTBc.js +0 -710
  143. package/dist/redirect-BqegffKC.js +0 -15
  144. package/dist/resource-CAldbnw4.js +0 -97
  145. package/dist/su-welcome-DoBUqadB.js +0 -42225
  146. package/dist/sys-config-hGuE7DUf.js +0 -385
  147. package/dist/useNav-Cf_e5pBY.js +0 -92
  148. package/dist/utogether-MlnyYtNS.js +0 -4
  149. package/dist/wecom-push-DR7NsNro.js +0 -70
@@ -1,710 +0,0 @@
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, createElementBlock as Oe, openBlock as J, 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, y as xe, i as $e, _ as Pe } from "./index-BnxyUGKa.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 == null ? void 0 : 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) => {
280
- var a;
281
- return !!((a = e[o]) != null && a.required);
282
- }), n = b("shape", {
283
- type: Object,
284
- validator(o) {
285
- if (!j(o))
286
- return !1;
287
- const a = Object.keys(o);
288
- if (r.length > 0 && r.some((s) => a.indexOf(s) === -1)) {
289
- const s = r.filter(
290
- (d) => a.indexOf(d) === -1
291
- );
292
- return s.length === 1 ? c(`shape - required property "${s[0]}" is not defined.`) : c(
293
- `shape - required properties "${s.join(
294
- '", "'
295
- )}" are not defined.`
296
- ), !1;
297
- }
298
- return a.every((s) => {
299
- if (t.indexOf(s) === -1)
300
- return this._vueTypes_isLoose === !0 ? !0 : (c(
301
- `shape - shape definition does not include a "${s}" property. Allowed keys: "${t.join(
302
- '", "'
303
- )}".`
304
- ), !1);
305
- const d = e[s], y = S(d, o[s], !0);
306
- return typeof y == "string" && c(`shape - "${s}" property validation error:
307
- ${B(y)}`), y === !0;
308
- });
309
- }
310
- });
311
- return Object.defineProperty(n, "_vueTypes_isLoose", {
312
- writable: !0,
313
- value: !1
314
- }), Object.defineProperty(n, "loose", {
315
- get() {
316
- return this._vueTypes_isLoose = !0, this;
317
- }
318
- }), n;
319
- }
320
- 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);
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 Ue();
328
- }
329
- static get func() {
330
- return qe().def(this.defaults.func);
331
- }
332
- static get bool() {
333
- return this.defaults.bool === void 0 ? ne() : ne().def(this.defaults.bool);
334
- }
335
- static get string() {
336
- return De().def(this.defaults.string);
337
- }
338
- static get number() {
339
- return Be().def(this.defaults.number);
340
- }
341
- static get array() {
342
- return Ee().def(this.defaults.array);
343
- }
344
- static get object() {
345
- return Fe().def(this.defaults.object);
346
- }
347
- static get integer() {
348
- return We().def(this.defaults.integer);
349
- }
350
- static get symbol() {
351
- return Ye();
352
- }
353
- static get nullable() {
354
- return ze();
355
- }
356
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
357
- static extend(...t) {
358
- c(
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
- }, 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", {
363
- validate(t, r) {
364
- return S(r, t, !0) === !0;
365
- },
366
- toType(t, r, n = !1) {
367
- return n ? _(t, r) : b(t, r);
368
- }
369
- }), e
370
- );
371
- })();
372
- function de(e = ke()) {
373
- var t;
374
- return t = class extends tt {
375
- static get sensibleDefaults() {
376
- return { ...this.defaults };
377
- }
378
- static set sensibleDefaults(r) {
379
- if (r === !1) {
380
- this.defaults = {};
381
- return;
382
- }
383
- if (r === !0) {
384
- this.defaults = { ...e };
385
- return;
386
- }
387
- this.defaults = { ...r };
388
- }
389
- }, h(t, "defaults", { ...e }), t;
390
- }
391
- class mt extends de() {
392
- }
393
- const nt = de({
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 nt {
402
- // a native-like validator that supports the `.validable` method
403
- static get style() {
404
- return _("style", {
405
- type: [String, Object]
406
- });
407
- }
408
- static get VNodeChild() {
409
- return _("VNodeChild", {
410
- type: void 0
411
- });
412
- }
413
- }
414
- const rt = {
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__ */ re({
439
- name: "SuQrcode",
440
- props: rt,
441
- emits: ["done", "click", "disabled-click"],
442
- setup(e, {
443
- emit: t
444
- }) {
445
- const {
446
- toCanvas: r,
447
- toDataURL: n
448
- } = Ne, o = N(!0), a = N(null), s = G(() => String(e.text)), d = G(() => ({
449
- width: e.width + "px",
450
- height: e.width + "px"
451
- })), y = async () => {
452
- await ve();
453
- const i = oe(e.options || {}, !0);
454
- if (e.tag === "canvas") {
455
- i.errorCorrectionLevel = i.errorCorrectionLevel || $(C(s));
456
- const l = await E(C(s), i);
457
- i.scale = e.width === 0 ? void 0 : e.width / l * 4;
458
- const u = await r(C(a), C(s), i);
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 n(s.value, {
466
- errorCorrectionLevel: "H",
467
- width: e.width,
468
- ...i
469
- });
470
- C(a).src = l, t("done", l), o.value = !1;
471
- }
472
- };
473
- me(() => s.value, (i) => {
474
- i && y();
475
- }, {
476
- deep: !0,
477
- immediate: !0
478
- });
479
- const g = (i) => {
480
- const l = i.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: m = "#ffffff",
490
- borderSize: O = 0.05,
491
- crossOrigin: P = "anonymous",
492
- borderRadius: fe = 8,
493
- logoRadius: W = 0
494
- } = 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");
495
- if (!v) return;
496
- I(v)(H, H, Q, Q, fe), v.fillStyle = m, v.fill();
497
- const V = new Image();
498
- (P || W) && V.setAttribute("crossOrigin", P), V.src = pe;
499
- const ye = (A) => {
500
- v.drawImage(A, T, T, w, w);
501
- }, ge = (A) => {
502
- const q = document.createElement("canvas");
503
- q.width = T + w, q.height = T + w;
504
- const X = q.getContext("2d");
505
- if (!X || !v || (X.drawImage(A, T, T, w, w), I(v)(T, T, w, w, W), !v)) return;
506
- const K = v.createPattern(q, "no-repeat");
507
- K && (v.fillStyle = K, v.fill());
508
- };
509
- return new Promise((A) => {
510
- V.onload = () => {
511
- W ? ge(V) : ye(V), A(i.toDataURL());
512
- };
513
- });
514
- }, E = async (i, l) => {
515
- const u = document.createElement("canvas");
516
- return await r(u, i, l), u.width;
517
- }, $ = (i) => i.length > 36 ? "M" : i.length > 16 ? "Q" : "H", I = (i) => (l, u, f, m, O) => {
518
- const P = Math.min(f, m);
519
- 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;
520
- }, U = () => {
521
- t("click");
522
- }, F = () => {
523
- t("disabled-click");
524
- };
525
- return () => p(Y, null, [he(p("div", {
526
- class: "qrcode relative inline-block",
527
- style: C(d)
528
- }, [e.tag === "canvas" ? p("canvas", {
529
- ref: a,
530
- onClick: U
531
- }, null) : p("img", {
532
- ref: a,
533
- onClick: U
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: F
537
- }, [p("div", {
538
- class: "absolute top-[50%] left-[50%] font-bold"
539
- }, [p(Se, {
540
- class: "cursor-pointer",
541
- icon: "refresh-right",
542
- width: "30",
543
- color: "var(--el-color-primary)"
544
- }, null), p("div", null, [e.disabledText])])])]), [[be("loading"), C(o)]])]);
545
- }
546
- }), it = Ve(ot);
547
- function st(e) {
548
- return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !Te(e);
549
- }
550
- const at = {
551
- name: "PdaApp"
552
- }, lt = /* @__PURE__ */ re({
553
- ...at,
554
- setup(e) {
555
- const t = xe(), r = Ae(), {
556
- t: n
557
- } = je(), o = "/upms/v1/app-manage", a = N(null), s = N({}), d = [{
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: i
575
- }) => i.isForceUpdate === "Y" ? n("message.udp.forceUpdate") : n("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: i
586
- }) => i.enabled === "1" ? n("message.udp.appupper") : n("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: i
597
- }) => {
598
- 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";
599
- return i.enabled !== "1" ? [p(x("ut-button"), {
600
- content: l,
601
- icon: f,
602
- status: u,
603
- onTap: () => y(i)
604
- }, null)] : [
605
- p(Y, null, [p("div", {
606
- style: "display: flex; justify-content: space-between;"
607
- }, [p(x("ut-button"), {
608
- content: l,
609
- icon: f,
610
- status: u,
611
- onTap: () => y(i)
612
- }, null), p(x("el-popover"), {
613
- placement: "left"
614
- }, {
615
- default: () => [p(Y, null, [p(it, {
616
- text: t + "/ufil/" + i.downloadUrl
617
- }, null)])],
618
- reference: () => {
619
- let m;
620
- return p(x("el-button"), {
621
- type: "success"
622
- }, st(m = n("message.btn.scan")) ? m : {
623
- default: () => [m]
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 (i) => {
641
- const l = oe(i, !0);
642
- l.enabled = i.enabled === "1" ? "0" : "1", await Ce($e().put(o, l)), a.value.refreshData();
643
- }, g = (i) => {
644
- i === "add" && I(), i === "del" && U();
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: r.renderSwitch({
658
- openLabel: n("message.udp.forceUpdate"),
659
- closeLabel: n("message.udp.freeUpdate"),
660
- openValue: "Y",
661
- closeValue: "N"
662
- })
663
- }, {
664
- field: "versionInfo",
665
- title: "message.udp.versionInfo",
666
- required: !0,
667
- itemRender: r.renderTextarea()
668
- }, {
669
- field: "downloadUrl",
670
- required: !1,
671
- title: "message.udp.downloadUrl",
672
- itemRender: r.renderUpload()
673
- }], $ = N(!1), I = () => {
674
- s.value = {
675
- // downloadUrl: 'https://vxeui.com/resource/img/fj577.jpg'
676
- // downloadUrl: '/resource/image/20250817/15806d21e3f445dcae0e2e0825c76a79.jpg'
677
- }, $.value = !0;
678
- }, U = () => {
679
- a.value.getInstance().commitProxy("delete");
680
- }, F = () => {
681
- a.value.refreshData();
682
- };
683
- return (i, l) => {
684
- const u = x("ut-grid"), f = x("ut-modal-form");
685
- return J(), Oe("div", null, [p(u, {
686
- ref_key: "xgrid",
687
- ref: a,
688
- columns: d,
689
- url: o,
690
- mode: "form",
691
- onButtonClick: g
692
- }, null, 512), $.value ? (J(), _e(f, {
693
- key: 0,
694
- record: s.value,
695
- items: E,
696
- width: 420,
697
- height: 450,
698
- title: i.$t("message.title.appAdd"),
699
- url: o,
700
- class: "ut-app-form",
701
- "data-status": "add",
702
- onClose: l[0] || (l[0] = (m) => $.value = !1),
703
- onConfirm: F
704
- }, null, 8, ["record", "title"])) : we("", !0)]);
705
- };
706
- }
707
- }), ht = /* @__PURE__ */ Pe(lt, [["__scopeId", "data-v-4c7392db"]]);
708
- export {
709
- ht as default
710
- };