@utogether/udp-core 1.0.1-beta.2 → 1.0.1-beta.20
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/build/plugins.ts +8 -1
- package/dist/{403-BBQoJwTM.js → 403-Bz5EJPLA.js} +1 -1
- package/dist/{404-BbJPSIWM.js → 404-ClOnaj9V.js} +1 -1
- package/dist/{500-BtFL9R4M.js → 500-DCUfhV7Y.js} +1 -1
- package/dist/{AuthorityInfo-DhiwCeLN.js → AuthorityInfo-q6E-js1r.js} +1 -1
- package/dist/AuthorityInfo.vue_vue_type_style_index_0_lang-BM52QDgn.js +100 -0
- package/dist/{Company-CGqmslx-.js → Company-BSShW3Q4.js} +3 -3
- package/dist/{CompanyPanel-hlDsxD-6.js → CompanyPanel-Dl8eOYLk.js} +26 -26
- package/dist/{Department-BZyJtacc.js → Department-CVIxAnUN.js} +3 -3
- package/dist/{DepartmentPanel-D-a_EBFt.js → DepartmentPanel-Sa3IDl4z.js} +25 -25
- package/dist/{DesignPanel-Bl4luWDV.js → DesignPanel-DnRipagE.js} +1 -1
- package/dist/{DesignPanel.vue_vue_type_style_index_0_lang-I8C3iGvz.js → DesignPanel.vue_vue_type_style_index_0_lang-DGNyp3Vl.js} +28 -30
- package/dist/DictView-uf2K9A1d.js +109 -0
- package/dist/InvOrganization-CG9VCpXl.js +74 -0
- package/dist/Org-W2CBN1B8.js +39 -0
- package/dist/{Preview-pHD84xqI.js → Preview-DPBxdDvW.js} +2 -2
- package/dist/{ReportDefine-DnnCNQWS.js → ReportDefine-Dsx9VM-I.js} +1 -1
- package/dist/{ReportDesign-BnI_Q4pg.js → ReportDesign-DiIGfte0.js} +43 -43
- package/dist/{ReportQuery-Dby2MmtM.js → ReportQuery-9A4Bfs1M.js} +1 -1
- package/dist/{ReportQueryFrom-Blm1N8P1.js → ReportQueryFrom-M5qLoGAa.js} +1 -1
- package/dist/{ReportQueryFrom.vue_vue_type_style_index_0_lang-CnG_Ybnt.js → ReportQueryFrom.vue_vue_type_style_index_0_lang-OQ9pUCKP.js} +1 -1
- package/dist/{ReportTemplate-D65RXRY_.js → ReportTemplate-C34FWAuK.js} +28 -28
- package/dist/{Role-eFZoTpXc.js → Role-jG3VTeOF.js} +6 -6
- package/dist/{RoleAssign-D9-Y3UNz.js → RoleAssign-BfHpCequ.js} +9 -9
- package/dist/{RolePanel-DlFw6HSf.js → RolePanel-DW9pNl0L.js} +1 -1
- package/dist/{RolePanel-CoUOc3sX.js → RolePanel-xRN2-rkk.js} +1 -1
- package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-Clwk-MHw.js → RolePanel.vue_vue_type_script_setup_true_lang-BVEHqEq9.js} +44 -38
- package/dist/RolePanel.vue_vue_type_script_setup_true_lang-C0rTy6vZ.js +132 -0
- package/dist/{ScrollPanel.vue_vue_type_style_index_0_lang-M2FQJwPU.js → ScrollPanel.vue_vue_type_style_index_0_lang-D65sJYWT.js} +23 -23
- package/dist/{Staff-DFBLCsAd.js → Staff-BqBVEjau.js} +3 -3
- package/dist/{StaffInfo-d2CK0oBA.js → StaffInfo-DXeyyEFL.js} +1 -1
- package/dist/{StaffInfo.vue_vue_type_script_setup_true_lang-4m8wK9tq.js → StaffInfo.vue_vue_type_script_setup_true_lang-Dg0iYgRf.js} +16 -16
- package/dist/{StaffPanel-D6aWLKN3.js → StaffPanel-iE-8VtUm.js} +1 -1
- package/dist/{StaffPanel.vue_vue_type_script_setup_true_lang-C7YT2CVb.js → StaffPanel.vue_vue_type_script_setup_true_lang-BrrvE1xm.js} +2 -2
- package/dist/{SysUser-BdZvYxQH.js → SysUser-DSZyW30i.js} +2 -2
- package/dist/{SysUserPanel-BIVa6LLr.js → SysUserPanel-CbiG6GQF.js} +1 -1
- package/dist/SysUserPanel.vue_vue_type_script_setup_true_lang-B1Y1fmBe.js +298 -0
- package/dist/{SystemMenu-C-5VKlHK.js → SystemMenu-DreuWY-a.js} +33 -33
- package/dist/{UserInfo-DqXCRZts.js → UserInfo-DXrzKAim.js} +1 -1
- package/dist/{UserInfo.vue_vue_type_style_index_0_lang-N3TwfpPx.js → UserInfo.vue_vue_type_style_index_0_lang-C44E20b4.js} +41 -39
- package/dist/{childView-B2lSsqS3.js → childView-VCidWgY6.js} +1 -1
- package/dist/{childView-DRUNqgjI.js → childView-k5IkJOBr.js} +1 -1
- package/dist/{childView.vue_vue_type_style_index_0_lang-B9XBDDU_.js → childView.vue_vue_type_style_index_0_lang-C6ftwwvZ.js} +1 -1
- package/dist/{childView.vue_vue_type_style_index_0_lang-oGriyFTv.js → childView.vue_vue_type_style_index_0_lang-DmG82dVB.js} +43 -43
- package/dist/{code-rule-DZC9T6cl.js → code-rule-7WQMabpW.js} +13 -15
- package/dist/core.es.js +18 -10
- package/dist/{cron-task-BJwPeA5F.js → cron-task-D1t56MSu.js} +11 -11
- package/dist/{frameView-C6wkvok-.js → frameView-CWsIFBgU.js} +1 -1
- package/dist/img/l_img.svg +1 -1
- package/dist/img/minicolors.png +0 -0
- package/dist/img/v_img.svg +1 -1
- package/dist/index-DxWAYxai.js +5495 -0
- package/dist/{layoutView-CeJBpZb_.js → layoutView-DLpHSner.js} +1564 -1559
- package/dist/{log-in-e7D5Ss1P.js → log-in-CpGqc33f.js} +5 -4
- package/dist/{log-out--RRncZhN.js → log-out-D1b4VRMZ.js} +30 -24
- package/dist/login-OjDiQmz8.js +249 -0
- package/dist/{login-log-CvVnyGi3.js → login-log-BNRXLeMi.js} +4 -3
- package/dist/{lov-view-DRF-99U4.js → lov-view-D28X6m3k.js} +5 -5
- package/dist/{menuInfo-3Sjvs9nM.js → menuInfo-DwPB6rHz.js} +1 -1
- package/dist/{menuInfo.vue_vue_type_style_index_0_lang-DrQ560nm.js → menuInfo.vue_vue_type_style_index_0_lang-l5DNRfb7.js} +34 -32
- package/dist/{pda-app-B9tn7jdv.js → pda-app-Bdms2PRY.js} +202 -188
- package/dist/{resource-BqnxbQNe.js → resource-y6SHrHoq.js} +18 -18
- package/dist/{su-welcome-VwifUK_O.js → su-welcome-D9G6EuK2.js} +118 -120
- package/dist/sys-config-DFnGHiFc.js +355 -0
- package/dist/udp-core.css +1 -9
- package/dist/utogether-MlnyYtNS.js +4 -0
- package/index.ts +17 -5
- package/package.json +1 -1
- package/src/App.vue +2 -7
- package/src/api/http.ts +1 -4
- package/src/api/index.ts +5 -3
- package/src/api/user.ts +2 -2
- package/src/components/SuCharts/src/UserInfo.vue +3 -3
- package/src/components/SuScrollTree/ScrollPanel.vue +170 -175
- package/src/components/udp/form/form.vue +109 -0
- package/src/components/udp/grid/index.vue +509 -0
- package/src/components/udp/index.ts +4 -4
- package/src/components/udp/utils.ts +405 -40
- package/src/directives/permission/index.ts +1 -1
- package/src/layout/components/lay-navbar/index.vue +9 -7
- package/src/layout/components/lay-panel/index.vue +3 -3
- package/src/layout/components/lay-search/index.vue +1 -1
- package/src/layout/components/lay-select-org/index.vue +4 -9
- package/src/layout/components/lay-sidebar/breadCrumb.vue +1 -1
- package/src/layout/components/lay-sidebar/horizontal.vue +4 -5
- package/src/layout/components/lay-sidebar/mixNav.vue +6 -4
- package/src/layout/components/lay-sidebar/sidebar-logo.vue +94 -98
- package/src/layout/components/lay-tag/index.vue +596 -625
- package/src/layout/hooks/useTag.ts +223 -233
- package/src/layout/layoutView.vue +215 -215
- package/src/layout/types.ts +3 -2
- package/src/main.ts +39 -31
- package/src/plugins/i18n/en.ts +26 -13
- package/src/plugins/i18n/zh.ts +35 -16
- package/src/plugins/vxe-table/index.ts +67 -4
- package/src/plugins/vxe-table/render.tsx +945 -817
- package/src/router/index.ts +186 -183
- package/src/router/modules/remaining.ts +1 -26
- package/src/router/utils.ts +393 -377
- package/src/store/modules/app.ts +1 -3
- package/src/store/modules/multiTags.ts +110 -109
- package/src/store/modules/permission.ts +113 -103
- package/src/store/modules/system.ts +1 -3
- package/src/style/button.scss +10 -3
- package/src/style/login.css +1 -1
- package/src/style/tailwind.css +1 -68
- package/src/style/vxetable.scss +348 -256
- package/src/utils/authority/index.ts +1 -1
- package/src/utils/index.ts +3 -1
- package/src/utils/propTypes.ts +1 -6
- package/src/views/login/login-view.vue +6 -20
- package/src/views/organization/company/CompanyPanel.vue +2 -2
- package/src/views/organization/department/DepartmentPanel.vue +269 -283
- package/src/views/organization/inv-org/InvOrganization.vue +23 -9
- package/src/views/organization/org/Org.vue +9 -5
- package/src/views/system/menu/SystemMenu.vue +183 -197
- package/src/views/system/menu/menuInfo.vue +8 -18
- package/src/views/system/role/AuthorityInfo.vue +19 -15
- package/src/views/system/role/Role.vue +1 -5
- package/src/views/system/role/RolePanel.vue +11 -2
- package/src/views/system/role/UserInfo.vue +11 -9
- package/src/views/system/role-assign/RoleAssign.vue +2 -2
- package/src/views/system/role-assign/RolePanel.vue +12 -9
- package/src/views/system/sys/sys-config.vue +66 -21
- package/src/views/system/sysUser/SysUserPanel.vue +44 -43
- package/src/views/uapp/pda/pda-app.vue +48 -16
- package/src/views/udev/coderule/code-rule.vue +120 -121
- package/src/views/udev/dict/DictView.vue +16 -4
- package/src/views/udev/dict/childView.vue +8 -8
- package/src/views/ufile/aggregation/File.vue +5 -5
- package/src/views/ufile/file/water-mark.vue +14 -14
- package/src/views/uhome/components/menu-favorite.vue +314 -331
- package/src/views/uhome/su-welcome.vue +3 -3
- package/src/views/ulogin/login.vue +19 -12
- package/src/views/upms/interface/log-in.vue +100 -106
- package/src/views/upms/interface/log-out.vue +2 -8
- package/src/views/upms/user/login-log.vue +54 -60
- package/src/views/urpt/design/DesignPanel.vue +16 -35
- package/src/views/urpt/design/Preview.vue +1 -0
- package/src/views/urpt/design/ReportDesign.vue +17 -23
- package/src/views/urpt/static-resource/resource.vue +3 -3
- package/src/views/urpt/template/ReportTemplate.vue +7 -7
- package/types/global.d.ts +4 -9
- package/vite.config.ts +6 -2
- package/dist/AuthorityInfo.vue_vue_type_style_index_0_lang-Duyweh89.js +0 -102
- package/dist/DictView-B4a7Hs1X.js +0 -95
- package/dist/InvOrganization-q4T3y8dQ.js +0 -260
- package/dist/Org-BTGTrAVz.js +0 -35
- package/dist/RolePanel.vue_vue_type_script_setup_true_lang-DKHgNWQP.js +0 -126
- package/dist/SysUserPanel.vue_vue_type_script_setup_true_lang-BsBKpYR7.js +0 -288
- package/dist/index-DZc3qRTx.js +0 -2650
- package/dist/login-BOxwzwdB.js +0 -252
- package/dist/sys-config-C0-gSBFO.js +0 -277
- package/dist/utogether-Di1byIum.js +0 -182
- package/src/components/udp/form-upload.vue +0 -183
- package/src/components/udp/modal-form.vue +0 -180
- package/src/utils/http/index.ts +0 -297
- package/src/utils/http/types.d.ts +0 -46
- package/src/utils/udp/useRender.ts +0 -420
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { defineComponent as E, ref as r, createVNode as p, Fragment as S, resolveComponent as
|
|
2
|
-
import { useI18n as
|
|
1
|
+
import { defineComponent as E, ref as r, createVNode as p, Fragment as S, resolveComponent as s, createElementBlock as O, openBlock as f, createBlock as v, createCommentVNode as h } from "vue";
|
|
2
|
+
import { useI18n as q } from "vue-i18n";
|
|
3
3
|
import { clone as U } from "xe-utils";
|
|
4
4
|
import { useRender as V, successMessage as B, warnMessage as M } from "@utogether/utils";
|
|
5
|
-
import {
|
|
5
|
+
import { i as C, w as D } from "./index-DxWAYxai.js";
|
|
6
6
|
const I = "/upms/v1/printTemplateConfig", L = /* @__PURE__ */ E({
|
|
7
7
|
__name: "ReportTemplate",
|
|
8
8
|
setup(W) {
|
|
9
9
|
const {
|
|
10
10
|
t: b
|
|
11
|
-
} =
|
|
11
|
+
} = q(), o = V(), i = r(null), l = r(!1), d = r(!1), g = r({}), u = r([]), a = r({}), R = [{
|
|
12
12
|
field: "templateCode",
|
|
13
|
-
title: "message.
|
|
13
|
+
title: "message.urpt.templateCode"
|
|
14
14
|
}, {
|
|
15
15
|
field: "templateName",
|
|
16
|
-
title: "message.
|
|
16
|
+
title: "message.urpt.templateName"
|
|
17
17
|
}, {
|
|
18
18
|
field: "printPosition",
|
|
19
|
-
title: "message.
|
|
19
|
+
title: "message.urpt.printPosition",
|
|
20
20
|
code: "SU.PRINT.VIEW"
|
|
21
21
|
}], k = [{
|
|
22
22
|
type: "checkbox",
|
|
@@ -24,7 +24,7 @@ const I = "/upms/v1/printTemplateConfig", L = /* @__PURE__ */ E({
|
|
|
24
24
|
align: "center"
|
|
25
25
|
}, {
|
|
26
26
|
field: "templateCode",
|
|
27
|
-
title: "message.
|
|
27
|
+
title: "message.urpt.templateCode",
|
|
28
28
|
required: !0,
|
|
29
29
|
width: 120,
|
|
30
30
|
editRender: o.renderLov({
|
|
@@ -36,18 +36,18 @@ const I = "/upms/v1/printTemplateConfig", L = /* @__PURE__ */ E({
|
|
|
36
36
|
})
|
|
37
37
|
}, {
|
|
38
38
|
field: "templateName",
|
|
39
|
-
title: "message.
|
|
39
|
+
title: "message.urpt.templateName",
|
|
40
40
|
width: 180
|
|
41
41
|
}, {
|
|
42
42
|
field: "printPosition",
|
|
43
|
-
title: "message.
|
|
43
|
+
title: "message.urpt.printPosition",
|
|
44
44
|
required: !0,
|
|
45
45
|
width: 120,
|
|
46
46
|
formatter: ["formatDict", "SU.PRINT.VIEW"],
|
|
47
47
|
editRender: o.renderDict("SU.PRINT.VIEW")
|
|
48
48
|
}, {
|
|
49
49
|
field: "buttonCode",
|
|
50
|
-
title: "message.
|
|
50
|
+
title: "message.urpt.buttonCode",
|
|
51
51
|
width: 120,
|
|
52
52
|
required: !0,
|
|
53
53
|
editRender: o.renderInput()
|
|
@@ -65,14 +65,14 @@ const I = "/upms/v1/printTemplateConfig", L = /* @__PURE__ */ E({
|
|
|
65
65
|
slots: {
|
|
66
66
|
default: ({
|
|
67
67
|
row: t
|
|
68
|
-
}) => [p(S, null, [p(
|
|
68
|
+
}) => [p(S, null, [p(s("ut-button"), {
|
|
69
69
|
content: "inv",
|
|
70
70
|
icon: "ri-edit-line",
|
|
71
71
|
onTap: () => y(t)
|
|
72
72
|
}, null)])]
|
|
73
73
|
}
|
|
74
74
|
}], N = () => {
|
|
75
|
-
if (!
|
|
75
|
+
if (!i.value.getInstance().getCheckboxRecords().length)
|
|
76
76
|
return M(b("message.selectedRecord"));
|
|
77
77
|
u.value = [], u.value.push({
|
|
78
78
|
field: "orgName",
|
|
@@ -84,17 +84,17 @@ const I = "/upms/v1/printTemplateConfig", L = /* @__PURE__ */ E({
|
|
|
84
84
|
label: e.orgName
|
|
85
85
|
}))
|
|
86
86
|
}
|
|
87
|
-
}),
|
|
87
|
+
}), a.value = {}, l.value = !0;
|
|
88
88
|
}, _ = () => {
|
|
89
|
-
if (
|
|
90
|
-
const t =
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
const
|
|
94
|
-
|
|
89
|
+
if (a.value.orgName) {
|
|
90
|
+
const t = i.value.getInstance().getCheckboxRecords(), e = [];
|
|
91
|
+
t.forEach((m) => {
|
|
92
|
+
a.value.orgName.forEach((c) => {
|
|
93
|
+
const n = U(m, !0);
|
|
94
|
+
n.orgId = c, n.id = null, e.push(n);
|
|
95
95
|
});
|
|
96
96
|
}), D().post(I, e).then(() => {
|
|
97
|
-
|
|
97
|
+
l.value = !1, B();
|
|
98
98
|
});
|
|
99
99
|
}
|
|
100
100
|
}, x = {
|
|
@@ -123,27 +123,27 @@ const I = "/upms/v1/printTemplateConfig", L = /* @__PURE__ */ E({
|
|
|
123
123
|
auth: "copy"
|
|
124
124
|
}];
|
|
125
125
|
return (t, e) => {
|
|
126
|
-
const m =
|
|
127
|
-
return f(),
|
|
126
|
+
const m = s("ut-grid"), c = s("ut-modal-form"), n = s("ut-modal-grid");
|
|
127
|
+
return f(), O("div", null, [p(m, {
|
|
128
128
|
ref_key: "xgrid",
|
|
129
|
-
ref:
|
|
129
|
+
ref: i,
|
|
130
130
|
items: R,
|
|
131
131
|
buttons: P,
|
|
132
132
|
columns: k,
|
|
133
133
|
events: x,
|
|
134
134
|
url: I
|
|
135
|
-
}, null, 512),
|
|
135
|
+
}, null, 512), l.value ? (f(), v(c, {
|
|
136
136
|
key: 0,
|
|
137
137
|
ref: "xmodal",
|
|
138
|
-
record:
|
|
138
|
+
record: a.value,
|
|
139
139
|
items: u.value,
|
|
140
140
|
width: "400",
|
|
141
141
|
height: "170",
|
|
142
142
|
"data-status": "update",
|
|
143
143
|
title: "单据复制",
|
|
144
144
|
onConfirm: _,
|
|
145
|
-
onClose: e[0] || (e[0] = (T) =>
|
|
146
|
-
}, null, 8, ["record", "items"])) : h("", !0), d.value ? (f(), v(
|
|
145
|
+
onClose: e[0] || (e[0] = (T) => l.value = !1)
|
|
146
|
+
}, null, 8, ["record", "items"])) : h("", !0), d.value ? (f(), v(n, {
|
|
147
147
|
key: 1,
|
|
148
148
|
ref: "xmgrid",
|
|
149
149
|
"default-value": g.value,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as r, ref as e, provide as t, createElementBlock as i, openBlock as _, createElementVNode as o, createVNode as n } from "vue";
|
|
2
|
-
import { _ as m } from "./ScrollPanel.vue_vue_type_style_index_0_lang-
|
|
3
|
-
import { _ as
|
|
4
|
-
import { _ as
|
|
2
|
+
import { _ as m } from "./ScrollPanel.vue_vue_type_style_index_0_lang-D65sJYWT.js";
|
|
3
|
+
import { _ as d } from "./RolePanel.vue_vue_type_script_setup_true_lang-BVEHqEq9.js";
|
|
4
|
+
import { _ as p } from "./index-DxWAYxai.js";
|
|
5
5
|
const f = { class: "u-content-panel" }, u = { class: "u-left-panel" }, h = { class: "content" }, v = /* @__PURE__ */ r({
|
|
6
6
|
__name: "Role",
|
|
7
7
|
setup(C) {
|
|
@@ -15,11 +15,11 @@ const f = { class: "u-content-panel" }, u = { class: "u-left-panel" }, h = { cla
|
|
|
15
15
|
}, null, 8, ["title"])
|
|
16
16
|
]),
|
|
17
17
|
o("div", h, [
|
|
18
|
-
n(
|
|
18
|
+
n(d)
|
|
19
19
|
])
|
|
20
20
|
]));
|
|
21
21
|
}
|
|
22
|
-
}),
|
|
22
|
+
}), x = /* @__PURE__ */ p(v, [["__scopeId", "data-v-e31bcedc"]]);
|
|
23
23
|
export {
|
|
24
|
-
|
|
24
|
+
x as default
|
|
25
25
|
};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { defineComponent as l, ref as e, provide as t, createElementBlock as i, openBlock as _, createElementVNode as o, createVNode as s } from "vue";
|
|
2
|
-
import { _ as m } from "./ScrollPanel.vue_vue_type_style_index_0_lang-
|
|
3
|
-
import { _ as p } from "./RolePanel.vue_vue_type_script_setup_true_lang-
|
|
4
|
-
import { _ as d } from "./index-
|
|
2
|
+
import { _ as m } from "./ScrollPanel.vue_vue_type_style_index_0_lang-D65sJYWT.js";
|
|
3
|
+
import { _ as p } from "./RolePanel.vue_vue_type_script_setup_true_lang-C0rTy6vZ.js";
|
|
4
|
+
import { _ as d } from "./index-DxWAYxai.js";
|
|
5
5
|
const f = { class: "u-content-panel" }, u = { class: "u-left-panel" }, g = { class: "content" }, h = /* @__PURE__ */ l({
|
|
6
6
|
__name: "RoleAssign",
|
|
7
7
|
setup(v) {
|
|
8
|
-
const n = e({}),
|
|
9
|
-
return t("active", n), t("scrollPanelChange",
|
|
8
|
+
const n = e({}), a = e(!1), r = e([]);
|
|
9
|
+
return t("active", n), t("scrollPanelChange", a), t("treeList", r), (c, C) => (_(), i("div", f, [
|
|
10
10
|
o("div", u, [
|
|
11
11
|
s(m, {
|
|
12
|
-
title:
|
|
12
|
+
title: c.$t("SuOrg"),
|
|
13
13
|
"tree-otions": { children: "children", label: "orgName" },
|
|
14
|
-
|
|
14
|
+
"default-params": { pageSize: 500 },
|
|
15
15
|
url: "/uums/org"
|
|
16
16
|
}, null, 8, ["title"])
|
|
17
17
|
]),
|
|
@@ -20,7 +20,7 @@ const f = { class: "u-content-panel" }, u = { class: "u-left-panel" }, g = { cla
|
|
|
20
20
|
])
|
|
21
21
|
]));
|
|
22
22
|
}
|
|
23
|
-
}),
|
|
23
|
+
}), A = /* @__PURE__ */ d(h, [["__scopeId", "data-v-ee175fa5"]]);
|
|
24
24
|
export {
|
|
25
|
-
|
|
25
|
+
A as default
|
|
26
26
|
};
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useRender as
|
|
3
|
-
import { _ as
|
|
4
|
-
import { _ as
|
|
5
|
-
import {
|
|
6
|
-
const
|
|
1
|
+
import { defineComponent as S, reactive as I, inject as M, ref as l, watch as B, createVNode as s, Fragment as E, resolveComponent as r, createElementBlock as $, openBlock as d, createBlock as i, createCommentVNode as c } from "vue";
|
|
2
|
+
import { useRender as O } from "@utogether/utils";
|
|
3
|
+
import { _ as P } from "./AuthorityInfo.vue_vue_type_style_index_0_lang-BM52QDgn.js";
|
|
4
|
+
import { _ as R } from "./UserInfo.vue_vue_type_style_index_0_lang-C44E20b4.js";
|
|
5
|
+
import { w as T, i as q } from "./index-DxWAYxai.js";
|
|
6
|
+
const H = {
|
|
7
7
|
class: "page-content"
|
|
8
|
-
},
|
|
8
|
+
}, K = /* @__PURE__ */ S({
|
|
9
9
|
__name: "RolePanel",
|
|
10
|
-
setup(
|
|
11
|
-
const e =
|
|
10
|
+
setup(j) {
|
|
11
|
+
const e = I({
|
|
12
12
|
record: {},
|
|
13
13
|
showAuthView: !1,
|
|
14
14
|
showModalView: !1,
|
|
15
15
|
showUserView: !1,
|
|
16
16
|
dataStatus: ""
|
|
17
|
-
}), o =
|
|
17
|
+
}), o = M("active"), f = O(), a = l(null), n = l(""), p = l({}), u = l("");
|
|
18
18
|
B(() => o.value, () => {
|
|
19
|
-
|
|
19
|
+
C();
|
|
20
20
|
});
|
|
21
|
-
const
|
|
21
|
+
const w = [{
|
|
22
22
|
field: "roleName",
|
|
23
23
|
title: "message.udp.roleName"
|
|
24
24
|
}, {
|
|
@@ -52,7 +52,7 @@ const T = {
|
|
|
52
52
|
}, {
|
|
53
53
|
field: "enabled",
|
|
54
54
|
width: 90,
|
|
55
|
-
cellRender: f.renderEnabled(
|
|
55
|
+
cellRender: f.renderEnabled(A)
|
|
56
56
|
}, {
|
|
57
57
|
field: "operate",
|
|
58
58
|
width: 260,
|
|
@@ -60,74 +60,80 @@ const T = {
|
|
|
60
60
|
slots: {
|
|
61
61
|
default: ({
|
|
62
62
|
row: t
|
|
63
|
-
}) => [s(
|
|
63
|
+
}) => [s(E, null, [s(r("ut-button"), {
|
|
64
64
|
content: "edit",
|
|
65
65
|
auth: "edit",
|
|
66
|
+
disabled: t.roleCode === "admin",
|
|
66
67
|
onTap: () => k(t)
|
|
67
68
|
}, null), s(r("ut-button"), {
|
|
68
69
|
content: "dispatchUser",
|
|
69
70
|
status: "warning",
|
|
70
71
|
icon: "ri-user-3-line",
|
|
71
72
|
auth: "user",
|
|
72
|
-
onTap: () =>
|
|
73
|
+
onTap: () => y(t)
|
|
73
74
|
}, null), s(r("ut-button"), {
|
|
74
75
|
content: "dispatchAuth",
|
|
75
76
|
status: "success",
|
|
76
77
|
icon: "ri-plane-line",
|
|
77
78
|
auth: "auth",
|
|
78
|
-
onTap: () =>
|
|
79
|
+
onTap: () => D(t)
|
|
79
80
|
}, null)])]
|
|
80
81
|
}
|
|
81
|
-
}],
|
|
82
|
+
}], C = () => {
|
|
82
83
|
var t;
|
|
83
|
-
|
|
84
|
+
p.value = {
|
|
84
85
|
unitId: (t = o == null ? void 0 : o.value) == null ? void 0 : t.id
|
|
85
86
|
}, a.value.refreshData();
|
|
86
|
-
},
|
|
87
|
-
t === "add" &&
|
|
88
|
-
},
|
|
87
|
+
}, V = (t) => {
|
|
88
|
+
t === "add" && v(), t === "del" && b();
|
|
89
|
+
}, v = () => {
|
|
89
90
|
var t;
|
|
90
|
-
e.dataStatus = "add", n.value = "post", u.value = "/uums/role", e.record = {}, e.record.unitId = (t = o == null ? void 0 : o.value) == null ? void 0 : t.id, e.record.enabled = "1", e.record.orgId =
|
|
91
|
+
e.dataStatus = "add", n.value = "post", u.value = "/uums/role", e.record = {}, e.record.unitId = (t = o == null ? void 0 : o.value) == null ? void 0 : t.id, e.record.enabled = "1", e.record.orgId = q().getOrgId, e.showModalView = !0;
|
|
91
92
|
}, k = (t) => {
|
|
92
93
|
n.value = "put", u.value = "/uums/role/singleUpdate", e.dataStatus = "update", e.record = t, e.showModalView = !0;
|
|
93
|
-
},
|
|
94
|
+
}, b = () => {
|
|
94
95
|
a.value.getInstance().commitProxy("delete");
|
|
95
|
-
},
|
|
96
|
+
}, D = (t) => {
|
|
96
97
|
e.record = t, e.showAuthView = !0;
|
|
97
|
-
},
|
|
98
|
+
}, y = (t) => {
|
|
98
99
|
e.record = t, e.showUserView = !0;
|
|
99
100
|
};
|
|
100
|
-
async function
|
|
101
|
+
async function A({
|
|
101
102
|
row: t
|
|
102
103
|
}) {
|
|
103
|
-
|
|
104
|
+
if (t.roleCode === "admin") {
|
|
105
|
+
t.enabled = "1";
|
|
106
|
+
return;
|
|
107
|
+
}
|
|
108
|
+
await T().put("/uums/role/singleUpdate", t), a.value.refreshData();
|
|
104
109
|
}
|
|
105
110
|
const m = () => {
|
|
106
111
|
e.showDrawView = !1, e.showAuthView = !1, e.showUserView = !1;
|
|
107
|
-
};
|
|
112
|
+
}, U = (t) => t.roleCode !== "admin";
|
|
108
113
|
return (t, h) => {
|
|
109
|
-
const
|
|
110
|
-
return d(),
|
|
114
|
+
const x = r("ut-grid"), N = r("ut-modal-form");
|
|
115
|
+
return d(), $("div", H, [s(x, {
|
|
111
116
|
ref_key: "xgrid",
|
|
112
117
|
ref: a,
|
|
113
|
-
items:
|
|
118
|
+
items: w,
|
|
114
119
|
columns: _,
|
|
120
|
+
"check-method": U,
|
|
115
121
|
url: "/uums/role",
|
|
116
122
|
mode: "form",
|
|
117
|
-
onButtonClick:
|
|
118
|
-
}, null, 512), e.showAuthView ? (d(), i(
|
|
123
|
+
onButtonClick: V
|
|
124
|
+
}, null, 512), e.showAuthView ? (d(), i(P, {
|
|
119
125
|
key: 0,
|
|
120
126
|
show: e.showAuthView,
|
|
121
127
|
record: e.record,
|
|
122
128
|
"data-status": e.dataStatus,
|
|
123
129
|
onOnClose: m
|
|
124
|
-
}, null, 8, ["show", "record", "data-status"])) : c("", !0), e.showUserView ? (d(), i(
|
|
130
|
+
}, null, 8, ["show", "record", "data-status"])) : c("", !0), e.showUserView ? (d(), i(R, {
|
|
125
131
|
key: 1,
|
|
126
132
|
show: e.showUserView,
|
|
127
133
|
record: e.record,
|
|
128
134
|
"data-status": e.dataStatus,
|
|
129
135
|
onOnClose: m
|
|
130
|
-
}, null, 8, ["show", "record", "data-status"])) : c("", !0), e.showModalView ? (d(), i(
|
|
136
|
+
}, null, 8, ["show", "record", "data-status"])) : c("", !0), e.showModalView ? (d(), i(N, {
|
|
131
137
|
key: 2,
|
|
132
138
|
ref: "xmodal",
|
|
133
139
|
record: e.record,
|
|
@@ -135,14 +141,14 @@ const T = {
|
|
|
135
141
|
url: u.value,
|
|
136
142
|
method: n.value,
|
|
137
143
|
width: "400",
|
|
138
|
-
height: "
|
|
144
|
+
height: "240",
|
|
139
145
|
"data-status": "update",
|
|
140
146
|
title: t.$t("message.title.authEdit"),
|
|
141
|
-
onClose: h[0] || (h[0] = (
|
|
147
|
+
onClose: h[0] || (h[0] = (F) => e.showModalView = !1)
|
|
142
148
|
}, null, 8, ["record", "url", "method", "title"])) : c("", !0)]);
|
|
143
149
|
};
|
|
144
150
|
}
|
|
145
151
|
});
|
|
146
152
|
export {
|
|
147
|
-
|
|
153
|
+
K as _
|
|
148
154
|
};
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import { defineComponent as b, reactive as E, ref as g, inject as M, watch as N, nextTick as B, createVNode as h, resolveComponent as i, resolveDirective as L, withDirectives as P, createElementBlock as A, openBlock as w, createBlock as R, createCommentVNode as S, unref as T } from "vue";
|
|
2
|
+
import { useI18n as U } from "vue-i18n";
|
|
3
|
+
import { clone as $ } from "xe-utils";
|
|
4
|
+
import { VxeUI as j } from "vxe-pc-ui";
|
|
5
|
+
import { t as v } from "./await-to-js.es5-BtRbN2QH.js";
|
|
6
|
+
import { successMessage as _ } from "@utogether/utils";
|
|
7
|
+
import { w as C } from "./index-DxWAYxai.js";
|
|
8
|
+
const q = {
|
|
9
|
+
class: "page-content"
|
|
10
|
+
}, d = "/uums/orgRole", X = /* @__PURE__ */ b({
|
|
11
|
+
__name: "RolePanel",
|
|
12
|
+
setup(z) {
|
|
13
|
+
const e = E({
|
|
14
|
+
record: {},
|
|
15
|
+
loading: !1,
|
|
16
|
+
showModalView: !1
|
|
17
|
+
}), {
|
|
18
|
+
t: c
|
|
19
|
+
} = U(), n = g(null), u = g(null), t = M("active");
|
|
20
|
+
N(() => t.value, () => {
|
|
21
|
+
t != null && t.value.id && (e.fetchExtParam = {
|
|
22
|
+
orgId: t == null ? void 0 : t.value.id
|
|
23
|
+
}, B(() => {
|
|
24
|
+
n.value.refreshData();
|
|
25
|
+
}));
|
|
26
|
+
});
|
|
27
|
+
const k = [{
|
|
28
|
+
code: "del",
|
|
29
|
+
auth: "/"
|
|
30
|
+
}], m = [{
|
|
31
|
+
field: "roleName",
|
|
32
|
+
title: "message.udp.roleName",
|
|
33
|
+
span: 9
|
|
34
|
+
}, {
|
|
35
|
+
field: "roleCode",
|
|
36
|
+
title: "message.udp.roleCode",
|
|
37
|
+
span: 9
|
|
38
|
+
}], f = [{
|
|
39
|
+
type: "checkbox",
|
|
40
|
+
width: 40
|
|
41
|
+
}, {
|
|
42
|
+
field: "roleCode",
|
|
43
|
+
title: "message.udp.roleCode"
|
|
44
|
+
}, {
|
|
45
|
+
field: "roleName",
|
|
46
|
+
title: "message.udp.roleName"
|
|
47
|
+
}, {
|
|
48
|
+
field: "roleDesc",
|
|
49
|
+
title: "message.udp.roleDesc"
|
|
50
|
+
}, {
|
|
51
|
+
field: "enabled",
|
|
52
|
+
width: 100,
|
|
53
|
+
formatter: ["formatDict", "SU.ENABLE"]
|
|
54
|
+
}], p = $(f, !0);
|
|
55
|
+
p.push({
|
|
56
|
+
field: "operate",
|
|
57
|
+
width: 80,
|
|
58
|
+
fixed: "right",
|
|
59
|
+
slots: {
|
|
60
|
+
default: ({
|
|
61
|
+
row: o
|
|
62
|
+
}) => o.roleCode === "admin" ? null : [h(i("ut-button"), {
|
|
63
|
+
icon: "ri-delete-bin-5-fill",
|
|
64
|
+
content: "del",
|
|
65
|
+
status: "danger",
|
|
66
|
+
auth: "del",
|
|
67
|
+
onTap: () => D(o)
|
|
68
|
+
}, null)]
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
const x = () => {
|
|
72
|
+
e.record = {}, e.record.orgId = t.value.id, e.showModalView = !0;
|
|
73
|
+
}, D = async (o) => {
|
|
74
|
+
if (await j.modal.confirm(c("message.tip.del")) === "confirm") {
|
|
75
|
+
const a = {
|
|
76
|
+
orgId: t.value.id,
|
|
77
|
+
roleId: o.id
|
|
78
|
+
};
|
|
79
|
+
e.loading = !0;
|
|
80
|
+
const [s] = await v(C().delete(d, a));
|
|
81
|
+
s || _(c("message.operateSuccess")), n.value.refreshData(), e.loading = !1;
|
|
82
|
+
}
|
|
83
|
+
}, I = async (o) => {
|
|
84
|
+
const r = [];
|
|
85
|
+
o.forEach((l) => {
|
|
86
|
+
l.orgId = t.value.id, l.roleId = l.id, r.push(l);
|
|
87
|
+
});
|
|
88
|
+
const a = {
|
|
89
|
+
orgRoleList: r
|
|
90
|
+
};
|
|
91
|
+
u.value.showLoading();
|
|
92
|
+
const [s] = await v(C().post(d, a));
|
|
93
|
+
s || (_(), n.value.refreshData(), e.showModalView = !1);
|
|
94
|
+
}, y = (o) => o.roleCode !== "admin", V = (o) => {
|
|
95
|
+
o === "add" && x();
|
|
96
|
+
};
|
|
97
|
+
return (o, r) => {
|
|
98
|
+
const a = i("ut-grid"), s = i("ut-modal-grid"), l = L("spinning");
|
|
99
|
+
return P((w(), A("div", q, [h(a, {
|
|
100
|
+
ref_key: "xgrid",
|
|
101
|
+
ref: n,
|
|
102
|
+
items: m,
|
|
103
|
+
columns: T(p),
|
|
104
|
+
"default-params": e.fetchExtParam,
|
|
105
|
+
"default-value": e.fetchExtParam,
|
|
106
|
+
buttons: k,
|
|
107
|
+
"auto-load": !1,
|
|
108
|
+
url: d,
|
|
109
|
+
"check-method": y,
|
|
110
|
+
mode: "form",
|
|
111
|
+
onButtonClick: V
|
|
112
|
+
}, null, 8, ["columns", "default-params", "default-value"]), e.showModalView ? (w(), R(s, {
|
|
113
|
+
key: 0,
|
|
114
|
+
ref_key: "xmodal",
|
|
115
|
+
ref: u,
|
|
116
|
+
items: m,
|
|
117
|
+
columns: f,
|
|
118
|
+
"show-footer": !0,
|
|
119
|
+
editable: !1,
|
|
120
|
+
title: o.$t("message.udp.roleList"),
|
|
121
|
+
url: "/uums/role",
|
|
122
|
+
width: "60%",
|
|
123
|
+
height: "75%",
|
|
124
|
+
onClose: r[0] || (r[0] = (F) => e.showModalView = !1),
|
|
125
|
+
onConfirm: I
|
|
126
|
+
}, null, 8, ["title"])) : S("", !0)])), [[l, e.loading]]);
|
|
127
|
+
};
|
|
128
|
+
}
|
|
129
|
+
});
|
|
130
|
+
export {
|
|
131
|
+
X as _
|
|
132
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as N, ref as k, inject as p, watch as A, nextTick as L, resolveComponent as
|
|
2
|
-
import {
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as N, ref as k, inject as p, watch as A, nextTick as L, resolveComponent as f, createElementBlock as D, openBlock as v, withModifiers as O, createElementVNode as a, createBlock as C, createCommentVNode as g, createVNode as y, toDisplayString as _, withCtx as S, normalizeClass as V } from "vue";
|
|
2
|
+
import { w as j } from "./index-DxWAYxai.js";
|
|
3
|
+
const M = { class: "u-panel-header" }, $ = { class: "u-panel-content system-scrollbar" }, K = /* @__PURE__ */ N({
|
|
4
4
|
__name: "ScrollPanel",
|
|
5
5
|
props: {
|
|
6
6
|
title: {},
|
|
@@ -10,10 +10,10 @@ const q = { class: "u-panel-header" }, M = { class: "u-panel-content system-scro
|
|
|
10
10
|
children: "children",
|
|
11
11
|
label: "label"
|
|
12
12
|
}) },
|
|
13
|
-
|
|
13
|
+
defaultParams: { default: () => ({}) }
|
|
14
14
|
},
|
|
15
|
-
setup(b, { expose:
|
|
16
|
-
const h = b, s = k([]),
|
|
15
|
+
setup(b, { expose: w }) {
|
|
16
|
+
const h = b, s = k([]), o = k(null), r = p("active"), c = p("scrollPanelChange"), B = p("treeList");
|
|
17
17
|
A(
|
|
18
18
|
() => c.value,
|
|
19
19
|
() => {
|
|
@@ -21,53 +21,53 @@ const q = { class: "u-panel-header" }, M = { class: "u-panel-content system-scro
|
|
|
21
21
|
}
|
|
22
22
|
);
|
|
23
23
|
const u = async (l = {}) => {
|
|
24
|
-
const t = Object.assign(l, h.
|
|
24
|
+
const t = Object.assign(l, h.defaultParams), e = await j().get(h.url, t);
|
|
25
25
|
s.value = e.list || e, B.value = e.list || e, r.value = e.list ? e.list[0] : e[0], L(() => {
|
|
26
|
-
var
|
|
27
|
-
|
|
26
|
+
var n;
|
|
27
|
+
o.value && (o == null || o.value.setCurrentKey(((n = r.value) == null ? void 0 : n.id) || ""));
|
|
28
28
|
}), c.value = !1;
|
|
29
|
-
},
|
|
29
|
+
}, x = (l) => {
|
|
30
30
|
r.value = l;
|
|
31
31
|
}, P = () => {
|
|
32
32
|
r.value = {};
|
|
33
33
|
}, d = (l, t) => {
|
|
34
34
|
l.forEach((e) => {
|
|
35
|
-
var
|
|
36
|
-
|
|
37
|
-
})
|
|
35
|
+
var n;
|
|
36
|
+
o.value.store.nodesMap[e.id].expanded = t, (n = e.children) != null && n.length && d(e.children, t);
|
|
37
|
+
});
|
|
38
38
|
}, m = () => {
|
|
39
39
|
u();
|
|
40
40
|
};
|
|
41
|
-
return
|
|
41
|
+
return w({
|
|
42
42
|
onRefresh: m
|
|
43
43
|
}), u(), (l, t) => {
|
|
44
|
-
const e =
|
|
45
|
-
return
|
|
44
|
+
const e = f("ut-button"), n = f("vxe-button"), E = f("el-tree");
|
|
45
|
+
return v(), D("div", {
|
|
46
46
|
class: "u-scroll-panel",
|
|
47
47
|
onClick: O(P, ["prevent"])
|
|
48
48
|
}, [
|
|
49
|
-
a("div",
|
|
49
|
+
a("div", M, [
|
|
50
50
|
a("h2", null, _(l.title), 1),
|
|
51
|
-
l.showAllButton ? (
|
|
51
|
+
l.showAllButton ? (v(), C(e, {
|
|
52
52
|
key: 0,
|
|
53
53
|
content: "BtnExpand",
|
|
54
54
|
onClick: t[0] || (t[0] = (i) => d(s.value, !0))
|
|
55
55
|
})) : g("", !0),
|
|
56
|
-
l.showAllButton ? (
|
|
56
|
+
l.showAllButton ? (v(), C(e, {
|
|
57
57
|
key: 1,
|
|
58
58
|
status: "warning",
|
|
59
59
|
content: "BtnCollapse",
|
|
60
60
|
onClick: t[1] || (t[1] = (i) => d(s.value, !1))
|
|
61
61
|
})) : g("", !0),
|
|
62
|
-
y(
|
|
62
|
+
y(n, {
|
|
63
63
|
icon: "vxe-icon-refresh",
|
|
64
64
|
onClick: m
|
|
65
65
|
})
|
|
66
66
|
]),
|
|
67
|
-
a("div",
|
|
67
|
+
a("div", $, [
|
|
68
68
|
y(E, {
|
|
69
69
|
ref_key: "tree",
|
|
70
|
-
ref:
|
|
70
|
+
ref: o,
|
|
71
71
|
data: s.value,
|
|
72
72
|
props: l.treeOtions,
|
|
73
73
|
"expand-on-click-node": !1,
|
|
@@ -75,7 +75,7 @@ const q = { class: "u-panel-header" }, M = { class: "u-panel-content system-scro
|
|
|
75
75
|
class: "u-tree-panel",
|
|
76
76
|
"node-key": "id",
|
|
77
77
|
"highlight-current": "",
|
|
78
|
-
onNodeClick:
|
|
78
|
+
onNodeClick: x
|
|
79
79
|
}, {
|
|
80
80
|
default: S(({ node: i }) => [
|
|
81
81
|
a("span", {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as l, ref as e, provide as t, createElementBlock as _, openBlock as i, createElementVNode as n, createVNode as a } from "vue";
|
|
2
|
-
import { _ as m } from "./ScrollPanel.vue_vue_type_style_index_0_lang-
|
|
3
|
-
import { _ as d } from "./StaffPanel.vue_vue_type_script_setup_true_lang-
|
|
4
|
-
import { _ as p } from "./index-
|
|
2
|
+
import { _ as m } from "./ScrollPanel.vue_vue_type_style_index_0_lang-D65sJYWT.js";
|
|
3
|
+
import { _ as d } from "./StaffPanel.vue_vue_type_script_setup_true_lang-BrrvE1xm.js";
|
|
4
|
+
import { _ as p } from "./index-DxWAYxai.js";
|
|
5
5
|
const f = { class: "u-content-panel" }, u = { class: "u-left-panel" }, h = { class: "content" }, v = { name: "StaffPanel" }, C = /* @__PURE__ */ l({
|
|
6
6
|
...v,
|
|
7
7
|
setup(N) {
|