@utogether/udp-core 2.0.0-beta.1 → 2.0.0-beta.3

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 (182) hide show
  1. package/dist/{403-CTJDBjz7.js → 403-CxOqlq0f.js} +3 -3
  2. package/dist/403-WCboRvzZ-ZAPgYStl.js +65 -0
  3. package/dist/404-2V0Qi-d7-DkNwQggp.js +65 -0
  4. package/dist/{404-BFYkWIkQ.js → 404-xdB6lFeQ.js} +1 -1
  5. package/dist/500-BYfzvixf-CGpEieyQ.js +67 -0
  6. package/dist/{500-DGG3qadg.js → 500-C94bRK2S.js} +2 -2
  7. package/dist/AuthorityInfo-DBovfUjB-DpQwT9Q5.js +4 -0
  8. package/dist/{AuthorityInfo-ozZIo1Te.js → AuthorityInfo-Dy3b_nFN.js} +1 -1
  9. package/dist/{AuthorityInfo.vue_vue_type_style_index_0_lang-DujerENw.js → AuthorityInfo.vue_vue_type_style_index_0_lang-Bh7IbcdY.js} +2 -2
  10. package/dist/AuthorityInfo.vue_vue_type_style_index_0_lang-D-l_Az3s-Cw7WmFxz.js +100 -0
  11. package/dist/AuthorityPanel-CRlAwbaI-G7pZXKdE.js +4 -0
  12. package/dist/AuthorityPanel.vue_vue_type_style_index_0_lang-DxhZjp1S-CJvk3pW8.js +114 -0
  13. package/dist/Company-B4vsXy2I-CkNCOqjJ.js +25 -0
  14. package/dist/{Company-6VJtwh23.js → Company-gKkfnhLt.js} +3 -3
  15. package/dist/{CompanyPanel-B2P488mq.js → CompanyPanel-BF5Pc35s.js} +7 -7
  16. package/dist/CompanyPanel-Czcx8Gyw-CvndXwB_.js +206 -0
  17. package/dist/DataSet-DT-rGICv-DaUfgbxk.js +147 -0
  18. package/dist/{Department-BnwoLEOC.js → Department-D0I3QVZe.js} +3 -3
  19. package/dist/Department-D0dVUrGC-C6HJcYI1.js +25 -0
  20. package/dist/{DepartmentPanel-CRrrmxtv.js → DepartmentPanel-2LHODgc7.js} +22 -22
  21. package/dist/DepartmentPanel-e91Lxr1j-BS_A-ILd.js +254 -0
  22. package/dist/{DesignPanel-CvbccgX2.js → DesignPanel-CtF3cAAQ.js} +1 -1
  23. package/dist/DesignPanel-DdFl_ohi-uCwFxcl1.js +4 -0
  24. package/dist/DesignPanel.vue_vue_type_style_index_0_lang-BACPrfUI-cC7yL0uY.js +1013 -0
  25. package/dist/{DesignPanel.vue_vue_type_style_index_0_lang-Dz2tUszs.js → DesignPanel.vue_vue_type_style_index_0_lang-BCYgwoVt.js} +3 -3
  26. package/dist/DictView-BzQLOf_P-DDicwdmM.js +111 -0
  27. package/dist/{DictView-Ce1LoVHh.js → DictView-H3V5hxg3.js} +1 -1
  28. package/dist/{InvOrganization-BwCFZO1X.js → InvOrganization-BiGLnbqe.js} +2 -2
  29. package/dist/InvOrganization-atbhw0CI-BABbVt9V.js +74 -0
  30. package/dist/Org-BW1YHG-Q-Cow7JWlD.js +39 -0
  31. package/dist/{Org-0hzs6b0R.js → Org-DQTCQHNY.js} +2 -2
  32. package/dist/Preview-DJtVsoq1-CCGidQjJ.js +48 -0
  33. package/dist/{Preview--DnEAhwh.js → Preview-DXaiis29.js} +1 -1
  34. package/dist/{ReportDefine-Cu983bTN.js → ReportDefine-BLh4CiER.js} +1 -1
  35. package/dist/ReportDefine-CNx_ob99-6NQAHK-Q.js +10 -0
  36. package/dist/ReportDesign-FbQ6yTJS-C1pPAUSp.js +165 -0
  37. package/dist/{ReportDesign-QsWXXgvo.js → ReportDesign-Ni1YxrLC.js} +7 -7
  38. package/dist/ReportQuery-C5gz8Lgd-Eu2cQmda.js +75 -0
  39. package/dist/{ReportQuery-BjKIIhPu.js → ReportQuery-C8G88_qF.js} +1 -1
  40. package/dist/ReportQueryFrom-C7scua5v-uHXWq8Gy.js +4 -0
  41. package/dist/{ReportQueryFrom-DIjBO6Fx.js → ReportQueryFrom-CuZKPtB4.js} +1 -1
  42. package/dist/{ReportQueryFrom.vue_vue_type_style_index_0_lang-0T62cUMK.js → ReportQueryFrom.vue_vue_type_style_index_0_lang-BAn_siFW.js} +7 -7
  43. package/dist/ReportQueryFrom.vue_vue_type_style_index_0_lang-DCbz67Wa-vK6r2uCl.js +178 -0
  44. package/dist/ReportTemplate-BDANdIWv-D_IGjR1w.js +161 -0
  45. package/dist/{ReportTemplate-2uk9tJcy.js → ReportTemplate-DFnDXWmx.js} +8 -8
  46. package/dist/{Role-_QP8QEaI.js → Role-BQ7hsfPn.js} +3 -3
  47. package/dist/Role-ByB0WbxW-5E8Mb148.js +25 -0
  48. package/dist/RoleAssign-DW6iC_0v-Bis61auk.js +26 -0
  49. package/dist/{RoleAssign-C2gkcmEQ.js → RoleAssign-UPCg2d4G.js} +3 -3
  50. package/dist/RolePanel-BM2MaQPU-CgcsbfaX.js +4 -0
  51. package/dist/{RolePanel-vnl_lXNY.js → RolePanel-C-mQ5XRq.js} +1 -1
  52. package/dist/RolePanel-ClQy8DBL-DARL4O-o.js +4 -0
  53. package/dist/{RolePanel-B8FPNGaA.js → RolePanel-CoSXOCZN.js} +1 -1
  54. package/dist/RolePanel.vue_vue_type_script_setup_true_lang-Bc_Ao_PU-DMmxr2iI.js +132 -0
  55. package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-bxHXrBYl.js → RolePanel.vue_vue_type_script_setup_true_lang-Bg-t2UhF.js} +7 -7
  56. package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-BuQbYEEI.js → RolePanel.vue_vue_type_script_setup_true_lang-D-o7HYZ8.js} +8 -8
  57. package/dist/RolePanel.vue_vue_type_script_setup_true_lang-fthF1zkp-JsbQJoDy.js +154 -0
  58. package/dist/ScrollPanel.vue_vue_type_style_index_0_lang-ByWIwajm-BsBf2Vs3.js +100 -0
  59. package/dist/{ScrollPanel.vue_vue_type_style_index_0_lang-C6yZXBqB.js → ScrollPanel.vue_vue_type_style_index_0_lang-CCsoxDfk.js} +1 -1
  60. package/dist/Staff-CuxzvhD9-D0KTcyRh.js +25 -0
  61. package/dist/{Staff-CHWrMIEb.js → Staff-D-CmvG1R.js} +3 -3
  62. package/dist/StaffInfo-CY7gUICu-EZUhUwIp.js +4 -0
  63. package/dist/{StaffInfo-Cpq2eayz.js → StaffInfo-Idhvuc6e.js} +1 -1
  64. package/dist/StaffInfo.vue_vue_type_script_setup_true_lang-Dd8gtQz8-Dlkt-eCn.js +108 -0
  65. package/dist/{StaffInfo.vue_vue_type_script_setup_true_lang-BVCjF2i1.js → StaffInfo.vue_vue_type_script_setup_true_lang-MUGKjnHU.js} +1 -1
  66. package/dist/{StaffPanel-D2BMXt5p.js → StaffPanel-CDDmAYE5.js} +1 -1
  67. package/dist/StaffPanel-CwqG0_xr-CrvzLJoc.js +4 -0
  68. package/dist/{StaffPanel.vue_vue_type_script_setup_true_lang-B6jAGo-g.js → StaffPanel.vue_vue_type_script_setup_true_lang-Bdilqbee.js} +42 -42
  69. package/dist/StaffPanel.vue_vue_type_script_setup_true_lang-DCdBy8Hu-BXrueqi0.js +143 -0
  70. package/dist/SysUser-9Q2UJWhi-DprWXFlR.js +15 -0
  71. package/dist/{SysUser-om6H1BeC.js → SysUser-a-j5bppr.js} +2 -2
  72. package/dist/{SysUserPanel-CH0HPP7h.js → SysUserPanel-6V232wwB.js} +1 -1
  73. package/dist/SysUserPanel-bJy69O7x-BJtBgFEs.js +4 -0
  74. package/dist/{SysUserPanel.vue_vue_type_script_setup_true_lang-Dpl13ee0.js → SysUserPanel.vue_vue_type_script_setup_true_lang-BOtHuMVy.js} +2 -2
  75. package/dist/SysUserPanel.vue_vue_type_script_setup_true_lang-DUPFqgz3-BSqRCMen.js +356 -0
  76. package/dist/{SystemMenu-BkG_DKxA.js → SystemMenu-BnVeOSOQ.js} +7 -7
  77. package/dist/SystemMenu-DGOAolc1-CJSLHP8i.js +156 -0
  78. package/dist/UserInfo-CKoOHkAM-DDWp0I_U.js +4 -0
  79. package/dist/{UserInfo-D9croxUe.js → UserInfo-Cax9b2nw.js} +1 -1
  80. package/dist/UserInfo.vue_vue_type_style_index_0_lang-BaT53SSu-DsNaAomO.js +160 -0
  81. package/dist/{UserInfo.vue_vue_type_style_index_0_lang-DLIP8xpN.js → UserInfo.vue_vue_type_style_index_0_lang-D-cw11i9.js} +2 -2
  82. package/dist/await-to-js.es5-Bv3Eu4mi-UCggJjes.js +10 -0
  83. package/dist/await-to-js.es5-Bv3Eu4mi.js +10 -0
  84. package/dist/childView-0YZQ6GBn-CEqg7k5d.js +4 -0
  85. package/dist/{childView-BY_Ip-l1.js → childView-DKG3eZo8.js} +1 -1
  86. package/dist/childView-DKkgi3yo-D47ft-vi.js +4 -0
  87. package/dist/{childView-CHp_TueS.js → childView-siumuBz0.js} +1 -1
  88. package/dist/childView.vue_vue_type_style_index_0_lang-ABMrGInv-ClOdE_sa.js +143 -0
  89. package/dist/{childView.vue_vue_type_style_index_0_lang-BNHbDRjt.js → childView.vue_vue_type_style_index_0_lang-CUfXDS1q.js} +8 -8
  90. package/dist/{childView.vue_vue_type_style_index_0_lang-CbjGf7Z7.js → childView.vue_vue_type_style_index_0_lang-CW3EbAmW.js} +8 -8
  91. package/dist/childView.vue_vue_type_style_index_0_lang-CaW106ve-CClTM8PK.js +180 -0
  92. package/dist/{code-rule-Ce6yWqCq.js → code-rule-Dtoree6F.js} +2 -2
  93. package/dist/code-rule-wQyfgpNL-C4evD4Co.js +148 -0
  94. package/dist/core.es.js +10 -10
  95. package/dist/cron-task-C-kryDtd-C0NuGZCe.js +135 -0
  96. package/dist/{cron-task-DziaH0rI.js → cron-task-GSRgA7S5.js} +2 -2
  97. package/dist/flow-task-B07st2aD-CgQvagSQ.js +10 -0
  98. package/dist/frameView-BOGA3ezf-QoSxzmSQ.js +44 -0
  99. package/dist/{frameView-DNeCVQaY.js → frameView-Cy6wxW0K.js} +1 -1
  100. package/dist/{index-BabfUVv_.js → index-Dc7xWMiC.js} +1057 -1033
  101. package/dist/layout-home-3Dy4onl4.js +228 -0
  102. package/dist/layout-home-CYHksXN_-Basy-3IH.js +228 -0
  103. package/dist/layoutView-BaRvAbIa-xVgfqspc.js +3302 -0
  104. package/dist/{layoutView-12Mlp9A2.js → layoutView-DMjNscJ-.js} +8 -8
  105. package/dist/log-in-Cx1dGik8-BVeEHeZ8.js +117 -0
  106. package/dist/{log-in-1NGaA5OM.js → log-in-VAG6Cvcx.js} +8 -8
  107. package/dist/log-out-COYdxrNC-ftopGZdE.js +130 -0
  108. package/dist/{log-out-B8_atGcQ.js → log-out-DZGaMCjC.js} +4 -4
  109. package/dist/{login-5dydO6GR.js → login-CqVMdNHs.js} +16 -16
  110. package/dist/login-Dg9ofNS8-Bocp1XMA.js +241 -0
  111. package/dist/login-log-DJBGJVV0-AoOyj0jD.js +70 -0
  112. package/dist/lov-view-C0T5prk8-B2DBmn55.js +97 -0
  113. package/dist/{lov-view-DPvGUu3h.js → lov-view-Cc68_28B.js} +7 -7
  114. package/dist/{menuInfo-DVADYfEK.js → menuInfo-BIrIaJlH.js} +1 -1
  115. package/dist/menuInfo-BZJ_q7bz-Drho-_QC.js +4 -0
  116. package/dist/menuInfo.vue_vue_type_style_index_0_lang-BA8xjUo3-BCZ1wipf.js +363 -0
  117. package/dist/{menuInfo.vue_vue_type_style_index_0_lang-DgsifDrm.js → menuInfo.vue_vue_type_style_index_0_lang-DlE4w35X.js} +2 -2
  118. package/dist/{pda-app-BZXs-2BQ.js → pda-app-DnjphrRS.js} +9 -9
  119. package/dist/pda-app-m9hsppHo-B4xyja1o.js +710 -0
  120. package/dist/redirect-BqegffKC-CBCIuqmz.js +15 -0
  121. package/dist/resource-C6KEIXu--B_ddyecm.js +97 -0
  122. package/dist/{resource-BZA9NFKc.js → resource-DISgPDM7.js} +4 -4
  123. package/dist/su-welcome-BjbuSrBZ.js +49424 -0
  124. package/dist/su-welcome-CYYy-dzr-D3RKPoB0.js +42089 -0
  125. package/dist/sys-config-DCjJGtht-DARDjlrt.js +370 -0
  126. package/dist/{sys-config-DQmNjWH4.js → sys-config-Yc9vh1t1.js} +13 -13
  127. package/dist/udp-core.css +1 -1
  128. package/dist/utogether-MlnyYtNS-CGgjFNPS.js +4 -0
  129. package/package.json +5 -2
  130. package/src/App.vue +71 -71
  131. package/src/components/udp/content/index.vue +88 -88
  132. package/src/components/udp/form-upload/form-upload.vue +492 -492
  133. package/src/components/udp/grid/index.vue +524 -524
  134. package/src/components/udp/index.ts +6 -6
  135. package/src/components/udp/ut-stamp-badge/index.vue +271 -271
  136. package/src/components/udp/utils.ts +408 -408
  137. package/src/layout/components/lay-content/index.vue +136 -136
  138. package/src/layout/components/lay-search/components/SearchModal.vue +181 -189
  139. package/src/layout/components/lay-setting/index.vue +503 -503
  140. package/src/layout/components/lay-sidebar/sidebar-logo.vue +101 -101
  141. package/src/layout/components/lay-tag/index.vue +598 -598
  142. package/src/layout/hooks/useNav.ts +176 -176
  143. package/src/layout/hooks/useTag.ts +227 -227
  144. package/src/layout/layoutView.vue +216 -216
  145. package/src/layout/types.ts +93 -93
  146. package/src/main.ts +111 -112
  147. package/src/plugins/i18n/zh.ts +1 -0
  148. package/src/plugins/vxe-table/index.ts +116 -116
  149. package/src/plugins/vxe-table/render.tsx +968 -968
  150. package/src/router/index.ts +187 -187
  151. package/src/router/modules/home.ts +32 -32
  152. package/src/router/utils.ts +420 -420
  153. package/src/store/modules/epTheme.ts +48 -48
  154. package/src/style/vxetable.scss +364 -356
  155. package/src/utils/dataFormat/index.ts +222 -222
  156. package/src/utils/lifecycle.ts +39 -39
  157. package/src/views/organization/department/DepartmentPanel.vue +303 -303
  158. package/src/views/organization/staff/StaffInfo.vue +127 -127
  159. package/src/views/organization/staff/StaffPanel.vue +3 -3
  160. package/src/views/system/layout/layout-home.vue +45 -7
  161. package/src/views/system/menu/AuthorityPanel.vue +141 -141
  162. package/src/views/system/menu/SystemMenu.vue +194 -194
  163. package/src/views/system/menu/menuInfo.vue +1 -1
  164. package/src/views/system/sysUser/SysUserPanel.vue +363 -363
  165. package/src/views/udev/coderule/code-rule.vue +132 -132
  166. package/src/views/udev/dict/DictView.vue +118 -118
  167. package/src/views/udev/dict/childView.vue +184 -184
  168. package/src/views/udev/lov/childView.vue +174 -174
  169. package/src/views/uhome/components/common-menu.vue +118 -0
  170. package/src/views/uhome/components/dynamic-component.vue +66 -0
  171. package/src/views/uhome/components/home-todo.vue +170 -0
  172. package/src/views/uhome/components/menu-favorite.vue +315 -315
  173. package/src/views/uhome/dynamic-card.vue +18 -19
  174. package/src/views/uhome/su-welcome.vue +46 -116
  175. package/src/views/ulogin/login.vue +336 -336
  176. package/src/views/upms/interface/log-in.vue +100 -100
  177. package/src/views/upms/interface/log-out.vue +104 -104
  178. package/src/views/upms/user/login-log.vue +54 -54
  179. package/types/global.d.ts +232 -232
  180. package/dist/await-to-js.es5-BtRbN2QH.js +0 -10
  181. package/dist/layout-home-Cis1KlEr.js +0 -195
  182. package/dist/su-welcome-BXe6Cdp3.js +0 -580
