@utogether/udp-core 1.0.1-beta.5 → 1.0.1-beta.7
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-CP2RkkAy.js → 403-BQZ5OAKL.js} +10 -10
- package/dist/{404-DwK-0wNQ.js → 404-H55ex36i.js} +4 -4
- package/dist/{500-CLbJDqnd.js → 500-bbrspTnK.js} +1 -1
- package/dist/{AuthorityInfo-Bi1_uhMu.js → AuthorityInfo-BWni4UPQ.js} +1 -1
- package/dist/AuthorityInfo.vue_vue_type_style_index_0_lang-7WtOL6Hs.js +100 -0
- package/dist/{Company-B--cokc6.js → Company-CuebFrQ0.js} +3 -3
- package/dist/{CompanyPanel-B_gmcZ9L.js → CompanyPanel-DxPdJs6x.js} +6 -6
- package/dist/{Department-DbKdyNzK.js → Department-D2a6Juur.js} +3 -3
- package/dist/{DepartmentPanel-BmEttboJ.js → DepartmentPanel-C_s2R9yl.js} +24 -23
- package/dist/{DesignPanel-LL68_36s.js → DesignPanel-CexZj3HF.js} +1 -1
- package/dist/{DesignPanel.vue_vue_type_style_index_0_lang-DWPmFegv.js → DesignPanel.vue_vue_type_style_index_0_lang-DfmysqwB.js} +25 -24
- package/dist/{DictView-B8j-EWx5.js → DictView-C0GS72rG.js} +19 -18
- package/dist/{InvOrganization-DnGQlESM.js → InvOrganization-a1tQ2CEH.js} +8 -7
- package/dist/Org-DifvzLLy.js +35 -0
- package/dist/{Preview-yot4NBW5.js → Preview-BOv5j9i6.js} +1 -1
- package/dist/{ReportDefine-DHadqNYy.js → ReportDefine-Dli1Q0TB.js} +1 -1
- package/dist/{ReportDesign-CBihGRth.js → ReportDesign-zSWkcL_O.js} +37 -36
- package/dist/{ReportQuery-CwHQ6LUU.js → ReportQuery-D5r3bvFc.js} +1 -1
- package/dist/{ReportQueryFrom-ie6lQcGL.js → ReportQueryFrom-DiostHrX.js} +1 -1
- package/dist/{ReportQueryFrom.vue_vue_type_style_index_0_lang-B8LJNK0m.js → ReportQueryFrom.vue_vue_type_style_index_0_lang-Cr2eKMmr.js} +1 -1
- package/dist/{ReportTemplate-B2Smwo-z.js → ReportTemplate-CYy4cZHQ.js} +24 -24
- package/dist/{Role-Cf7DB7uS.js → Role-BFQFxfQS.js} +6 -6
- package/dist/{RoleAssign-upUnqs_i.js → RoleAssign-BIdWSLTR.js} +8 -8
- package/dist/{RolePanel-EXL_FLvM.js → RolePanel-C7ybSknr.js} +1 -1
- package/dist/{RolePanel-BBGDGK8V.js → RolePanel-KC-UgmtF.js} +1 -1
- package/dist/RolePanel.vue_vue_type_script_setup_true_lang-C91CJO4e.js +132 -0
- package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-DF8qJKwW.js → RolePanel.vue_vue_type_script_setup_true_lang-C_ZsMf1f.js} +40 -34
- package/dist/{ScrollPanel.vue_vue_type_style_index_0_lang-DbBGg32H.js → ScrollPanel.vue_vue_type_style_index_0_lang-botBBgto.js} +17 -17
- package/dist/{Staff-DYu5ZEyR.js → Staff-CY0DLsTN.js} +3 -3
- package/dist/{StaffInfo-CHvNGjtz.js → StaffInfo-DA7p265h.js} +1 -1
- package/dist/{StaffInfo.vue_vue_type_script_setup_true_lang-XRJVEJ-s.js → StaffInfo.vue_vue_type_script_setup_true_lang-f29A44gS.js} +5 -5
- package/dist/{StaffPanel-C-ygEY65.js → StaffPanel-DYP-mMp9.js} +1 -1
- package/dist/{StaffPanel.vue_vue_type_script_setup_true_lang-BvLrF4Yw.js → StaffPanel.vue_vue_type_script_setup_true_lang-C0YAG2xV.js} +6 -6
- package/dist/{SysUser-BHk_szpK.js → SysUser-FqS3Ctne.js} +2 -2
- package/dist/{SysUserPanel-DFvzA5d-.js → SysUserPanel-C_t6F99T.js} +1 -1
- package/dist/{SysUserPanel.vue_vue_type_script_setup_true_lang-B9zUXXwa.js → SysUserPanel.vue_vue_type_script_setup_true_lang-CKZjy0OF.js} +93 -86
- package/dist/{SystemMenu-5TK9ZA11.js → SystemMenu-ChFrMzRg.js} +14 -13
- package/dist/{UserInfo-Bx3zQqHa.js → UserInfo-I36LAXVj.js} +1 -1
- package/dist/{UserInfo.vue_vue_type_style_index_0_lang-C2sqUQdg.js → UserInfo.vue_vue_type_style_index_0_lang-BGY-LYeL.js} +28 -25
- package/dist/await-to-js.es5-BtRbN2QH.js +10 -0
- package/dist/{childView-BSUWnii7.js → childView-CYpuOzRx.js} +1 -1
- package/dist/{childView-CFC3gA_U.js → childView-Csnlaqfs.js} +1 -1
- package/dist/{childView.vue_vue_type_style_index_0_lang-EcT-Dux7.js → childView.vue_vue_type_style_index_0_lang-B8EnA03l.js} +18 -17
- package/dist/{childView.vue_vue_type_style_index_0_lang-WQVLSJR8.js → childView.vue_vue_type_style_index_0_lang-DNVlDM_a.js} +10 -9
- package/dist/{code-rule-DybjhotB.js → code-rule-DHBSC5Qp.js} +14 -13
- package/dist/core.es.js +2 -2
- package/dist/{cron-task-DGdknqaF.js → cron-task-CiI1MFla.js} +8 -7
- package/dist/{frameView-BOOZRv1S.js → frameView-ZWKlbz9p.js} +1 -1
- package/dist/index-COBMRlmJ.js +5379 -0
- package/dist/{layoutView-BWeDLY9C.js → layoutView-5OsbpP0u.js} +11 -10
- package/dist/{login-BcuCHhGE.js → login-C55sa9gN.js} +26 -25
- package/dist/{lov-view-DDgzqYSW.js → lov-view-DFfaUQ5m.js} +9 -8
- package/dist/{menuInfo-B3MOxomU.js → menuInfo-CZdLtLjN.js} +1 -1
- package/dist/{menuInfo.vue_vue_type_style_index_0_lang-BXMrNMUs.js → menuInfo.vue_vue_type_style_index_0_lang-DgG0aHRy.js} +16 -15
- package/dist/{pda-app-Dy9WMHEG.js → pda-app-fLe8mrx-.js} +213 -196
- package/dist/{resource-BoCP7-dM.js → resource-ohWKO6Fh.js} +20 -20
- package/dist/{su-welcome-DXpI1MHr.js → su-welcome-_UZTfrXX.js} +84 -84
- package/dist/{sys-config-BiUWzxGU.js → sys-config-DVuBsK7p.js} +19 -18
- package/dist/udp-core.css +1 -1
- package/dist/{utogether-DXDcsKt7.js → utogether-CxobZqGL.js} +1 -1
- package/package.json +18 -18
- package/src/components/SuScrollTree/ScrollPanel.vue +3 -3
- package/src/components/udp/flip-down/FlipCard/flip-card.vue +251 -0
- package/src/components/udp/flip-down/FlipCard/interfaces.ts +4 -0
- package/src/components/udp/flip-down/FlipClock/flip-clock.vue +113 -0
- package/src/components/udp/grid.vue +12 -6
- package/src/components/udp/index.ts +2 -2
- package/src/components/udp/lov.vue +1 -1
- package/src/components/udp/modal-grid.vue +288 -297
- package/src/components/udp/utils.ts +4 -11
- package/src/layout/components/lay-search/index.vue +25 -25
- package/src/main.ts +18 -10
- package/src/plugins/i18n/zh.ts +348 -338
- package/src/plugins/vxe-table/index.ts +2 -2
- package/src/plugins/vxe-table/render.tsx +95 -18
- package/src/views/login/login-view.vue +1 -1
- 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 +5 -3
- package/src/views/system/role-assign/RoleAssign.vue +57 -57
- package/src/views/system/role-assign/RolePanel.vue +139 -136
- package/src/views/system/sysUser/SysUserPanel.vue +37 -37
- package/src/views/uapp/pda/pda-app.vue +41 -10
- package/src/views/udev/dict/DictView.vue +6 -1
- package/src/views/udev/dict/childView.vue +1 -6
- package/src/views/ufile/aggregation/File.vue +5 -5
- package/src/views/ufile/file/water-mark.vue +14 -14
- package/src/views/uhome/su-welcome.vue +2 -2
- package/src/views/ulogin/login.vue +8 -0
- package/src/views/urpt/design/DesignPanel.vue +10 -33
- package/src/views/urpt/design/ReportDesign.vue +12 -16
- package/src/views/urpt/static-resource/resource.vue +3 -3
- package/src/views/urpt/template/ReportTemplate.vue +7 -7
- package/dist/AuthorityInfo.vue_vue_type_style_index_0_lang-RUhvzu76.js +0 -101
- package/dist/Org-Dg9Xkd34.js +0 -34
- package/dist/RolePanel.vue_vue_type_script_setup_true_lang-BwfL_JVZ.js +0 -125
- package/dist/index-BDE4-ZvN.js +0 -5091
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as G, reactive as H, ref as h, inject as Q, createVNode as s, Fragment as U, resolveComponent as l, onMounted as Y, createElementBlock as $, openBlock as v, withCtx as i, createBlock as k, createCommentVNode as J, renderList as K, unref as O } from "vue";
|
|
2
2
|
import { useI18n as W } from "vue-i18n";
|
|
3
|
-
import {
|
|
4
|
-
import { useRender as
|
|
3
|
+
import { t as L } from "./await-to-js.es5-BtRbN2QH.js";
|
|
4
|
+
import { useRender as X, warnMessage as Z, delay as ee, errorMessage as te } from "@utogether/utils";
|
|
5
5
|
import { VxeUI as se } from "vxe-pc-ui";
|
|
6
6
|
import { isEmpty as ae } from "xe-utils";
|
|
7
|
-
|
|
7
|
+
import { q as le } from "./index-COBMRlmJ.js";
|
|
8
|
+
const re = {
|
|
8
9
|
class: "page"
|
|
9
|
-
}, u = "/uums/user",
|
|
10
|
+
}, u = "/uums/user", pe = /* @__PURE__ */ G({
|
|
10
11
|
__name: "SysUserPanel",
|
|
11
|
-
setup(
|
|
12
|
-
const
|
|
12
|
+
setup(oe) {
|
|
13
|
+
const t = H({
|
|
13
14
|
record: {},
|
|
14
15
|
listQuery: {},
|
|
15
16
|
dataList: [],
|
|
@@ -19,7 +20,7 @@ const le = {
|
|
|
19
20
|
showUserRole: !1,
|
|
20
21
|
showAuth: !1,
|
|
21
22
|
dataStatus: ""
|
|
22
|
-
}), d =
|
|
23
|
+
}), d = le(), {
|
|
23
24
|
t: r
|
|
24
25
|
} = W(), q = {
|
|
25
26
|
userName: [{
|
|
@@ -38,13 +39,13 @@ const le = {
|
|
|
38
39
|
required: !0,
|
|
39
40
|
message: `${r("message.required")}${r("message.userPwd")}`
|
|
40
41
|
}]
|
|
41
|
-
},
|
|
42
|
+
}, c = X(), w = h({}), C = Q("treeList"), m = h(!1), _ = h(null), I = [{
|
|
42
43
|
field: "name",
|
|
43
44
|
title: "message.userName"
|
|
44
45
|
}, {
|
|
45
46
|
field: "userName",
|
|
46
47
|
title: "message.userCode"
|
|
47
|
-
}],
|
|
48
|
+
}], y = [{
|
|
48
49
|
type: "checkbox",
|
|
49
50
|
width: 40,
|
|
50
51
|
align: "center"
|
|
@@ -52,27 +53,27 @@ const le = {
|
|
|
52
53
|
field: "userName",
|
|
53
54
|
title: "message.userCode",
|
|
54
55
|
required: !0,
|
|
55
|
-
editRender:
|
|
56
|
+
editRender: c.renderInput()
|
|
56
57
|
}, {
|
|
57
58
|
field: "name",
|
|
58
59
|
title: "message.userName",
|
|
59
60
|
required: !0,
|
|
60
|
-
editRender:
|
|
61
|
+
editRender: c.renderInput()
|
|
61
62
|
}, {
|
|
62
63
|
field: "type",
|
|
63
64
|
title: "message.sysType",
|
|
64
65
|
formatter: ["formatDict", "SU.ENABLE"],
|
|
65
|
-
editRender:
|
|
66
|
+
editRender: c.renderDict("SU.USER.TYPE")
|
|
66
67
|
}, {
|
|
67
68
|
field: "userPwd",
|
|
68
69
|
required: !0,
|
|
69
70
|
width: 150,
|
|
70
|
-
editRender:
|
|
71
|
+
editRender: c.renderInput(),
|
|
71
72
|
formatter: () => "*******"
|
|
72
73
|
}, {
|
|
73
74
|
field: "enabled",
|
|
74
75
|
width: 80,
|
|
75
|
-
cellRender:
|
|
76
|
+
cellRender: c.renderEnabled(P)
|
|
76
77
|
}, {
|
|
77
78
|
field: "operate",
|
|
78
79
|
width: 240,
|
|
@@ -80,70 +81,70 @@ const le = {
|
|
|
80
81
|
slots: {
|
|
81
82
|
default: ({
|
|
82
83
|
row: e
|
|
83
|
-
}) => [
|
|
84
|
+
}) => e.id ? [s(U, null, [s(l("ut-button"), {
|
|
84
85
|
icon: "ri-user-fill",
|
|
85
86
|
content: "role",
|
|
86
87
|
onTap: () => S(e)
|
|
87
|
-
}, null),
|
|
88
|
+
}, null), s(l("ut-button"), {
|
|
88
89
|
icon: "ri-lock-fill",
|
|
89
90
|
content: "auth",
|
|
90
91
|
status: "success",
|
|
91
92
|
onTap: () => E(e)
|
|
92
|
-
}, null),
|
|
93
|
+
}, null), s(l("ut-button"), {
|
|
93
94
|
icon: "ri-lock-fill",
|
|
94
95
|
content: "passwordReset",
|
|
95
96
|
status: "warning",
|
|
96
97
|
onTap: () => A(e)
|
|
97
|
-
}, null)])]
|
|
98
|
+
}, null)])] : null
|
|
98
99
|
}
|
|
99
100
|
}];
|
|
100
|
-
async function
|
|
101
|
+
async function P({
|
|
101
102
|
row: e
|
|
102
103
|
}) {
|
|
103
|
-
await
|
|
104
|
+
await L(d.put(u, [e])), _.value.refreshData();
|
|
104
105
|
}
|
|
105
106
|
const S = async (e) => {
|
|
106
|
-
var
|
|
107
|
+
var o;
|
|
108
|
+
t.roleList = [], t.showUserRole = !0, m.value = !0;
|
|
107
109
|
const a = await d.get(u + "/getUserRole", {
|
|
108
110
|
userName: e.userName
|
|
109
111
|
});
|
|
110
|
-
|
|
111
|
-
s.showUserRole = !0;
|
|
112
|
-
});
|
|
112
|
+
m.value = !1, t.roleList = (o = a[0]) == null ? void 0 : o.sysRoles;
|
|
113
113
|
}, A = async (e) => {
|
|
114
114
|
await d.put(u + "/resetPwd", e), await se.modal.alert(r("message.tip.initPassword"));
|
|
115
115
|
}, E = async (e) => {
|
|
116
|
-
var
|
|
117
|
-
|
|
116
|
+
var g;
|
|
117
|
+
t.roleList = [], t.showAuth = !0, m.value = !0, t.record = e;
|
|
118
|
+
const [a, o] = await L(d.get(u + "/getUserRole", {
|
|
118
119
|
userName: e.userName
|
|
119
120
|
}));
|
|
120
|
-
a || (ae(
|
|
121
|
-
},
|
|
121
|
+
m.value = !1, a || (ae(o) ? Z(r("message.tip.emptyAuth")) : t.roleList = (g = o[0]) == null ? void 0 : g.sysMenuExts);
|
|
122
|
+
}, M = {
|
|
122
123
|
editActived({
|
|
123
124
|
row: e
|
|
124
125
|
}) {
|
|
125
|
-
|
|
126
|
+
y[1].editRender.props.disabled = !!e.id, y[4].editRender.props.disabled = !!e.id;
|
|
126
127
|
}
|
|
127
|
-
},
|
|
128
|
-
|
|
128
|
+
}, V = h(null), D = () => {
|
|
129
|
+
V.value.validate(async (e) => {
|
|
129
130
|
if (!e) {
|
|
130
131
|
const {
|
|
131
132
|
record: a,
|
|
132
|
-
dataStatus:
|
|
133
|
-
} =
|
|
134
|
-
|
|
133
|
+
dataStatus: o
|
|
134
|
+
} = t;
|
|
135
|
+
o === "add" ? await d.post(u, a) : await d.put(u, a), R();
|
|
135
136
|
}
|
|
136
137
|
});
|
|
137
|
-
},
|
|
138
|
-
|
|
138
|
+
}, R = () => {
|
|
139
|
+
t.showModelView = !1;
|
|
139
140
|
}, T = () => {
|
|
140
141
|
d.get("/uums/unit", {
|
|
141
142
|
pageSize: 10
|
|
142
|
-
}).then((e) => {
|
|
143
|
-
|
|
143
|
+
}).then(async (e) => {
|
|
144
|
+
w.value = {
|
|
144
145
|
unitId: e[0].id,
|
|
145
146
|
enabled: "1"
|
|
146
|
-
};
|
|
147
|
+
}, await ee(100), _.value.refreshData();
|
|
147
148
|
}).catch(() => {
|
|
148
149
|
te("获取租户失败,刷新后重试");
|
|
149
150
|
});
|
|
@@ -151,40 +152,42 @@ const le = {
|
|
|
151
152
|
return Y(() => {
|
|
152
153
|
T();
|
|
153
154
|
}), (e, a) => {
|
|
154
|
-
const
|
|
155
|
-
return
|
|
155
|
+
const o = l("ut-grid"), g = l("vxe-option"), B = l("vxe-select"), f = l("vxe-form-item"), x = l("ut-button"), F = l("vxe-form"), N = l("vxe-modal"), b = l("vxe-column"), j = l("vxe-table"), z = l("el-tree-v2");
|
|
156
|
+
return v(), $("div", re, [s(o, {
|
|
156
157
|
ref_key: "xgrid",
|
|
157
|
-
ref:
|
|
158
|
-
columns:
|
|
158
|
+
ref: _,
|
|
159
|
+
columns: y,
|
|
159
160
|
items: I,
|
|
160
161
|
url: u,
|
|
161
|
-
"
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
162
|
+
"auto-load": !1,
|
|
163
|
+
"default-params": w.value,
|
|
164
|
+
"default-value": w.value,
|
|
165
|
+
events: M
|
|
166
|
+
}, null, 8, ["default-params", "default-value"]), s(N, {
|
|
167
|
+
modelValue: t.showModelView,
|
|
168
|
+
"onUpdate:modelValue": a[0] || (a[0] = (n) => t.showModelView = n),
|
|
166
169
|
title: "用户信息",
|
|
167
170
|
width: "300"
|
|
168
171
|
}, {
|
|
169
|
-
default: i(() => [
|
|
172
|
+
default: i(() => [s(F, {
|
|
170
173
|
ref_key: "xForm",
|
|
171
|
-
ref:
|
|
172
|
-
data:
|
|
174
|
+
ref: V,
|
|
175
|
+
data: t.record,
|
|
173
176
|
rules: q,
|
|
174
177
|
"title-align": "right"
|
|
175
178
|
}, {
|
|
176
|
-
default: i(() => [
|
|
179
|
+
default: i(() => [s(f, {
|
|
177
180
|
title: e.$t("message.unitName"),
|
|
178
181
|
field: "unitId",
|
|
179
182
|
span: "24"
|
|
180
183
|
}, {
|
|
181
184
|
default: i(({
|
|
182
|
-
data:
|
|
183
|
-
}) => [
|
|
184
|
-
modelValue:
|
|
185
|
-
"onUpdate:modelValue": (p) =>
|
|
185
|
+
data: n
|
|
186
|
+
}) => [s(B, {
|
|
187
|
+
modelValue: n.unitId,
|
|
188
|
+
"onUpdate:modelValue": (p) => n.unitId = p
|
|
186
189
|
}, {
|
|
187
|
-
default: i(() => [(
|
|
190
|
+
default: i(() => [(v(!0), $(U, null, K(O(C), (p) => (v(), k(g, {
|
|
188
191
|
key: p.id,
|
|
189
192
|
value: p.id,
|
|
190
193
|
label: p.unitName
|
|
@@ -192,24 +195,24 @@ const le = {
|
|
|
192
195
|
_: 2
|
|
193
196
|
}, 1032, ["modelValue", "onUpdate:modelValue"])]),
|
|
194
197
|
_: 1
|
|
195
|
-
}, 8, ["title"]),
|
|
198
|
+
}, 8, ["title"]), s(f, {
|
|
196
199
|
title: e.$t("message.userCode"),
|
|
197
200
|
"item-render": {
|
|
198
201
|
name: "input",
|
|
199
202
|
attrs: {
|
|
200
|
-
disabled:
|
|
203
|
+
disabled: t.dataStatus === "update"
|
|
201
204
|
}
|
|
202
205
|
},
|
|
203
206
|
field: "userName",
|
|
204
207
|
span: "24"
|
|
205
|
-
}, null, 8, ["title", "item-render"]),
|
|
208
|
+
}, null, 8, ["title", "item-render"]), s(f, {
|
|
206
209
|
title: e.$t("message.userName"),
|
|
207
210
|
field: "name",
|
|
208
211
|
span: "24",
|
|
209
212
|
"item-render": {
|
|
210
213
|
name: "input"
|
|
211
214
|
}
|
|
212
|
-
}, null, 8, ["title"]),
|
|
215
|
+
}, null, 8, ["title"]), t.dataStatus === "add" ? (v(), k(f, {
|
|
213
216
|
key: 0,
|
|
214
217
|
title: e.$t("message.userPwd"),
|
|
215
218
|
"item-render": {
|
|
@@ -217,71 +220,75 @@ const le = {
|
|
|
217
220
|
},
|
|
218
221
|
field: "userPwd",
|
|
219
222
|
span: "24"
|
|
220
|
-
}, null, 8, ["title"])) : J("", !0),
|
|
223
|
+
}, null, 8, ["title"])) : J("", !0), s(f, {
|
|
221
224
|
align: "right",
|
|
222
225
|
span: "24"
|
|
223
226
|
}, {
|
|
224
|
-
default: i(() => [
|
|
227
|
+
default: i(() => [s(x, {
|
|
225
228
|
content: "cancel",
|
|
226
229
|
icon: "ri-close-fill",
|
|
227
|
-
onClick:
|
|
228
|
-
}),
|
|
230
|
+
onClick: R
|
|
231
|
+
}), s(x, {
|
|
229
232
|
content: "confirm",
|
|
230
233
|
icon: "ri-save-3-fill",
|
|
231
234
|
status: "u-cyan",
|
|
232
|
-
onClick:
|
|
235
|
+
onClick: D
|
|
233
236
|
})]),
|
|
234
237
|
_: 1
|
|
235
238
|
})]),
|
|
236
239
|
_: 1
|
|
237
240
|
}, 8, ["data"])]),
|
|
238
241
|
_: 1
|
|
239
|
-
}, 8, ["modelValue"]),
|
|
240
|
-
modelValue:
|
|
241
|
-
"onUpdate:modelValue": a[1] || (a[1] = (
|
|
242
|
+
}, 8, ["modelValue"]), s(N, {
|
|
243
|
+
modelValue: t.showUserRole,
|
|
244
|
+
"onUpdate:modelValue": a[1] || (a[1] = (n) => t.showUserRole = n),
|
|
245
|
+
loading: m.value,
|
|
242
246
|
title: e.$t("message.title.roleInfo"),
|
|
243
247
|
width: "600"
|
|
244
248
|
}, {
|
|
245
|
-
default: i(() => [
|
|
249
|
+
default: i(() => [s(j, {
|
|
246
250
|
height: "300",
|
|
247
|
-
data:
|
|
251
|
+
data: t.roleList,
|
|
248
252
|
border: ""
|
|
249
253
|
}, {
|
|
250
|
-
default: i(() => [
|
|
254
|
+
default: i(() => [s(b, {
|
|
251
255
|
type: "seq",
|
|
252
256
|
width: "60"
|
|
253
|
-
}),
|
|
257
|
+
}), s(b, {
|
|
254
258
|
field: "roleName",
|
|
255
259
|
title: e.$t("message.udp.roleName")
|
|
256
|
-
}, null, 8, ["title"]),
|
|
260
|
+
}, null, 8, ["title"]), s(b, {
|
|
257
261
|
field: "roleDesc",
|
|
258
262
|
title: e.$t("message.udp.roleDesc")
|
|
259
263
|
}, null, 8, ["title"])]),
|
|
260
264
|
_: 1
|
|
261
265
|
}, 8, ["data"])]),
|
|
262
266
|
_: 1
|
|
263
|
-
}, 8, ["modelValue", "title"]),
|
|
264
|
-
modelValue:
|
|
265
|
-
"onUpdate:modelValue": a[2] || (a[2] = (
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
267
|
+
}, 8, ["modelValue", "loading", "title"]), s(N, {
|
|
268
|
+
modelValue: t.showAuth,
|
|
269
|
+
"onUpdate:modelValue": a[2] || (a[2] = (n) => t.showAuth = n),
|
|
270
|
+
loading: m.value,
|
|
271
|
+
title: e.$t("message.title.authority", {
|
|
272
|
+
role: t.record.name || "88888"
|
|
273
|
+
}),
|
|
274
|
+
height: "620",
|
|
275
|
+
width: "560"
|
|
269
276
|
}, {
|
|
270
|
-
default: i(() => [
|
|
277
|
+
default: i(() => [s(z, {
|
|
271
278
|
ref: "xTree",
|
|
272
|
-
data:
|
|
279
|
+
data: t.roleList,
|
|
273
280
|
props: {
|
|
274
281
|
children: "children",
|
|
275
282
|
label: "menuName"
|
|
276
283
|
},
|
|
277
|
-
height:
|
|
284
|
+
height: 560,
|
|
278
285
|
"node-key": "id"
|
|
279
286
|
}, null, 8, ["data"])]),
|
|
280
287
|
_: 1
|
|
281
|
-
}, 8, ["modelValue", "title"])]);
|
|
288
|
+
}, 8, ["modelValue", "loading", "title"])]);
|
|
282
289
|
};
|
|
283
290
|
}
|
|
284
291
|
});
|
|
285
292
|
export {
|
|
286
|
-
|
|
293
|
+
pe as _
|
|
287
294
|
};
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import { defineComponent as S, reactive as k, ref as v, createVNode as o, resolveComponent as r, Fragment as m, createElementBlock as D, openBlock as A } from "vue";
|
|
2
2
|
import { useI18n as E } from "vue-i18n";
|
|
3
|
-
import { _ as I } from "./menuInfo.vue_vue_type_style_index_0_lang-
|
|
3
|
+
import { _ as I } from "./menuInfo.vue_vue_type_style_index_0_lang-DgG0aHRy.js";
|
|
4
4
|
import { _ as N } from "./AuthorityPanel.vue_vue_type_style_index_0_lang-CIYmnP9-.js";
|
|
5
|
-
import { clone as
|
|
6
|
-
import {
|
|
7
|
-
import { VxeUI as
|
|
8
|
-
import { useRender as
|
|
5
|
+
import { clone as p } from "xe-utils";
|
|
6
|
+
import { t as M } from "./await-to-js.es5-BtRbN2QH.js";
|
|
7
|
+
import { VxeUI as R } from "vxe-pc-ui";
|
|
8
|
+
import { useRender as U } from "@utogether/utils";
|
|
9
|
+
import { q as B } from "./index-COBMRlmJ.js";
|
|
9
10
|
const P = {
|
|
10
11
|
class: "page-content"
|
|
11
12
|
}, z = {
|
|
12
13
|
name: "SystemMenu"
|
|
13
|
-
},
|
|
14
|
+
}, j = /* @__PURE__ */ S({
|
|
14
15
|
...z,
|
|
15
16
|
setup(F) {
|
|
16
17
|
const t = k({
|
|
@@ -25,8 +26,8 @@ const P = {
|
|
|
25
26
|
pageNum: 1
|
|
26
27
|
}
|
|
27
28
|
}), {
|
|
28
|
-
t:
|
|
29
|
-
} = E(), f =
|
|
29
|
+
t: h
|
|
30
|
+
} = E(), f = U(), d = B(), s = v(null), i = "/uums/menu";
|
|
30
31
|
let l;
|
|
31
32
|
const C = [{
|
|
32
33
|
type: "checkbox",
|
|
@@ -99,7 +100,7 @@ const P = {
|
|
|
99
100
|
}, u = (e) => {
|
|
100
101
|
t.showDrawer = !0, t.dataStatus = "add", t.record.dispalyCode = e == null ? void 0 : e.permissionCode, t.record.permissionCode = e == null ? void 0 : e.permissionCode, t.record.menuType = "0", t.record.menuCategory = e ? "" : "0", t.record.parentId = e == null ? void 0 : e.id, t.record.hasChildren = e == null ? void 0 : e.hasChildren, t.record.children = t.record.children || [], l = e;
|
|
101
102
|
}, w = (e) => {
|
|
102
|
-
t.showDrawer = !0, t.dataStatus = "update", t.record =
|
|
103
|
+
t.showDrawer = !0, t.dataStatus = "update", t.record = p(e, !0), t.record.menuType = t.record.menuType.toString(), t.record.dispalyCode = e.permissionCode;
|
|
103
104
|
};
|
|
104
105
|
async function _({
|
|
105
106
|
row: e
|
|
@@ -107,12 +108,12 @@ const P = {
|
|
|
107
108
|
await d.put(i, [e]), s.value.refreshData();
|
|
108
109
|
}
|
|
109
110
|
const T = async () => {
|
|
110
|
-
const e = await
|
|
111
|
+
const e = await R.modal.confirm(h("message.delRecord")), n = s.value.getInstance().getCheckboxRecords();
|
|
111
112
|
if (e === "confirm") {
|
|
112
|
-
const [a] = await
|
|
113
|
+
const [a] = await M(d.delete(i, n));
|
|
113
114
|
}
|
|
114
115
|
}, b = (e) => {
|
|
115
|
-
t.showAuthority = !0, t.dataStatus = "update", t.record =
|
|
116
|
+
t.showAuthority = !0, t.dataStatus = "update", t.record = p(e, !0), t.record.menuType = t.record.menuType.toString(), t.record.dispalyCode = e.permissionCode;
|
|
116
117
|
}, c = (e, n) => {
|
|
117
118
|
e === "submit" && (l || n) && s.value.getInstance().reloadTreeExpand(l || n), t.record = {}, t.showDrawer = !1, t.showAuthority = !1;
|
|
118
119
|
};
|
|
@@ -148,5 +149,5 @@ const P = {
|
|
|
148
149
|
}
|
|
149
150
|
});
|
|
150
151
|
export {
|
|
151
|
-
|
|
152
|
+
j as default
|
|
152
153
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import { defineComponent as R, ref as i, reactive as x, onBeforeMount as B, resolveComponent as d, createElementBlock as U, openBlock as u, createVNode as c, withCtx as $, createBlock as j, createCommentVNode as q, mergeProps as A, toHandlers as E } from "vue";
|
|
2
|
+
import { t as P } from "./await-to-js.es5-BtRbN2QH.js";
|
|
3
|
+
import { q as S } from "./index-COBMRlmJ.js";
|
|
4
|
+
const V = { class: "u-dict-config_wrapper" }, D = /* @__PURE__ */ R({
|
|
4
5
|
__name: "UserInfo",
|
|
5
6
|
props: {
|
|
6
7
|
record: { default: () => ({}) },
|
|
@@ -9,7 +10,7 @@ const V = { class: "u-dict-config_wrapper" }, D = /* @__PURE__ */ x({
|
|
|
9
10
|
},
|
|
10
11
|
emits: ["onClose"],
|
|
11
12
|
setup(f, { emit: p }) {
|
|
12
|
-
const r = f, g = i(!1),
|
|
13
|
+
const r = f, g = i(!1), o = i(!1), a = S(), h = p, b = [
|
|
13
14
|
{
|
|
14
15
|
field: "userName",
|
|
15
16
|
title: "message.userCode",
|
|
@@ -67,15 +68,15 @@ const V = { class: "u-dict-config_wrapper" }, D = /* @__PURE__ */ x({
|
|
|
67
68
|
{ code: "add", name: "message.btn.add", status: "u-cyan", icon: "ri-add-line" },
|
|
68
69
|
{ code: "delete", name: "message.btn.del", status: "danger", icon: "ri-delete-bin-5-fill" }
|
|
69
70
|
], y = [
|
|
70
|
-
{ field: "userName", title: "message.userCode" },
|
|
71
|
-
{ field: "name", title: "message.userName" }
|
|
72
|
-
],
|
|
71
|
+
{ field: "userName", title: "message.userCode", span: 9 },
|
|
72
|
+
{ field: "name", title: "message.userName", span: 9 }
|
|
73
|
+
], w = [
|
|
73
74
|
{ type: "checkbox", width: 40 },
|
|
74
75
|
{ field: "userName", title: "message.userCode" },
|
|
75
76
|
{ field: "name", title: "message.userName" },
|
|
76
77
|
{ field: "enabled", width: 70, formatter: ["formatDict", "SU.ENABLE"] }
|
|
77
|
-
], m = i({}), n =
|
|
78
|
-
height:
|
|
78
|
+
], m = i({}), n = x({
|
|
79
|
+
height: "auto",
|
|
79
80
|
border: !0,
|
|
80
81
|
pagerConfig: {},
|
|
81
82
|
toolbarConfig: { buttons: C, perfect: !0 },
|
|
@@ -87,37 +88,37 @@ const V = { class: "u-dict-config_wrapper" }, D = /* @__PURE__ */ x({
|
|
|
87
88
|
// 查询是需要启用表单代理
|
|
88
89
|
ajax: {
|
|
89
90
|
// 接收 Promise
|
|
90
|
-
query: ({ page: e, form:
|
|
91
|
-
const t = Object.assign({},
|
|
91
|
+
query: ({ page: e, form: s }) => {
|
|
92
|
+
const t = Object.assign({}, s);
|
|
92
93
|
return t.id = r.record.id, t.pageNum = e.currentPage, t.pageSize = e.pageSize, a.get("/uums/user/listRoleUsers", t);
|
|
93
94
|
},
|
|
94
95
|
// body 对象: { removeRecords }
|
|
95
96
|
delete: ({ body: { removeRecords: e } }) => {
|
|
96
|
-
const
|
|
97
|
+
const s = {
|
|
97
98
|
roleId: r.record.id,
|
|
98
99
|
userIds: e.map((t) => t.id).join()
|
|
99
100
|
};
|
|
100
|
-
return a.delete("/uums/role/deleteRoleUsers",
|
|
101
|
+
return a.delete("/uums/role/deleteRoleUsers", s);
|
|
101
102
|
}
|
|
102
103
|
}
|
|
103
104
|
},
|
|
104
105
|
columns: v
|
|
105
|
-
}),
|
|
106
|
+
}), _ = {
|
|
106
107
|
toolbarButtonClick({ code: e }) {
|
|
107
|
-
e === "add" && (
|
|
108
|
+
e === "add" && (o.value = !0);
|
|
108
109
|
}
|
|
109
110
|
}, N = async (e) => {
|
|
110
|
-
const
|
|
111
|
-
|
|
112
|
-
const [t] = await
|
|
113
|
-
n.loading = !1, t || (m.value.commitProxy("query"),
|
|
111
|
+
const s = { userIds: "", roleId: r.record.id };
|
|
112
|
+
s.userIds = e.map((l) => l.id).join(","), n.loading = !0;
|
|
113
|
+
const [t] = await P(a.post("/uums/role/addUserRole", s));
|
|
114
|
+
n.loading = !1, t || (m.value.commitProxy("query"), o.value = !1);
|
|
114
115
|
};
|
|
115
116
|
function I() {
|
|
116
117
|
h("onClose");
|
|
117
118
|
}
|
|
118
119
|
return B(() => {
|
|
119
120
|
g.value = !0;
|
|
120
|
-
}), (e,
|
|
121
|
+
}), (e, s) => {
|
|
121
122
|
const t = d("vxe-grid"), l = d("ut-modal-grid"), k = d("el-drawer");
|
|
122
123
|
return u(), U("div", V, [
|
|
123
124
|
c(k, {
|
|
@@ -132,19 +133,21 @@ const V = { class: "u-dict-config_wrapper" }, D = /* @__PURE__ */ x({
|
|
|
132
133
|
c(t, A({
|
|
133
134
|
ref_key: "xgrid",
|
|
134
135
|
ref: m
|
|
135
|
-
}, n, E(
|
|
136
|
-
|
|
136
|
+
}, n, E(_)), null, 16),
|
|
137
|
+
o.value ? (u(), j(l, {
|
|
137
138
|
key: 0,
|
|
138
139
|
url: "/uums/user/listUserToRole",
|
|
139
140
|
"default-params": { roleId: e.record.id },
|
|
140
141
|
items: y,
|
|
141
|
-
columns:
|
|
142
|
+
columns: w,
|
|
142
143
|
"show-footer": !0,
|
|
143
144
|
editable: !1,
|
|
145
|
+
title: e.$t("message.udp.userList"),
|
|
144
146
|
width: "60%",
|
|
145
|
-
|
|
147
|
+
height: "75%",
|
|
148
|
+
onClose: s[0] || (s[0] = (z) => o.value = !1),
|
|
146
149
|
onConfirm: N
|
|
147
|
-
}, null, 8, ["default-params"])) : q("", !0)
|
|
150
|
+
}, null, 8, ["default-params", "title"])) : q("", !0)
|
|
148
151
|
]),
|
|
149
152
|
_: 1
|
|
150
153
|
}, 8, ["model-value", "title"])
|