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

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 (183) hide show
  1. package/dist/403-CyoOD-Ik.js +65 -0
  2. package/dist/404-Ch_OHTw0.js +65 -0
  3. package/dist/500-Cf9am7HK.js +67 -0
  4. package/dist/AuthorityInfo-BJ427cqG.js +4 -0
  5. package/dist/AuthorityInfo.vue_vue_type_style_index_0_lang-D9y7AwbB.js +99 -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-qo-lKPkv.js +25 -0
  9. package/dist/CompanyPanel-DkKWAKvY.js +204 -0
  10. package/dist/DataSet-iBHzs75s.js +147 -0
  11. package/dist/Department-CHUQByKX.js +25 -0
  12. package/dist/DepartmentPanel-C742dfOO.js +248 -0
  13. package/dist/DesignPanel-D9oE5R7m.js +4 -0
  14. package/dist/DesignPanel.vue_vue_type_style_index_0_lang-hYldVEbo.js +1097 -0
  15. package/dist/DictView-CrFXprP9.js +110 -0
  16. package/dist/InvOrganization-Cz8SzIgs.js +73 -0
  17. package/dist/Org-Bzt6yKox.js +38 -0
  18. package/dist/Preview-jonigfMQ.js +48 -0
  19. package/dist/ReportDefine-BpiM5Ovq.js +10 -0
  20. package/dist/ReportDesign-fp09cXJ7.js +164 -0
  21. package/dist/ReportQuery-52ZP1PYP.js +74 -0
  22. package/dist/ReportQueryFrom-DSYavJb1.js +4 -0
  23. package/dist/ReportQueryFrom.vue_vue_type_style_index_0_lang-DBGYEp0u.js +177 -0
  24. package/dist/ReportTemplate-CA_UW0eD.js +161 -0
  25. package/dist/Role-DqOt8Bk0.js +25 -0
  26. package/dist/RoleAssign-BdxhefhQ.js +26 -0
  27. package/dist/RolePanel-2gZ3H0ET.js +4 -0
  28. package/dist/RolePanel-BsNd0svJ.js +4 -0
  29. package/dist/RolePanel.vue_vue_type_script_setup_true_lang-DLOwgF99.js +152 -0
  30. package/dist/RolePanel.vue_vue_type_script_setup_true_lang-DmzD9kab.js +131 -0
  31. package/dist/ScrollPanel.vue_vue_type_style_index_0_lang-B9ptUMeI.js +99 -0
  32. package/dist/Staff-D3L8fEoY.js +26 -0
  33. package/dist/StaffInfo-DYRw6ZYJ.js +4 -0
  34. package/dist/StaffInfo.vue_vue_type_script_setup_true_lang-xqEOQnMs.js +107 -0
  35. package/dist/StaffPanel-DkrNH6Px.js +4 -0
  36. package/dist/StaffPanel.vue_vue_type_script_setup_true_lang-BPBMnliy.js +152 -0
  37. package/dist/SysUser-Bl1-cIpJ.js +15 -0
  38. package/dist/SysUserPanel-yxNLaBwt.js +4 -0
  39. package/dist/SysUserPanel.vue_vue_type_script_setup_true_lang-BDcsgSl5.js +352 -0
  40. package/dist/SystemMenu-C4_Arn12.js +155 -0
  41. package/dist/UserInfo-QcNwJCUR.js +4 -0
  42. package/dist/UserInfo.vue_vue_type_style_index_0_lang-DLIeUphX.js +159 -0
  43. package/dist/childView-B23DEO2u.js +4 -0
  44. package/dist/childView-saDZQv9x.js +4 -0
  45. package/dist/childView.vue_vue_type_style_index_0_lang-RsKR6CAC.js +182 -0
  46. package/dist/childView.vue_vue_type_style_index_0_lang-ZFEfavUY.js +142 -0
  47. package/dist/code-rule-2_Ihx_by.js +147 -0
  48. package/dist/core.es.js +26 -6
  49. package/dist/cron-task-BFOPJQIk.js +134 -0
  50. package/dist/flow-task-PoDnE_kE.js +10 -0
  51. package/dist/frameView-f7Ya0Knj.js +43 -0
  52. package/dist/index-BpdTDaTk.js +3213 -0
  53. package/dist/layout-home-v3DPJ7rB.js +231 -0
  54. package/dist/layoutView-DZHoQDH1.js +3190 -0
  55. package/dist/log-in-BPAMJTwH.js +115 -0
  56. package/dist/log-out-DZACF0jg.js +129 -0
  57. package/dist/login-B8cwozax.js +216 -0
  58. package/dist/login-log-CVvRgZSu.js +70 -0
  59. package/dist/lov-view-Ba7Y7xy0.js +98 -0
  60. package/dist/menuInfo-BpRKFYK8.js +4 -0
  61. package/dist/menuInfo.vue_vue_type_style_index_0_lang-DJ5sUC6m.js +359 -0
  62. package/dist/pda-app-C0jJecrL.js +706 -0
  63. package/dist/redirect-DTz8GSnv.js +15 -0
  64. package/dist/resource-BG22Cw4P.js +97 -0
  65. package/dist/su-welcome-DaxhbrC6.js +879 -0
  66. package/dist/sys-config-CG2fMtak.js +384 -0
  67. package/dist/udp-core.css +1 -2
  68. package/dist/useNav-_u2UAQWk.js +84 -0
  69. package/dist/utogether-MlnyYtNS.js +4 -0
  70. package/dist/wecom-push-B75FLee5.js +70 -0
  71. package/index.ts +54 -50
  72. package/package.json +21 -21
  73. package/src/App.vue +79 -78
  74. package/src/api/http.ts +10 -4
  75. package/src/api/index.ts +51 -51
  76. package/src/api/user.ts +64 -64
  77. package/src/components/SuQrcode/src/index.tsx +231 -236
  78. package/src/components/udp/content/index.vue +93 -93
  79. package/src/components/udp/form-upload/form-upload.vue +496 -496
  80. package/src/components/udp/grid/index.vue +643 -544
  81. package/src/components/udp/index.ts +2 -1
  82. package/src/components/udp/modal-form/index.vue +326 -0
  83. package/src/components/udp/utils.ts +420 -420
  84. package/src/layout/components/lay-navbar/index.vue +240 -240
  85. package/src/layout/components/lay-panel/index.vue +2 -6
  86. package/src/layout/components/lay-search/components/SearchModal.vue +185 -181
  87. package/src/layout/components/lay-sidebar/mixNav.vue +261 -261
  88. package/src/layout/components/lay-sidebar/sidebarItem.vue +199 -195
  89. package/src/layout/components/lay-sidebar/vertical.vue +92 -92
  90. package/src/layout/layoutView.vue +1 -0
  91. package/src/main.ts +111 -109
  92. package/src/plugins/i18n/zh.ts +5 -1
  93. package/src/plugins/vxe-table/index.ts +116 -116
  94. package/src/router/index.ts +5 -34
  95. package/src/router/utils.ts +434 -430
  96. package/src/store/modules/permission.ts +1 -1
  97. package/src/store/modules/system.ts +193 -186
  98. package/src/style/print-lock.css +380 -375
  99. package/src/style/suprint.css +990 -985
  100. package/src/style/vxetable.scss +372 -364
  101. package/src/utils/authority/index.ts +19 -2
  102. package/src/utils/dataFormat/index.ts +309 -222
  103. package/src/utils/udp/http/index.ts +126 -67
  104. package/src/utils/udp/http/types.d.ts +15 -14
  105. package/src/views/login/login-view.vue +4 -21
  106. package/src/views/organization/department/DepartmentPanel.vue +3 -4
  107. package/src/views/system/sys/sys-config.vue +344 -344
  108. package/src/views/uhome/components/home-todo.vue +191 -178
  109. package/src/views/uhome/dynamic-card.vue +31 -31
  110. package/src/views/uhome/su-welcome.vue +310 -310
  111. package/src/views/ulogin/login.vue +292 -296
  112. package/src/views/urpt/design/DesignPanel.vue +538 -507
  113. package/src/views/urpt/design/print-data.ts +39 -59
  114. package/tsconfig.json +2 -3
  115. package/types/global.d.ts +234 -234
  116. package/vite.config.ts +2 -1
  117. package/dist/403-D6Wb3JJh.js +0 -72
  118. package/dist/404-B_HNbPNV.js +0 -72
  119. package/dist/500-BMemTTy1.js +0 -77
  120. package/dist/AuthorityInfo-6wHxwiFM.js +0 -91
  121. package/dist/AuthorityPanel-OqF_DvXA.js +0 -98
  122. package/dist/Company-BLXSfow0.js +0 -21
  123. package/dist/CompanyPanel-B4kRZ5Cg.js +0 -199
  124. package/dist/DataSet-CuGZcKC-.js +0 -141
  125. package/dist/Department-oFhsa7cd.js +0 -21
  126. package/dist/DepartmentPanel-B1UGpu-r.js +0 -242
  127. package/dist/DepartmentPanel-BL58AdoT.js +0 -2
  128. package/dist/DesignPanel-DmkFVw1N.js +0 -1196
  129. package/dist/DictView-CC5yMzOq.js +0 -100
  130. package/dist/File-WJXjGYxr.js +0 -89
  131. package/dist/InvOrganization-BwMmD8Ua.js +0 -76
  132. package/dist/Org-HgnOWubi.js +0 -76
  133. package/dist/Preview-CAzWxLmP.js +0 -45
  134. package/dist/ReIcon-DecitXmg.js +0 -413
  135. package/dist/ReportDefine-BgLM-Rjk.js +0 -10
  136. package/dist/ReportDesign-DwchGG2P.js +0 -158
  137. package/dist/ReportQuery-D5jaRJEn.js +0 -101
  138. package/dist/ReportQueryFrom-CNlmtYey.js +0 -198
  139. package/dist/ReportTemplate-CNcTmccs.js +0 -162
  140. package/dist/Role-Be8WfdCA.js +0 -21
  141. package/dist/RoleAssign-CtehGAUf.js +0 -22
  142. package/dist/RolePanel-CAwITg_q.js +0 -131
  143. package/dist/RolePanel-SN0FGFZ7.js +0 -176
  144. package/dist/ScrollPanel-DW30pGz1.js +0 -88
  145. package/dist/Staff-V2YsNKcj.js +0 -22
  146. package/dist/StaffInfo-CKRPW0r4.js +0 -149
  147. package/dist/StaffPanel-BxcgMg7u.js +0 -143
  148. package/dist/SysUser-Dxyj5w5m.js +0 -12
  149. package/dist/SysUserPanel-DI6CWcZo.js +0 -365
  150. package/dist/SystemMenu-BBHREM8T.js +0 -154
  151. package/dist/UserInfo-BMVQ0xwE.js +0 -194
  152. package/dist/_plugin-vue_export-helper-C6QCLu9I.js +0 -8
  153. package/dist/api-BFNxcxSN.js +0 -30
  154. package/dist/authority-BJFEUdrh.js +0 -20
  155. package/dist/await-to-js.es5-DkWYmPXW.js +0 -10
  156. package/dist/childView-BBjPEraB.js +0 -184
  157. package/dist/childView-DNqG2UVm.js +0 -181
  158. package/dist/code-rule-QFrhqFrW.js +0 -151
  159. package/dist/contant-Q77dU_V3.js +0 -4
  160. package/dist/cron-task-BpUDKEAU.js +0 -131
  161. package/dist/flow-task-DAc2NrDU.js +0 -11
  162. package/dist/frameView-Di0zJZUR.js +0 -39
  163. package/dist/layout-home-BVp7vYLR.js +0 -239
  164. package/dist/layoutView-B6Mx2ERA.js +0 -2662
  165. package/dist/log-in-BrNB0mLz.js +0 -117
  166. package/dist/log-out-dYfqvzy6.js +0 -111
  167. package/dist/login-D_Hjy3Jd.js +0 -231
  168. package/dist/login-log-CJak-ANA.js +0 -79
  169. package/dist/lov-view-DM5Nm5tW.js +0 -95
  170. package/dist/menuInfo-BlOY1KZW.js +0 -346
  171. package/dist/mitt-CQgI7DYU.js +0 -27
  172. package/dist/pda-app-CA7YI37u.js +0 -589
  173. package/dist/redirect-N0k4tImU.js +0 -16
  174. package/dist/resource-CfQTHFcs.js +0 -94
  175. package/dist/su-welcome-DVD3S_du.js +0 -799
  176. package/dist/sys-config-Ddb3vBpK.js +0 -316
  177. package/dist/system-Cm3lyBas.js +0 -1528
  178. package/dist/udp-core-DaQd5CF1.js +0 -2028
  179. package/dist/useDataThemeChange-DJ4K3VGp.js +0 -226
  180. package/dist/useNav-BhOJIdrJ.js +0 -106
  181. package/dist/utogether-l7JXs4Lv.js +0 -4
  182. package/dist/water-mark-WDQZ9YqB.js +0 -119
  183. package/dist/wecom-push-kWkAVRCj.js +0 -77
@@ -1,589 +0,0 @@
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 };
@@ -1,16 +0,0 @@
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 };
@@ -1,94 +0,0 @@
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 };