@@ -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 { y as J, _ as K } from "./index-BabfUVv_.js";
7
+ import { g as J, _ as K } from "./index-Dc7xWMiC.js";
8
8
  const O = { class: "page-content" }, _ = "/uums/unit", Q = /* @__PURE__ */ V({
9
9
  __name: "CompanyPanel",
10
10
  setup(W) {
@@ -40,19 +40,19 @@ 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 = () => {
54
+ await U.modal.confirm(r("message.tip.del", { msg: "aaaaa" })) === "confirm" && (await f.delete(_, t), y());
55
+ }, y = () => {
56
56
  $.value = !0, H(r("message.operateSuccess")), I();
57
57
  }, F = () => {
58
58
  e.dialogFormVisible = !1, e.dataStatus = "";
@@ -109,7 +109,7 @@ const O = { class: "page-content" }, _ = "/uums/unit", Q = /* @__PURE__ */ V({
109
109
  default: d(() => [
110
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"
@@ -0,0 +1,206 @@
1
+ import { defineComponent as j, reactive as B, inject as C, watch as W, resolveComponent as s, createElementBlock as A, openBlock as r, createVNode as i, createBlock as u, withCtx as d, createElementVNode as l, createCommentVNode as v, createTextVNode as E, toDisplayString as L } from "vue";
2
+ import { useI18n as M } from "vue-i18n";
3
+ import { VxeUI as U } from "vxe-table";
4
+ import { templateRef as D } from "@vueuse/core";
5
+ import { clone as O } from "xe-utils";
6
+ import { warnMessage as Q, successMessage as R } from "@utogether/utils";
7
+ import { t as z, W as G } from "./su-welcome-BjbuSrBZ.js";
8
+ const H = { class: "page-content" }, w = "/uums/unit", J = /* @__PURE__ */ j({
9
+ __name: "CompanyPanel",
10
+ setup(K) {
11
+ const e = B({
12
+ record: {},
13
+ dataList: [],
14
+ submitLoading: !1,
15
+ dialogFormVisible: !1,
16
+ isChecked: !1,
17
+ dataStatus: ""
18
+ }), { t: n } = M(), h = {
19
+ unitName: [
20
+ {
21
+ required: !0,
22
+ message: `${n("message.required")}${n("message.udp.unitName")}`
23
+ }
24
+ ],
25
+ unitCode: [
26
+ {
27
+ required: !0,
28
+ message: `${n("message.required")}${n("message.udp.unitCode")}`
29
+ }
30
+ ]
31
+ }, c = C("active"), S = C("scrollPanelChange"), f = G();
32
+ W(
33
+ () => c.value,
34
+ (a, t) => {
35
+ e.record = c.value, a != null && a.id && t != null && t.id && a !== t && x("detail");
36
+ }
37
+ );
38
+ const V = () => {
39
+ var a;
40
+ e.dataStatus = "add", e.record = {}, e.record.parentId = (a = c.value) == null ? void 0 : a.id, e.isChecked = !1, e.dialogFormVisible = !0;
41
+ }, x = (a) => {
42
+ e.dataStatus = a, e.record = O(c.value, !0), e.dialogFormVisible = !0;
43
+ }, y = D("xForm", null), _ = () => {
44
+ y.value.validate(async (a) => {
45
+ if (!a) {
46
+ const { record: t, dataStatus: o } = e;
47
+ o === "add" ? await f.post(w, t) : await f.put(w, t), b();
48
+ }
49
+ });
50
+ }, $ = async () => {
51
+ var a;
52
+ const { record: t } = e;
53
+ if ((a = t.children) != null && a.length) return Q(n("message.deletePartment"));
54
+ await U.modal.confirm(n("message.tip.del", { msg: "aaaaa" })) === "confirm" && (await f.delete(w, t), b());
55
+ }, b = () => {
56
+ S.value = !0, R(n("message.operateSuccess")), F();
57
+ }, N = () => {
58
+ e.dialogFormVisible = !1, e.dataStatus = "";
59
+ }, F = () => {
60
+ e.dialogFormVisible = !1;
61
+ };
62
+ return (a, t) => {
63
+ const o = s("ut-button"), I = s("vxe-toolbar"), g = s("vxe-form-item"), q = s("vxe-form"), m = s("el-row"), T = s("vxe-checkbox"), k = s("vxe-button"), P = s("el-card");
64
+ return r(), A("div", H, [
65
+ i(I, {
66
+ perfect: "",
67
+ class: ""
68
+ }, {
69
+ buttons: d(() => [
70
+ i(o, {
71
+ status: "u-cyan",
72
+ icon: "ri-add-line",
73
+ content: "add",
74
+ onTap: t[0] || (t[0] = (p) => V())
75
+ }),
76
+ i(o, {
77
+ status: "primary",
78
+ icon: "ri-edit-box-line",
79
+ content: "edit",
80
+ onTap: t[1] || (t[1] = (p) => x("update"))
81
+ }),
82
+ i(o, {
83
+ status: "danger",
84
+ icon: "ri-close-fill",
85
+ content: "delete",
86
+ onTap: t[2] || (t[2] = (p) => $())
87
+ })
88
+ ]),
89
+ _: 1
90
+ }),
91
+ e.dialogFormVisible ? (r(), u(m, {
92
+ key: 0,
93
+ type: "flex",
94
+ justify: "center",
95
+ align: "middle",
96
+ class: "w-departInfo-wrapper"
97
+ }, {
98
+ default: d(() => [
99
+ i(P, {
100
+ width: "60%",
101
+ shadow: "always",
102
+ class: "box-card w-card-wrapper"
103
+ }, {
104
+ default: d(() => [
105
+ t[4] || (t[4] = l("div", { class: "clearfix" }, [
106
+ l("span", { class: "w-card-title" })
107
+ ], -1)),
108
+ i(m, null, {
109
+ default: d(() => [
110
+ i(q, {
111
+ ref_key: "xForm",
112
+ ref: y,
113
+ data: e.record,
114
+ rules: h,
115
+ "label-width": "80px"
116
+ }, {
117
+ default: d(() => [
118
+ i(g, {
119
+ title: a.$t("message.udp.unitName"),
120
+ field: "unitName",
121
+ "item-render": { name: "$input", props: { disabled: e.dataStatus === "detail" } },
122
+ span: 24
123
+ }, null, 8, ["title", "item-render"]),
124
+ i(g, {
125
+ title: a.$t("message.udp.unitCode"),
126
+ field: "unitCode",
127
+ "item-render": { name: "$input", props: { disabled: e.dataStatus !== "add" } },
128
+ span: 24
129
+ }, null, 8, ["title", "item-render"]),
130
+ i(g, {
131
+ title: a.$t("message.udp.unitNote"),
132
+ field: "unitNote",
133
+ "item-render": { name: "$input", props: { disabled: e.dataStatus === "detail" } },
134
+ span: 24
135
+ }, null, 8, ["title", "item-render"])
136
+ ]),
137
+ _: 1
138
+ }, 8, ["data"])
139
+ ]),
140
+ _: 1
141
+ }),
142
+ i(m, {
143
+ type: "flex",
144
+ justify: "center"
145
+ }, {
146
+ default: d(() => [
147
+ e.dataStatus === "add" ? (r(), u(T, {
148
+ key: 0,
149
+ modelValue: e.isChecked,
150
+ "onUpdate:modelValue": t[3] || (t[3] = (p) => e.isChecked = p),
151
+ style: { "padding-top": "5px", "margin-right": "8px" }
152
+ }, {
153
+ default: d(() => [
154
+ E(L(a.$t("message.udp.continueAdd")), 1)
155
+ ]),
156
+ _: 1
157
+ }, 8, ["modelValue"])) : v("", !0),
158
+ e.dataStatus !== "detail" ? (r(), u(k, {
159
+ key: 1,
160
+ status: "primary",
161
+ content: a.$t("message.btn.confirm"),
162
+ onClick: _
163
+ }, null, 8, ["content"])) : v("", !0),
164
+ e.dataStatus !== "detail" ? (r(), u(k, {
165
+ key: 2,
166
+ status: "warning",
167
+ content: a.$t("message.btn.cancel"),
168
+ onClick: N
169
+ }, null, 8, ["content"])) : v("", !0)
170
+ ]),
171
+ _: 1
172
+ })
173
+ ]),
174
+ _: 1
175
+ })
176
+ ]),
177
+ _: 1
178
+ })) : (r(), u(m, {
179
+ key: 1,
180
+ class: "w-noclick-wrapper"
181
+ }, {
182
+ default: d(() => t[5] || (t[5] = [
183
+ l("div", { class: "w-content-wrapper" }, [
184
+ l("ul", null, [
185
+ l("li", { class: "w-department-line" }, [
186
+ l("div", null, "● 点击新建,新建租户信息。"),
187
+ l("div", { style: { margin: "0", "text-indent": "2em" } }, " 已点击树结构上的租户名称,默认创建为当前租户的下属租户 "),
188
+ l("div", { style: { margin: "0", "text-indent": "2em" } }, "未点击树结构上的租户名称,则创建为一级租户")
189
+ ]),
190
+ l("li", { class: "w-department-line" }, "● 点击树结构上的租户名称,点击修改按钮,修改租户信息。"),
191
+ l("li", { class: "w-department-line" }, [
192
+ l("div", null, "● 点击树结构上的租户名称,点击删除按钮,删除租户信息。"),
193
+ l("div", { style: { "text-indent": "2em" } }, "当租户下有单位存在时,不允许删除租户信息。")
194
+ ])
195
+ ])
196
+ ], -1)
197
+ ])),
198
+ _: 1
199
+ }))
200
+ ]);
201
+ };
202
+ }
203
+ }), ie = /* @__PURE__ */ z(J, [["__scopeId", "data-v-bc1a230e"]]);
204
+ export {
205
+ ie as default
206
+ };
@@ -0,0 +1,147 @@
1
+ import { defineComponent as w, ref as o, reactive as E, createVNode as d, Fragment as u, resolveComponent as l, createElementBlock as C, openBlock as m, createBlock as v, createCommentVNode as k } from "vue";
2
+ import { useRender as I } from "@utogether/utils";
3
+ import { clone as b } from "xe-utils";
4
+ const T = {
5
+ name: "DataSet"
6
+ }, N = /* @__PURE__ */ w({
7
+ ...T,
8
+ setup(g) {
9
+ const a = o(null), i = o({}), t = I(), r = E({
10
+ paramExt: {},
11
+ showChild: !1
12
+ }), f = [{
13
+ field: "dataSetCode"
14
+ }, {
15
+ field: "dataSetName"
16
+ }], n = [{
17
+ type: "checkbox",
18
+ width: 50,
19
+ align: "center"
20
+ }, {
21
+ field: "dataSetCode",
22
+ required: !0,
23
+ width: 150,
24
+ editRender: t.renderSelect({
25
+ optionProps: {
26
+ label: "templateCode",
27
+ value: "templateCode"
28
+ },
29
+ props: {
30
+ code: "SYS075",
31
+ fetchField: "templateCode"
32
+ }
33
+ })
34
+ }, {
35
+ field: "dataSetName",
36
+ required: !0,
37
+ width: 150,
38
+ editRender: t.renderInput()
39
+ }, {
40
+ field: "dataSetType",
41
+ required: !0,
42
+ editRender: t.renderDict("SU.DATASET.TYPE"),
43
+ formatter: ["formatDict", "SU.DATASET.TYPE"]
44
+ }, {
45
+ field: "dataSetUrl",
46
+ width: 180,
47
+ required: !0,
48
+ editRender: t.renderInput()
49
+ }, {
50
+ field: "remark",
51
+ minWidth: 80,
52
+ editRender: t.renderInput()
53
+ }, {
54
+ field: "enabled",
55
+ width: 80,
56
+ formatter: ["formatDict", "SU.ENABLE"]
57
+ }, {
58
+ field: "operate",
59
+ width: 150,
60
+ slots: {
61
+ default: ({
62
+ row: e
63
+ }) => e.id ? [
64
+ d(u, null, [d(l("ut-button"), {
65
+ icon: "ri-save-3-fill",
66
+ content: "paramSet",
67
+ onClick: () => c(e)
68
+ }, null)])
69
+ // <ut-button row={row} onTap={() => handleClick(row)} />
70
+ ] : null
71
+ }
72
+ }], p = [{
73
+ type: "checkbox",
74
+ width: 50,
75
+ align: "center"
76
+ }, {
77
+ field: "seqNo",
78
+ editRender: t.renderInput({
79
+ props: {
80
+ type: "number"
81
+ }
82
+ })
83
+ }, {
84
+ field: "paramCode",
85
+ editRender: t.renderInput()
86
+ }, {
87
+ field: "paramName",
88
+ editRender: t.renderInput()
89
+ }, {
90
+ field: "defaultValue",
91
+ editRender: t.renderInput()
92
+ }, {
93
+ field: "isRequired",
94
+ required: !0,
95
+ editRender: t.renderDict("SU.WHETHER"),
96
+ formatter: ["formatDict", "SU.WHETHER"]
97
+ }, {
98
+ field: "remark",
99
+ width: 100,
100
+ editRender: t.renderInput()
101
+ }, {
102
+ field: "operate",
103
+ width: 80,
104
+ fixed: "right",
105
+ slots: {
106
+ default: ({
107
+ row: e
108
+ }) => e.id ? [d(u, null, [d(l("ut-button"), {
109
+ row: e
110
+ }, null)])] : null
111
+ }
112
+ }], c = (e) => {
113
+ i.value = b(e, !0), r.paramExt = {
114
+ dataSetId: e.id
115
+ }, r.showChild = !0;
116
+ }, s = {
117
+ editActived({
118
+ row: e,
119
+ column: h
120
+ }) {
121
+ e.id && (n[1].editRender.props.disabled = !0, a.value.refreshColumn());
122
+ }
123
+ };
124
+ return (e, h) => {
125
+ const S = l("ut-grid"), R = l("ut-modal-grif");
126
+ return m(), C("div", null, [d(S, {
127
+ ref_key: "SuGridRef",
128
+ ref: a,
129
+ items: f,
130
+ columns: n,
131
+ events: s
132
+ }, null, 512), r.showChild ? (m(), v(R, {
133
+ key: 0,
134
+ record: i.value,
135
+ "default-value": r.paramExt,
136
+ "default-params": r.paramExt,
137
+ columns: p,
138
+ title: e.$t("message.paramSet"),
139
+ editable: !0,
140
+ width: "60%"
141
+ }, null, 8, ["record", "default-value", "default-params", "title"])) : k("", !0)]);
142
+ };
143
+ }
144
+ });
145
+ export {
146
+ N as default
147
+ };
@@ -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 a } from "vue";
2
- import { _ as p } from "./ScrollPanel.vue_vue_type_style_index_0_lang-C6yZXBqB.js";
3
- import _ from "./DepartmentPanel-CRrrmxtv.js";
4
- import { _ as d } from "./index-BabfUVv_.js";
2
+ import { _ as p } from "./ScrollPanel.vue_vue_type_style_index_0_lang-CCsoxDfk.js";
3
+ import _ from "./DepartmentPanel-2LHODgc7.js";
4
+ import { _ as d } from "./index-Dc7xWMiC.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) {
@@ -0,0 +1,25 @@
1
+ import { defineComponent as m, ref as e, createElementBlock as c, provide as t, openBlock as p, createElementVNode as r, createVNode as a } from "vue";
2
+ import { K as i } from "./ScrollPanel.vue_vue_type_style_index_0_lang-ByWIwajm-BsBf2Vs3.js";
3
+ import d from "./DepartmentPanel-e91Lxr1j-BS_A-ILd.js";
4
+ import { t as u } from "./su-welcome-BjbuSrBZ.js";
5
+ const f = { class: "u-content-panel" }, v = { class: "u-left-panel" }, h = { class: "content" }, _ = /* @__PURE__ */ m({
6
+ __name: "Department",
7
+ setup(k) {
8
+ const n = e({}), o = e(!1), l = e([]);
9
+ return t("active", n), t("scrollPanelChange", o), t("treeList", l), (s, C) => (p(), c("div", f, [
10
+ r("div", v, [
11
+ a(i, {
12
+ title: s.$t("department"),
13
+ url: "/uums/department/treeDepartment",
14
+ "tree-otions": { children: "children", label: "deptName" }
15
+ }, null, 8, ["title"])
16
+ ]),
17
+ r("div", h, [
18
+ a(d)
19
+ ])
20
+ ]));
21
+ }
22
+ }), E = /* @__PURE__ */ u(_, [["__scopeId", "data-v-a043aab6"]]);
23
+ export {
24
+ E as default
25
+ };
@@ -1,12 +1,12 @@
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";
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 v, createElementVNode as s, createTextVNode as z, toDisplayString as G } from "vue";
2
2
  import { useI18n as J } from "vue-i18n";
3
3
  import { templateRef as K } from "@vueuse/core";
4
4
  import { clone as Q } from "xe-utils";
5
- import { t as k } from "./await-to-js.es5-BtRbN2QH.js";
5
+ import { t as k } from "./await-to-js.es5-Bv3Eu4mi.js";
6
6
  import { VxeUI as T } from "vxe-table";
7
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-BabfUVv_.js";
9
- const ae = { class: "page-content" }, C = "/uums/department", ne = /* @__PURE__ */ U({
8
+ import { u as Z, h as b, g as ee, _ as te } from "./index-Dc7xWMiC.js";
9
+ const ae = { class: "page-content" }, h = "/uums/department", ne = /* @__PURE__ */ U({
10
10
  __name: "DepartmentPanel",
11
11
  setup(se) {
12
12
  const e = O({
@@ -39,28 +39,28 @@ const ae = { class: "page-content" }, C = "/uums/department", ne = /* @__PURE__
39
39
  R(
40
40
  () => f.value,
41
41
  (a, t) => {
42
- e.record = f.value, a != null && a.id && (t != null && t.id) && a !== t && h("detail");
42
+ e.record = f.value, a != null && a.id && (t != null && t.id) && a !== t && C("detail");
43
43
  }
44
44
  );
45
45
  const F = () => {
46
46
  var a;
47
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) => {
48
+ }, C = (a) => {
49
49
  e.dataStatus = a, e.record = Q(f.value, !0), e.dialogFormVisible = !0;
50
- }, S = K("xForm", null), E = () => {
50
+ }, S = K("xForm", null), P = () => {
51
51
  S.value.validate(async (a) => {
52
52
  if (!a) {
53
53
  const { record: t, dataStatus: n } = e;
54
54
  e.loading = !0;
55
- const [x] = n === "add" ? await k(u.post(C, t)) : await k(u.put(C, t));
55
+ const [x] = n === "add" ? await k(u.post(h, t)) : await k(u.put(h, t));
56
56
  e.loading = !1, x || w();
57
57
  }
58
58
  });
59
- }, P = async () => {
59
+ }, E = async () => {
60
60
  const { record: a } = e;
61
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) => {
62
+ await T.modal.confirm(i("message.tip.del")) === "confirm" && (await u.delete(h, a), w());
63
+ }, y = async (a) => {
64
64
  if (await T.modal.confirm(i("message.tip.confirmSync")) === "confirm") {
65
65
  const [n] = await k(u.post("/uums/department/syncEwDepartment", { code: a }));
66
66
  if (n) return;
@@ -88,40 +88,40 @@ const ae = { class: "page-content" }, C = "/uums/department", ne = /* @__PURE__
88
88
  auth: "add",
89
89
  onTap: t[0] || (t[0] = (r) => F())
90
90
  }),
91
- y(b)("wechat") ? (d(), l(n, {
91
+ v(b)("wechat") ? (d(), l(n, {
92
92
  key: 0,
93
93
  status: "success",
94
94
  icon: "ri-refresh-line",
95
95
  content: "sync",
96
- onTap: t[1] || (t[1] = (r) => v("wechat"))
96
+ onTap: t[1] || (t[1] = (r) => y("wechat"))
97
97
  })) : p("", !0),
98
- y(b)("dingding") ? (d(), l(n, {
98
+ v(b)("dingding") ? (d(), l(n, {
99
99
  key: 1,
100
100
  status: "success",
101
101
  icon: "ri-refresh-line",
102
102
  content: "sync",
103
- onTap: t[2] || (t[2] = (r) => v("dingding"))
103
+ onTap: t[2] || (t[2] = (r) => y("dingding"))
104
104
  })) : p("", !0),
105
- y(b)("OA") ? (d(), l(n, {
105
+ v(b)("OA") ? (d(), l(n, {
106
106
  key: 2,
107
107
  status: "success",
108
108
  icon: "ri-refresh-line",
109
109
  content: "sync",
110
- onTap: t[3] || (t[3] = (r) => v("OA"))
110
+ onTap: t[3] || (t[3] = (r) => y("OA"))
111
111
  })) : p("", !0),
112
112
  o(n, {
113
113
  status: "primary",
114
114
  icon: "ri-edit-box-line",
115
115
  auth: "edit",
116
116
  content: "edit",
117
- onTap: t[4] || (t[4] = (r) => h("update"))
117
+ onTap: t[4] || (t[4] = (r) => C("update"))
118
118
  }),
119
119
  o(n, {
120
120
  status: "danger",
121
121
  icon: "ri-close-fill",
122
122
  auth: "del",
123
123
  content: "delete",
124
- onTap: t[5] || (t[5] = (r) => P())
124
+ onTap: t[5] || (t[5] = (r) => E())
125
125
  })
126
126
  ]),
127
127
  _: 1
@@ -172,7 +172,7 @@ const ae = { class: "page-content" }, C = "/uums/department", ne = /* @__PURE__
172
172
  field: "deptType",
173
173
  "item-render": {
174
174
  name: "$select",
175
- options: (r = y(D)["SU.DEPARTMENT.TYPE"]) == null ? void 0 : r.children,
175
+ options: (r = v(D)["SU.DEPARTMENT.TYPE"]) == null ? void 0 : r.children,
176
176
  optionProps: { label: "dictName", value: "dictCode" },
177
177
  props: { disabled: e.dataStatus === "detail" }
178
178
  },
@@ -205,7 +205,7 @@ const ae = { class: "page-content" }, C = "/uums/department", ne = /* @__PURE__
205
205
  key: 1,
206
206
  status: "primary",
207
207
  content: "confirm",
208
- onTap: E
208
+ onTap: P
209
209
  })) : p("", !0),
210
210
  e.dataStatus !== "detail" ? (d(), l(n, {
211
211
  key: 2,
@@ -248,7 +248,7 @@ const ae = { class: "page-content" }, C = "/uums/department", ne = /* @__PURE__
248
248
  ]);
249
249
  };
250
250
  }
251
- }), ue = /* @__PURE__ */ te(ne, [["__scopeId", "data-v-fd45e915"]]);
251
+ }), ue = /* @__PURE__ */ te(ne, [["__scopeId", "data-v-7c92a83d"]]);
252
252
  export {
253
253
  ue as default
254
254
  };