@utogether/udp-core 2.0.0-beta.24 → 2.0.0-beta.25

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 (149) hide show
  1. package/dist/403-QwBKrRZE.js +72 -0
  2. package/dist/404-Cr7MbzNV.js +72 -0
  3. package/dist/500-B7kCOeIA.js +77 -0
  4. package/dist/AuthorityInfo-Dwml2K4S.js +91 -0
  5. package/dist/AuthorityPanel-DzPhsPpa.js +98 -0
  6. package/dist/Company-BhOlvl7Q.js +21 -0
  7. package/dist/CompanyPanel-ByhY5-Sq.js +199 -0
  8. package/dist/DataSet-CuGZcKC-.js +141 -0
  9. package/dist/Department-QvngN63N.js +21 -0
  10. package/dist/DepartmentPanel-BCXqC39J.js +2 -0
  11. package/dist/DepartmentPanel-DntGycxr.js +242 -0
  12. package/dist/DesignPanel-BMN4DZ0R.js +1196 -0
  13. package/dist/DictView-ERFqZ5VD.js +100 -0
  14. package/dist/File-WJXjGYxr.js +89 -0
  15. package/dist/InvOrganization-BwMmD8Ua.js +76 -0
  16. package/dist/Org-HgnOWubi.js +76 -0
  17. package/dist/Preview-CVZdnHB1.js +45 -0
  18. package/dist/ReIcon-DecitXmg.js +413 -0
  19. package/dist/ReportDefine-BgLM-Rjk.js +10 -0
  20. package/dist/ReportDesign-CjfTyyy_.js +158 -0
  21. package/dist/ReportQuery-CP-E0Puv.js +101 -0
  22. package/dist/ReportQueryFrom-D7SPPAps.js +198 -0
  23. package/dist/ReportTemplate-DE25zc1f.js +162 -0
  24. package/dist/Role-K7v_ZhFE.js +21 -0
  25. package/dist/RoleAssign-C16fjLaX.js +22 -0
  26. package/dist/RolePanel-CV-xPlYJ.js +176 -0
  27. package/dist/RolePanel-DPCe9k8f.js +131 -0
  28. package/dist/ScrollPanel-DW30pGz1.js +88 -0
  29. package/dist/Staff-w2ly4qd0.js +22 -0
  30. package/dist/StaffInfo-DPDRpz6F.js +149 -0
  31. package/dist/StaffPanel-DI1eTTp9.js +143 -0
  32. package/dist/SysUser-BMTX1cJM.js +12 -0
  33. package/dist/SysUserPanel-xwZdVjdp.js +365 -0
  34. package/dist/SystemMenu-TXhiQZVm.js +154 -0
  35. package/dist/UserInfo-JQqw8FMT.js +194 -0
  36. package/dist/_plugin-vue_export-helper-C6QCLu9I.js +8 -0
  37. package/dist/api-BFNxcxSN.js +30 -0
  38. package/dist/authority-Bi6BGB5B.js +20 -0
  39. package/dist/await-to-js.es5-DkWYmPXW.js +10 -0
  40. package/dist/childView-Bk8OD9bV.js +181 -0
  41. package/dist/childView-CyrcwshT.js +184 -0
  42. package/dist/code-rule-QFrhqFrW.js +151 -0
  43. package/dist/contant-Q77dU_V3.js +4 -0
  44. package/dist/core.es.js +6 -23
  45. package/dist/cron-task-BpUDKEAU.js +131 -0
  46. package/dist/flow-task-DAc2NrDU.js +11 -0
  47. package/dist/frameView-Di0zJZUR.js +39 -0
  48. package/dist/img/v_img.svg +1 -1
  49. package/dist/layout-home-BVp7vYLR.js +239 -0
  50. package/dist/layoutView-DFUjrqAS.js +2662 -0
  51. package/dist/log-in-BrNB0mLz.js +117 -0
  52. package/dist/log-out-dYfqvzy6.js +111 -0
  53. package/dist/login-BdCDnuXL.js +233 -0
  54. package/dist/login-log-CJak-ANA.js +79 -0
  55. package/dist/lov-view-DkmG4K57.js +95 -0
  56. package/dist/menuInfo-kp2wNYOp.js +346 -0
  57. package/dist/mitt-CQgI7DYU.js +27 -0
  58. package/dist/pda-app-CA7YI37u.js +589 -0
  59. package/dist/redirect-N0k4tImU.js +16 -0
  60. package/dist/resource-CfQTHFcs.js +94 -0
  61. package/dist/router-CeluSGiD.js +1531 -0
  62. package/dist/su-welcome-JeiovGpe.js +799 -0
  63. package/dist/sys-config-Ddb3vBpK.js +316 -0
  64. package/dist/udp-core-Dhm-BlAs.js +2032 -0
  65. package/dist/udp-core.css +2 -1
  66. package/dist/useDataThemeChange-BCy8JBG7.js +226 -0
  67. package/dist/useNav-DY8FkltH.js +106 -0
  68. package/dist/utogether-l7JXs4Lv.js +4 -0
  69. package/dist/water-mark-WDQZ9YqB.js +119 -0
  70. package/dist/wecom-push-kWkAVRCj.js +77 -0
  71. package/package.json +1 -1
  72. package/src/api/index.ts +51 -51
  73. package/src/components/udp/index.ts +9 -8
  74. package/src/components/udp/lov/index.vue +430 -0
  75. package/src/components/udp/upload/index.vue +444 -444
  76. package/src/main.ts +110 -111
  77. package/src/plugins/vxe-table/index.ts +1 -1
  78. package/src/plugins/vxe-table/render.tsx +999 -998
  79. package/tsconfig.json +1 -1
  80. package/vite.config.ts +8 -3
  81. package/dist/403-DDCAPCYb.js +0 -65
  82. package/dist/404-BclWW4UB.js +0 -65
  83. package/dist/500-BAggMgTl.js +0 -67
  84. package/dist/AuthorityInfo-liCxYVNc.js +0 -4
  85. package/dist/AuthorityInfo.vue_vue_type_style_index_0_lang-Bd5A4CD-.js +0 -100
  86. package/dist/AuthorityPanel-CRlAwbaI.js +0 -4
  87. package/dist/AuthorityPanel.vue_vue_type_style_index_0_lang-DxhZjp1S.js +0 -114
  88. package/dist/Company-DjaOAaWM.js +0 -25
  89. package/dist/CompanyPanel-Dp_2z717.js +0 -206
  90. package/dist/DataSet-DT-rGICv.js +0 -147
  91. package/dist/Department-Bp5RGbl9.js +0 -25
  92. package/dist/DepartmentPanel-Bg4xM4Lx.js +0 -254
  93. package/dist/DesignPanel-BS2ioHd_.js +0 -4
  94. package/dist/DesignPanel.vue_vue_type_style_index_0_lang-DWwfRVCj.js +0 -1013
  95. package/dist/DictView-pYJXt6IS.js +0 -111
  96. package/dist/InvOrganization-D90gRzlN.js +0 -74
  97. package/dist/Org-Dk4KuIx2.js +0 -39
  98. package/dist/Preview-DpZR6uKs.js +0 -48
  99. package/dist/ReportDefine-PtJnfaLw.js +0 -10
  100. package/dist/ReportDesign-4HWkcTtA.js +0 -165
  101. package/dist/ReportQuery-BPY1lWFn.js +0 -75
  102. package/dist/ReportQueryFrom-CHFlkZ42.js +0 -4
  103. package/dist/ReportQueryFrom.vue_vue_type_style_index_0_lang-DbbQydKz.js +0 -178
  104. package/dist/ReportTemplate-C2F3oy8I.js +0 -161
  105. package/dist/Role-iTP6DYOi.js +0 -25
  106. package/dist/RoleAssign-DIYNHQeF.js +0 -26
  107. package/dist/RolePanel-0ojFIz9G.js +0 -4
  108. package/dist/RolePanel-B0Yr5vjo.js +0 -4
  109. package/dist/RolePanel.vue_vue_type_script_setup_true_lang-CHAj3dCD.js +0 -132
  110. package/dist/RolePanel.vue_vue_type_script_setup_true_lang-CXZBxePU.js +0 -154
  111. package/dist/ScrollPanel.vue_vue_type_style_index_0_lang-DtNzPRjS.js +0 -101
  112. package/dist/Staff-sftZ0bIV.js +0 -26
  113. package/dist/StaffInfo-BG2FMXzR.js +0 -4
  114. package/dist/StaffInfo.vue_vue_type_script_setup_true_lang-DzGn0pYY.js +0 -108
  115. package/dist/StaffPanel-BydqiitC.js +0 -4
  116. package/dist/StaffPanel.vue_vue_type_script_setup_true_lang-C42Pnb-b.js +0 -154
  117. package/dist/SysUser-qMGVHpJ_.js +0 -15
  118. package/dist/SysUserPanel-Bh1HgSAr.js +0 -4
  119. package/dist/SysUserPanel.vue_vue_type_script_setup_true_lang-BBEMYLQN.js +0 -356
  120. package/dist/SystemMenu-DUbWmLip.js +0 -156
  121. package/dist/UserInfo-DNkiTdWm.js +0 -4
  122. package/dist/UserInfo.vue_vue_type_style_index_0_lang-B1eNklEd.js +0 -160
  123. package/dist/await-to-js.es5-Bv3Eu4mi.js +0 -10
  124. package/dist/childView-CjUjh8Da.js +0 -4
  125. package/dist/childView-DT9luEEK.js +0 -4
  126. package/dist/childView.vue_vue_type_style_index_0_lang-CgqosFJQ.js +0 -183
  127. package/dist/childView.vue_vue_type_style_index_0_lang-DkXHMFPd.js +0 -143
  128. package/dist/code-rule-uOazxFfn.js +0 -148
  129. package/dist/cron-task-DEykunjo.js +0 -135
  130. package/dist/flow-task-B07st2aD.js +0 -10
  131. package/dist/frameView-FxzlbkeM.js +0 -44
  132. package/dist/index-BnxyUGKa.js +0 -7944
  133. package/dist/layout-home-C0jme8Ju.js +0 -232
  134. package/dist/layoutView-BqMAHIxF.js +0 -3239
  135. package/dist/log-in-skZaWMBY.js +0 -117
  136. package/dist/log-out-BiND7muW.js +0 -130
  137. package/dist/login-C-184YPO.js +0 -235
  138. package/dist/login-log-BEHYT0v0.js +0 -70
  139. package/dist/lov-view-Df-swRfy.js +0 -99
  140. package/dist/menuInfo-CpyjX4a4.js +0 -4
  141. package/dist/menuInfo.vue_vue_type_style_index_0_lang-D09-OKji.js +0 -363
  142. package/dist/pda-app-DP87aTBc.js +0 -710
  143. package/dist/redirect-BqegffKC.js +0 -15
  144. package/dist/resource-CAldbnw4.js +0 -97
  145. package/dist/su-welcome-DoBUqadB.js +0 -42225
  146. package/dist/sys-config-hGuE7DUf.js +0 -385
  147. package/dist/useNav-Cf_e5pBY.js +0 -92
  148. package/dist/utogether-MlnyYtNS.js +0 -4
  149. package/dist/wecom-push-DR7NsNro.js +0 -70
