@utogether/udp-core 1.0.1-beta.2 → 1.0.1-beta.20

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 (159) hide show
  1. package/build/plugins.ts +8 -1
  2. package/dist/{403-BBQoJwTM.js → 403-Bz5EJPLA.js} +1 -1
  3. package/dist/{404-BbJPSIWM.js → 404-ClOnaj9V.js} +1 -1
  4. package/dist/{500-BtFL9R4M.js → 500-DCUfhV7Y.js} +1 -1
  5. package/dist/{AuthorityInfo-DhiwCeLN.js → AuthorityInfo-q6E-js1r.js} +1 -1
  6. package/dist/AuthorityInfo.vue_vue_type_style_index_0_lang-BM52QDgn.js +100 -0
  7. package/dist/{Company-CGqmslx-.js → Company-BSShW3Q4.js} +3 -3
  8. package/dist/{CompanyPanel-hlDsxD-6.js → CompanyPanel-Dl8eOYLk.js} +26 -26
  9. package/dist/{Department-BZyJtacc.js → Department-CVIxAnUN.js} +3 -3
  10. package/dist/{DepartmentPanel-D-a_EBFt.js → DepartmentPanel-Sa3IDl4z.js} +25 -25
  11. package/dist/{DesignPanel-Bl4luWDV.js → DesignPanel-DnRipagE.js} +1 -1
  12. package/dist/{DesignPanel.vue_vue_type_style_index_0_lang-I8C3iGvz.js → DesignPanel.vue_vue_type_style_index_0_lang-DGNyp3Vl.js} +28 -30
  13. package/dist/DictView-uf2K9A1d.js +109 -0
  14. package/dist/InvOrganization-CG9VCpXl.js +74 -0
  15. package/dist/Org-W2CBN1B8.js +39 -0
  16. package/dist/{Preview-pHD84xqI.js → Preview-DPBxdDvW.js} +2 -2
  17. package/dist/{ReportDefine-DnnCNQWS.js → ReportDefine-Dsx9VM-I.js} +1 -1
  18. package/dist/{ReportDesign-BnI_Q4pg.js → ReportDesign-DiIGfte0.js} +43 -43
  19. package/dist/{ReportQuery-Dby2MmtM.js → ReportQuery-9A4Bfs1M.js} +1 -1
  20. package/dist/{ReportQueryFrom-Blm1N8P1.js → ReportQueryFrom-M5qLoGAa.js} +1 -1
  21. package/dist/{ReportQueryFrom.vue_vue_type_style_index_0_lang-CnG_Ybnt.js → ReportQueryFrom.vue_vue_type_style_index_0_lang-OQ9pUCKP.js} +1 -1
  22. package/dist/{ReportTemplate-D65RXRY_.js → ReportTemplate-C34FWAuK.js} +28 -28
  23. package/dist/{Role-eFZoTpXc.js → Role-jG3VTeOF.js} +6 -6
  24. package/dist/{RoleAssign-D9-Y3UNz.js → RoleAssign-BfHpCequ.js} +9 -9
  25. package/dist/{RolePanel-DlFw6HSf.js → RolePanel-DW9pNl0L.js} +1 -1
  26. package/dist/{RolePanel-CoUOc3sX.js → RolePanel-xRN2-rkk.js} +1 -1
  27. package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-Clwk-MHw.js → RolePanel.vue_vue_type_script_setup_true_lang-BVEHqEq9.js} +44 -38
  28. package/dist/RolePanel.vue_vue_type_script_setup_true_lang-C0rTy6vZ.js +132 -0
  29. package/dist/{ScrollPanel.vue_vue_type_style_index_0_lang-M2FQJwPU.js → ScrollPanel.vue_vue_type_style_index_0_lang-D65sJYWT.js} +23 -23
  30. package/dist/{Staff-DFBLCsAd.js → Staff-BqBVEjau.js} +3 -3
  31. package/dist/{StaffInfo-d2CK0oBA.js → StaffInfo-DXeyyEFL.js} +1 -1
  32. package/dist/{StaffInfo.vue_vue_type_script_setup_true_lang-4m8wK9tq.js → StaffInfo.vue_vue_type_script_setup_true_lang-Dg0iYgRf.js} +16 -16
  33. package/dist/{StaffPanel-D6aWLKN3.js → StaffPanel-iE-8VtUm.js} +1 -1
  34. package/dist/{StaffPanel.vue_vue_type_script_setup_true_lang-C7YT2CVb.js → StaffPanel.vue_vue_type_script_setup_true_lang-BrrvE1xm.js} +2 -2
  35. package/dist/{SysUser-BdZvYxQH.js → SysUser-DSZyW30i.js} +2 -2
  36. package/dist/{SysUserPanel-BIVa6LLr.js → SysUserPanel-CbiG6GQF.js} +1 -1
  37. package/dist/SysUserPanel.vue_vue_type_script_setup_true_lang-B1Y1fmBe.js +298 -0
  38. package/dist/{SystemMenu-C-5VKlHK.js → SystemMenu-DreuWY-a.js} +33 -33
  39. package/dist/{UserInfo-DqXCRZts.js → UserInfo-DXrzKAim.js} +1 -1
  40. package/dist/{UserInfo.vue_vue_type_style_index_0_lang-N3TwfpPx.js → UserInfo.vue_vue_type_style_index_0_lang-C44E20b4.js} +41 -39
  41. package/dist/{childView-B2lSsqS3.js → childView-VCidWgY6.js} +1 -1
  42. package/dist/{childView-DRUNqgjI.js → childView-k5IkJOBr.js} +1 -1
  43. package/dist/{childView.vue_vue_type_style_index_0_lang-B9XBDDU_.js → childView.vue_vue_type_style_index_0_lang-C6ftwwvZ.js} +1 -1
  44. package/dist/{childView.vue_vue_type_style_index_0_lang-oGriyFTv.js → childView.vue_vue_type_style_index_0_lang-DmG82dVB.js} +43 -43
  45. package/dist/{code-rule-DZC9T6cl.js → code-rule-7WQMabpW.js} +13 -15
  46. package/dist/core.es.js +18 -10
  47. package/dist/{cron-task-BJwPeA5F.js → cron-task-D1t56MSu.js} +11 -11
  48. package/dist/{frameView-C6wkvok-.js → frameView-CWsIFBgU.js} +1 -1
  49. package/dist/img/l_img.svg +1 -1
  50. package/dist/img/minicolors.png +0 -0
  51. package/dist/img/v_img.svg +1 -1
  52. package/dist/index-DxWAYxai.js +5495 -0
  53. package/dist/{layoutView-CeJBpZb_.js → layoutView-DLpHSner.js} +1564 -1559
  54. package/dist/{log-in-e7D5Ss1P.js → log-in-CpGqc33f.js} +5 -4
  55. package/dist/{log-out--RRncZhN.js → log-out-D1b4VRMZ.js} +30 -24
  56. package/dist/login-OjDiQmz8.js +249 -0
  57. package/dist/{login-log-CvVnyGi3.js → login-log-BNRXLeMi.js} +4 -3
  58. package/dist/{lov-view-DRF-99U4.js → lov-view-D28X6m3k.js} +5 -5
  59. package/dist/{menuInfo-3Sjvs9nM.js → menuInfo-DwPB6rHz.js} +1 -1
  60. package/dist/{menuInfo.vue_vue_type_style_index_0_lang-DrQ560nm.js → menuInfo.vue_vue_type_style_index_0_lang-l5DNRfb7.js} +34 -32
  61. package/dist/{pda-app-B9tn7jdv.js → pda-app-Bdms2PRY.js} +202 -188
  62. package/dist/{resource-BqnxbQNe.js → resource-y6SHrHoq.js} +18 -18
  63. package/dist/{su-welcome-VwifUK_O.js → su-welcome-D9G6EuK2.js} +118 -120
  64. package/dist/sys-config-DFnGHiFc.js +355 -0
  65. package/dist/udp-core.css +1 -9
  66. package/dist/utogether-MlnyYtNS.js +4 -0
  67. package/index.ts +17 -5
  68. package/package.json +1 -1
  69. package/src/App.vue +2 -7
  70. package/src/api/http.ts +1 -4
  71. package/src/api/index.ts +5 -3
  72. package/src/api/user.ts +2 -2
  73. package/src/components/SuCharts/src/UserInfo.vue +3 -3
  74. package/src/components/SuScrollTree/ScrollPanel.vue +170 -175
  75. package/src/components/udp/form/form.vue +109 -0
  76. package/src/components/udp/grid/index.vue +509 -0
  77. package/src/components/udp/index.ts +4 -4
  78. package/src/components/udp/utils.ts +405 -40
  79. package/src/directives/permission/index.ts +1 -1
  80. package/src/layout/components/lay-navbar/index.vue +9 -7
  81. package/src/layout/components/lay-panel/index.vue +3 -3
  82. package/src/layout/components/lay-search/index.vue +1 -1
  83. package/src/layout/components/lay-select-org/index.vue +4 -9
  84. package/src/layout/components/lay-sidebar/breadCrumb.vue +1 -1
  85. package/src/layout/components/lay-sidebar/horizontal.vue +4 -5
  86. package/src/layout/components/lay-sidebar/mixNav.vue +6 -4
  87. package/src/layout/components/lay-sidebar/sidebar-logo.vue +94 -98
  88. package/src/layout/components/lay-tag/index.vue +596 -625
  89. package/src/layout/hooks/useTag.ts +223 -233
  90. package/src/layout/layoutView.vue +215 -215
  91. package/src/layout/types.ts +3 -2
  92. package/src/main.ts +39 -31
  93. package/src/plugins/i18n/en.ts +26 -13
  94. package/src/plugins/i18n/zh.ts +35 -16
  95. package/src/plugins/vxe-table/index.ts +67 -4
  96. package/src/plugins/vxe-table/render.tsx +945 -817
  97. package/src/router/index.ts +186 -183
  98. package/src/router/modules/remaining.ts +1 -26
  99. package/src/router/utils.ts +393 -377
  100. package/src/store/modules/app.ts +1 -3
  101. package/src/store/modules/multiTags.ts +110 -109
  102. package/src/store/modules/permission.ts +113 -103
  103. package/src/store/modules/system.ts +1 -3
  104. package/src/style/button.scss +10 -3
  105. package/src/style/login.css +1 -1
  106. package/src/style/tailwind.css +1 -68
  107. package/src/style/vxetable.scss +348 -256
  108. package/src/utils/authority/index.ts +1 -1
  109. package/src/utils/index.ts +3 -1
  110. package/src/utils/propTypes.ts +1 -6
  111. package/src/views/login/login-view.vue +6 -20
  112. package/src/views/organization/company/CompanyPanel.vue +2 -2
  113. package/src/views/organization/department/DepartmentPanel.vue +269 -283
  114. package/src/views/organization/inv-org/InvOrganization.vue +23 -9
  115. package/src/views/organization/org/Org.vue +9 -5
  116. package/src/views/system/menu/SystemMenu.vue +183 -197
  117. package/src/views/system/menu/menuInfo.vue +8 -18
  118. package/src/views/system/role/AuthorityInfo.vue +19 -15
  119. package/src/views/system/role/Role.vue +1 -5
  120. package/src/views/system/role/RolePanel.vue +11 -2
  121. package/src/views/system/role/UserInfo.vue +11 -9
  122. package/src/views/system/role-assign/RoleAssign.vue +2 -2
  123. package/src/views/system/role-assign/RolePanel.vue +12 -9
  124. package/src/views/system/sys/sys-config.vue +66 -21
  125. package/src/views/system/sysUser/SysUserPanel.vue +44 -43
  126. package/src/views/uapp/pda/pda-app.vue +48 -16
  127. package/src/views/udev/coderule/code-rule.vue +120 -121
  128. package/src/views/udev/dict/DictView.vue +16 -4
  129. package/src/views/udev/dict/childView.vue +8 -8
  130. package/src/views/ufile/aggregation/File.vue +5 -5
  131. package/src/views/ufile/file/water-mark.vue +14 -14
  132. package/src/views/uhome/components/menu-favorite.vue +314 -331
  133. package/src/views/uhome/su-welcome.vue +3 -3
  134. package/src/views/ulogin/login.vue +19 -12
  135. package/src/views/upms/interface/log-in.vue +100 -106
  136. package/src/views/upms/interface/log-out.vue +2 -8
  137. package/src/views/upms/user/login-log.vue +54 -60
  138. package/src/views/urpt/design/DesignPanel.vue +16 -35
  139. package/src/views/urpt/design/Preview.vue +1 -0
  140. package/src/views/urpt/design/ReportDesign.vue +17 -23
  141. package/src/views/urpt/static-resource/resource.vue +3 -3
  142. package/src/views/urpt/template/ReportTemplate.vue +7 -7
  143. package/types/global.d.ts +4 -9
  144. package/vite.config.ts +6 -2
  145. package/dist/AuthorityInfo.vue_vue_type_style_index_0_lang-Duyweh89.js +0 -102
  146. package/dist/DictView-B4a7Hs1X.js +0 -95
  147. package/dist/InvOrganization-q4T3y8dQ.js +0 -260
  148. package/dist/Org-BTGTrAVz.js +0 -35
  149. package/dist/RolePanel.vue_vue_type_script_setup_true_lang-DKHgNWQP.js +0 -126
  150. package/dist/SysUserPanel.vue_vue_type_script_setup_true_lang-BsBKpYR7.js +0 -288
  151. package/dist/index-DZc3qRTx.js +0 -2650
  152. package/dist/login-BOxwzwdB.js +0 -252
  153. package/dist/sys-config-C0-gSBFO.js +0 -277
  154. package/dist/utogether-Di1byIum.js +0 -182
  155. package/src/components/udp/form-upload.vue +0 -183
  156. package/src/components/udp/modal-form.vue +0 -180
  157. package/src/utils/http/index.ts +0 -297
  158. package/src/utils/http/types.d.ts +0 -46
  159. package/src/utils/udp/useRender.ts +0 -420
