@utogether/udp-core 1.0.1-beta.2 → 1.0.1-beta.4

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 (98) hide show
  1. package/build/plugins.ts +6 -1
  2. package/dist/{403-BBQoJwTM.js → 403-CT4J-t-o.js} +1 -1
  3. package/dist/{404-BbJPSIWM.js → 404-BAudfnaK.js} +1 -1
  4. package/dist/{500-BtFL9R4M.js → 500-BlOGtpEE.js} +1 -1
  5. package/dist/{AuthorityInfo-DhiwCeLN.js → AuthorityInfo-Bl03tEhF.js} +1 -1
  6. package/dist/{AuthorityInfo.vue_vue_type_style_index_0_lang-Duyweh89.js → AuthorityInfo.vue_vue_type_style_index_0_lang-CUwS2F3R.js} +1 -1
  7. package/dist/{Company-CGqmslx-.js → Company-CIj9XgQn.js} +3 -3
  8. package/dist/{CompanyPanel-hlDsxD-6.js → CompanyPanel-CublK5NN.js} +16 -16
  9. package/dist/{Department-BZyJtacc.js → Department-BolPW-W3.js} +3 -3
  10. package/dist/{DepartmentPanel-D-a_EBFt.js → DepartmentPanel-BttxSHfM.js} +1 -1
  11. package/dist/{DesignPanel-Bl4luWDV.js → DesignPanel-BwCbn92O.js} +1 -1
  12. package/dist/{DesignPanel.vue_vue_type_style_index_0_lang-I8C3iGvz.js → DesignPanel.vue_vue_type_style_index_0_lang-y2AnCTg6.js} +2 -2
  13. package/dist/{DictView-B4a7Hs1X.js → DictView-D85ziNV2.js} +13 -12
  14. package/dist/InvOrganization-CaAk_f7F.js +66 -0
  15. package/dist/{Org-BTGTrAVz.js → Org-CreIihFE.js} +1 -1
  16. package/dist/{Preview-pHD84xqI.js → Preview-DMGbhV6q.js} +1 -1
  17. package/dist/{ReportDefine-DnnCNQWS.js → ReportDefine-DogZwa8T.js} +1 -1
  18. package/dist/{ReportDesign-BnI_Q4pg.js → ReportDesign-CdSsJJeA.js} +2 -2
  19. package/dist/{ReportQuery-Dby2MmtM.js → ReportQuery-DPvKqeUm.js} +1 -1
  20. package/dist/{ReportQueryFrom-Blm1N8P1.js → ReportQueryFrom-UokkfBx_.js} +1 -1
  21. package/dist/{ReportQueryFrom.vue_vue_type_style_index_0_lang-CnG_Ybnt.js → ReportQueryFrom.vue_vue_type_style_index_0_lang-BlOoThY7.js} +1 -1
  22. package/dist/{ReportTemplate-D65RXRY_.js → ReportTemplate-DCnmllXW.js} +1 -1
  23. package/dist/{Role-eFZoTpXc.js → Role-sfmwLiNM.js} +3 -3
  24. package/dist/{RoleAssign-D9-Y3UNz.js → RoleAssign-WRk90VO2.js} +3 -3
  25. package/dist/{RolePanel-DlFw6HSf.js → RolePanel-DhP0_5ur.js} +1 -1
  26. package/dist/{RolePanel-CoUOc3sX.js → RolePanel-iWysS02n.js} +1 -1
  27. package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-DKHgNWQP.js → RolePanel.vue_vue_type_script_setup_true_lang-CYXqW-d4.js} +1 -1
  28. package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-Clwk-MHw.js → RolePanel.vue_vue_type_script_setup_true_lang-_hVY31HC.js} +3 -3
  29. package/dist/{ScrollPanel.vue_vue_type_style_index_0_lang-M2FQJwPU.js → ScrollPanel.vue_vue_type_style_index_0_lang-BozDFES-.js} +1 -1
  30. package/dist/{Staff-DFBLCsAd.js → Staff-Bha-Ijax.js} +3 -3
  31. package/dist/{StaffInfo-d2CK0oBA.js → StaffInfo-CbfYI8UW.js} +1 -1
  32. package/dist/{StaffInfo.vue_vue_type_script_setup_true_lang-4m8wK9tq.js → StaffInfo.vue_vue_type_script_setup_true_lang-Ce-MUVYH.js} +1 -1
  33. package/dist/{StaffPanel-D6aWLKN3.js → StaffPanel-B8094e97.js} +1 -1
  34. package/dist/{StaffPanel.vue_vue_type_script_setup_true_lang-C7YT2CVb.js → StaffPanel.vue_vue_type_script_setup_true_lang-_kJIBCtx.js} +2 -2
  35. package/dist/{SysUser-BdZvYxQH.js → SysUser-D1J9vPnb.js} +2 -2
  36. package/dist/{SysUserPanel-BIVa6LLr.js → SysUserPanel-DGDPKKoY.js} +1 -1
  37. package/dist/{SysUserPanel.vue_vue_type_script_setup_true_lang-BsBKpYR7.js → SysUserPanel.vue_vue_type_script_setup_true_lang-D-5-zKn6.js} +1 -1
  38. package/dist/{SystemMenu-C-5VKlHK.js → SystemMenu-Dz8Pllh5.js} +9 -9
  39. package/dist/{UserInfo-DqXCRZts.js → UserInfo-ecAJA2Yg.js} +1 -1
  40. package/dist/{UserInfo.vue_vue_type_style_index_0_lang-N3TwfpPx.js → UserInfo.vue_vue_type_style_index_0_lang-4_-I_sQN.js} +1 -1
  41. package/dist/{childView-B2lSsqS3.js → childView-4uI_RT2m.js} +1 -1
  42. package/dist/{childView-DRUNqgjI.js → childView-OXXoMFg3.js} +1 -1
  43. package/dist/{childView.vue_vue_type_style_index_0_lang-oGriyFTv.js → childView.vue_vue_type_style_index_0_lang-DC-yx4Kv.js} +1 -1
  44. package/dist/{childView.vue_vue_type_style_index_0_lang-B9XBDDU_.js → childView.vue_vue_type_style_index_0_lang-e43PUsUO.js} +1 -1
  45. package/dist/{code-rule-DZC9T6cl.js → code-rule-B667R66s.js} +1 -1
  46. package/dist/core.es.js +14 -11
  47. package/dist/{cron-task-BJwPeA5F.js → cron-task-DcmGSr2D.js} +1 -1
  48. package/dist/{frameView-C6wkvok-.js → frameView-BzgaLYjQ.js} +1 -1
  49. package/dist/img/l_img.svg +1 -1
  50. package/dist/img/minicolors.png +0 -0
  51. package/dist/img/v_img.svg +1 -1
  52. package/dist/{index-DZc3qRTx.js → index-CLliRySq.js} +516 -560
  53. package/dist/{layoutView-CeJBpZb_.js → layoutView-BBQB8pDc.js} +109 -108
  54. package/dist/{login-BOxwzwdB.js → login-DIG7pRU7.js} +2 -2
  55. package/dist/{lov-view-DRF-99U4.js → lov-view-CSIPKZSY.js} +2 -2
  56. package/dist/{menuInfo-3Sjvs9nM.js → menuInfo-CPHjl7id.js} +1 -1
  57. package/dist/{menuInfo.vue_vue_type_style_index_0_lang-DrQ560nm.js → menuInfo.vue_vue_type_style_index_0_lang-BXNiinTg.js} +31 -29
  58. package/dist/{pda-app-B9tn7jdv.js → pda-app-BLjbMcdt.js} +1 -1
  59. package/dist/{resource-BqnxbQNe.js → resource-MxqaSJqB.js} +1 -1
  60. package/dist/{su-welcome-VwifUK_O.js → su-welcome-C0flTYCx.js} +1 -1
  61. package/dist/{sys-config-C0-gSBFO.js → sys-config-CXzGs3Nl.js} +1 -1
  62. package/dist/udp-core.css +2 -2
  63. package/dist/{utogether-Di1byIum.js → utogether-CFdIDuAT.js} +1 -1
  64. package/index.ts +40 -36
  65. package/package.json +1 -1
  66. package/src/App.vue +70 -70
  67. package/src/components/udp/grid.vue +505 -0
  68. package/src/components/udp/index.ts +7 -4
  69. package/src/components/udp/lov.vue +410 -0
  70. package/src/components/udp/modal-form.vue +2 -2
  71. package/src/components/udp/modal-grid.vue +297 -0
  72. package/src/components/udp/utils.ts +379 -40
  73. package/src/directives/permission/index.ts +1 -1
  74. package/src/layout/components/lay-navbar/index.vue +1 -1
  75. package/src/layout/components/lay-panel/index.vue +150 -150
  76. package/src/layout/components/lay-sidebar/breadCrumb.vue +1 -1
  77. package/src/layout/components/lay-tag/index.vue +625 -625
  78. package/src/layout/layoutView.vue +215 -215
  79. package/src/main.ts +7 -6
  80. package/src/plugins/i18n/en.ts +291 -289
  81. package/src/plugins/i18n/zh.ts +338 -337
  82. package/src/plugins/vxe-table/index.ts +1 -1
  83. package/src/plugins/vxe-table/render.tsx +4 -2
  84. package/src/router/index.ts +187 -183
  85. package/src/router/modules/remaining.ts +58 -83
  86. package/src/style/button.scss +85 -78
  87. package/src/style/tailwind.css +1 -68
  88. package/src/style/vxetable.scss +265 -256
  89. package/src/utils/authority/index.ts +1 -1
  90. package/src/views/organization/company/CompanyPanel.vue +259 -259
  91. package/src/views/organization/inv-org/InvOrganization.vue +2 -3
  92. package/src/views/system/menu/SystemMenu.vue +1 -1
  93. package/src/views/system/menu/menuInfo.vue +376 -373
  94. package/src/views/udev/dict/DictView.vue +106 -106
  95. package/src/views/udev/lov/lov-view.vue +91 -91
  96. package/types/global.d.ts +2 -1
  97. package/vite.config.ts +4 -1
  98. package/dist/InvOrganization-q4T3y8dQ.js +0 -260
