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

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 (94) hide show
  1. package/build/plugins.ts +39 -37
  2. package/dist/{403-BuP9jvH9.js → 403-CP2RkkAy.js} +10 -10
  3. package/dist/{404-DfQk8kKl.js → 404-DwK-0wNQ.js} +4 -4
  4. package/dist/{500-OgROWdiZ.js → 500-CLbJDqnd.js} +1 -1
  5. package/dist/{AuthorityInfo-q2ksfkWH.js → AuthorityInfo-Bi1_uhMu.js} +1 -1
  6. package/dist/{AuthorityInfo.vue_vue_type_style_index_0_lang-Bwsf6lMH.js → AuthorityInfo.vue_vue_type_style_index_0_lang-RUhvzu76.js} +8 -9
  7. package/dist/{Company-DgqowAxc.js → Company-B--cokc6.js} +3 -3
  8. package/dist/{CompanyPanel-BNb1rUhD.js → CompanyPanel-B_gmcZ9L.js} +6 -6
  9. package/dist/{Department-Cl8CROSU.js → Department-DbKdyNzK.js} +3 -3
  10. package/dist/{DepartmentPanel-D5VkqKeP.js → DepartmentPanel-BmEttboJ.js} +23 -24
  11. package/dist/{DesignPanel-BGvEusHC.js → DesignPanel-LL68_36s.js} +1 -1
  12. package/dist/{DesignPanel.vue_vue_type_style_index_0_lang-BQF1uQ7w.js → DesignPanel.vue_vue_type_style_index_0_lang-DWPmFegv.js} +8 -9
  13. package/dist/{DictView-BnxfaOBv.js → DictView-B8j-EWx5.js} +1 -1
  14. package/dist/{InvOrganization-5y79ZLdY.js → InvOrganization-DnGQlESM.js} +7 -8
  15. package/dist/Org-Dg9Xkd34.js +34 -0
  16. package/dist/{Preview-BaGmXH7r.js → Preview-yot4NBW5.js} +1 -1
  17. package/dist/{ReportDefine-DkQdBErt.js → ReportDefine-DHadqNYy.js} +1 -1
  18. package/dist/{ReportDesign-DzB_A_G6.js → ReportDesign-CBihGRth.js} +23 -24
  19. package/dist/{ReportQuery-DRcMb6ya.js → ReportQuery-CwHQ6LUU.js} +1 -1
  20. package/dist/{ReportQueryFrom-CeA9xhR4.js → ReportQueryFrom-ie6lQcGL.js} +1 -1
  21. package/dist/{ReportQueryFrom.vue_vue_type_style_index_0_lang-CgGtcs5V.js → ReportQueryFrom.vue_vue_type_style_index_0_lang-B8LJNK0m.js} +1 -1
  22. package/dist/{ReportTemplate-qaiTMQuT.js → ReportTemplate-B2Smwo-z.js} +18 -18
  23. package/dist/{Role-DsFulAjq.js → Role-Cf7DB7uS.js} +3 -3
  24. package/dist/{RoleAssign-DMRdocpa.js → RoleAssign-upUnqs_i.js} +3 -3
  25. package/dist/{RolePanel-wXVysDHM.js → RolePanel-BBGDGK8V.js} +1 -1
  26. package/dist/{RolePanel-B9POS_pg.js → RolePanel-EXL_FLvM.js} +1 -1
  27. package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-t6S_0zmJ.js → RolePanel.vue_vue_type_script_setup_true_lang-BwfL_JVZ.js} +8 -9
  28. package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-CleVvkcY.js → RolePanel.vue_vue_type_script_setup_true_lang-DF8qJKwW.js} +9 -9
  29. package/dist/{ScrollPanel.vue_vue_type_style_index_0_lang-DlXUs0j9.js → ScrollPanel.vue_vue_type_style_index_0_lang-DbBGg32H.js} +13 -13
  30. package/dist/{Staff-Cq4V7ruC.js → Staff-DYu5ZEyR.js} +3 -3
  31. package/dist/{StaffInfo-CJDKMbud.js → StaffInfo-CHvNGjtz.js} +1 -1
  32. package/dist/{StaffInfo.vue_vue_type_script_setup_true_lang-DQ4DL1KY.js → StaffInfo.vue_vue_type_script_setup_true_lang-XRJVEJ-s.js} +14 -14
  33. package/dist/{StaffPanel-CG-uggdr.js → StaffPanel-C-ygEY65.js} +1 -1
  34. package/dist/{StaffPanel.vue_vue_type_script_setup_true_lang-DAgN7zN2.js → StaffPanel.vue_vue_type_script_setup_true_lang-BvLrF4Yw.js} +6 -6
  35. package/dist/{SysUser-kwnzRNdD.js → SysUser-BHk_szpK.js} +2 -2
  36. package/dist/{SysUserPanel-DTlZf3vk.js → SysUserPanel-DFvzA5d-.js} +1 -1
  37. package/dist/{SysUserPanel.vue_vue_type_script_setup_true_lang-BW6PlGjM.js → SysUserPanel.vue_vue_type_script_setup_true_lang-B9zUXXwa.js} +24 -25
  38. package/dist/{SystemMenu-BVT0n-L2.js → SystemMenu-5TK9ZA11.js} +34 -35
  39. package/dist/{UserInfo-BbTQ9Zat.js → UserInfo-Bx3zQqHa.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-C2sqUQdg.js} +12 -13
  41. package/dist/{childView-BJbIhjmf.js → childView-BSUWnii7.js} +1 -1
  42. package/dist/{childView-DCsGFrG-.js → childView-CFC3gA_U.js} +1 -1
  43. package/dist/{childView.vue_vue_type_style_index_0_lang-CDtsalCm.js → childView.vue_vue_type_style_index_0_lang-EcT-Dux7.js} +48 -49
  44. package/dist/{childView.vue_vue_type_style_index_0_lang-BCDxpVoD.js → childView.vue_vue_type_style_index_0_lang-WQVLSJR8.js} +9 -10
  45. package/dist/{code-rule-DePU6cdp.js → code-rule-DybjhotB.js} +6 -8
  46. package/dist/core.es.js +14 -11
  47. package/dist/{cron-task-DUM1SIGL.js → cron-task-DGdknqaF.js} +7 -8
  48. package/dist/{frameView-CEUTDtSm.js → frameView-BOOZRv1S.js} +1 -1
  49. package/dist/index-BDE4-ZvN.js +5091 -0
  50. package/dist/{layoutView-PCjwVwkX.js → layoutView-BWeDLY9C.js} +11 -12
  51. package/dist/{login-B1CjWVKu.js → login-BcuCHhGE.js} +21 -21
  52. package/dist/{login-log-CvVnyGi3.js → login-log-kqKzKTto.js} +1 -1
  53. package/dist/{lov-view-D8wwkxFJ.js → lov-view-DDgzqYSW.js} +8 -9
  54. package/dist/{menuInfo-B5JKVwrB.js → menuInfo-B3MOxomU.js} +1 -1
  55. package/dist/{menuInfo.vue_vue_type_style_index_0_lang-CcM9WX4n.js → menuInfo.vue_vue_type_style_index_0_lang-BXMrNMUs.js} +19 -18
  56. package/dist/{pda-app-DIa1p1Ww.js → pda-app-Dy9WMHEG.js} +19 -20
  57. package/dist/{resource-CCQ7Dd-5.js → resource-BoCP7-dM.js} +8 -8
  58. package/dist/{su-welcome-CLp9YaJa.js → su-welcome-DXpI1MHr.js} +97 -98
  59. package/dist/{sys-config-BBmf_SqF.js → sys-config-BiUWzxGU.js} +19 -20
  60. package/dist/udp-core.css +2 -2
  61. package/dist/{utogether-Bkptx2lB.js → utogether-DXDcsKt7.js} +1 -1
  62. package/index.ts +40 -36
  63. package/package.json +1 -1
  64. package/src/App.vue +1 -1
  65. package/src/api/index.ts +1 -1
  66. package/src/components/udp/count-down.vue +536 -0
  67. package/src/components/udp/form.vue +107 -0
  68. package/src/components/udp/grid.vue +6 -1
  69. package/src/components/udp/index.ts +4 -1
  70. package/src/components/udp/modal-form.vue +9 -0
  71. package/src/components/udp/upload.vue +425 -0
  72. package/src/components/udp/utils.ts +72 -3
  73. package/src/directives/permission/index.ts +1 -1
  74. package/src/layout/components/lay-panel/index.vue +3 -3
  75. package/src/main.ts +111 -110
  76. package/src/plugins/vxe-table/index.ts +3 -3
  77. package/src/router/index.ts +187 -183
  78. package/src/router/modules/remaining.ts +58 -83
  79. package/src/style/vxetable.scss +30 -1
  80. package/src/utils/authority/index.ts +1 -1
  81. package/src/utils/{http → udp/http}/index.ts +8 -24
  82. package/src/utils/{http → udp/http}/types.d.ts +8 -5
  83. package/src/views/login/login-view.vue +1 -1
  84. package/src/views/system/menu/menuInfo.vue +7 -3
  85. package/src/views/system/sys/sys-config.vue +1 -1
  86. package/src/views/udev/dict/childView.vue +6 -1
  87. package/src/views/uhome/su-welcome.vue +1 -1
  88. package/src/views/ulogin/login.vue +3 -2
  89. package/src/views/upms/user/login-log.vue +1 -1
  90. package/src/views/urpt/design/ReportDesign.vue +3 -3
  91. package/types/global.d.ts +2 -1
  92. package/dist/Org-2oBAXN2r.js +0 -35
  93. package/dist/await-to-js.es5-BtRbN2QH.js +0 -10
  94. package/dist/index-ZdgOD7cF.js +0 -3399
