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

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 (165) hide show
  1. package/build/plugins.ts +3 -3
  2. package/dist/{403-BuP9jvH9.js → 403-DdjDWbkf.js} +1 -1
  3. package/dist/{404-DfQk8kKl.js → 404-D9vF2gFz.js} +1 -1
  4. package/dist/{500-OgROWdiZ.js → 500-mVaDmUjL.js} +1 -1
  5. package/dist/{AuthorityInfo-q2ksfkWH.js → AuthorityInfo-DOUJ_Zrj.js} +1 -1
  6. package/dist/AuthorityInfo.vue_vue_type_style_index_0_lang-B12sAzqt.js +100 -0
  7. package/dist/{Company-DgqowAxc.js → Company-DY__kM9F.js} +3 -3
  8. package/dist/{CompanyPanel-BNb1rUhD.js → CompanyPanel-C5N8QcMA.js} +17 -17
  9. package/dist/{Department-Cl8CROSU.js → Department-DsuDZdy5.js} +3 -3
  10. package/dist/{DepartmentPanel-D5VkqKeP.js → DepartmentPanel-CdwI7Rzu.js} +25 -25
  11. package/dist/{DesignPanel-BGvEusHC.js → DesignPanel-B50-g0TL.js} +1 -1
  12. package/dist/{DesignPanel.vue_vue_type_style_index_0_lang-BQF1uQ7w.js → DesignPanel.vue_vue_type_style_index_0_lang-KV8JOZ6v.js} +28 -30
  13. package/dist/DictView-Be2Z5Obk.js +110 -0
  14. package/dist/InvOrganization-Lui1q3Ou.js +74 -0
  15. package/dist/Org-qO5ExsPN.js +39 -0
  16. package/dist/{Preview-BaGmXH7r.js → Preview-Dq4dfV2D.js} +2 -2
  17. package/dist/{ReportDefine-DkQdBErt.js → ReportDefine-DH3FvbS1.js} +1 -1
  18. package/dist/{ReportDesign-DzB_A_G6.js → ReportDesign-Bou01Jbr.js} +43 -43
  19. package/dist/{ReportQuery-DRcMb6ya.js → ReportQuery-BBkmPPSw.js} +1 -1
  20. package/dist/{ReportQueryFrom-CeA9xhR4.js → ReportQueryFrom-BCY8lTJ7.js} +1 -1
  21. package/dist/{ReportQueryFrom.vue_vue_type_style_index_0_lang-CgGtcs5V.js → ReportQueryFrom.vue_vue_type_style_index_0_lang-CpktcM8J.js} +1 -1
  22. package/dist/{ReportTemplate-qaiTMQuT.js → ReportTemplate-C_yJXxQ-.js} +28 -28
  23. package/dist/{Role-DsFulAjq.js → Role-CTatYsrC.js} +6 -6
  24. package/dist/{RoleAssign-DMRdocpa.js → RoleAssign-Cqt3CelK.js} +9 -9
  25. package/dist/{RolePanel-wXVysDHM.js → RolePanel-C3JMpNu8.js} +1 -1
  26. package/dist/{RolePanel-B9POS_pg.js → RolePanel-brKRJIhD.js} +1 -1
  27. package/dist/RolePanel.vue_vue_type_script_setup_true_lang-DD8u9pq8.js +132 -0
  28. package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-CleVvkcY.js → RolePanel.vue_vue_type_script_setup_true_lang-i6Gq4r5B.js} +44 -38
  29. package/dist/{ScrollPanel.vue_vue_type_style_index_0_lang-DlXUs0j9.js → ScrollPanel.vue_vue_type_style_index_0_lang-CiWKyjm3.js} +23 -23
  30. package/dist/{Staff-Cq4V7ruC.js → Staff-Cd3twQ6Y.js} +3 -3
  31. package/dist/{StaffInfo-CJDKMbud.js → StaffInfo-DJp0a0qd.js} +1 -1
  32. package/dist/{StaffInfo.vue_vue_type_script_setup_true_lang-DQ4DL1KY.js → StaffInfo.vue_vue_type_script_setup_true_lang-Dp2AhJ4I.js} +16 -16
  33. package/dist/{StaffPanel-CG-uggdr.js → StaffPanel-B93hClzs.js} +1 -1
  34. package/dist/{StaffPanel.vue_vue_type_script_setup_true_lang-DAgN7zN2.js → StaffPanel.vue_vue_type_script_setup_true_lang-CXjUzq7n.js} +2 -2
  35. package/dist/{SysUser-kwnzRNdD.js → SysUser-BvI6vaqI.js} +2 -2
  36. package/dist/{SysUserPanel-DTlZf3vk.js → SysUserPanel-C9V8X-Ek.js} +1 -1
  37. package/dist/SysUserPanel.vue_vue_type_script_setup_true_lang-bMqTui07.js +343 -0
  38. package/dist/{SystemMenu-BVT0n-L2.js → SystemMenu-D4WME5d0.js} +27 -27
  39. package/dist/{UserInfo-BbTQ9Zat.js → UserInfo-D-AfdfJs.js} +1 -1
  40. package/dist/{UserInfo.vue_vue_type_style_index_0_lang-D_bpYDmI.js → UserInfo.vue_vue_type_style_index_0_lang-C-JQYIxe.js} +41 -39
  41. package/dist/{childView-BJbIhjmf.js → childView--WMSo-wH.js} +1 -1
  42. package/dist/{childView-DCsGFrG-.js → childView-1MTl6Kaj.js} +1 -1
  43. package/dist/childView.vue_vue_type_style_index_0_lang-B8Losc4Y.js +170 -0
  44. package/dist/{childView.vue_vue_type_style_index_0_lang-BCDxpVoD.js → childView.vue_vue_type_style_index_0_lang-BAVKNIXs.js} +1 -1
  45. package/dist/{code-rule-DePU6cdp.js → code-rule-D-RqrQB6.js} +42 -41
  46. package/dist/core.es.js +19 -10
  47. package/dist/{cron-task-DUM1SIGL.js → cron-task-D-X-KFZm.js} +11 -11
  48. package/dist/flow-task-B07st2aD.js +10 -0
  49. package/dist/{frameView-CEUTDtSm.js → frameView-MAW_-GHJ.js} +1 -1
  50. package/dist/index-Bc9vCX7z.js +2904 -0
  51. package/dist/{layoutView-PCjwVwkX.js → layoutView-De2QIEr2.js} +1639 -1629
  52. package/dist/{log-in-e7D5Ss1P.js → log-in-CpGqc33f.js} +5 -4
  53. package/dist/{log-out--RRncZhN.js → log-out-D1b4VRMZ.js} +30 -24
  54. package/dist/{login-log-CvVnyGi3.js → login-log-BNRXLeMi.js} +4 -3
  55. package/dist/login-rdZ0GPYc.js +249 -0
  56. package/dist/{lov-view-D8wwkxFJ.js → lov-view-Ao7LMspL.js} +5 -5
  57. package/dist/{menuInfo-B5JKVwrB.js → menuInfo-DmOcK6An.js} +1 -1
  58. package/dist/{menuInfo.vue_vue_type_style_index_0_lang-CcM9WX4n.js → menuInfo.vue_vue_type_style_index_0_lang-Ln-zFWV7.js} +121 -99
  59. package/dist/{pda-app-DIa1p1Ww.js → pda-app-DY63mQ2T.js} +202 -188
  60. package/dist/{resource-CCQ7Dd-5.js → resource-B21uV58T.js} +18 -18
  61. package/dist/{su-welcome-CLp9YaJa.js → su-welcome-DgjzJeDF.js} +122 -121
  62. package/dist/sys-config-DOtK2I32.js +370 -0
  63. package/dist/udp-core.css +1 -9
  64. package/dist/utogether-MlnyYtNS.js +4 -0
  65. package/index.ts +19 -6
  66. package/package.json +1 -1
  67. package/src/App.vue +65 -70
  68. package/src/api/http.ts +1 -4
  69. package/src/api/index.ts +5 -3
  70. package/src/api/user.ts +2 -2
  71. package/src/components/SuCharts/src/UserInfo.vue +3 -3
  72. package/src/components/SuScrollTree/ScrollPanel.vue +4 -9
  73. package/src/components/udp/content/index.vue +88 -0
  74. package/src/components/udp/form/form.vue +109 -0
  75. package/src/components/udp/{grid.vue → grid/index.vue} +524 -500
  76. package/src/components/udp/index.ts +4 -6
  77. package/src/components/udp/ut-stamp-badge/index.vue +272 -0
  78. package/src/components/udp/utils.ts +408 -379
  79. package/src/directives/permission/index.ts +1 -1
  80. package/src/layout/components/lay-navbar/index.vue +8 -6
  81. package/src/layout/components/lay-panel/index.vue +150 -150
  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/horizontal.vue +8 -6
  85. package/src/layout/components/lay-sidebar/mixNav.vue +260 -258
  86. package/src/layout/components/lay-sidebar/sidebar-logo.vue +8 -12
  87. package/src/layout/components/lay-tag/index.vue +596 -625
  88. package/src/layout/hooks/useTag.ts +12 -18
  89. package/src/layout/types.ts +3 -2
  90. package/src/main.ts +115 -110
  91. package/src/plugins/i18n/en.ts +302 -291
  92. package/src/plugins/i18n/module/u-workflow.ts +1 -1
  93. package/src/plugins/i18n/zh.ts +362 -338
  94. package/src/plugins/vxe-table/index.ts +116 -53
  95. package/src/plugins/vxe-table/render.tsx +183 -57
  96. package/src/router/index.ts +101 -97
  97. package/src/router/modules/flow.ts +35 -0
  98. package/src/router/modules/remaining.ts +1 -26
  99. package/src/router/utils.ts +50 -7
  100. package/src/store/modules/app.ts +1 -3
  101. package/src/store/modules/multiTags.ts +15 -14
  102. package/src/store/modules/permission.ts +25 -15
  103. package/src/store/modules/system.ts +1 -3
  104. package/src/style/button.scss +85 -85
  105. package/src/style/login.css +1 -1
  106. package/src/style/vxetable.scss +348 -258
  107. package/src/utils/authority/index.ts +1 -1
  108. package/src/utils/index.ts +3 -1
  109. package/src/utils/propTypes.ts +1 -6
  110. package/src/utils/{http → udp/http}/index.ts +27 -30
  111. package/src/utils/{http → udp/http}/types.d.ts +2 -6
  112. package/src/views/login/login-view.vue +6 -20
  113. package/src/views/organization/company/CompanyPanel.vue +259 -259
  114. package/src/views/organization/department/DepartmentPanel.vue +6 -20
  115. package/src/views/organization/inv-org/InvOrganization.vue +22 -7
  116. package/src/views/organization/org/Org.vue +9 -5
  117. package/src/views/system/cron/cron-task.vue +2 -12
  118. package/src/views/system/menu/SystemMenu.vue +185 -197
  119. package/src/views/system/menu/menuInfo.vue +384 -372
  120. package/src/views/system/role/AuthorityInfo.vue +19 -15
  121. package/src/views/system/role/Role.vue +1 -5
  122. package/src/views/system/role/RolePanel.vue +11 -2
  123. package/src/views/system/role/UserInfo.vue +11 -9
  124. package/src/views/system/role-assign/RoleAssign.vue +2 -2
  125. package/src/views/system/role-assign/RolePanel.vue +12 -9
  126. package/src/views/system/sys/sys-config.vue +70 -21
  127. package/src/views/system/sysUser/SysUserPanel.vue +132 -62
  128. package/src/views/uapp/pda/pda-app.vue +48 -16
  129. package/src/views/udev/coderule/code-rule.vue +132 -121
  130. package/src/views/udev/dict/DictView.vue +118 -106
  131. package/src/views/udev/dict/childView.vue +71 -111
  132. package/src/views/udev/lov/childView.vue +1 -7
  133. package/src/views/udev/lov/lov-view.vue +91 -91
  134. package/src/views/ufile/aggregation/File.vue +5 -5
  135. package/src/views/ufile/file/water-mark.vue +14 -14
  136. package/src/views/uhome/components/menu-favorite.vue +314 -331
  137. package/src/views/uhome/su-welcome.vue +3 -3
  138. package/src/views/ulogin/login.vue +19 -12
  139. package/src/views/upms/interface/log-in.vue +2 -8
  140. package/src/views/upms/interface/log-out.vue +2 -8
  141. package/src/views/upms/user/login-log.vue +2 -8
  142. package/src/views/urpt/design/DesignPanel.vue +16 -35
  143. package/src/views/urpt/design/Preview.vue +1 -0
  144. package/src/views/urpt/design/ReportDesign.vue +17 -23
  145. package/src/views/urpt/static-resource/resource.vue +3 -3
  146. package/src/views/urpt/template/ReportTemplate.vue +7 -7
  147. package/src/views/utask/flow-task.vue +18 -0
  148. package/types/global.d.ts +4 -9
  149. package/vite.config.ts +2 -1
  150. package/dist/AuthorityInfo.vue_vue_type_style_index_0_lang-Bwsf6lMH.js +0 -102
  151. package/dist/DictView-BnxfaOBv.js +0 -96
  152. package/dist/InvOrganization-5y79ZLdY.js +0 -66
  153. package/dist/Org-2oBAXN2r.js +0 -35
  154. package/dist/RolePanel.vue_vue_type_script_setup_true_lang-t6S_0zmJ.js +0 -126
  155. package/dist/SysUserPanel.vue_vue_type_script_setup_true_lang-BW6PlGjM.js +0 -288
  156. package/dist/childView.vue_vue_type_style_index_0_lang-CDtsalCm.js +0 -187
  157. package/dist/index-ZdgOD7cF.js +0 -3399
  158. package/dist/login-B1CjWVKu.js +0 -252
  159. package/dist/sys-config-BBmf_SqF.js +0 -277
  160. package/dist/utogether-Bkptx2lB.js +0 -182
  161. package/src/components/udp/form-upload.vue +0 -183
  162. package/src/components/udp/lov.vue +0 -410
  163. package/src/components/udp/modal-form.vue +0 -180
  164. package/src/components/udp/modal-grid.vue +0 -297
  165. package/src/utils/udp/useRender.ts +0 -420
