@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.
Files changed (85) hide show
  1. package/dist/{403-CP2RkkAy.js → 403-Co4hnzlW.js} +10 -10
  2. package/dist/{404-DwK-0wNQ.js → 404-BsseeBQQ.js} +4 -4
  3. package/dist/{500-CLbJDqnd.js → 500-DtKz7MA4.js} +1 -1
  4. package/dist/{AuthorityInfo-Bi1_uhMu.js → AuthorityInfo-iWYEWOmC.js} +1 -1
  5. package/dist/{AuthorityInfo.vue_vue_type_style_index_0_lang-RUhvzu76.js → AuthorityInfo.vue_vue_type_style_index_0_lang-BWp7PKyH.js} +9 -8
  6. package/dist/{Company-B--cokc6.js → Company-CK8Zkcv3.js} +3 -3
  7. package/dist/{CompanyPanel-B_gmcZ9L.js → CompanyPanel-DL4UrYYG.js} +6 -6
  8. package/dist/{Department-DbKdyNzK.js → Department-BPHn8to4.js} +3 -3
  9. package/dist/{DepartmentPanel-BmEttboJ.js → DepartmentPanel-Bqraa_NB.js} +24 -23
  10. package/dist/{DesignPanel-LL68_36s.js → DesignPanel-CFOIOZme.js} +1 -1
  11. package/dist/{DesignPanel.vue_vue_type_style_index_0_lang-DWPmFegv.js → DesignPanel.vue_vue_type_style_index_0_lang-H0FNG35Z.js} +9 -8
  12. package/dist/{DictView-B8j-EWx5.js → DictView-CaD1yHQS.js} +1 -1
  13. package/dist/{InvOrganization-DnGQlESM.js → InvOrganization-CoO0_wsY.js} +8 -7
  14. package/dist/Org-BU3oaFx3.js +35 -0
  15. package/dist/{Preview-yot4NBW5.js → Preview-B-K_bxDG.js} +1 -1
  16. package/dist/{ReportDefine-DHadqNYy.js → ReportDefine-DElbukSL.js} +1 -1
  17. package/dist/{ReportDesign-CBihGRth.js → ReportDesign-DvUHOKDK.js} +23 -22
  18. package/dist/{ReportQuery-CwHQ6LUU.js → ReportQuery-BcSYRNT3.js} +1 -1
  19. package/dist/{ReportQueryFrom-ie6lQcGL.js → ReportQueryFrom-BGEA4Pqk.js} +1 -1
  20. 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
  21. package/dist/{ReportTemplate-B2Smwo-z.js → ReportTemplate-DnPtEoxn.js} +24 -24
  22. package/dist/{Role-Cf7DB7uS.js → Role-CMKkWZil.js} +3 -3
  23. package/dist/{RoleAssign-upUnqs_i.js → RoleAssign-BToNzG9a.js} +8 -8
  24. package/dist/{RolePanel-EXL_FLvM.js → RolePanel-BNqd7-M6.js} +1 -1
  25. package/dist/{RolePanel-BBGDGK8V.js → RolePanel-BikZ-D2u.js} +1 -1
  26. 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
  27. package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-DF8qJKwW.js → RolePanel.vue_vue_type_script_setup_true_lang-Nngq860f.js} +9 -9
  28. package/dist/{ScrollPanel.vue_vue_type_style_index_0_lang-DbBGg32H.js → ScrollPanel.vue_vue_type_style_index_0_lang-BDRDD2FX.js} +17 -17
  29. package/dist/{Staff-DYu5ZEyR.js → Staff-DBFATgM_.js} +3 -3
  30. package/dist/{StaffInfo-CHvNGjtz.js → StaffInfo-CrfwZcEL.js} +1 -1
  31. 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
  32. package/dist/{StaffPanel-C-ygEY65.js → StaffPanel-D54Rl_Bg.js} +1 -1
  33. package/dist/{StaffPanel.vue_vue_type_script_setup_true_lang-BvLrF4Yw.js → StaffPanel.vue_vue_type_script_setup_true_lang-B8wtuSZD.js} +6 -6
  34. package/dist/{SysUser-BHk_szpK.js → SysUser-CsuovBei.js} +2 -2
  35. package/dist/{SysUserPanel-DFvzA5d-.js → SysUserPanel-DNUwWEVp.js} +1 -1
  36. package/dist/{SysUserPanel.vue_vue_type_script_setup_true_lang-B9zUXXwa.js → SysUserPanel.vue_vue_type_script_setup_true_lang-CY6mhBV0.js} +47 -44
  37. package/dist/{SystemMenu-5TK9ZA11.js → SystemMenu-oLmwvaqT.js} +14 -13
  38. package/dist/{UserInfo-Bx3zQqHa.js → UserInfo-LyrDwBG1.js} +1 -1
  39. package/dist/{UserInfo.vue_vue_type_style_index_0_lang-C2sqUQdg.js → UserInfo.vue_vue_type_style_index_0_lang-vinrRyOG.js} +13 -12
  40. package/dist/await-to-js.es5-BtRbN2QH.js +10 -0
  41. package/dist/{childView-BSUWnii7.js → childView-DGKp87fT.js} +1 -1
  42. package/dist/{childView-CFC3gA_U.js → childView-SmYl4G6c.js} +1 -1
  43. 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
  44. package/dist/{childView.vue_vue_type_style_index_0_lang-WQVLSJR8.js → childView.vue_vue_type_style_index_0_lang-wVoPvyRY.js} +10 -9
  45. package/dist/{code-rule-DybjhotB.js → code-rule-CfbGjmOs.js} +14 -13
  46. package/dist/core.es.js +2 -2
  47. package/dist/{cron-task-DGdknqaF.js → cron-task-DMfwGfms.js} +8 -7
  48. package/dist/{frameView-BOOZRv1S.js → frameView-D-hu_pqQ.js} +1 -1
  49. package/dist/index-ADANSV-q.js +4278 -0
  50. package/dist/{layoutView-BWeDLY9C.js → layoutView-D3SikBPr.js} +11 -10
  51. package/dist/{login-BcuCHhGE.js → login-CQ1yBBdY.js} +26 -25
  52. package/dist/{lov-view-DDgzqYSW.js → lov-view-CSobDBH7.js} +9 -8
  53. package/dist/{menuInfo-B3MOxomU.js → menuInfo-mFuM30f1.js} +1 -1
  54. package/dist/{menuInfo.vue_vue_type_style_index_0_lang-BXMrNMUs.js → menuInfo.vue_vue_type_style_index_0_lang-BsIPzYg0.js} +16 -15
  55. package/dist/{pda-app-Dy9WMHEG.js → pda-app-CIGFsvrX.js} +66 -61
  56. package/dist/{resource-BoCP7-dM.js → resource-mbd4LPi-.js} +20 -20
  57. package/dist/{su-welcome-DXpI1MHr.js → su-welcome-DruLsVvu.js} +84 -84
  58. package/dist/{sys-config-BiUWzxGU.js → sys-config-TXb5cJM4.js} +19 -18
  59. package/dist/udp-core.css +1 -1
  60. package/dist/{utogether-DXDcsKt7.js → utogether-Cv0UXnEX.js} +1 -1
  61. package/package.json +18 -18
  62. package/src/components/SuScrollTree/ScrollPanel.vue +3 -3
  63. package/src/components/udp/flip-down/FlipCard/flip-card.vue +251 -0
  64. package/src/components/udp/flip-down/FlipCard/interfaces.ts +4 -0
  65. package/src/components/udp/flip-down/FlipClock/flip-clock.vue +113 -0
  66. package/src/components/udp/grid.vue +12 -6
  67. package/src/components/udp/index.ts +1 -1
  68. package/src/components/udp/lov.vue +1 -1
  69. package/src/layout/components/lay-search/index.vue +25 -25
  70. package/src/main.ts +10 -10
  71. package/src/plugins/i18n/zh.ts +342 -338
  72. package/src/plugins/vxe-table/render.tsx +5 -3
  73. package/src/views/login/login-view.vue +1 -1
  74. package/src/views/system/role-assign/RoleAssign.vue +57 -57
  75. package/src/views/system/sysUser/SysUserPanel.vue +9 -5
  76. package/src/views/uapp/pda/pda-app.vue +9 -3
  77. package/src/views/ufile/aggregation/File.vue +5 -5
  78. package/src/views/ufile/file/water-mark.vue +14 -14
  79. package/src/views/uhome/su-welcome.vue +2 -2
  80. package/src/views/ulogin/login.vue +8 -0
  81. package/src/views/urpt/design/ReportDesign.vue +5 -5
  82. package/src/views/urpt/static-resource/resource.vue +3 -3
  83. package/src/views/urpt/template/ReportTemplate.vue +7 -7
  84. package/dist/Org-Dg9Xkd34.js +0 -34
  85. package/dist/index-BDE4-ZvN.js +0 -5091
