@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
@@ -0,0 +1,589 @@
1
+ import { r as e, t } from "./api-BFNxcxSN.js";
2
+ import { t as n } from "./_plugin-vue_export-helper-C6QCLu9I.js";
3
+ import { t as r } from "./await-to-js.es5-DkWYmPXW.js";
4
+ import { n as i } from "./ReIcon-DecitXmg.js";
5
+ import { Fragment as a, computed as o, createBlock as s, createCommentVNode as c, createElementBlock as l, createVNode as u, defineComponent as d, isVNode as f, nextTick as p, openBlock as m, ref as h, resolveComponent as g, resolveDirective as _, unref as v, watch as y, withDirectives as b } from "vue";
6
+ import { useRender as x, withInstall as S } from "@utogether/utils";
7
+ import { clone as C, isString as w } from "xe-utils";
8
+ import { useI18n as T } from "vue-i18n";
9
+ import E from "qrcode";
10
+ //#region ../../node_modules/.pnpm/vue-types@6.0.0_vue@3.5.31_typescript@6.0.2_/node_modules/vue-types/dist/shared/vue-types.8139b772.mjs
11
+ var D = {
12
+ silent: !1,
13
+ logLevel: "warn"
14
+ };
15
+ function O(e) {
16
+ if (typeof e != "object" || !e) return !1;
17
+ let t = Object.getPrototypeOf(e);
18
+ return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
19
+ }
20
+ var ee = () => ({
21
+ func: () => void 0,
22
+ bool: !0,
23
+ string: "",
24
+ number: 0,
25
+ array: () => [],
26
+ object: () => ({}),
27
+ integer: 0
28
+ }), k = Object.prototype, A = k.toString, te = k.hasOwnProperty, j = /^\s*function (\w+)/;
29
+ function M(e) {
30
+ let t = e?.type ?? e;
31
+ if (t) {
32
+ let e = t.toString().match(j);
33
+ return e ? e[1] : "";
34
+ }
35
+ return "";
36
+ }
37
+ function ne(e) {
38
+ if (e == null) return "";
39
+ let t = e.constructor.toString().match(j);
40
+ return t ? t[1].replace(/^Async/, "") : "";
41
+ }
42
+ function re(e) {
43
+ return "structuredClone" in globalThis ? structuredClone(e) : Array.isArray(e) ? [...e] : O(e) ? Object.assign({}, e) : e;
44
+ }
45
+ function N() {}
46
+ var P = N;
47
+ process.env.NODE_ENV !== "production" && (P = typeof console < "u" ? function(e, t = D.logLevel) {
48
+ D.silent === !1 && console[t](`[VueTypes warn]: ${e}`);
49
+ } : N);
50
+ var F = (e, t) => te.call(e, t), I = Number.isInteger || function(e) {
51
+ return typeof e == "number" && isFinite(e) && Math.floor(e) === e;
52
+ }, L = Array.isArray || function(e) {
53
+ return A.call(e) === "[object Array]";
54
+ }, R = (e) => A.call(e) === "[object Function]", z = (e, t) => O(e) && F(e, "_vueTypes_name") && (!t || e._vueTypes_name === t), B = (e) => O(e) && (F(e, "type") || [
55
+ "_vueTypes_name",
56
+ "validator",
57
+ "default",
58
+ "required"
59
+ ].some((t) => F(e, t)));
60
+ function V(e, t) {
61
+ return Object.defineProperty(e.bind(t), "__original", { value: e });
62
+ }
63
+ function H(e, t, n = !1) {
64
+ let r, i = !0, a = "";
65
+ r = O(e) ? e : { type: e };
66
+ let o = z(r) ? r._vueTypes_name + " - " : "";
67
+ if (B(r) && r.type !== null) {
68
+ if (r.type === void 0 || r.type === !0 || !r.required && t == null) return i;
69
+ L(r.type) ? (i = r.type.some((e) => H(e, t, !0) === !0), a = r.type.map((e) => M(e)).join(" or ")) : (a = M(r), i = a === "Array" ? L(t) : a === "Object" ? O(t) : a === "String" || a === "Number" || a === "Boolean" || a === "Function" ? ne(t) === a : t instanceof r.type);
70
+ }
71
+ if (!i) {
72
+ let e = `${o}value "${t}" should be of type "${a}"`;
73
+ return n === !1 ? (P(e), !1) : e;
74
+ }
75
+ if (F(r, "validator") && R(r.validator)) {
76
+ let e = P, a = [];
77
+ if (P = (e) => {
78
+ a.push(e);
79
+ }, i = r.validator(t), P = e, !i) {
80
+ let e = (a.length > 1 ? "* " : "") + a.join("\n* ");
81
+ return a.length = 0, n === !1 ? (P(e), i) : e;
82
+ }
83
+ }
84
+ return i;
85
+ }
86
+ function U(e, t) {
87
+ let n = Object.defineProperties(t, {
88
+ _vueTypes_name: {
89
+ value: e,
90
+ writable: !0
91
+ },
92
+ isRequired: { get() {
93
+ return this.required = !0, this;
94
+ } },
95
+ def: { value(e) {
96
+ if (e === void 0) {
97
+ if (this.type === Boolean || Array.isArray(this.type) && this.type.includes(Boolean)) {
98
+ this.default = void 0;
99
+ return;
100
+ }
101
+ return F(this, "default") && delete this.default, this;
102
+ }
103
+ return !R(e) && H(this, e, !0) !== !0 ? (P(`${this._vueTypes_name} - invalid default value: "${e}"`), this) : (L(e) || O(e) ? this.default = () => re(e) : this.default = e, this);
104
+ } }
105
+ }), { validator: r } = n;
106
+ return R(r) && (n.validator = V(r, n)), n;
107
+ }
108
+ function W(e, t) {
109
+ let n = U(e, t);
110
+ return Object.defineProperty(n, "validate", { value(e) {
111
+ return R(this.validator) && P(`${this._vueTypes_name} - calling .validate() will overwrite the current custom validator function. Validator info:
112
+ ${JSON.stringify(this)}`), this.validator = V(e, this), this;
113
+ } });
114
+ }
115
+ function G(e) {
116
+ return e.replace(/^(?!\s*$)/gm, " ");
117
+ }
118
+ var K = () => W("any", {}), q = () => W("function", { type: Function }), J = () => W("boolean", { type: Boolean }), Y = () => W("string", { type: String }), ie = () => W("number", { type: Number }), ae = () => W("array", { type: Array }), oe = () => W("object", { type: Object }), se = () => U("integer", {
119
+ type: Number,
120
+ validator(e) {
121
+ let t = I(e);
122
+ return t === !1 && P(`integer - "${e}" is not an integer`), t;
123
+ }
124
+ }), ce = () => U("symbol", { validator(e) {
125
+ let t = typeof e == "symbol";
126
+ return t === !1 && P(`symbol - invalid value "${e}"`), t;
127
+ } }), le = () => Object.defineProperty({
128
+ type: null,
129
+ validator(e) {
130
+ let t = e === null;
131
+ return t === !1 && P("nullable - value should be null"), t;
132
+ }
133
+ }, "_vueTypes_name", { value: "nullable" });
134
+ function ue(e, t = "custom validation failed") {
135
+ if (typeof e != "function") throw TypeError("[VueTypes error]: You must provide a function as argument");
136
+ return U(e.name || "<<anonymous function>>", {
137
+ type: null,
138
+ validator(n) {
139
+ let r = e(n);
140
+ return r || P(`${this._vueTypes_name} - ${t}`), r;
141
+ }
142
+ });
143
+ }
144
+ function de(e) {
145
+ if (!L(e)) throw TypeError("[VueTypes error]: You must provide an array as argument.");
146
+ let t = `oneOf - value should be one of "${e.map((e) => typeof e == "symbol" ? e.toString() : e).join("\", \"")}".`, n = { validator(n) {
147
+ let r = e.indexOf(n) !== -1;
148
+ return r || P(t), r;
149
+ } };
150
+ if (e.indexOf(null) === -1) {
151
+ let t = e.reduce((e, t) => {
152
+ if (t != null) {
153
+ let n = t.constructor;
154
+ e.indexOf(n) === -1 && e.push(n);
155
+ }
156
+ return e;
157
+ }, []);
158
+ t.length > 0 && (n.type = t);
159
+ }
160
+ return U("oneOf", n);
161
+ }
162
+ function fe(e) {
163
+ if (!L(e)) throw TypeError("[VueTypes error]: You must provide an array as argument");
164
+ let t = !1, n = !1, r = [];
165
+ for (let i = 0; i < e.length; i += 1) {
166
+ let a = e[i];
167
+ if (B(a)) {
168
+ if (R(a.validator) && (t = !0), z(a, "oneOf") && a.type) {
169
+ r = r.concat(a.type);
170
+ continue;
171
+ }
172
+ if (z(a, "nullable")) {
173
+ n = !0;
174
+ continue;
175
+ }
176
+ if (a.type === !0 || !a.type) {
177
+ P("oneOfType - invalid usage of \"true\" and \"null\" as types.");
178
+ continue;
179
+ }
180
+ r = r.concat(a.type);
181
+ } else r.push(a);
182
+ }
183
+ r = r.filter((e, t) => r.indexOf(e) === t);
184
+ let i = n === !1 && r.length > 0 ? r : null;
185
+ return t ? U("oneOfType", {
186
+ type: i,
187
+ validator(t) {
188
+ let n = [], r = e.some((e) => {
189
+ let r = H(e, t, !0);
190
+ return typeof r == "string" && n.push(r), r === !0;
191
+ });
192
+ return r || P(`oneOfType - provided value does not match any of the ${n.length} passed-in validators:
193
+ ${G(n.join("\n"))}`), r;
194
+ }
195
+ }) : U("oneOfType", { type: i });
196
+ }
197
+ function pe(e) {
198
+ return U("arrayOf", {
199
+ type: Array,
200
+ validator(t) {
201
+ let n = "", r = t.every((t) => (n = H(e, t, !0), n === !0));
202
+ return r || P(`arrayOf - value validation error:
203
+ ${G(n)}`), r;
204
+ }
205
+ });
206
+ }
207
+ function me(e) {
208
+ return U("instanceOf", { type: e });
209
+ }
210
+ function he(e) {
211
+ return U("objectOf", {
212
+ type: Object,
213
+ validator(t) {
214
+ let n = "";
215
+ if (!O(t)) return !1;
216
+ let r = Object.keys(t).every((r) => (n = H(e, t[r], !0), n === !0));
217
+ return r || P(`objectOf - value validation error:
218
+ ${G(n)}`), r;
219
+ }
220
+ });
221
+ }
222
+ function ge(e) {
223
+ let t = Object.keys(e), n = t.filter((t) => !!e[t]?.required), r = U("shape", {
224
+ type: Object,
225
+ validator(r) {
226
+ if (!O(r)) return !1;
227
+ let i = Object.keys(r);
228
+ if (n.length > 0 && n.some((e) => i.indexOf(e) === -1)) {
229
+ let e = n.filter((e) => i.indexOf(e) === -1);
230
+ return e.length === 1 ? P(`shape - required property "${e[0]}" is not defined.`) : P(`shape - required properties "${e.join("\", \"")}" are not defined.`), !1;
231
+ }
232
+ return i.every((n) => {
233
+ if (t.indexOf(n) === -1) return this._vueTypes_isLoose === !0 ? !0 : (P(`shape - shape definition does not include a "${n}" property. Allowed keys: "${t.join("\", \"")}".`), !1);
234
+ let i = e[n], a = H(i, r[n], !0);
235
+ return typeof a == "string" && P(`shape - "${n}" property validation error:
236
+ ${G(a)}`), a === !0;
237
+ });
238
+ }
239
+ });
240
+ return Object.defineProperty(r, "_vueTypes_isLoose", {
241
+ writable: !0,
242
+ value: !1
243
+ }), Object.defineProperty(r, "loose", { get() {
244
+ return this._vueTypes_isLoose = !0, this;
245
+ } }), r;
246
+ }
247
+ var X = Object.defineProperty, _e = (e, t, n) => t in e ? X(e, t, {
248
+ enumerable: !0,
249
+ configurable: !0,
250
+ writable: !0,
251
+ value: n
252
+ }) : e[t] = n, Z = (e, t, n) => (_e(e, typeof t == "symbol" ? t : t + "", n), n), ve = /* @__PURE__ */ (() => {
253
+ var e;
254
+ return e = class {
255
+ static get any() {
256
+ return K();
257
+ }
258
+ static get func() {
259
+ return q().def(this.defaults.func);
260
+ }
261
+ static get bool() {
262
+ return this.defaults.bool === void 0 ? J() : J().def(this.defaults.bool);
263
+ }
264
+ static get string() {
265
+ return Y().def(this.defaults.string);
266
+ }
267
+ static get number() {
268
+ return ie().def(this.defaults.number);
269
+ }
270
+ static get array() {
271
+ return ae().def(this.defaults.array);
272
+ }
273
+ static get object() {
274
+ return oe().def(this.defaults.object);
275
+ }
276
+ static get integer() {
277
+ return se().def(this.defaults.integer);
278
+ }
279
+ static get symbol() {
280
+ return ce();
281
+ }
282
+ static get nullable() {
283
+ return le();
284
+ }
285
+ static extend(...e) {
286
+ P("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.");
287
+ }
288
+ }, Z(e, "defaults", {}), Z(e, "sensibleDefaults"), Z(e, "config", D), Z(e, "custom", ue), Z(e, "oneOf", de), Z(e, "instanceOf", me), Z(e, "oneOfType", fe), Z(e, "arrayOf", pe), Z(e, "objectOf", he), Z(e, "shape", ge), Z(e, "utils", {
289
+ validate(e, t) {
290
+ return H(t, e, !0) === !0;
291
+ },
292
+ toType(e, t, n = !1) {
293
+ return n ? W(e, t) : U(e, t);
294
+ }
295
+ }), e;
296
+ })();
297
+ function Q(e = ee()) {
298
+ var t;
299
+ return t = class extends ve {
300
+ static get sensibleDefaults() {
301
+ return { ...this.defaults };
302
+ }
303
+ static set sensibleDefaults(t) {
304
+ if (t === !1) {
305
+ this.defaults = {};
306
+ return;
307
+ }
308
+ if (t === !0) {
309
+ this.defaults = { ...e };
310
+ return;
311
+ }
312
+ this.defaults = { ...t };
313
+ }
314
+ }, Z(t, "defaults", { ...e }), t;
315
+ }
316
+ Q();
317
+ //#endregion
318
+ //#region src/utils/propTypes.ts
319
+ var ye = Q({
320
+ func: void 0,
321
+ bool: void 0,
322
+ string: void 0,
323
+ number: void 0,
324
+ object: void 0,
325
+ integer: void 0
326
+ }), $ = class extends ye {
327
+ static get style() {
328
+ return W("style", { type: [String, Object] });
329
+ }
330
+ static get VNodeChild() {
331
+ return W("VNodeChild", { type: void 0 });
332
+ }
333
+ }, be = S(/* @__PURE__ */ d({
334
+ name: "SuQrcode",
335
+ props: {
336
+ tag: $.string.validate((e) => ["canvas", "img"].includes(e)).def("canvas"),
337
+ text: {
338
+ type: [String, Array],
339
+ default: null
340
+ },
341
+ options: {
342
+ type: Object,
343
+ default: () => ({})
344
+ },
345
+ width: $.number.def(200),
346
+ logo: {
347
+ type: [String, Object],
348
+ default: () => ""
349
+ },
350
+ disabled: $.bool.def(!1),
351
+ disabledText: $.string.def("")
352
+ },
353
+ emits: [
354
+ "done",
355
+ "click",
356
+ "disabled-click"
357
+ ],
358
+ setup(e, { emit: t }) {
359
+ let { toCanvas: n, toDataURL: r } = E, s = h(!0), c = h(null), l = o(() => String(e.text)), d = o(() => ({
360
+ width: e.width + "px",
361
+ height: e.width + "px"
362
+ })), f = async () => {
363
+ await p();
364
+ let i = C(e.options || {}, !0);
365
+ if (e.tag === "canvas") {
366
+ i.errorCorrectionLevel = i.errorCorrectionLevel || x(v(l));
367
+ let r = await g(v(l), i);
368
+ i.scale = e.width === 0 ? void 0 : e.width / r * 4;
369
+ let a = await n(v(c), v(l), i);
370
+ e.logo ? (t("done", await m(a)), s.value = !1) : (t("done", a.toDataURL()), s.value = !1);
371
+ } else {
372
+ let n = await r(l.value, {
373
+ errorCorrectionLevel: "H",
374
+ width: e.width,
375
+ ...i
376
+ });
377
+ v(c).src = n, t("done", n), s.value = !1;
378
+ }
379
+ };
380
+ y(() => l.value, (e) => {
381
+ e && f();
382
+ }, {
383
+ deep: !0,
384
+ immediate: !0
385
+ });
386
+ let m = (t) => {
387
+ let n = t.width, { logoSize: r = .15, bgColor: i = "#ffffff", borderSize: a = .05, crossOrigin: o = "anonymous", borderRadius: s = 8, logoRadius: c = 0 } = Object.assign({
388
+ logoSize: .15,
389
+ bgColor: "#ffffff",
390
+ borderSize: .05,
391
+ crossOrigin: "anonymous",
392
+ borderRadius: 8,
393
+ logoRadius: 0
394
+ }, w(e.logo) ? {} : e.logo), l = w(e.logo) ? e.logo : e.logo.src, u = n * r, d = n * (1 - r) / 2, f = n * (r + a), p = n * (1 - r - a) / 2, m = t.getContext("2d");
395
+ if (!m) return;
396
+ S(m)(p, p, f, f, s), m.fillStyle = i, m.fill();
397
+ let h = new Image();
398
+ (o || c) && h.setAttribute("crossOrigin", o), h.src = l;
399
+ let g = (e) => {
400
+ m.drawImage(e, d, d, u, u);
401
+ }, _ = (e) => {
402
+ let t = document.createElement("canvas");
403
+ t.width = d + u, t.height = d + u;
404
+ let n = t.getContext("2d");
405
+ if (!n || !m || (n.drawImage(e, d, d, u, u), S(m)(d, d, u, u, c), !m)) return;
406
+ let r = m.createPattern(t, "no-repeat");
407
+ r && (m.fillStyle = r, m.fill());
408
+ };
409
+ return new Promise((e) => {
410
+ h.onload = () => {
411
+ c ? _(h) : g(h), e(t.toDataURL());
412
+ };
413
+ });
414
+ }, g = async (e, t) => {
415
+ let r = document.createElement("canvas");
416
+ return await n(r, e, t), r.width;
417
+ }, x = (e) => e.length > 36 ? "M" : e.length > 16 ? "Q" : "H", S = (e) => (t, n, r, i, a) => {
418
+ let o = Math.min(r, i);
419
+ return a > o / 2 && (a = o / 2), e.beginPath(), e.moveTo(t + a, n), e.arcTo(t + r, n, t + r, n + i, a), e.arcTo(t + r, n + i, t, n + i, a), e.arcTo(t, n + i, t, n, a), e.arcTo(t, n, t + r, n, a), e.closePath(), e;
420
+ }, T = () => {
421
+ t("click");
422
+ }, D = () => {
423
+ t("disabled-click");
424
+ };
425
+ return () => u(a, null, [b(u("div", {
426
+ class: "qrcode relative inline-block",
427
+ style: v(d)
428
+ }, [e.tag === "canvas" ? u("canvas", {
429
+ ref: c,
430
+ onClick: T
431
+ }, null) : u("img", {
432
+ ref: c,
433
+ onClick: T
434
+ }, null), e.disabled && u("div", {
435
+ class: "qrcode--disabled absolute top-0 left-0 flex w-full h-full items-center justify-center",
436
+ onClick: D
437
+ }, [u("div", { class: "absolute top-[50%] left-[50%] font-bold" }, [u(i, {
438
+ class: "cursor-pointer",
439
+ icon: "refresh-right",
440
+ width: "30",
441
+ color: "var(--el-color-primary)"
442
+ }, null), u("div", null, [e.disabledText])])])]), [[_("loading"), v(s)]])]);
443
+ }
444
+ }));
445
+ //#endregion
446
+ //#region src/views/uapp/pda/pda-app.vue?vue&type=script&setup=true&lang.tsx
447
+ function xe(e) {
448
+ return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !f(e);
449
+ }
450
+ //#endregion
451
+ //#region src/views/uapp/pda/pda-app.vue
452
+ var Se = /* @__PURE__ */ n(/* @__PURE__ */ d({
453
+ name: "PdaApp",
454
+ setup(n) {
455
+ let i = t(), o = x(), { t: d } = T(), f = "/upms/v1/app-manage", p = h(null), _ = h({}), v = [
456
+ {
457
+ type: "checkbox",
458
+ width: 45,
459
+ align: "center"
460
+ },
461
+ {
462
+ field: "appVersion",
463
+ title: "message.udp.appVersion",
464
+ width: 110
465
+ },
466
+ {
467
+ field: "buildNo",
468
+ title: "message.udp.buildNo",
469
+ width: 130
470
+ },
471
+ {
472
+ field: "isForceUpdate",
473
+ title: "message.udp.isForceUpdate",
474
+ width: 130,
475
+ formatter: ({ row: e }) => e.isForceUpdate === "Y" ? d("message.udp.forceUpdate") : d("message.udp.freeUpdate")
476
+ },
477
+ {
478
+ field: "versionInfo",
479
+ title: "message.udp.versionInfo",
480
+ miWidth: 200
481
+ },
482
+ {
483
+ field: "enabled",
484
+ title: "message.status",
485
+ width: 90,
486
+ formatter: ({ row: e }) => e.enabled === "1" ? d("message.udp.appupper") : d("message.udp.applower")
487
+ },
488
+ {
489
+ field: "creationDate",
490
+ width: 140
491
+ },
492
+ {
493
+ field: "operate",
494
+ width: 260,
495
+ fixed: "right",
496
+ slots: { default: ({ row: e }) => {
497
+ let t = e.enabled === "1" ? "applower" : "appupper", n = e.enabled === "1" ? "warning" : "primary", r = e.enabled === "1" ? "ri-inbox-archive-line" : "ri-inbox-unarchive-line";
498
+ return e.enabled === "1" ? [u(a, null, [u("div", { style: "display: flex; justify-content: space-between;" }, [u(g("ut-button"), {
499
+ content: t,
500
+ icon: r,
501
+ status: n,
502
+ onTap: () => y(e)
503
+ }, null), u(g("el-popover"), { placement: "left" }, {
504
+ default: () => [u(a, null, [u(be, { text: i + "/ufil/" + e.downloadUrl }, null)])],
505
+ reference: () => {
506
+ let e;
507
+ return u(g("el-button"), { type: "success" }, xe(e = d("message.btn.scan")) ? e : { default: () => [e] });
508
+ }
509
+ })])])] : [u(g("ut-button"), {
510
+ content: t,
511
+ icon: r,
512
+ status: n,
513
+ onTap: () => y(e)
514
+ }, null)];
515
+ } }
516
+ }
517
+ ], y = async (t) => {
518
+ let n = C(t, !0);
519
+ n.enabled = t.enabled === "1" ? "0" : "1", await r(e().put(f, n)), p.value.refreshData();
520
+ }, b = (e) => {
521
+ e === "add" && E(), e === "del" && D();
522
+ }, S = [
523
+ {
524
+ field: "appVersion",
525
+ title: "message.udp.appVersion",
526
+ required: !0
527
+ },
528
+ {
529
+ field: "buildNo",
530
+ title: "message.udp.buildNo",
531
+ required: !0
532
+ },
533
+ {
534
+ field: "isForceUpdate",
535
+ title: "message.udp.isForceUpdate",
536
+ required: !0,
537
+ itemRender: o.renderSwitch({
538
+ openLabel: d("message.udp.forceUpdate"),
539
+ closeLabel: d("message.udp.freeUpdate"),
540
+ openValue: "Y",
541
+ closeValue: "N"
542
+ })
543
+ },
544
+ {
545
+ field: "versionInfo",
546
+ title: "message.udp.versionInfo",
547
+ required: !0,
548
+ itemRender: o.renderTextarea()
549
+ },
550
+ {
551
+ field: "downloadUrl",
552
+ required: !1,
553
+ title: "message.udp.downloadUrl",
554
+ itemRender: o.renderUpload()
555
+ }
556
+ ], w = h(!1), E = () => {
557
+ _.value = {}, w.value = !0;
558
+ }, D = () => {
559
+ p.value.getInstance().commitProxy("delete");
560
+ }, O = () => {
561
+ p.value.refreshData();
562
+ };
563
+ return (e, t) => {
564
+ let n = g("ut-grid"), r = g("ut-modal-form");
565
+ return m(), l("div", null, [u(n, {
566
+ ref_key: "xgrid",
567
+ ref: p,
568
+ columns: v,
569
+ url: f,
570
+ mode: "form",
571
+ onButtonClick: b
572
+ }, null, 512), w.value ? (m(), s(r, {
573
+ key: 0,
574
+ record: _.value,
575
+ items: S,
576
+ width: 420,
577
+ height: 450,
578
+ title: e.$t("message.title.appAdd"),
579
+ url: f,
580
+ class: "ut-app-form",
581
+ "data-status": "add",
582
+ onClose: t[0] ||= (e) => w.value = !1,
583
+ onConfirm: O
584
+ }, null, 8, ["record", "title"])) : c("", !0)]);
585
+ };
586
+ }
587
+ }), [["__scopeId", "data-v-4c7392db"]]);
588
+ //#endregion
589
+ export { Se as default };
@@ -0,0 +1,16 @@
1
+ import { createElementBlock as e, defineComponent as t, openBlock as n, unref as r } from "vue";
2
+ import { useRouter as i } from "vue-router";
3
+ //#endregion
4
+ //#region src/layout/redirect.vue
5
+ var a = /* @__PURE__ */ t({
6
+ name: "Redirect",
7
+ setup(t) {
8
+ let { currentRoute: a, replace: o } = i(), { params: s, query: c } = r(a), { path: l } = s;
9
+ return o({
10
+ path: "/" + (Array.isArray(l) ? l.join("/") : l),
11
+ query: c
12
+ }), (t, r) => (n(), e("div"));
13
+ }
14
+ });
15
+ //#endregion
16
+ export { a as default };
@@ -0,0 +1,94 @@
1
+ import { t as e } from "./api-BFNxcxSN.js";
2
+ import { Fragment as t, createBlock as n, createCommentVNode as r, createElementBlock as i, createVNode as a, defineComponent as o, openBlock as s, ref as c, resolveComponent as l } from "vue";
3
+ import { successMessage as u } from "@utogether/utils";
4
+ import { useClipboard as d } from "@vueuse/core";
5
+ //#endregion
6
+ //#region src/views/urpt/static-resource/resource.vue
7
+ var f = /* @__PURE__ */ o({
8
+ name: "StaticResource",
9
+ setup(o) {
10
+ let { copy: f } = d(), p = "/upms/v1/pdfTemplate", m = c(null), h = c({}), g = e(), _ = [
11
+ {
12
+ type: "checkbox",
13
+ width: 40,
14
+ align: "center"
15
+ },
16
+ {
17
+ field: "templateCode",
18
+ title: "message.urpt.resourceCode",
19
+ width: 140
20
+ },
21
+ {
22
+ field: "templateName",
23
+ title: "message.urpt.resourceName",
24
+ width: 150
25
+ },
26
+ {
27
+ field: "templateUrl",
28
+ title: "message.urpt.resourceUrl",
29
+ miWidth: 200
30
+ },
31
+ {
32
+ field: "operate",
33
+ width: 180,
34
+ fixed: "right",
35
+ slots: { default: ({ row: e }) => [a(t, null, [a(l("ut-button"), {
36
+ content: "download",
37
+ icon: "ri-download-line",
38
+ status: "success",
39
+ onTap: () => S(e)
40
+ }, null)])] }
41
+ }
42
+ ], v = { toolbarButtonClick({ code: e }) {
43
+ e === "add" && x(e);
44
+ } }, y = [
45
+ {
46
+ field: "templateCode",
47
+ required: !0
48
+ },
49
+ {
50
+ field: "templateName",
51
+ required: !0
52
+ },
53
+ {
54
+ field: "templateUrl",
55
+ required: !0,
56
+ itemRender: {
57
+ name: "#upload",
58
+ props: { baseUrl: g }
59
+ }
60
+ }
61
+ ], b = c(!1), x = (e) => {
62
+ h.value = {}, b.value = !0;
63
+ }, S = (e) => {
64
+ f(g + "/ufil/" + e.templateUrl), u("复制成功,快试试右键粘贴吧");
65
+ }, C = () => {
66
+ m.value.refreshData();
67
+ };
68
+ return (e, t) => {
69
+ let o = l("ut-grid"), c = l("ut-modal-form");
70
+ return s(), i("div", null, [a(o, {
71
+ ref_key: "xgrid",
72
+ ref: m,
73
+ columns: _,
74
+ url: p,
75
+ editable: !1,
76
+ mode: "form",
77
+ events: v
78
+ }, null, 512), b.value ? (s(), n(c, {
79
+ key: 0,
80
+ record: h.value,
81
+ items: y,
82
+ width: 300,
83
+ height: 340,
84
+ "data-status": "add",
85
+ title: "静态资源新增",
86
+ url: p,
87
+ onClose: t[0] ||= (e) => b.value = !1,
88
+ onConfirm: C
89
+ }, null, 8, ["record"])) : r("", !0)]);
90
+ };
91
+ }
92
+ });
93
+ //#endregion
94
+ export { f as default };