@utogether/udp-core 1.0.3 → 1.0.4-beta.1

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 (78) hide show
  1. package/dist/{403-D6H3sArg.js → 403-CH-5FVhN.js} +1 -1
  2. package/dist/{404-DTyfysQ2.js → 404-CFk6Ivq-.js} +1 -1
  3. package/dist/{500-DKaVDaBm.js → 500-DRjSNKN3.js} +1 -1
  4. package/dist/{AuthorityInfo-DQULR69Y.js → AuthorityInfo-DxNFwxdz.js} +1 -1
  5. package/dist/{AuthorityInfo.vue_vue_type_style_index_0_lang-CzAnoTnO.js → AuthorityInfo.vue_vue_type_style_index_0_lang-BI2PKcqq.js} +1 -1
  6. package/dist/{AuthorityPanel-BeBNiwqc.js → AuthorityPanel-BzIh29KB.js} +1 -1
  7. package/dist/{AuthorityPanel.vue_vue_type_style_index_0_lang-CIYmnP9-.js → AuthorityPanel.vue_vue_type_style_index_0_lang-D3GN0Ybz.js} +32 -24
  8. package/dist/{Company-BWFrR-Cq.js → Company-DGFD7_MF.js} +3 -3
  9. package/dist/{CompanyPanel-Dh814lsw.js → CompanyPanel-BHXndpIr.js} +1 -1
  10. package/dist/{Department-DagPxerl.js → Department-CFcjdf8m.js} +3 -3
  11. package/dist/{DepartmentPanel-BVy2YGED.js → DepartmentPanel-DrBtJClY.js} +1 -1
  12. package/dist/{DesignPanel-DKfjfj2S.js → DesignPanel-EAKuwOqp.js} +1 -1
  13. package/dist/{DesignPanel.vue_vue_type_style_index_0_lang-D-a8W08Y.js → DesignPanel.vue_vue_type_style_index_0_lang-BOP4Q41a.js} +2 -2
  14. package/dist/{DictView-CE5nEiKu.js → DictView-CpRvxDO0.js} +1 -1
  15. package/dist/{InvOrganization-CZk_EbFZ.js → InvOrganization-DZC9aKKv.js} +1 -1
  16. package/dist/{Org-BO8jfnqN.js → Org-D5heLogi.js} +1 -1
  17. package/dist/{Preview-DYJaP96f.js → Preview-DWuThn2_.js} +1 -1
  18. package/dist/{ReportDefine-DZXbs7iX.js → ReportDefine-FeHx3B-B.js} +1 -1
  19. package/dist/{ReportDesign-CSdqOQ1D.js → ReportDesign-Deo5AK76.js} +2 -2
  20. package/dist/{ReportQuery-_Vdt3CnA.js → ReportQuery-WK5BPREv.js} +1 -1
  21. package/dist/{ReportQueryFrom-BWKddh9p.js → ReportQueryFrom-BcbRvwcp.js} +1 -1
  22. package/dist/{ReportQueryFrom.vue_vue_type_style_index_0_lang-DbdGwioi.js → ReportQueryFrom.vue_vue_type_style_index_0_lang-DEXuBXHO.js} +1 -1
  23. package/dist/{ReportTemplate-DS-DGao8.js → ReportTemplate-DAk0qIJq.js} +1 -1
  24. package/dist/{Role-BM0kEu7y.js → Role-sSVr8txF.js} +3 -3
  25. package/dist/{RoleAssign-Cp05HUWn.js → RoleAssign-gg9O7P1_.js} +3 -3
  26. package/dist/{RolePanel-hXeshcCZ.js → RolePanel-D2M-Wc-X.js} +1 -1
  27. package/dist/{RolePanel-DeuHpCdK.js → RolePanel-DsyVPcoq.js} +1 -1
  28. package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-CNyWCIJm.js → RolePanel.vue_vue_type_script_setup_true_lang-C4fuYoIS.js} +1 -1
  29. package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-Bf0pSCTN.js → RolePanel.vue_vue_type_script_setup_true_lang-RR24avbF.js} +3 -3
  30. package/dist/{ScrollPanel.vue_vue_type_style_index_0_lang-BiKe39xG.js → ScrollPanel.vue_vue_type_style_index_0_lang-6v5vVx-e.js} +1 -1
  31. package/dist/{Staff-DLltLFMl.js → Staff-DTDrOuE0.js} +3 -3
  32. package/dist/{StaffInfo-pfELaI_i.js → StaffInfo-B2H_6lwQ.js} +1 -1
  33. package/dist/{StaffInfo.vue_vue_type_script_setup_true_lang-BKKdNggm.js → StaffInfo.vue_vue_type_script_setup_true_lang-BkDRBn9p.js} +1 -1
  34. package/dist/{StaffPanel-D3Pk28JN.js → StaffPanel-dpmnAD0A.js} +1 -1
  35. package/dist/{StaffPanel.vue_vue_type_script_setup_true_lang-D9HLeyKe.js → StaffPanel.vue_vue_type_script_setup_true_lang-dgV9B37R.js} +2 -2
  36. package/dist/{SysUser-BOh7ejz3.js → SysUser-BjpQdzSo.js} +2 -2
  37. package/dist/{SysUserPanel-RElVo0BV.js → SysUserPanel-C5IHO7JB.js} +1 -1
  38. package/dist/{SysUserPanel.vue_vue_type_script_setup_true_lang-DoW0v5y9.js → SysUserPanel.vue_vue_type_script_setup_true_lang-HvJ4Hrps.js} +1 -1
  39. package/dist/{SystemMenu-DZneBqKO.js → SystemMenu-D7W9E8SF.js} +52 -49
  40. package/dist/{UserInfo-D9qo_f_9.js → UserInfo-D_lbSbUh.js} +1 -1
  41. package/dist/{UserInfo.vue_vue_type_style_index_0_lang-CY4dtMnZ.js → UserInfo.vue_vue_type_style_index_0_lang-NLl8VJ5I.js} +1 -1
  42. package/dist/{childView-CmlGxD9G.js → childView-B1XV2jZ7.js} +1 -1
  43. package/dist/{childView-DStrPumM.js → childView-LQllG9vw.js} +1 -1
  44. package/dist/{childView.vue_vue_type_style_index_0_lang-Dtv1rrdP.js → childView.vue_vue_type_style_index_0_lang-DN19uWOO.js} +1 -1
  45. package/dist/{childView.vue_vue_type_style_index_0_lang-B9k694be.js → childView.vue_vue_type_style_index_0_lang-Dpo_nfX9.js} +1 -1
  46. package/dist/{code-rule-CxzgQDH_.js → code-rule-DkKKcosO.js} +1 -1
  47. package/dist/core.es.js +1 -1
  48. package/dist/{cron-task-kbyRTz97.js → cron-task-bGVrr2Jg.js} +1 -1
  49. package/dist/{frameView-BawZlIge.js → frameView-B3n2JXTj.js} +1 -1
  50. package/dist/{index-nkstuOxE.js → index-DYT0k5Sg.js} +3562 -961
  51. package/dist/{layoutView-DVGqPJmA.js → layoutView-bh22tftc.js} +144 -145
  52. package/dist/{log-in-j2PZGLQH.js → log-in-Dk_xyZ_l.js} +1 -1
  53. package/dist/{log-out-DIJU-Vpf.js → log-out-CERhlqtr.js} +1 -1
  54. package/dist/{login-DvmHMcgD.js → login-C5EJWWLi.js} +124 -134
  55. package/dist/{lov-view-C-dIDLh8.js → lov-view-BNGHpq-d.js} +2 -2
  56. package/dist/{menuInfo-D0mcKmrT.js → menuInfo-2DBTH6Vf.js} +1 -1
  57. package/dist/{menuInfo.vue_vue_type_style_index_0_lang-CbwS7aGl.js → menuInfo.vue_vue_type_style_index_0_lang-KtLS__XM.js} +37 -35
  58. package/dist/{pda-app-BjvyTDkw.js → pda-app-BzmHIT9A.js} +1 -1
  59. package/dist/{resource-BknIxaTQ.js → resource-D6UY8vN8.js} +1 -1
  60. package/dist/{su-welcome-CwtvamZC.js → su-welcome-okexK2W2.js} +1 -1
  61. package/dist/{sys-config-CCKhGcCL.js → sys-config-9F_C1LzR.js} +1 -1
  62. package/dist/udp-core.css +1 -1
  63. package/package.json +1 -1
  64. package/src/App.vue +73 -65
  65. package/src/components/udp/form-upload/form-upload.vue +492 -0
  66. package/src/components/udp/index.ts +2 -1
  67. package/src/layout/components/lay-content/index.vue +136 -143
  68. package/src/layout/components/lay-sidebar/sidebar-logo.vue +1 -1
  69. package/src/layout/layoutView.vue +7 -6
  70. package/src/main.ts +2 -2
  71. package/src/plugins/i18n/zh.ts +1 -0
  72. package/src/plugins/vxe-table/index.ts +1 -1
  73. package/src/plugins/vxe-table/render.tsx +19 -1
  74. package/src/style/vxetable.scss +356 -348
  75. package/src/views/system/menu/AuthorityPanel.vue +142 -140
  76. package/src/views/system/menu/SystemMenu.vue +10 -1
  77. package/src/views/system/menu/menuInfo.vue +384 -384
  78. package/src/views/ulogin/login.vue +34 -23
