@utogether/udp-core 1.0.1-beta.9 → 1.0.2

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 (168) hide show
  1. package/build/plugins.ts +37 -39
  2. package/dist/{403-BOzKHdlm.js → 403-B1rIjAAu.js} +6 -6
  3. package/dist/{404-uwgt4Nll.js → 404-mBqc2y4t.js} +4 -4
  4. package/dist/{500-4HBf6V9m.js → 500-BoI45Zdh.js} +2 -2
  5. package/dist/{AuthorityInfo-DvbIh1vT.js → AuthorityInfo-B08NBIIn.js} +1 -1
  6. package/dist/{AuthorityInfo.vue_vue_type_style_index_0_lang-BlCPvwXU.js → AuthorityInfo.vue_vue_type_style_index_0_lang-BLP1SaiH.js} +3 -3
  7. package/dist/{Company-D7Q9BFmr.js → Company-JGGyWEWH.js} +3 -3
  8. package/dist/{CompanyPanel-C0-PJlrt.js → CompanyPanel-BQ_cCmDx.js} +7 -7
  9. package/dist/{Department-h2hlXACv.js → Department-z2iO6hwM.js} +10 -10
  10. package/dist/{DepartmentPanel-B6hDEQpG.js → DepartmentPanel-BtQe7zwU.js} +108 -78
  11. package/dist/{DesignPanel-cS58-1v9.js → DesignPanel-7mhtVWas.js} +1 -1
  12. package/dist/{DesignPanel.vue_vue_type_style_index_0_lang-LdvLC8VU.js → DesignPanel.vue_vue_type_style_index_0_lang-4EsHemj_.js} +6 -6
  13. package/dist/{DictView-T3TmpBa8.js → DictView-CjchV2Yk.js} +15 -16
  14. package/dist/InvOrganization-Pn1O_XP0.js +74 -0
  15. package/dist/{Org-CnCBDGKF.js → Org-BqytV_vi.js} +1 -1
  16. package/dist/{Preview-BaktKXB1.js → Preview-CLpUUMay.js} +2 -2
  17. package/dist/{ReportDefine-5Rb0PO9A.js → ReportDefine-Cz1KtEUF.js} +1 -1
  18. package/dist/{ReportDesign-DYdkVREA.js → ReportDesign-BaORYud4.js} +13 -13
  19. package/dist/{ReportQuery-BwhzIXMt.js → ReportQuery-CPCPXiXz.js} +1 -1
  20. package/dist/{ReportQueryFrom-PHtWwlOe.js → ReportQueryFrom-C_AcrfkJ.js} +1 -1
  21. package/dist/{ReportQueryFrom.vue_vue_type_style_index_0_lang-BE5yZNPM.js → ReportQueryFrom.vue_vue_type_style_index_0_lang-Bm67ejay.js} +1 -1
  22. package/dist/{ReportTemplate-DaadVXIi.js → ReportTemplate-CFiNMz79.js} +11 -11
  23. package/dist/{Role-Dtg3nAmG.js → Role-B-XDoJd5.js} +3 -3
  24. package/dist/{RoleAssign-DEGtLssH.js → RoleAssign-BolW8YVs.js} +8 -8
  25. package/dist/{RolePanel-DpUzfE_o.js → RolePanel-2kfs5tw9.js} +1 -1
  26. package/dist/{RolePanel-CT7BTPmy.js → RolePanel-HilSuYns.js} +1 -1
  27. package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-Xyo0YEI0.js → RolePanel.vue_vue_type_script_setup_true_lang-CE4gApUY.js} +7 -7
  28. package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-Dg2A6DJu.js → RolePanel.vue_vue_type_script_setup_true_lang-DPzgfAyV.js} +13 -13
  29. package/dist/{ScrollPanel.vue_vue_type_style_index_0_lang-CyutzDZS.js → ScrollPanel.vue_vue_type_style_index_0_lang-CCTH4RkH.js} +4 -4
  30. package/dist/{Staff-_NlAGkrh.js → Staff-BTk3whFC.js} +3 -3
  31. package/dist/{StaffInfo-DVgUvVgd.js → StaffInfo-d3AuSzlA.js} +1 -1
  32. package/dist/{StaffInfo.vue_vue_type_script_setup_true_lang-C8hmlFgX.js → StaffInfo.vue_vue_type_script_setup_true_lang-eOL4VlfE.js} +5 -5
  33. package/dist/{StaffPanel-DKNZE3IE.js → StaffPanel-DV-D4jjz.js} +1 -1
  34. package/dist/StaffPanel.vue_vue_type_script_setup_true_lang-4sFq3CEo.js +135 -0
  35. package/dist/{SysUser-kQUf7XKz.js → SysUser-BnjYytws.js} +2 -2
  36. package/dist/{SysUserPanel-C191uX3U.js → SysUserPanel-CBoyD-Qi.js} +1 -1
  37. package/dist/SysUserPanel.vue_vue_type_script_setup_true_lang-PrTlTZR-.js +341 -0
  38. package/dist/{SystemMenu-DwuSvHnj.js → SystemMenu-kYB_ZaUt.js} +36 -36
  39. package/dist/{UserInfo-DIsInFld.js → UserInfo-4dx97VBL.js} +1 -1
  40. package/dist/{UserInfo.vue_vue_type_style_index_0_lang-CnvGdbej.js → UserInfo.vue_vue_type_style_index_0_lang-BpbC_ZDm.js} +10 -10
  41. package/dist/{childView-3Bs2UBEw.js → childView-CHPNfTEb.js} +1 -1
  42. package/dist/{childView-BawyULD7.js → childView-CKA_JgVZ.js} +1 -1
  43. package/dist/{childView.vue_vue_type_style_index_0_lang-YpWF-p2F.js → childView.vue_vue_type_style_index_0_lang-Bym2fQRd.js} +7 -7
  44. package/dist/childView.vue_vue_type_style_index_0_lang-W7bCtXeu.js +177 -0
  45. package/dist/{code-rule-DVaYcn8S.js → code-rule-CbxuZg0-.js} +40 -38
  46. package/dist/core.es.js +18 -12
  47. package/dist/{cron-task-xuzP-BpE.js → cron-task-nTOpqQYf.js} +7 -7
  48. package/dist/flow-task-B07st2aD.js +10 -0
  49. package/dist/{frameView-Cudt06qS.js → frameView-Z1tPUyCh.js} +1 -1
  50. package/dist/index-C3q8HoJM.js +4650 -0
  51. package/dist/{layoutView-BlFTV2jX.js → layoutView--MGA9zUB.js} +1766 -1760
  52. package/dist/{log-in-e7D5Ss1P.js → log-in-CSYJDA6m.js} +36 -29
  53. package/dist/log-out-DiwGCg7p.js +130 -0
  54. package/dist/login-C6Y0ajDp.js +251 -0
  55. package/dist/{login-log-kqKzKTto.js → login-log-C0V-_l3F.js} +5 -3
  56. package/dist/{lov-view-B2HaxyMs.js → lov-view-Cmv7wZZ9.js} +6 -6
  57. package/dist/{menuInfo-BxCTJ1VW.js → menuInfo-UeutJpOa.js} +1 -1
  58. package/dist/{menuInfo.vue_vue_type_style_index_0_lang-CLOPNeUW.js → menuInfo.vue_vue_type_style_index_0_lang-CWX4Mu67.js} +118 -98
  59. package/dist/{pda-app-DPsAFNiw.js → pda-app-B6w99SJo.js} +10 -10
  60. package/dist/{resource-Dibb7t8u.js → resource-BybJvUv0.js} +4 -4
  61. package/dist/{su-welcome-DejR0KkM.js → su-welcome-C1bmxHoY.js} +119 -121
  62. package/dist/sys-config-BnmIDnCj.js +370 -0
  63. package/dist/udp-core.css +1 -9
  64. package/dist/utogether-MlnyYtNS.js +4 -0
  65. package/index.ts +49 -40
  66. package/package.json +18 -18
  67. package/src/App.vue +65 -65
  68. package/src/api/http.ts +1 -4
  69. package/src/api/index.ts +4 -2
  70. package/src/api/user.ts +2 -2
  71. package/src/components/SuCharts/src/UserInfo.vue +78 -78
  72. package/src/components/SuScrollTree/ScrollPanel.vue +1 -6
  73. package/src/components/udp/content/index.vue +88 -0
  74. package/src/components/udp/{form.vue → form/form.vue} +13 -16
  75. package/src/components/udp/{grid.vue → grid/index.vue} +56 -27
  76. package/src/components/udp/index.ts +4 -9
  77. package/src/components/udp/ut-stamp-badge/index.vue +271 -0
  78. package/src/components/udp/utils.ts +66 -105
  79. package/src/layout/components/lay-navbar/index.vue +8 -6
  80. package/src/layout/components/lay-panel/index.vue +150 -150
  81. package/src/layout/components/lay-search/index.vue +25 -25
  82. package/src/layout/components/lay-select-org/index.vue +4 -9
  83. package/src/layout/components/lay-setting/index.vue +503 -510
  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 +101 -98
  87. package/src/layout/components/lay-tag/index.vue +24 -51
  88. package/src/layout/hooks/useDataThemeChange.ts +1 -1
  89. package/src/layout/hooks/useNav.ts +176 -173
  90. package/src/layout/hooks/useTag.ts +227 -233
  91. package/src/layout/types.ts +93 -92
  92. package/src/main.ts +115 -119
  93. package/src/plugins/i18n/en.ts +302 -302
  94. package/src/plugins/i18n/module/u-workflow.ts +1 -1
  95. package/src/plugins/i18n/zh.ts +21 -6
  96. package/src/plugins/vxe-table/index.ts +116 -53
  97. package/src/plugins/vxe-table/render.tsx +945 -956
  98. package/src/router/index.ts +17 -17
  99. package/src/router/modules/flow.ts +35 -0
  100. package/src/router/modules/home.ts +32 -32
  101. package/src/router/modules/remaining.ts +58 -58
  102. package/src/router/utils.ts +420 -377
  103. package/src/store/modules/app.ts +2 -4
  104. package/src/store/modules/epTheme.ts +48 -49
  105. package/src/store/modules/multiTags.ts +15 -14
  106. package/src/store/modules/permission.ts +25 -15
  107. package/src/store/modules/system.ts +1 -3
  108. package/src/style/button.scss +85 -85
  109. package/src/style/login.css +1 -1
  110. package/src/style/vxetable.scss +61 -2
  111. package/src/utils/dataFormat/index.ts +223 -223
  112. package/src/utils/index.ts +3 -1
  113. package/src/utils/lifecycle.ts +39 -20
  114. package/src/utils/propTypes.ts +1 -6
  115. package/src/utils/storage/index.ts +2 -2
  116. package/src/utils/udp/http/index.ts +24 -11
  117. package/src/utils/udp/http/types.d.ts +3 -10
  118. package/src/views/login/login-view.vue +4 -18
  119. package/src/views/organization/company/CompanyPanel.vue +259 -259
  120. package/src/views/organization/department/Department.vue +58 -58
  121. package/src/views/organization/department/DepartmentPanel.vue +303 -283
  122. package/src/views/organization/inv-org/InvOrganization.vue +22 -7
  123. package/src/views/organization/staff/StaffInfo.vue +127 -133
  124. package/src/views/organization/staff/StaffPanel.vue +162 -145
  125. package/src/views/system/cron/cron-task.vue +2 -12
  126. package/src/views/system/menu/SystemMenu.vue +185 -183
  127. package/src/views/system/menu/menuInfo.vue +384 -363
  128. package/src/views/system/role/UserInfo.vue +195 -195
  129. package/src/views/system/role-assign/RoleAssign.vue +57 -57
  130. package/src/views/system/role-assign/RolePanel.vue +139 -139
  131. package/src/views/system/sys/sys-config.vue +69 -20
  132. package/src/views/system/sysUser/SysUserPanel.vue +97 -28
  133. package/src/views/uapp/pda/pda-app.vue +208 -208
  134. package/src/views/udev/coderule/code-rule.vue +132 -121
  135. package/src/views/udev/dict/DictView.vue +2 -2
  136. package/src/views/udev/dict/childView.vue +183 -222
  137. package/src/views/udev/lov/childView.vue +1 -7
  138. package/src/views/udev/lov/lov-view.vue +91 -91
  139. package/src/views/uhome/components/menu-favorite.vue +314 -331
  140. package/src/views/uhome/su-welcome.vue +319 -339
  141. package/src/views/ulogin/login.vue +325 -321
  142. package/src/views/upms/interface/log-in.vue +100 -106
  143. package/src/views/upms/interface/log-out.vue +104 -107
  144. package/src/views/upms/user/login-log.vue +54 -60
  145. package/src/views/urpt/design/DesignPanel.vue +507 -507
  146. package/src/views/urpt/design/Preview.vue +1 -0
  147. package/src/views/urpt/design/ReportDesign.vue +2 -4
  148. package/src/views/utask/flow-task.vue +18 -0
  149. package/types/global.d.ts +231 -236
  150. package/dist/InvOrganization-BVuOhzbt.js +0 -66
  151. package/dist/StaffPanel.vue_vue_type_script_setup_true_lang-BOOO6Cek.js +0 -111
  152. package/dist/SysUserPanel.vue_vue_type_script_setup_true_lang-SwNbAEvW.js +0 -294
  153. package/dist/childView.vue_vue_type_style_index_0_lang-DWIFCX3X.js +0 -187
  154. package/dist/index-CKnq5xIa.js +0 -2623
  155. package/dist/log-out--RRncZhN.js +0 -120
  156. package/dist/login-CpKykfdf.js +0 -253
  157. package/dist/sys-config-DiySRWns.js +0 -277
  158. package/dist/utogether-Dct_14Zk.js +0 -182
  159. package/src/components/udp/count-down.vue +0 -536
  160. package/src/components/udp/flip-down/FlipCard/flip-card.vue +0 -251
  161. package/src/components/udp/flip-down/FlipCard/interfaces.ts +0 -4
  162. package/src/components/udp/flip-down/FlipClock/flip-clock.vue +0 -113
  163. package/src/components/udp/form-upload.vue +0 -482
  164. package/src/components/udp/lov.vue +0 -388
  165. package/src/components/udp/modal-form.vue +0 -189
  166. package/src/components/udp/modal-grid.vue +0 -288
  167. package/src/components/udp/upload.vue +0 -423
  168. package/src/utils/udp/useRender.ts +0 -431
