@utogether/udp-core 2.0.0-beta.26 → 2.0.0-beta.28

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 (183) hide show
  1. package/dist/403-CyoOD-Ik.js +65 -0
  2. package/dist/404-Ch_OHTw0.js +65 -0
  3. package/dist/500-Cf9am7HK.js +67 -0
  4. package/dist/AuthorityInfo-BJ427cqG.js +4 -0
  5. package/dist/AuthorityInfo.vue_vue_type_style_index_0_lang-D9y7AwbB.js +99 -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-qo-lKPkv.js +25 -0
  9. package/dist/CompanyPanel-DkKWAKvY.js +204 -0
  10. package/dist/DataSet-iBHzs75s.js +147 -0
  11. package/dist/Department-CHUQByKX.js +25 -0
  12. package/dist/DepartmentPanel-C742dfOO.js +248 -0
  13. package/dist/DesignPanel-D9oE5R7m.js +4 -0
  14. package/dist/DesignPanel.vue_vue_type_style_index_0_lang-hYldVEbo.js +1097 -0
  15. package/dist/DictView-CrFXprP9.js +110 -0
  16. package/dist/InvOrganization-Cz8SzIgs.js +73 -0
  17. package/dist/Org-Bzt6yKox.js +38 -0
  18. package/dist/Preview-jonigfMQ.js +48 -0
  19. package/dist/ReportDefine-BpiM5Ovq.js +10 -0
  20. package/dist/ReportDesign-fp09cXJ7.js +164 -0
  21. package/dist/ReportQuery-52ZP1PYP.js +74 -0
  22. package/dist/ReportQueryFrom-DSYavJb1.js +4 -0
  23. package/dist/ReportQueryFrom.vue_vue_type_style_index_0_lang-DBGYEp0u.js +177 -0
  24. package/dist/ReportTemplate-CA_UW0eD.js +161 -0
  25. package/dist/Role-DqOt8Bk0.js +25 -0
  26. package/dist/RoleAssign-BdxhefhQ.js +26 -0
  27. package/dist/RolePanel-2gZ3H0ET.js +4 -0
  28. package/dist/RolePanel-BsNd0svJ.js +4 -0
  29. package/dist/RolePanel.vue_vue_type_script_setup_true_lang-DLOwgF99.js +152 -0
  30. package/dist/RolePanel.vue_vue_type_script_setup_true_lang-DmzD9kab.js +131 -0
  31. package/dist/ScrollPanel.vue_vue_type_style_index_0_lang-B9ptUMeI.js +99 -0
  32. package/dist/Staff-D3L8fEoY.js +26 -0
  33. package/dist/StaffInfo-DYRw6ZYJ.js +4 -0
  34. package/dist/StaffInfo.vue_vue_type_script_setup_true_lang-xqEOQnMs.js +107 -0
  35. package/dist/StaffPanel-DkrNH6Px.js +4 -0
  36. package/dist/StaffPanel.vue_vue_type_script_setup_true_lang-BPBMnliy.js +152 -0
  37. package/dist/SysUser-Bl1-cIpJ.js +15 -0
  38. package/dist/SysUserPanel-yxNLaBwt.js +4 -0
  39. package/dist/SysUserPanel.vue_vue_type_script_setup_true_lang-BDcsgSl5.js +352 -0
  40. package/dist/SystemMenu-C4_Arn12.js +155 -0
  41. package/dist/UserInfo-QcNwJCUR.js +4 -0
  42. package/dist/UserInfo.vue_vue_type_style_index_0_lang-DLIeUphX.js +159 -0
  43. package/dist/childView-B23DEO2u.js +4 -0
  44. package/dist/childView-saDZQv9x.js +4 -0
  45. package/dist/childView.vue_vue_type_style_index_0_lang-RsKR6CAC.js +182 -0
  46. package/dist/childView.vue_vue_type_style_index_0_lang-ZFEfavUY.js +142 -0
  47. package/dist/code-rule-2_Ihx_by.js +147 -0
  48. package/dist/core.es.js +26 -6
  49. package/dist/cron-task-BFOPJQIk.js +134 -0
  50. package/dist/flow-task-PoDnE_kE.js +10 -0
  51. package/dist/frameView-f7Ya0Knj.js +43 -0
  52. package/dist/index-BpdTDaTk.js +3213 -0
  53. package/dist/layout-home-v3DPJ7rB.js +231 -0
  54. package/dist/layoutView-DZHoQDH1.js +3190 -0
  55. package/dist/log-in-BPAMJTwH.js +115 -0
  56. package/dist/log-out-DZACF0jg.js +129 -0
  57. package/dist/login-B8cwozax.js +216 -0
  58. package/dist/login-log-CVvRgZSu.js +70 -0
  59. package/dist/lov-view-Ba7Y7xy0.js +98 -0
  60. package/dist/menuInfo-BpRKFYK8.js +4 -0
  61. package/dist/menuInfo.vue_vue_type_style_index_0_lang-DJ5sUC6m.js +359 -0
  62. package/dist/pda-app-C0jJecrL.js +706 -0
  63. package/dist/redirect-DTz8GSnv.js +15 -0
  64. package/dist/resource-BG22Cw4P.js +97 -0
  65. package/dist/su-welcome-DaxhbrC6.js +879 -0
  66. package/dist/sys-config-CG2fMtak.js +384 -0
  67. package/dist/udp-core.css +1 -2
  68. package/dist/useNav-_u2UAQWk.js +84 -0
  69. package/dist/utogether-MlnyYtNS.js +4 -0
  70. package/dist/wecom-push-B75FLee5.js +70 -0
  71. package/index.ts +54 -50
  72. package/package.json +21 -21
  73. package/src/App.vue +79 -78
  74. package/src/api/http.ts +10 -4
  75. package/src/api/index.ts +51 -51
  76. package/src/api/user.ts +64 -64
  77. package/src/components/SuQrcode/src/index.tsx +231 -236
  78. package/src/components/udp/content/index.vue +93 -93
  79. package/src/components/udp/form-upload/form-upload.vue +496 -496
  80. package/src/components/udp/grid/index.vue +643 -544
  81. package/src/components/udp/index.ts +2 -1
  82. package/src/components/udp/modal-form/index.vue +326 -0
  83. package/src/components/udp/utils.ts +420 -420
  84. package/src/layout/components/lay-navbar/index.vue +240 -240
  85. package/src/layout/components/lay-panel/index.vue +2 -6
  86. package/src/layout/components/lay-search/components/SearchModal.vue +185 -181
  87. package/src/layout/components/lay-sidebar/mixNav.vue +261 -261
  88. package/src/layout/components/lay-sidebar/sidebarItem.vue +199 -195
  89. package/src/layout/components/lay-sidebar/vertical.vue +92 -92
  90. package/src/layout/layoutView.vue +1 -0
  91. package/src/main.ts +111 -109
  92. package/src/plugins/i18n/zh.ts +5 -1
  93. package/src/plugins/vxe-table/index.ts +116 -116
  94. package/src/router/index.ts +5 -34
  95. package/src/router/utils.ts +434 -430
  96. package/src/store/modules/permission.ts +1 -1
  97. package/src/store/modules/system.ts +193 -186
  98. package/src/style/print-lock.css +380 -375
  99. package/src/style/suprint.css +990 -985
  100. package/src/style/vxetable.scss +372 -364
  101. package/src/utils/authority/index.ts +19 -2
  102. package/src/utils/dataFormat/index.ts +309 -222
  103. package/src/utils/udp/http/index.ts +126 -67
  104. package/src/utils/udp/http/types.d.ts +15 -14
  105. package/src/views/login/login-view.vue +4 -21
  106. package/src/views/organization/department/DepartmentPanel.vue +3 -4
  107. package/src/views/system/sys/sys-config.vue +344 -344
  108. package/src/views/uhome/components/home-todo.vue +191 -178
  109. package/src/views/uhome/dynamic-card.vue +31 -31
  110. package/src/views/uhome/su-welcome.vue +310 -310
  111. package/src/views/ulogin/login.vue +292 -296
  112. package/src/views/urpt/design/DesignPanel.vue +538 -507
  113. package/src/views/urpt/design/print-data.ts +39 -59
  114. package/tsconfig.json +2 -3
  115. package/types/global.d.ts +234 -234
  116. package/vite.config.ts +2 -1
  117. package/dist/403-D6Wb3JJh.js +0 -72
  118. package/dist/404-B_HNbPNV.js +0 -72
  119. package/dist/500-BMemTTy1.js +0 -77
  120. package/dist/AuthorityInfo-6wHxwiFM.js +0 -91
  121. package/dist/AuthorityPanel-OqF_DvXA.js +0 -98
  122. package/dist/Company-BLXSfow0.js +0 -21
  123. package/dist/CompanyPanel-B4kRZ5Cg.js +0 -199
  124. package/dist/DataSet-CuGZcKC-.js +0 -141
  125. package/dist/Department-oFhsa7cd.js +0 -21
  126. package/dist/DepartmentPanel-B1UGpu-r.js +0 -242
  127. package/dist/DepartmentPanel-BL58AdoT.js +0 -2
  128. package/dist/DesignPanel-DmkFVw1N.js +0 -1196
  129. package/dist/DictView-CC5yMzOq.js +0 -100
  130. package/dist/File-WJXjGYxr.js +0 -89
  131. package/dist/InvOrganization-BwMmD8Ua.js +0 -76
  132. package/dist/Org-HgnOWubi.js +0 -76
  133. package/dist/Preview-CAzWxLmP.js +0 -45
  134. package/dist/ReIcon-DecitXmg.js +0 -413
  135. package/dist/ReportDefine-BgLM-Rjk.js +0 -10
  136. package/dist/ReportDesign-DwchGG2P.js +0 -158
  137. package/dist/ReportQuery-D5jaRJEn.js +0 -101
  138. package/dist/ReportQueryFrom-CNlmtYey.js +0 -198
  139. package/dist/ReportTemplate-CNcTmccs.js +0 -162
  140. package/dist/Role-Be8WfdCA.js +0 -21
  141. package/dist/RoleAssign-CtehGAUf.js +0 -22
  142. package/dist/RolePanel-CAwITg_q.js +0 -131
  143. package/dist/RolePanel-SN0FGFZ7.js +0 -176
  144. package/dist/ScrollPanel-DW30pGz1.js +0 -88
  145. package/dist/Staff-V2YsNKcj.js +0 -22
  146. package/dist/StaffInfo-CKRPW0r4.js +0 -149
  147. package/dist/StaffPanel-BxcgMg7u.js +0 -143
  148. package/dist/SysUser-Dxyj5w5m.js +0 -12
  149. package/dist/SysUserPanel-DI6CWcZo.js +0 -365
  150. package/dist/SystemMenu-BBHREM8T.js +0 -154
  151. package/dist/UserInfo-BMVQ0xwE.js +0 -194
  152. package/dist/_plugin-vue_export-helper-C6QCLu9I.js +0 -8
  153. package/dist/api-BFNxcxSN.js +0 -30
  154. package/dist/authority-BJFEUdrh.js +0 -20
  155. package/dist/await-to-js.es5-DkWYmPXW.js +0 -10
  156. package/dist/childView-BBjPEraB.js +0 -184
  157. package/dist/childView-DNqG2UVm.js +0 -181
  158. package/dist/code-rule-QFrhqFrW.js +0 -151
  159. package/dist/contant-Q77dU_V3.js +0 -4
  160. package/dist/cron-task-BpUDKEAU.js +0 -131
  161. package/dist/flow-task-DAc2NrDU.js +0 -11
  162. package/dist/frameView-Di0zJZUR.js +0 -39
  163. package/dist/layout-home-BVp7vYLR.js +0 -239
  164. package/dist/layoutView-B6Mx2ERA.js +0 -2662
  165. package/dist/log-in-BrNB0mLz.js +0 -117
  166. package/dist/log-out-dYfqvzy6.js +0 -111
  167. package/dist/login-D_Hjy3Jd.js +0 -231
  168. package/dist/login-log-CJak-ANA.js +0 -79
  169. package/dist/lov-view-DM5Nm5tW.js +0 -95
  170. package/dist/menuInfo-BlOY1KZW.js +0 -346
  171. package/dist/mitt-CQgI7DYU.js +0 -27
  172. package/dist/pda-app-CA7YI37u.js +0 -589
  173. package/dist/redirect-N0k4tImU.js +0 -16
  174. package/dist/resource-CfQTHFcs.js +0 -94
  175. package/dist/su-welcome-DVD3S_du.js +0 -799
  176. package/dist/sys-config-Ddb3vBpK.js +0 -316
  177. package/dist/system-Cm3lyBas.js +0 -1528
  178. package/dist/udp-core-DaQd5CF1.js +0 -2028
  179. package/dist/useDataThemeChange-DJ4K3VGp.js +0 -226
  180. package/dist/useNav-BhOJIdrJ.js +0 -106
  181. package/dist/utogether-l7JXs4Lv.js +0 -4
  182. package/dist/water-mark-WDQZ9YqB.js +0 -119
  183. package/dist/wecom-push-kWkAVRCj.js +0 -77