@@ -2,7 +2,7 @@ import { defineComponent as M, watch as Y, ref as w, resolveComponent as u, crea
2
2
  import { useI18n as X } from "vue-i18n";
3
3
  import { t as q } from "./await-to-js.es5-BtRbN2QH.js";
4
4
  import { templateRef as Z } from "@vueuse/core";
5
- import { e as x, q as ee } from "./index-DZc3qRTx.js";
5
+ import { e as x, q as ee } from "./index-CLliRySq.js";
6
6
  const te = { class: "ut-menu-wrapper" }, N = "/uums/menu", se = /* @__PURE__ */ M({
7
7
  __name: "menuInfo",
8
8
  props: {
@@ -63,34 +63,34 @@ const te = { class: "ut-menu-wrapper" }, N = "/uums/menu", se = /* @__PURE__ */
63
63
  message: `${t("message.required")}${t("message.menuType")}`
64
64
  }
65
65
  ]
66
- }, T = Z("xForm", null), y = w(!1), h = w(""), $ = w(["fetch"]), B = E, L = () => {
67
- const { record: e, dataStatus: o } = g, { id: l, parentId: f, hasChildren: a } = e;
68
- if (o !== "update")
69
- return !l && !f ? "su" : ((a || o === "add") && (e.dispalyCode = ""), e.permissionCode);
66
+ }, T = Z("xForm", null), y = w(!1), h = w(""), C = w(["fetch"]), B = E, L = () => {
67
+ const { record: e, dataStatus: l } = g, { id: o, parentId: f, hasChildren: a } = e;
68
+ if (l !== "update")
69
+ return !o && !f ? "su" : ((a || l === "add") && (e.dispalyCode = ""), e.permissionCode);
70
70
  }, A = () => {
71
71
  T.value.validate(async (e) => {
72
72
  if (!e) {
73
73
  y.value = !0;
74
- let o;
75
- const { record: l, dataStatus: f } = g;
74
+ let l;
75
+ const { record: o, dataStatus: f } = g;
76
76
  if (f === "add") {
77
- l.permissionCode = `${h.value}.${l.dispalyCode}`;
78
- const [a, C] = await q(v.post(N, [l]));
79
- if (!a && !["0", "5"].includes(l.menuCategory) && $.value.length) {
80
- const c = $.value.map((b, S) => ({
81
- permissionCode: l.permissionCode + "." + b,
82
- parentId: C[0].id,
77
+ o.permissionCode = `${h.value}.${o.dispalyCode}`;
78
+ const [a, $] = await q(v.post(N, [o]));
79
+ if (!a && !["0", "5"].includes(o.menuCategory) && C.value.length) {
80
+ const c = C.value.map((b, S) => ({
81
+ permissionCode: o.permissionCode + "." + b,
82
+ parentId: $[0].id,
83
83
  menuName: R(b),
84
84
  menuType: 1,
85
85
  enabled: "1",
86
86
  sort: (S + 1) * 10
87
87
  })), [V, _] = await q(v.post(N, c));
88
- V || (o = _[0]);
88
+ V || (l = _[0]);
89
89
  }
90
90
  y.value = !1;
91
91
  } else
92
- await q(v.put(N, [l])), y.value = !1;
93
- k("submit", o);
92
+ o.permissionCode = o.dispalyCode, await q(v.put(N, [o])), y.value = !1;
93
+ k("submit", l);
94
94
  }
95
95
  });
96
96
  }, R = (e) => ({
@@ -100,14 +100,14 @@ const te = { class: "ut-menu-wrapper" }, N = "/uums/menu", se = /* @__PURE__ */
100
100
  del: t("message.btn.delete"),
101
101
  export: t("message.btn.export")
102
102
  })[e], z = (e) => {
103
- var o;
104
- return (o = P[e]) == null ? void 0 : o.children.map((l) => (l.enabled = l.dictCode === "0" && g.record.menuCategory !== "0", l));
103
+ var l;
104
+ return (l = P[e]) == null ? void 0 : l.children.map((o) => (o.enabled = o.dictCode === "0" && g.record.menuCategory !== "0", o));
105
105
  };
106
- function k(e, o) {
107
- B("close", e, o);
106
+ function k(e, l) {
107
+ B("close", e, l);
108
108
  }
109
- return (e, o) => {
110
- const l = u("vxe-option"), f = u("vxe-select"), a = u("vxe-form-item"), C = u("vxe-input"), c = u("vxe-checkbox"), V = u("vxe-checkbox-group"), _ = u("ut-icon-select"), b = u("vxe-form"), S = u("el-divider"), U = u("ut-button"), j = u("el-row"), H = u("el-drawer");
109
+ return (e, l) => {
110
+ const o = u("vxe-option"), f = u("vxe-select"), a = u("vxe-form-item"), $ = u("vxe-input"), c = u("vxe-checkbox"), V = u("vxe-checkbox-group"), _ = u("ut-icon-select"), b = u("vxe-form"), S = u("el-divider"), U = u("ut-button"), j = u("el-row"), H = u("el-drawer");
111
111
  return s(), I("div", te, [
112
112
  n(H, {
113
113
  "model-value": e.show,
@@ -126,7 +126,8 @@ const te = { class: "ut-menu-wrapper" }, N = "/uums/menu", se = /* @__PURE__ */
126
126
  loading: y.value,
127
127
  "title-colon": "",
128
128
  "title-align": "right",
129
- "title-width": "110"
129
+ "title-width": "110",
130
+ transfer: ""
130
131
  }, {
131
132
  default: m(() => [
132
133
  e.record.menuType === "0" ? (s(), i(a, {
@@ -139,10 +140,11 @@ const te = { class: "ut-menu-wrapper" }, N = "/uums/menu", se = /* @__PURE__ */
139
140
  n(f, {
140
141
  modelValue: r.menuCategory,
141
142
  "onUpdate:modelValue": (d) => r.menuCategory = d,
142
- disabled: r.menuCategory === "0"
143
+ disabled: r.menuCategory === "0",
144
+ transfer: !1
143
145
  }, {
144
146
  default: m(() => [
145
- (s(!0), I(G, null, J(z("SU.MENU.TYPE"), (d) => (s(), i(l, {
147
+ (s(!0), I(G, null, J(z("SU.MENU.TYPE"), (d) => (s(), i(o, {
146
148
  key: d.dictCode,
147
149
  value: d.dictCode,
148
150
  label: d.dictName,
@@ -160,7 +162,7 @@ const te = { class: "ut-menu-wrapper" }, N = "/uums/menu", se = /* @__PURE__ */
160
162
  span: "24"
161
163
  }, {
162
164
  default: m(({ data: r }) => [
163
- n(C, {
165
+ n($, {
164
166
  modelValue: r.dispalyCode,
165
167
  "onUpdate:modelValue": (d) => r.dispalyCode = d,
166
168
  clearable: "",
@@ -245,7 +247,7 @@ const te = { class: "ut-menu-wrapper" }, N = "/uums/menu", se = /* @__PURE__ */
245
247
  span: "24"
246
248
  }, {
247
249
  default: m(({ data: r }) => [
248
- n(C, {
250
+ n($, {
249
251
  modelValue: r.sort,
250
252
  "onUpdate:modelValue": (d) => r.sort = d,
251
253
  type: "number",
@@ -261,8 +263,8 @@ const te = { class: "ut-menu-wrapper" }, N = "/uums/menu", se = /* @__PURE__ */
261
263
  }, {
262
264
  default: m(() => [
263
265
  n(V, {
264
- modelValue: $.value,
265
- "onUpdate:modelValue": o[0] || (o[0] = (r) => $.value = r)
266
+ modelValue: C.value,
267
+ "onUpdate:modelValue": l[0] || (l[0] = (r) => C.value = r)
266
268
  }, {
267
269
  default: m(() => [
268
270
  n(c, {
@@ -1,7 +1,7 @@
1
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";
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-DZc3qRTx.js";
4
+ import { I as Se, x as xe, q as $e } from "./index-CLliRySq.js";
5
5
  import { withInstall as Pe, useRender as Ae } from "@utogether/utils";
6
6
  import { clone as oe, isString as Z } from "xe-utils";
7
7
  import ke from "qrcode";
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as w, ref as o, resolveComponent as l, createElementBlock as k, openBlock as u, createVNode as r, createBlock as x, createCommentVNode as b, Fragment as U } from "vue";
2
2
  import { successMessage as B } from "@utogether/utils";
3
3
  import { useClipboard as N } from "@vueuse/core";
4
- import { x as y } from "./index-DZc3qRTx.js";
4
+ import { x as y } from "./index-CLliRySq.js";
5
5
  const q = {
6
6
  name: "StaticResource"
7
7
  }, V = /* @__PURE__ */ w({
@@ -2,7 +2,7 @@ import { defineComponent as J, ref as y, onMounted as K, resolveComponent as _,
2
2
  import { useRouter as oe } from "vue-router";
3
3
  import ne from "dayjs";
4
4
  import { dbstorage as le, delay as ae, warnMessage as ce, successMessage as ie, lunarCalendar as re, cookies as ue } from "@utogether/utils";
5
- import { q as G, e as de, n as me, _ as fe } from "./index-DZc3qRTx.js";
5
+ import { q as G, e as de, n as me, _ as fe } from "./index-CLliRySq.js";
6
6
  import { clone as _e, max as ve } from "xe-utils";
7
7
  import pe from "vuedraggable";
8
8
  const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye = { class: "h-24 w-24 flex justify-center items-center flex-col relative drag-item ut-menu-top-item" }, be = { class: "w-[90%] text-xs mt-2 text-ellipsis overflow-hidden whitespace-nowrap text-center" }, we = ["onClick"], ke = { class: "p-3" }, Ce = { class: "flex items-center" }, Ne = { class: "ml-1 font-bold text-base" }, $e = { class: "pl-3 py-2" }, Ie = { class: "flex items-center" }, Ve = { class: "ml-1 font-bold text-sm" }, Me = { class: "pl-3 py-2" }, Se = { class: "flex items-center" }, Ue = { class: "ml-1 font-bold text-sm" }, je = { class: "py-2" }, qe = { class: "flex justify-end" }, De = "/upfm/v1/menuFavority", Ee = /* @__PURE__ */ J({
@@ -3,7 +3,7 @@ import { useI18n as B } from "vue-i18n";
3
3
  import { t as N } from "./await-to-js.es5-BtRbN2QH.js";
4
4
  import { cookies as F, successMessage as J, warnMessage as Y } from "@utogether/utils";
5
5
  import { isArray as K } from "xe-utils";
6
- import { x as R, m as H, q as Q } from "./index-DZc3qRTx.js";
6
+ import { x as R, m as H, q as Q } from "./index-CLliRySq.js";
7
7
  const W = { class: "flex flex-col items-center bg-white u-system-config" }, X = { class: "flex justify-end w-1/2 p-2" }, Z = { class: "flex w-1/2 p-2 overflow-y-auto border border-gray-300 rounded-md" }, ee = { class: "flex items-center" }, te = { class: "pl-2 text-xs" }, se = { class: "pl-2" }, ae = { class: "pl-2" }, le = { class: "flex items-center" }, oe = { class: "pl-2 text-xs" }, ne = { class: "pl-2" }, ie = { class: "flex items-center" }, ue = { class: "pl-2 text-xs" }, k = "/upfm/v1/sysConfig", be = /* @__PURE__ */ M({
8
8
  __name: "sys-config",
9
9
  setup(de) {