package/build/plugins.ts CHANGED
@@ -12,6 +12,7 @@ import vueJsx from '@vitejs/plugin-vue-jsx';
12
12
  import tailwindcss from '@tailwindcss/vite';
13
13
  import { visualizer } from 'rollup-plugin-visualizer';
14
14
  import { ViteImageOptimizer } from 'vite-plugin-image-optimizer';
15
+ import removeConsole from 'vite-plugin-remove-console';
15
16
 
16
17
  export function getPluginsList() {
17
18
  const lifecycle = process.env.npm_lifecycle_event;
@@ -21,6 +22,7 @@ export function getPluginsList() {
21
22
  // jsx、tsx语法支持
22
23
  vueJsx(),
23
24
  // 线上环境删除console
25
+ removeConsole(),
24
26
  viteBuildInfo(),
25
27
  // 自定义主题
26
28
  // svg组件化支持
@@ -30,8 +32,6 @@ export function getPluginsList() {
30
32
  jpg: { quality: 70 }
31
33
  }),
32
34
  // 打包分析
33
- lifecycle === 'report'
34
- ? visualizer({ open: true, brotliSize: true, filename: 'report.html' })
35
- : (null as any)
35
+ lifecycle === 'report' ? visualizer({ open: true, brotliSize: true, filename: 'report.html' }) : (null as any)
36
36
  ];