package/build/plugins.ts CHANGED
@@ -1,39 +1,37 @@
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
+ /*
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' ? visualizer({ open: true, brotliSize: true, filename: 'report.html' }) : (null as any)
36
+ ];
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
- import { useRouter as y, useRoute as C } from "vue-router";
3
- import { C as v } from "./index-CKnq5xIa.js";
2
+ import { useRouter as y, useRoute as v } from "vue-router";
3
+ import { H as C } from "./index-C3q8HoJM.js";
4
4
  const E = {
5
5
  width: "251",
6
6
  height: "294"
@@ -21,11 +21,11 @@ const A = { render: _ }, D = {
21
21
  class: "mb-4 text-gray-500",
22
22
  initial: { opacity: 0, y: 100 },
23
23
  enter: { opacity: 1, y: 0, transition: { delay: 300 } }
24
- }, R = /* @__PURE__ */ r({
24
+ }, H = /* @__PURE__ */ r({
25
25
  __name: "403",
26
26
  setup(c) {
27
- const s = y(), i = C(), o = () => {
28
- v(i, !1), s.push("/");
27
+ const s = y(), i = v(), o = () => {
28
+ C(i, !1), s.push("/");
29
29
  };
30
30
  return (V, t) => {
31
31
  const d = F("el-button"), p = n("motion");
@@ -61,5 +61,5 @@ const A = { render: _ }, D = {
61
61
  }
62
62
  });
63
63
  export {
64
- R as default
64
+ H as default
65
65
  };
@@ -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
- import { useRouter as C, useRoute as k } from "vue-router";
3
- import { C as u } from "./index-CKnq5xIa.js";
2
+ import { useRouter as k, useRoute as u } from "vue-router";
3
+ import { H as C } from "./index-C3q8HoJM.js";
4
4
  const y = {
5
5
  width: "252",
6
6
  height: "294"
@@ -24,8 +24,8 @@ const _ = { render: E }, z = {
24
24
  }, N = /* @__PURE__ */ r({
25
25
  __name: "404",
26
26
  setup(c) {
27
- const h = C(), i = k(), o = () => {
28
- u(i, !1), h.push("/");
27
+ const h = k(), i = u(), o = () => {
28
+ C(i, !1), h.push("/");
29
29
  };
30
30
  return (b, t) => {
31
31
  const d = n("el-button"), s = F("motion");
@@ -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-CKnq5xIa.js";
3
+ import { H as D } from "./index-C3q8HoJM.js";
4
4
  const y = {
5
5
  width: "254",
6
6
  height: "294"
@@ -27,7 +27,7 @@ const E = { render: A }, _ = {
27
27
  const h = u(), i = C(), d = () => {
28
28
  D(i, !1), h.push("/");
29
29
  };
30
- return (b, t) => {
30
+ return (H, t) => {
31
31
  const m = F("el-button"), l = f("motion");
32
32
  return a(), s("div", _, [
33
33
  n(k(E)),
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./AuthorityInfo.vue_vue_type_style_index_0_lang-BlCPvwXU.js";
1
+ import { _ as f } from "./AuthorityInfo.vue_vue_type_style_index_0_lang-BLP1SaiH.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,7 +1,7 @@
1
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-CKnq5xIa.js";
2
+ import { y as c } from "./index-C3q8HoJM.js";
3
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({
4
+ const E = { class: "config" }, I = { style: { position: "relative", height: "100%" } }, H = /* @__PURE__ */ N({
5
5
  __name: "AuthorityInfo",
6
6
  props: {
7
7
  show: { type: Boolean, default: !1 },
@@ -96,5 +96,5 @@ const E = { class: "config" }, I = { style: { position: "relative", height: "100
96
96
  }
97
97
  });
98
98
  export {
99
- z as _
99
+ H as _
100
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-CyutzDZS.js";
3
- import p from "./CompanyPanel-C0-PJlrt.js";
4
- import { _ as d } from "./index-CKnq5xIa.js";
2
+ import { _ as m } from "./ScrollPanel.vue_vue_type_style_index_0_lang-CCTH4RkH.js";
3
+ import p from "./CompanyPanel-BQ_cCmDx.js";
4
+ import { _ as d } from "./index-C3q8HoJM.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) {
@@ -4,7 +4,7 @@ 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-CKnq5xIa.js";
7
+ import { y as J, _ as K } from "./index-C3q8HoJM.js";
8
8
  const O = { class: "page-content" }, _ = "/uums/unit", Q = /* @__PURE__ */ V({
9
9
  __name: "CompanyPanel",
10
10
  setup(W) {
@@ -53,16 +53,16 @@ const O = { class: "page-content" }, _ = "/uums/unit", Q = /* @__PURE__ */ V({
53
53
  if ((o = t.children) != null && o.length) return G(r("message.deletePartment"));
54
54
  await U.modal.confirm(r("message.tip.del", { msg: "aaaaa" })) === "confirm" && (await f.delete(_, t), b());
55
55
  }, b = () => {
56
- $.value = !0, H(r("message.operateSuccess")), q();
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"), C = 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,7 +107,7 @@ 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
112
  ref: y,
113
113
  data: e.record,
@@ -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,25 +1,25 @@
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-CyutzDZS.js";
3
- import _ from "./DepartmentPanel-B6hDEQpG.js";
4
- import { _ as d } from "./index-CKnq5xIa.js";
1
+ import { defineComponent as l, ref as e, provide as t, createElementBlock as i, openBlock as m, createElementVNode as n, createVNode as a } from "vue";
2
+ import { _ as p } from "./ScrollPanel.vue_vue_type_style_index_0_lang-CCTH4RkH.js";
3
+ import _ from "./DepartmentPanel-BtQe7zwU.js";
4
+ import { _ as d } from "./index-C3q8HoJM.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) {
8
- const a = e({}), r = e(!1), s = e([]);
9
- return t("active", a), t("scrollPanelChange", r), t("treeList", s), (c, C) => (m(), i("div", f, [
8
+ const o = e({}), r = e(!1), s = e([]);
9
+ return t("active", o), t("scrollPanelChange", r), t("treeList", s), (c, C) => (m(), i("div", f, [
10
10
  n("div", u, [
11
- o(p, {
11
+ a(p, {
12
12
  title: c.$t("department"),
13
13
  url: "/uums/department/treeDepartment",
14
14
  "tree-otions": { children: "children", label: "deptName" }
15
15
  }, null, 8, ["title"])
16
16
  ]),
17
17
  n("div", h, [
18
- o(_)
18
+ a(_)
19
19
  ])
20
20
  ]));
21
21
  }
22
- }), x = /* @__PURE__ */ d(v, [["__scopeId", "data-v-30dd7ea4"]]);
22
+ }), k = /* @__PURE__ */ d(v, [["__scopeId", "data-v-a043aab6"]]);
23
23
  export {
24
- x as default
24
+ k as default
25
25
  };
@@ -1,148 +1,178 @@
1
- import { defineComponent as V, reactive as j, inject as C, watch as B, resolveComponent as l, resolveDirective as M, createElementBlock as R, openBlock as c, createVNode as n, withDirectives as U, createBlock as m, withCtx as d, createElementVNode as s, unref as H, createCommentVNode as _, createTextVNode as L, toDisplayString as X } from "vue";
2
- import { useI18n as Y } from "vue-i18n";
3
- import { templateRef as z } from "@vueuse/core";
4
- import { clone as G } from "xe-utils";
1
+ import { defineComponent as U, reactive as O, inject as $, watch as R, resolveComponent as m, resolveDirective as H, createElementBlock as L, openBlock as d, createVNode as o, withDirectives as Y, createBlock as l, withCtx as c, createCommentVNode as p, unref as y, createElementVNode as s, createTextVNode as z, toDisplayString as G } from "vue";
2
+ import { useI18n as J } from "vue-i18n";
3
+ import { templateRef as K } from "@vueuse/core";
4
+ import { clone as Q } from "xe-utils";
5
5
  import { t as k } from "./await-to-js.es5-BtRbN2QH.js";
6
- import { VXETable as J } from "vxe-table";
7
- import { warnMessage as K, successMessage as O } from "@utogether/utils";
8
- import { e as Q, q as W, _ as Z } from "./index-CKnq5xIa.js";
9
- const ee = { class: "page-content" }, y = "/uums/department", te = /* @__PURE__ */ V({
6
+ import { VxeUI as T } from "vxe-table";
7
+ import { warnMessage as W, successMessage as X } from "@utogether/utils";
8
+ import { i as Z, E as b, y as ee, _ as te } from "./index-C3q8HoJM.js";
9
+ const ae = { class: "page-content" }, C = "/uums/department", ne = /* @__PURE__ */ U({
10
10
  __name: "DepartmentPanel",
11
- setup(ae) {
12
- const e = j({
11
+ setup(se) {
12
+ const e = O({
13
13
  record: {},
14
14
  dataList: [],
15
15
  loading: !1,
16
16
  dialogFormVisible: !1,
17
17
  isChecked: !1,
18
18
  dataStatus: ""
19
- }), S = Q().getDataDict, { t: o } = Y(), f = W(), $ = {
19
+ }), D = Z().getDataDict, { t: i } = J(), u = ee(), N = {
20
20
  deptName: [
21
21
  {
22
22
  required: !0,
23
- message: `${o("message.required")}${o("message.deptName")}`
23
+ message: `${i("message.required")}${i("message.deptName")}`
24
24
  }
25
25
  ],
26
26
  deptCode: [
27
27
  {
28
28
  required: !0,
29
- message: `${o("message.required")}${o("message.deptCode")}`
29
+ message: `${i("message.required")}${i("message.deptCode")}`
30
30
  }
31
31
  ],
32
32
  deptType: [
33
33
  {
34
34
  required: !0,
35
- message: `${o("message.required")}${o("message.deptType")}`
35
+ message: `${i("message.required")}${i("message.deptType")}`
36
36
  }
37
37
  ]
38
- }, p = C("active"), h = C("scrollPanelChange");
39
- B(
40
- () => p.value,
38
+ }, f = $("active"), A = $("scrollPanelChange");
39
+ R(
40
+ () => f.value,
41
41
  (a, t) => {
42
- e.record = p.value, a != null && a.id && (t != null && t.id) && a !== t && x("detail");
42
+ e.record = f.value, a != null && a.id && (t != null && t.id) && a !== t && h("detail");
43
43
  }
44
44
  );
45
- const T = () => {
45
+ const F = () => {
46
46
  var a;
47
- e.dataStatus = "add", e.record = {}, e.record.parentId = (a = p.value) == null ? void 0 : a.id, e.isChecked = !1, e.dialogFormVisible = !0;
48
- }, x = (a) => {
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) => {
47
+ e.dataStatus = "add", e.record = {}, e.record.parentId = (a = f.value) == null ? void 0 : a.id, e.isChecked = !1, e.dialogFormVisible = !0;
48
+ }, h = (a) => {
49
+ e.dataStatus = a, e.record = Q(f.value, !0), e.dialogFormVisible = !0;
50
+ }, S = K("xForm", null), E = () => {
51
+ S.value.validate(async (a) => {
52
52
  if (!a) {
53
- const { record: t, dataStatus: r } = e;
53
+ const { record: t, dataStatus: n } = 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 [x] = n === "add" ? await k(u.post(C, t)) : await k(u.put(C, t));
56
+ e.loading = !1, x || w();
57
57
  }
58
58
  });
59
- }, N = async () => {
59
+ }, P = async () => {
60
60
  const { record: a } = e;
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());
61
+ if (a.children.length) return W(i("message.deletePartment"));
62
+ await T.modal.confirm(i("message.tip.del")) === "confirm" && (await u.delete(C, a), w());
63
+ }, v = async (a) => {
64
+ if (await T.modal.confirm(i("message.tip.confirmSync")) === "confirm") {
65
+ const [n] = await k(u.post("/uums/department/syncEwDepartment", { code: a }));
66
+ if (n) return;
67
+ w();
68
+ }
63
69
  }, w = () => {
64
- h.value = !0, O(o("message.operateSuccess")), P();
65
- }, F = () => {
70
+ A.value = !0, X(i("message.operateSuccess")), I();
71
+ }, q = () => {
66
72
  e.dataStatus === "add" && (e.dialogFormVisible = !1), e.dataStatus = "";
67
- }, P = () => {
73
+ }, I = () => {
68
74
  e.dialogFormVisible = !1;
69
75
  };
70
76
  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");
72
- return c(), R("div", ee, [
73
- n(g, {
77
+ const n = m("ut-button"), x = m("vxe-toolbar"), _ = m("vxe-form-item"), V = m("vxe-form"), g = m("el-row"), j = m("vxe-checkbox"), B = m("el-card"), M = H("spinning");
78
+ return d(), L("div", ae, [
79
+ o(x, {
74
80
  perfect: "",
75
81
  class: ""
76
82
  }, {
77
- buttons: d(() => [
78
- n(r, {
83
+ buttons: c(() => [
84
+ o(n, {
79
85
  status: "u-cyan",
80
86
  icon: "ri-add-line",
81
87
  content: "add",
82
- onTap: t[0] || (t[0] = (i) => T())
88
+ auth: "add",
89
+ onTap: t[0] || (t[0] = (r) => F())
83
90
  }),
84
- n(r, {
91
+ y(b)("wechat") ? (d(), l(n, {
92
+ key: 0,
93
+ status: "success",
94
+ icon: "ri-refresh-line",
95
+ content: "sync",
96
+ onTap: t[1] || (t[1] = (r) => v("wechat"))
97
+ })) : p("", !0),
98
+ y(b)("dingding") ? (d(), l(n, {
99
+ key: 1,
100
+ status: "success",
101
+ icon: "ri-refresh-line",
102
+ content: "sync",
103
+ onTap: t[2] || (t[2] = (r) => v("dingding"))
104
+ })) : p("", !0),
105
+ y(b)("OA") ? (d(), l(n, {
106
+ key: 2,
107
+ status: "success",
108
+ icon: "ri-refresh-line",
109
+ content: "sync",
110
+ onTap: t[3] || (t[3] = (r) => v("OA"))
111
+ })) : p("", !0),
112
+ o(n, {
85
113
  status: "primary",
86
114
  icon: "ri-edit-box-line",
115
+ auth: "edit",
87
116
  content: "edit",
88
- onTap: t[1] || (t[1] = (i) => x("update"))
117
+ onTap: t[4] || (t[4] = (r) => h("update"))
89
118
  }),
90
- n(r, {
119
+ o(n, {
91
120
  status: "danger",
92
121
  icon: "ri-close-fill",
122
+ auth: "del",
93
123
  content: "delete",
94
- onTap: t[2] || (t[2] = (i) => N())
124
+ onTap: t[5] || (t[5] = (r) => P())
95
125
  })
96
126
  ]),
97
127
  _: 1
98
128
  }),
99
- e.dialogFormVisible ? U((c(), m(u, {
129
+ e.dialogFormVisible ? Y((d(), l(g, {
100
130
  key: 0,
101
131
  type: "flex",
102
132
  justify: "center",
103
133
  align: "middle",
104
134
  class: "w-departInfo-wrapper"
105
135
  }, {
106
- default: d(() => [
107
- n(A, {
136
+ default: c(() => [
137
+ o(B, {
108
138
  width: "60%",
109
139
  shadow: "always",
110
140
  class: "box-card w-card-wrapper"
111
141
  }, {
112
- default: d(() => [
113
- t[4] || (t[4] = s("div", { class: "clearfix" }, [
142
+ default: c(() => [
143
+ t[7] || (t[7] = s("div", { class: "clearfix" }, [
114
144
  s("span", { class: "w-card-title" })
115
145
  ], -1)),
116
- n(u, null, {
117
- default: d(() => [
118
- n(q, {
146
+ o(g, null, {
147
+ default: c(() => [
148
+ o(V, {
119
149
  ref_key: "xForm",
120
- ref: b,
150
+ ref: S,
121
151
  data: e.record,
122
- rules: $,
152
+ rules: N,
123
153
  "label-width": "90px"
124
154
  }, {
125
- default: d(() => {
126
- var i;
155
+ default: c(() => {
156
+ var r;
127
157
  return [
128
- n(v, {
158
+ o(_, {
129
159
  title: a.$t("message.deptName"),
130
160
  field: "deptName",
131
161
  "item-render": { name: "$input", props: { disabled: e.dataStatus === "detail" } },
132
162
  span: 24
133
163
  }, null, 8, ["title", "item-render"]),
134
- n(v, {
164
+ o(_, {
135
165
  title: a.$t("message.deptCode"),
136
166
  field: "deptCode",
137
167
  "item-render": { name: "$input", props: { disabled: e.dataStatus !== "add" } },
138
168
  span: 24
139
169
  }, null, 8, ["title", "item-render"]),
140
- n(v, {
170
+ o(_, {
141
171
  title: a.$t("message.deptType"),
142
172
  field: "deptType",
143
173
  "item-render": {
144
174
  name: "$select",
145
- options: (i = H(S)["SU.DEPARTMENT.TYPE"]) == null ? void 0 : i.children,
175
+ options: (r = y(D)["SU.DEPARTMENT.TYPE"]) == null ? void 0 : r.children,
146
176
  optionProps: { label: "dictName", value: "dictCode" },
147
177
  props: { disabled: e.dataStatus === "detail" }
148
178
  },
@@ -155,34 +185,34 @@ const ee = { class: "page-content" }, y = "/uums/department", te = /* @__PURE__
155
185
  ]),
156
186
  _: 1
157
187
  }),
158
- n(u, {
188
+ o(g, {
159
189
  type: "flex",
160
190
  justify: "center"
161
191
  }, {
162
- default: d(() => [
163
- e.dataStatus === "add" ? (c(), m(E, {
192
+ default: c(() => [
193
+ e.dataStatus === "add" ? (d(), l(j, {
164
194
  key: 0,
165
195
  modelValue: e.isChecked,
166
- "onUpdate:modelValue": t[3] || (t[3] = (i) => e.isChecked = i),
196
+ "onUpdate:modelValue": t[6] || (t[6] = (r) => e.isChecked = r),
167
197
  style: { "padding-top": "5px", "margin-right": "8px" }
168
198
  }, {
169
- default: d(() => [
170
- L(X(a.$t("message.udp.continueAdd")), 1)
199
+ default: c(() => [
200
+ z(G(a.$t("message.udp.continueAdd")), 1)
171
201
  ]),
172
202
  _: 1
173
- }, 8, ["modelValue"])) : _("", !0),
174
- e.dataStatus !== "detail" ? (c(), m(r, {
203
+ }, 8, ["modelValue"])) : p("", !0),
204
+ e.dataStatus !== "detail" ? (d(), l(n, {
175
205
  key: 1,
176
206
  status: "primary",
177
207
  content: "confirm",
178
- onTap: D
179
- })) : _("", !0),
180
- e.dataStatus !== "detail" ? (c(), m(r, {
208
+ onTap: E
209
+ })) : p("", !0),
210
+ e.dataStatus !== "detail" ? (d(), l(n, {
181
211
  key: 2,
182
212
  status: "warning",
183
213
  content: "cancel",
184
- onClick: F
185
- })) : _("", !0)
214
+ onClick: q
215
+ })) : p("", !0)
186
216
  ]),
187
217
  _: 1
188
218
  })
@@ -192,17 +222,17 @@ const ee = { class: "page-content" }, y = "/uums/department", te = /* @__PURE__
192
222
  ]),
193
223
  _: 1
194
224
  })), [
195
- [I, e.loading]
196
- ]) : (c(), m(u, {
225
+ [M, e.loading]
226
+ ]) : (d(), l(g, {
197
227
  key: 1,
198
228
  class: "w-noclick-wrapper"
199
229
  }, {
200
- default: d(() => t[5] || (t[5] = [
230
+ default: c(() => t[8] || (t[8] = [
201
231
  s("div", { class: "w-content-wrapper" }, [
202
232
  s("ul", null, [
203
233
  s("li", { class: "w-department-line" }, [
204
234
  s("div", null, "● 点击新建,新建部门信息。"),
205
- s("div", { style: { margin: "0", "text-indent": "2em" } }, " 已点击树结构上的部门名称,默认创建为当前部门的下属部门 "),
235
+ s("div", { style: { margin: "0", "text-indent": "2em" } }, "已点击树结构上的部门名称,默认创建为当前部门的下属部门"),
206
236
  s("div", { style: { margin: "0", "text-indent": "2em" } }, "未点击树结构上的部门名称,则创建为一级部门")
207
237
  ]),
208
238
  s("li", { class: "w-department-line" }, "● 点击树结构上的部门名称,点击修改按钮,修改部门信息。"),
@@ -218,7 +248,7 @@ const ee = { class: "page-content" }, y = "/uums/department", te = /* @__PURE__
218
248
  ]);
219
249
  };
220
250
  }
221
- }), me = /* @__PURE__ */ Z(te, [["__scopeId", "data-v-c89aef1b"]]);
251
+ }), ue = /* @__PURE__ */ te(ne, [["__scopeId", "data-v-fd45e915"]]);
222
252
  export {
223
- me as default
253
+ ue as default
224
254
  };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./DesignPanel.vue_vue_type_style_index_0_lang-LdvLC8VU.js";
1
+ import { _ as f } from "./DesignPanel.vue_vue_type_style_index_0_lang-4EsHemj_.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -3,8 +3,8 @@ 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-CKnq5xIa.js";
7
- import vt from "./Preview-BaktKXB1.js";
6
+ import { i as gt, y as yt } from "./index-C3q8HoJM.js";
7
+ import vt from "./Preview-CLpUUMay.js";
8
8
  const xt = {
9
9
  panels: [
10
10
  {
@@ -507,11 +507,11 @@ 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 () => {
514
+ }, q = async () => {
515
515
  await O.modal.confirm("重绘操作不可逆,您确定继续吗?", "温馨提示") === "confirm" && s.clear();
516
516
  }, L = async () => {
517
517
  y.value = !0;
@@ -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, [