@utogether/udp-core 1.0.1-beta.5 → 1.0.1-beta.6
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-Co4hnzlW.js} +10 -10
- package/dist/{404-DwK-0wNQ.js → 404-BsseeBQQ.js} +4 -4
- package/dist/{500-CLbJDqnd.js → 500-DtKz7MA4.js} +1 -1
- package/dist/{AuthorityInfo-Bi1_uhMu.js → AuthorityInfo-iWYEWOmC.js} +1 -1
- package/dist/{AuthorityInfo.vue_vue_type_style_index_0_lang-RUhvzu76.js → AuthorityInfo.vue_vue_type_style_index_0_lang-BWp7PKyH.js} +9 -8
- package/dist/{Company-B--cokc6.js → Company-CK8Zkcv3.js} +3 -3
- package/dist/{CompanyPanel-B_gmcZ9L.js → CompanyPanel-DL4UrYYG.js} +6 -6
- package/dist/{Department-DbKdyNzK.js → Department-BPHn8to4.js} +3 -3
- package/dist/{DepartmentPanel-BmEttboJ.js → DepartmentPanel-Bqraa_NB.js} +24 -23
- package/dist/{DesignPanel-LL68_36s.js → DesignPanel-CFOIOZme.js} +1 -1
- package/dist/{DesignPanel.vue_vue_type_style_index_0_lang-DWPmFegv.js → DesignPanel.vue_vue_type_style_index_0_lang-H0FNG35Z.js} +9 -8
- package/dist/{DictView-B8j-EWx5.js → DictView-CaD1yHQS.js} +1 -1
- package/dist/{InvOrganization-DnGQlESM.js → InvOrganization-CoO0_wsY.js} +8 -7
- package/dist/Org-BU3oaFx3.js +35 -0
- package/dist/{Preview-yot4NBW5.js → Preview-B-K_bxDG.js} +1 -1
- package/dist/{ReportDefine-DHadqNYy.js → ReportDefine-DElbukSL.js} +1 -1
- package/dist/{ReportDesign-CBihGRth.js → ReportDesign-DvUHOKDK.js} +23 -22
- package/dist/{ReportQuery-CwHQ6LUU.js → ReportQuery-BcSYRNT3.js} +1 -1
- package/dist/{ReportQueryFrom-ie6lQcGL.js → ReportQueryFrom-BGEA4Pqk.js} +1 -1
- package/dist/{ReportQueryFrom.vue_vue_type_style_index_0_lang-B8LJNK0m.js → ReportQueryFrom.vue_vue_type_style_index_0_lang-B-KEPnfY.js} +1 -1
- package/dist/{ReportTemplate-B2Smwo-z.js → ReportTemplate-DnPtEoxn.js} +24 -24
- package/dist/{Role-Cf7DB7uS.js → Role-CMKkWZil.js} +3 -3
- package/dist/{RoleAssign-upUnqs_i.js → RoleAssign-BToNzG9a.js} +8 -8
- package/dist/{RolePanel-EXL_FLvM.js → RolePanel-BNqd7-M6.js} +1 -1
- package/dist/{RolePanel-BBGDGK8V.js → RolePanel-BikZ-D2u.js} +1 -1
- package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-BwfL_JVZ.js → RolePanel.vue_vue_type_script_setup_true_lang-DYP3u1Nv.js} +9 -8
- package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-DF8qJKwW.js → RolePanel.vue_vue_type_script_setup_true_lang-Nngq860f.js} +9 -9
- package/dist/{ScrollPanel.vue_vue_type_style_index_0_lang-DbBGg32H.js → ScrollPanel.vue_vue_type_style_index_0_lang-BDRDD2FX.js} +17 -17
- package/dist/{Staff-DYu5ZEyR.js → Staff-DBFATgM_.js} +3 -3
- package/dist/{StaffInfo-CHvNGjtz.js → StaffInfo-CrfwZcEL.js} +1 -1
- package/dist/{StaffInfo.vue_vue_type_script_setup_true_lang-XRJVEJ-s.js → StaffInfo.vue_vue_type_script_setup_true_lang-CE3_NJF_.js} +5 -5
- package/dist/{StaffPanel-C-ygEY65.js → StaffPanel-D54Rl_Bg.js} +1 -1
- package/dist/{StaffPanel.vue_vue_type_script_setup_true_lang-BvLrF4Yw.js → StaffPanel.vue_vue_type_script_setup_true_lang-B8wtuSZD.js} +6 -6
- package/dist/{SysUser-BHk_szpK.js → SysUser-CsuovBei.js} +2 -2
- package/dist/{SysUserPanel-DFvzA5d-.js → SysUserPanel-DNUwWEVp.js} +1 -1
- package/dist/{SysUserPanel.vue_vue_type_script_setup_true_lang-B9zUXXwa.js → SysUserPanel.vue_vue_type_script_setup_true_lang-CY6mhBV0.js} +47 -44
- package/dist/{SystemMenu-5TK9ZA11.js → SystemMenu-oLmwvaqT.js} +14 -13
- package/dist/{UserInfo-Bx3zQqHa.js → UserInfo-LyrDwBG1.js} +1 -1
- package/dist/{UserInfo.vue_vue_type_style_index_0_lang-C2sqUQdg.js → UserInfo.vue_vue_type_style_index_0_lang-vinrRyOG.js} +13 -12
- package/dist/await-to-js.es5-BtRbN2QH.js +10 -0
- package/dist/{childView-BSUWnii7.js → childView-DGKp87fT.js} +1 -1
- package/dist/{childView-CFC3gA_U.js → childView-SmYl4G6c.js} +1 -1
- package/dist/{childView.vue_vue_type_style_index_0_lang-EcT-Dux7.js → childView.vue_vue_type_style_index_0_lang-DU-Uun5d.js} +18 -17
- package/dist/{childView.vue_vue_type_style_index_0_lang-WQVLSJR8.js → childView.vue_vue_type_style_index_0_lang-wVoPvyRY.js} +10 -9
- package/dist/{code-rule-DybjhotB.js → code-rule-CfbGjmOs.js} +14 -13
- package/dist/core.es.js +2 -2
- package/dist/{cron-task-DGdknqaF.js → cron-task-DMfwGfms.js} +8 -7
- package/dist/{frameView-BOOZRv1S.js → frameView-D-hu_pqQ.js} +1 -1
- package/dist/index-ADANSV-q.js +4278 -0
- package/dist/{layoutView-BWeDLY9C.js → layoutView-D3SikBPr.js} +11 -10
- package/dist/{login-BcuCHhGE.js → login-CQ1yBBdY.js} +26 -25
- package/dist/{lov-view-DDgzqYSW.js → lov-view-CSobDBH7.js} +9 -8
- package/dist/{menuInfo-B3MOxomU.js → menuInfo-mFuM30f1.js} +1 -1
- package/dist/{menuInfo.vue_vue_type_style_index_0_lang-BXMrNMUs.js → menuInfo.vue_vue_type_style_index_0_lang-BsIPzYg0.js} +16 -15
- package/dist/{pda-app-Dy9WMHEG.js → pda-app-CIGFsvrX.js} +66 -61
- package/dist/{resource-BoCP7-dM.js → resource-mbd4LPi-.js} +20 -20
- package/dist/{su-welcome-DXpI1MHr.js → su-welcome-DruLsVvu.js} +84 -84
- package/dist/{sys-config-BiUWzxGU.js → sys-config-TXb5cJM4.js} +19 -18
- package/dist/udp-core.css +1 -1
- package/dist/{utogether-DXDcsKt7.js → utogether-Cv0UXnEX.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 +1 -1
- package/src/components/udp/lov.vue +1 -1
- package/src/layout/components/lay-search/index.vue +25 -25
- package/src/main.ts +10 -10
- package/src/plugins/i18n/zh.ts +342 -338
- package/src/plugins/vxe-table/render.tsx +5 -3
- package/src/views/login/login-view.vue +1 -1
- package/src/views/system/role-assign/RoleAssign.vue +57 -57
- package/src/views/system/sysUser/SysUserPanel.vue +9 -5
- package/src/views/uapp/pda/pda-app.vue +9 -3
- 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/ReportDesign.vue +5 -5
- package/src/views/urpt/static-resource/resource.vue +3 -3
- package/src/views/urpt/template/ReportTemplate.vue +7 -7
- package/dist/Org-Dg9Xkd34.js +0 -34
- package/dist/index-BDE4-ZvN.js +0 -5091
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { defineComponent as re, ref as
|
|
1
|
+
import { defineComponent as re, ref as V, computed as G, watch as me, createVNode as p, Fragment as z, withDirectives as he, unref as C, resolveDirective as be, nextTick as ve, resolveComponent as x, createElementBlock as Oe, openBlock as J, createBlock as we, createCommentVNode as Te, isVNode as _e } from "vue";
|
|
2
2
|
import { useI18n as je } from "vue-i18n";
|
|
3
|
-
import {
|
|
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-ADANSV-q.js";
|
|
4
5
|
import { withInstall as Pe, useRender as Ae } from "@utogether/utils";
|
|
5
6
|
import { clone as oe, isString as Z } from "xe-utils";
|
|
6
7
|
import ke from "qrcode";
|
|
@@ -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 Ve = () => ({
|
|
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, Ne = 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);
|
|
@@ -47,12 +48,12 @@ let c = le;
|
|
|
47
48
|
process.env.NODE_ENV !== "production" && (c = typeof console < "u" ? function(r, n = M.logLevel) {
|
|
48
49
|
M.silent === !1 && console[n](`[VueTypes warn]: ${r}`);
|
|
49
50
|
} : le);
|
|
50
|
-
const
|
|
51
|
+
const N = (e, t) => Ne.call(e, t), Le = Number.isInteger || function(t) {
|
|
51
52
|
return typeof t == "number" && isFinite(t) && Math.floor(t) === t;
|
|
52
|
-
},
|
|
53
|
+
}, R = Array.isArray || function(t) {
|
|
53
54
|
return se.call(t) === "[object Array]";
|
|
54
|
-
},
|
|
55
|
-
(t) =>
|
|
55
|
+
}, L = (e) => se.call(e) === "[object Function]", Q = (e, t) => j(e) && N(e, "_vueTypes_name") && (!t || e._vueTypes_name === t), ue = (e) => j(e) && (N(e, "type") || ["_vueTypes_name", "validator", "default", "required"].some(
|
|
56
|
+
(t) => N(e, t)
|
|
56
57
|
));
|
|
57
58
|
function ce(e, t) {
|
|
58
59
|
return Object.defineProperty(e.bind(t), "__original", {
|
|
@@ -66,15 +67,15 @@ function S(e, t, r = !1) {
|
|
|
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
|
+
R(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 =
|
|
72
|
+
), a = n.type.map((d) => ee(d)).join(" or ")) : (a = ee(n), a === "Array" ? o = R(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 (N(n, "validator") && L(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 N(this, "default") && delete this.default, this;
|
|
108
109
|
}
|
|
109
|
-
return !
|
|
110
|
+
return !L(o) && S(this, o, !0) !== !0 ? (c(`${this._vueTypes_name} - invalid default value: "${o}"`), this) : (R(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 L(n) && (r.validator = ce(n, r)), r;
|
|
114
115
|
}
|
|
115
116
|
function w(e, t) {
|
|
116
117
|
const r = b(e, t);
|
|
117
118
|
return Object.defineProperty(r, "validate", {
|
|
118
119
|
value(n) {
|
|
119
|
-
return
|
|
120
|
+
return L(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
|
|
@@ -128,7 +129,7 @@ ${JSON.stringify(
|
|
|
128
129
|
function E(e) {
|
|
129
130
|
return e.replace(/^(?!\s*$)/gm, " ");
|
|
130
131
|
}
|
|
131
|
-
const
|
|
132
|
+
const Ie = () => w("any", {}), qe = () => w("function", {
|
|
132
133
|
type: Function
|
|
133
134
|
}), ne = () => w("boolean", {
|
|
134
135
|
type: Boolean
|
|
@@ -143,7 +144,7 @@ const qe = () => w("any", {}), Ie = () => w("function", {
|
|
|
143
144
|
}), We = () => b("integer", {
|
|
144
145
|
type: Number,
|
|
145
146
|
validator(e) {
|
|
146
|
-
const t =
|
|
147
|
+
const t = Le(e);
|
|
147
148
|
return t === !1 && c(`integer - "${e}" is not an integer`), t;
|
|
148
149
|
}
|
|
149
150
|
}), Fe = () => b("symbol", {
|
|
@@ -176,7 +177,7 @@ function Me(e, t = "custom validation failed") {
|
|
|
176
177
|
});
|
|
177
178
|
}
|
|
178
179
|
function Qe(e) {
|
|
179
|
-
if (!
|
|
180
|
+
if (!R(e))
|
|
180
181
|
throw new TypeError(
|
|
181
182
|
"[VueTypes error]: You must provide an array as argument."
|
|
182
183
|
);
|
|
@@ -202,7 +203,7 @@ function Qe(e) {
|
|
|
202
203
|
return b("oneOf", r);
|
|
203
204
|
}
|
|
204
205
|
function Ye(e) {
|
|
205
|
-
if (!
|
|
206
|
+
if (!R(e))
|
|
206
207
|
throw new TypeError(
|
|
207
208
|
"[VueTypes error]: You must provide an array as argument"
|
|
208
209
|
);
|
|
@@ -210,7 +211,7 @@ 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 (L(s.validator) && (t = !0), Q(s, "oneOf") && s.type) {
|
|
214
215
|
n = n.concat(s.type);
|
|
215
216
|
continue;
|
|
216
217
|
}
|
|
@@ -316,17 +317,17 @@ function Ge(e) {
|
|
|
316
317
|
}
|
|
317
318
|
}), n;
|
|
318
319
|
}
|
|
319
|
-
var Je = Object.defineProperty, Ze = (e, t, r) => t in e ? Je(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r,
|
|
320
|
+
var Je = Object.defineProperty, Ze = (e, t, r) => t in e ? Je(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, h = (e, t, r) => (Ze(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
320
321
|
const et = /* @__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 Ie();
|
|
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);
|
|
@@ -358,7 +359,7 @@ 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", M), h(e, "custom", Me), h(e, "oneOf", Qe), h(e, "instanceOf", Xe), h(e, "oneOfType", Ye), h(e, "arrayOf", He), h(e, "objectOf", Ke), h(e, "shape", Ge), h(e, "utils", {
|
|
362
363
|
validate(t, r) {
|
|
363
364
|
return S(r, t, !0) === !0;
|
|
364
365
|
},
|
|
@@ -368,7 +369,7 @@ const et = /* @__PURE__ */ (() => {
|
|
|
368
369
|
}), e
|
|
369
370
|
);
|
|
370
371
|
})();
|
|
371
|
-
function de(e =
|
|
372
|
+
function de(e = Ve()) {
|
|
372
373
|
var t;
|
|
373
374
|
return t = class extends et {
|
|
374
375
|
static get sensibleDefaults() {
|
|
@@ -385,9 +386,9 @@ 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 yt extends de() {
|
|
391
392
|
}
|
|
392
393
|
const tt = de({
|
|
393
394
|
func: void 0,
|
|
@@ -444,14 +445,14 @@ const nt = {
|
|
|
444
445
|
const {
|
|
445
446
|
toCanvas: r,
|
|
446
447
|
toDataURL: n
|
|
447
|
-
} = ke, o =
|
|
448
|
+
} = ke, o = V(!0), a = V(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
|
+
i.errorCorrectionLevel = i.errorCorrectionLevel || $(C(s));
|
|
455
456
|
const l = await U(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);
|
|
@@ -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,14 +486,14 @@ 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
493
|
logoRadius: F = 0
|
|
493
494
|
} = u, pe = Z(e.logo) ? e.logo : e.logo.src, T = l * f, _ = l * (1 - f) / 2, Y = l * (f + O), H = l * (1 - f - O) / 2, v = i.getContext("2d");
|
|
494
495
|
if (!v) return;
|
|
495
|
-
|
|
496
|
+
I(v)(H, H, Y, Y, fe), v.fillStyle = m, v.fill();
|
|
496
497
|
const A = new Image();
|
|
497
498
|
(P || F) && A.setAttribute("crossOrigin", P), A.src = pe;
|
|
498
499
|
const ye = (k) => {
|
|
@@ -501,7 +502,7 @@ const nt = {
|
|
|
501
502
|
const D = document.createElement("canvas");
|
|
502
503
|
D.width = _ + T, D.height = _ + T;
|
|
503
504
|
const X = D.getContext("2d");
|
|
504
|
-
if (!X || !v || (X.drawImage(k, _, _, T, T),
|
|
505
|
+
if (!X || !v || (X.drawImage(k, _, _, T, T), I(v)(_, _, T, T, F), !v)) return;
|
|
505
506
|
const K = v.createPattern(D, "no-repeat");
|
|
506
507
|
K && (v.fillStyle = K, v.fill());
|
|
507
508
|
};
|
|
@@ -513,29 +514,29 @@ const nt = {
|
|
|
513
514
|
}, U = 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
|
+
}, q = () => {
|
|
520
521
|
t("click");
|
|
521
522
|
}, W = () => {
|
|
522
523
|
t("disabled-click");
|
|
523
524
|
};
|
|
524
|
-
return () => p(z, null, [
|
|
525
|
+
return () => p(z, 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: q
|
|
530
531
|
}, null) : p("img", {
|
|
531
532
|
ref: a,
|
|
532
|
-
onClick:
|
|
533
|
+
onClick: q
|
|
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
536
|
onClick: W
|
|
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",
|
|
@@ -548,12 +549,12 @@ function it(e) {
|
|
|
548
549
|
}
|
|
549
550
|
const st = {
|
|
550
551
|
name: "PdaApp"
|
|
551
|
-
},
|
|
552
|
+
}, gt = /* @__PURE__ */ re({
|
|
552
553
|
...st,
|
|
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
|
+
} = je(), o = "/upms/v1/app-manage", a = V(null), s = V({}), d = [
|
|
557
558
|
{
|
|
558
559
|
type: "checkbox",
|
|
559
560
|
width: 45,
|
|
@@ -593,7 +594,7 @@ const st = {
|
|
|
593
594
|
row: i
|
|
594
595
|
}) => {
|
|
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";
|
|
596
|
-
return i.enabled !== "1" ? [p(
|
|
597
|
+
return i.enabled !== "1" ? [p(x("ut-button"), {
|
|
597
598
|
content: l,
|
|
598
599
|
icon: f,
|
|
599
600
|
status: u,
|
|
@@ -601,23 +602,23 @@ const st = {
|
|
|
601
602
|
}, null)] : [
|
|
602
603
|
p(z, null, [p("div", {
|
|
603
604
|
style: "display: flex; justify-content: space-between;"
|
|
604
|
-
}, [p(
|
|
605
|
+
}, [p(x("ut-button"), {
|
|
605
606
|
content: l,
|
|
606
607
|
icon: f,
|
|
607
608
|
status: u,
|
|
608
609
|
onTap: () => y(i)
|
|
609
|
-
}, null), p(
|
|
610
|
+
}, null), p(x("el-popover"), {
|
|
610
611
|
placement: "left"
|
|
611
612
|
}, {
|
|
612
613
|
default: () => [p(z, null, [p(ot, {
|
|
613
614
|
text: t + "/ufil/" + i.downloadUrl
|
|
614
615
|
}, null)])],
|
|
615
616
|
reference: () => {
|
|
616
|
-
let
|
|
617
|
-
return p(
|
|
617
|
+
let m;
|
|
618
|
+
return p(x("el-button"), {
|
|
618
619
|
type: "success"
|
|
619
|
-
}, it(
|
|
620
|
-
default: () => [
|
|
620
|
+
}, it(m = n("message.btn.scan")) ? m : {
|
|
621
|
+
default: () => [m]
|
|
621
622
|
});
|
|
622
623
|
}
|
|
623
624
|
})])])
|
|
@@ -637,37 +638,41 @@ const st = {
|
|
|
637
638
|
}
|
|
638
639
|
], y = async (i) => {
|
|
639
640
|
const l = oe(i, !0);
|
|
640
|
-
l.enabled = i.enabled === "1" ? "0" : "1", await $e(
|
|
641
|
+
l.enabled = i.enabled === "1" ? "0" : "1", await Ce($e().put(o, l)), a.value.refreshData();
|
|
641
642
|
}, g = (i) => {
|
|
642
|
-
i === "add" &&
|
|
643
|
+
i === "add" && I(), i === "del" && q();
|
|
643
644
|
}, U = [{
|
|
644
645
|
field: "appVersion",
|
|
646
|
+
title: "mesage.udp.appVersion",
|
|
645
647
|
required: !0
|
|
646
648
|
}, {
|
|
647
649
|
field: "buildNo",
|
|
650
|
+
title: "mesage.udp.buildNo",
|
|
648
651
|
required: !0
|
|
649
652
|
}, {
|
|
650
653
|
field: "versionInfo",
|
|
654
|
+
title: "mesage.udp.versionInfo",
|
|
651
655
|
required: !0,
|
|
652
656
|
itemRender: r.renderTextarea()
|
|
653
657
|
}, {
|
|
654
658
|
field: "downloadUrl",
|
|
655
659
|
required: !1,
|
|
660
|
+
title: "mesage.udp.downloadUrl",
|
|
656
661
|
itemRender: {
|
|
657
662
|
name: "#upload",
|
|
658
663
|
props: {
|
|
659
664
|
baseUrl: t
|
|
660
665
|
}
|
|
661
666
|
}
|
|
662
|
-
}],
|
|
663
|
-
s.value = {},
|
|
664
|
-
},
|
|
667
|
+
}], $ = V(!1), I = () => {
|
|
668
|
+
s.value = {}, $.value = !0;
|
|
669
|
+
}, q = () => {
|
|
665
670
|
a.value.getInstance().commitProxy("delete");
|
|
666
671
|
}, W = () => {
|
|
667
672
|
a.value.refreshData();
|
|
668
673
|
};
|
|
669
674
|
return (i, l) => {
|
|
670
|
-
const u =
|
|
675
|
+
const u = x("ut-grid"), f = x("ut-modal-form");
|
|
671
676
|
return J(), Oe("div", null, [p(u, {
|
|
672
677
|
ref_key: "xgrid",
|
|
673
678
|
ref: a,
|
|
@@ -675,7 +680,7 @@ const st = {
|
|
|
675
680
|
url: o,
|
|
676
681
|
mode: "form",
|
|
677
682
|
onButtonClick: g
|
|
678
|
-
}, null, 512),
|
|
683
|
+
}, null, 512), $.value ? (J(), we(f, {
|
|
679
684
|
key: 0,
|
|
680
685
|
record: s.value,
|
|
681
686
|
items: U,
|
|
@@ -684,12 +689,12 @@ const st = {
|
|
|
684
689
|
title: i.$t("message.title.appAdd"),
|
|
685
690
|
url: o,
|
|
686
691
|
"data-status": "add",
|
|
687
|
-
onClose: l[0] || (l[0] = (
|
|
692
|
+
onClose: l[0] || (l[0] = (m) => $.value = !1),
|
|
688
693
|
onConfirm: W
|
|
689
694
|
}, null, 8, ["record", "title"])) : Te("", !0)]);
|
|
690
695
|
};
|
|
691
696
|
}
|
|
692
697
|
});
|
|
693
698
|
export {
|
|
694
|
-
|
|
699
|
+
gt as default
|
|
695
700
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as w, ref as o, resolveComponent as
|
|
2
|
-
import { successMessage as
|
|
3
|
-
import { useClipboard as
|
|
4
|
-
import {
|
|
1
|
+
import { defineComponent as w, ref as o, resolveComponent as r, createElementBlock as k, openBlock as i, createVNode as l, createBlock as x, createCommentVNode as b, Fragment as U } from "vue";
|
|
2
|
+
import { successMessage as B } from "@utogether/utils";
|
|
3
|
+
import { useClipboard as N } from "@vueuse/core";
|
|
4
|
+
import { x as y } from "./index-ADANSV-q.js";
|
|
5
5
|
const q = {
|
|
6
6
|
name: "StaticResource"
|
|
7
7
|
}, V = /* @__PURE__ */ w({
|
|
@@ -9,21 +9,21 @@ const q = {
|
|
|
9
9
|
setup(F) {
|
|
10
10
|
const {
|
|
11
11
|
copy: m
|
|
12
|
-
} =
|
|
12
|
+
} = N(), n = "/upms/v1/pdfTemplate", s = o(null), a = o({}), d = y(), c = [{
|
|
13
13
|
type: "checkbox",
|
|
14
14
|
width: 40,
|
|
15
15
|
align: "center"
|
|
16
16
|
}, {
|
|
17
17
|
field: "templateCode",
|
|
18
|
-
title: "message.
|
|
18
|
+
title: "message.urpt.resourceCode",
|
|
19
19
|
width: 140
|
|
20
20
|
}, {
|
|
21
21
|
field: "templateName",
|
|
22
|
-
title: "message.
|
|
22
|
+
title: "message.urpt.resourceName",
|
|
23
23
|
width: 150
|
|
24
24
|
}, {
|
|
25
25
|
field: "templateUrl",
|
|
26
|
-
title: "message.
|
|
26
|
+
title: "message.urpt.resourceUrl",
|
|
27
27
|
miWidth: 200
|
|
28
28
|
}, {
|
|
29
29
|
field: "operate",
|
|
@@ -32,20 +32,20 @@ const q = {
|
|
|
32
32
|
slots: {
|
|
33
33
|
default: ({
|
|
34
34
|
row: e
|
|
35
|
-
}) => [
|
|
35
|
+
}) => [l(U, null, [l(r("ut-button"), {
|
|
36
36
|
content: "download",
|
|
37
37
|
icon: "ri-download-line",
|
|
38
38
|
status: "success",
|
|
39
39
|
onTap: () => g(e)
|
|
40
40
|
}, null)])]
|
|
41
41
|
}
|
|
42
|
-
}],
|
|
42
|
+
}], p = {
|
|
43
43
|
toolbarButtonClick({
|
|
44
44
|
code: e
|
|
45
45
|
}) {
|
|
46
46
|
e === "add" && _();
|
|
47
47
|
}
|
|
48
|
-
},
|
|
48
|
+
}, f = [{
|
|
49
49
|
field: "templateCode",
|
|
50
50
|
required: !0
|
|
51
51
|
}, {
|
|
@@ -63,32 +63,32 @@ const q = {
|
|
|
63
63
|
}], t = o(!1), _ = (e) => {
|
|
64
64
|
a.value = {}, t.value = !0;
|
|
65
65
|
}, g = (e) => {
|
|
66
|
-
m(d + "/ufil/" + e.templateUrl),
|
|
66
|
+
m(d + "/ufil/" + e.templateUrl), B("复制成功,快试试右键粘贴吧");
|
|
67
67
|
}, h = () => {
|
|
68
68
|
s.value.refreshData();
|
|
69
69
|
};
|
|
70
|
-
return (e,
|
|
71
|
-
const v =
|
|
72
|
-
return
|
|
70
|
+
return (e, u) => {
|
|
71
|
+
const v = r("ut-grid"), C = r("ut-modal-form");
|
|
72
|
+
return i(), k("div", null, [l(v, {
|
|
73
73
|
ref_key: "xgrid",
|
|
74
74
|
ref: s,
|
|
75
75
|
columns: c,
|
|
76
76
|
url: n,
|
|
77
77
|
editable: !1,
|
|
78
78
|
mode: "form",
|
|
79
|
-
events:
|
|
80
|
-
}, null, 512), t.value ? (
|
|
79
|
+
events: p
|
|
80
|
+
}, null, 512), t.value ? (i(), x(C, {
|
|
81
81
|
key: 0,
|
|
82
82
|
record: a.value,
|
|
83
|
-
items:
|
|
83
|
+
items: f,
|
|
84
84
|
width: 300,
|
|
85
85
|
height: 340,
|
|
86
86
|
"data-status": "add",
|
|
87
87
|
title: "静态资源新增",
|
|
88
88
|
url: n,
|
|
89
|
-
onClose:
|
|
89
|
+
onClose: u[0] || (u[0] = (R) => t.value = !1),
|
|
90
90
|
onConfirm: h
|
|
91
|
-
}, null, 8, ["record"])) :
|
|
91
|
+
}, null, 8, ["record"])) : b("", !0)]);
|
|
92
92
|
};
|
|
93
93
|
}
|
|
94
94
|
});
|