37
37
  }
@@ -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-ZdgOD7cF.js";
3
+ import { C as v } from "./index-Bc9vCX7z.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-ZdgOD7cF.js";
3
+ import { C as u } from "./index-Bc9vCX7z.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-ZdgOD7cF.js";
3
+ import { C as D } from "./index-Bc9vCX7z.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-Bwsf6lMH.js";
1
+ import { _ as f } from "./AuthorityInfo.vue_vue_type_style_index_0_lang-B12sAzqt.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-Bc9vCX7z.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-DlXUs0j9.js";
3
- import p from "./CompanyPanel-BNb1rUhD.js";
4
- import { _ as d } from "./index-ZdgOD7cF.js";
2
+ import { _ as m } from "./ScrollPanel.vue_vue_type_style_index_0_lang-CiWKyjm3.js";
3
+ import p from "./CompanyPanel-C5N8QcMA.js";
4
+ import { _ as d } from "./index-Bc9vCX7z.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 c, 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-ZdgOD7cF.js";
7
+ import { w as J, _ as K } from "./index-Bc9vCX7z.js";
8
8
  const O = { class: "page-content" }, _ = "/uums/unit", Q = /* @__PURE__ */ V({
9
9
  __name: "CompanyPanel",
10
10
  setup(W) {
@@ -28,7 +28,7 @@ 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
- }, m = w("active"), $ = w("scrollPanelChange"), f = J();
31
+ }, m = C("active"), $ = C("scrollPanelChange"), f = J();
32
32
  B(
33
33
  () => m.value,
34
34
  (t, a) => {
@@ -40,29 +40,29 @@ const O = { class: "page-content" }, _ = "/uums/unit", Q = /* @__PURE__ */ V({
40
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
42
  e.dataStatus = t, e.record = z(m.value, !0), e.dialogFormVisible = !0;
43
- }, y = R("xForm", null), h = () => {
44
- y.value.validate(async (t) => {
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"), u = 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
  }, {
@@ -107,9 +107,9 @@ const O = { class: "page-content" }, _ = "/uums/unit", Q = /* @__PURE__ */ V({
107
107
  ], -1)),
108
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"
@@ -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(), c(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(), c(C, {
164
+ e.dataStatus !== "detail" ? (l(), c(w, {
165
165
  key: 2,
166
166
  status: "warning",
167
167
  content: t.$t("message.btn.cancel"),
@@ -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-9d7dfca5"]]);
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-DlXUs0j9.js";
3
- import _ from "./DepartmentPanel-D5VkqKeP.js";
4
- import { _ as d } from "./index-ZdgOD7cF.js";
2
+ import { _ as p } from "./ScrollPanel.vue_vue_type_style_index_0_lang-CiWKyjm3.js";
3
+ import _ from "./DepartmentPanel-CdwI7Rzu.js";
4
+ import { _ as d } from "./index-Bc9vCX7z.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-ZdgOD7cF.js";
8
+ import { i as Q, w as W, _ as Z } from "./index-Bc9vCX7z.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-a2e7b8a3"]]);
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-BQF1uQ7w.js";
1
+ import { _ as f } from "./DesignPanel.vue_vue_type_style_index_0_lang-KV8JOZ6v.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,10 +1,10 @@
1
- import { defineComponent as it, ref as f, reactive as k, onMounted as ot, onBeforeUnmount as nt, resolveComponent as r, resolveDirective as pt, withDirectives as at, createElementBlock as N, openBlock as w, createVNode as l, createBlock as S, createCommentVNode as H, withCtx as i, createElementVNode as e, Fragment as rt, renderList as st, unref as dt, toDisplayString as D, withModifiers as ct, createTextVNode as O, nextTick as ht } from "vue";
2
- import { VXETable as U } from "vxe-table";
1
+ import { defineComponent as it, ref as f, reactive as M, onMounted as ot, onBeforeUnmount as nt, resolveComponent as r, resolveDirective as pt, withDirectives as at, createElementBlock as N, openBlock as w, createVNode as l, createBlock as S, createCommentVNode as H, withCtx as i, createElementVNode as e, Fragment as rt, renderList as st, unref as dt, toDisplayString as D, withModifiers as ct, createTextVNode as U, nextTick as ht } from "vue";
2
+ import { VxeUI as O } from "vxe-pc-ui";
3
3
  import { useGlobal as ut } from "@utogether/utils";
4
4
  import { t as mt } from "./await-to-js.es5-BtRbN2QH.js";
5
5
  import { clone as ft } from "xe-utils";
6
- import { e as gt, q as yt } from "./index-ZdgOD7cF.js";
7
- import vt from "./Preview-BaGmXH7r.js";
6
+ import { i as gt, w as yt } from "./index-Bc9vCX7z.js";
7
+ import vt from "./Preview-Dq4dfV2D.js";
8
8
  const xt = {
9
9
  panels: [
10
10
  {
@@ -490,11 +490,11 @@ const xt = {
490
490
  },
491
491
  emits: ["onClose"],
492
492
  setup(J, { emit: B }) {
493
- const R = J;
493
+ const I = J;
494
494
  let { $printPlugin: u } = ut();
495
- const I = gt().getDataDict, W = yt();
495
+ const R = gt().getDataDict, W = yt();
496
496
  let s = null;
497
- const C = f(!1), g = f(!1), y = f(!1), v = f(!1), z = f(null), T = f(""), m = f({}), d = k({}), h = k({ max: 5, min: 0.5, value: 1, ration: "100%" }), j = () => {
497
+ const C = f(!1), g = f(!1), y = f(!1), v = f(!1), z = f(null), T = f(""), m = f({}), d = M({}), h = M({ max: 5, min: 0.5, value: 1, ration: "100%" }), j = () => {
498
498
  g.value = !1, s.setPaper(d.width || 210, d.height || 296.6);
499
499
  }, V = async (n) => {
500
500
  const t = m.value;
@@ -507,29 +507,29 @@ const xt = {
507
507
  const [E, _] = await mt(W.put("/urpt/v1/printTemplate", [t]));
508
508
  v.value = !1, E || (T.value = "", m.value = _[0]), n && n();
509
509
  }, P = () => {
510
- q("onClose");
511
- }, q = B, A = (n) => {
510
+ F("onClose");
511
+ }, F = B, A = (n) => {
512
512
  let t = h.value;
513
513
  n === "Y" ? (t += 0.1, t > h.max && (t = 5)) : (t -= 0.1, t < h.min && (t = 0.5)), s && (s.zoom(t), h.value = t, h.ration = `${(t * 100).toFixed(0)}%`);
514
- }, F = async () => {
515
- await U.modal.confirm("重绘操作不可逆,您确定继续吗?", "温馨提示") === "confirm" && s.clear();
514
+ }, q = async () => {
515
+ await O.modal.confirm("重绘操作不可逆,您确定继续吗?", "温馨提示") === "confirm" && s.clear();
516
516
  }, L = async () => {
517
517
  y.value = !0;
518
518
  }, Y = async () => {
519
- await U.modal.confirm("导入后将覆盖原有的模板,您确定继续吗?", "温馨提示") === "confirm" && (V(P), y.value = !1);
519
+ await O.modal.confirm("导入后将覆盖原有的模板,您确定继续吗?", "温馨提示") === "confirm" && (V(P), y.value = !1);
520
520
  }, G = async () => {
521
521
  C.value = !0;
522
522
  const n = {};
523
523
  ht(() => {
524
524
  z.value.show(s, n, d.width || 220);
525
525
  });
526
- }, X = (n) => {
526
+ }, K = (n) => {
527
527
  if (n !== "customize") {
528
- const { width: t, height: p } = K(n);
528
+ const { width: t, height: p } = Q(n);
529
529
  d.width = t, d.height = p, s.setPaper(d.width, d.height);
530
530
  } else
531
531
  g.value = !0;
532
- }, K = (n) => ({
532
+ }, Q = (n) => ({
533
533
  A3: { width: 420, height: 296.6 },
534
534
  A4: { width: 210, height: 296.6 },
535
535
  A5: { width: 210, height: 147.6 },
@@ -537,7 +537,7 @@ const xt = {
537
537
  trisection: { width: 241, height: 93 }
538
538
  })[n];
539
539
  return ot(() => {
540
- const { record: n } = R;
540
+ const { record: n } = I;
541
541
  v.value = !0, m.value = ft(n, !0);
542
542
  const t = n.templateContent ? JSON.parse(n.templateContent) : xt;
543
543
  $("#hiprint-printTemplate").empty(), u.print.init({
@@ -560,7 +560,7 @@ const xt = {
560
560
  }), nt(() => {
561
561
  u = null, s = null;
562
562
  }), (n, t) => {
563
- const p = r("ut-button"), E = r("el-option"), _ = r("el-select"), x = r("vxe-input"), Q = r("el-popover"), M = r("vxe-button"), Z = r("el-space"), c = r("el-row"), a = r("el-col"), b = r("el-card"), tt = r("vxe-textarea"), et = r("vxe-modal"), lt = pt("spinning");
563
+ const p = r("ut-button"), E = r("el-option"), _ = r("el-select"), x = r("vxe-input"), X = r("el-popover"), k = r("vxe-button"), Z = r("el-space"), c = r("el-row"), a = r("el-col"), b = r("el-card"), tt = r("vxe-textarea"), et = r("vxe-modal"), lt = pt("spinning");
564
564
  return at((w(), N("div", wt, [
565
565
  l(b, { class: "design-panel-contain" }, {
566
566
  default: i(() => [
@@ -583,10 +583,10 @@ const xt = {
583
583
  placeholder: "Select Paper",
584
584
  class: "ml-1 mr-1",
585
585
  style: { width: "100px !important" },
586
- onChange: t[1] || (t[1] = (o) => X(m.value.paperType))
586
+ onChange: t[1] || (t[1] = (o) => K(m.value.paperType))
587
587
  }, {
588
588
  default: i(() => [
589
- (w(!0), N(rt, null, st(dt(I)["SU.PRINT.PAPER"].children, (o) => (w(), S(E, {
589
+ (w(!0), N(rt, null, st(dt(R)["SU.PRINT.PAPER"].children, (o) => (w(), S(E, {
590
590
  key: o.dictCode,
591
591
  label: o.dictName,
592
592
  value: o.dictCode
@@ -600,7 +600,7 @@ const xt = {
600
600
  ]),
601
601
  _: 1
602
602
  }, 8, ["modelValue"]),
603
- m.value.paperType === "customize" ? (w(), S(Q, {
603
+ m.value.paperType === "customize" ? (w(), S(X, {
604
604
  key: 0,
605
605
  visible: g.value,
606
606
  "onUpdate:visible": t[5] || (t[5] = (o) => g.value = o),
@@ -614,7 +614,7 @@ const xt = {
614
614
  l(p, {
615
615
  icon: "ri-font-size",
616
616
  content: "customSize",
617
- onClick: t[4] || (t[4] = ct((o) => g.value = !0, ["stop"]))
617
+ onTap: t[4] || (t[4] = ct((o) => g.value = !0, ["stop"]))
618
618
  })
619
619
  ]),
620
620
  default: i(() => [
@@ -652,7 +652,7 @@ const xt = {
652
652
  auth: "import",
653
653
  onTap: t[6] || (t[6] = (o) => L())
654
654
  }),
655
- l(M, {
655
+ l(k, {
656
656
  icon: "ri-indeterminate-circle-line ",
657
657
  class: "design-custom-button",
658
658
  onClick: t[7] || (t[7] = (o) => A("N"))
@@ -664,7 +664,7 @@ const xt = {
664
664
  align: "center",
665
665
  style: { width: "70px", "margin-left": "10px" }
666
666
  }, null, 8, ["modelValue"]),
667
- l(M, {
667
+ l(k, {
668
668
  icon: "ri-add-circle-fill ",
669
669
  class: "design-custom-button",
670
670
  onClick: t[9] || (t[9] = (o) => A("Y"))
@@ -674,7 +674,7 @@ const xt = {
674
674
  icon: "ri-delete-bin-5-fill",
675
675
  content: "repaint",
676
676
  auth: "repaint",
677
- onTap: t[10] || (t[10] = (o) => F())
677
+ onTap: t[10] || (t[10] = (o) => q())
678
678
  })
679
679
  ]),
680
680
  e("div", null, [
@@ -710,7 +710,7 @@ const xt = {
710
710
  default: i(() => [
711
711
  l(c, { class: "drag_item_title" }, {
712
712
  default: i(() => t[17] || (t[17] = [
713
- O("拖拽组件列表")
713
+ U("拖拽组件列表")
714
714
  ])),
715
715
  _: 1
716
716
  }),
@@ -738,8 +738,7 @@ const xt = {
738
738
  }),
739
739
  l(a, {
740
740
  span: 12,
741
- class: "drag_item_box",
742
- tid: "defaultModule.text"
741
+ class: "drag_item_box"
743
742
  }, {
744
743
  default: i(() => t[19] || (t[19] = [
745
744
  e("div", null, [
@@ -785,8 +784,7 @@ const xt = {
785
784
  }),
786
785
  l(a, {
787
786
  span: 12,
788
- class: "drag_item_box",
789
- tid: "defaultModule.text"
787
+ class: "drag_item_box"
790
788
  }, {
791
789
  default: i(() => t[21] || (t[21] = [
792
790
  e("div", null, [
@@ -809,7 +807,7 @@ const xt = {
809
807
  }),
810
808
  l(c, { class: "drag_item_title" }, {
811
809
  default: i(() => t[22] || (t[22] = [
812
- O("辅助")
810
+ U("辅助")
813
811
  ])),
814
812
  _: 1
815
813
  }),