@@ -0,0 +1,131 @@
1
+ import { I as e } from "./router-CeluSGiD.js";
2
+ import { r as t } from "./api-BFNxcxSN.js";
3
+ import { t as n } from "./await-to-js.es5-DkWYmPXW.js";
4
+ import { createBlock as r, createCommentVNode as i, createElementBlock as a, createVNode as o, defineComponent as s, inject as c, nextTick as l, openBlock as u, reactive as d, ref as f, resolveComponent as p, resolveDirective as m, unref as h, watch as g, withDirectives as _ } from "vue";
5
+ import { successMessage as v } from "@utogether/utils";
6
+ import { clone as y } from "xe-utils";
7
+ import { useI18n as b } from "vue-i18n";
8
+ import { VxeUI as x } from "vxe-pc-ui";
9
+ //#region src/views/system/role-assign/RolePanel.vue?vue&type=script&setup=true&lang.tsx
10
+ var S = { class: "page-content" }, C = "/uums/orgRole", w = /* @__PURE__ */ s({
11
+ __name: "RolePanel",
12
+ setup(e) {
13
+ let s = d({
14
+ record: {},
15
+ loading: !1,
16
+ showModalView: !1
17
+ }), { t: w } = b(), T = f(null), E = f(null), D = c("active");
18
+ g(() => D.value, () => {
19
+ D?.value.id && (s.fetchExtParam = { orgId: D?.value.id }, l(() => {
20
+ T.value.refreshData();
21
+ }));
22
+ });
23
+ let O = [{
24
+ code: "del",
25
+ auth: "/"
26
+ }], k = [{
27
+ field: "roleName",
28
+ title: "message.udp.roleName",
29
+ span: 9
30
+ }, {
31
+ field: "roleCode",
32
+ title: "message.udp.roleCode",
33
+ span: 9
34
+ }], A = [
35
+ {
36
+ type: "checkbox",
37
+ width: 40
38
+ },
39
+ {
40
+ field: "roleCode",
41
+ title: "message.udp.roleCode"
42
+ },
43
+ {
44
+ field: "roleName",
45
+ title: "message.udp.roleName"
46
+ },
47
+ {
48
+ field: "roleDesc",
49
+ title: "message.udp.roleDesc"
50
+ },
51
+ {
52
+ field: "enabled",
53
+ width: 100,
54
+ formatter: ["formatDict", "SU.ENABLE"]
55
+ }
56
+ ], j = y(A, !0);
57
+ j.push({
58
+ field: "operate",
59
+ width: 80,
60
+ fixed: "right",
61
+ slots: { default: ({ row: e }) => e.roleCode === "admin" ? null : [o(p("ut-button"), {
62
+ icon: "ri-delete-bin-5-fill",
63
+ content: "del",
64
+ status: "danger",
65
+ auth: "del",
66
+ onTap: () => N(e)
67
+ }, null)] }
68
+ });
69
+ let M = () => {
70
+ s.record = {}, s.record.orgId = D.value.id, s.showModalView = !0;
71
+ }, N = async (e) => {
72
+ if (await x.modal.confirm(w("message.tip.del")) === "confirm") {
73
+ let r = {
74
+ orgId: D.value.id,
75
+ roleId: e.id
76
+ };
77
+ s.loading = !0;
78
+ let [i] = await n(t().delete(C, r));
79
+ i || v(w("message.operateSuccess")), T.value.refreshData(), s.loading = !1;
80
+ }
81
+ }, P = async (e) => {
82
+ let r = [];
83
+ e.forEach((e) => {
84
+ e.orgId = D.value.id, e.roleId = e.id, r.push(e);
85
+ });
86
+ let i = { orgRoleList: r };
87
+ E.value.showLoading();
88
+ let [a] = await n(t().post(C, i));
89
+ a || (v(), T.value.refreshData(), s.showModalView = !1);
90
+ }, F = (e) => e.roleCode !== "admin", I = (e) => {
91
+ e === "add" && M();
92
+ };
93
+ return (e, t) => {
94
+ let n = p("ut-grid"), c = p("ut-modal-grid"), l = m("spinning");
95
+ return _((u(), a("div", S, [o(n, {
96
+ ref_key: "xgrid",
97
+ ref: T,
98
+ items: k,
99
+ columns: h(j),
100
+ "default-params": s.fetchExtParam,
101
+ "default-value": s.fetchExtParam,
102
+ buttons: O,
103
+ "auto-load": !1,
104
+ url: C,
105
+ "check-method": F,
106
+ mode: "form",
107
+ onButtonClick: I
108
+ }, null, 8, [
109
+ "columns",
110
+ "default-params",
111
+ "default-value"
112
+ ]), s.showModalView ? (u(), r(c, {
113
+ key: 0,
114
+ ref_key: "xmodal",
115
+ ref: E,
116
+ items: k,
117
+ columns: A,
118
+ "show-footer": !0,
119
+ editable: !1,
120
+ title: e.$t("message.udp.roleList"),
121
+ url: "/uums/role",
122
+ width: "60%",
123
+ height: "75%",
124
+ onClose: t[0] ||= (e) => s.showModalView = !1,
125
+ onConfirm: P
126
+ }, null, 8, ["title"])) : i("", !0)])), [[l, s.loading]]);
127
+ };
128
+ }
129
+ }), T = /* @__PURE__ */ e({ default: () => E }), E = w;
130
+ //#endregion
131
+ export { T as n, E as t };
@@ -0,0 +1,88 @@
1
+ import { r as e } from "./api-BFNxcxSN.js";
2
+ import { createBlock as t, createCommentVNode as n, createElementBlock as r, createElementVNode as i, createVNode as a, defineComponent as o, inject as s, nextTick as c, normalizeClass as l, openBlock as u, ref as d, resolveComponent as f, toDisplayString as p, watch as m, withCtx as h, withModifiers as g } from "vue";
3
+ //#region src/components/SuScrollTree/ScrollPanel.vue?vue&type=script&setup=true&lang.ts
4
+ var _ = { class: "u-panel-header" }, v = { class: "u-panel-content system-scrollbar" }, y = /* @__PURE__ */ o({
5
+ __name: "ScrollPanel",
6
+ props: {
7
+ title: {},
8
+ url: {},
9
+ showAllButton: {
10
+ type: Boolean,
11
+ default: !1
12
+ },
13
+ initLoadAll: {
14
+ type: Boolean,
15
+ default: !1
16
+ },
17
+ treeOtions: { default: () => ({
18
+ children: "children",
19
+ label: "label"
20
+ }) },
21
+ defaultParams: { default: () => ({}) }
22
+ },
23
+ setup(o, { expose: y }) {
24
+ let b = o, x = d([]), S = d(null), C = s("active"), w = s("scrollPanelChange"), T = s("treeList");
25
+ m(() => w.value, () => {
26
+ w.value && E();
27
+ });
28
+ let E = async (t = {}) => {
29
+ let n = Object.assign(t, b.defaultParams), r = await e().get(b.url, n);
30
+ x.value = r.list || r, T.value = r.list || r, b.initLoadAll ? C.value = {} : C.value = r.list ? r.list[0] : r[0], c(() => {
31
+ S.value && S?.value.setCurrentKey(C.value?.id || "");
32
+ }), w.value = !1;
33
+ }, D = (e) => {
34
+ C.value = e;
35
+ }, O = () => {
36
+ C.value = {};
37
+ }, k = (e, t) => {
38
+ e.forEach((e) => {
39
+ S.value.store.nodesMap[e.id].expanded = t, e.children?.length && k(e.children, t);
40
+ });
41
+ }, A = () => {
42
+ E();
43
+ };
44
+ return y({ onRefresh: A }), E(), (e, s) => {
45
+ let c = f("ut-button"), d = f("vxe-button"), m = f("el-tree");
46
+ return u(), r("div", {
47
+ class: "u-scroll-panel",
48
+ onClick: g(O, ["prevent"])
49
+ }, [i("div", _, [
50
+ i("h2", null, p(o.title), 1),
51
+ o.showAllButton ? (u(), t(c, {
52
+ key: 0,
53
+ content: "BtnExpand",
54
+ onClick: s[0] ||= (e) => k(x.value, !0)
55
+ })) : n("", !0),
56
+ o.showAllButton ? (u(), t(c, {
57
+ key: 1,
58
+ status: "warning",
59
+ content: "BtnCollapse",
60
+ onClick: s[1] ||= (e) => k(x.value, !1)
61
+ })) : n("", !0),
62
+ a(d, {
63
+ icon: "vxe-icon-refresh",
64
+ onClick: A
65
+ })
66
+ ]), i("div", v, [a(m, {
67
+ ref_key: "tree",
68
+ ref: S,
69
+ data: x.value,
70
+ props: o.treeOtions,
71
+ "expand-on-click-node": !1,
72
+ style: { "background-color": "#fff" },
73
+ class: "u-tree-panel",
74
+ "node-key": "id",
75
+ "highlight-current": "",
76
+ onNodeClick: D
77
+ }, {
78
+ default: h(({ node: e }) => [i("span", { class: l(["prefix", { "is-leaf": e.isLeaf }]) }, [...s[2] ||= [i("i", {
79
+ class: "ri-folder-2-fill ri-lg mr-1",
80
+ style: { color: "#fadb14" }
81
+ }, null, -1)]], 2), i("span", null, p(e.label), 1)]),
82
+ _: 1
83
+ }, 8, ["data", "props"])])]);
84
+ };
85
+ }
86
+ });
87
+ //#endregion
88
+ export { y as t };
@@ -0,0 +1,22 @@
1
+ import { t as e } from "./_plugin-vue_export-helper-C6QCLu9I.js";
2
+ import { t } from "./ScrollPanel-DW30pGz1.js";
3
+ import { t as n } from "./StaffPanel-DI1eTTp9.js";
4
+ import { createElementBlock as r, createElementVNode as i, createVNode as a, defineComponent as o, openBlock as s, provide as c, ref as l } from "vue";
5
+ //#region src/views/organization/staff/Staff.vue?vue&type=script&setup=true&lang.ts
6
+ var u = { class: "u-content-panel" }, d = { class: "u-left-panel" }, f = { class: "content" }, p = /* @__PURE__ */ e(/* @__PURE__ */ o({
7
+ name: "StaffPanel",
8
+ setup(e) {
9
+ let o = l(!1), p = l([]), m = l({});
10
+ return c("scrollPanelChange", o), c("active", m), c("treeList", p), (e, o) => (s(), r("div", u, [i("div", d, [a(t, {
11
+ title: e.$t("department"),
12
+ "init-load-all": !0,
13
+ "tree-otions": {
14
+ children: "children",
15
+ label: "deptName"
16
+ },
17
+ url: "/uums/department/treeDepartment"
18
+ }, null, 8, ["title"])]), i("div", f, [a(n)])]));
19
+ }
20
+ }), [["__scopeId", "data-v-1cfe93f2"]]);
21
+ //#endregion
22
+ export { p as default };
@@ -0,0 +1,149 @@
1
+ import { I as e } from "./router-CeluSGiD.js";
2
+ import { r as t } from "./api-BFNxcxSN.js";
3
+ import { createElementBlock as n, createVNode as r, defineComponent as i, onMounted as a, openBlock as o, ref as s, resolveComponent as c, withCtx as l } from "vue";
4
+ import { useRender as u } from "@utogether/utils";
5
+ //#region src/views/organization/staff/StaffInfo.vue?vue&type=script&setup=true&lang.ts
6
+ var d = { class: "config" }, f = /* @__PURE__ */ i({
7
+ __name: "StaffInfo",
8
+ props: {
9
+ show: {
10
+ type: Boolean,
11
+ default: !0
12
+ },
13
+ record: { default: () => ({}) },
14
+ dataStatus: { default: "detail" }
15
+ },
16
+ emits: ["onClose"],
17
+ setup(e, { emit: i }) {
18
+ let f = e, p = u(), m = s({}), h = s(null), g = s(!1), _ = {
19
+ userName: "userName",
20
+ userId: "id"
21
+ }, v = { disabled: f.dataStatus !== "add" }, y = [
22
+ {
23
+ field: "employeeCode",
24
+ required: !0,
25
+ span: 8,
26
+ itemRender: p.renderInput({ props: v })
27
+ },
28
+ {
29
+ field: "employeeName",
30
+ required: !0,
31
+ span: 8,
32
+ itemRender: p.renderInput()
33
+ },
34
+ {
35
+ field: "gender",
36
+ span: 8,
37
+ itemRender: p.renderDict("SU.GENDER")
38
+ },
39
+ {
40
+ field: "deptName",
41
+ required: !0,
42
+ span: 8,
43
+ itemRender: p.renderLov({
44
+ code: "SU.DEPARTMENT",
45
+ field: "deptName"
46
+ }, b)
47
+ },
48
+ {
49
+ field: "email",
50
+ span: 8,
51
+ itemRender: p.renderInput()
52
+ },
53
+ {
54
+ field: "identity",
55
+ span: 8,
56
+ itemRender: p.renderInput()
57
+ },
58
+ {
59
+ field: "employeeDate",
60
+ span: 8,
61
+ itemRender: p.renderDate()
62
+ },
63
+ {
64
+ field: "solarDay",
65
+ span: 8,
66
+ itemRender: p.renderDate()
67
+ },
68
+ {
69
+ field: "phone",
70
+ span: 8,
71
+ itemRender: p.renderInput()
72
+ },
73
+ {
74
+ field: "mobile",
75
+ span: 8,
76
+ itemRender: p.renderInput()
77
+ },
78
+ {
79
+ field: "userName",
80
+ title: "message.releateUser",
81
+ span: 8,
82
+ itemRender: p.renderSysUser({ mapField: _ })
83
+ }
84
+ ];
85
+ function b(e) {
86
+ e.row.deptName = e.item?.deptName || e.row.deptName, e.row.deptCode = e.item?.deptCode || e.row.deptCode, e.row.departmentId = e.item?.id || e.row.departmentId;
87
+ }
88
+ let x = i, S = () => {
89
+ h.value.validateForm(async (e) => {
90
+ if (!e) {
91
+ let { dataStatus: e } = f;
92
+ g.value = !0, e === "add" ? await t().post("/uums/employee", m.value) : await t().put("/uums/employee", m.value), g.value = !1, C();
93
+ }
94
+ });
95
+ };
96
+ function C() {
97
+ x("onClose");
98
+ }
99
+ return a(() => {
100
+ m.value = f.record;
101
+ }), (t, i) => {
102
+ let a = c("ut-form"), s = c("el-divider"), u = c("ut-button"), f = c("el-row"), p = c("el-drawer");
103
+ return o(), n("div", d, [r(p, {
104
+ "model-value": e.show,
105
+ "before-close": C,
106
+ direction: "rtl",
107
+ title: t.$t("message.title.employeeInfo"),
108
+ "destroy-on-close": "",
109
+ size: "66%"
110
+ }, {
111
+ default: l(() => [
112
+ r(a, {
113
+ ref_key: "suFormRef",
114
+ ref: h,
115
+ record: m.value,
116
+ loading: g.value,
117
+ items: y,
118
+ "data-status": e.dataStatus
119
+ }, null, 8, [
120
+ "record",
121
+ "loading",
122
+ "data-status"
123
+ ]),
124
+ r(s),
125
+ r(f, {
126
+ type: "flex",
127
+ justify: "end",
128
+ style: { "padding-right": "22px" }
129
+ }, {
130
+ default: l(() => [r(u, {
131
+ content: "cancel",
132
+ icon: "ri-close-fill",
133
+ onTap: C
134
+ }), r(u, {
135
+ content: "confirm",
136
+ icon: "ri-save-3-fill",
137
+ status: "u-cyan",
138
+ onTap: S
139
+ })]),
140
+ _: 1
141
+ })
142
+ ]),
143
+ _: 1
144
+ }, 8, ["model-value", "title"])]);
145
+ };
146
+ }
147
+ }), p = /* @__PURE__ */ e({ default: () => m }), m = f;
148
+ //#endregion
149
+ export { p as n, m as t };
@@ -0,0 +1,143 @@
1
+ import { I as e } from "./router-CeluSGiD.js";
2
+ import { r as t } from "./api-BFNxcxSN.js";
3
+ import { t as n } from "./await-to-js.es5-DkWYmPXW.js";
4
+ import { t as r } from "./StaffInfo-DPDRpz6F.js";
5
+ import { Fragment as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createVNode as c, defineComponent as l, inject as u, nextTick as d, openBlock as f, reactive as p, ref as m, resolveComponent as h, watch as g } from "vue";
6
+ import { warnMessage as _ } from "@utogether/utils";
7
+ import { clone as v } from "xe-utils";
8
+ import { useI18n as y } from "vue-i18n";
9
+ import { VxeUI as b } from "vxe-pc-ui";
10
+ //#region src/views/organization/staff/StaffPanel.vue?vue&type=script&setup=true&lang.tsx
11
+ var x = { class: "page-content" }, S = "/uums/employee", C = /* @__PURE__ */ l({
12
+ __name: "StaffPanel",
13
+ setup(e) {
14
+ let l = m(null), { t: C } = y(), w = u("active"), T = p({
15
+ record: {},
16
+ showModelView: !1,
17
+ fetchExtParam: {}
18
+ });
19
+ g(() => w.value, (e) => {
20
+ T.fetchExtParam = { departmentId: e?.id }, d(() => {
21
+ l.value.refreshData();
22
+ });
23
+ });
24
+ let E = [
25
+ {
26
+ code: "sync",
27
+ auth: "wechat",
28
+ status: "success",
29
+ icon: "ri-refresh-line"
30
+ },
31
+ {
32
+ code: "sync",
33
+ auth: "dingding",
34
+ status: "success",
35
+ icon: "ri-refresh-line"
36
+ },
37
+ {
38
+ code: "sync",
39
+ auth: "OA",
40
+ status: "success",
41
+ icon: "ri-refresh-line"
42
+ },
43
+ {
44
+ code: "bindUser",
45
+ auth: "bind",
46
+ status: "warning",
47
+ icon: "ri-bring-to-front"
48
+ },
49
+ {
50
+ code: "del",
51
+ auth: "/"
52
+ }
53
+ ], D = [{ field: "employeeCode" }, { field: "employeeName" }], O = [
54
+ {
55
+ type: "checkbox",
56
+ width: 50,
57
+ align: "center"
58
+ },
59
+ { field: "employeeCode" },
60
+ {
61
+ field: "employeeName",
62
+ width: 150
63
+ },
64
+ {
65
+ field: "gender",
66
+ width: 100,
67
+ formatter: ["formatDict", "SU.GENDER"]
68
+ },
69
+ {
70
+ field: "enabled",
71
+ width: 100,
72
+ formatter: ["formatDict", "SU.ENABLE"]
73
+ },
74
+ {
75
+ field: "operate",
76
+ width: 150,
77
+ fixed: "right",
78
+ slots: { default: ({ row: e }) => {
79
+ let t = ["1", "Y"].includes(e.enabled) ? "disabled" : "enable", n = ["1", "Y"].includes(e.enabled) ? "ri-stop-circle-fill" : "ri-play-circle-fill", r = ["1", "Y"].includes(e.enabled) ? "warning" : "success";
80
+ return [c(i, null, [c(h("ut-button"), {
81
+ icon: "ri-edit-box-line",
82
+ content: "edit",
83
+ onTap: () => j(e)
84
+ }, null), c(h("ut-button"), {
85
+ icon: n,
86
+ content: t,
87
+ status: r,
88
+ onTap: () => M(e)
89
+ }, null)])];
90
+ } }
91
+ }
92
+ ], k = { toolbarButtonClick({ code: e }) {
93
+ e === "add" && A();
94
+ } }, A = () => {
95
+ if (!w.value?.deptName) return _("请先选择部门");
96
+ T.dataStatus = "add", T.record = {}, T.record.departmentId = w.value?.id, T.record.deptName = w.value.deptName, T.record.enabled = "1", T.showModelView = !0;
97
+ }, j = (e) => {
98
+ T.dataStatus = "update", T.record = e, T.showModelView = !0;
99
+ }, M = async (e) => {
100
+ let n = v(e, !0);
101
+ l.value.showLoading(), n.enabled = n.enabled === "1" ? "0" : "1", await t().put(S, n), l.value.hiddenLoading(), l.value.refreshData();
102
+ }, N = async () => {
103
+ if (await b.modal.confirm(C("message.tip.confirmSync")) !== "confirm") return;
104
+ l.value.showLoading();
105
+ let [e] = await n(t().post("/uums/employee/syncEwEmp", {}));
106
+ l.value.hiddenLoading(), !e && l.value.refreshData();
107
+ }, P = async () => {
108
+ let e = l.value.getSelectRecords();
109
+ if (!e.length) return;
110
+ l.value.showLoading();
111
+ let [r] = await n(t().post("/uums/employee/bindUser", e));
112
+ l.value.hiddenLoading(), !r && l.value.refreshData();
113
+ }, F = (e) => {
114
+ e === "sync" && N(), e === "bindUser" && P();
115
+ }, I = { querySuccess: (e) => {} }, L = () => {
116
+ T.showModelView = !1, l.value.refreshData();
117
+ };
118
+ return (e, t) => {
119
+ let n = h("ut-grid");
120
+ return f(), s("div", x, [c(n, {
121
+ ref_key: "xgrid",
122
+ ref: l,
123
+ items: D,
124
+ columns: O,
125
+ "default-params": T.fetchExtParam,
126
+ events: k,
127
+ "auto-load": !1,
128
+ buttons: E,
129
+ url: S,
130
+ callback: I,
131
+ mode: "form",
132
+ onButtonClick: F
133
+ }, null, 8, ["default-params"]), T.showModelView ? (f(), a(r, {
134
+ key: 0,
135
+ record: T.record,
136
+ "data-status": T.dataStatus,
137
+ onOnClose: L
138
+ }, null, 8, ["record", "data-status"])) : o("", !0)]);
139
+ };
140
+ }
141
+ }), w = /* @__PURE__ */ e({ default: () => T }), T = C;
142
+ //#endregion
143
+ export { w as n, T as t };
@@ -0,0 +1,12 @@
1
+ import { t as e } from "./_plugin-vue_export-helper-C6QCLu9I.js";
2
+ import { t } from "./SysUserPanel-xwZdVjdp.js";
3
+ import { createElementBlock as n, createVNode as r, defineComponent as i, openBlock as a, provide as o, ref as s } from "vue";
4
+ //#region src/views/system/sysUser/SysUser.vue?vue&type=script&setup=true&lang.ts
5
+ var c = { class: "u-content-panel1" }, l = /* @__PURE__ */ e(/* @__PURE__ */ i({
6
+ __name: "SysUser",
7
+ setup(e) {
8
+ return o("treeList", s([])), (e, i) => (a(), n("div", c, [r(t)]));
9
+ }
10
+ }), [["__scopeId", "data-v-8708bc91"]]);
11
+ //#endregion
12
+ export { l as default };