@utogether/udp-core 1.0.4 → 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.
- package/dist/{403-DASI6Pwz.js → 403-CxOqlq0f.js} +3 -3
- package/dist/403-WCboRvzZ-ZAPgYStl.js +65 -0
- package/dist/404-2V0Qi-d7-DkNwQggp.js +65 -0
- package/dist/{404-YhBA92cb.js → 404-xdB6lFeQ.js} +1 -1
- package/dist/500-BYfzvixf-CGpEieyQ.js +67 -0
- package/dist/{500-ywbFF5MX.js → 500-C94bRK2S.js} +2 -2
- package/dist/AuthorityInfo-DBovfUjB-DpQwT9Q5.js +4 -0
- package/dist/{AuthorityInfo-tCSX2Fh7.js → AuthorityInfo-Dy3b_nFN.js} +1 -1
- package/dist/{AuthorityInfo.vue_vue_type_style_index_0_lang-Cwd6UT2i.js → AuthorityInfo.vue_vue_type_style_index_0_lang-Bh7IbcdY.js} +2 -2
- package/dist/AuthorityInfo.vue_vue_type_style_index_0_lang-D-l_Az3s-Cw7WmFxz.js +100 -0
- package/dist/AuthorityPanel-CRlAwbaI-G7pZXKdE.js +4 -0
- package/dist/{AuthorityPanel-BeBNiwqc.js → AuthorityPanel-CRlAwbaI.js} +1 -1
- package/dist/AuthorityPanel.vue_vue_type_style_index_0_lang-DxhZjp1S-CJvk3pW8.js +114 -0
- package/dist/{AuthorityPanel.vue_vue_type_style_index_0_lang-CIYmnP9-.js → AuthorityPanel.vue_vue_type_style_index_0_lang-DxhZjp1S.js} +31 -24
- package/dist/Company-B4vsXy2I-CkNCOqjJ.js +25 -0
- package/dist/{Company-l23MEzdM.js → Company-gKkfnhLt.js} +3 -3
- package/dist/{CompanyPanel-D_s0rh6h.js → CompanyPanel-BF5Pc35s.js} +7 -7
- package/dist/CompanyPanel-Czcx8Gyw-CvndXwB_.js +206 -0
- package/dist/DataSet-DT-rGICv-DaUfgbxk.js +147 -0
- package/dist/{Department-DSEvORLg.js → Department-D0I3QVZe.js} +3 -3
- package/dist/Department-D0dVUrGC-C6HJcYI1.js +25 -0
- package/dist/{DepartmentPanel-WN8nOgCV.js → DepartmentPanel-2LHODgc7.js} +22 -22
- package/dist/DepartmentPanel-e91Lxr1j-BS_A-ILd.js +254 -0
- package/dist/{DesignPanel-DirEGh9M.js → DesignPanel-CtF3cAAQ.js} +1 -1
- package/dist/DesignPanel-DdFl_ohi-uCwFxcl1.js +4 -0
- package/dist/DesignPanel.vue_vue_type_style_index_0_lang-BACPrfUI-cC7yL0uY.js +1013 -0
- package/dist/{DesignPanel.vue_vue_type_style_index_0_lang-D02hXSrN.js → DesignPanel.vue_vue_type_style_index_0_lang-BCYgwoVt.js} +3 -3
- package/dist/DictView-BzQLOf_P-DDicwdmM.js +111 -0
- package/dist/{DictView-DiIQdiek.js → DictView-H3V5hxg3.js} +17 -16
- package/dist/{InvOrganization-b7v3g9EJ.js → InvOrganization-BiGLnbqe.js} +2 -2
- package/dist/InvOrganization-atbhw0CI-BABbVt9V.js +74 -0
- package/dist/Org-BW1YHG-Q-Cow7JWlD.js +39 -0
- package/dist/{Org-BORfx1PL.js → Org-DQTCQHNY.js} +2 -2
- package/dist/Preview-DJtVsoq1-CCGidQjJ.js +48 -0
- package/dist/{Preview-DkRn_TSc.js → Preview-DXaiis29.js} +1 -1
- package/dist/{ReportDefine-Cd0QeaWA.js → ReportDefine-BLh4CiER.js} +1 -1
- package/dist/ReportDefine-CNx_ob99-6NQAHK-Q.js +10 -0
- package/dist/ReportDesign-FbQ6yTJS-C1pPAUSp.js +165 -0
- package/dist/{ReportDesign-4qNqyeEW.js → ReportDesign-Ni1YxrLC.js} +7 -7
- package/dist/ReportQuery-C5gz8Lgd-Eu2cQmda.js +75 -0
- package/dist/{ReportQuery-BJfTFpec.js → ReportQuery-C8G88_qF.js} +1 -1
- package/dist/ReportQueryFrom-C7scua5v-uHXWq8Gy.js +4 -0
- package/dist/{ReportQueryFrom-CB7sExZx.js → ReportQueryFrom-CuZKPtB4.js} +1 -1
- package/dist/{ReportQueryFrom.vue_vue_type_style_index_0_lang-CqO_2Ier.js → ReportQueryFrom.vue_vue_type_style_index_0_lang-BAn_siFW.js} +7 -7
- package/dist/ReportQueryFrom.vue_vue_type_style_index_0_lang-DCbz67Wa-vK6r2uCl.js +178 -0
- package/dist/ReportTemplate-BDANdIWv-D_IGjR1w.js +161 -0
- package/dist/{ReportTemplate-B69muSgT.js → ReportTemplate-DFnDXWmx.js} +8 -8
- package/dist/{Role-Bo4YrNDC.js → Role-BQ7hsfPn.js} +3 -3
- package/dist/Role-ByB0WbxW-5E8Mb148.js +25 -0
- package/dist/RoleAssign-DW6iC_0v-Bis61auk.js +26 -0
- package/dist/{RoleAssign-kOMYJ4s3.js → RoleAssign-UPCg2d4G.js} +3 -3
- package/dist/RolePanel-BM2MaQPU-CgcsbfaX.js +4 -0
- package/dist/{RolePanel-BSJmjyqc.js → RolePanel-C-mQ5XRq.js} +1 -1
- package/dist/RolePanel-ClQy8DBL-DARL4O-o.js +4 -0
- package/dist/{RolePanel-B1d4e6uk.js → RolePanel-CoSXOCZN.js} +1 -1
- package/dist/RolePanel.vue_vue_type_script_setup_true_lang-Bc_Ao_PU-DMmxr2iI.js +132 -0
- package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-DgQpfjaU.js → RolePanel.vue_vue_type_script_setup_true_lang-Bg-t2UhF.js} +7 -7
- package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-DCzX-ZP_.js → RolePanel.vue_vue_type_script_setup_true_lang-D-o7HYZ8.js} +8 -8
- package/dist/RolePanel.vue_vue_type_script_setup_true_lang-fthF1zkp-JsbQJoDy.js +154 -0
- package/dist/ScrollPanel.vue_vue_type_style_index_0_lang-ByWIwajm-BsBf2Vs3.js +100 -0
- package/dist/{ScrollPanel.vue_vue_type_style_index_0_lang-WNOYFxJ1.js → ScrollPanel.vue_vue_type_style_index_0_lang-CCsoxDfk.js} +1 -1
- package/dist/Staff-CuxzvhD9-D0KTcyRh.js +25 -0
- package/dist/{Staff-BFp3zNNR.js → Staff-D-CmvG1R.js} +3 -3
- package/dist/StaffInfo-CY7gUICu-EZUhUwIp.js +4 -0
- package/dist/{StaffInfo-DcU9_40C.js → StaffInfo-Idhvuc6e.js} +1 -1
- package/dist/StaffInfo.vue_vue_type_script_setup_true_lang-Dd8gtQz8-Dlkt-eCn.js +108 -0
- package/dist/{StaffInfo.vue_vue_type_script_setup_true_lang-CtfN2CAr.js → StaffInfo.vue_vue_type_script_setup_true_lang-MUGKjnHU.js} +1 -1
- package/dist/{StaffPanel-7exWkZd9.js → StaffPanel-CDDmAYE5.js} +1 -1
- package/dist/StaffPanel-CwqG0_xr-CrvzLJoc.js +4 -0
- package/dist/{StaffPanel.vue_vue_type_script_setup_true_lang-v5xOXKRS.js → StaffPanel.vue_vue_type_script_setup_true_lang-Bdilqbee.js} +42 -42
- package/dist/StaffPanel.vue_vue_type_script_setup_true_lang-DCdBy8Hu-BXrueqi0.js +143 -0
- package/dist/SysUser-9Q2UJWhi-DprWXFlR.js +15 -0
- package/dist/{SysUser-B3uB_cp2.js → SysUser-a-j5bppr.js} +2 -2
- package/dist/{SysUserPanel-B0CLp5AO.js → SysUserPanel-6V232wwB.js} +1 -1
- package/dist/SysUserPanel-bJy69O7x-BJtBgFEs.js +4 -0
- package/dist/{SysUserPanel.vue_vue_type_script_setup_true_lang-Cwea_4dY.js → SysUserPanel.vue_vue_type_script_setup_true_lang-BOtHuMVy.js} +126 -111
- package/dist/SysUserPanel.vue_vue_type_script_setup_true_lang-DUPFqgz3-BSqRCMen.js +356 -0
- package/dist/{SystemMenu-a59l4hTk.js → SystemMenu-BnVeOSOQ.js} +50 -47
- package/dist/SystemMenu-DGOAolc1-CJSLHP8i.js +156 -0
- package/dist/UserInfo-CKoOHkAM-DDWp0I_U.js +4 -0
- package/dist/{UserInfo-D1IA2oLt.js → UserInfo-Cax9b2nw.js} +1 -1
- package/dist/UserInfo.vue_vue_type_style_index_0_lang-BaT53SSu-DsNaAomO.js +160 -0
- package/dist/{UserInfo.vue_vue_type_style_index_0_lang-DDVgYRD5.js → UserInfo.vue_vue_type_style_index_0_lang-D-cw11i9.js} +2 -2
- package/dist/await-to-js.es5-Bv3Eu4mi-UCggJjes.js +10 -0
- package/dist/await-to-js.es5-Bv3Eu4mi.js +10 -0
- package/dist/childView-0YZQ6GBn-CEqg7k5d.js +4 -0
- package/dist/{childView-6rCeLcsx.js → childView-DKG3eZo8.js} +1 -1
- package/dist/childView-DKkgi3yo-D47ft-vi.js +4 -0
- package/dist/{childView-JdrkroL5.js → childView-siumuBz0.js} +1 -1
- package/dist/childView.vue_vue_type_style_index_0_lang-ABMrGInv-ClOdE_sa.js +143 -0
- package/dist/{childView.vue_vue_type_style_index_0_lang-BfcnWnx9.js → childView.vue_vue_type_style_index_0_lang-CUfXDS1q.js} +28 -25
- package/dist/{childView.vue_vue_type_style_index_0_lang-B8x99f1B.js → childView.vue_vue_type_style_index_0_lang-CW3EbAmW.js} +8 -8
- package/dist/childView.vue_vue_type_style_index_0_lang-CaW106ve-CClTM8PK.js +180 -0
- package/dist/{code-rule-2lkPF547.js → code-rule-Dtoree6F.js} +2 -2
- package/dist/code-rule-wQyfgpNL-C4evD4Co.js +148 -0
- package/dist/core.es.js +10 -10
- package/dist/cron-task-C-kryDtd-C0NuGZCe.js +135 -0
- package/dist/{cron-task-DV1pGO1m.js → cron-task-GSRgA7S5.js} +2 -2
- package/dist/flow-task-B07st2aD-CgQvagSQ.js +10 -0
- package/dist/frameView-BOGA3ezf-QoSxzmSQ.js +44 -0
- package/dist/{frameView-C0bzSB8c.js → frameView-Cy6wxW0K.js} +1 -1
- package/dist/index-Dc7xWMiC.js +7265 -0
- package/dist/layout-home-3Dy4onl4.js +228 -0
- package/dist/layout-home-CYHksXN_-Basy-3IH.js +228 -0
- package/dist/layoutView-BaRvAbIa-xVgfqspc.js +3302 -0
- package/dist/{layoutView-CTV-E4Cj.js → layoutView-DMjNscJ-.js} +148 -149
- package/dist/log-in-Cx1dGik8-BVeEHeZ8.js +117 -0
- package/dist/{log-in-CoBP2x6u.js → log-in-VAG6Cvcx.js} +8 -8
- package/dist/log-out-COYdxrNC-ftopGZdE.js +130 -0
- package/dist/{log-out-KX8FiRVf.js → log-out-DZGaMCjC.js} +4 -4
- package/dist/{login-CtCoGWzD.js → login-CqVMdNHs.js} +126 -136
- package/dist/login-Dg9ofNS8-Bocp1XMA.js +241 -0
- package/dist/login-log-DJBGJVV0-AoOyj0jD.js +70 -0
- package/dist/lov-view-C0T5prk8-B2DBmn55.js +97 -0
- package/dist/{lov-view-Bm0JEzzg.js → lov-view-Cc68_28B.js} +7 -7
- package/dist/{menuInfo-D2qPoRwz.js → menuInfo-BIrIaJlH.js} +1 -1
- package/dist/menuInfo-BZJ_q7bz-Drho-_QC.js +4 -0
- package/dist/menuInfo.vue_vue_type_style_index_0_lang-BA8xjUo3-BCZ1wipf.js +363 -0
- package/dist/{menuInfo.vue_vue_type_style_index_0_lang-DoQjX9Ly.js → menuInfo.vue_vue_type_style_index_0_lang-DlE4w35X.js} +38 -36
- package/dist/{pda-app-SbcIclbH.js → pda-app-DnjphrRS.js} +9 -9
- package/dist/pda-app-m9hsppHo-B4xyja1o.js +710 -0
- package/dist/redirect-BqegffKC-CBCIuqmz.js +15 -0
- package/dist/resource-C6KEIXu--B_ddyecm.js +97 -0
- package/dist/{resource-Cdq1UKGI.js → resource-DISgPDM7.js} +4 -4
- package/dist/su-welcome-BjbuSrBZ.js +49424 -0
- package/dist/su-welcome-CYYy-dzr-D3RKPoB0.js +42089 -0
- package/dist/sys-config-DCjJGtht-DARDjlrt.js +370 -0
- package/dist/{sys-config-CCOf4xbj.js → sys-config-Yc9vh1t1.js} +13 -13
- package/dist/udp-core.css +1 -1
- package/dist/utogether-MlnyYtNS-CGgjFNPS.js +4 -0
- package/package.json +5 -2
- package/src/App.vue +37 -31
- package/src/components/udp/content/index.vue +88 -88
- package/src/components/udp/form-upload/form-upload.vue +492 -0
- package/src/components/udp/grid/index.vue +524 -524
- package/src/components/udp/index.ts +6 -5
- package/src/components/udp/ut-stamp-badge/index.vue +271 -271
- package/src/components/udp/utils.ts +408 -408
- package/src/layout/components/lay-content/index.vue +4 -11
- package/src/layout/components/lay-search/components/SearchModal.vue +181 -189
- package/src/layout/components/lay-setting/index.vue +503 -503
- package/src/layout/components/lay-sidebar/sidebar-logo.vue +101 -101
- package/src/layout/components/lay-tag/index.vue +598 -598
- package/src/layout/hooks/useNav.ts +176 -176
- package/src/layout/hooks/useTag.ts +227 -227
- package/src/layout/layoutView.vue +216 -215
- package/src/layout/types.ts +93 -93
- package/src/main.ts +111 -115
- package/src/plugins/i18n/zh.ts +17 -3
- package/src/plugins/vxe-table/index.ts +116 -116
- package/src/plugins/vxe-table/render.tsx +968 -950
- package/src/router/index.ts +187 -187
- package/src/router/modules/home.ts +32 -32
- package/src/router/utils.ts +420 -420
- package/src/store/modules/epTheme.ts +48 -48
- package/src/style/vxetable.scss +18 -2
- package/src/utils/dataFormat/index.ts +222 -222
- package/src/utils/lifecycle.ts +39 -39
- package/src/views/organization/department/DepartmentPanel.vue +303 -303
- package/src/views/organization/staff/StaffInfo.vue +127 -127
- package/src/views/organization/staff/StaffPanel.vue +3 -3
- package/src/views/system/layout/layout-home.vue +237 -0
- package/src/views/system/menu/AuthorityPanel.vue +10 -9
- package/src/views/system/menu/SystemMenu.vue +194 -185
- package/src/views/system/menu/menuInfo.vue +384 -384
- package/src/views/system/sysUser/SysUserPanel.vue +363 -347
- package/src/views/udev/coderule/code-rule.vue +132 -132
- package/src/views/udev/dict/DictView.vue +118 -118
- package/src/views/udev/dict/childView.vue +184 -183
- package/src/views/udev/lov/childView.vue +174 -174
- package/src/views/uhome/components/common-menu.vue +118 -0
- package/src/views/uhome/components/dynamic-component.vue +66 -0
- package/src/views/uhome/components/home-todo.vue +170 -0
- package/src/views/uhome/components/menu-favorite.vue +315 -315
- package/src/views/uhome/dynamic-card.vue +31 -0
- package/src/views/uhome/su-welcome.vue +48 -113
- package/src/views/ulogin/login.vue +336 -325
- package/src/views/upms/interface/log-in.vue +100 -100
- package/src/views/upms/interface/log-out.vue +104 -104
- package/src/views/upms/user/login-log.vue +54 -54
- package/types/global.d.ts +232 -231
- package/dist/await-to-js.es5-BtRbN2QH.js +0 -10
- package/dist/index-BbtbEMCH.js +0 -4649
- package/dist/su-welcome-BHDsjqqV.js +0 -524
|
@@ -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-
|
|
3
|
-
import {
|
|
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,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,13 +1,13 @@
|
|
|
1
|
-
import { defineComponent as S, ref as l, resolveComponent as
|
|
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-
|
|
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 {
|
|
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"
|
|
10
|
-
},
|
|
10
|
+
}, h = "/upfm/v1/lov", ee = /* @__PURE__ */ S({
|
|
11
11
|
__name: "childView",
|
|
12
12
|
props: {
|
|
13
13
|
record: {
|
|
@@ -19,12 +19,12 @@ const G = {
|
|
|
19
19
|
}
|
|
20
20
|
},
|
|
21
21
|
emits: ["onClose"],
|
|
22
|
-
setup(
|
|
22
|
+
setup(v, {
|
|
23
23
|
emit: C
|
|
24
24
|
}) {
|
|
25
|
-
const w =
|
|
26
|
-
t:
|
|
27
|
-
} = z(),
|
|
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,
|
|
@@ -36,6 +36,9 @@ const G = {
|
|
|
36
36
|
}, {
|
|
37
37
|
field: "dictDesc",
|
|
38
38
|
title: "message.remark"
|
|
39
|
+
}, {
|
|
40
|
+
field: "remarks",
|
|
41
|
+
title: "message.remark"
|
|
39
42
|
}, {
|
|
40
43
|
field: "enabled",
|
|
41
44
|
formatter: ["formatDict", "SU.ENABLE"]
|
|
@@ -47,18 +50,18 @@ const G = {
|
|
|
47
50
|
slots: {
|
|
48
51
|
default: ({
|
|
49
52
|
row: e
|
|
50
|
-
}) => [n($, null, [n(
|
|
53
|
+
}) => [n($, null, [n(d("ut-button"), {
|
|
51
54
|
content: "add",
|
|
52
55
|
status: "warning",
|
|
53
56
|
auth: "edit",
|
|
54
57
|
icon: "ri-add-line",
|
|
55
58
|
onTap: () => B(e)
|
|
56
|
-
}, null), n(
|
|
59
|
+
}, null), n(d("ut-button"), {
|
|
57
60
|
content: "edit",
|
|
58
61
|
status: "primary",
|
|
59
62
|
auth: "edit",
|
|
60
63
|
onTap: () => x(e)
|
|
61
|
-
}, null), n(
|
|
64
|
+
}, null), n(d("ut-button"), {
|
|
62
65
|
content: "del",
|
|
63
66
|
status: "danger",
|
|
64
67
|
auth: "del",
|
|
@@ -78,35 +81,35 @@ const G = {
|
|
|
78
81
|
title: "message.remark"
|
|
79
82
|
}, {
|
|
80
83
|
field: "enabled",
|
|
81
|
-
itemRender:
|
|
84
|
+
itemRender: _.renderSwitch({
|
|
82
85
|
openValue: "1",
|
|
83
86
|
closeValue: "0",
|
|
84
87
|
defaultValue: "1"
|
|
85
88
|
})
|
|
86
89
|
}], N = () => {
|
|
87
|
-
|
|
90
|
+
a.value = !0, o.value = "add", t.value = {
|
|
88
91
|
enabled: "1",
|
|
89
92
|
parentId: w.record.id
|
|
90
93
|
};
|
|
91
94
|
}, B = (e) => {
|
|
92
|
-
|
|
95
|
+
a.value = !0, o.value = "add", t.value = {
|
|
93
96
|
enabled: "1",
|
|
94
97
|
parentId: e.id
|
|
95
98
|
};
|
|
96
99
|
}, V = async (e) => {
|
|
97
|
-
await M.modal.confirm(
|
|
100
|
+
await M.modal.confirm(k("message.delRecord")) === "confirm" && (await p().delete(h, [e]), f(), i.value.refreshData());
|
|
98
101
|
}, x = async (e) => {
|
|
99
|
-
|
|
102
|
+
a.value = !0, o.value = "edit", t.value = j(e, !0);
|
|
100
103
|
}, D = async () => {
|
|
101
104
|
const e = {
|
|
102
105
|
...t.value,
|
|
103
|
-
orgId:
|
|
104
|
-
organizationId:
|
|
106
|
+
orgId: g().getOrgId,
|
|
107
|
+
organizationId: g().getOrganizationId
|
|
105
108
|
};
|
|
106
109
|
s.value.showLoading();
|
|
107
|
-
const r = o.value === "add" ? "post" : "put", [u] = await F(p()[r](
|
|
110
|
+
const r = o.value === "add" ? "post" : "put", [u] = await F(p()[r](h, [e]));
|
|
108
111
|
if (s.value.hiddenLoading(), !u) {
|
|
109
|
-
if (
|
|
112
|
+
if (a.value = o.value !== "edit", o.value === "add") {
|
|
110
113
|
const c = t.value.parentId;
|
|
111
114
|
t.value = {
|
|
112
115
|
enabled: "1",
|
|
@@ -122,7 +125,7 @@ const G = {
|
|
|
122
125
|
A("onClose");
|
|
123
126
|
}
|
|
124
127
|
return (e, r) => {
|
|
125
|
-
const u =
|
|
128
|
+
const u = d("ut-grid"), c = d("ut-modal-form"), R = d("vxe-drawer");
|
|
126
129
|
return m(), E("div", G, [n(R, {
|
|
127
130
|
"model-value": e.show,
|
|
128
131
|
title: e.$t("message.title.dictList", {
|
|
@@ -136,8 +139,8 @@ const G = {
|
|
|
136
139
|
default: T(() => [n(u, {
|
|
137
140
|
ref_key: "xgrid",
|
|
138
141
|
ref: i,
|
|
139
|
-
columns:
|
|
140
|
-
height:
|
|
142
|
+
columns: I,
|
|
143
|
+
height: y,
|
|
141
144
|
"default-params": {
|
|
142
145
|
parentId: e.record.id
|
|
143
146
|
},
|
|
@@ -152,7 +155,7 @@ const G = {
|
|
|
152
155
|
url: "/upfm/v1/lov/children",
|
|
153
156
|
mode: "form",
|
|
154
157
|
onButtonClick: q
|
|
155
|
-
}, null, 8, ["default-params"]),
|
|
158
|
+
}, null, 8, ["default-params"]), a.value ? (m(), H(c, {
|
|
156
159
|
key: 0,
|
|
157
160
|
ref_key: "xmodal",
|
|
158
161
|
ref: s,
|
|
@@ -164,7 +167,7 @@ const G = {
|
|
|
164
167
|
title: e.$t("message.title.dictInfo", {
|
|
165
168
|
name: e.record.dictName
|
|
166
169
|
}),
|
|
167
|
-
onClose: r[0] || (r[0] = (J) =>
|
|
170
|
+
onClose: r[0] || (r[0] = (J) => a.value = !1),
|
|
168
171
|
onConfirm: D
|
|
169
172
|
}, null, 8, ["record", "data-status", "title"])) : U("", !0)]),
|
|
170
173
|
_: 1
|
|
@@ -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-
|
|
2
|
+
import { t as u } from "./await-to-js.es5-Bv3Eu4mi.js";
|
|
3
3
|
import { useRender as P } from "@utogether/utils";
|
|
4
|
-
import {
|
|
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",
|
|
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,
|
|
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
|
|
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
|
|
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) =>
|
|
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:
|
|
126
|
+
events: E
|
|
127
127
|
}, null, 8, ["default-value", "default-params"])
|
|
128
128
|
]),
|
|
129
129
|
_: 1
|