@@ -1,16 +1,15 @@
1
- import { defineComponent as P, ref as s, createVNode as r, Fragment as A, resolveComponent as l, nextTick as I, createElementBlock as b, openBlock as d, withDirectives as x, createBlock as p, createCommentVNode as c, vShow as E } from "vue";
1
+ import { defineComponent as A, ref as s, createVNode as r, Fragment as I, resolveComponent as l, nextTick as b, createElementBlock as x, openBlock as d, withDirectives as w, createBlock as p, createCommentVNode as c, vShow as E } from "vue";
2
2
  import { useRender as S, successMessage as $ } from "@utogether/utils";
3
- import { useClipboard as M } from "@vueuse/core";
4
- import { t as V } from "./await-to-js.es5-BtRbN2QH.js";
5
- import { _ as B } from "./DesignPanel.vue_vue_type_style_index_0_lang-BQF1uQ7w.js";
6
- import { q as U } from "./index-ZdgOD7cF.js";
7
- const f = "/urpt/v1/printTemplate", K = /* @__PURE__ */ P({
3
+ import { useClipboard as V } from "@vueuse/core";
4
+ import { q as B, v as M } from "./index-BDE4-ZvN.js";
5
+ import { _ as U } from "./DesignPanel.vue_vue_type_style_index_0_lang-DWPmFegv.js";
6
+ const f = "/urpt/v1/printTemplate", z = /* @__PURE__ */ A({
8
7
  name: "ReportDesign",
9
8
  __name: "ReportDesign",
10
9
  setup(F) {
11
- const o = s(null), a = s(!1), i = s(!1), n = S(), t = s({}), {
10
+ const a = s(null), o = s(!1), i = s(!1), n = S(), t = s({}), {
12
11
  copy: v
13
- } = M(), g = U(), h = [{
12
+ } = V(), g = M(), h = [{
14
13
  field: "templateCode",
15
14
  title: "message.file.templateCode"
16
15
  }, {
@@ -61,7 +60,7 @@ const f = "/urpt/v1/printTemplate", K = /* @__PURE__ */ P({
61
60
  slots: {
62
61
  default: ({
63
62
  row: e
64
- }) => e.id ? r(A, null, [r(l("ut-button"), {
63
+ }) => e.id ? r(I, null, [r(l("ut-button"), {
65
64
  content: "design",
66
65
  icon: "ri-quill-pen-line",
67
66
  onTap: () => k(e)
@@ -115,38 +114,38 @@ const f = "/urpt/v1/printTemplate", K = /* @__PURE__ */ P({
115
114
  }, _ = (e) => {
116
115
  v(e.templateContent), $("复制成功,快试试右键粘贴吧");
117
116
  }, y = async () => {
118
- const [e] = await V(g.post(f, [t.value]));
119
- !e && o.value.refreshData(), i.value = !1;
117
+ const [e] = await B(g.post(f, [t.value]));
118
+ !e && a.value.refreshData(), i.value = !1;
120
119
  }, k = (e) => {
121
- t.value = e, I(() => {
122
- a.value = !0;
120
+ t.value = e, b(() => {
121
+ o.value = !0;
123
122
  });
124
123
  }, T = {
125
124
  editActived({
126
125
  row: e
127
126
  }) {
128
- e.id && (u[1].editRender.props.disabled = !0, o.value.getInstance().refreshColumn());
127
+ e.id && (u[1].editRender.props.disabled = !0, a.value.getInstance().refreshColumn());
129
128
  }
130
129
  }, N = ({
131
130
  row: e
132
- }) => e.enabled !== "1", w = () => {
133
- t.value = {}, a.value = !1, o.value.refreshData();
131
+ }) => (e == null ? void 0 : e.enabled) !== "1", D = () => {
132
+ t.value = {}, o.value = !1, a.value.refreshData();
134
133
  };
135
134
  return (e, m) => {
136
- const D = l("ut-grid"), q = l("ut-modal-form");
137
- return d(), b("div", null, [x(r(D, {
135
+ const q = l("ut-grid"), P = l("ut-modal-form");
136
+ return d(), x("div", null, [w(r(q, {
138
137
  ref_key: "xgrid",
139
- ref: o,
138
+ ref: a,
140
139
  items: h,
141
140
  columns: u,
142
- checkMethod: N,
141
+ "check-method": N,
143
142
  url: f,
144
143
  events: T
145
- }, null, 512), [[E, !a.value]]), a.value ? (d(), p(B, {
144
+ }, null, 512), [[E, !o.value]]), o.value ? (d(), p(U, {
146
145
  key: 0,
147
146
  record: t.value,
148
- onOnClose: w
149
- }, null, 8, ["record"])) : c("", !0), i.value ? (d(), p(q, {
147
+ onOnClose: D
148
+ }, null, 8, ["record"])) : c("", !0), i.value ? (d(), p(P, {
150
149
  key: 1,
151
150
  record: t.value,
152
151
  items: C,
@@ -161,5 +160,5 @@ const f = "/urpt/v1/printTemplate", K = /* @__PURE__ */ P({
161
160
  }
162
161
  });
163
162
  export {
164
- K as default
163
+ z as default
165
164
  };
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as m, reactive as c, watch as f, ref as p, onMounted as u, resolveComponent as h, createElementBlock as _, openBlock as r, withDirectives as w, createBlock as x, createCommentVNode as D, createVNode as R, vShow as C } from "vue";
2
2
  import { useRoute as S } from "vue-router";
3
- import { _ as g } from "./ReportQueryFrom.vue_vue_type_style_index_0_lang-CgGtcs5V.js";
3
+ import { _ as g } from "./ReportQueryFrom.vue_vue_type_style_index_0_lang-B8LJNK0m.js";
4
4
  import { useRender as N } from "@utogether/utils";
5
5
  const T = { name: "ReportQuery" }, O = /* @__PURE__ */ m({
6
6
  ...T,
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./ReportQueryFrom.vue_vue_type_style_index_0_lang-CgGtcs5V.js";
1
+ import { _ as f } from "./ReportQueryFrom.vue_vue_type_style_index_0_lang-B8LJNK0m.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 { clone as A } from "xe-utils";
4
4
  import { useRoute as J } from "vue-router";
5
5
  import { templateRef as O } from "@vueuse/core";
6
- import { q as V } from "./index-ZdgOD7cF.js";
6
+ import { v as V } from "./index-BDE4-ZvN.js";
7
7
  import { useRender as Y } from "@utogether/utils";
8
8
  const H = { class: "ut-drawer-template" }, M = { class: "flex" }, te = /* @__PURE__ */ T({
9
9
  __name: "ReportQueryFrom",
@@ -1,14 +1,14 @@
1
- import { defineComponent as E, ref as r, createVNode as p, Fragment as S, resolveComponent as i, createElementBlock as q, openBlock as f, createBlock as v, createCommentVNode as h } from "vue";
2
- import { useI18n as O } from "vue-i18n";
1
+ import { defineComponent as E, ref as r, createVNode as p, Fragment as S, resolveComponent as a, createElementBlock as O, openBlock as f, createBlock as v, createCommentVNode as h } from "vue";
2
+ import { useI18n as q } from "vue-i18n";
3
3
  import { clone as U } from "xe-utils";
4
4
  import { useRender as V, successMessage as B, warnMessage as M } from "@utogether/utils";
5
- import { e as C, q as D } from "./index-ZdgOD7cF.js";
5
+ import { e as C, v as D } from "./index-BDE4-ZvN.js";
6
6
  const I = "/upms/v1/printTemplateConfig", L = /* @__PURE__ */ E({
7
7
  __name: "ReportTemplate",
8
8
  setup(W) {
9
9
  const {
10
10
  t: b
11
- } = O(), o = V(), s = r(null), a = r(!1), d = r(!1), g = r({}), u = r([]), n = r({}), R = [{
11
+ } = q(), o = V(), s = r(null), l = r(!1), d = r(!1), g = r({}), u = r([]), i = r({}), R = [{
12
12
  field: "templateCode",
13
13
  title: "message.file.templateCode"
14
14
  }, {
@@ -65,7 +65,7 @@ const I = "/upms/v1/printTemplateConfig", L = /* @__PURE__ */ E({
65
65
  slots: {
66
66
  default: ({
67
67
  row: t
68
- }) => [p(S, null, [p(i("ut-button"), {
68
+ }) => [p(S, null, [p(a("ut-button"), {
69
69
  content: "inv",
70
70
  icon: "ri-edit-line",
71
71
  onTap: () => y(t)
@@ -84,17 +84,17 @@ const I = "/upms/v1/printTemplateConfig", L = /* @__PURE__ */ E({
84
84
  label: e.orgName
85
85
  }))
86
86
  }
87
- }), n.value = {}, a.value = !0;
87
+ }), i.value = {}, l.value = !0;
88
88
  }, _ = () => {
89
- if (n.value.orgName) {
89
+ if (i.value.orgName) {
90
90
  const t = s.value.getInstance().getCheckboxRecords(), e = [];
91
- console.log(n.value.orgName), t.forEach((m) => {
92
- n.value.orgName.forEach((c) => {
93
- const l = U(m, !0);
94
- l.orgId = c, l.id = null, e.push(l);
91
+ t.forEach((m) => {
92
+ i.value.orgName.forEach((c) => {
93
+ const n = U(m, !0);
94
+ n.orgId = c, n.id = null, e.push(n);
95
95
  });
96
96
  }), D().post(I, e).then(() => {
97
- a.value = !1, B();
97
+ l.value = !1, B();
98
98
  });
99
99
  }
100
100
  }, x = {
@@ -123,8 +123,8 @@ const I = "/upms/v1/printTemplateConfig", L = /* @__PURE__ */ E({
123
123
  auth: "copy"
124
124
  }];
125
125
  return (t, e) => {
126
- const m = i("ut-grid"), c = i("ut-modal-form"), l = i("ut-modal-grid");
127
- return f(), q("div", null, [p(m, {
126
+ const m = a("ut-grid"), c = a("ut-modal-form"), n = a("ut-modal-grid");
127
+ return f(), O("div", null, [p(m, {
128
128
  ref_key: "xgrid",
129
129
  ref: s,
130
130
  items: R,
@@ -132,18 +132,18 @@ const I = "/upms/v1/printTemplateConfig", L = /* @__PURE__ */ E({
132
132
  columns: k,
133
133
  events: x,
134
134
  url: I
135
- }, null, 512), a.value ? (f(), v(c, {
135
+ }, null, 512), l.value ? (f(), v(c, {
136
136
  key: 0,
137
137
  ref: "xmodal",
138
- record: n.value,
138
+ record: i.value,
139
139
  items: u.value,
140
140
  width: "400",
141
141
  height: "170",
142
142
  "data-status": "update",
143
143
  title: "单据复制",
144
144
  onConfirm: _,
145
- onClose: e[0] || (e[0] = (T) => a.value = !1)
146
- }, null, 8, ["record", "items"])) : h("", !0), d.value ? (f(), v(l, {
145
+ onClose: e[0] || (e[0] = (T) => l.value = !1)
146
+ }, null, 8, ["record", "items"])) : h("", !0), d.value ? (f(), v(n, {
147
147
  key: 1,
148
148
  ref: "xmgrid",
149
149
  "default-value": g.value,
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as r, ref as e, provide as t, createElementBlock as i, openBlock as _, createElementVNode as o, createVNode as n } from "vue";
2
- import { _ as m } from "./ScrollPanel.vue_vue_type_style_index_0_lang-DlXUs0j9.js";
3
- import { _ as p } from "./RolePanel.vue_vue_type_script_setup_true_lang-CleVvkcY.js";
4
- import { _ as d } from "./index-ZdgOD7cF.js";
2
+ import { _ as m } from "./ScrollPanel.vue_vue_type_style_index_0_lang-DbBGg32H.js";
3
+ import { _ as p } from "./RolePanel.vue_vue_type_script_setup_true_lang-DF8qJKwW.js";
4
+ import { _ as d } from "./index-BDE4-ZvN.js";
5
5
  const f = { class: "u-content-panel" }, u = { class: "u-left-panel" }, h = { class: "content" }, v = /* @__PURE__ */ r({
6
6
  __name: "Role",
7
7
  setup(C) {
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as l, ref as e, provide as t, createElementBlock as i, openBlock as _, createElementVNode as o, createVNode as s } from "vue";
2
- import { _ as m } from "./ScrollPanel.vue_vue_type_style_index_0_lang-DlXUs0j9.js";
3
- import { _ as p } from "./RolePanel.vue_vue_type_script_setup_true_lang-t6S_0zmJ.js";
4
- import { _ as d } from "./index-ZdgOD7cF.js";
2
+ import { _ as m } from "./ScrollPanel.vue_vue_type_style_index_0_lang-DbBGg32H.js";
3
+ import { _ as p } from "./RolePanel.vue_vue_type_script_setup_true_lang-BwfL_JVZ.js";
4
+ import { _ as d } from "./index-BDE4-ZvN.js";
5
5
  const f = { class: "u-content-panel" }, u = { class: "u-left-panel" }, g = { class: "content" }, h = /* @__PURE__ */ l({
6
6
  __name: "RoleAssign",
7
7
  setup(v) {
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./RolePanel.vue_vue_type_script_setup_true_lang-CleVvkcY.js";
1
+ import { _ as f } from "./RolePanel.vue_vue_type_script_setup_true_lang-DF8qJKwW.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./RolePanel.vue_vue_type_script_setup_true_lang-t6S_0zmJ.js";
1
+ import { _ as f } from "./RolePanel.vue_vue_type_script_setup_true_lang-BwfL_JVZ.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -2,12 +2,11 @@ import { defineComponent as V, reactive as b, ref as g, inject as N, watch as B,
2
2
  import { useI18n as T } from "vue-i18n";
3
3
  import { clone as U } from "xe-utils";
4
4
  import { VxeUI as j } from "vxe-pc-ui";
5
- import { t as _ } from "./await-to-js.es5-BtRbN2QH.js";
6
- import { successMessage as v } from "@utogether/utils";
7
- import { q as C } from "./index-ZdgOD7cF.js";
5
+ import { q as _, v } from "./index-BDE4-ZvN.js";
6
+ import { successMessage as C } from "@utogether/utils";
8
7
  const q = {
9
8
  class: "page-content"
10
- }, d = "/uums/orgRole", W = /* @__PURE__ */ V({
9
+ }, d = "/uums/orgRole", Q = /* @__PURE__ */ V({
11
10
  __name: "RolePanel",
12
11
  setup($) {
13
12
  const e = b({
@@ -75,8 +74,8 @@ const q = {
75
74
  roleId: t.id
76
75
  };
77
76
  e.loading = !0;
78
- const [a] = await _(C().delete(d, s));
79
- a || v(c("message.operateSuccess")), n.value.refreshData(), e.loading = !1;
77
+ const [a] = await _(v().delete(d, s));
78
+ a || C(c("message.operateSuccess")), n.value.refreshData(), e.loading = !1;
80
79
  }
81
80
  }, I = async (t) => {
82
81
  const r = [];
@@ -87,8 +86,8 @@ const q = {
87
86
  orgRoleList: r
88
87
  };
89
88
  u.value.showLoading();
90
- const [a] = await _(C().post(d, s));
91
- a || (v(), n.value.refreshData(), e.showModalView = !1);
89
+ const [a] = await _(v().post(d, s));
90
+ a || (C(), n.value.refreshData(), e.showModalView = !1);
92
91
  }, y = (t) => {
93
92
  t === "add" && k();
94
93
  };
@@ -122,5 +121,5 @@ const q = {
122
121
  }
123
122
  });
124
123
  export {
125
- W as _
124
+ Q as _
126
125
  };
@@ -1,9 +1,9 @@
1
1
  import { defineComponent as N, reactive as S, inject as I, ref as l, watch as B, createVNode as s, Fragment as M, resolveComponent as r, createElementBlock as E, openBlock as d, createBlock as i, createCommentVNode as c } from "vue";
2
2
  import { useRender as $ } from "@utogether/utils";
3
- import { _ as q } from "./AuthorityInfo.vue_vue_type_style_index_0_lang-Bwsf6lMH.js";
4
- import { _ as O } from "./UserInfo.vue_vue_type_style_index_0_lang-D_bpYDmI.js";
5
- import { q as P, e as R } from "./index-ZdgOD7cF.js";
6
- const T = {
3
+ import { _ as O } from "./AuthorityInfo.vue_vue_type_style_index_0_lang-RUhvzu76.js";
4
+ import { _ as P } from "./UserInfo.vue_vue_type_style_index_0_lang-C2sqUQdg.js";
5
+ import { v as R, e as T } from "./index-BDE4-ZvN.js";
6
+ const q = {
7
7
  class: "page-content"
8
8
  }, J = /* @__PURE__ */ N({
9
9
  __name: "RolePanel",
@@ -87,7 +87,7 @@ const T = {
87
87
  t === "add" && C(), t === "del" && D();
88
88
  }, C = () => {
89
89
  var t;
90
- e.dataStatus = "add", n.value = "post", u.value = "/uums/role", e.record = {}, e.record.unitId = (t = o == null ? void 0 : o.value) == null ? void 0 : t.id, e.record.enabled = "1", e.record.orgId = R().getOrgId, e.showModalView = !0;
90
+ e.dataStatus = "add", n.value = "post", u.value = "/uums/role", e.record = {}, e.record.unitId = (t = o == null ? void 0 : o.value) == null ? void 0 : t.id, e.record.enabled = "1", e.record.orgId = T().getOrgId, e.showModalView = !0;
91
91
  }, k = (t) => {
92
92
  n.value = "put", u.value = "/uums/role/singleUpdate", e.dataStatus = "update", e.record = t, e.showModalView = !0;
93
93
  }, D = () => {
@@ -100,14 +100,14 @@ const T = {
100
100
  async function U({
101
101
  row: t
102
102
  }) {
103
- await P().put("/uums/role/singleUpdate", t), a.value.refreshData();
103
+ await R().put("/uums/role/singleUpdate", t), a.value.refreshData();
104
104
  }
105
105
  const m = () => {
106
106
  e.showDrawView = !1, e.showAuthView = !1, e.showUserView = !1;
107
107
  };
108
108
  return (t, h) => {
109
109
  const b = r("ut-grid"), x = r("ut-modal-form");
110
- return d(), E("div", T, [s(b, {
110
+ return d(), E("div", q, [s(b, {
111
111
  ref_key: "xgrid",
112
112
  ref: a,
113
113
  items: p,
@@ -115,13 +115,13 @@ const T = {
115
115
  url: "/uums/role",
116
116
  mode: "form",
117
117
  onButtonClick: v
118
- }, null, 512), e.showAuthView ? (d(), i(q, {
118
+ }, null, 512), e.showAuthView ? (d(), i(O, {
119
119
  key: 0,
120
120
  show: e.showAuthView,
121
121
  record: e.record,
122
122
  "data-status": e.dataStatus,
123
123
  onOnClose: m
124
- }, null, 8, ["show", "record", "data-status"])) : c("", !0), e.showUserView ? (d(), i(O, {
124
+ }, null, 8, ["show", "record", "data-status"])) : c("", !0), e.showUserView ? (d(), i(P, {
125
125
  key: 1,
126
126
  show: e.showUserView,
127
127
  record: e.record,
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as N, ref as k, inject as p, watch as A, nextTick as L, resolveComponent as v, createElementBlock as D, openBlock as f, withModifiers as O, createElementVNode as a, createBlock as C, createCommentVNode as g, createVNode as y, toDisplayString as _, withCtx as S, normalizeClass as V } from "vue";
2
- import { q as j } from "./index-ZdgOD7cF.js";
3
- const q = { class: "u-panel-header" }, M = { class: "u-panel-content system-scrollbar" }, K = /* @__PURE__ */ N({
2
+ import { v as j } from "./index-BDE4-ZvN.js";
3
+ const M = { class: "u-panel-header" }, $ = { class: "u-panel-content system-scrollbar" }, K = /* @__PURE__ */ N({
4
4
  __name: "ScrollPanel",
5
5
  props: {
6
6
  title: {},
@@ -13,7 +13,7 @@ const q = { class: "u-panel-header" }, M = { class: "u-panel-content system-scro
13
13
  extParam: { default: () => ({}) }
14
14
  },
15
15
  setup(b, { expose: x }) {
16
- const h = b, s = k([]), n = k(null), r = p("active"), c = p("scrollPanelChange"), B = p("treeList");
16
+ const h = b, s = k([]), o = k(null), r = p("active"), c = p("scrollPanelChange"), B = p("treeList");
17
17
  A(
18
18
  () => c.value,
19
19
  () => {
@@ -23,8 +23,8 @@ const q = { class: "u-panel-header" }, M = { class: "u-panel-content system-scro
23
23
  const u = async (l = {}) => {
24
24
  const t = Object.assign(l, h.extParam), e = await j().get(h.url, t);
25
25
  s.value = e.list || e, B.value = e.list || e, r.value = e.list ? e.list[0] : e[0], L(() => {
26
- var o;
27
- n.value && (n == null || n.value.setCurrentKey(((o = r.value) == null ? void 0 : o.id) || ""));
26
+ var n;
27
+ o.value && (o == null || o.value.setCurrentKey(((n = r.value) == null ? void 0 : n.id) || ""));
28
28
  }), c.value = !1;
29
29
  }, w = (l) => {
30
30
  r.value = l;
@@ -32,21 +32,21 @@ const q = { class: "u-panel-header" }, M = { class: "u-panel-content system-scro
32
32
  r.value = {};
33
33
  }, d = (l, t) => {
34
34
  l.forEach((e) => {
35
- var o;
36
- n.value.store.nodesMap[e.id].expanded = t, (o = e.children) != null && o.length && d(e.children, t);
37
- }), console.log("[ tree.value ] >", n.value);
35
+ var n;
36
+ o.value.store.nodesMap[e.id].expanded = t, (n = e.children) != null && n.length && d(e.children, t);
37
+ });
38
38
  }, m = () => {
39
39
  u();
40
40
  };
41
41
  return x({
42
42
  onRefresh: m
43
43
  }), u(), (l, t) => {
44
- const e = v("ut-button"), o = v("vxe-button"), E = v("el-tree");
44
+ const e = v("ut-button"), n = v("vxe-button"), E = v("el-tree");
45
45
  return f(), D("div", {
46
46
  class: "u-scroll-panel",
47
47
  onClick: O(P, ["prevent"])
48
48
  }, [
49
- a("div", q, [
49
+ a("div", M, [
50
50
  a("h2", null, _(l.title), 1),
51
51
  l.showAllButton ? (f(), C(e, {
52
52
  key: 0,
@@ -59,15 +59,15 @@ const q = { class: "u-panel-header" }, M = { class: "u-panel-content system-scro
59
59
  content: "BtnCollapse",
60
60
  onClick: t[1] || (t[1] = (i) => d(s.value, !1))
61
61
  })) : g("", !0),
62
- y(o, {
62
+ y(n, {
63
63
  icon: "vxe-icon-refresh",
64
64
  onClick: m
65
65
  })
66
66
  ]),
67
- a("div", M, [
67
+ a("div", $, [
68
68
  y(E, {
69
69
  ref_key: "tree",
70
- ref: n,
70
+ ref: o,
71
71
  data: s.value,
72
72
  props: l.treeOtions,
73
73
  "expand-on-click-node": !1,
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as l, ref as e, provide as t, createElementBlock as _, openBlock as i, createElementVNode as n, createVNode as a } from "vue";
2
- import { _ as m } from "./ScrollPanel.vue_vue_type_style_index_0_lang-DlXUs0j9.js";
3
- import { _ as d } from "./StaffPanel.vue_vue_type_script_setup_true_lang-DAgN7zN2.js";
4
- import { _ as p } from "./index-ZdgOD7cF.js";
2
+ import { _ as m } from "./ScrollPanel.vue_vue_type_style_index_0_lang-DbBGg32H.js";
3
+ import { _ as d } from "./StaffPanel.vue_vue_type_script_setup_true_lang-BvLrF4Yw.js";
4
+ import { _ as p } from "./index-BDE4-ZvN.js";
5
5
  const f = { class: "u-content-panel" }, u = { class: "u-left-panel" }, h = { class: "content" }, v = { name: "StaffPanel" }, C = /* @__PURE__ */ l({
6
6
  ...v,
7
7
  setup(N) {
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./StaffInfo.vue_vue_type_script_setup_true_lang-DQ4DL1KY.js";
1
+ import { _ as f } from "./StaffInfo.vue_vue_type_script_setup_true_lang-XRJVEJ-s.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,7 +1,7 @@
1
- import { defineComponent as b, ref as u, onMounted as D, resolveComponent as d, createElementBlock as E, openBlock as k, createVNode as n, withCtx as f } from "vue";
2
- import { useRender as q } from "@utogether/utils";
3
- import { q as _ } from "./index-ZdgOD7cF.js";
4
- const F = { class: "config" }, x = /* @__PURE__ */ b({
1
+ import { defineComponent as b, ref as u, onMounted as D, resolveComponent as r, createElementBlock as E, openBlock as k, createVNode as n, withCtx as f } from "vue";
2
+ import { useRender as F } from "@utogether/utils";
3
+ import { v as _ } from "./index-BDE4-ZvN.js";
4
+ const T = { class: "config" }, x = /* @__PURE__ */ b({
5
5
  __name: "StaffInfo",
6
6
  props: {
7
7
  show: { type: Boolean, default: !0 },
@@ -10,7 +10,7 @@ const F = { class: "config" }, x = /* @__PURE__ */ b({
10
10
  },
11
11
  emits: ["onClose"],
12
12
  setup(v, { emit: y }) {
13
- const i = v, t = q(), o = u({}), p = u(null), l = u(!1), R = { userName: "userName", userId: "id" }, w = { disabled: i.dataStatus !== "add" }, g = [
13
+ const i = v, t = F(), d = u({}), p = u(null), l = u(!1), R = { userName: "userName", userId: "id" }, w = { disabled: i.dataStatus !== "add" }, g = [
14
14
  {
15
15
  field: "employeeCode",
16
16
  required: !0,
@@ -39,14 +39,14 @@ const F = { class: "config" }, x = /* @__PURE__ */ b({
39
39
  }
40
40
  ];
41
41
  function C(e) {
42
- var r, a, s;
43
- e.row.deptName = ((r = e.item) == null ? void 0 : r.deptName) || e.row.deptName, e.row.deptCode = ((a = e.item) == null ? void 0 : a.deptCode) || e.row.deptCode, e.row.departmentId = ((s = e.item) == null ? void 0 : s.id) || e.row.departmentId;
42
+ var o, a, s;
43
+ e.row.deptName = ((o = e.item) == null ? void 0 : o.deptName) || e.row.deptName, e.row.deptCode = ((a = e.item) == null ? void 0 : a.deptCode) || e.row.deptCode, e.row.departmentId = ((s = e.item) == null ? void 0 : s.id) || e.row.departmentId;
44
44
  }
45
45
  const I = y, N = () => {
46
46
  p.value.validateForm(async (e) => {
47
47
  if (!e) {
48
- const { dataStatus: r } = i;
49
- l.value = !0, console.log(o), r === "add" ? await _().post("/uums/employee", o.value) : await _().put("/uums/employee", o.value), l.value = !1, m();
48
+ const { dataStatus: o } = i;
49
+ l.value = !0, o === "add" ? await _().post("/uums/employee", d.value) : await _().put("/uums/employee", d.value), l.value = !1, m();
50
50
  }
51
51
  });
52
52
  };
@@ -54,10 +54,10 @@ const F = { class: "config" }, x = /* @__PURE__ */ b({
54
54
  I("onClose");
55
55
  }
56
56
  return D(() => {
57
- o.value = i.record;
58
- }), (e, r) => {
59
- const a = d("ut-form"), s = d("el-divider"), c = d("ut-button"), S = d("el-row"), h = d("el-drawer");
60
- return k(), E("div", F, [
57
+ d.value = i.record;
58
+ }), (e, o) => {
59
+ const a = r("ut-form"), s = r("el-divider"), c = r("ut-button"), S = r("el-row"), h = r("el-drawer");
60
+ return k(), E("div", T, [
61
61
  n(h, {
62
62
  "model-value": e.show,
63
63
  "before-close": m,
@@ -70,7 +70,7 @@ const F = { class: "config" }, x = /* @__PURE__ */ b({
70
70
  n(a, {
71
71
  ref_key: "suFormRef",
72
72
  ref: p,
73
- record: o.value,
73
+ record: d.value,
74
74
  loading: l.value,
75
75
  items: g,
76
76
  "data-status": e.dataStatus
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./StaffPanel.vue_vue_type_script_setup_true_lang-DAgN7zN2.js";
1
+ import { _ as f } from "./StaffPanel.vue_vue_type_script_setup_true_lang-BvLrF4Yw.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as b, ref as g, inject as w, reactive as x, watch as y, nextTick as E, resolveComponent as l, createElementBlock as N, openBlock as c, createVNode as d, createBlock as k, createCommentVNode as C, Fragment as S } from "vue";
2
2
  import { clone as D } from "xe-utils";
3
3
  import { warnMessage as M } from "@utogether/utils";
4
- import { _ as B } from "./StaffInfo.vue_vue_type_script_setup_true_lang-DQ4DL1KY.js";
5
- import { q as P } from "./index-ZdgOD7cF.js";
4
+ import { _ as B } from "./StaffInfo.vue_vue_type_script_setup_true_lang-XRJVEJ-s.js";
5
+ import { v as P } from "./index-BDE4-ZvN.js";
6
6
  const A = {
7
7
  class: "page-content"
8
8
  }, s = "/uums/employee", j = /* @__PURE__ */ b({
@@ -49,7 +49,7 @@ const A = {
49
49
  default: ({
50
50
  row: e
51
51
  }) => {
52
- const a = ["1", "Y"].includes(e.enabled) ? "disabled" : "enable", r = ["1", "Y"].includes(e.enabled) ? "ri-stop-circle-fill" : "ri-play-circle-fill", v = ["1", "Y"].includes(e.enabled) ? "warning" : "success";
52
+ const a = ["1", "Y"].includes(e.enabled) ? "disabled" : "enable", r = ["1", "Y"].includes(e.enabled) ? "ri-stop-circle-fill" : "ri-play-circle-fill", _ = ["1", "Y"].includes(e.enabled) ? "warning" : "success";
53
53
  return [d(S, null, [d(l("ut-button"), {
54
54
  icon: "ri-edit-box-line",
55
55
  content: "edit",
@@ -57,7 +57,7 @@ const A = {
57
57
  }, null), d(l("ut-button"), {
58
58
  icon: r,
59
59
  content: a,
60
- status: v,
60
+ status: _,
61
61
  onTap: () => h(e)
62
62
  }, null)])];
63
63
  }
@@ -78,7 +78,7 @@ const A = {
78
78
  }, h = async (e) => {
79
79
  const a = D(e, !0);
80
80
  o.value.showLoading(), a.enabled = a.enabled === "1" ? "0" : "1", await P().put(s, a), o.value.hiddenLoading(), o.value.refreshData();
81
- }, _ = () => {
81
+ }, v = () => {
82
82
  t.showModelView = !1, o.value.refreshData();
83
83
  };
84
84
  return (e, a) => {
@@ -101,7 +101,7 @@ const A = {
101
101
  key: 0,
102
102
  record: t.record,
103
103
  "data-status": t.dataStatus,
104
- onOnClose: _
104
+ onOnClose: v
105
105
  }, null, 8, ["record", "data-status"])) : C("", !0)]);
106
106
  };
107
107
  }
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as t, ref as o, provide as s, createElementBlock as r, openBlock as c, createVNode as _ } from "vue";
2
- import { _ as n } from "./SysUserPanel.vue_vue_type_script_setup_true_lang-BW6PlGjM.js";
3
- import { _ as a } from "./index-ZdgOD7cF.js";
2
+ import { _ as n } from "./SysUserPanel.vue_vue_type_script_setup_true_lang-B9zUXXwa.js";
3
+ import { _ as a } from "./index-BDE4-ZvN.js";
4
4
  const p = { class: "u-content-panel1" }, i = /* @__PURE__ */ t({
5
5
  __name: "SysUser",
6
6
  setup(m) {
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./SysUserPanel.vue_vue_type_script_setup_true_lang-BW6PlGjM.js";
1
+ import { _ as f } from "./SysUserPanel.vue_vue_type_script_setup_true_lang-B9zUXXwa.js";
2
2
  export {
3
3
  f as default
4
4
  };