@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
@@ -0,0 +1,160 @@
1
+ import { defineComponent as I, ref as d, reactive as B, onBeforeMount as U, resolveComponent as n, createElementBlock as _, openBlock as m, createVNode as c, withCtx as $, createBlock as j, createCommentVNode as z, mergeProps as q, toHandlers as E } from "vue";
2
+ import { c as P } from "./await-to-js.es5-Bv3Eu4mi-UCggJjes.js";
3
+ import { W as S } from "./su-welcome-BjbuSrBZ.js";
4
+ const V = { class: "u-dict-config_wrapper" }, H = /* @__PURE__ */ I({
5
+ __name: "UserInfo",
6
+ props: {
7
+ record: { default: () => ({}) },
8
+ show: { type: Boolean, default: !1 },
9
+ direction: { default: "rtl" }
10
+ },
11
+ emits: ["onClose"],
12
+ setup(p, { emit: f }) {
13
+ const o = p, g = d(!1), s = d(!1), a = S(), h = f, b = [
14
+ {
15
+ field: "userName",
16
+ title: "message.udp.userCode",
17
+ span: 8,
18
+ itemRender: { name: "$input" }
19
+ },
20
+ {
21
+ field: "name",
22
+ title: "message.udp.userName",
23
+ span: 8,
24
+ itemRender: { name: "$input" }
25
+ },
26
+ {
27
+ span: 8,
28
+ align: "right",
29
+ itemRender: {
30
+ name: "$buttons",
31
+ children: [
32
+ {
33
+ props: {
34
+ type: "submit",
35
+ content: "message.btn.search",
36
+ icon: "ri-search-line",
37
+ status: "primary"
38
+ }
39
+ },
40
+ { props: { type: "reset", icon: "ri-refresh-line", content: "message.btn.reset" } }
41
+ ]
42
+ }
43
+ }
44
+ ], C = [
45
+ { type: "checkbox", width: 50, align: "center" },
46
+ {
47
+ field: "userName",
48
+ title: "message.udp.userCode"
49
+ },
50
+ {
51
+ field: "name",
52
+ title: "message.udp.userName"
53
+ },
54
+ {
55
+ field: "enabled",
56
+ title: "message.enabled",
57
+ width: 70,
58
+ editRender: {
59
+ name: "$select",
60
+ options: [
61
+ { label: "启用", value: "1" },
62
+ { label: "禁用", value: "0" }
63
+ ],
64
+ defaultValue: "1"
65
+ }
66
+ }
67
+ ], y = [
68
+ { code: "add", name: "message.btn.add", status: "u-cyan", icon: "ri-add-line" },
69
+ { code: "delete", name: "message.btn.del", status: "danger", icon: "ri-delete-bin-5-fill" }
70
+ ], v = [
71
+ { field: "userName", title: "message.udp.userCode", span: 9 },
72
+ { field: "name", title: "message.udp.userName", span: 9 }
73
+ ], N = [
74
+ { type: "checkbox", width: 40 },
75
+ { field: "userName", title: "message.udp.userCode" },
76
+ { field: "name", title: "message.udp.userName" },
77
+ { field: "enabled", width: 70, formatter: ["formatDict", "SU.ENABLE"] }
78
+ ], u = d({}), l = B({
79
+ height: "auto",
80
+ border: !0,
81
+ pagerConfig: {},
82
+ toolbarConfig: { buttons: y, perfect: !0 },
83
+ loading: !1,
84
+ formConfig: { titleWidth: 100, titleAlign: "right", items: b },
85
+ // data: props.record.children,
86
+ proxyConfig: {
87
+ form: !0,
88
+ // 查询是需要启用表单代理
89
+ ajax: {
90
+ // 接收 Promise
91
+ query: ({ page: e, form: r }) => {
92
+ const t = Object.assign({}, r);
93
+ return t.id = o.record.id, t.pageNum = e.currentPage, t.pageSize = e.pageSize, a.get("/uums/user/listRoleUsers", t);
94
+ },
95
+ // body 对象: { removeRecords }
96
+ delete: ({ body: { removeRecords: e } }) => {
97
+ const r = {
98
+ roleId: o.record.id,
99
+ userIds: e.map((t) => t.id).join()
100
+ };
101
+ return a.delete("/uums/role/deleteRoleUsers", r);
102
+ }
103
+ }
104
+ },
105
+ columns: C
106
+ }), w = {
107
+ toolbarButtonClick({ code: e }) {
108
+ e === "add" && (s.value = !0);
109
+ }
110
+ }, k = async (e) => {
111
+ const r = { userIds: "", roleId: o.record.id };
112
+ r.userIds = e.map((i) => i.id).join(","), l.loading = !0;
113
+ const [t] = await P(a.post("/uums/role/addUserRole", r));
114
+ l.loading = !1, t || (u.value.commitProxy("query"), s.value = !1);
115
+ };
116
+ function x() {
117
+ h("onClose");
118
+ }
119
+ return U(() => {
120
+ g.value = !0;
121
+ }), (e, r) => {
122
+ const t = n("vxe-grid"), i = n("ut-modal-grid"), R = n("el-drawer");
123
+ return m(), _("div", V, [
124
+ c(R, {
125
+ "model-value": e.show,
126
+ title: e.$t("message.title.authUser", { role: e.record.roleName }),
127
+ "before-close": x,
128
+ direction: "rtl",
129
+ "destroy-on-close": "",
130
+ size: "80%"
131
+ }, {
132
+ default: $(() => [
133
+ c(t, q({
134
+ ref_key: "xgrid",
135
+ ref: u
136
+ }, l, E(w)), null, 16),
137
+ s.value ? (m(), j(i, {
138
+ key: 0,
139
+ url: "/uums/user/listUserToRole",
140
+ "default-params": { roleId: e.record.id },
141
+ items: v,
142
+ columns: N,
143
+ "show-footer": !0,
144
+ editable: !1,
145
+ title: e.$t("message.udp.userList"),
146
+ width: "60%",
147
+ height: "75%",
148
+ onClose: r[0] || (r[0] = (W) => s.value = !1),
149
+ onConfirm: k
150
+ }, null, 8, ["default-params", "title"])) : z("", !0)
151
+ ]),
152
+ _: 1
153
+ }, 8, ["model-value", "title"])
154
+ ]);
155
+ };
156
+ }
157
+ });
158
+ export {
159
+ H as D
160
+ };
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as R, ref as i, reactive as x, onBeforeMount as B, resolveComponent as d, createElementBlock as U, openBlock as m, createVNode as c, withCtx as $, createBlock as j, createCommentVNode as A, mergeProps as E, toHandlers as P } from "vue";
2
- import { t as S } from "./await-to-js.es5-BtRbN2QH.js";
3
- import { y as V } from "./index-BabfUVv_.js";
2
+ import { t as S } from "./await-to-js.es5-Bv3Eu4mi.js";
3
+ import { g as V } from "./index-Dc7xWMiC.js";
4
4
  const q = { class: "u-dict-config_wrapper" }, D = /* @__PURE__ */ R({
5
5
  __name: "UserInfo",
6
6
  props: {
@@ -0,0 +1,10 @@
1
+ function r(c, t) {
2
+ return c.then(function(n) {
3
+ return [null, n];
4
+ }).catch(function(n) {
5
+ return t && Object.assign(n, t), [n, void 0];
6
+ });
7
+ }
8
+ export {
9
+ r as c
10
+ };
@@ -0,0 +1,10 @@
1
+ function c(u, t) {
2
+ return u.then(function(n) {
3
+ return [null, n];
4
+ }).catch(function(n) {
5
+ return t && Object.assign(n, t), [n, void 0];
6
+ });
7
+ }
8
+ export {
9
+ c as t
10
+ };
@@ -0,0 +1,4 @@
1
+ import { G as f } from "./childView.vue_vue_type_style_index_0_lang-ABMrGInv-ClOdE_sa.js";
2
+ export {
3
+ f as default
4
+ };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./childView.vue_vue_type_style_index_0_lang-CbjGf7Z7.js";
1
+ import { _ as f } from "./childView.vue_vue_type_style_index_0_lang-CUfXDS1q.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -0,0 +1,4 @@
1
+ import { e as f } from "./childView.vue_vue_type_style_index_0_lang-CaW106ve-CClTM8PK.js";
2
+ export {
3
+ f as default
4
+ };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./childView.vue_vue_type_style_index_0_lang-BNHbDRjt.js";
1
+ import { _ as f } from "./childView.vue_vue_type_style_index_0_lang-CW3EbAmW.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -0,0 +1,143 @@
1
+ import { defineComponent as k, ref as u, resolveComponent as d, resolveDirective as V, createElementBlock as h, openBlock as R, createVNode as i, withCtx as s, withDirectives as _ } from "vue";
2
+ import { c } from "./await-to-js.es5-Bv3Eu4mi-UCggJjes.js";
3
+ import { useRender as F } from "@utogether/utils";
4
+ import { M as B, W as f } from "./su-welcome-BjbuSrBZ.js";
5
+ const P = { class: "ut-loview-wrapper" }, Y = "/upfm/v1/lovViewHeader", p = "/upfm/v1/lovViewLine", j = /* @__PURE__ */ k({
6
+ __name: "childView",
7
+ props: {
8
+ record: { default: () => ({}) },
9
+ show: { type: Boolean, default: !1 }
10
+ },
11
+ emits: ["onClose"],
12
+ setup(T, { emit: C }) {
13
+ const a = T, t = F(), m = B().dicts, n = u(!1), q = { value: "dictCode", label: "dictName" }, v = u(null), g = [
14
+ { field: "lovCode", disabled: !0 },
15
+ { field: "lovName", required: !0 },
16
+ { field: "valueField", required: !0 },
17
+ // { field: 'displayField', required: true },
18
+ { field: "lovTitle" },
19
+ { field: "lovType", code: "SU.LOV.TYPE", required: !0 },
20
+ { field: "lovUrl", required: !0, visible: a.record.lovType === "url" },
21
+ {
22
+ field: "sqlStatement",
23
+ span: 24,
24
+ visible: a.record.lovType === "sql",
25
+ itemRender: { name: "$textarea", props: { rows: 5 } },
26
+ required: !0
27
+ }
28
+ ], o = [
29
+ { type: "checkbox", width: 50, align: "center" },
30
+ { field: "seqNo", required: !0, width: 100, editRender: t.renderNumber() },
31
+ { field: "colField", required: !0, editRender: t.renderInput() },
32
+ { field: "colTitle", required: !0, editRender: t.renderInput() },
33
+ { field: "colWidth", required: !0, width: 120, editRender: t.renderNumber() },
34
+ {
35
+ field: "fieldType",
36
+ width: 120,
37
+ editRender: t.renderDict("SU.FIELD.TYPE", b),
38
+ formatter: ["formatDict", "SU.FIELD.TYPE"]
39
+ },
40
+ {
41
+ field: "dictCode",
42
+ title: "message.dictName",
43
+ width: 120,
44
+ editRender: t.renderSelectLocal({ options: m, optionProps: q }),
45
+ formatter: ["formatSelectLocal", [m, "dictCode", "dictName"]]
46
+ },
47
+ {
48
+ field: "isSearch",
49
+ width: 120,
50
+ required: !0,
51
+ editRender: t.renderDict("SU.WHETHER"),
52
+ formatter: ["formatDict", "SU.WHETHER"]
53
+ },
54
+ {
55
+ field: "isCol",
56
+ width: 120,
57
+ required: !0,
58
+ editRender: t.renderDict("SU.WHETHER"),
59
+ formatter: ["formatDict", "SU.WHETHER"]
60
+ }
61
+ ], w = u(null), E = window.innerHeight - 195, y = {
62
+ editActived({ row: e }) {
63
+ o[6].editRender.props.disabled = e.fieldType !== "dictCode";
64
+ }
65
+ };
66
+ function b(e) {
67
+ e.row.dictName = "", o[6].editRender.props.disabled = e.row.fieldType !== "dictCode", o[6].required = e.row.fieldType !== "dictCode";
68
+ }
69
+ const S = () => {
70
+ v.value.validateForm(async (e) => {
71
+ if (!e) {
72
+ n.value = !0;
73
+ const [l] = await c(f().put(Y, [a.record]));
74
+ if (!l) {
75
+ const r = w.value.getInstance().getRecordset();
76
+ r.insertRecords.length && await c(f().post(p, r.insertRecords)), r.updateRecords.length && await c(f().put(p, r.updateRecords));
77
+ }
78
+ n.value = !1;
79
+ }
80
+ });
81
+ }, D = C;
82
+ function H() {
83
+ D("onClose");
84
+ }
85
+ return (e, l) => {
86
+ const r = d("ut-button"), N = d("ut-form"), U = d("ut-divider"), I = d("ut-grid"), x = d("ut-content"), L = d("vxe-drawer"), W = V("spinning");
87
+ return R(), h("div", P, [
88
+ i(L, {
89
+ "model-value": e.show,
90
+ position: "right",
91
+ "show-header": !1,
92
+ width: "90%"
93
+ }, {
94
+ default: s(() => [
95
+ _((R(), h("div", null, [
96
+ i(x, {
97
+ title: e.$t("message.title.lovView"),
98
+ onClose: H
99
+ }, {
100
+ header: s(() => [
101
+ i(r, {
102
+ icon: "ri-save-3-fill",
103
+ content: "save",
104
+ onTap: l[0] || (l[0] = ($) => S())
105
+ })
106
+ ]),
107
+ body: s(() => [
108
+ i(N, {
109
+ ref_key: "formRef",
110
+ ref: v,
111
+ record: e.record,
112
+ items: g,
113
+ "data-status": "update"
114
+ }, null, 8, ["record"]),
115
+ i(U, {
116
+ title: e.$t("message.title.lovColConfig")
117
+ }, null, 8, ["title"]),
118
+ i(I, {
119
+ ref_key: "xgrid",
120
+ ref: w,
121
+ columns: o,
122
+ url: p,
123
+ "default-value": { headerId: e.record.id },
124
+ "default-params": { headerId: e.record.id },
125
+ height: E,
126
+ events: y
127
+ }, null, 8, ["default-value", "default-params"])
128
+ ]),
129
+ _: 1
130
+ }, 8, ["title"])
131
+ ])), [
132
+ [W, n.value]
133
+ ])
134
+ ]),
135
+ _: 1
136
+ }, 8, ["model-value"])
137
+ ]);
138
+ };
139
+ }
140
+ });
141
+ export {
142
+ j as G
143
+ };
@@ -1,9 +1,9 @@
1
1
  import { defineComponent as S, ref as l, resolveComponent as d, createElementBlock as E, openBlock as m, createVNode as n, withCtx as T, createBlock as H, createCommentVNode as U, Fragment as $ } from "vue";
2
2
  import { useI18n as z } from "vue-i18n";
3
- import { t as F } from "./await-to-js.es5-BtRbN2QH.js";
3
+ import { t as F } from "./await-to-js.es5-Bv3Eu4mi.js";
4
4
  import { VxeUI as M } from "vxe-pc-ui";
5
5
  import { useRender as O, successMessage as f } from "@utogether/utils";
6
- import { y as p, i as g } from "./index-BabfUVv_.js";
6
+ import { g as p, u as g } from "./index-Dc7xWMiC.js";
7
7
  import { clone as j } from "xe-utils";
8
8
  const G = {
9
9
  class: "u-dict-config_wrapper"
@@ -22,9 +22,9 @@ const G = {
22
22
  setup(v, {
23
23
  emit: C
24
24
  }) {
25
- const w = v, y = O(), {
26
- t: _
27
- } = z(), a = l(!1), i = l(null), s = l(null), t = l({}), o = l("add"), k = window.innerHeight - 70, I = [{
25
+ const w = v, _ = O(), {
26
+ t: k
27
+ } = z(), a = l(!1), i = l(null), s = l(null), t = l({}), o = l("add"), y = window.innerHeight - 70, I = [{
28
28
  field: "dictCode",
29
29
  title: "message.udp.dictCode",
30
30
  required: !0,
@@ -81,7 +81,7 @@ const G = {
81
81
  title: "message.remark"
82
82
  }, {
83
83
  field: "enabled",
84
- itemRender: y.renderSwitch({
84
+ itemRender: _.renderSwitch({
85
85
  openValue: "1",
86
86
  closeValue: "0",
87
87
  defaultValue: "1"
@@ -97,7 +97,7 @@ const G = {
97
97
  parentId: e.id
98
98
  };
99
99
  }, V = async (e) => {
100
- await M.modal.confirm(_("message.delRecord")) === "confirm" && (await p().delete(h, [e]), f(), i.value.refreshData());
100
+ await M.modal.confirm(k("message.delRecord")) === "confirm" && (await p().delete(h, [e]), f(), i.value.refreshData());
101
101
  }, x = async (e) => {
102
102
  a.value = !0, o.value = "edit", t.value = j(e, !0);
103
103
  }, D = async () => {
@@ -140,7 +140,7 @@ const G = {
140
140
  ref_key: "xgrid",
141
141
  ref: i,
142
142
  columns: I,
143
- height: k,
143
+ height: y,
144
144
  "default-params": {
145
145
  parentId: e.record.id
146
146
  },
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as V, ref as a, resolveComponent as o, resolveDirective as F, createElementBlock as w, openBlock as _, createVNode as d, withCtx as c, withDirectives as W } from "vue";
2
- import { t as u } from "./await-to-js.es5-BtRbN2QH.js";
2
+ import { t as u } from "./await-to-js.es5-Bv3Eu4mi.js";
3
3
  import { useRender as P } from "@utogether/utils";
4
- import { i as $, y as f } from "./index-BabfUVv_.js";
4
+ import { u as $, g as f } from "./index-Dc7xWMiC.js";
5
5
  const x = { class: "ut-loview-wrapper" }, B = "/upfm/v1/lovViewHeader", p = "/upfm/v1/lovViewLine", G = /* @__PURE__ */ V({
6
6
  __name: "childView",
7
7
  props: {
@@ -34,7 +34,7 @@ const x = { class: "ut-loview-wrapper" }, B = "/upfm/v1/lovViewHeader", p = "/up
34
34
  {
35
35
  field: "fieldType",
36
36
  width: 120,
37
- editRender: t.renderDict("SU.FIELD.TYPE", E),
37
+ editRender: t.renderDict("SU.FIELD.TYPE", S),
38
38
  formatter: ["formatDict", "SU.FIELD.TYPE"]
39
39
  },
40
40
  {
@@ -58,15 +58,15 @@ const x = { class: "ut-loview-wrapper" }, B = "/upfm/v1/lovViewHeader", p = "/up
58
58
  editRender: t.renderDict("SU.WHETHER"),
59
59
  formatter: ["formatDict", "SU.WHETHER"]
60
60
  }
61
- ], h = a(null), q = window.innerHeight - 195, y = {
61
+ ], h = a(null), q = window.innerHeight - 195, E = {
62
62
  editActived({ row: e }) {
63
63
  i[6].editRender.props.disabled = e.fieldType !== "dictCode";
64
64
  }
65
65
  };
66
- function E(e) {
66
+ function S(e) {
67
67
  e.row.dictName = "", i[6].editRender.props.disabled = e.row.fieldType !== "dictCode", i[6].required = e.row.fieldType !== "dictCode";
68
68
  }
69
- const S = () => {
69
+ const y = () => {
70
70
  v.value.validateForm(async (e) => {
71
71
  if (!e) {
72
72
  s.value = !0;
@@ -101,7 +101,7 @@ const x = { class: "ut-loview-wrapper" }, B = "/upfm/v1/lovViewHeader", p = "/up
101
101
  d(r, {
102
102
  icon: "ri-save-3-fill",
103
103
  content: "save",
104
- onTap: n[0] || (n[0] = (Y) => S())
104
+ onTap: n[0] || (n[0] = (Y) => y())
105
105
  })
106
106
  ]),
107
107
  body: c(() => [
@@ -123,7 +123,7 @@ const x = { class: "ut-loview-wrapper" }, B = "/upfm/v1/lovViewHeader", p = "/up
123
123
  "default-value": { headerId: e.record.id },
124
124
  "default-params": { headerId: e.record.id },
125
125
  height: q,
126
- events: y
126
+ events: E
127
127
  }, null, 8, ["default-value", "default-params"])
128
128
  ]),
129
129
  _: 1
@@ -0,0 +1,180 @@
1
+ import { defineComponent as E, ref as o, resolveComponent as r, createElementBlock as M, openBlock as m, createVNode as l, withCtx as T, createBlock as z, createCommentVNode as F, Fragment as O } from "vue";
2
+ import { useI18n as S } from "vue-i18n";
3
+ import { c as U } from "./await-to-js.es5-Bv3Eu4mi-UCggJjes.js";
4
+ import { VxeUI as W } from "vxe-pc-ui";
5
+ import { useRender as $, successMessage as f } from "@utogether/utils";
6
+ import { M as p, W as v } from "./su-welcome-BjbuSrBZ.js";
7
+ import { clone as G } from "xe-utils";
8
+ const H = {
9
+ class: "u-dict-config_wrapper"
10
+ }, g = "/upfm/v1/lov", ee = /* @__PURE__ */ E({
11
+ __name: "childView",
12
+ props: {
13
+ record: {
14
+ default: () => ({})
15
+ },
16
+ show: {
17
+ type: Boolean,
18
+ default: !1
19
+ }
20
+ },
21
+ emits: ["onClose"],
22
+ setup(h, {
23
+ emit: w
24
+ }) {
25
+ const C = h, I = $(), {
26
+ t: k
27
+ } = S(), d = o(!1), n = o(null), u = o(null), t = o({}), a = o("add"), N = window.innerHeight - 70, b = [{
28
+ field: "dictCode",
29
+ title: "message.udp.dictCode",
30
+ required: !0,
31
+ treeNode: !0
32
+ }, {
33
+ field: "dictName",
34
+ title: "message.udp.dictName",
35
+ required: !0
36
+ }, {
37
+ field: "dictDesc",
38
+ title: "message.remark"
39
+ }, {
40
+ field: "remarks",
41
+ title: "message.remark"
42
+ }, {
43
+ field: "enabled",
44
+ formatter: ["formatDict", "SU.ENABLE"]
45
+ }, {
46
+ field: "operate",
47
+ title: "message.operate",
48
+ width: 200,
49
+ fixed: "right",
50
+ slots: {
51
+ default: ({
52
+ row: e
53
+ }) => [l(O, null, [l(r("ut-button"), {
54
+ content: "add",
55
+ status: "warning",
56
+ auth: "edit",
57
+ icon: "ri-add-line",
58
+ onTap: () => V(e)
59
+ }, null), l(r("ut-button"), {
60
+ content: "edit",
61
+ status: "primary",
62
+ auth: "edit",
63
+ onTap: () => _(e)
64
+ }, null), l(r("ut-button"), {
65
+ content: "del",
66
+ status: "danger",
67
+ auth: "del",
68
+ onTap: () => B(e)
69
+ }, null)])]
70
+ }
71
+ }], y = [{
72
+ field: "dictCode",
73
+ title: "message.udp.dictCode",
74
+ required: !0
75
+ }, {
76
+ field: "dictName",
77
+ title: "message.udp.dictName",
78
+ required: !0
79
+ }, {
80
+ field: "dictDesc",
81
+ title: "message.remark"
82
+ }, {
83
+ field: "enabled",
84
+ itemRender: I.renderSwitch({
85
+ openValue: "1",
86
+ closeValue: "0",
87
+ defaultValue: "1"
88
+ })
89
+ }], x = () => {
90
+ d.value = !0, a.value = "add", t.value = {
91
+ enabled: "1",
92
+ parentId: C.record.id
93
+ };
94
+ }, V = (e) => {
95
+ d.value = !0, a.value = "add", t.value = {
96
+ enabled: "1",
97
+ parentId: e.id
98
+ };
99
+ }, B = async (e) => {
100
+ await W.modal.confirm(k("message.delRecord")) === "confirm" && (await v().delete(g, [e]), f(), n.value.refreshData());
101
+ }, _ = async (e) => {
102
+ d.value = !0, a.value = "edit", t.value = G(e, !0);
103
+ }, D = async () => {
104
+ const e = {
105
+ ...t.value,
106
+ orgId: p().getOrgId,
107
+ organizationId: p().getOrganizationId
108
+ };
109
+ u.value.showLoading();
110
+ const i = a.value === "add" ? "post" : "put", [s] = await U(v()[i](g, [e]));
111
+ if (u.value.hiddenLoading(), !s) {
112
+ if (d.value = a.value !== "edit", a.value === "add") {
113
+ const c = t.value.parentId;
114
+ t.value = {
115
+ enabled: "1",
116
+ parentId: c
117
+ };
118
+ }
119
+ f(), n.value.refreshData();
120
+ }
121
+ }, q = (e) => {
122
+ e === "add" && x();
123
+ }, L = w;
124
+ function R() {
125
+ L("onClose");
126
+ }
127
+ return (e, i) => {
128
+ const s = r("ut-grid"), c = r("ut-modal-form"), A = r("vxe-drawer");
129
+ return m(), M("div", H, [l(A, {
130
+ "model-value": e.show,
131
+ title: e.$t("message.title.dictList", {
132
+ name: e.record.dictName
133
+ }),
134
+ position: "right",
135
+ "destroy-on-close": "",
136
+ width: "67%",
137
+ onClose: R
138
+ }, {
139
+ default: T(() => [l(s, {
140
+ ref_key: "xgrid",
141
+ ref: n,
142
+ columns: b,
143
+ height: N,
144
+ "default-params": {
145
+ parentId: e.record.id
146
+ },
147
+ buttons: [{
148
+ code: "del",
149
+ auth: "/"
150
+ }],
151
+ "tree-config": {
152
+ childrenField: "children",
153
+ expandAll: !0
154
+ },
155
+ url: "/upfm/v1/lov/children",
156
+ mode: "form",
157
+ onButtonClick: q
158
+ }, null, 8, ["default-params"]), d.value ? (m(), z(c, {
159
+ key: 0,
160
+ ref_key: "xmodal",
161
+ ref: u,
162
+ record: t.value,
163
+ items: y,
164
+ width: "400",
165
+ height: "280",
166
+ "data-status": a.value,
167
+ title: e.$t("message.title.dictInfo", {
168
+ name: e.record.dictName
169
+ }),
170
+ onClose: i[0] || (i[0] = (J) => d.value = !1),
171
+ onConfirm: D
172
+ }, null, 8, ["record", "data-status", "title"])) : F("", !0)]),
173
+ _: 1
174
+ }, 8, ["model-value", "title"])]);
175
+ };
176
+ }
177
+ });
178
+ export {
179
+ ee as e
180
+ };
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as U, ref as d, createVNode as f, resolveComponent as i, nextTick as C, createElementBlock as y, openBlock as p, createBlock as b, createCommentVNode as q } from "vue";
2
- import { t as x } from "./await-to-js.es5-BtRbN2QH.js";
2
+ import { t as x } from "./await-to-js.es5-Bv3Eu4mi.js";
3
3
  import { useRender as B } from "@utogether/utils";
4
- import { y as D } from "./index-BabfUVv_.js";
4
+ import { g as D } from "./index-Dc7xWMiC.js";
5
5
  const I = {
6
6
  name: "CodeRule"
7
7
  }, M = /* @__PURE__ */ U({