@utogether/udp-core 1.0.1-beta.3 → 1.0.1-beta.30

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 (165) hide show
  1. package/build/plugins.ts +3 -3
  2. package/dist/{403-BuP9jvH9.js → 403-DdjDWbkf.js} +1 -1
  3. package/dist/{404-DfQk8kKl.js → 404-D9vF2gFz.js} +1 -1
  4. package/dist/{500-OgROWdiZ.js → 500-mVaDmUjL.js} +1 -1
  5. package/dist/{AuthorityInfo-q2ksfkWH.js → AuthorityInfo-DOUJ_Zrj.js} +1 -1
  6. package/dist/AuthorityInfo.vue_vue_type_style_index_0_lang-B12sAzqt.js +100 -0
  7. package/dist/{Company-DgqowAxc.js → Company-DY__kM9F.js} +3 -3
  8. package/dist/{CompanyPanel-BNb1rUhD.js → CompanyPanel-C5N8QcMA.js} +17 -17
  9. package/dist/{Department-Cl8CROSU.js → Department-DsuDZdy5.js} +3 -3
  10. package/dist/{DepartmentPanel-D5VkqKeP.js → DepartmentPanel-CdwI7Rzu.js} +25 -25
  11. package/dist/{DesignPanel-BGvEusHC.js → DesignPanel-B50-g0TL.js} +1 -1
  12. package/dist/{DesignPanel.vue_vue_type_style_index_0_lang-BQF1uQ7w.js → DesignPanel.vue_vue_type_style_index_0_lang-KV8JOZ6v.js} +28 -30
  13. package/dist/DictView-Be2Z5Obk.js +110 -0
  14. package/dist/InvOrganization-Lui1q3Ou.js +74 -0
  15. package/dist/Org-qO5ExsPN.js +39 -0
  16. package/dist/{Preview-BaGmXH7r.js → Preview-Dq4dfV2D.js} +2 -2
  17. package/dist/{ReportDefine-DkQdBErt.js → ReportDefine-DH3FvbS1.js} +1 -1
  18. package/dist/{ReportDesign-DzB_A_G6.js → ReportDesign-Bou01Jbr.js} +43 -43
  19. package/dist/{ReportQuery-DRcMb6ya.js → ReportQuery-BBkmPPSw.js} +1 -1
  20. package/dist/{ReportQueryFrom-CeA9xhR4.js → ReportQueryFrom-BCY8lTJ7.js} +1 -1
  21. package/dist/{ReportQueryFrom.vue_vue_type_style_index_0_lang-CgGtcs5V.js → ReportQueryFrom.vue_vue_type_style_index_0_lang-CpktcM8J.js} +1 -1
  22. package/dist/{ReportTemplate-qaiTMQuT.js → ReportTemplate-C_yJXxQ-.js} +28 -28
  23. package/dist/{Role-DsFulAjq.js → Role-CTatYsrC.js} +6 -6
  24. package/dist/{RoleAssign-DMRdocpa.js → RoleAssign-Cqt3CelK.js} +9 -9
  25. package/dist/{RolePanel-wXVysDHM.js → RolePanel-C3JMpNu8.js} +1 -1
  26. package/dist/{RolePanel-B9POS_pg.js → RolePanel-brKRJIhD.js} +1 -1
  27. package/dist/RolePanel.vue_vue_type_script_setup_true_lang-DD8u9pq8.js +132 -0
  28. package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-CleVvkcY.js → RolePanel.vue_vue_type_script_setup_true_lang-i6Gq4r5B.js} +44 -38
  29. package/dist/{ScrollPanel.vue_vue_type_style_index_0_lang-DlXUs0j9.js → ScrollPanel.vue_vue_type_style_index_0_lang-CiWKyjm3.js} +23 -23
  30. package/dist/{Staff-Cq4V7ruC.js → Staff-Cd3twQ6Y.js} +3 -3
  31. package/dist/{StaffInfo-CJDKMbud.js → StaffInfo-DJp0a0qd.js} +1 -1
  32. package/dist/{StaffInfo.vue_vue_type_script_setup_true_lang-DQ4DL1KY.js → StaffInfo.vue_vue_type_script_setup_true_lang-Dp2AhJ4I.js} +16 -16
  33. package/dist/{StaffPanel-CG-uggdr.js → StaffPanel-B93hClzs.js} +1 -1
  34. package/dist/{StaffPanel.vue_vue_type_script_setup_true_lang-DAgN7zN2.js → StaffPanel.vue_vue_type_script_setup_true_lang-CXjUzq7n.js} +2 -2
  35. package/dist/{SysUser-kwnzRNdD.js → SysUser-BvI6vaqI.js} +2 -2
  36. package/dist/{SysUserPanel-DTlZf3vk.js → SysUserPanel-C9V8X-Ek.js} +1 -1
  37. package/dist/SysUserPanel.vue_vue_type_script_setup_true_lang-bMqTui07.js +343 -0
  38. package/dist/{SystemMenu-BVT0n-L2.js → SystemMenu-D4WME5d0.js} +27 -27
  39. package/dist/{UserInfo-BbTQ9Zat.js → UserInfo-D-AfdfJs.js} +1 -1
  40. package/dist/{UserInfo.vue_vue_type_style_index_0_lang-D_bpYDmI.js → UserInfo.vue_vue_type_style_index_0_lang-C-JQYIxe.js} +41 -39
  41. package/dist/{childView-BJbIhjmf.js → childView--WMSo-wH.js} +1 -1
  42. package/dist/{childView-DCsGFrG-.js → childView-1MTl6Kaj.js} +1 -1
  43. package/dist/childView.vue_vue_type_style_index_0_lang-B8Losc4Y.js +170 -0
  44. package/dist/{childView.vue_vue_type_style_index_0_lang-BCDxpVoD.js → childView.vue_vue_type_style_index_0_lang-BAVKNIXs.js} +1 -1
  45. package/dist/{code-rule-DePU6cdp.js → code-rule-D-RqrQB6.js} +42 -41
  46. package/dist/core.es.js +19 -10
  47. package/dist/{cron-task-DUM1SIGL.js → cron-task-D-X-KFZm.js} +11 -11
  48. package/dist/flow-task-B07st2aD.js +10 -0
  49. package/dist/{frameView-CEUTDtSm.js → frameView-MAW_-GHJ.js} +1 -1
  50. package/dist/index-Bc9vCX7z.js +2904 -0
  51. package/dist/{layoutView-PCjwVwkX.js → layoutView-De2QIEr2.js} +1639 -1629
  52. package/dist/{log-in-e7D5Ss1P.js → log-in-CpGqc33f.js} +5 -4
  53. package/dist/{log-out--RRncZhN.js → log-out-D1b4VRMZ.js} +30 -24
  54. package/dist/{login-log-CvVnyGi3.js → login-log-BNRXLeMi.js} +4 -3
  55. package/dist/login-rdZ0GPYc.js +249 -0
  56. package/dist/{lov-view-D8wwkxFJ.js → lov-view-Ao7LMspL.js} +5 -5
  57. package/dist/{menuInfo-B5JKVwrB.js → menuInfo-DmOcK6An.js} +1 -1
  58. package/dist/{menuInfo.vue_vue_type_style_index_0_lang-CcM9WX4n.js → menuInfo.vue_vue_type_style_index_0_lang-Ln-zFWV7.js} +121 -99
  59. package/dist/{pda-app-DIa1p1Ww.js → pda-app-DY63mQ2T.js} +202 -188
  60. package/dist/{resource-CCQ7Dd-5.js → resource-B21uV58T.js} +18 -18
  61. package/dist/{su-welcome-CLp9YaJa.js → su-welcome-DgjzJeDF.js} +122 -121
  62. package/dist/sys-config-DOtK2I32.js +370 -0
  63. package/dist/udp-core.css +1 -9
  64. package/dist/utogether-MlnyYtNS.js +4 -0
  65. package/index.ts +19 -6
  66. package/package.json +3 -3
  67. package/src/App.vue +65 -70
  68. package/src/api/http.ts +1 -4
  69. package/src/api/index.ts +5 -3
  70. package/src/api/user.ts +2 -2
  71. package/src/components/SuCharts/src/UserInfo.vue +3 -3
  72. package/src/components/SuScrollTree/ScrollPanel.vue +4 -9
  73. package/src/components/udp/content/index.vue +89 -0
  74. package/src/components/udp/form/form.vue +109 -0
  75. package/src/components/udp/{grid.vue → grid/index.vue} +524 -500
  76. package/src/components/udp/index.ts +4 -6
  77. package/src/components/udp/ut-stamp-badge/index.vue +272 -0
  78. package/src/components/udp/utils.ts +408 -379
  79. package/src/directives/permission/index.ts +1 -1
  80. package/src/layout/components/lay-navbar/index.vue +8 -6
  81. package/src/layout/components/lay-panel/index.vue +150 -150
  82. package/src/layout/components/lay-search/index.vue +1 -1
  83. package/src/layout/components/lay-select-org/index.vue +4 -9
  84. package/src/layout/components/lay-sidebar/horizontal.vue +8 -6
  85. package/src/layout/components/lay-sidebar/mixNav.vue +260 -258
  86. package/src/layout/components/lay-sidebar/sidebar-logo.vue +8 -12
  87. package/src/layout/components/lay-tag/index.vue +596 -625
  88. package/src/layout/hooks/useTag.ts +12 -18
  89. package/src/layout/types.ts +3 -2
  90. package/src/main.ts +115 -110
  91. package/src/plugins/i18n/en.ts +302 -291
  92. package/src/plugins/i18n/module/u-workflow.ts +1 -1
  93. package/src/plugins/i18n/zh.ts +362 -338
  94. package/src/plugins/vxe-table/index.ts +116 -53
  95. package/src/plugins/vxe-table/render.tsx +183 -57
  96. package/src/router/index.ts +101 -97
  97. package/src/router/modules/flow.ts +35 -0
  98. package/src/router/modules/remaining.ts +1 -26
  99. package/src/router/utils.ts +50 -7
  100. package/src/store/modules/app.ts +1 -3
  101. package/src/store/modules/multiTags.ts +15 -14
  102. package/src/store/modules/permission.ts +25 -15
  103. package/src/store/modules/system.ts +1 -3
  104. package/src/style/button.scss +85 -85
  105. package/src/style/login.css +1 -1
  106. package/src/style/vxetable.scss +348 -258
  107. package/src/utils/authority/index.ts +1 -1
  108. package/src/utils/index.ts +3 -1
  109. package/src/utils/propTypes.ts +1 -6
  110. package/src/utils/{http → udp/http}/index.ts +27 -30
  111. package/src/utils/{http → udp/http}/types.d.ts +2 -6
  112. package/src/views/login/login-view.vue +6 -20
  113. package/src/views/organization/company/CompanyPanel.vue +259 -259
  114. package/src/views/organization/department/DepartmentPanel.vue +6 -20
  115. package/src/views/organization/inv-org/InvOrganization.vue +22 -7
  116. package/src/views/organization/org/Org.vue +9 -5
  117. package/src/views/system/cron/cron-task.vue +2 -12
  118. package/src/views/system/menu/SystemMenu.vue +185 -197
  119. package/src/views/system/menu/menuInfo.vue +384 -372
  120. package/src/views/system/role/AuthorityInfo.vue +19 -15
  121. package/src/views/system/role/Role.vue +1 -5
  122. package/src/views/system/role/RolePanel.vue +11 -2
  123. package/src/views/system/role/UserInfo.vue +11 -9
  124. package/src/views/system/role-assign/RoleAssign.vue +2 -2
  125. package/src/views/system/role-assign/RolePanel.vue +12 -9
  126. package/src/views/system/sys/sys-config.vue +70 -21
  127. package/src/views/system/sysUser/SysUserPanel.vue +132 -62
  128. package/src/views/uapp/pda/pda-app.vue +48 -16
  129. package/src/views/udev/coderule/code-rule.vue +132 -121
  130. package/src/views/udev/dict/DictView.vue +118 -106
  131. package/src/views/udev/dict/childView.vue +71 -111
  132. package/src/views/udev/lov/childView.vue +1 -7
  133. package/src/views/udev/lov/lov-view.vue +91 -91
  134. package/src/views/ufile/aggregation/File.vue +5 -5
  135. package/src/views/ufile/file/water-mark.vue +14 -14
  136. package/src/views/uhome/components/menu-favorite.vue +314 -331
  137. package/src/views/uhome/su-welcome.vue +3 -3
  138. package/src/views/ulogin/login.vue +19 -12
  139. package/src/views/upms/interface/log-in.vue +2 -8
  140. package/src/views/upms/interface/log-out.vue +2 -8
  141. package/src/views/upms/user/login-log.vue +2 -8
  142. package/src/views/urpt/design/DesignPanel.vue +16 -35
  143. package/src/views/urpt/design/Preview.vue +1 -0
  144. package/src/views/urpt/design/ReportDesign.vue +17 -23
  145. package/src/views/urpt/static-resource/resource.vue +3 -3
  146. package/src/views/urpt/template/ReportTemplate.vue +7 -7
  147. package/src/views/utask/flow-task.vue +18 -0
  148. package/types/global.d.ts +4 -9
  149. package/vite.config.ts +2 -1
  150. package/dist/AuthorityInfo.vue_vue_type_style_index_0_lang-Bwsf6lMH.js +0 -102
  151. package/dist/DictView-BnxfaOBv.js +0 -96
  152. package/dist/InvOrganization-5y79ZLdY.js +0 -66
  153. package/dist/Org-2oBAXN2r.js +0 -35
  154. package/dist/RolePanel.vue_vue_type_script_setup_true_lang-t6S_0zmJ.js +0 -126
  155. package/dist/SysUserPanel.vue_vue_type_script_setup_true_lang-BW6PlGjM.js +0 -288
  156. package/dist/childView.vue_vue_type_style_index_0_lang-CDtsalCm.js +0 -187
  157. package/dist/index-ZdgOD7cF.js +0 -3399
  158. package/dist/login-B1CjWVKu.js +0 -252
  159. package/dist/sys-config-BBmf_SqF.js +0 -277
  160. package/dist/utogether-Bkptx2lB.js +0 -182
  161. package/src/components/udp/form-upload.vue +0 -183
  162. package/src/components/udp/lov.vue +0 -410
  163. package/src/components/udp/modal-form.vue +0 -180
  164. package/src/components/udp/modal-grid.vue +0 -297
  165. package/src/utils/udp/useRender.ts +0 -420