@@ -1,19 +1,19 @@
1
- import { defineComponent as k, reactive as S, ref as v, createVNode as o, resolveComponent as s, Fragment as m, createElementBlock as A, openBlock as D } from "vue";
2
- import { useI18n as E } from "vue-i18n";
3
- import { _ as N } from "./menuInfo.vue_vue_type_style_index_0_lang-CbwS7aGl.js";
4
- import { _ as I } from "./AuthorityPanel.vue_vue_type_style_index_0_lang-CIYmnP9-.js";
5
- import { clone as p } from "xe-utils";
6
- import { t as M } from "./await-to-js.es5-BtRbN2QH.js";
7
- import { VxeUI as P } from "vxe-pc-ui";
8
- import { useRender as R } from "@utogether/utils";
9
- import { y as U } from "./index-nkstuOxE.js";
10
- const W = {
1
+ import { defineComponent as k, reactive as S, ref as D, createVNode as o, resolveComponent as i, Fragment as h, createElementBlock as A, openBlock as E } from "vue";
2
+ import { useI18n as I } from "vue-i18n";
3
+ import { _ as N } from "./menuInfo.vue_vue_type_style_index_0_lang-KtLS__XM.js";
4
+ import { _ as P } from "./AuthorityPanel.vue_vue_type_style_index_0_lang-D3GN0Ybz.js";
5
+ import { clone as f } from "xe-utils";
6
+ import { t as R } from "./await-to-js.es5-BtRbN2QH.js";
7
+ import { VxeUI as M } from "vxe-pc-ui";
8
+ import { useRender as U } from "@utogether/utils";
9
+ import { y as W } from "./index-DYT0k5Sg.js";
10
+ const B = {
11
11
  class: "page-content"
12
- }, B = {
12
+ }, L = {
13
13
  name: "SystemMenu"
14
- }, q = /* @__PURE__ */ k({
15
- ...B,
16
- setup(L) {
14
+ }, G = /* @__PURE__ */ k({
15
+ ...L,
16
+ setup(z) {
17
17
  const t = S({
18
18
  record: {},
19
19
  dataList: [],
@@ -26,10 +26,10 @@ const W = {
26
26
  pageNum: 1
27
27
  }
28
28
  }), {
29
- t: h
30
- } = E(), f = R(), d = U(), i = v(null), r = "/uums/menu";
29
+ t: g
30
+ } = I(), y = U(), d = W(), a = D(null), s = "/uums/menu";
31
31
  let l;
32
- const y = [{
32
+ const C = [{
33
33
  type: "checkbox",
34
34
  width: 50,
35
35
  align: "center"
@@ -57,7 +57,7 @@ const W = {
57
57
  }, {
58
58
  field: "enabled",
59
59
  width: 80,
60
- cellRender: f.renderEnabled(_)
60
+ cellRender: y.renderEnabled(b)
61
61
  }, {
62
62
  field: "operate",
63
63
  width: 140,
@@ -66,81 +66,84 @@ const W = {
66
66
  default: ({
67
67
  row: e
68
68
  }) => {
69
- const n = e.menuType, a = o(s("ut-button"), {
69
+ const n = e.menuType, r = o(i("ut-button"), {
70
70
  status: "u-cyan",
71
71
  icon: "ri-add-fill",
72
72
  content: "add",
73
73
  onTap: () => u(e)
74
- }, null), x = o(s("ut-button"), {
74
+ }, null), m = o(i("ut-button"), {
75
75
  icon: "ri-lock-fill",
76
76
  content: "auth",
77
- onTap: () => b(e)
77
+ onTap: () => v(e)
78
78
  }, null);
79
- return [o(m, null, [n ? null : o(m, null, [o(s("ut-button"), {
79
+ return [o(h, null, [n ? null : o(h, null, [o(i("ut-button"), {
80
80
  status: "success",
81
81
  icon: "ri-edit-box-line",
82
82
  content: "edit",
83
- onTap: () => w(e)
84
- }, null), ["0", "5"].includes(e.menuCategory) ? a : x])])];
83
+ onTap: () => T(e)
84
+ }, null), ["0", "5"].includes(e.menuCategory) ? r : m])])];
85
85
  }
86
86
  }
87
- }], C = ({
87
+ }], w = ({
88
88
  code: e
89
89
  }) => {
90
- e === "add" && u(), e === "del" && T();
91
- }, g = async ({
90
+ e === "add" && u(), e === "del" && x();
91
+ }, _ = async ({
92
92
  row: e
93
93
  }) => {
94
- const n = await d.get(r, {
94
+ const n = await d.get(s, {
95
95
  parentId: e.id
96
96
  });
97
- return new Promise((a) => {
98
- a(n.list);
97
+ return new Promise((r) => {
98
+ r(n.list);
99
99
  });
100
100
  }, u = (e) => {
101
101
  t.showDrawer = !0, t.dataStatus = "add", t.record.dispalyCode = e == null ? void 0 : e.permissionCode, t.record.permissionCode = e == null ? void 0 : e.permissionCode, t.record.menuType = "0", t.record.showLink = "Y", t.record.isApprovalPage = "N", t.record.menuCategory = e ? "" : "0", t.record.parentId = e == null ? void 0 : e.id, t.record.hasChildren = e == null ? void 0 : e.hasChildren, t.record.children = t.record.children || [], l = e;
102
- }, w = (e) => {
103
- t.showDrawer = !0, t.dataStatus = "update", t.record = p(e, !0), t.record.menuType = t.record.menuType.toString(), t.record.dispalyCode = e.permissionCode;
102
+ }, T = (e) => {
103
+ t.showDrawer = !0, t.dataStatus = "update", t.record = f(e, !0), t.record.menuType = t.record.menuType.toString(), t.record.dispalyCode = e.permissionCode;
104
104
  };
105
- async function _({
105
+ async function b({
106
106
  row: e
107
107
  }) {
108
- await d.put(r, [e]), i.value.refreshData();
108
+ await d.put(s, [e]), a.value.refreshData();
109
109
  }
110
- const T = async () => {
111
- const e = await P.modal.confirm(h("message.delRecord")), n = i.value.getInstance().getCheckboxRecords();
110
+ const x = async () => {
111
+ const e = await M.modal.confirm(g("message.delRecord")), n = a.value.getInstance().getCheckboxRecords();
112
112
  if (e === "confirm") {
113
- const [a] = await M(d.delete(r, n));
113
+ const [r, m] = await R(d.delete(s, n));
114
+ if (r) return;
115
+ const p = a.value.getInstance().getTreeParentRow(n[0]);
116
+ p ? a.value.getInstance().reloadTreeExpand(p) : a.value.refreshData();
114
117
  }
115
- }, b = (e) => {
116
- t.showAuthority = !0, t.dataStatus = "update", t.record = p(e, !0), t.record.menuType = t.record.menuType.toString(), t.record.dispalyCode = e.permissionCode;
118
+ }, v = (e) => {
119
+ t.showAuthority = !0, t.dataStatus = "update", t.record = f(e, !0), t.record.menuType = t.record.menuType.toString(), t.record.dispalyCode = e.permissionCode;
117
120
  }, c = (e, n) => {
118
- e === "submit" && (l || n) && i.value.getInstance().reloadTreeExpand(l || n), t.record = {}, t.showDrawer = !1, t.showAuthority = !1;
121
+ e === "submit" && (l || n) && a.value.getInstance().reloadTreeExpand(l || n), t.record = {}, t.showDrawer = !1, t.showAuthority = !1;
119
122
  };
120
123
  return (e, n) => {
121
- const a = s("ut-grid");
122
- return D(), A("div", W, [o(a, {
124
+ const r = i("ut-grid");
125
+ return E(), A("div", B, [o(r, {
123
126
  ref_key: "xgrid",
124
- ref: i,
127
+ ref: a,
125
128
  "tree-config": {
126
129
  childrenField: "children",
127
130
  lazy: !0,
128
131
  hasChild: "hasChildren",
129
- loadMethod: g,
132
+ loadMethod: _,
130
133
  iconOpen: "ri-checkbox-indeterminate-line ri-lg",
131
134
  iconClose: "ri-add-box-line ri-lg"
132
135
  },
133
- columns: y,
134
- url: r,
136
+ columns: C,
137
+ url: s,
135
138
  stripe: !1,
136
139
  mode: "form",
137
- onToolbarButtonClick: C
140
+ onToolbarButtonClick: w
138
141
  }, null, 8, ["tree-config"]), o(N, {
139
142
  show: t.showDrawer,
140
143
  record: t.record,
141
144
  "data-status": t.dataStatus,
142
145
  onClose: c
143
- }, null, 8, ["show", "record", "data-status"]), o(I, {
146
+ }, null, 8, ["show", "record", "data-status"]), o(P, {
144
147
  show: t.showAuthority,
145
148
  record: t.record,
146
149
  onClose: c
@@ -149,5 +152,5 @@ const W = {
149
152
  }
150
153
  });
151
154
  export {
152
- q as default
155
+ G as default
153
156
  };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./UserInfo.vue_vue_type_style_index_0_lang-CY4dtMnZ.js";
1
+ import { _ as f } from "./UserInfo.vue_vue_type_style_index_0_lang-NLl8VJ5I.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as R, ref as i, reactive as x, onBeforeMount as B, resolveComponent as d, createElementBlock as U, openBlock as m, createVNode as c, withCtx as $, createBlock as j, createCommentVNode as A, mergeProps as E, toHandlers as P } from "vue";
2
2
  import { t as S } from "./await-to-js.es5-BtRbN2QH.js";
3
- import { y as V } from "./index-nkstuOxE.js";
3
+ import { y as V } from "./index-DYT0k5Sg.js";
4
4
  const q = { class: "u-dict-config_wrapper" }, D = /* @__PURE__ */ R({
5
5
  __name: "UserInfo",
6
6
  props: {
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./childView.vue_vue_type_style_index_0_lang-Dtv1rrdP.js";
1
+ import { _ as f } from "./childView.vue_vue_type_style_index_0_lang-Dpo_nfX9.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./childView.vue_vue_type_style_index_0_lang-B9k694be.js";
1
+ import { _ as f } from "./childView.vue_vue_type_style_index_0_lang-DN19uWOO.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -3,7 +3,7 @@ import { useI18n as z } from "vue-i18n";
3
3
  import { t as F } from "./await-to-js.es5-BtRbN2QH.js";
4
4
  import { VxeUI as M } from "vxe-pc-ui";
5
5
  import { useRender as O, successMessage as f } from "@utogether/utils";
6
- import { y as p, i as h } from "./index-nkstuOxE.js";
6
+ import { y as p, i as h } from "./index-DYT0k5Sg.js";
7
7
  import { clone as j } from "xe-utils";
8
8
  const G = {
9
9
  class: "u-dict-config_wrapper"
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as V, ref as a, resolveComponent as o, resolveDirective as F, createElementBlock as w, openBlock as _, createVNode as d, withCtx as c, withDirectives as W } from "vue";
2
2
  import { t as u } from "./await-to-js.es5-BtRbN2QH.js";
3
3
  import { useRender as P } from "@utogether/utils";
4
- import { i as $, y as f } from "./index-nkstuOxE.js";
4
+ import { i as $, y as f } from "./index-DYT0k5Sg.js";
5
5
  const x = { class: "ut-loview-wrapper" }, B = "/upfm/v1/lovViewHeader", p = "/upfm/v1/lovViewLine", G = /* @__PURE__ */ V({
6
6
  __name: "childView",
7
7
  props: {
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as U, ref as d, createVNode as f, resolveComponent as i, nextTick as C, createElementBlock as y, openBlock as p, createBlock as b, createCommentVNode as q } from "vue";
2
2
  import { t as x } from "./await-to-js.es5-BtRbN2QH.js";
3
3
  import { useRender as B } from "@utogether/utils";
4
- import { y as D } from "./index-nkstuOxE.js";
4
+ import { y as D } from "./index-DYT0k5Sg.js";
5
5
  const I = {
6
6
  name: "CodeRule"
7
7
  }, M = /* @__PURE__ */ U({
package/dist/core.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { R as a, O as t, H as r, K as o, L as u, T as i, y as n, B as l, E as g, J as c, P as h, S as m, Q as S, s as f, C as y, D as R, c as C, h as P, i as d } from "./index-nkstuOxE.js";
1
+ import { R as a, O as t, H as r, K as o, L as u, T as i, y as n, B as l, E as g, J as c, P as h, S as m, Q as S, s as f, C as y, D as R, c as C, h as P, i as d } from "./index-DYT0k5Sg.js";
2
2
  export {
3
3
  a as constantRoutes,
4
4
  t as default,
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as k, ref as d, createVNode as n, resolveComponent as o, Fragment as v, createElementBlock as T, openBlock as f, createBlock as I, createCommentVNode as R } from "vue";
2
2
  import { VXETable as C } from "vxe-table";
3
3
  import { t as x } from "./await-to-js.es5-BtRbN2QH.js";
4
- import { y } from "./index-nkstuOxE.js";
4
+ import { y } from "./index-DYT0k5Sg.js";
5
5
  import { useRender as S, successMessage as D } from "@utogether/utils";
6
6
  const E = {
7
7
  name: "CronTask"
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as _, ref as r, unref as a, onMounted as d, resolveDirective as p, withDirectives as v, createElementBlock as h, openBlock as g, createElementVNode as k, nextTick as x } from "vue";
2
2
  import { useRoute as E } from "vue-router";
3
- import { _ as R } from "./index-nkstuOxE.js";
3
+ import { _ as R } from "./index-DYT0k5Sg.js";
4
4
  const w = { class: "frame" }, S = ["src"], V = /* @__PURE__ */ _({
5
5
  __name: "frameView",
6
6
  setup(B) {