@@ -1,199 +0,0 @@
1
- import { I as e } from "./system-Cm3lyBas.js";
2
- import { r as t } from "./api-BFNxcxSN.js";
3
- import { t as n } from "./_plugin-vue_export-helper-C6QCLu9I.js";
4
- import { createBlock as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, createTextVNode as s, createVNode as c, defineComponent as l, inject as u, openBlock as d, reactive as f, resolveComponent as p, toDisplayString as m, watch as h, withCtx as g } from "vue";
5
- import { successMessage as _, warnMessage as v } from "@utogether/utils";
6
- import { clone as y } from "xe-utils";
7
- import { templateRef as b } from "@vueuse/core";
8
- import { useI18n as x } from "vue-i18n";
9
- import { VxeUI as S } from "vxe-table";
10
- //#region src/views/organization/company/CompanyPanel.vue?vue&type=script&setup=true&lang.ts
11
- var C = { class: "page-content" }, w = "/uums/unit", T = /* @__PURE__ */ l({
12
- __name: "CompanyPanel",
13
- setup(e) {
14
- let n = f({
15
- record: {},
16
- dataList: [],
17
- submitLoading: !1,
18
- dialogFormVisible: !1,
19
- isChecked: !1,
20
- dataStatus: ""
21
- }), { t: l } = x(), T = {
22
- unitName: [{
23
- required: !0,
24
- message: `${l("message.required")}${l("message.udp.unitName")}`
25
- }],
26
- unitCode: [{
27
- required: !0,
28
- message: `${l("message.required")}${l("message.udp.unitCode")}`
29
- }]
30
- }, E = u("active"), D = u("scrollPanelChange"), O = t();
31
- h(() => E.value, (e, t) => {
32
- n.record = E.value, e?.id && t?.id && e !== t && A("detail");
33
- });
34
- let k = () => {
35
- n.dataStatus = "add", n.record = {}, n.record.parentId = E.value?.id, n.isChecked = !1, n.dialogFormVisible = !0;
36
- }, A = (e) => {
37
- n.dataStatus = e, n.record = y(E.value, !0), n.dialogFormVisible = !0;
38
- }, j = b("xForm", null), M = () => {
39
- j.value.validate(async (e) => {
40
- if (!e) {
41
- let { record: e, dataStatus: t } = n;
42
- t === "add" ? await O.post(w, e) : await O.put(w, e), P();
43
- }
44
- });
45
- }, N = async () => {
46
- let { record: e } = n;
47
- if (e.children?.length) return v(l("message.deletePartment"));
48
- await S.modal.confirm(l("message.tip.del", { msg: "aaaaa" })) === "confirm" && (await O.delete(w, e), P());
49
- }, P = () => {
50
- D.value = !0, _(l("message.operateSuccess")), I();
51
- }, F = () => {
52
- n.dialogFormVisible = !1, n.dataStatus = "";
53
- }, I = () => {
54
- n.dialogFormVisible = !1;
55
- };
56
- return (e, t) => {
57
- let l = p("ut-button"), u = p("vxe-toolbar"), f = p("vxe-form-item"), h = p("vxe-form"), _ = p("el-row"), v = p("vxe-checkbox"), y = p("vxe-button"), b = p("el-card");
58
- return d(), a("div", C, [c(u, {
59
- perfect: "",
60
- class: ""
61
- }, {
62
- buttons: g(() => [
63
- c(l, {
64
- status: "u-cyan",
65
- icon: "ri-add-line",
66
- content: "add",
67
- onTap: t[0] ||= (e) => k()
68
- }),
69
- c(l, {
70
- status: "primary",
71
- icon: "ri-edit-box-line",
72
- content: "edit",
73
- onTap: t[1] ||= (e) => A("update")
74
- }),
75
- c(l, {
76
- status: "danger",
77
- icon: "ri-close-fill",
78
- content: "delete",
79
- onTap: t[2] ||= (e) => N()
80
- })
81
- ]),
82
- _: 1
83
- }), n.dialogFormVisible ? (d(), r(_, {
84
- key: 0,
85
- type: "flex",
86
- justify: "center",
87
- align: "middle",
88
- class: "w-departInfo-wrapper"
89
- }, {
90
- default: g(() => [c(b, {
91
- width: "60%",
92
- shadow: "always",
93
- class: "box-card w-card-wrapper"
94
- }, {
95
- default: g(() => [
96
- t[4] ||= o("div", { class: "clearfix" }, [o("span", { class: "w-card-title" })], -1),
97
- c(_, null, {
98
- default: g(() => [c(h, {
99
- ref_key: "xForm",
100
- ref: j,
101
- data: n.record,
102
- rules: T,
103
- "label-width": "80px"
104
- }, {
105
- default: g(() => [
106
- c(f, {
107
- title: e.$t("message.udp.unitName"),
108
- field: "unitName",
109
- "item-render": {
110
- name: "$input",
111
- props: { disabled: n.dataStatus === "detail" }
112
- },
113
- span: 24
114
- }, null, 8, ["title", "item-render"]),
115
- c(f, {
116
- title: e.$t("message.udp.unitCode"),
117
- field: "unitCode",
118
- "item-render": {
119
- name: "$input",
120
- props: { disabled: n.dataStatus !== "add" }
121
- },
122
- span: 24
123
- }, null, 8, ["title", "item-render"]),
124
- c(f, {
125
- title: e.$t("message.udp.unitNote"),
126
- field: "unitNote",
127
- "item-render": {
128
- name: "$input",
129
- props: { disabled: n.dataStatus === "detail" }
130
- },
131
- span: 24
132
- }, null, 8, ["title", "item-render"])
133
- ]),
134
- _: 1
135
- }, 8, ["data"])]),
136
- _: 1
137
- }),
138
- c(_, {
139
- type: "flex",
140
- justify: "center"
141
- }, {
142
- default: g(() => [
143
- n.dataStatus === "add" ? (d(), r(v, {
144
- key: 0,
145
- modelValue: n.isChecked,
146
- "onUpdate:modelValue": t[3] ||= (e) => n.isChecked = e,
147
- style: {
148
- "padding-top": "5px",
149
- "margin-right": "8px"
150
- }
151
- }, {
152
- default: g(() => [s(m(e.$t("message.udp.continueAdd")), 1)]),
153
- _: 1
154
- }, 8, ["modelValue"])) : i("", !0),
155
- n.dataStatus === "detail" ? i("", !0) : (d(), r(y, {
156
- key: 1,
157
- status: "primary",
158
- content: e.$t("message.btn.confirm"),
159
- onClick: M
160
- }, null, 8, ["content"])),
161
- n.dataStatus === "detail" ? i("", !0) : (d(), r(y, {
162
- key: 2,
163
- status: "warning",
164
- content: e.$t("message.btn.cancel"),
165
- onClick: F
166
- }, null, 8, ["content"]))
167
- ]),
168
- _: 1
169
- })
170
- ]),
171
- _: 1
172
- })]),
173
- _: 1
174
- })) : (d(), r(_, {
175
- key: 1,
176
- class: "w-noclick-wrapper"
177
- }, {
178
- default: g(() => [...t[5] ||= [o("div", { class: "w-content-wrapper" }, [o("ul", null, [
179
- o("li", { class: "w-department-line" }, [
180
- o("div", null, "● 点击新建,新建租户信息。"),
181
- o("div", { style: {
182
- margin: "0",
183
- "text-indent": "2em"
184
- } }, " 已点击树结构上的租户名称,默认创建为当前租户的下属租户 "),
185
- o("div", { style: {
186
- margin: "0",
187
- "text-indent": "2em"
188
- } }, "未点击树结构上的租户名称,则创建为一级租户")
189
- ]),
190
- o("li", { class: "w-department-line" }, "● 点击树结构上的租户名称,点击修改按钮,修改租户信息。"),
191
- o("li", { class: "w-department-line" }, [o("div", null, "● 点击树结构上的租户名称,点击删除按钮,删除租户信息。"), o("div", { style: { "text-indent": "2em" } }, "当租户下有单位存在时,不允许删除租户信息。")])
192
- ])], -1)]]),
193
- _: 1
194
- }))]);
195
- };
196
- }
197
- }), E = /* @__PURE__ */ e({ default: () => D }), D = /* @__PURE__ */ n(T, [["__scopeId", "data-v-bc1a230e"]]);
198
- //#endregion
199
- export { E as n, D as t };
@@ -1,141 +0,0 @@
1
- import { Fragment as e, createBlock as t, createCommentVNode as n, createElementBlock as r, createVNode as i, defineComponent as a, openBlock as o, reactive as s, ref as c, resolveComponent as l } from "vue";
2
- import { useRender as u } from "@utogether/utils";
3
- import { clone as d } from "xe-utils";
4
- //#endregion
5
- //#region src/views/urpt/dataSet/DataSet.vue
6
- var f = /* @__PURE__ */ a({
7
- name: "DataSet",
8
- setup(a) {
9
- let f = c(null), p = c({}), m = u(), h = s({
10
- paramExt: {},
11
- showChild: !1
12
- }), g = [{ field: "dataSetCode" }, { field: "dataSetName" }], _ = [
13
- {
14
- type: "checkbox",
15
- width: 50,
16
- align: "center"
17
- },
18
- {
19
- field: "dataSetCode",
20
- required: !0,
21
- width: 150,
22
- editRender: m.renderSelect({
23
- optionProps: {
24
- label: "templateCode",
25
- value: "templateCode"
26
- },
27
- props: {
28
- code: "SYS075",
29
- fetchField: "templateCode"
30
- }
31
- })
32
- },
33
- {
34
- field: "dataSetName",
35
- required: !0,
36
- width: 150,
37
- editRender: m.renderInput()
38
- },
39
- {
40
- field: "dataSetType",
41
- required: !0,
42
- editRender: m.renderDict("SU.DATASET.TYPE"),
43
- formatter: ["formatDict", "SU.DATASET.TYPE"]
44
- },
45
- {
46
- field: "dataSetUrl",
47
- width: 180,
48
- required: !0,
49
- editRender: m.renderInput()
50
- },
51
- {
52
- field: "remark",
53
- minWidth: 80,
54
- editRender: m.renderInput()
55
- },
56
- {
57
- field: "enabled",
58
- width: 80,
59
- formatter: ["formatDict", "SU.ENABLE"]
60
- },
61
- {
62
- field: "operate",
63
- width: 150,
64
- slots: { default: ({ row: t }) => t.id ? [i(e, null, [i(l("ut-button"), {
65
- icon: "ri-save-3-fill",
66
- content: "paramSet",
67
- onClick: () => y(t)
68
- }, null)])] : null }
69
- }
70
- ], v = [
71
- {
72
- type: "checkbox",
73
- width: 50,
74
- align: "center"
75
- },
76
- {
77
- field: "seqNo",
78
- editRender: m.renderInput({ props: { type: "number" } })
79
- },
80
- {
81
- field: "paramCode",
82
- editRender: m.renderInput()
83
- },
84
- {
85
- field: "paramName",
86
- editRender: m.renderInput()
87
- },
88
- {
89
- field: "defaultValue",
90
- editRender: m.renderInput()
91
- },
92
- {
93
- field: "isRequired",
94
- required: !0,
95
- editRender: m.renderDict("SU.WHETHER"),
96
- formatter: ["formatDict", "SU.WHETHER"]
97
- },
98
- {
99
- field: "remark",
100
- width: 100,
101
- editRender: m.renderInput()
102
- },
103
- {
104
- field: "operate",
105
- width: 80,
106
- fixed: "right",
107
- slots: { default: ({ row: t }) => t.id ? [i(e, null, [i(l("ut-button"), { row: t }, null)])] : null }
108
- }
109
- ], y = (e) => {
110
- p.value = d(e, !0), h.paramExt = { dataSetId: e.id }, h.showChild = !0;
111
- }, b = { editActived({ row: e, column: t }) {
112
- e.id && (_[1].editRender.props.disabled = !0, f.value.refreshColumn());
113
- } };
114
- return (e, a) => {
115
- let s = l("ut-grid"), c = l("ut-modal-grif");
116
- return o(), r("div", null, [i(s, {
117
- ref_key: "SuGridRef",
118
- ref: f,
119
- items: g,
120
- columns: _,
121
- events: b
122
- }, null, 512), h.showChild ? (o(), t(c, {
123
- key: 0,
124
- record: p.value,
125
- "default-value": h.paramExt,
126
- "default-params": h.paramExt,
127
- columns: v,
128
- title: e.$t("message.paramSet"),
129
- editable: !0,
130
- width: "60%"
131
- }, null, 8, [
132
- "record",
133
- "default-value",
134
- "default-params",
135
- "title"
136
- ])) : n("", !0)]);
137
- };
138
- }
139
- });
140
- //#endregion
141
- export { f as default };
@@ -1,21 +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 "./DepartmentPanel-B1UGpu-r.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/department/Department.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: "Department",
8
- setup(e) {
9
- let o = l({}), p = l(!1), m = l([]);
10
- return c("active", o), c("scrollPanelChange", p), c("treeList", m), (e, o) => (s(), r("div", u, [i("div", d, [a(t, {
11
- title: e.$t("department"),
12
- url: "/uums/department/treeDepartment",
13
- "tree-otions": {
14
- children: "children",
15
- label: "deptName"
16
- }
17
- }, null, 8, ["title"])]), i("div", f, [a(n)])]));
18
- }
19
- }), [["__scopeId", "data-v-a043aab6"]]);
20
- //#endregion
21
- export { p as default };
@@ -1,242 +0,0 @@
1
- import { t as e } from "./system-Cm3lyBas.js";
2
- import { r as t } from "./api-BFNxcxSN.js";
3
- import { t as n } from "./_plugin-vue_export-helper-C6QCLu9I.js";
4
- import { t as r } from "./authority-BJFEUdrh.js";
5
- import { t as i } from "./await-to-js.es5-DkWYmPXW.js";
6
- import { createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createTextVNode as l, createVNode as u, defineComponent as d, inject as f, openBlock as p, reactive as m, resolveComponent as h, resolveDirective as g, toDisplayString as _, unref as v, watch as y, withCtx as b, withDirectives as x } from "vue";
7
- import { successMessage as S, warnMessage as C } from "@utogether/utils";
8
- import { clone as w } from "xe-utils";
9
- import { templateRef as T } from "@vueuse/core";
10
- import { useI18n as E } from "vue-i18n";
11
- import { VxeUI as D } from "vxe-table";
12
- //#region src/views/organization/department/DepartmentPanel.vue?vue&type=script&setup=true&lang.ts
13
- var O = { class: "page-content" }, k = "/uums/department", A = /* @__PURE__ */ n(/* @__PURE__ */ d({
14
- __name: "DepartmentPanel",
15
- setup(n) {
16
- let d = m({
17
- record: {},
18
- dataList: [],
19
- loading: !1,
20
- dialogFormVisible: !1,
21
- isChecked: !1,
22
- dataStatus: ""
23
- }), A = e().getDataDict, { t: j } = E(), M = t(), N = {
24
- deptName: [{
25
- required: !0,
26
- message: `${j("message.required")}${j("message.deptName")}`
27
- }],
28
- deptCode: [{
29
- required: !0,
30
- message: `${j("message.required")}${j("message.deptCode")}`
31
- }],
32
- deptType: [{
33
- required: !0,
34
- message: `${j("message.required")}${j("message.deptType")}`
35
- }]
36
- }, P = f("active"), F = f("scrollPanelChange");
37
- y(() => P.value, (e, t) => {
38
- d.record = P.value, e?.id && t?.id && e !== t && L("detail");
39
- });
40
- let I = () => {
41
- d.dataStatus = "add", d.record = {}, d.record.parentId = P.value?.id, d.isChecked = !1, d.dialogFormVisible = !0;
42
- }, L = (e) => {
43
- d.dataStatus = e, d.record = w(P.value, !0), d.dialogFormVisible = !0;
44
- }, R = T("xForm", null), z = () => {
45
- R.value.validate(async (e) => {
46
- if (!e) {
47
- let { record: e, dataStatus: t } = d;
48
- d.loading = !0;
49
- let [n] = t === "add" ? await i(M.post(k, e)) : await i(M.put(k, e));
50
- d.loading = !1, n || H();
51
- }
52
- });
53
- }, B = async () => {
54
- let { record: e } = d;
55
- if (e.children.length) return C(j("message.deletePartment"));
56
- await D.modal.confirm(j("message.tip.del")) === "confirm" && (await M.delete(k, e), H());
57
- }, V = async (e) => {
58
- if (await D.modal.confirm(j("message.tip.confirmSync")) === "confirm") {
59
- let [t] = await i(M.post("/uums/department/syncEwDepartment", { code: e }));
60
- if (t) return;
61
- H();
62
- }
63
- }, H = () => {
64
- F.value = !0, S(j("message.operateSuccess")), W();
65
- }, U = () => {
66
- d.dataStatus === "add" && (d.dialogFormVisible = !1), d.dataStatus = "";
67
- }, W = () => {
68
- d.dialogFormVisible = !1;
69
- };
70
- return (e, t) => {
71
- let n = h("ut-button"), i = h("vxe-toolbar"), f = h("vxe-form-item"), m = h("vxe-form"), y = h("el-row"), S = h("vxe-checkbox"), C = h("el-card"), w = g("spinning");
72
- return p(), s("div", O, [u(i, {
73
- perfect: "",
74
- class: ""
75
- }, {
76
- buttons: b(() => [
77
- u(n, {
78
- status: "u-cyan",
79
- icon: "ri-add-line",
80
- content: "add",
81
- auth: "add",
82
- onTap: t[0] ||= (e) => I()
83
- }),
84
- v(r)("wechat") ? (p(), a(n, {
85
- key: 0,
86
- status: "success",
87
- icon: "ri-refresh-line",
88
- content: "sync",
89
- onTap: t[1] ||= (e) => V("wechat")
90
- })) : o("", !0),
91
- v(r)("dingding") ? (p(), a(n, {
92
- key: 1,
93
- status: "success",
94
- icon: "ri-refresh-line",
95
- content: "sync",
96
- onTap: t[2] ||= (e) => V("dingding")
97
- })) : o("", !0),
98
- v(r)("OA") ? (p(), a(n, {
99
- key: 2,
100
- status: "success",
101
- icon: "ri-refresh-line",
102
- content: "sync",
103
- onTap: t[3] ||= (e) => V("OA")
104
- })) : o("", !0),
105
- u(n, {
106
- status: "primary",
107
- icon: "ri-edit-box-line",
108
- auth: "edit",
109
- content: "edit",
110
- onTap: t[4] ||= (e) => L("update")
111
- }),
112
- u(n, {
113
- status: "danger",
114
- icon: "ri-close-fill",
115
- auth: "del",
116
- content: "delete",
117
- onTap: t[5] ||= (e) => B()
118
- })
119
- ]),
120
- _: 1
121
- }), d.dialogFormVisible ? x((p(), a(y, {
122
- key: 0,
123
- type: "flex",
124
- justify: "center",
125
- align: "middle",
126
- class: "w-departInfo-wrapper"
127
- }, {
128
- default: b(() => [u(C, {
129
- width: "60%",
130
- shadow: "always",
131
- class: "box-card w-card-wrapper"
132
- }, {
133
- default: b(() => [
134
- t[7] ||= c("div", { class: "clearfix" }, [c("span", { class: "w-card-title" })], -1),
135
- u(y, null, {
136
- default: b(() => [u(m, {
137
- ref_key: "xForm",
138
- ref: R,
139
- data: d.record,
140
- rules: N,
141
- "label-width": "90px"
142
- }, {
143
- default: b(() => [
144
- u(f, {
145
- title: e.$t("message.deptName"),
146
- field: "deptName",
147
- "item-render": {
148
- name: "$input",
149
- props: { disabled: d.dataStatus === "detail" }
150
- },
151
- span: 24
152
- }, null, 8, ["title", "item-render"]),
153
- u(f, {
154
- title: e.$t("message.deptCode"),
155
- field: "deptCode",
156
- "item-render": {
157
- name: "$input",
158
- props: { disabled: d.dataStatus !== "add" }
159
- },
160
- span: 24
161
- }, null, 8, ["title", "item-render"]),
162
- u(f, {
163
- title: e.$t("message.deptType"),
164
- field: "deptType",
165
- "item-render": {
166
- name: "$select",
167
- options: v(A)["SU.DEPARTMENT.TYPE"]?.children,
168
- optionProps: {
169
- label: "dictName",
170
- value: "dictCode"
171
- },
172
- props: { disabled: d.dataStatus === "detail" }
173
- },
174
- span: 24
175
- }, null, 8, ["title", "item-render"])
176
- ]),
177
- _: 1
178
- }, 8, ["data"])]),
179
- _: 1
180
- }),
181
- u(y, {
182
- type: "flex",
183
- justify: "center"
184
- }, {
185
- default: b(() => [
186
- d.dataStatus === "add" ? (p(), a(S, {
187
- key: 0,
188
- modelValue: d.isChecked,
189
- "onUpdate:modelValue": t[6] ||= (e) => d.isChecked = e,
190
- style: {
191
- "padding-top": "5px",
192
- "margin-right": "8px"
193
- }
194
- }, {
195
- default: b(() => [l(_(e.$t("message.udp.continueAdd")), 1)]),
196
- _: 1
197
- }, 8, ["modelValue"])) : o("", !0),
198
- d.dataStatus === "detail" ? o("", !0) : (p(), a(n, {
199
- key: 1,
200
- status: "primary",
201
- content: "confirm",
202
- onTap: z
203
- })),
204
- d.dataStatus === "detail" ? o("", !0) : (p(), a(n, {
205
- key: 2,
206
- status: "warning",
207
- content: "cancel",
208
- onClick: U
209
- }))
210
- ]),
211
- _: 1
212
- })
213
- ]),
214
- _: 1
215
- })]),
216
- _: 1
217
- })), [[w, d.loading]]) : (p(), a(y, {
218
- key: 1,
219
- class: "w-noclick-wrapper"
220
- }, {
221
- default: b(() => [...t[8] ||= [c("div", { class: "w-content-wrapper" }, [c("ul", null, [
222
- c("li", { class: "w-department-line" }, [
223
- c("div", null, "● 点击新建,新建部门信息。"),
224
- c("div", { style: {
225
- margin: "0",
226
- "text-indent": "2em"
227
- } }, "已点击树结构上的部门名称,默认创建为当前部门的下属部门"),
228
- c("div", { style: {
229
- margin: "0",
230
- "text-indent": "2em"
231
- } }, "未点击树结构上的部门名称,则创建为一级部门")
232
- ]),
233
- c("li", { class: "w-department-line" }, "● 点击树结构上的部门名称,点击修改按钮,修改部门信息。"),
234
- c("li", { class: "w-department-line" }, [c("div", null, "● 点击树结构上的部门名称,点击删除按钮,删除部门信息。"), c("div", { style: { "text-indent": "2em" } }, "当部门下有人员存在时,不允许删除部门信息。")])
235
- ])], -1)]]),
236
- _: 1
237
- }))]);
238
- };
239
- }
240
- }), [["__scopeId", "data-v-7c92a83d"]]);
241
- //#endregion
242
- export { A as t };
@@ -1,2 +0,0 @@
1
- import { t as e } from "./DepartmentPanel-B1UGpu-r.js";
2
- export { e as default };