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

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 (164) hide show
  1. package/dist/403-gdcH0-Bo.js +65 -0
  2. package/dist/404-Se2SF97M.js +65 -0
  3. package/dist/500-B6j9AqLo.js +67 -0
  4. package/dist/AuthorityInfo-CQ8ydZvr.js +4 -0
  5. package/dist/AuthorityInfo.vue_vue_type_style_index_0_lang-C4NRvS8p.js +100 -0
  6. package/dist/AuthorityPanel-lVnZ5bce.js +4 -0
  7. package/dist/AuthorityPanel.vue_vue_type_style_index_0_lang-nsfhDlvV.js +113 -0
  8. package/dist/Company-BzSVBSC4.js +25 -0
  9. package/dist/CompanyPanel-DBjZB4aJ.js +204 -0
  10. package/dist/DataSet-iBHzs75s.js +147 -0
  11. package/dist/Department-BkgseHo8.js +25 -0
  12. package/dist/DepartmentPanel-Sen93_2M.js +249 -0
  13. package/dist/DesignPanel-pqDcwaFC.js +4 -0
  14. package/dist/DesignPanel.vue_vue_type_style_index_0_lang-BjtYyEw7.js +1013 -0
  15. package/dist/DictView-CJLG4LlE.js +110 -0
  16. package/dist/InvOrganization-D0Jq1IAa.js +74 -0
  17. package/dist/Org-CO_1WT39.js +39 -0
  18. package/dist/Preview-DLI4Bwel.js +48 -0
  19. package/dist/ReportDefine-Cw46OnJ_.js +10 -0
  20. package/dist/ReportDesign-D4sHTXT7.js +165 -0
  21. package/dist/ReportQuery-DtOCvQSN.js +74 -0
  22. package/dist/ReportQueryFrom-QjL-ETPq.js +4 -0
  23. package/dist/ReportQueryFrom.vue_vue_type_style_index_0_lang-Dj9ne87n.js +177 -0
  24. package/dist/ReportTemplate-BxAgc_Aj.js +161 -0
  25. package/dist/Role-Df77BBD-.js +25 -0
  26. package/dist/RoleAssign-BrunouML.js +26 -0
  27. package/dist/RolePanel-DSVwqhiD.js +4 -0
  28. package/dist/RolePanel-HLA7XBlN.js +4 -0
  29. package/dist/RolePanel.vue_vue_type_script_setup_true_lang-CKlbqRa5.js +132 -0
  30. package/dist/RolePanel.vue_vue_type_script_setup_true_lang-CN0rUxKz.js +152 -0
  31. package/dist/ScrollPanel.vue_vue_type_style_index_0_lang-D_FeSXKv.js +99 -0
  32. package/dist/Staff-BeL1xcRf.js +26 -0
  33. package/dist/StaffInfo-CIfnltyX.js +4 -0
  34. package/dist/StaffInfo.vue_vue_type_script_setup_true_lang-DbLFwWfG.js +107 -0
  35. package/dist/StaffPanel-BV2CHWac.js +4 -0
  36. package/dist/StaffPanel.vue_vue_type_script_setup_true_lang-CvT-Vp2G.js +153 -0
  37. package/dist/SysUser-DPfNvthk.js +15 -0
  38. package/dist/SysUserPanel-CoLKYlQE.js +4 -0
  39. package/dist/SysUserPanel.vue_vue_type_script_setup_true_lang-lcO3Cjbq.js +353 -0
  40. package/dist/SystemMenu-sdj1dRDA.js +156 -0
  41. package/dist/UserInfo-CTX4hhFl.js +4 -0
  42. package/dist/UserInfo.vue_vue_type_style_index_0_lang-ClhCd_8z.js +160 -0
  43. package/dist/await-to-js.es5-Bv3Eu4mi.js +10 -0
  44. package/dist/childView-BDmWwJO5.js +4 -0
  45. package/dist/childView-Dx3ACtHa.js +4 -0
  46. package/dist/childView.vue_vue_type_style_index_0_lang-CfKq_0FN.js +183 -0
  47. package/dist/childView.vue_vue_type_style_index_0_lang-DxZNtkhd.js +143 -0
  48. package/dist/code-rule-cvN4gYC_.js +148 -0
  49. package/dist/core.es.js +24 -6
  50. package/dist/cron-task-B0TkxFdp.js +135 -0
  51. package/dist/flow-task-PoDnE_kE.js +10 -0
  52. package/dist/frameView-5cy5BSgS.js +43 -0
  53. package/dist/img/minicolors.png +0 -0
  54. package/dist/index-C5WRTwvI.js +3006 -0
  55. package/dist/layout-home-DrARg-3o.js +232 -0
  56. package/dist/layoutView-25v_ngk5.js +3191 -0
  57. package/dist/log-in-Bmz5Uhbt.js +116 -0
  58. package/dist/log-out-B-8m3oNj.js +130 -0
  59. package/dist/login-Cmp2RvvW.js +217 -0
  60. package/dist/login-log-CVvRgZSu.js +70 -0
  61. package/dist/lov-view-BATtzw2X.js +99 -0
  62. package/dist/menuInfo-BIvrE7nm.js +4 -0
  63. package/dist/menuInfo.vue_vue_type_style_index_0_lang-B6USomit.js +360 -0
  64. package/dist/pda-app-CzHVyeEa.js +707 -0
  65. package/dist/redirect-DTz8GSnv.js +15 -0
  66. package/dist/resource-Y5lGB38n.js +97 -0
  67. package/dist/su-welcome-CXA6OzBw.js +878 -0
  68. package/dist/sys-config-CqO03LeC.js +385 -0
  69. package/dist/udp-core.css +1 -2
  70. package/dist/useNav-C-rCgubt.js +84 -0
  71. package/dist/utogether-MlnyYtNS.js +4 -0
  72. package/dist/wecom-push-B75FLee5.js +70 -0
  73. package/index.ts +3 -2
  74. package/package.json +1 -1
  75. package/src/App.vue +79 -73
  76. package/src/api/index.ts +1 -1
  77. package/src/components/SuQrcode/src/index.tsx +231 -236
  78. package/src/components/udp/grid/index.vue +9 -11
  79. package/src/components/udp/utils.ts +420 -414
  80. package/src/layout/components/lay-panel/index.vue +2 -6
  81. package/src/layout/components/lay-search/components/SearchModal.vue +7 -3
  82. package/src/main.ts +111 -110
  83. package/src/router/index.ts +156 -187
  84. package/src/router/utils.ts +2 -3
  85. package/src/store/modules/system.ts +7 -0
  86. package/src/style/vxetable.scss +372 -364
  87. package/src/utils/authority/index.ts +46 -29
  88. package/src/utils/udp/http/index.ts +115 -64
  89. package/src/utils/udp/http/types.d.ts +15 -14
  90. package/src/views/login/login-view.vue +280 -301
  91. package/src/views/organization/department/DepartmentPanel.vue +3 -4
  92. package/src/views/system/sys/sys-config.vue +344 -344
  93. package/src/views/uhome/components/home-todo.vue +179 -178
  94. package/src/views/ulogin/login.vue +8 -41
  95. package/tsconfig.json +2 -3
  96. package/types/global.d.ts +234 -234
  97. package/vite.config.ts +2 -1
  98. package/dist/403-QwBKrRZE.js +0 -72
  99. package/dist/404-Cr7MbzNV.js +0 -72
  100. package/dist/500-B7kCOeIA.js +0 -77
  101. package/dist/AuthorityInfo-Dwml2K4S.js +0 -91
  102. package/dist/AuthorityPanel-DzPhsPpa.js +0 -98
  103. package/dist/Company-BhOlvl7Q.js +0 -21
  104. package/dist/CompanyPanel-ByhY5-Sq.js +0 -199
  105. package/dist/DataSet-CuGZcKC-.js +0 -141
  106. package/dist/Department-QvngN63N.js +0 -21
  107. package/dist/DepartmentPanel-BCXqC39J.js +0 -2
  108. package/dist/DepartmentPanel-DntGycxr.js +0 -242
  109. package/dist/DesignPanel-BMN4DZ0R.js +0 -1196
  110. package/dist/DictView-ERFqZ5VD.js +0 -100
  111. package/dist/File-WJXjGYxr.js +0 -89
  112. package/dist/InvOrganization-BwMmD8Ua.js +0 -76
  113. package/dist/Org-HgnOWubi.js +0 -76
  114. package/dist/Preview-CVZdnHB1.js +0 -45
  115. package/dist/ReIcon-DecitXmg.js +0 -413
  116. package/dist/ReportDefine-BgLM-Rjk.js +0 -10
  117. package/dist/ReportDesign-CjfTyyy_.js +0 -158
  118. package/dist/ReportQuery-CP-E0Puv.js +0 -101
  119. package/dist/ReportQueryFrom-D7SPPAps.js +0 -198
  120. package/dist/ReportTemplate-DE25zc1f.js +0 -162
  121. package/dist/Role-K7v_ZhFE.js +0 -21
  122. package/dist/RoleAssign-C16fjLaX.js +0 -22
  123. package/dist/RolePanel-CV-xPlYJ.js +0 -176
  124. package/dist/RolePanel-DPCe9k8f.js +0 -131
  125. package/dist/ScrollPanel-DW30pGz1.js +0 -88
  126. package/dist/Staff-w2ly4qd0.js +0 -22
  127. package/dist/StaffInfo-DPDRpz6F.js +0 -149
  128. package/dist/StaffPanel-DI1eTTp9.js +0 -143
  129. package/dist/SysUser-BMTX1cJM.js +0 -12
  130. package/dist/SysUserPanel-xwZdVjdp.js +0 -365
  131. package/dist/SystemMenu-TXhiQZVm.js +0 -154
  132. package/dist/UserInfo-JQqw8FMT.js +0 -194
  133. package/dist/_plugin-vue_export-helper-C6QCLu9I.js +0 -8
  134. package/dist/api-BFNxcxSN.js +0 -30
  135. package/dist/authority-Bi6BGB5B.js +0 -20
  136. package/dist/await-to-js.es5-DkWYmPXW.js +0 -10
  137. package/dist/childView-Bk8OD9bV.js +0 -181
  138. package/dist/childView-CyrcwshT.js +0 -184
  139. package/dist/code-rule-QFrhqFrW.js +0 -151
  140. package/dist/contant-Q77dU_V3.js +0 -4
  141. package/dist/cron-task-BpUDKEAU.js +0 -131
  142. package/dist/flow-task-DAc2NrDU.js +0 -11
  143. package/dist/frameView-Di0zJZUR.js +0 -39
  144. package/dist/layout-home-BVp7vYLR.js +0 -239
  145. package/dist/layoutView-DFUjrqAS.js +0 -2662
  146. package/dist/log-in-BrNB0mLz.js +0 -117
  147. package/dist/log-out-dYfqvzy6.js +0 -111
  148. package/dist/login-BdCDnuXL.js +0 -233
  149. package/dist/login-log-CJak-ANA.js +0 -79
  150. package/dist/lov-view-DkmG4K57.js +0 -95
  151. package/dist/menuInfo-kp2wNYOp.js +0 -346
  152. package/dist/mitt-CQgI7DYU.js +0 -27
  153. package/dist/pda-app-CA7YI37u.js +0 -589
  154. package/dist/redirect-N0k4tImU.js +0 -16
  155. package/dist/resource-CfQTHFcs.js +0 -94
  156. package/dist/router-CeluSGiD.js +0 -1531
  157. package/dist/su-welcome-JeiovGpe.js +0 -799
  158. package/dist/sys-config-Ddb3vBpK.js +0 -316
  159. package/dist/udp-core-Dhm-BlAs.js +0 -2032
  160. package/dist/useDataThemeChange-BCy8JBG7.js +0 -226
  161. package/dist/useNav-DY8FkltH.js +0 -106
  162. package/dist/utogether-l7JXs4Lv.js +0 -4
  163. package/dist/water-mark-WDQZ9YqB.js +0 -119
  164. package/dist/wecom-push-kWkAVRCj.js +0 -77
@@ -1,131 +0,0 @@
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 };
@@ -1,88 +0,0 @@
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 };
@@ -1,22 +0,0 @@
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 };
@@ -1,149 +0,0 @@
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 };
@@ -1,143 +0,0 @@
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 };
@@ -1,12 +0,0 @@
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 };