@utogether/udp-core 1.0.1-beta.5 → 1.0.1-beta.7
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.
- package/dist/{403-CP2RkkAy.js → 403-BQZ5OAKL.js} +10 -10
- package/dist/{404-DwK-0wNQ.js → 404-H55ex36i.js} +4 -4
- package/dist/{500-CLbJDqnd.js → 500-bbrspTnK.js} +1 -1
- package/dist/{AuthorityInfo-Bi1_uhMu.js → AuthorityInfo-BWni4UPQ.js} +1 -1
- package/dist/AuthorityInfo.vue_vue_type_style_index_0_lang-7WtOL6Hs.js +100 -0
- package/dist/{Company-B--cokc6.js → Company-CuebFrQ0.js} +3 -3
- package/dist/{CompanyPanel-B_gmcZ9L.js → CompanyPanel-DxPdJs6x.js} +6 -6
- package/dist/{Department-DbKdyNzK.js → Department-D2a6Juur.js} +3 -3
- package/dist/{DepartmentPanel-BmEttboJ.js → DepartmentPanel-C_s2R9yl.js} +24 -23
- package/dist/{DesignPanel-LL68_36s.js → DesignPanel-CexZj3HF.js} +1 -1
- package/dist/{DesignPanel.vue_vue_type_style_index_0_lang-DWPmFegv.js → DesignPanel.vue_vue_type_style_index_0_lang-DfmysqwB.js} +25 -24
- package/dist/{DictView-B8j-EWx5.js → DictView-C0GS72rG.js} +19 -18
- package/dist/{InvOrganization-DnGQlESM.js → InvOrganization-a1tQ2CEH.js} +8 -7
- package/dist/Org-DifvzLLy.js +35 -0
- package/dist/{Preview-yot4NBW5.js → Preview-BOv5j9i6.js} +1 -1
- package/dist/{ReportDefine-DHadqNYy.js → ReportDefine-Dli1Q0TB.js} +1 -1
- package/dist/{ReportDesign-CBihGRth.js → ReportDesign-zSWkcL_O.js} +37 -36
- package/dist/{ReportQuery-CwHQ6LUU.js → ReportQuery-D5r3bvFc.js} +1 -1
- package/dist/{ReportQueryFrom-ie6lQcGL.js → ReportQueryFrom-DiostHrX.js} +1 -1
- package/dist/{ReportQueryFrom.vue_vue_type_style_index_0_lang-B8LJNK0m.js → ReportQueryFrom.vue_vue_type_style_index_0_lang-Cr2eKMmr.js} +1 -1
- package/dist/{ReportTemplate-B2Smwo-z.js → ReportTemplate-CYy4cZHQ.js} +24 -24
- package/dist/{Role-Cf7DB7uS.js → Role-BFQFxfQS.js} +6 -6
- package/dist/{RoleAssign-upUnqs_i.js → RoleAssign-BIdWSLTR.js} +8 -8
- package/dist/{RolePanel-EXL_FLvM.js → RolePanel-C7ybSknr.js} +1 -1
- package/dist/{RolePanel-BBGDGK8V.js → RolePanel-KC-UgmtF.js} +1 -1
- package/dist/RolePanel.vue_vue_type_script_setup_true_lang-C91CJO4e.js +132 -0
- package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-DF8qJKwW.js → RolePanel.vue_vue_type_script_setup_true_lang-C_ZsMf1f.js} +40 -34
- package/dist/{ScrollPanel.vue_vue_type_style_index_0_lang-DbBGg32H.js → ScrollPanel.vue_vue_type_style_index_0_lang-botBBgto.js} +17 -17
- package/dist/{Staff-DYu5ZEyR.js → Staff-CY0DLsTN.js} +3 -3
- package/dist/{StaffInfo-CHvNGjtz.js → StaffInfo-DA7p265h.js} +1 -1
- package/dist/{StaffInfo.vue_vue_type_script_setup_true_lang-XRJVEJ-s.js → StaffInfo.vue_vue_type_script_setup_true_lang-f29A44gS.js} +5 -5
- package/dist/{StaffPanel-C-ygEY65.js → StaffPanel-DYP-mMp9.js} +1 -1
- package/dist/{StaffPanel.vue_vue_type_script_setup_true_lang-BvLrF4Yw.js → StaffPanel.vue_vue_type_script_setup_true_lang-C0YAG2xV.js} +6 -6
- package/dist/{SysUser-BHk_szpK.js → SysUser-FqS3Ctne.js} +2 -2
- package/dist/{SysUserPanel-DFvzA5d-.js → SysUserPanel-C_t6F99T.js} +1 -1
- package/dist/{SysUserPanel.vue_vue_type_script_setup_true_lang-B9zUXXwa.js → SysUserPanel.vue_vue_type_script_setup_true_lang-CKZjy0OF.js} +93 -86
- package/dist/{SystemMenu-5TK9ZA11.js → SystemMenu-ChFrMzRg.js} +14 -13
- package/dist/{UserInfo-Bx3zQqHa.js → UserInfo-I36LAXVj.js} +1 -1
- package/dist/{UserInfo.vue_vue_type_style_index_0_lang-C2sqUQdg.js → UserInfo.vue_vue_type_style_index_0_lang-BGY-LYeL.js} +28 -25
- package/dist/await-to-js.es5-BtRbN2QH.js +10 -0
- package/dist/{childView-BSUWnii7.js → childView-CYpuOzRx.js} +1 -1
- package/dist/{childView-CFC3gA_U.js → childView-Csnlaqfs.js} +1 -1
- package/dist/{childView.vue_vue_type_style_index_0_lang-EcT-Dux7.js → childView.vue_vue_type_style_index_0_lang-B8EnA03l.js} +18 -17
- package/dist/{childView.vue_vue_type_style_index_0_lang-WQVLSJR8.js → childView.vue_vue_type_style_index_0_lang-DNVlDM_a.js} +10 -9
- package/dist/{code-rule-DybjhotB.js → code-rule-DHBSC5Qp.js} +14 -13
- package/dist/core.es.js +2 -2
- package/dist/{cron-task-DGdknqaF.js → cron-task-CiI1MFla.js} +8 -7
- package/dist/{frameView-BOOZRv1S.js → frameView-ZWKlbz9p.js} +1 -1
- package/dist/index-COBMRlmJ.js +5379 -0
- package/dist/{layoutView-BWeDLY9C.js → layoutView-5OsbpP0u.js} +11 -10
- package/dist/{login-BcuCHhGE.js → login-C55sa9gN.js} +26 -25
- package/dist/{lov-view-DDgzqYSW.js → lov-view-DFfaUQ5m.js} +9 -8
- package/dist/{menuInfo-B3MOxomU.js → menuInfo-CZdLtLjN.js} +1 -1
- package/dist/{menuInfo.vue_vue_type_style_index_0_lang-BXMrNMUs.js → menuInfo.vue_vue_type_style_index_0_lang-DgG0aHRy.js} +16 -15
- package/dist/{pda-app-Dy9WMHEG.js → pda-app-fLe8mrx-.js} +213 -196
- package/dist/{resource-BoCP7-dM.js → resource-ohWKO6Fh.js} +20 -20
- package/dist/{su-welcome-DXpI1MHr.js → su-welcome-_UZTfrXX.js} +84 -84
- package/dist/{sys-config-BiUWzxGU.js → sys-config-DVuBsK7p.js} +19 -18
- package/dist/udp-core.css +1 -1
- package/dist/{utogether-DXDcsKt7.js → utogether-CxobZqGL.js} +1 -1
- package/package.json +18 -18
- package/src/components/SuScrollTree/ScrollPanel.vue +3 -3
- package/src/components/udp/flip-down/FlipCard/flip-card.vue +251 -0
- package/src/components/udp/flip-down/FlipCard/interfaces.ts +4 -0
- package/src/components/udp/flip-down/FlipClock/flip-clock.vue +113 -0
- package/src/components/udp/grid.vue +12 -6
- package/src/components/udp/index.ts +2 -2
- package/src/components/udp/lov.vue +1 -1
- package/src/components/udp/modal-grid.vue +288 -297
- package/src/components/udp/utils.ts +4 -11
- package/src/layout/components/lay-search/index.vue +25 -25
- package/src/main.ts +18 -10
- package/src/plugins/i18n/zh.ts +348 -338
- package/src/plugins/vxe-table/index.ts +2 -2
- package/src/plugins/vxe-table/render.tsx +95 -18
- package/src/views/login/login-view.vue +1 -1
- package/src/views/system/role/AuthorityInfo.vue +19 -15
- package/src/views/system/role/Role.vue +1 -5
- package/src/views/system/role/RolePanel.vue +11 -2
- package/src/views/system/role/UserInfo.vue +5 -3
- package/src/views/system/role-assign/RoleAssign.vue +57 -57
- package/src/views/system/role-assign/RolePanel.vue +139 -136
- package/src/views/system/sysUser/SysUserPanel.vue +37 -37
- package/src/views/uapp/pda/pda-app.vue +41 -10
- package/src/views/udev/dict/DictView.vue +6 -1
- package/src/views/udev/dict/childView.vue +1 -6
- package/src/views/ufile/aggregation/File.vue +5 -5
- package/src/views/ufile/file/water-mark.vue +14 -14
- package/src/views/uhome/su-welcome.vue +2 -2
- package/src/views/ulogin/login.vue +8 -0
- package/src/views/urpt/design/DesignPanel.vue +10 -33
- package/src/views/urpt/design/ReportDesign.vue +12 -16
- package/src/views/urpt/static-resource/resource.vue +3 -3
- package/src/views/urpt/template/ReportTemplate.vue +7 -7
- package/dist/AuthorityInfo.vue_vue_type_style_index_0_lang-RUhvzu76.js +0 -101
- package/dist/Org-Dg9Xkd34.js +0 -34
- package/dist/RolePanel.vue_vue_type_script_setup_true_lang-BwfL_JVZ.js +0 -125
- package/dist/index-BDE4-ZvN.js +0 -5091
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { defineComponent as re, ref as
|
|
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
2
|
import { useI18n as je } from "vue-i18n";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { t as Ce } from "./await-to-js.es5-BtRbN2QH.js";
|
|
4
|
+
import { I as Se, x as xe, q as $e, _ as Pe } from "./index-COBMRlmJ.js";
|
|
5
|
+
import { withInstall as Ve, useRender as Ae } from "@utogether/utils";
|
|
5
6
|
import { clone as oe, isString as Z } from "xe-utils";
|
|
6
|
-
import
|
|
7
|
-
const
|
|
7
|
+
import Ne from "qrcode";
|
|
8
|
+
const z = {
|
|
8
9
|
silent: !1,
|
|
9
10
|
logLevel: "warn"
|
|
10
11
|
};
|
|
@@ -14,7 +15,7 @@ function j(e) {
|
|
|
14
15
|
const t = Object.getPrototypeOf(e);
|
|
15
16
|
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
|
|
16
17
|
}
|
|
17
|
-
const
|
|
18
|
+
const ke = () => ({
|
|
18
19
|
func: () => {
|
|
19
20
|
},
|
|
20
21
|
bool: !0,
|
|
@@ -23,7 +24,7 @@ const Re = () => ({
|
|
|
23
24
|
array: () => [],
|
|
24
25
|
object: () => ({}),
|
|
25
26
|
integer: 0
|
|
26
|
-
}), ie = Object.prototype, se = ie.toString,
|
|
27
|
+
}), ie = Object.prototype, se = ie.toString, Le = ie.hasOwnProperty, ae = /^\s*function (\w+)/;
|
|
27
28
|
function ee(e) {
|
|
28
29
|
const t = (e == null ? void 0 : e.type) ?? e;
|
|
29
30
|
if (t) {
|
|
@@ -32,7 +33,7 @@ function ee(e) {
|
|
|
32
33
|
}
|
|
33
34
|
return "";
|
|
34
35
|
}
|
|
35
|
-
function
|
|
36
|
+
function Re(e) {
|
|
36
37
|
if (e == null)
|
|
37
38
|
return "";
|
|
38
39
|
const t = e.constructor.toString().match(ae);
|
|
@@ -44,15 +45,15 @@ function te(e) {
|
|
|
44
45
|
function le() {
|
|
45
46
|
}
|
|
46
47
|
let c = le;
|
|
47
|
-
process.env.NODE_ENV !== "production" && (c = typeof console < "u" ? function(r, n =
|
|
48
|
-
|
|
48
|
+
process.env.NODE_ENV !== "production" && (c = typeof console < "u" ? function(r, n = z.logLevel) {
|
|
49
|
+
z.silent === !1 && console[n](`[VueTypes warn]: ${r}`);
|
|
49
50
|
} : le);
|
|
50
|
-
const
|
|
51
|
+
const k = (e, t) => Le.call(e, t), Ie = Number.isInteger || function(t) {
|
|
51
52
|
return typeof t == "number" && isFinite(t) && Math.floor(t) === t;
|
|
52
53
|
}, L = Array.isArray || function(t) {
|
|
53
54
|
return se.call(t) === "[object Array]";
|
|
54
|
-
},
|
|
55
|
-
(t) =>
|
|
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)
|
|
56
57
|
));
|
|
57
58
|
function ce(e, t) {
|
|
58
59
|
return Object.defineProperty(e.bind(t), "__original", {
|
|
@@ -62,19 +63,19 @@ function ce(e, t) {
|
|
|
62
63
|
function S(e, t, r = !1) {
|
|
63
64
|
let n, o = !0, a = "";
|
|
64
65
|
j(e) ? n = e : n = { type: e };
|
|
65
|
-
const s =
|
|
66
|
+
const s = M(n) ? n._vueTypes_name + " - " : "";
|
|
66
67
|
if (ue(n) && n.type !== null) {
|
|
67
68
|
if (n.type === void 0 || n.type === !0 || !n.required && t == null)
|
|
68
69
|
return o;
|
|
69
70
|
L(n.type) ? (o = n.type.some(
|
|
70
71
|
(d) => S(d, t, !0) === !0
|
|
71
|
-
), 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 =
|
|
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);
|
|
72
73
|
}
|
|
73
74
|
if (!o) {
|
|
74
75
|
const d = `${s}value "${t}" should be of type "${a}"`;
|
|
75
76
|
return r === !1 ? (c(d), !1) : d;
|
|
76
77
|
}
|
|
77
|
-
if (
|
|
78
|
+
if (k(n, "validator") && R(n.validator)) {
|
|
78
79
|
const d = c, y = [];
|
|
79
80
|
if (c = (g) => {
|
|
80
81
|
y.push(g);
|
|
@@ -104,19 +105,19 @@ function b(e, t) {
|
|
|
104
105
|
this.default = void 0;
|
|
105
106
|
return;
|
|
106
107
|
}
|
|
107
|
-
return
|
|
108
|
+
return k(this, "default") && delete this.default, this;
|
|
108
109
|
}
|
|
109
|
-
return !
|
|
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);
|
|
110
111
|
}
|
|
111
112
|
}
|
|
112
113
|
}), { validator: n } = r;
|
|
113
|
-
return
|
|
114
|
+
return R(n) && (r.validator = ce(n, r)), r;
|
|
114
115
|
}
|
|
115
|
-
function
|
|
116
|
+
function _(e, t) {
|
|
116
117
|
const r = b(e, t);
|
|
117
118
|
return Object.defineProperty(r, "validate", {
|
|
118
119
|
value(n) {
|
|
119
|
-
return
|
|
120
|
+
return R(this.validator) && c(
|
|
120
121
|
`${this._vueTypes_name} - calling .validate() will overwrite the current custom validator function. Validator info:
|
|
121
122
|
${JSON.stringify(
|
|
122
123
|
this
|
|
@@ -125,28 +126,28 @@ ${JSON.stringify(
|
|
|
125
126
|
}
|
|
126
127
|
});
|
|
127
128
|
}
|
|
128
|
-
function
|
|
129
|
+
function B(e) {
|
|
129
130
|
return e.replace(/^(?!\s*$)/gm, " ");
|
|
130
131
|
}
|
|
131
|
-
const
|
|
132
|
+
const Ue = () => _("any", {}), qe = () => _("function", {
|
|
132
133
|
type: Function
|
|
133
|
-
}), ne = () =>
|
|
134
|
+
}), ne = () => _("boolean", {
|
|
134
135
|
type: Boolean
|
|
135
|
-
}), De = () =>
|
|
136
|
+
}), De = () => _("string", {
|
|
136
137
|
type: String
|
|
137
|
-
}), Be = () =>
|
|
138
|
+
}), Be = () => _("number", {
|
|
138
139
|
type: Number
|
|
139
|
-
}), Ee = () =>
|
|
140
|
+
}), Ee = () => _("array", {
|
|
140
141
|
type: Array
|
|
141
|
-
}),
|
|
142
|
+
}), Fe = () => _("object", {
|
|
142
143
|
type: Object
|
|
143
144
|
}), We = () => b("integer", {
|
|
144
145
|
type: Number,
|
|
145
146
|
validator(e) {
|
|
146
|
-
const t =
|
|
147
|
+
const t = Ie(e);
|
|
147
148
|
return t === !1 && c(`integer - "${e}" is not an integer`), t;
|
|
148
149
|
}
|
|
149
|
-
}),
|
|
150
|
+
}), Ye = () => b("symbol", {
|
|
150
151
|
validator(e) {
|
|
151
152
|
const t = typeof e == "symbol";
|
|
152
153
|
return t === !1 && c(`symbol - invalid value "${e}"`), t;
|
|
@@ -201,7 +202,7 @@ function Qe(e) {
|
|
|
201
202
|
}
|
|
202
203
|
return b("oneOf", r);
|
|
203
204
|
}
|
|
204
|
-
function
|
|
205
|
+
function He(e) {
|
|
205
206
|
if (!L(e))
|
|
206
207
|
throw new TypeError(
|
|
207
208
|
"[VueTypes error]: You must provide an array as argument"
|
|
@@ -210,11 +211,11 @@ function Ye(e) {
|
|
|
210
211
|
for (let a = 0; a < e.length; a += 1) {
|
|
211
212
|
const s = e[a];
|
|
212
213
|
if (ue(s)) {
|
|
213
|
-
if (
|
|
214
|
+
if (R(s.validator) && (t = !0), M(s, "oneOf") && s.type) {
|
|
214
215
|
n = n.concat(s.type);
|
|
215
216
|
continue;
|
|
216
217
|
}
|
|
217
|
-
if (
|
|
218
|
+
if (M(s, "nullable")) {
|
|
218
219
|
r = !0;
|
|
219
220
|
continue;
|
|
220
221
|
}
|
|
@@ -237,7 +238,7 @@ function Ye(e) {
|
|
|
237
238
|
});
|
|
238
239
|
return d || c(
|
|
239
240
|
`oneOfType - provided value does not match any of the ${s.length} passed-in validators:
|
|
240
|
-
${
|
|
241
|
+
${B(s.join(`
|
|
241
242
|
`))}`
|
|
242
243
|
), d;
|
|
243
244
|
}
|
|
@@ -245,23 +246,23 @@ ${E(s.join(`
|
|
|
245
246
|
type: o
|
|
246
247
|
});
|
|
247
248
|
}
|
|
248
|
-
function
|
|
249
|
+
function Xe(e) {
|
|
249
250
|
return b("arrayOf", {
|
|
250
251
|
type: Array,
|
|
251
252
|
validator(t) {
|
|
252
253
|
let r = "";
|
|
253
254
|
const n = t.every((o) => (r = S(e, o, !0), r === !0));
|
|
254
255
|
return n || c(`arrayOf - value validation error:
|
|
255
|
-
${
|
|
256
|
+
${B(r)}`), n;
|
|
256
257
|
}
|
|
257
258
|
});
|
|
258
259
|
}
|
|
259
|
-
function
|
|
260
|
+
function Ke(e) {
|
|
260
261
|
return b("instanceOf", {
|
|
261
262
|
type: e
|
|
262
263
|
});
|
|
263
264
|
}
|
|
264
|
-
function
|
|
265
|
+
function Ge(e) {
|
|
265
266
|
return b("objectOf", {
|
|
266
267
|
type: Object,
|
|
267
268
|
validator(t) {
|
|
@@ -270,11 +271,11 @@ function Ke(e) {
|
|
|
270
271
|
return !1;
|
|
271
272
|
const n = Object.keys(t).every((o) => (r = S(e, t[o], !0), r === !0));
|
|
272
273
|
return n || c(`objectOf - value validation error:
|
|
273
|
-
${
|
|
274
|
+
${B(r)}`), n;
|
|
274
275
|
}
|
|
275
276
|
});
|
|
276
277
|
}
|
|
277
|
-
function
|
|
278
|
+
function Je(e) {
|
|
278
279
|
const t = Object.keys(e), r = t.filter((o) => {
|
|
279
280
|
var a;
|
|
280
281
|
return !!((a = e[o]) != null && a.required);
|
|
@@ -303,7 +304,7 @@ function Ge(e) {
|
|
|
303
304
|
), !1);
|
|
304
305
|
const d = e[s], y = S(d, o[s], !0);
|
|
305
306
|
return typeof y == "string" && c(`shape - "${s}" property validation error:
|
|
306
|
-
${
|
|
307
|
+
${B(y)}`), y === !0;
|
|
307
308
|
});
|
|
308
309
|
}
|
|
309
310
|
});
|
|
@@ -316,17 +317,17 @@ function Ge(e) {
|
|
|
316
317
|
}
|
|
317
318
|
}), n;
|
|
318
319
|
}
|
|
319
|
-
var
|
|
320
|
-
const
|
|
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__ */ (() => {
|
|
321
322
|
var e;
|
|
322
323
|
return (
|
|
323
324
|
// eslint-disable-next-line @typescript-eslint/no-extraneous-class
|
|
324
325
|
e = class {
|
|
325
326
|
static get any() {
|
|
326
|
-
return
|
|
327
|
+
return Ue();
|
|
327
328
|
}
|
|
328
329
|
static get func() {
|
|
329
|
-
return
|
|
330
|
+
return qe().def(this.defaults.func);
|
|
330
331
|
}
|
|
331
332
|
static get bool() {
|
|
332
333
|
return this.defaults.bool === void 0 ? ne() : ne().def(this.defaults.bool);
|
|
@@ -341,13 +342,13 @@ const et = /* @__PURE__ */ (() => {
|
|
|
341
342
|
return Ee().def(this.defaults.array);
|
|
342
343
|
}
|
|
343
344
|
static get object() {
|
|
344
|
-
return
|
|
345
|
+
return Fe().def(this.defaults.object);
|
|
345
346
|
}
|
|
346
347
|
static get integer() {
|
|
347
348
|
return We().def(this.defaults.integer);
|
|
348
349
|
}
|
|
349
350
|
static get symbol() {
|
|
350
|
-
return
|
|
351
|
+
return Ye();
|
|
351
352
|
}
|
|
352
353
|
static get nullable() {
|
|
353
354
|
return ze();
|
|
@@ -358,19 +359,19 @@ const et = /* @__PURE__ */ (() => {
|
|
|
358
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."
|
|
359
360
|
);
|
|
360
361
|
}
|
|
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", {
|
|
362
363
|
validate(t, r) {
|
|
363
364
|
return S(r, t, !0) === !0;
|
|
364
365
|
},
|
|
365
366
|
toType(t, r, n = !1) {
|
|
366
|
-
return n ?
|
|
367
|
+
return n ? _(t, r) : b(t, r);
|
|
367
368
|
}
|
|
368
369
|
}), e
|
|
369
370
|
);
|
|
370
371
|
})();
|
|
371
|
-
function de(e =
|
|
372
|
+
function de(e = ke()) {
|
|
372
373
|
var t;
|
|
373
|
-
return t = class extends
|
|
374
|
+
return t = class extends tt {
|
|
374
375
|
static get sensibleDefaults() {
|
|
375
376
|
return { ...this.defaults };
|
|
376
377
|
}
|
|
@@ -385,11 +386,11 @@ function de(e = Re()) {
|
|
|
385
386
|
}
|
|
386
387
|
this.defaults = { ...r };
|
|
387
388
|
}
|
|
388
|
-
},
|
|
389
|
+
}, h(t, "defaults", { ...e }), t;
|
|
389
390
|
}
|
|
390
|
-
class
|
|
391
|
+
class mt extends de() {
|
|
391
392
|
}
|
|
392
|
-
const
|
|
393
|
+
const nt = de({
|
|
393
394
|
func: void 0,
|
|
394
395
|
bool: void 0,
|
|
395
396
|
string: void 0,
|
|
@@ -397,22 +398,22 @@ const tt = de({
|
|
|
397
398
|
object: void 0,
|
|
398
399
|
integer: void 0
|
|
399
400
|
});
|
|
400
|
-
class
|
|
401
|
+
class D extends nt {
|
|
401
402
|
// a native-like validator that supports the `.validable` method
|
|
402
403
|
static get style() {
|
|
403
|
-
return
|
|
404
|
+
return _("style", {
|
|
404
405
|
type: [String, Object]
|
|
405
406
|
});
|
|
406
407
|
}
|
|
407
408
|
static get VNodeChild() {
|
|
408
|
-
return
|
|
409
|
+
return _("VNodeChild", {
|
|
409
410
|
type: void 0
|
|
410
411
|
});
|
|
411
412
|
}
|
|
412
413
|
}
|
|
413
|
-
const
|
|
414
|
+
const rt = {
|
|
414
415
|
// img 或者 canvas,img不支持logo嵌套
|
|
415
|
-
tag:
|
|
416
|
+
tag: D.string.validate((e) => ["canvas", "img"].includes(e)).def("canvas"),
|
|
416
417
|
// 二维码内容
|
|
417
418
|
text: {
|
|
418
419
|
type: [String, Array],
|
|
@@ -424,19 +425,19 @@ const nt = {
|
|
|
424
425
|
default: () => ({})
|
|
425
426
|
},
|
|
426
427
|
// 宽度
|
|
427
|
-
width:
|
|
428
|
+
width: D.number.def(200),
|
|
428
429
|
// logo
|
|
429
430
|
logo: {
|
|
430
431
|
type: [String, Object],
|
|
431
432
|
default: () => ""
|
|
432
433
|
},
|
|
433
434
|
// 是否过期
|
|
434
|
-
disabled:
|
|
435
|
+
disabled: D.bool.def(!1),
|
|
435
436
|
// 过期提示内容
|
|
436
|
-
disabledText:
|
|
437
|
-
},
|
|
437
|
+
disabledText: D.string.def("")
|
|
438
|
+
}, ot = /* @__PURE__ */ re({
|
|
438
439
|
name: "SuQrcode",
|
|
439
|
-
props:
|
|
440
|
+
props: rt,
|
|
440
441
|
emits: ["done", "click", "disabled-click"],
|
|
441
442
|
setup(e, {
|
|
442
443
|
emit: t
|
|
@@ -444,15 +445,15 @@ const nt = {
|
|
|
444
445
|
const {
|
|
445
446
|
toCanvas: r,
|
|
446
447
|
toDataURL: n
|
|
447
|
-
} =
|
|
448
|
+
} = Ne, o = N(!0), a = N(null), s = G(() => String(e.text)), d = G(() => ({
|
|
448
449
|
width: e.width + "px",
|
|
449
450
|
height: e.width + "px"
|
|
450
451
|
})), y = async () => {
|
|
451
452
|
await ve();
|
|
452
453
|
const i = oe(e.options || {}, !0);
|
|
453
454
|
if (e.tag === "canvas") {
|
|
454
|
-
i.errorCorrectionLevel = i.errorCorrectionLevel ||
|
|
455
|
-
const l = await
|
|
455
|
+
i.errorCorrectionLevel = i.errorCorrectionLevel || $(C(s));
|
|
456
|
+
const l = await E(C(s), i);
|
|
456
457
|
i.scale = e.width === 0 ? void 0 : e.width / l * 4;
|
|
457
458
|
const u = await r(C(a), C(s), i);
|
|
458
459
|
if (e.logo) {
|
|
@@ -469,7 +470,7 @@ const nt = {
|
|
|
469
470
|
C(a).src = l, t("done", l), o.value = !1;
|
|
470
471
|
}
|
|
471
472
|
};
|
|
472
|
-
|
|
473
|
+
me(() => s.value, (i) => {
|
|
473
474
|
i && y();
|
|
474
475
|
}, {
|
|
475
476
|
deep: !0,
|
|
@@ -485,189 +486,204 @@ const nt = {
|
|
|
485
486
|
logoRadius: 0
|
|
486
487
|
}, Z(e.logo) ? {} : e.logo), {
|
|
487
488
|
logoSize: f = 0.15,
|
|
488
|
-
bgColor:
|
|
489
|
+
bgColor: m = "#ffffff",
|
|
489
490
|
borderSize: O = 0.05,
|
|
490
491
|
crossOrigin: P = "anonymous",
|
|
491
492
|
borderRadius: fe = 8,
|
|
492
|
-
logoRadius:
|
|
493
|
-
} = u, pe = Z(e.logo) ? e.logo : e.logo.src,
|
|
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");
|
|
494
495
|
if (!v) return;
|
|
495
|
-
|
|
496
|
-
const
|
|
497
|
-
(P ||
|
|
498
|
-
const ye = (
|
|
499
|
-
v.drawImage(
|
|
500
|
-
}, ge = (
|
|
501
|
-
const
|
|
502
|
-
|
|
503
|
-
const X =
|
|
504
|
-
if (!X || !v || (X.drawImage(
|
|
505
|
-
const K = v.createPattern(
|
|
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");
|
|
506
507
|
K && (v.fillStyle = K, v.fill());
|
|
507
508
|
};
|
|
508
|
-
return new Promise((
|
|
509
|
-
|
|
510
|
-
|
|
509
|
+
return new Promise((A) => {
|
|
510
|
+
V.onload = () => {
|
|
511
|
+
W ? ge(V) : ye(V), A(i.toDataURL());
|
|
511
512
|
};
|
|
512
513
|
});
|
|
513
|
-
},
|
|
514
|
+
}, E = async (i, l) => {
|
|
514
515
|
const u = document.createElement("canvas");
|
|
515
516
|
return await r(u, i, l), u.width;
|
|
516
|
-
},
|
|
517
|
-
const P = Math.min(f,
|
|
518
|
-
return O > P / 2 && (O = P / 2), i.beginPath(), i.moveTo(l + O, u), i.arcTo(l + f, u, l + f, u +
|
|
519
|
-
},
|
|
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 = () => {
|
|
520
521
|
t("click");
|
|
521
|
-
},
|
|
522
|
+
}, F = () => {
|
|
522
523
|
t("disabled-click");
|
|
523
524
|
};
|
|
524
|
-
return () => p(
|
|
525
|
+
return () => p(Y, null, [he(p("div", {
|
|
525
526
|
class: "qrcode relative inline-block",
|
|
526
527
|
style: C(d)
|
|
527
528
|
}, [e.tag === "canvas" ? p("canvas", {
|
|
528
529
|
ref: a,
|
|
529
|
-
onClick:
|
|
530
|
+
onClick: U
|
|
530
531
|
}, null) : p("img", {
|
|
531
532
|
ref: a,
|
|
532
|
-
onClick:
|
|
533
|
+
onClick: U
|
|
533
534
|
}, null), e.disabled && p("div", {
|
|
534
535
|
class: "qrcode--disabled absolute top-0 left-0 flex w-full h-full items-center justify-center",
|
|
535
|
-
onClick:
|
|
536
|
+
onClick: F
|
|
536
537
|
}, [p("div", {
|
|
537
538
|
class: "absolute top-[50%] left-[50%] font-bold"
|
|
538
|
-
}, [p(
|
|
539
|
+
}, [p(Se, {
|
|
539
540
|
class: "cursor-pointer",
|
|
540
541
|
icon: "refresh-right",
|
|
541
542
|
width: "30",
|
|
542
543
|
color: "var(--el-color-primary)"
|
|
543
544
|
}, null), p("div", null, [e.disabledText])])])]), [[be("loading"), C(o)]])]);
|
|
544
545
|
}
|
|
545
|
-
}),
|
|
546
|
-
function
|
|
547
|
-
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !
|
|
546
|
+
}), it = Ve(ot);
|
|
547
|
+
function st(e) {
|
|
548
|
+
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !Te(e);
|
|
548
549
|
}
|
|
549
|
-
const
|
|
550
|
+
const at = {
|
|
550
551
|
name: "PdaApp"
|
|
551
|
-
},
|
|
552
|
-
...
|
|
552
|
+
}, lt = /* @__PURE__ */ re({
|
|
553
|
+
...at,
|
|
553
554
|
setup(e) {
|
|
554
|
-
const t =
|
|
555
|
+
const t = xe(), r = Ae(), {
|
|
555
556
|
t: n
|
|
556
|
-
} = je(), o = "/upms/v1/app-manage", a =
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
}
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
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.appupper") : n("message.applower")
|
|
587
|
+
}, {
|
|
588
|
+
field: "creationDate",
|
|
589
|
+
width: 140
|
|
590
|
+
}, {
|
|
591
|
+
field: "operate",
|
|
592
|
+
width: 260,
|
|
593
|
+
fixed: "right",
|
|
594
|
+
slots: {
|
|
595
|
+
default: ({
|
|
580
596
|
row: i
|
|
581
|
-
}) =>
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
default: ({
|
|
593
|
-
row: i
|
|
594
|
-
}) => {
|
|
595
|
-
const l = i.enabled === "1" ? "applower" : "appupper", u = i.enabled === "1" ? "warning" : "primary", f = i.enabled === "1" ? "ri-inbox-archive-line" : "ri-inbox-unarchive-line";
|
|
596
|
-
return i.enabled !== "1" ? [p($("ut-button"), {
|
|
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"), {
|
|
597
608
|
content: l,
|
|
598
609
|
icon: f,
|
|
599
610
|
status: u,
|
|
600
611
|
onTap: () => y(i)
|
|
601
|
-
}, null)
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
// reference: () => <el-button type="primary">外网下载</el-button>
|
|
628
|
-
// }}
|
|
629
|
-
// >
|
|
630
|
-
// <>
|
|
631
|
-
// <SuQrcode text={'http://jemes.uzuo.cn/gateway/ufil/' + row.downloadUrl} />
|
|
632
|
-
// </>
|
|
633
|
-
// </el-popover>
|
|
634
|
-
];
|
|
635
|
-
}
|
|
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
|
+
];
|
|
636
638
|
}
|
|
637
639
|
}
|
|
638
|
-
], y = async (i) => {
|
|
640
|
+
}], y = async (i) => {
|
|
639
641
|
const l = oe(i, !0);
|
|
640
|
-
l.enabled = i.enabled === "1" ? "0" : "1", await $e(
|
|
642
|
+
l.enabled = i.enabled === "1" ? "0" : "1", await Ce($e().put(o, l)), a.value.refreshData();
|
|
641
643
|
}, g = (i) => {
|
|
642
|
-
i === "add" &&
|
|
643
|
-
},
|
|
644
|
+
i === "add" && I(), i === "del" && U();
|
|
645
|
+
}, E = [{
|
|
644
646
|
field: "appVersion",
|
|
647
|
+
title: "message.udp.appVersion",
|
|
645
648
|
required: !0
|
|
646
649
|
}, {
|
|
647
650
|
field: "buildNo",
|
|
651
|
+
title: "message.udp.buildNo",
|
|
648
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
|
+
})
|
|
649
663
|
}, {
|
|
650
664
|
field: "versionInfo",
|
|
665
|
+
title: "message.udp.versionInfo",
|
|
651
666
|
required: !0,
|
|
652
667
|
itemRender: r.renderTextarea()
|
|
653
668
|
}, {
|
|
654
669
|
field: "downloadUrl",
|
|
655
670
|
required: !1,
|
|
671
|
+
title: "message.udp.downloadUrl",
|
|
656
672
|
itemRender: {
|
|
657
673
|
name: "#upload",
|
|
658
674
|
props: {
|
|
659
675
|
baseUrl: t
|
|
660
676
|
}
|
|
661
677
|
}
|
|
662
|
-
}],
|
|
663
|
-
s.value = {},
|
|
664
|
-
},
|
|
678
|
+
}], $ = N(!1), I = () => {
|
|
679
|
+
s.value = {}, $.value = !0;
|
|
680
|
+
}, U = () => {
|
|
665
681
|
a.value.getInstance().commitProxy("delete");
|
|
666
|
-
},
|
|
682
|
+
}, F = () => {
|
|
667
683
|
a.value.refreshData();
|
|
668
684
|
};
|
|
669
685
|
return (i, l) => {
|
|
670
|
-
const u =
|
|
686
|
+
const u = x("ut-grid"), f = x("ut-modal-form");
|
|
671
687
|
return J(), Oe("div", null, [p(u, {
|
|
672
688
|
ref_key: "xgrid",
|
|
673
689
|
ref: a,
|
|
@@ -675,21 +691,22 @@ const st = {
|
|
|
675
691
|
url: o,
|
|
676
692
|
mode: "form",
|
|
677
693
|
onButtonClick: g
|
|
678
|
-
}, null, 512),
|
|
694
|
+
}, null, 512), $.value ? (J(), _e(f, {
|
|
679
695
|
key: 0,
|
|
680
696
|
record: s.value,
|
|
681
|
-
items:
|
|
682
|
-
width:
|
|
683
|
-
height:
|
|
697
|
+
items: E,
|
|
698
|
+
width: 420,
|
|
699
|
+
height: 400,
|
|
684
700
|
title: i.$t("message.title.appAdd"),
|
|
685
701
|
url: o,
|
|
702
|
+
class: "ut-app-form",
|
|
686
703
|
"data-status": "add",
|
|
687
|
-
onClose: l[0] || (l[0] = (
|
|
688
|
-
onConfirm:
|
|
689
|
-
}, null, 8, ["record", "title"])) :
|
|
704
|
+
onClose: l[0] || (l[0] = (m) => $.value = !1),
|
|
705
|
+
onConfirm: F
|
|
706
|
+
}, null, 8, ["record", "title"])) : we("", !0)]);
|
|
690
707
|
};
|
|
691
708
|
}
|
|
692
|
-
});
|
|
709
|
+
}), ht = /* @__PURE__ */ Pe(lt, [["__scopeId", "data-v-cc90172f"]]);
|
|
693
710
|
export {
|
|
694
|
-
|
|
711
|
+
ht as default
|
|
695
712
|
};
|