@utogether/udp-core 1.0.1-beta.6 → 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-Co4hnzlW.js → 403-BQZ5OAKL.js} +1 -1
- package/dist/{404-BsseeBQQ.js → 404-H55ex36i.js} +1 -1
- package/dist/{500-DtKz7MA4.js → 500-bbrspTnK.js} +1 -1
- package/dist/{AuthorityInfo-iWYEWOmC.js → AuthorityInfo-BWni4UPQ.js} +1 -1
- package/dist/AuthorityInfo.vue_vue_type_style_index_0_lang-7WtOL6Hs.js +100 -0
- package/dist/{Company-CK8Zkcv3.js → Company-CuebFrQ0.js} +3 -3
- package/dist/{CompanyPanel-DL4UrYYG.js → CompanyPanel-DxPdJs6x.js} +1 -1
- package/dist/{Department-BPHn8to4.js → Department-D2a6Juur.js} +3 -3
- package/dist/{DepartmentPanel-Bqraa_NB.js → DepartmentPanel-C_s2R9yl.js} +1 -1
- package/dist/{DesignPanel-CFOIOZme.js → DesignPanel-CexZj3HF.js} +1 -1
- package/dist/{DesignPanel.vue_vue_type_style_index_0_lang-H0FNG35Z.js → DesignPanel.vue_vue_type_style_index_0_lang-DfmysqwB.js} +19 -19
- package/dist/{DictView-CaD1yHQS.js → DictView-C0GS72rG.js} +19 -18
- package/dist/{InvOrganization-CoO0_wsY.js → InvOrganization-a1tQ2CEH.js} +1 -1
- package/dist/{Org-BU3oaFx3.js → Org-DifvzLLy.js} +1 -1
- package/dist/{Preview-B-K_bxDG.js → Preview-BOv5j9i6.js} +1 -1
- package/dist/{ReportDefine-DElbukSL.js → ReportDefine-Dli1Q0TB.js} +1 -1
- package/dist/{ReportDesign-DvUHOKDK.js → ReportDesign-zSWkcL_O.js} +26 -26
- package/dist/{ReportQuery-BcSYRNT3.js → ReportQuery-D5r3bvFc.js} +1 -1
- package/dist/{ReportQueryFrom-BGEA4Pqk.js → ReportQueryFrom-DiostHrX.js} +1 -1
- package/dist/{ReportQueryFrom.vue_vue_type_style_index_0_lang-B-KEPnfY.js → ReportQueryFrom.vue_vue_type_style_index_0_lang-Cr2eKMmr.js} +1 -1
- package/dist/{ReportTemplate-DnPtEoxn.js → ReportTemplate-CYy4cZHQ.js} +1 -1
- package/dist/{Role-CMKkWZil.js → Role-BFQFxfQS.js} +6 -6
- package/dist/{RoleAssign-BToNzG9a.js → RoleAssign-BIdWSLTR.js} +3 -3
- package/dist/{RolePanel-BikZ-D2u.js → RolePanel-C7ybSknr.js} +1 -1
- package/dist/{RolePanel-BNqd7-M6.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-Nngq860f.js → RolePanel.vue_vue_type_script_setup_true_lang-C_ZsMf1f.js} +44 -38
- package/dist/{ScrollPanel.vue_vue_type_style_index_0_lang-BDRDD2FX.js → ScrollPanel.vue_vue_type_style_index_0_lang-botBBgto.js} +1 -1
- package/dist/{Staff-DBFATgM_.js → Staff-CY0DLsTN.js} +3 -3
- package/dist/{StaffInfo-CrfwZcEL.js → StaffInfo-DA7p265h.js} +1 -1
- package/dist/{StaffInfo.vue_vue_type_script_setup_true_lang-CE3_NJF_.js → StaffInfo.vue_vue_type_script_setup_true_lang-f29A44gS.js} +1 -1
- package/dist/{StaffPanel-D54Rl_Bg.js → StaffPanel-DYP-mMp9.js} +1 -1
- package/dist/{StaffPanel.vue_vue_type_script_setup_true_lang-B8wtuSZD.js → StaffPanel.vue_vue_type_script_setup_true_lang-C0YAG2xV.js} +2 -2
- package/dist/{SysUser-CsuovBei.js → SysUser-FqS3Ctne.js} +2 -2
- package/dist/{SysUserPanel-DNUwWEVp.js → SysUserPanel-C_t6F99T.js} +1 -1
- package/dist/{SysUserPanel.vue_vue_type_script_setup_true_lang-CY6mhBV0.js → SysUserPanel.vue_vue_type_script_setup_true_lang-CKZjy0OF.js} +96 -92
- package/dist/{SystemMenu-oLmwvaqT.js → SystemMenu-ChFrMzRg.js} +2 -2
- package/dist/{UserInfo-LyrDwBG1.js → UserInfo-I36LAXVj.js} +1 -1
- package/dist/{UserInfo.vue_vue_type_style_index_0_lang-vinrRyOG.js → UserInfo.vue_vue_type_style_index_0_lang-BGY-LYeL.js} +30 -28
- package/dist/{childView-DGKp87fT.js → childView-CYpuOzRx.js} +1 -1
- package/dist/{childView-SmYl4G6c.js → childView-Csnlaqfs.js} +1 -1
- package/dist/{childView.vue_vue_type_style_index_0_lang-DU-Uun5d.js → childView.vue_vue_type_style_index_0_lang-B8EnA03l.js} +1 -1
- package/dist/{childView.vue_vue_type_style_index_0_lang-wVoPvyRY.js → childView.vue_vue_type_style_index_0_lang-DNVlDM_a.js} +1 -1
- package/dist/{code-rule-CfbGjmOs.js → code-rule-DHBSC5Qp.js} +1 -1
- package/dist/core.es.js +1 -1
- package/dist/{cron-task-DMfwGfms.js → cron-task-CiI1MFla.js} +1 -1
- package/dist/{frameView-D-hu_pqQ.js → frameView-ZWKlbz9p.js} +1 -1
- package/dist/index-COBMRlmJ.js +5379 -0
- package/dist/{layoutView-D3SikBPr.js → layoutView-5OsbpP0u.js} +2 -2
- package/dist/{login-CQ1yBBdY.js → login-C55sa9gN.js} +2 -2
- package/dist/{lov-view-CSobDBH7.js → lov-view-DFfaUQ5m.js} +2 -2
- package/dist/{menuInfo-mFuM30f1.js → menuInfo-CZdLtLjN.js} +1 -1
- package/dist/{menuInfo.vue_vue_type_style_index_0_lang-BsIPzYg0.js → menuInfo.vue_vue_type_style_index_0_lang-DgG0aHRy.js} +1 -1
- package/dist/{pda-app-CIGFsvrX.js → pda-app-fLe8mrx-.js} +201 -189
- package/dist/{resource-mbd4LPi-.js → resource-ohWKO6Fh.js} +1 -1
- package/dist/{su-welcome-DruLsVvu.js → su-welcome-_UZTfrXX.js} +1 -1
- package/dist/{sys-config-TXb5cJM4.js → sys-config-DVuBsK7p.js} +1 -1
- package/dist/udp-core.css +1 -1
- package/dist/{utogether-Cv0UXnEX.js → utogether-CxobZqGL.js} +1 -1
- package/package.json +1 -1
- package/src/components/udp/index.ts +2 -2
- package/src/components/udp/modal-grid.vue +288 -297
- package/src/components/udp/utils.ts +4 -11
- package/src/main.ts +10 -2
- package/src/plugins/i18n/zh.ts +7 -1
- package/src/plugins/vxe-table/index.ts +2 -2
- package/src/plugins/vxe-table/render.tsx +90 -15
- 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/RolePanel.vue +139 -136
- package/src/views/system/sysUser/SysUserPanel.vue +28 -32
- package/src/views/uapp/pda/pda-app.vue +36 -11
- package/src/views/udev/dict/DictView.vue +6 -1
- package/src/views/udev/dict/childView.vue +1 -6
- package/src/views/urpt/design/DesignPanel.vue +10 -33
- package/src/views/urpt/design/ReportDesign.vue +7 -11
- package/dist/AuthorityInfo.vue_vue_type_style_index_0_lang-BWp7PKyH.js +0 -102
- package/dist/RolePanel.vue_vue_type_script_setup_true_lang-DYP3u1Nv.js +0 -126
- package/dist/index-ADANSV-q.js +0 -4278
|
@@ -1,11 +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
3
|
import { t as Ce } from "./await-to-js.es5-BtRbN2QH.js";
|
|
4
|
-
import { I as Se, x as xe, q as $e } from "./index-
|
|
5
|
-
import { withInstall as
|
|
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";
|
|
6
6
|
import { clone as oe, isString as Z } from "xe-utils";
|
|
7
|
-
import
|
|
8
|
-
const
|
|
7
|
+
import Ne from "qrcode";
|
|
8
|
+
const z = {
|
|
9
9
|
silent: !1,
|
|
10
10
|
logLevel: "warn"
|
|
11
11
|
};
|
|
@@ -15,7 +15,7 @@ function j(e) {
|
|
|
15
15
|
const t = Object.getPrototypeOf(e);
|
|
16
16
|
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
|
|
17
17
|
}
|
|
18
|
-
const
|
|
18
|
+
const ke = () => ({
|
|
19
19
|
func: () => {
|
|
20
20
|
},
|
|
21
21
|
bool: !0,
|
|
@@ -24,7 +24,7 @@ const Ve = () => ({
|
|
|
24
24
|
array: () => [],
|
|
25
25
|
object: () => ({}),
|
|
26
26
|
integer: 0
|
|
27
|
-
}), ie = Object.prototype, se = ie.toString,
|
|
27
|
+
}), ie = Object.prototype, se = ie.toString, Le = ie.hasOwnProperty, ae = /^\s*function (\w+)/;
|
|
28
28
|
function ee(e) {
|
|
29
29
|
const t = (e == null ? void 0 : e.type) ?? e;
|
|
30
30
|
if (t) {
|
|
@@ -45,15 +45,15 @@ function te(e) {
|
|
|
45
45
|
function le() {
|
|
46
46
|
}
|
|
47
47
|
let c = le;
|
|
48
|
-
process.env.NODE_ENV !== "production" && (c = typeof console < "u" ? function(r, n =
|
|
49
|
-
|
|
48
|
+
process.env.NODE_ENV !== "production" && (c = typeof console < "u" ? function(r, n = z.logLevel) {
|
|
49
|
+
z.silent === !1 && console[n](`[VueTypes warn]: ${r}`);
|
|
50
50
|
} : le);
|
|
51
|
-
const
|
|
51
|
+
const k = (e, t) => Le.call(e, t), Ie = Number.isInteger || function(t) {
|
|
52
52
|
return typeof t == "number" && isFinite(t) && Math.floor(t) === t;
|
|
53
|
-
},
|
|
53
|
+
}, L = Array.isArray || function(t) {
|
|
54
54
|
return se.call(t) === "[object Array]";
|
|
55
|
-
},
|
|
56
|
-
(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)
|
|
57
57
|
));
|
|
58
58
|
function ce(e, t) {
|
|
59
59
|
return Object.defineProperty(e.bind(t), "__original", {
|
|
@@ -63,19 +63,19 @@ function ce(e, t) {
|
|
|
63
63
|
function S(e, t, r = !1) {
|
|
64
64
|
let n, o = !0, a = "";
|
|
65
65
|
j(e) ? n = e : n = { type: e };
|
|
66
|
-
const s =
|
|
66
|
+
const s = M(n) ? n._vueTypes_name + " - " : "";
|
|
67
67
|
if (ue(n) && n.type !== null) {
|
|
68
68
|
if (n.type === void 0 || n.type === !0 || !n.required && t == null)
|
|
69
69
|
return o;
|
|
70
|
-
|
|
70
|
+
L(n.type) ? (o = n.type.some(
|
|
71
71
|
(d) => S(d, t, !0) === !0
|
|
72
|
-
), a = n.type.map((d) => ee(d)).join(" or ")) : (a = ee(n), a === "Array" ? 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);
|
|
73
73
|
}
|
|
74
74
|
if (!o) {
|
|
75
75
|
const d = `${s}value "${t}" should be of type "${a}"`;
|
|
76
76
|
return r === !1 ? (c(d), !1) : d;
|
|
77
77
|
}
|
|
78
|
-
if (
|
|
78
|
+
if (k(n, "validator") && R(n.validator)) {
|
|
79
79
|
const d = c, y = [];
|
|
80
80
|
if (c = (g) => {
|
|
81
81
|
y.push(g);
|
|
@@ -105,19 +105,19 @@ function b(e, t) {
|
|
|
105
105
|
this.default = void 0;
|
|
106
106
|
return;
|
|
107
107
|
}
|
|
108
|
-
return
|
|
108
|
+
return k(this, "default") && delete this.default, this;
|
|
109
109
|
}
|
|
110
|
-
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);
|
|
111
111
|
}
|
|
112
112
|
}
|
|
113
113
|
}), { validator: n } = r;
|
|
114
|
-
return
|
|
114
|
+
return R(n) && (r.validator = ce(n, r)), r;
|
|
115
115
|
}
|
|
116
|
-
function
|
|
116
|
+
function _(e, t) {
|
|
117
117
|
const r = b(e, t);
|
|
118
118
|
return Object.defineProperty(r, "validate", {
|
|
119
119
|
value(n) {
|
|
120
|
-
return
|
|
120
|
+
return R(this.validator) && c(
|
|
121
121
|
`${this._vueTypes_name} - calling .validate() will overwrite the current custom validator function. Validator info:
|
|
122
122
|
${JSON.stringify(
|
|
123
123
|
this
|
|
@@ -126,28 +126,28 @@ ${JSON.stringify(
|
|
|
126
126
|
}
|
|
127
127
|
});
|
|
128
128
|
}
|
|
129
|
-
function
|
|
129
|
+
function B(e) {
|
|
130
130
|
return e.replace(/^(?!\s*$)/gm, " ");
|
|
131
131
|
}
|
|
132
|
-
const
|
|
132
|
+
const Ue = () => _("any", {}), qe = () => _("function", {
|
|
133
133
|
type: Function
|
|
134
|
-
}), ne = () =>
|
|
134
|
+
}), ne = () => _("boolean", {
|
|
135
135
|
type: Boolean
|
|
136
|
-
}), De = () =>
|
|
136
|
+
}), De = () => _("string", {
|
|
137
137
|
type: String
|
|
138
|
-
}), Be = () =>
|
|
138
|
+
}), Be = () => _("number", {
|
|
139
139
|
type: Number
|
|
140
|
-
}), Ee = () =>
|
|
140
|
+
}), Ee = () => _("array", {
|
|
141
141
|
type: Array
|
|
142
|
-
}),
|
|
142
|
+
}), Fe = () => _("object", {
|
|
143
143
|
type: Object
|
|
144
144
|
}), We = () => b("integer", {
|
|
145
145
|
type: Number,
|
|
146
146
|
validator(e) {
|
|
147
|
-
const t =
|
|
147
|
+
const t = Ie(e);
|
|
148
148
|
return t === !1 && c(`integer - "${e}" is not an integer`), t;
|
|
149
149
|
}
|
|
150
|
-
}),
|
|
150
|
+
}), Ye = () => b("symbol", {
|
|
151
151
|
validator(e) {
|
|
152
152
|
const t = typeof e == "symbol";
|
|
153
153
|
return t === !1 && c(`symbol - invalid value "${e}"`), t;
|
|
@@ -177,7 +177,7 @@ function Me(e, t = "custom validation failed") {
|
|
|
177
177
|
});
|
|
178
178
|
}
|
|
179
179
|
function Qe(e) {
|
|
180
|
-
if (!
|
|
180
|
+
if (!L(e))
|
|
181
181
|
throw new TypeError(
|
|
182
182
|
"[VueTypes error]: You must provide an array as argument."
|
|
183
183
|
);
|
|
@@ -202,8 +202,8 @@ function Qe(e) {
|
|
|
202
202
|
}
|
|
203
203
|
return b("oneOf", r);
|
|
204
204
|
}
|
|
205
|
-
function
|
|
206
|
-
if (!
|
|
205
|
+
function He(e) {
|
|
206
|
+
if (!L(e))
|
|
207
207
|
throw new TypeError(
|
|
208
208
|
"[VueTypes error]: You must provide an array as argument"
|
|
209
209
|
);
|
|
@@ -211,11 +211,11 @@ function Ye(e) {
|
|
|
211
211
|
for (let a = 0; a < e.length; a += 1) {
|
|
212
212
|
const s = e[a];
|
|
213
213
|
if (ue(s)) {
|
|
214
|
-
if (
|
|
214
|
+
if (R(s.validator) && (t = !0), M(s, "oneOf") && s.type) {
|
|
215
215
|
n = n.concat(s.type);
|
|
216
216
|
continue;
|
|
217
217
|
}
|
|
218
|
-
if (
|
|
218
|
+
if (M(s, "nullable")) {
|
|
219
219
|
r = !0;
|
|
220
220
|
continue;
|
|
221
221
|
}
|
|
@@ -238,7 +238,7 @@ function Ye(e) {
|
|
|
238
238
|
});
|
|
239
239
|
return d || c(
|
|
240
240
|
`oneOfType - provided value does not match any of the ${s.length} passed-in validators:
|
|
241
|
-
${
|
|
241
|
+
${B(s.join(`
|
|
242
242
|
`))}`
|
|
243
243
|
), d;
|
|
244
244
|
}
|
|
@@ -246,23 +246,23 @@ ${E(s.join(`
|
|
|
246
246
|
type: o
|
|
247
247
|
});
|
|
248
248
|
}
|
|
249
|
-
function
|
|
249
|
+
function Xe(e) {
|
|
250
250
|
return b("arrayOf", {
|
|
251
251
|
type: Array,
|
|
252
252
|
validator(t) {
|
|
253
253
|
let r = "";
|
|
254
254
|
const n = t.every((o) => (r = S(e, o, !0), r === !0));
|
|
255
255
|
return n || c(`arrayOf - value validation error:
|
|
256
|
-
${
|
|
256
|
+
${B(r)}`), n;
|
|
257
257
|
}
|
|
258
258
|
});
|
|
259
259
|
}
|
|
260
|
-
function
|
|
260
|
+
function Ke(e) {
|
|
261
261
|
return b("instanceOf", {
|
|
262
262
|
type: e
|
|
263
263
|
});
|
|
264
264
|
}
|
|
265
|
-
function
|
|
265
|
+
function Ge(e) {
|
|
266
266
|
return b("objectOf", {
|
|
267
267
|
type: Object,
|
|
268
268
|
validator(t) {
|
|
@@ -271,11 +271,11 @@ function Ke(e) {
|
|
|
271
271
|
return !1;
|
|
272
272
|
const n = Object.keys(t).every((o) => (r = S(e, t[o], !0), r === !0));
|
|
273
273
|
return n || c(`objectOf - value validation error:
|
|
274
|
-
${
|
|
274
|
+
${B(r)}`), n;
|
|
275
275
|
}
|
|
276
276
|
});
|
|
277
277
|
}
|
|
278
|
-
function
|
|
278
|
+
function Je(e) {
|
|
279
279
|
const t = Object.keys(e), r = t.filter((o) => {
|
|
280
280
|
var a;
|
|
281
281
|
return !!((a = e[o]) != null && a.required);
|
|
@@ -304,7 +304,7 @@ function Ge(e) {
|
|
|
304
304
|
), !1);
|
|
305
305
|
const d = e[s], y = S(d, o[s], !0);
|
|
306
306
|
return typeof y == "string" && c(`shape - "${s}" property validation error:
|
|
307
|
-
${
|
|
307
|
+
${B(y)}`), y === !0;
|
|
308
308
|
});
|
|
309
309
|
}
|
|
310
310
|
});
|
|
@@ -317,14 +317,14 @@ function Ge(e) {
|
|
|
317
317
|
}
|
|
318
318
|
}), n;
|
|
319
319
|
}
|
|
320
|
-
var
|
|
321
|
-
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__ */ (() => {
|
|
322
322
|
var e;
|
|
323
323
|
return (
|
|
324
324
|
// eslint-disable-next-line @typescript-eslint/no-extraneous-class
|
|
325
325
|
e = class {
|
|
326
326
|
static get any() {
|
|
327
|
-
return
|
|
327
|
+
return Ue();
|
|
328
328
|
}
|
|
329
329
|
static get func() {
|
|
330
330
|
return qe().def(this.defaults.func);
|
|
@@ -342,13 +342,13 @@ const et = /* @__PURE__ */ (() => {
|
|
|
342
342
|
return Ee().def(this.defaults.array);
|
|
343
343
|
}
|
|
344
344
|
static get object() {
|
|
345
|
-
return
|
|
345
|
+
return Fe().def(this.defaults.object);
|
|
346
346
|
}
|
|
347
347
|
static get integer() {
|
|
348
348
|
return We().def(this.defaults.integer);
|
|
349
349
|
}
|
|
350
350
|
static get symbol() {
|
|
351
|
-
return
|
|
351
|
+
return Ye();
|
|
352
352
|
}
|
|
353
353
|
static get nullable() {
|
|
354
354
|
return ze();
|
|
@@ -359,19 +359,19 @@ const et = /* @__PURE__ */ (() => {
|
|
|
359
359
|
"VueTypes.extend has been removed. Use the ES6+ method instead. See https://dwightjack.github.io/vue-types/advanced/extending-vue-types.html#extending-namespaced-validators-in-es6 for details."
|
|
360
360
|
);
|
|
361
361
|
}
|
|
362
|
-
}, h(e, "defaults", {}), h(e, "sensibleDefaults"), h(e, "config",
|
|
362
|
+
}, h(e, "defaults", {}), h(e, "sensibleDefaults"), h(e, "config", z), h(e, "custom", Me), h(e, "oneOf", Qe), h(e, "instanceOf", Ke), h(e, "oneOfType", He), h(e, "arrayOf", Xe), h(e, "objectOf", Ge), h(e, "shape", Je), h(e, "utils", {
|
|
363
363
|
validate(t, r) {
|
|
364
364
|
return S(r, t, !0) === !0;
|
|
365
365
|
},
|
|
366
366
|
toType(t, r, n = !1) {
|
|
367
|
-
return n ?
|
|
367
|
+
return n ? _(t, r) : b(t, r);
|
|
368
368
|
}
|
|
369
369
|
}), e
|
|
370
370
|
);
|
|
371
371
|
})();
|
|
372
|
-
function de(e =
|
|
372
|
+
function de(e = ke()) {
|
|
373
373
|
var t;
|
|
374
|
-
return t = class extends
|
|
374
|
+
return t = class extends tt {
|
|
375
375
|
static get sensibleDefaults() {
|
|
376
376
|
return { ...this.defaults };
|
|
377
377
|
}
|
|
@@ -388,9 +388,9 @@ function de(e = Ve()) {
|
|
|
388
388
|
}
|
|
389
389
|
}, h(t, "defaults", { ...e }), t;
|
|
390
390
|
}
|
|
391
|
-
class
|
|
391
|
+
class mt extends de() {
|
|
392
392
|
}
|
|
393
|
-
const
|
|
393
|
+
const nt = de({
|
|
394
394
|
func: void 0,
|
|
395
395
|
bool: void 0,
|
|
396
396
|
string: void 0,
|
|
@@ -398,22 +398,22 @@ const tt = de({
|
|
|
398
398
|
object: void 0,
|
|
399
399
|
integer: void 0
|
|
400
400
|
});
|
|
401
|
-
class
|
|
401
|
+
class D extends nt {
|
|
402
402
|
// a native-like validator that supports the `.validable` method
|
|
403
403
|
static get style() {
|
|
404
|
-
return
|
|
404
|
+
return _("style", {
|
|
405
405
|
type: [String, Object]
|
|
406
406
|
});
|
|
407
407
|
}
|
|
408
408
|
static get VNodeChild() {
|
|
409
|
-
return
|
|
409
|
+
return _("VNodeChild", {
|
|
410
410
|
type: void 0
|
|
411
411
|
});
|
|
412
412
|
}
|
|
413
413
|
}
|
|
414
|
-
const
|
|
414
|
+
const rt = {
|
|
415
415
|
// img 或者 canvas,img不支持logo嵌套
|
|
416
|
-
tag:
|
|
416
|
+
tag: D.string.validate((e) => ["canvas", "img"].includes(e)).def("canvas"),
|
|
417
417
|
// 二维码内容
|
|
418
418
|
text: {
|
|
419
419
|
type: [String, Array],
|
|
@@ -425,19 +425,19 @@ const nt = {
|
|
|
425
425
|
default: () => ({})
|
|
426
426
|
},
|
|
427
427
|
// 宽度
|
|
428
|
-
width:
|
|
428
|
+
width: D.number.def(200),
|
|
429
429
|
// logo
|
|
430
430
|
logo: {
|
|
431
431
|
type: [String, Object],
|
|
432
432
|
default: () => ""
|
|
433
433
|
},
|
|
434
434
|
// 是否过期
|
|
435
|
-
disabled:
|
|
435
|
+
disabled: D.bool.def(!1),
|
|
436
436
|
// 过期提示内容
|
|
437
|
-
disabledText:
|
|
438
|
-
},
|
|
437
|
+
disabledText: D.string.def("")
|
|
438
|
+
}, ot = /* @__PURE__ */ re({
|
|
439
439
|
name: "SuQrcode",
|
|
440
|
-
props:
|
|
440
|
+
props: rt,
|
|
441
441
|
emits: ["done", "click", "disabled-click"],
|
|
442
442
|
setup(e, {
|
|
443
443
|
emit: t
|
|
@@ -445,7 +445,7 @@ const nt = {
|
|
|
445
445
|
const {
|
|
446
446
|
toCanvas: r,
|
|
447
447
|
toDataURL: n
|
|
448
|
-
} =
|
|
448
|
+
} = Ne, o = N(!0), a = N(null), s = G(() => String(e.text)), d = G(() => ({
|
|
449
449
|
width: e.width + "px",
|
|
450
450
|
height: e.width + "px"
|
|
451
451
|
})), y = async () => {
|
|
@@ -453,7 +453,7 @@ const nt = {
|
|
|
453
453
|
const i = oe(e.options || {}, !0);
|
|
454
454
|
if (e.tag === "canvas") {
|
|
455
455
|
i.errorCorrectionLevel = i.errorCorrectionLevel || $(C(s));
|
|
456
|
-
const l = await
|
|
456
|
+
const l = await E(C(s), i);
|
|
457
457
|
i.scale = e.width === 0 ? void 0 : e.width / l * 4;
|
|
458
458
|
const u = await r(C(a), C(s), i);
|
|
459
459
|
if (e.logo) {
|
|
@@ -490,50 +490,50 @@ const nt = {
|
|
|
490
490
|
borderSize: O = 0.05,
|
|
491
491
|
crossOrigin: P = "anonymous",
|
|
492
492
|
borderRadius: fe = 8,
|
|
493
|
-
logoRadius:
|
|
494
|
-
} = 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");
|
|
495
495
|
if (!v) return;
|
|
496
|
-
I(v)(H, H,
|
|
497
|
-
const
|
|
498
|
-
(P ||
|
|
499
|
-
const ye = (
|
|
500
|
-
v.drawImage(
|
|
501
|
-
}, ge = (
|
|
502
|
-
const
|
|
503
|
-
|
|
504
|
-
const X =
|
|
505
|
-
if (!X || !v || (X.drawImage(
|
|
506
|
-
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");
|
|
507
507
|
K && (v.fillStyle = K, v.fill());
|
|
508
508
|
};
|
|
509
|
-
return new Promise((
|
|
510
|
-
|
|
511
|
-
|
|
509
|
+
return new Promise((A) => {
|
|
510
|
+
V.onload = () => {
|
|
511
|
+
W ? ge(V) : ye(V), A(i.toDataURL());
|
|
512
512
|
};
|
|
513
513
|
});
|
|
514
|
-
},
|
|
514
|
+
}, E = async (i, l) => {
|
|
515
515
|
const u = document.createElement("canvas");
|
|
516
516
|
return await r(u, i, l), u.width;
|
|
517
517
|
}, $ = (i) => i.length > 36 ? "M" : i.length > 16 ? "Q" : "H", I = (i) => (l, u, f, m, O) => {
|
|
518
518
|
const P = Math.min(f, m);
|
|
519
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
|
-
},
|
|
520
|
+
}, U = () => {
|
|
521
521
|
t("click");
|
|
522
|
-
},
|
|
522
|
+
}, F = () => {
|
|
523
523
|
t("disabled-click");
|
|
524
524
|
};
|
|
525
|
-
return () => p(
|
|
525
|
+
return () => p(Y, null, [he(p("div", {
|
|
526
526
|
class: "qrcode relative inline-block",
|
|
527
527
|
style: C(d)
|
|
528
528
|
}, [e.tag === "canvas" ? p("canvas", {
|
|
529
529
|
ref: a,
|
|
530
|
-
onClick:
|
|
530
|
+
onClick: U
|
|
531
531
|
}, null) : p("img", {
|
|
532
532
|
ref: a,
|
|
533
|
-
onClick:
|
|
533
|
+
onClick: U
|
|
534
534
|
}, null), e.disabled && p("div", {
|
|
535
535
|
class: "qrcode--disabled absolute top-0 left-0 flex w-full h-full items-center justify-center",
|
|
536
|
-
onClick:
|
|
536
|
+
onClick: F
|
|
537
537
|
}, [p("div", {
|
|
538
538
|
class: "absolute top-[50%] left-[50%] font-bold"
|
|
539
539
|
}, [p(Se, {
|
|
@@ -543,132 +543,143 @@ const nt = {
|
|
|
543
543
|
color: "var(--el-color-primary)"
|
|
544
544
|
}, null), p("div", null, [e.disabledText])])])]), [[be("loading"), C(o)]])]);
|
|
545
545
|
}
|
|
546
|
-
}),
|
|
547
|
-
function
|
|
548
|
-
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);
|
|
549
549
|
}
|
|
550
|
-
const
|
|
550
|
+
const at = {
|
|
551
551
|
name: "PdaApp"
|
|
552
|
-
},
|
|
553
|
-
...
|
|
552
|
+
}, lt = /* @__PURE__ */ re({
|
|
553
|
+
...at,
|
|
554
554
|
setup(e) {
|
|
555
555
|
const t = xe(), r = Ae(), {
|
|
556
556
|
t: n
|
|
557
|
-
} = je(), o = "/upms/v1/app-manage", a =
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
}
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
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: ({
|
|
581
596
|
row: i
|
|
582
|
-
}) =>
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
default: ({
|
|
594
|
-
row: i
|
|
595
|
-
}) => {
|
|
596
|
-
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";
|
|
597
|
-
return i.enabled !== "1" ? [p(x("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"), {
|
|
598
608
|
content: l,
|
|
599
609
|
icon: f,
|
|
600
610
|
status: u,
|
|
601
611
|
onTap: () => y(i)
|
|
602
|
-
}, null)
|
|
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
|
-
|
|
628
|
-
// reference: () => <el-button type="primary">外网下载</el-button>
|
|
629
|
-
// }}
|
|
630
|
-
// >
|
|
631
|
-
// <>
|
|
632
|
-
// <SuQrcode text={'http://jemes.uzuo.cn/gateway/ufil/' + row.downloadUrl} />
|
|
633
|
-
// </>
|
|
634
|
-
// </el-popover>
|
|
635
|
-
];
|
|
636
|
-
}
|
|
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
|
+
];
|
|
637
638
|
}
|
|
638
639
|
}
|
|
639
|
-
], y = async (i) => {
|
|
640
|
+
}], y = async (i) => {
|
|
640
641
|
const l = oe(i, !0);
|
|
641
642
|
l.enabled = i.enabled === "1" ? "0" : "1", await Ce($e().put(o, l)), a.value.refreshData();
|
|
642
643
|
}, g = (i) => {
|
|
643
|
-
i === "add" && I(), i === "del" &&
|
|
644
|
-
},
|
|
644
|
+
i === "add" && I(), i === "del" && U();
|
|
645
|
+
}, E = [{
|
|
645
646
|
field: "appVersion",
|
|
646
|
-
title: "
|
|
647
|
+
title: "message.udp.appVersion",
|
|
647
648
|
required: !0
|
|
648
649
|
}, {
|
|
649
650
|
field: "buildNo",
|
|
650
|
-
title: "
|
|
651
|
+
title: "message.udp.buildNo",
|
|
651
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
|
+
})
|
|
652
663
|
}, {
|
|
653
664
|
field: "versionInfo",
|
|
654
|
-
title: "
|
|
665
|
+
title: "message.udp.versionInfo",
|
|
655
666
|
required: !0,
|
|
656
667
|
itemRender: r.renderTextarea()
|
|
657
668
|
}, {
|
|
658
669
|
field: "downloadUrl",
|
|
659
670
|
required: !1,
|
|
660
|
-
title: "
|
|
671
|
+
title: "message.udp.downloadUrl",
|
|
661
672
|
itemRender: {
|
|
662
673
|
name: "#upload",
|
|
663
674
|
props: {
|
|
664
675
|
baseUrl: t
|
|
665
676
|
}
|
|
666
677
|
}
|
|
667
|
-
}], $ =
|
|
678
|
+
}], $ = N(!1), I = () => {
|
|
668
679
|
s.value = {}, $.value = !0;
|
|
669
|
-
},
|
|
680
|
+
}, U = () => {
|
|
670
681
|
a.value.getInstance().commitProxy("delete");
|
|
671
|
-
},
|
|
682
|
+
}, F = () => {
|
|
672
683
|
a.value.refreshData();
|
|
673
684
|
};
|
|
674
685
|
return (i, l) => {
|
|
@@ -680,21 +691,22 @@ const st = {
|
|
|
680
691
|
url: o,
|
|
681
692
|
mode: "form",
|
|
682
693
|
onButtonClick: g
|
|
683
|
-
}, null, 512), $.value ? (J(),
|
|
694
|
+
}, null, 512), $.value ? (J(), _e(f, {
|
|
684
695
|
key: 0,
|
|
685
696
|
record: s.value,
|
|
686
|
-
items:
|
|
687
|
-
width:
|
|
688
|
-
height:
|
|
697
|
+
items: E,
|
|
698
|
+
width: 420,
|
|
699
|
+
height: 400,
|
|
689
700
|
title: i.$t("message.title.appAdd"),
|
|
690
701
|
url: o,
|
|
702
|
+
class: "ut-app-form",
|
|
691
703
|
"data-status": "add",
|
|
692
704
|
onClose: l[0] || (l[0] = (m) => $.value = !1),
|
|
693
|
-
onConfirm:
|
|
694
|
-
}, null, 8, ["record", "title"])) :
|
|
705
|
+
onConfirm: F
|
|
706
|
+
}, null, 8, ["record", "title"])) : we("", !0)]);
|
|
695
707
|
};
|
|
696
708
|
}
|
|
697
|
-
});
|
|
709
|
+
}), ht = /* @__PURE__ */ Pe(lt, [["__scopeId", "data-v-cc90172f"]]);
|
|
698
710
|
export {
|
|
699
|
-
|
|
711
|
+
ht as default
|
|
700
712
|
};
|