@utogether/udp-core 1.0.1-beta.1 → 1.0.1-beta.11

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 (147) hide show
  1. package/build/plugins.ts +39 -32
  2. package/dist/{403-Dp617CWX.js → 403-Dsgsr2M-.js} +1 -1
  3. package/dist/{404-Cz_Axb6Y.js → 404-DmPHEfqM.js} +1 -1
  4. package/dist/{500-BGCtRNse.js → 500-OYEgHR2a.js} +1 -1
  5. package/dist/{AuthorityInfo-DGGfm7IS.js → AuthorityInfo-B1H1txG-.js} +1 -1
  6. package/dist/AuthorityInfo.vue_vue_type_style_index_0_lang-BUlmQtjQ.js +100 -0
  7. package/dist/{Company-IV3GTnzY.js → Company-C8ojgx93.js} +3 -3
  8. package/dist/{CompanyPanel-qV-_VtoL.js → CompanyPanel-Dageer1t.js} +16 -16
  9. package/dist/{Department-B3W-OxW8.js → Department-Dr94_85I.js} +3 -3
  10. package/dist/{DepartmentPanel-Cw3OWxE7.js → DepartmentPanel-Bc5r1HpT.js} +1 -1
  11. package/dist/{DesignPanel-BFxR2fHJ.js → DesignPanel-CcWt1Myp.js} +1 -1
  12. package/dist/{DesignPanel.vue_vue_type_style_index_0_lang-DljbeFba.js → DesignPanel.vue_vue_type_style_index_0_lang-CKA6nx1l.js} +24 -26
  13. package/dist/DictView-BHj6wexC.js +110 -0
  14. package/dist/InvOrganization-DP3Le9g-.js +72 -0
  15. package/dist/Org-BRGHTwsw.js +39 -0
  16. package/dist/{Preview-BlDMmpdR.js → Preview-CqMaUD_3.js} +1 -1
  17. package/dist/{ReportDefine-Cub_85LA.js → ReportDefine-PEQdTCOY.js} +1 -1
  18. package/dist/{ReportDesign-hFhq5UVE.js → ReportDesign-CB4bv8ba.js} +43 -43
  19. package/dist/{ReportQuery-ChkWEyxT.js → ReportQuery-B7t4lMK0.js} +1 -1
  20. package/dist/{ReportQueryFrom-KVyD_8Dj.js → ReportQueryFrom-VBxUIMRJ.js} +1 -1
  21. package/dist/{ReportQueryFrom.vue_vue_type_style_index_0_lang-CLNODquq.js → ReportQueryFrom.vue_vue_type_style_index_0_lang-HeLA4Qs5.js} +1 -1
  22. package/dist/{ReportTemplate-ag9NDvh2.js → ReportTemplate-DNkv7F5p.js} +28 -28
  23. package/dist/{Role-_q3lQ8CZ.js → Role-BGfTpZK4.js} +6 -6
  24. package/dist/{RoleAssign-DZb9IRsm.js → RoleAssign-DrKFWZzA.js} +8 -8
  25. package/dist/{RolePanel-CsLsz-Ds.js → RolePanel-3lvRh7aS.js} +1 -1
  26. package/dist/{RolePanel-BQb1LlhD.js → RolePanel-BRI5QYe4.js} +1 -1
  27. package/dist/RolePanel.vue_vue_type_script_setup_true_lang-BXKZb7yt.js +132 -0
  28. package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-BrnRgHEk.js → RolePanel.vue_vue_type_script_setup_true_lang-Cci_Ysty.js} +44 -38
  29. package/dist/{ScrollPanel.vue_vue_type_style_index_0_lang-CaFKRwXu.js → ScrollPanel.vue_vue_type_style_index_0_lang-BmId6zzA.js} +21 -21
  30. package/dist/{Staff-BSf9Ypbk.js → Staff-Dr0dq3fW.js} +3 -3
  31. package/dist/{StaffInfo-BNKasyMF.js → StaffInfo-_N9g2hPa.js} +1 -1
  32. package/dist/{StaffInfo.vue_vue_type_script_setup_true_lang-DDZ7ukd0.js → StaffInfo.vue_vue_type_script_setup_true_lang-DiTJY2ug.js} +11 -11
  33. package/dist/{StaffPanel-Bpq0WVlH.js → StaffPanel-mxJQiW3G.js} +1 -1
  34. package/dist/{StaffPanel.vue_vue_type_script_setup_true_lang-BhiJ0Q-Q.js → StaffPanel.vue_vue_type_script_setup_true_lang-GRGn-5t6.js} +2 -2
  35. package/dist/{SysUser-FAABuNti.js → SysUser-DgA19hZE.js} +2 -2
  36. package/dist/{SysUserPanel-PxJeOgHm.js → SysUserPanel-Bc85z5_K.js} +1 -1
  37. package/dist/SysUserPanel.vue_vue_type_script_setup_true_lang-BHDrP1Pk.js +294 -0
  38. package/dist/{SystemMenu-C-7NAGon.js → SystemMenu-Be-gFIie.js} +26 -26
  39. package/dist/{UserInfo-ClXKtyGo.js → UserInfo-BCYuwFmr.js} +1 -1
  40. package/dist/{UserInfo.vue_vue_type_style_index_0_lang-8N7P4Hl7.js → UserInfo.vue_vue_type_style_index_0_lang-B1lgokO6.js} +39 -37
  41. package/dist/{childView-C_HmDQNd.js → childView-DhcBr1UA.js} +1 -1
  42. package/dist/{childView-uUlBcTza.js → childView-Dk4zZoXd.js} +1 -1
  43. package/dist/{childView.vue_vue_type_style_index_0_lang-Ckjmw6wJ.js → childView.vue_vue_type_style_index_0_lang-CVnLnl03.js} +40 -40
  44. package/dist/{childView.vue_vue_type_style_index_0_lang-y0sDvYx5.js → childView.vue_vue_type_style_index_0_lang-D4GYVhOc.js} +1 -1
  45. package/dist/{code-rule-AgCVDKFy.js → code-rule-BSwPwuAL.js} +9 -10
  46. package/dist/core.es.js +14 -11
  47. package/dist/{cron-task-C6FgQxTi.js → cron-task-T1ztyra7.js} +1 -1
  48. package/dist/{frameView-BDgISK7N.js → frameView-BDgngiBq.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-BSj2AtVL.js +4468 -0
  53. package/dist/{layoutView-yb3DV2DQ.js → layoutView-i7dLLBzJ.js} +1181 -1176
  54. package/dist/{login-RRpljbkm.js → login-K5Ludp8x.js} +105 -113
  55. package/dist/{login-log-CvVnyGi3.js → login-log-kqKzKTto.js} +1 -1
  56. package/dist/{lov-view-C9-rjzZR.js → lov-view-lAexiucu.js} +2 -2
  57. package/dist/{menuInfo-CzPQyFhp.js → menuInfo-BaN5YZPp.js} +1 -1
  58. package/dist/{menuInfo.vue_vue_type_style_index_0_lang-BumXunCg.js → menuInfo.vue_vue_type_style_index_0_lang-yI4QOYxG.js} +100 -97
  59. package/dist/{pda-app-Dvy3U-b6.js → pda-app-DEtDXFvM.js} +211 -197
  60. package/dist/{resource-Fy0lFkSV.js → resource-Bztmz7pn.js} +15 -15
  61. package/dist/{su-welcome-DYvSCUST.js → su-welcome-Bx8nBPi9.js} +109 -110
  62. package/dist/sys-config-nvrtYGgi.js +290 -0
  63. package/dist/udp-core.css +2 -2
  64. package/dist/{utogether-CjmJiHoE.js → utogether-yPnwDAIH.js} +1 -1
  65. package/index.ts +40 -36
  66. package/package.json +18 -18
  67. package/src/App.vue +65 -70
  68. package/src/api/index.ts +31 -31
  69. package/src/components/SuCharts/src/UserInfo.vue +78 -78
  70. package/src/components/SuScrollTree/ScrollPanel.vue +3 -3
  71. package/src/components/udp/count-down.vue +536 -0
  72. package/src/components/udp/flip-down/FlipCard/flip-card.vue +251 -0
  73. package/src/components/udp/flip-down/FlipCard/interfaces.ts +4 -0
  74. package/src/components/udp/flip-down/FlipClock/flip-clock.vue +113 -0
  75. package/src/components/udp/form-upload.vue +414 -64
  76. package/src/components/udp/form.vue +112 -0
  77. package/src/components/udp/grid.vue +495 -0
  78. package/src/components/udp/index.ts +10 -4
  79. package/src/components/udp/lov.vue +388 -0
  80. package/src/components/udp/modal-form.vue +13 -3
  81. package/src/components/udp/modal-grid.vue +298 -0
  82. package/src/components/udp/upload.vue +423 -0
  83. package/src/components/udp/utils.ts +447 -40
  84. package/src/directives/permission/index.ts +1 -1
  85. package/src/layout/components/lay-navbar/index.vue +239 -237
  86. package/src/layout/components/lay-panel/index.vue +150 -150
  87. package/src/layout/components/lay-search/index.vue +25 -25
  88. package/src/layout/components/lay-select-org/index.vue +64 -69
  89. package/src/layout/components/lay-sidebar/breadCrumb.vue +1 -1
  90. package/src/layout/components/lay-sidebar/horizontal.vue +190 -191
  91. package/src/layout/components/lay-sidebar/mixNav.vue +260 -258
  92. package/src/layout/components/lay-sidebar/sidebar-logo.vue +92 -98
  93. package/src/layout/components/lay-tag/index.vue +625 -625
  94. package/src/layout/hooks/useNav.ts +173 -173
  95. package/src/layout/layoutView.vue +215 -215
  96. package/src/main.ts +119 -109
  97. package/src/plugins/i18n/en.ts +302 -289
  98. package/src/plugins/i18n/zh.ts +349 -337
  99. package/src/plugins/vxe-table/index.ts +53 -46
  100. package/src/plugins/vxe-table/render.tsx +956 -817
  101. package/src/router/index.ts +177 -183
  102. package/src/router/modules/remaining.ts +58 -83
  103. package/src/store/modules/permission.ts +1 -4
  104. package/src/style/button.scss +85 -78
  105. package/src/style/tailwind.css +1 -68
  106. package/src/style/vxetable.scss +44 -11
  107. package/src/utils/authority/index.ts +1 -1
  108. package/src/utils/{http → udp/http}/index.ts +283 -297
  109. package/src/utils/{http → udp/http}/types.d.ts +8 -5
  110. package/src/utils/udp/useRender.ts +17 -6
  111. package/src/views/login/login-view.vue +300 -314
  112. package/src/views/organization/company/CompanyPanel.vue +259 -259
  113. package/src/views/organization/inv-org/InvOrganization.vue +68 -54
  114. package/src/views/organization/org/Org.vue +9 -5
  115. package/src/views/system/menu/SystemMenu.vue +183 -197
  116. package/src/views/system/menu/menuInfo.vue +363 -371
  117. package/src/views/system/role/AuthorityInfo.vue +19 -15
  118. package/src/views/system/role/Role.vue +1 -5
  119. package/src/views/system/role/RolePanel.vue +11 -2
  120. package/src/views/system/role/UserInfo.vue +195 -193
  121. package/src/views/system/role-assign/RoleAssign.vue +57 -57
  122. package/src/views/system/role-assign/RolePanel.vue +139 -136
  123. package/src/views/system/sys/sys-config.vue +287 -291
  124. package/src/views/system/sysUser/SysUserPanel.vue +278 -278
  125. package/src/views/uapp/pda/pda-app.vue +208 -176
  126. package/src/views/udev/dict/DictView.vue +118 -106
  127. package/src/views/udev/dict/childView.vue +7 -7
  128. package/src/views/udev/lov/lov-view.vue +91 -91
  129. package/src/views/ufile/aggregation/File.vue +5 -5
  130. package/src/views/ufile/file/water-mark.vue +14 -14
  131. package/src/views/uhome/su-welcome.vue +3 -3
  132. package/src/views/ulogin/login.vue +12 -8
  133. package/src/views/upms/user/login-log.vue +1 -1
  134. package/src/views/urpt/design/DesignPanel.vue +507 -526
  135. package/src/views/urpt/design/ReportDesign.vue +15 -19
  136. package/src/views/urpt/static-resource/resource.vue +3 -3
  137. package/src/views/urpt/template/ReportTemplate.vue +7 -7
  138. package/types/global.d.ts +2 -1
  139. package/vite.config.ts +6 -2
  140. package/dist/AuthorityInfo.vue_vue_type_style_index_0_lang-BqccGW7v.js +0 -102
  141. package/dist/DictView-C-i7e4hZ.js +0 -95
  142. package/dist/InvOrganization-cfT6riGU.js +0 -260
  143. package/dist/Org-CA7vTDIF.js +0 -35
  144. package/dist/RolePanel.vue_vue_type_script_setup_true_lang-cmW7zBLu.js +0 -126
  145. package/dist/SysUserPanel.vue_vue_type_script_setup_true_lang-njefUln5.js +0 -288
  146. package/dist/index-DzOzUkf6.js +0 -3388
  147. package/dist/sys-config-DJ1vNQTy.js +0 -277
package/build/plugins.ts CHANGED
@@ -1,32 +1,39 @@
1
- /*
2
- * @Author: wei.li
3
- * @Date: 2022-05-26 10:25:57
4
- * @LastEditors: levi7754 levi7754@163.com
5
- * @LastEditTime: 2025-07-16 17:46:57
6
- * @Description: file content
7
- */
8
- import vue from '@vitejs/plugin-vue';
9
- import { viteBuildInfo } from './';
10
- import svgLoader from 'vite-svg-loader';
11
- import vueJsx from '@vitejs/plugin-vue-jsx';
12
- import tailwindcss from '@tailwindcss/vite';
13
- import { visualizer } from 'rollup-plugin-visualizer';
14
-
15
- export function getPluginsList() {
16
- const lifecycle = process.env.npm_lifecycle_event;
17
- return [
18
- tailwindcss(),
19
- vue(),
20
- // jsx、tsx语法支持
21
- vueJsx(),
22
- // 线上环境删除console
23
- viteBuildInfo(),
24
- // 自定义主题
25
- // svg组件化支持
26
- svgLoader(),
27
- // 打包分析
28
- lifecycle === 'report'
29
- ? visualizer({ open: true, brotliSize: true, filename: 'report.html' })
30
- : (null as any)
31
- ];
32
- }
1
+ /*
2
+ * @Author: wei.li
3
+ * @Date: 2022-05-26 10:25:57
4
+ * @LastEditors: levi7754 levi7754@163.com
5
+ * @LastEditTime: 2025-07-26 10:31:27
6
+ * @Description: file content
7
+ */
8
+ import vue from '@vitejs/plugin-vue';
9
+ import { viteBuildInfo } from './';
10
+ import svgLoader from 'vite-svg-loader';
11
+ import vueJsx from '@vitejs/plugin-vue-jsx';
12
+ import tailwindcss from '@tailwindcss/vite';
13
+ import { visualizer } from 'rollup-plugin-visualizer';
14
+ import { ViteImageOptimizer } from 'vite-plugin-image-optimizer';
15
+ import removeConsole from 'vite-plugin-remove-console';
16
+
17
+ export function getPluginsList() {
18
+ const lifecycle = process.env.npm_lifecycle_event;
19
+ return [
20
+ tailwindcss(),
21
+ vue(),
22
+ // jsx、tsx语法支持
23
+ vueJsx(),
24
+ // 线上环境删除console
25
+ removeConsole(),
26
+ viteBuildInfo(),
27
+ // 自定义主题
28
+ // svg组件化支持
29
+ svgLoader(),
30
+ ViteImageOptimizer({
31
+ png: { quality: 70 },
32
+ jpg: { quality: 70 }
33
+ }),
34
+ // 打包分析
35
+ lifecycle === 'report'
36
+ ? visualizer({ open: true, brotliSize: true, filename: 'report.html' })
37
+ : (null as any)
38
+ ];
39
+ }
@@ -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-DzOzUkf6.js";
3
+ import { C as v } from "./index-BSj2AtVL.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-DzOzUkf6.js";
3
+ import { C as u } from "./index-BSj2AtVL.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-DzOzUkf6.js";
3
+ import { C as D } from "./index-BSj2AtVL.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-BqccGW7v.js";
1
+ import { _ as f } from "./AuthorityInfo.vue_vue_type_style_index_0_lang-BUlmQtjQ.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 { q as c } from "./index-BSj2AtVL.js";
3
+ import { t as S } from "./await-to-js.es5-BtRbN2QH.js";
4
+ const E = { class: "config" }, I = { style: { position: "relative", height: "100%" } }, z = /* @__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
+ z 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-CaFKRwXu.js";
3
- import p from "./CompanyPanel-qV-_VtoL.js";
4
- import { _ as d } from "./index-DzOzUkf6.js";
2
+ import { _ as m } from "./ScrollPanel.vue_vue_type_style_index_0_lang-BmId6zzA.js";
3
+ import p from "./CompanyPanel-Dageer1t.js";
4
+ import { _ as d } from "./index-BSj2AtVL.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 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";
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-DzOzUkf6.js";
7
+ import { q as J, _ as K } from "./index-BSj2AtVL.js";
8
8
  const O = { class: "page-content" }, _ = "/uums/unit", Q = /* @__PURE__ */ V({
9
9
  __name: "CompanyPanel",
10
10
  setup(W) {
@@ -28,18 +28,18 @@ 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 = w("active"), $ = w("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;
42
+ e.dataStatus = t, e.record = z(m.value, !0), e.dialogFormVisible = !0;
43
43
  }, y = R("xForm", null), h = () => {
44
44
  y.value.validate(async (t) => {
45
45
  if (!t) {
@@ -60,7 +60,7 @@ const O = { class: "page-content" }, _ = "/uums/unit", Q = /* @__PURE__ */ V({
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"), 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");
64
64
  return l(), E("div", O, [
65
65
  s(I, {
66
66
  perfect: "",
@@ -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,7 +105,7 @@ 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
110
  s(P, {
111
111
  ref_key: "xForm",
@@ -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(C, {
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(C, {
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-9d7dfca5"]]);
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-CaFKRwXu.js";
3
- import _ from "./DepartmentPanel-Cw3OWxE7.js";
4
- import { _ as d } from "./index-DzOzUkf6.js";
2
+ import { _ as p } from "./ScrollPanel.vue_vue_type_style_index_0_lang-BmId6zzA.js";
3
+ import _ from "./DepartmentPanel-Bc5r1HpT.js";
4
+ import { _ as d } from "./index-BSj2AtVL.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-DzOzUkf6.js";
8
+ import { e as Q, q as W, _ as Z } from "./index-BSj2AtVL.js";
9
9
  const ee = { class: "page-content" }, y = "/uums/department", te = /* @__PURE__ */ V({
10
10
  __name: "DepartmentPanel",
11
11
  setup(ae) {
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./DesignPanel.vue_vue_type_style_index_0_lang-DljbeFba.js";
1
+ import { _ as f } from "./DesignPanel.vue_vue_type_style_index_0_lang-CKA6nx1l.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-DzOzUkf6.js";
7
- import vt from "./Preview-BlDMmpdR.js";
6
+ import { e as gt, q as yt } from "./index-BSj2AtVL.js";
7
+ import vt from "./Preview-CqMaUD_3.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;
@@ -512,24 +512,24 @@ const xt = {
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
514
  }, F = async () => {
515
- await U.modal.confirm("重绘操作不可逆,您确定继续吗?", "温馨提示") === "confirm" && s.clear();
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"))
@@ -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
  }),
@@ -0,0 +1,110 @@
1
+ import { defineComponent as v, ref as i, createVNode as c, resolveComponent as s, nextTick as g, createElementBlock as C, openBlock as u, createBlock as k, createCommentVNode as D } from "vue";
2
+ import { _ as T } from "./childView.vue_vue_type_style_index_0_lang-CVnLnl03.js";
3
+ import { useRender as E } from "@utogether/utils";
4
+ const y = {
5
+ name: "DictView"
6
+ }, w = /* @__PURE__ */ v({
7
+ ...y,
8
+ setup(N) {
9
+ const o = i(null), a = [{
10
+ field: "dictCode",
11
+ title: "message.udp.dictCode"
12
+ }, {
13
+ field: "dictName",
14
+ title: "message.udp.dictName"
15
+ }, {
16
+ field: "dictType",
17
+ title: "message.udp.dictType",
18
+ code: "SU.DICT.TYPE"
19
+ }], t = E(), l = [
20
+ {
21
+ type: "checkbox",
22
+ width: 40,
23
+ align: "center"
24
+ },
25
+ {
26
+ field: "dictCode",
27
+ title: "message.udp.dictCode",
28
+ required: !0,
29
+ editRender: t.renderInput()
30
+ },
31
+ {
32
+ field: "dictName",
33
+ title: "message.udp.dictName",
34
+ required: !0,
35
+ editRender: t.renderInput()
36
+ },
37
+ // {
38
+ // field: 'userName',
39
+ // width: 300,
40
+ // editRender: renderHook.renderUpload()
41
+ // },
42
+ {
43
+ field: "dictType",
44
+ title: "message.udp.dictType",
45
+ required: !0,
46
+ editRender: t.renderDict("SU.DICT.TYPE"),
47
+ formatter: ["formatDict", "SU.DICT.TYPE"]
48
+ },
49
+ {
50
+ field: "dictDesc",
51
+ title: "message.remark",
52
+ editRender: t.renderInput()
53
+ },
54
+ {
55
+ field: "enabled",
56
+ width: 90,
57
+ editRender: t.renderDict({
58
+ code: "SU.ENABLE",
59
+ defaultValue: "1"
60
+ }),
61
+ formatter: ["formatDict", "SU.ENABLE"]
62
+ },
63
+ {
64
+ field: "operate",
65
+ width: 80,
66
+ slots: {
67
+ default: ({
68
+ row: e
69
+ }) => e.id ? [c(s("ut-button"), {
70
+ content: "lov",
71
+ onClick: () => m(e)
72
+ }, null)] : null
73
+ }
74
+ }
75
+ ], d = i(!1), r = i(null), m = (e) => {
76
+ g(() => {
77
+ var n;
78
+ d.value = !0, r.value = e, r.value.total = (n = e.children) == null ? void 0 : n.length;
79
+ });
80
+ }, f = () => {
81
+ o.value.refreshData(), d.value = !1;
82
+ }, p = {
83
+ editActived({
84
+ row: e
85
+ }) {
86
+ l[1].editRender.props.disabled = !!e.id;
87
+ }
88
+ }, h = (e) => e.dictType !== "0";
89
+ return (e, n) => {
90
+ const _ = s("ut-grid");
91
+ return u(), C("div", null, [c(_, {
92
+ ref_key: "xgrid",
93
+ ref: o,
94
+ items: a,
95
+ columns: l,
96
+ "check-method": h,
97
+ events: p,
98
+ url: "/upfm/v1/lov"
99
+ }, null, 512), d.value ? (u(), k(T, {
100
+ key: 0,
101
+ show: d.value,
102
+ record: r.value,
103
+ onOnClose: f
104
+ }, null, 8, ["show", "record"])) : D("", !0)]);
105
+ };
106
+ }
107
+ });
108
+ export {
109
+ w as default
110
+ };