@@ -1,6 +1,7 @@
1
- import { defineComponent as re, ref as R, computed as G, watch as he, createVNode as p, Fragment as z, withDirectives as me, unref as C, resolveDirective as be, nextTick as ve, resolveComponent as $, createElementBlock as Oe, openBlock as J, createBlock as we, createCommentVNode as Te, isVNode as _e } from "vue";
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 { I as Ce, y as Se, q as $e, v as xe } from "./index-BDE4-ZvN.js";
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 Re = () => ({
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, Ve = ie.hasOwnProperty, ae = /^\s*function (\w+)/;
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 Le(e) {
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 V = (e, t) => Ve.call(e, t), Ne = Number.isInteger || function(t) {
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
- }, L = Array.isArray || function(t) {
53
+ }, R = Array.isArray || function(t) {
53
54
  return se.call(t) === "[object Array]";
54
- }, N = (e) => se.call(e) === "[object Function]", Q = (e, t) => j(e) && V(e, "_vueTypes_name") && (!t || e._vueTypes_name === t), ue = (e) => j(e) && (V(e, "type") || ["_vueTypes_name", "validator", "default", "required"].some(
55
- (t) => V(e, 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
- L(n.type) ? (o = n.type.some(
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 = L(t) : a === "Object" ? o = j(t) : a === "String" || a === "Number" || a === "Boolean" || a === "Function" ? o = Le(t) === a : o = t instanceof n.type);
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 (V(n, "validator") && N(n.validator)) {
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 V(this, "default") && delete this.default, this;
108
+ return N(this, "default") && delete this.default, this;
108
109
  }
109
- return !N(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
+ 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 N(n) && (r.validator = ce(n, r)), r;
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 N(this.validator) && c(
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 qe = () => w("any", {}), Ie = () => w("function", {
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 = Ne(e);
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 (!L(e))
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 (!L(e))
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 (N(s.validator) && (t = !0), Q(s, "oneOf") && s.type) {
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, m = (e, t, r) => (Ze(e, typeof t != "symbol" ? t + "" : t, r), 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 qe();
327
+ return Ie();
327
328
  }
328
329
  static get func() {
329
- return Ie().def(this.defaults.func);
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
- }, m(e, "defaults", {}), m(e, "sensibleDefaults"), m(e, "config", M), m(e, "custom", Me), m(e, "oneOf", Qe), m(e, "instanceOf", Xe), m(e, "oneOfType", Ye), m(e, "arrayOf", He), m(e, "objectOf", Ke), m(e, "shape", Ge), m(e, "utils", {
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 = Re()) {
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
- }, m(t, "defaults", { ...e }), t;
389
+ }, h(t, "defaults", { ...e }), t;
389
390
  }
390
- class pt extends de() {
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 = R(!0), a = R(null), s = G(() => String(e.text)), d = G(() => ({
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 || x(C(s));
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
- he(() => s.value, (i) => {
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: h = "#ffffff",
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
- q(v)(H, H, Y, Y, fe), v.fillStyle = h, v.fill();
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), q(v)(_, _, T, T, F), !v)) return;
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
- }, x = (i) => i.length > 36 ? "M" : i.length > 16 ? "Q" : "H", q = (i) => (l, u, f, h, O) => {
517
- const P = Math.min(f, h);
518
- return O > P / 2 && (O = P / 2), i.beginPath(), i.moveTo(l + O, u), i.arcTo(l + f, u, l + f, u + h, O), i.arcTo(l + f, u + h, l, u + h, O), i.arcTo(l, u + h, l, u, O), i.arcTo(l, u, l + f, u, O), i.closePath(), i;
519
- }, I = () => {
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, [me(p("div", {
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: I
530
+ onClick: q
530
531
  }, null) : p("img", {
531
532
  ref: a,
532
- onClick: I
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(Ce, {
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
- }, yt = /* @__PURE__ */ re({
552
+ }, gt = /* @__PURE__ */ re({
552
553
  ...st,
553
554
  setup(e) {
554
- const t = Se(), r = Ae(), {
555
+ const t = xe(), r = Ae(), {
555
556
  t: n
556
- } = je(), o = "/upms/v1/app-manage", a = R(null), s = R({}), d = [
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($("ut-button"), {
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($("ut-button"), {
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($("el-popover"), {
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 h;
617
- return p($("el-button"), {
617
+ let m;
618
+ return p(x("el-button"), {
618
619
  type: "success"
619
- }, it(h = n("message.btn.scan")) ? h : {
620
- default: () => [h]
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(xe().put(o, l)), a.value.refreshData();
641
+ l.enabled = i.enabled === "1" ? "0" : "1", await Ce($e().put(o, l)), a.value.refreshData();
641
642
  }, g = (i) => {
642
- i === "add" && q(), i === "del" && I();
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
- }], x = R(!1), q = () => {
663
- s.value = {}, x.value = !0;
664
- }, I = () => {
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 = $("ut-grid"), f = $("ut-modal-form");
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), x.value ? (J(), we(f, {
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] = (h) => x.value = !1),
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
- yt as default
699
+ gt as default
695
700
  };
@@ -1,7 +1,7 @@
1
- import { defineComponent as w, ref as o, resolveComponent as l, createElementBlock as k, openBlock as u, createVNode as r, createBlock as b, createCommentVNode as x, Fragment as U } from "vue";
2
- import { successMessage as y } from "@utogether/utils";
3
- import { useClipboard as B } from "@vueuse/core";
4
- import { y as N } from "./index-BDE4-ZvN.js";
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
- } = B(), n = "/upms/v1/pdfTemplate", s = o(null), a = o({}), d = N(), c = [{
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.file.resourceCode",
18
+ title: "message.urpt.resourceCode",
19
19
  width: 140
20
20
  }, {
21
21
  field: "templateName",
22
- title: "message.file.resourceName",
22
+ title: "message.urpt.resourceName",
23
23
  width: 150
24
24
  }, {
25
25
  field: "templateUrl",
26
- title: "message.file.resourceUrl",
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
- }) => [r(U, null, [r(l("ut-button"), {
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
- }], f = {
42
+ }], p = {
43
43
  toolbarButtonClick({
44
44
  code: e
45
45
  }) {
46
46
  e === "add" && _();
47
47
  }
48
- }, p = [{
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), y("复制成功,快试试右键粘贴吧");
66
+ m(d + "/ufil/" + e.templateUrl), B("复制成功,快试试右键粘贴吧");
67
67
  }, h = () => {
68
68
  s.value.refreshData();
69
69
  };
70
- return (e, i) => {
71
- const v = l("ut-grid"), C = l("ut-modal-form");
72
- return u(), k("div", null, [r(v, {
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: f
80
- }, null, 512), t.value ? (u(), b(C, {
79
+ events: p
80
+ }, null, 512), t.value ? (i(), x(C, {
81
81
  key: 0,
82
82
  record: a.value,
83
- items: p,
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: i[0] || (i[0] = (R) => t.value = !1),
89
+ onClose: u[0] || (u[0] = (R) => t.value = !1),
90
90
  onConfirm: h
91
- }, null, 8, ["record"])) : x("", !0)]);
91
+ }, null, 8, ["record"])) : b("", !0)]);
92
92
  };
93
93
  }
94
94
  });