@@ -1,11 +1,11 @@
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 x, createElementBlock as Oe, openBlock as J, createBlock as we, createCommentVNode as Te, isVNode as _e } from "vue";
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 we, createCommentVNode as _e, 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-ZdgOD7cF.js";
5
- import { withInstall as Pe, useRender as Ae } from "@utogether/utils";
4
+ import { I as Se, B as xe, w as $e, _ as Pe } from "./index-Bc9vCX7z.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 ke from "qrcode";
8
- const M = {
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 Re = () => ({
18
+ const ke = () => ({
19
19
  func: () => {
20
20
  },
21
21
  bool: !0,
@@ -24,7 +24,7 @@ const Re = () => ({
24
24
  array: () => [],
25
25
  object: () => ({}),
26
26
  integer: 0
27
- }), ie = Object.prototype, se = ie.toString, Ve = ie.hasOwnProperty, ae = /^\s*function (\w+)/;
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) {
@@ -33,7 +33,7 @@ function ee(e) {
33
33
  }
34
34
  return "";
35
35
  }
36
- function Le(e) {
36
+ function Re(e) {
37
37
  if (e == null)
38
38
  return "";
39
39
  const t = e.constructor.toString().match(ae);
@@ -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 = M.logLevel) {
49
- M.silent === !1 && console[n](`[VueTypes warn]: ${r}`);
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 V = (e, t) => Ve.call(e, t), Ne = Number.isInteger || function(t) {
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
- }, 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(
56
- (t) => V(e, 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 = Q(n) ? n._vueTypes_name + " - " : "";
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 = 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 = 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 (V(n, "validator") && N(n.validator)) {
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 V(this, "default") && delete this.default, this;
108
+ return k(this, "default") && delete this.default, this;
109
109
  }
110
- 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 !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 N(n) && (r.validator = ce(n, r)), r;
114
+ return R(n) && (r.validator = ce(n, r)), r;
115
115
  }
116
116
  function w(e, t) {
117
117
  const r = b(e, t);
118
118
  return Object.defineProperty(r, "validate", {
119
119
  value(n) {
120
- return N(this.validator) && c(
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,10 +126,10 @@ ${JSON.stringify(
126
126
  }
127
127
  });
128
128
  }
129
- function E(e) {
129
+ function B(e) {
130
130
  return e.replace(/^(?!\s*$)/gm, " ");
131
131
  }
132
- const qe = () => w("any", {}), Ie = () => w("function", {
132
+ const Ue = () => w("any", {}), qe = () => w("function", {
133
133
  type: Function
134
134
  }), ne = () => w("boolean", {
135
135
  type: Boolean
@@ -139,15 +139,15 @@ const qe = () => w("any", {}), Ie = () => w("function", {
139
139
  type: Number
140
140
  }), Ee = () => w("array", {
141
141
  type: Array
142
- }), Ue = () => w("object", {
142
+ }), Fe = () => w("object", {
143
143
  type: Object
144
144
  }), We = () => b("integer", {
145
145
  type: Number,
146
146
  validator(e) {
147
- const t = Ne(e);
147
+ const t = Ie(e);
148
148
  return t === !1 && c(`integer - "${e}" is not an integer`), t;
149
149
  }
150
- }), Fe = () => b("symbol", {
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;
@@ -202,7 +202,7 @@ function Qe(e) {
202
202
  }
203
203
  return b("oneOf", r);
204
204
  }
205
- function Ye(e) {
205
+ function He(e) {
206
206
  if (!L(e))
207
207
  throw new TypeError(
208
208
  "[VueTypes error]: You must provide an array as argument"
@@ -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 (N(s.validator) && (t = !0), Q(s, "oneOf") && s.type) {
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 (Q(s, "nullable")) {
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
- ${E(s.join(`
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 He(e) {
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
- ${E(r)}`), n;
256
+ ${B(r)}`), n;
257
257
  }
258
258
  });
259
259
  }
260
- function Xe(e) {
260
+ function Ke(e) {
261
261
  return b("instanceOf", {
262
262
  type: e
263
263
  });
264
264
  }
265
- function Ke(e) {
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
- ${E(r)}`), n;
274
+ ${B(r)}`), n;
275
275
  }
276
276
  });
277
277
  }
278
- function Ge(e) {
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
- ${E(y)}`), y === !0;
307
+ ${B(y)}`), y === !0;
308
308
  });
309
309
  }
310
310
  });
@@ -317,17 +317,17 @@ function Ge(e) {
317
317
  }
318
318
  }), n;
319
319
  }
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, m = (e, t, r) => (Ze(e, typeof t != "symbol" ? t + "" : t, r), r);
321
- const et = /* @__PURE__ */ (() => {
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 qe();
327
+ return Ue();
328
328
  }
329
329
  static get func() {
330
- return Ie().def(this.defaults.func);
330
+ return qe().def(this.defaults.func);
331
331
  }
332
332
  static get bool() {
333
333
  return this.defaults.bool === void 0 ? ne() : ne().def(this.defaults.bool);
@@ -342,13 +342,13 @@ const et = /* @__PURE__ */ (() => {
342
342
  return Ee().def(this.defaults.array);
343
343
  }
344
344
  static get object() {
345
- return Ue().def(this.defaults.object);
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 Fe();
351
+ return Ye();
352
352
  }
353
353
  static get nullable() {
354
354
  return ze();
@@ -359,7 +359,7 @@ 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
- }, 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", 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
  },
@@ -369,9 +369,9 @@ const et = /* @__PURE__ */ (() => {
369
369
  }), e
370
370
  );
371
371
  })();
372
- function de(e = Re()) {
372
+ function de(e = ke()) {
373
373
  var t;
374
- return t = class extends et {
374
+ return t = class extends tt {
375
375
  static get sensibleDefaults() {
376
376
  return { ...this.defaults };
377
377
  }
@@ -386,11 +386,11 @@ function de(e = Re()) {
386
386
  }
387
387
  this.defaults = { ...r };
388
388
  }
389
- }, m(t, "defaults", { ...e }), t;
389
+ }, h(t, "defaults", { ...e }), t;
390
390
  }
391
- class yt extends de() {
391
+ class mt extends de() {
392
392
  }
393
- const tt = de({
393
+ const nt = de({
394
394
  func: void 0,
395
395
  bool: void 0,
396
396
  string: void 0,
@@ -398,7 +398,7 @@ const tt = de({
398
398
  object: void 0,
399
399
  integer: void 0
400
400
  });
401
- class B extends tt {
401
+ class D extends nt {
402
402
  // a native-like validator that supports the `.validable` method
403
403
  static get style() {
404
404
  return w("style", {
@@ -411,9 +411,9 @@ class B extends tt {
411
411
  });
412
412
  }
413
413
  }
414
- const nt = {
414
+ const rt = {
415
415
  // img 或者 canvas,img不支持logo嵌套
416
- tag: B.string.validate((e) => ["canvas", "img"].includes(e)).def("canvas"),
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: B.number.def(200),
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: B.bool.def(!1),
435
+ disabled: D.bool.def(!1),
436
436
  // 过期提示内容
437
- disabledText: B.string.def("")
438
- }, rt = /* @__PURE__ */ re({
437
+ disabledText: D.string.def("")
438
+ }, ot = /* @__PURE__ */ re({
439
439
  name: "SuQrcode",
440
- props: nt,
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
- } = ke, o = R(!0), a = R(null), s = G(() => String(e.text)), d = G(() => ({
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 U(C(s), i);
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) {
@@ -470,7 +470,7 @@ const nt = {
470
470
  C(a).src = l, t("done", l), o.value = !1;
471
471
  }
472
472
  };
473
- he(() => s.value, (i) => {
473
+ me(() => s.value, (i) => {
474
474
  i && y();
475
475
  }, {
476
476
  deep: !0,
@@ -486,54 +486,54 @@ const nt = {
486
486
  logoRadius: 0
487
487
  }, Z(e.logo) ? {} : e.logo), {
488
488
  logoSize: f = 0.15,
489
- bgColor: h = "#ffffff",
489
+ bgColor: m = "#ffffff",
490
490
  borderSize: O = 0.05,
491
491
  crossOrigin: P = "anonymous",
492
492
  borderRadius: fe = 8,
493
- logoRadius: F = 0
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");
493
+ logoRadius: W = 0
494
+ } = u, pe = Z(e.logo) ? e.logo : e.logo.src, _ = 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
- q(v)(H, H, Y, Y, fe), v.fillStyle = h, v.fill();
497
- const A = new Image();
498
- (P || F) && A.setAttribute("crossOrigin", P), A.src = pe;
499
- const ye = (k) => {
500
- v.drawImage(k, _, _, T, T);
501
- }, ge = (k) => {
502
- const D = document.createElement("canvas");
503
- D.width = _ + T, D.height = _ + T;
504
- const X = D.getContext("2d");
505
- if (!X || !v || (X.drawImage(k, _, _, T, T), q(v)(_, _, T, T, F), !v)) return;
506
- const K = v.createPattern(D, "no-repeat");
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, _, _);
501
+ }, ge = (A) => {
502
+ const q = document.createElement("canvas");
503
+ q.width = T + _, q.height = T + _;
504
+ const X = q.getContext("2d");
505
+ if (!X || !v || (X.drawImage(A, T, T, _, _), I(v)(T, T, _, _, 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((k) => {
510
- A.onload = () => {
511
- F ? ge(A) : ye(A), k(i.toDataURL());
509
+ return new Promise((A) => {
510
+ V.onload = () => {
511
+ W ? ge(V) : ye(V), A(i.toDataURL());
512
512
  };
513
513
  });
514
- }, U = async (i, l) => {
514
+ }, E = async (i, l) => {
515
515
  const u = document.createElement("canvas");
516
516
  return await r(u, i, l), u.width;
517
- }, $ = (i) => i.length > 36 ? "M" : i.length > 16 ? "Q" : "H", q = (i) => (l, u, f, h, O) => {
518
- const P = Math.min(f, h);
519
- 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;
520
- }, 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
+ }, U = () => {
521
521
  t("click");
522
- }, W = () => {
522
+ }, F = () => {
523
523
  t("disabled-click");
524
524
  };
525
- return () => p(z, null, [me(p("div", {
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: I
530
+ onClick: U
531
531
  }, null) : p("img", {
532
532
  ref: a,
533
- onClick: I
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: W
536
+ onClick: F
537
537
  }, [p("div", {
538
538
  class: "absolute top-[50%] left-[50%] font-bold"
539
539
  }, [p(Se, {
@@ -543,128 +543,141 @@ const nt = {
543
543
  color: "var(--el-color-primary)"
544
544
  }, null), p("div", null, [e.disabledText])])])]), [[be("loading"), C(o)]])]);
545
545
  }
546
- }), ot = Pe(rt);
547
- function it(e) {
548
- return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !_e(e);
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 st = {
550
+ const at = {
551
551
  name: "PdaApp"
552
- }, gt = /* @__PURE__ */ re({
553
- ...st,
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 = R(null), s = R({}), d = [
558
- {
559
- type: "checkbox",
560
- width: 45,
561
- align: "center"
562
- },
563
- // { field: 'trayTypeCode', width: 110, formatter: ['formatDict', 'SU.TRAY.TYPE'] },
564
- {
565
- field: "appVersion",
566
- width: 110
567
- },
568
- {
569
- field: "buildNo",
570
- width: 130
571
- },
572
- {
573
- field: "versionInfo",
574
- miWidth: 200
575
- },
576
- {
577
- field: "enabled",
578
- title: "message.status",
579
- width: 90,
580
- formatter: ({
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.udp.appupper") : n("message.udp.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
- }) => i.enabled === "1" ? n("message.appupper") : n("message.applower")
583
- },
584
- {
585
- field: "creationDate",
586
- width: 140
587
- },
588
- {
589
- field: "operate",
590
- width: 260,
591
- fixed: "right",
592
- slots: {
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
- p(z, null, [p("div", {
604
- style: "display: flex; justify-content: space-between;"
605
- }, [p(x("ut-button"), {
606
- content: l,
607
- icon: f,
608
- status: u,
609
- onTap: () => y(i)
610
- }, null), p(x("el-popover"), {
611
- placement: "left"
612
- }, {
613
- default: () => [p(z, null, [p(ot, {
614
- text: t + "/ufil/" + i.downloadUrl
615
- }, null)])],
616
- reference: () => {
617
- let h;
618
- return p(x("el-button"), {
619
- type: "success"
620
- }, it(h = n("message.btn.scan")) ? h : {
621
- default: () => [h]
622
- });
623
- }
624
- })])])
625
- // <el-popover
626
- // placement="left"
627
- // v-slots={{
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" && q(), i === "del" && I();
644
- }, U = [{
644
+ i === "add" && I(), i === "del" && U();
645
+ }, E = [{
645
646
  field: "appVersion",
647
+ title: "message.udp.appVersion",
646
648
  required: !0
647
649
  }, {
648
650
  field: "buildNo",
651
+ title: "message.udp.buildNo",
649
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
+ })
650
663
  }, {
651
664
  field: "versionInfo",
665
+ title: "message.udp.versionInfo",
652
666
  required: !0,
653
667
  itemRender: r.renderTextarea()
654
668
  }, {
655
669
  field: "downloadUrl",
656
670
  required: !1,
657
- itemRender: {
658
- name: "#upload",
659
- props: {
660
- baseUrl: t
661
- }
662
- }
663
- }], $ = R(!1), q = () => {
664
- s.value = {}, $.value = !0;
665
- }, I = () => {
671
+ title: "message.udp.downloadUrl",
672
+ itemRender: r.renderUpload()
673
+ }], $ = N(!1), I = () => {
674
+ s.value = {
675
+ // downloadUrl: 'https://vxeui.com/resource/img/fj577.jpg'
676
+ // downloadUrl: '/resource/image/20250817/15806d21e3f445dcae0e2e0825c76a79.jpg'
677
+ }, $.value = !0;
678
+ }, U = () => {
666
679
  a.value.getInstance().commitProxy("delete");
667
- }, W = () => {
680
+ }, F = () => {
668
681
  a.value.refreshData();
669
682
  };
670
683
  return (i, l) => {
@@ -679,18 +692,19 @@ const st = {
679
692
  }, null, 512), $.value ? (J(), we(f, {
680
693
  key: 0,
681
694
  record: s.value,
682
- items: U,
683
- width: 360,
684
- height: 340,
695
+ items: E,
696
+ width: 420,
697
+ height: 450,
685
698
  title: i.$t("message.title.appAdd"),
686
699
  url: o,
700
+ class: "ut-app-form",
687
701
  "data-status": "add",
688
- onClose: l[0] || (l[0] = (h) => $.value = !1),
689
- onConfirm: W
690
- }, null, 8, ["record", "title"])) : Te("", !0)]);
702
+ onClose: l[0] || (l[0] = (m) => $.value = !1),
703
+ onConfirm: F
704
+ }, null, 8, ["record", "title"])) : _e("", !0)]);
691
705
  };
692
706
  }
693
- });
707
+ }), ht = /* @__PURE__ */ Pe(lt, [["__scopeId", "data-v-4c7392db"]]);
694
708
  export {
695
- gt as default
709
+ ht as default
696
710
  };