package/build/plugins.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * @Author: wei.li
3
3
  * @Date: 2022-05-26 10:25:57
4
4
  * @LastEditors: levi7754 levi7754@163.com
5
- * @LastEditTime: 2025-07-16 17:46:57
5
+ * @LastEditTime: 2025-07-26 10:31:27
6
6
  * @Description: file content
7
7
  */
8
8
  import vue from '@vitejs/plugin-vue';
@@ -11,6 +11,8 @@ import svgLoader from 'vite-svg-loader';
11
11
  import vueJsx from '@vitejs/plugin-vue-jsx';
12
12
  import tailwindcss from '@tailwindcss/vite';
13
13
  import { visualizer } from 'rollup-plugin-visualizer';
14
+ import { ViteImageOptimizer } from 'vite-plugin-image-optimizer';
15
+ import removeConsole from 'vite-plugin-remove-console';
14
16
 
15
17
  export function getPluginsList() {
16
18
  const lifecycle = process.env.npm_lifecycle_event;
@@ -20,10 +22,15 @@ export function getPluginsList() {
20
22
  // jsx、tsx语法支持
21
23
  vueJsx(),
22
24
  // 线上环境删除console
25
+ removeConsole(),
23
26
  viteBuildInfo(),
24
27
  // 自定义主题
25
28
  // svg组件化支持
26
29
  svgLoader(),
30
+ ViteImageOptimizer({
31
+ png: { quality: 70 },
32
+ jpg: { quality: 70 }
33
+ }),
27
34
  // 打包分析
28
35
  lifecycle === 'report'
29
36
  ? visualizer({ open: true, brotliSize: true, filename: 'report.html' })
@@ -1,6 +1,6 @@
1
1
  import { createElementBlock as l, openBlock as a, createStaticVNode as m, defineComponent as r, resolveComponent as F, resolveDirective as n, createVNode as f, createElementVNode as M, unref as B, withDirectives as h, createTextVNode as e, createBlock as k, withCtx as u } from "vue";
2
2
  import { useRouter as y, useRoute as C } from "vue-router";
3
- import { C as v } from "./index-DZc3qRTx.js";
3
+ import { C as v } from "./index-DxWAYxai.js";
4
4
  const E = {
5
5
  width: "251",
6
6
  height: "294"
@@ -1,6 +1,6 @@
1
1
  import { createElementBlock as l, openBlock as a, createStaticVNode as m, defineComponent as r, resolveComponent as n, resolveDirective as F, createVNode as f, createElementVNode as M, unref as v, withDirectives as p, createTextVNode as e, createBlock as B, withCtx as D } from "vue";
2
2
  import { useRouter as C, useRoute as k } from "vue-router";
3
- import { C as u } from "./index-DZc3qRTx.js";
3
+ import { C as u } from "./index-DxWAYxai.js";
4
4
  const y = {
5
5
  width: "252",
6
6
  height: "294"
@@ -1,6 +1,6 @@
1
1
  import { createElementBlock as s, openBlock as a, createStaticVNode as o, defineComponent as r, resolveComponent as F, resolveDirective as f, createVNode as n, createElementVNode as M, unref as k, withDirectives as p, createTextVNode as e, createBlock as v, withCtx as B } from "vue";
2
2
  import { useRouter as u, useRoute as C } from "vue-router";
3
- import { C as D } from "./index-DZc3qRTx.js";
3
+ import { C as D } from "./index-DxWAYxai.js";
4
4
  const y = {
5
5
  width: "254",
6
6
  height: "294"
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./AuthorityInfo.vue_vue_type_style_index_0_lang-Duyweh89.js";
1
+ import { _ as f } from "./AuthorityInfo.vue_vue_type_style_index_0_lang-BM52QDgn.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -0,0 +1,100 @@
1
+ import { defineComponent as N, ref as f, reactive as B, onBeforeMount as M, resolveComponent as n, resolveDirective as A, createElementBlock as p, openBlock as _, createVNode as t, withCtx as r, withDirectives as D, createElementVNode as K } from "vue";
2
+ import { w as c } from "./index-DxWAYxai.js";
3
+ import { t as S } from "./await-to-js.es5-BtRbN2QH.js";
4
+ const E = { class: "config" }, I = { style: { position: "relative", height: "100%" } }, H = /* @__PURE__ */ N({
5
+ __name: "AuthorityInfo",
6
+ props: {
7
+ show: { type: Boolean, default: !1 },
8
+ record: { default: () => ({}) },
9
+ dataStatus: { default: "detail" },
10
+ direction: { default: "rtl" }
11
+ },
12
+ emits: ["onClose"],
13
+ setup(h, { emit: y }) {
14
+ const d = h, u = f(null), o = f(!1), s = B({
15
+ dataList: [],
16
+ defaultCheckedKeys: []
17
+ // 默认权限
18
+ }), v = window.innerHeight - 180, g = y, w = async () => {
19
+ const e = await c().get("/uums/menu/listMenuTree", {});
20
+ o.value = !1, s.dataList = e;
21
+ }, k = async () => {
22
+ const e = {
23
+ roleId: d.record.id,
24
+ menuType: "1"
25
+ }, a = await c().get("/uums/role/getRoleMenus", e);
26
+ s.defaultCheckedKeys = a.map((i) => i.id);
27
+ }, C = async () => {
28
+ const { record: e } = d;
29
+ o.value = !0;
30
+ const a = u.value.getCheckedNodes(!1, !0);
31
+ e.sysMenus = a, await S(c().put("/uums/role", [e])), o.value = !1, l();
32
+ };
33
+ function l() {
34
+ g("onClose");
35
+ }
36
+ return M(() => {
37
+ o.value = !0, k(), w();
38
+ }), (e, a) => {
39
+ const i = n("el-tree-v2"), b = n("el-divider"), m = n("ut-button"), x = n("el-row"), T = n("el-drawer"), L = A("spinning");
40
+ return _(), p("div", E, [
41
+ t(T, {
42
+ "model-value": e.show,
43
+ title: e.$t("message.title.authority", { role: e.record.roleName }),
44
+ "before-close": l,
45
+ direction: "rtl",
46
+ "destroy-on-close": "",
47
+ "body-class": "ut-draw-body",
48
+ size: "40%"
49
+ }, {
50
+ footer: r(() => [
51
+ t(b, { style: { margin: "16px 0" } }),
52
+ t(x, {
53
+ type: "flex",
54
+ justify: "end",
55
+ style: { "padding-right": "20px" }
56
+ }, {
57
+ default: r(() => [
58
+ t(m, {
59
+ content: "cancel",
60
+ icon: "ri-close-fill",
61
+ status: "warning",
62
+ onTap: l
63
+ }),
64
+ t(m, {
65
+ content: "confirm",
66
+ icon: "ri-save-3-fill",
67
+ status: "u-cyan",
68
+ onTap: C
69
+ })
70
+ ]),
71
+ _: 1
72
+ })
73
+ ]),
74
+ default: r(() => [
75
+ D((_(), p("div", I, [
76
+ K("div", null, [
77
+ t(i, {
78
+ ref_key: "xTree",
79
+ ref: u,
80
+ data: s.dataList,
81
+ props: { children: "children", label: "menuName" },
82
+ "default-checked-keys": s.defaultCheckedKeys,
83
+ height: v,
84
+ "show-checkbox": "",
85
+ "node-key": "id"
86
+ }, null, 8, ["data", "default-checked-keys"])
87
+ ])
88
+ ])), [
89
+ [L, o.value]
90
+ ])
91
+ ]),
92
+ _: 1
93
+ }, 8, ["model-value", "title"])
94
+ ]);
95
+ };
96
+ }
97
+ });
98
+ export {
99
+ H as _
100
+ };
@@ -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-M2FQJwPU.js";
3
- import p from "./CompanyPanel-hlDsxD-6.js";
4
- import { _ as d } from "./index-DZc3qRTx.js";
2
+ import { _ as m } from "./ScrollPanel.vue_vue_type_style_index_0_lang-D65sJYWT.js";
3
+ import p from "./CompanyPanel-Dl8eOYLk.js";
4
+ import { _ as d } from "./index-DxWAYxai.js";
5
5
  const f = { class: "u-content-panel" }, u = { class: "u-left-panel" }, h = { class: "content" }, v = /* @__PURE__ */ r({
6
6
  __name: "Company",
7
7
  setup(C) {
@@ -1,10 +1,10 @@
1
- import { defineComponent as V, reactive as j, inject as w, watch as B, resolveComponent as i, createElementBlock as E, openBlock as l, createVNode as s, createBlock as m, withCtx as d, createElementVNode as n, createCommentVNode as v, createTextVNode as D, toDisplayString as L } from "vue";
1
+ import { defineComponent as V, reactive as j, inject as C, watch as B, resolveComponent as i, createElementBlock as E, openBlock as l, createVNode as s, createBlock as c, withCtx as d, createElementVNode as n, createCommentVNode as v, createTextVNode as D, toDisplayString as L } from "vue";
2
2
  import { useI18n as M } from "vue-i18n";
3
3
  import { VxeUI as U } from "vxe-table";
4
4
  import { templateRef as R } from "@vueuse/core";
5
5
  import { clone as z } from "xe-utils";
6
6
  import { warnMessage as G, successMessage as H } from "@utogether/utils";
7
- import { q as J, _ as K } from "./index-DZc3qRTx.js";
7
+ import { w as J, _ as K } from "./index-DxWAYxai.js";
8
8
  const O = { class: "page-content" }, _ = "/uums/unit", Q = /* @__PURE__ */ V({
9
9
  __name: "CompanyPanel",
10
10
  setup(W) {
@@ -28,41 +28,41 @@ const O = { class: "page-content" }, _ = "/uums/unit", Q = /* @__PURE__ */ V({
28
28
  message: `${r("message.required")}${r("message.udp.unitCode")}`
29
29
  }
30
30
  ]
31
- }, u = w("active"), $ = w("scrollPanelChange"), f = J();
31
+ }, m = C("active"), $ = C("scrollPanelChange"), f = J();
32
32
  B(
33
- () => u.value,
33
+ () => m.value,
34
34
  (t, a) => {
35
- e.record = u.value, t != null && t.id && (a != null && a.id) && t !== a && x("detail");
35
+ e.record = m.value, t != null && t.id && (a != null && a.id) && t !== a && x("detail");
36
36
  }
37
37
  );
38
38
  const S = () => {
39
39
  var t;
40
- e.dataStatus = "add", e.record = {}, e.record.parentId = (t = u.value) == null ? void 0 : t.id, e.isChecked = !1, e.dialogFormVisible = !0;
40
+ e.dataStatus = "add", e.record = {}, e.record.parentId = (t = m.value) == null ? void 0 : t.id, e.isChecked = !1, e.dialogFormVisible = !0;
41
41
  }, x = (t) => {
42
- e.dataStatus = t, e.record = z(u.value, !0), e.dialogFormVisible = !0;
43
- }, y = R("xForm", null), h = () => {
44
- y.value.validate(async (t) => {
42
+ e.dataStatus = t, e.record = z(m.value, !0), e.dialogFormVisible = !0;
43
+ }, b = R("xForm", null), h = () => {
44
+ b.value.validate(async (t) => {
45
45
  if (!t) {
46
46
  const { record: a, dataStatus: o } = e;
47
- o === "add" ? await f.post(_, a) : await f.put(_, a), b();
47
+ o === "add" ? await f.post(_, a) : await f.put(_, a), y();
48
48
  }
49
49
  });
50
50
  }, N = async () => {
51
51
  var o;
52
52
  const { record: t } = e;
53
53
  if ((o = t.children) != null && o.length) return G(r("message.deletePartment"));
54
- await U.modal.confirm(r("message.tip.del", { msg: "aaaaa" })) === "confirm" && (await f.delete(_, t), b());
55
- }, b = () => {
56
- $.value = !0, H(r("message.operateSuccess")), q();
54
+ await U.modal.confirm(r("message.tip.del", { msg: "aaaaa" })) === "confirm" && (await f.delete(_, t), y());
55
+ }, y = () => {
56
+ $.value = !0, H(r("message.operateSuccess")), I();
57
57
  }, F = () => {
58
58
  e.dialogFormVisible = !1, e.dataStatus = "";
59
- }, q = () => {
59
+ }, I = () => {
60
60
  e.dialogFormVisible = !1;
61
61
  };
62
62
  return (t, a) => {
63
- const o = i("ut-button"), I = i("vxe-toolbar"), g = i("vxe-form-item"), P = i("vxe-form"), c = i("el-row"), A = i("vxe-checkbox"), C = i("vxe-button"), T = i("el-card");
63
+ const o = i("ut-button"), P = i("vxe-toolbar"), g = i("vxe-form-item"), q = i("vxe-form"), u = i("el-row"), A = i("vxe-checkbox"), w = i("vxe-button"), T = i("el-card");
64
64
  return l(), E("div", O, [
65
- s(I, {
65
+ s(P, {
66
66
  perfect: "",
67
67
  class: ""
68
68
  }, {
@@ -88,7 +88,7 @@ const O = { class: "page-content" }, _ = "/uums/unit", Q = /* @__PURE__ */ V({
88
88
  ]),
89
89
  _: 1
90
90
  }),
91
- e.dialogFormVisible ? (l(), m(c, {
91
+ e.dialogFormVisible ? (l(), c(u, {
92
92
  key: 0,
93
93
  type: "flex",
94
94
  justify: "center",
@@ -105,11 +105,11 @@ const O = { class: "page-content" }, _ = "/uums/unit", Q = /* @__PURE__ */ V({
105
105
  a[4] || (a[4] = n("div", { class: "clearfix" }, [
106
106
  n("span", { class: "w-card-title" })
107
107
  ], -1)),
108
- s(c, null, {
108
+ s(u, null, {
109
109
  default: d(() => [
110
- s(P, {
110
+ s(q, {
111
111
  ref_key: "xForm",
112
- ref: y,
112
+ ref: b,
113
113
  data: e.record,
114
114
  rules: k,
115
115
  "label-width": "80px"
@@ -139,12 +139,12 @@ const O = { class: "page-content" }, _ = "/uums/unit", Q = /* @__PURE__ */ V({
139
139
  ]),
140
140
  _: 1
141
141
  }),
142
- s(c, {
142
+ s(u, {
143
143
  type: "flex",
144
144
  justify: "center"
145
145
  }, {
146
146
  default: d(() => [
147
- e.dataStatus === "add" ? (l(), m(A, {
147
+ e.dataStatus === "add" ? (l(), c(A, {
148
148
  key: 0,
149
149
  modelValue: e.isChecked,
150
150
  "onUpdate:modelValue": a[3] || (a[3] = (p) => e.isChecked = p),
@@ -155,13 +155,13 @@ const O = { class: "page-content" }, _ = "/uums/unit", Q = /* @__PURE__ */ V({
155
155
  ]),
156
156
  _: 1
157
157
  }, 8, ["modelValue"])) : v("", !0),
158
- e.dataStatus !== "detail" ? (l(), m(C, {
158
+ e.dataStatus !== "detail" ? (l(), c(w, {
159
159
  key: 1,
160
160
  status: "primary",
161
161
  content: t.$t("message.btn.confirm"),
162
162
  onClick: h
163
163
  }, null, 8, ["content"])) : v("", !0),
164
- e.dataStatus !== "detail" ? (l(), m(C, {
164
+ e.dataStatus !== "detail" ? (l(), c(w, {
165
165
  key: 2,
166
166
  status: "warning",
167
167
  content: t.$t("message.btn.cancel"),
@@ -175,7 +175,7 @@ const O = { class: "page-content" }, _ = "/uums/unit", Q = /* @__PURE__ */ V({
175
175
  })
176
176
  ]),
177
177
  _: 1
178
- })) : (l(), m(c, {
178
+ })) : (l(), c(u, {
179
179
  key: 1,
180
180
  class: "w-noclick-wrapper"
181
181
  }, {
@@ -200,7 +200,7 @@ const O = { class: "page-content" }, _ = "/uums/unit", Q = /* @__PURE__ */ V({
200
200
  ]);
201
201
  };
202
202
  }
203
- }), se = /* @__PURE__ */ K(Q, [["__scopeId", "data-v-e3e008df"]]);
203
+ }), se = /* @__PURE__ */ K(Q, [["__scopeId", "data-v-bc1a230e"]]);
204
204
  export {
205
205
  se as default
206
206
  };
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as l, ref as e, provide as t, createElementBlock as i, openBlock as m, createElementVNode as n, createVNode as o } from "vue";
2
- import { _ as p } from "./ScrollPanel.vue_vue_type_style_index_0_lang-M2FQJwPU.js";
3
- import _ from "./DepartmentPanel-D-a_EBFt.js";
4
- import { _ as d } from "./index-DZc3qRTx.js";
2
+ import { _ as p } from "./ScrollPanel.vue_vue_type_style_index_0_lang-D65sJYWT.js";
3
+ import _ from "./DepartmentPanel-Sa3IDl4z.js";
4
+ import { _ as d } from "./index-DxWAYxai.js";
5
5
  const f = { class: "u-content-panel" }, u = { class: "u-left-panel" }, h = { class: "content" }, v = /* @__PURE__ */ l({
6
6
  __name: "Department",
7
7
  setup(D) {
@@ -5,7 +5,7 @@ import { clone as G } from "xe-utils";
5
5
  import { t as k } from "./await-to-js.es5-BtRbN2QH.js";
6
6
  import { VXETable as J } from "vxe-table";
7
7
  import { warnMessage as K, successMessage as O } from "@utogether/utils";
8
- import { e as Q, q as W, _ as Z } from "./index-DZc3qRTx.js";
8
+ import { i as Q, w as W, _ as Z } from "./index-DxWAYxai.js";
9
9
  const ee = { class: "page-content" }, y = "/uums/department", te = /* @__PURE__ */ V({
10
10
  __name: "DepartmentPanel",
11
11
  setup(ae) {
@@ -47,20 +47,20 @@ const ee = { class: "page-content" }, y = "/uums/department", te = /* @__PURE__
47
47
  e.dataStatus = "add", e.record = {}, e.record.parentId = (a = p.value) == null ? void 0 : a.id, e.isChecked = !1, e.dialogFormVisible = !0;
48
48
  }, x = (a) => {
49
49
  e.dataStatus = a, e.record = G(p.value, !0), e.dialogFormVisible = !0;
50
- }, b = z("xForm", null), D = () => {
51
- b.value.validate(async (a) => {
50
+ }, w = z("xForm", null), D = () => {
51
+ w.value.validate(async (a) => {
52
52
  if (!a) {
53
- const { record: t, dataStatus: r } = e;
53
+ const { record: t, dataStatus: i } = e;
54
54
  e.loading = !0;
55
- const [g] = r === "add" ? await k(f.post(y, t)) : await k(f.put(y, t));
56
- e.loading = !1, g || w();
55
+ const [g] = i === "add" ? await k(f.post(y, t)) : await k(f.put(y, t));
56
+ e.loading = !1, g || b();
57
57
  }
58
58
  });
59
59
  }, N = async () => {
60
60
  const { record: a } = e;
61
61
  if (a.children.length) return K(o("message.deletePartment"));
62
- await J.modal.confirm(o("message.tip.del")) === "confirm" && (await f.delete(y, a), w());
63
- }, w = () => {
62
+ await J.modal.confirm(o("message.tip.del")) === "confirm" && (await f.delete(y, a), b());
63
+ }, b = () => {
64
64
  h.value = !0, O(o("message.operateSuccess")), P();
65
65
  }, F = () => {
66
66
  e.dataStatus === "add" && (e.dialogFormVisible = !1), e.dataStatus = "";
@@ -68,30 +68,30 @@ const ee = { class: "page-content" }, y = "/uums/department", te = /* @__PURE__
68
68
  e.dialogFormVisible = !1;
69
69
  };
70
70
  return (a, t) => {
71
- const r = l("ut-button"), g = l("vxe-toolbar"), v = l("vxe-form-item"), q = l("vxe-form"), u = l("el-row"), E = l("vxe-checkbox"), A = l("el-card"), I = M("spinning");
71
+ const i = l("ut-button"), g = l("vxe-toolbar"), v = l("vxe-form-item"), E = l("vxe-form"), u = l("el-row"), q = l("vxe-checkbox"), A = l("el-card"), I = M("spinning");
72
72
  return c(), R("div", ee, [
73
73
  n(g, {
74
74
  perfect: "",
75
75
  class: ""
76
76
  }, {
77
77
  buttons: d(() => [
78
- n(r, {
78
+ n(i, {
79
79
  status: "u-cyan",
80
80
  icon: "ri-add-line",
81
81
  content: "add",
82
- onTap: t[0] || (t[0] = (i) => T())
82
+ onTap: t[0] || (t[0] = (r) => T())
83
83
  }),
84
- n(r, {
84
+ n(i, {
85
85
  status: "primary",
86
86
  icon: "ri-edit-box-line",
87
87
  content: "edit",
88
- onTap: t[1] || (t[1] = (i) => x("update"))
88
+ onTap: t[1] || (t[1] = (r) => x("update"))
89
89
  }),
90
- n(r, {
90
+ n(i, {
91
91
  status: "danger",
92
92
  icon: "ri-close-fill",
93
93
  content: "delete",
94
- onTap: t[2] || (t[2] = (i) => N())
94
+ onTap: t[2] || (t[2] = (r) => N())
95
95
  })
96
96
  ]),
97
97
  _: 1
@@ -115,15 +115,15 @@ const ee = { class: "page-content" }, y = "/uums/department", te = /* @__PURE__
115
115
  ], -1)),
116
116
  n(u, null, {
117
117
  default: d(() => [
118
- n(q, {
118
+ n(E, {
119
119
  ref_key: "xForm",
120
- ref: b,
120
+ ref: w,
121
121
  data: e.record,
122
122
  rules: $,
123
123
  "label-width": "90px"
124
124
  }, {
125
125
  default: d(() => {
126
- var i;
126
+ var r;
127
127
  return [
128
128
  n(v, {
129
129
  title: a.$t("message.deptName"),
@@ -142,7 +142,7 @@ const ee = { class: "page-content" }, y = "/uums/department", te = /* @__PURE__
142
142
  field: "deptType",
143
143
  "item-render": {
144
144
  name: "$select",
145
- options: (i = H(S)["SU.DEPARTMENT.TYPE"]) == null ? void 0 : i.children,
145
+ options: (r = H(S)["SU.DEPARTMENT.TYPE"]) == null ? void 0 : r.children,
146
146
  optionProps: { label: "dictName", value: "dictCode" },
147
147
  props: { disabled: e.dataStatus === "detail" }
148
148
  },
@@ -160,10 +160,10 @@ const ee = { class: "page-content" }, y = "/uums/department", te = /* @__PURE__
160
160
  justify: "center"
161
161
  }, {
162
162
  default: d(() => [
163
- e.dataStatus === "add" ? (c(), m(E, {
163
+ e.dataStatus === "add" ? (c(), m(q, {
164
164
  key: 0,
165
165
  modelValue: e.isChecked,
166
- "onUpdate:modelValue": t[3] || (t[3] = (i) => e.isChecked = i),
166
+ "onUpdate:modelValue": t[3] || (t[3] = (r) => e.isChecked = r),
167
167
  style: { "padding-top": "5px", "margin-right": "8px" }
168
168
  }, {
169
169
  default: d(() => [
@@ -171,13 +171,13 @@ const ee = { class: "page-content" }, y = "/uums/department", te = /* @__PURE__
171
171
  ]),
172
172
  _: 1
173
173
  }, 8, ["modelValue"])) : _("", !0),
174
- e.dataStatus !== "detail" ? (c(), m(r, {
174
+ e.dataStatus !== "detail" ? (c(), m(i, {
175
175
  key: 1,
176
176
  status: "primary",
177
177
  content: "confirm",
178
178
  onTap: D
179
179
  })) : _("", !0),
180
- e.dataStatus !== "detail" ? (c(), m(r, {
180
+ e.dataStatus !== "detail" ? (c(), m(i, {
181
181
  key: 2,
182
182
  status: "warning",
183
183
  content: "cancel",
@@ -202,7 +202,7 @@ const ee = { class: "page-content" }, y = "/uums/department", te = /* @__PURE__
202
202
  s("ul", null, [
203
203
  s("li", { class: "w-department-line" }, [
204
204
  s("div", null, "● 点击新建,新建部门信息。"),
205
- s("div", { style: { margin: "0", "text-indent": "2em" } }, " 已点击树结构上的部门名称,默认创建为当前部门的下属部门 "),
205
+ s("div", { style: { margin: "0", "text-indent": "2em" } }, "已点击树结构上的部门名称,默认创建为当前部门的下属部门"),
206
206
  s("div", { style: { margin: "0", "text-indent": "2em" } }, "未点击树结构上的部门名称,则创建为一级部门")
207
207
  ]),
208
208
  s("li", { class: "w-department-line" }, "● 点击树结构上的部门名称,点击修改按钮,修改部门信息。"),
@@ -218,7 +218,7 @@ const ee = { class: "page-content" }, y = "/uums/department", te = /* @__PURE__
218
218
  ]);
219
219
  };
220
220
  }
221
- }), me = /* @__PURE__ */ Z(te, [["__scopeId", "data-v-c89aef1b"]]);
221
+ }), me = /* @__PURE__ */ Z(te, [["__scopeId", "data-v-162cb98f"]]);
222
222
  export {
223
223
  me as default
224
224
  };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./DesignPanel.vue_vue_type_style_index_0_lang-I8C3iGvz.js";
1
+ import { _ as f } from "./DesignPanel.vue_vue_type_style_index_0_lang-DGNyp3Vl.js";
2
2
  export {
3
3
  f as default
4
4
  };