@utogether/udp-core 1.0.4 → 2.0.0-beta.1
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-CTJDBjz7.js} +1 -1
- package/dist/{404-YhBA92cb.js → 404-BFYkWIkQ.js} +1 -1
- package/dist/{500-ywbFF5MX.js → 500-DGG3qadg.js} +1 -1
- package/dist/{AuthorityInfo-tCSX2Fh7.js → AuthorityInfo-ozZIo1Te.js} +1 -1
- package/dist/{AuthorityInfo.vue_vue_type_style_index_0_lang-Cwd6UT2i.js → AuthorityInfo.vue_vue_type_style_index_0_lang-DujerENw.js} +1 -1
- package/dist/{AuthorityPanel-BeBNiwqc.js → AuthorityPanel-CRlAwbaI.js} +1 -1
- 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-l23MEzdM.js → Company-6VJtwh23.js} +3 -3
- package/dist/{CompanyPanel-D_s0rh6h.js → CompanyPanel-B2P488mq.js} +1 -1
- package/dist/{Department-DSEvORLg.js → Department-BnwoLEOC.js} +3 -3
- package/dist/{DepartmentPanel-WN8nOgCV.js → DepartmentPanel-CRrrmxtv.js} +1 -1
- package/dist/{DesignPanel-DirEGh9M.js → DesignPanel-CvbccgX2.js} +1 -1
- package/dist/{DesignPanel.vue_vue_type_style_index_0_lang-D02hXSrN.js → DesignPanel.vue_vue_type_style_index_0_lang-Dz2tUszs.js} +2 -2
- package/dist/{DictView-DiIQdiek.js → DictView-Ce1LoVHh.js} +17 -16
- package/dist/{InvOrganization-b7v3g9EJ.js → InvOrganization-BwCFZO1X.js} +1 -1
- package/dist/{Org-BORfx1PL.js → Org-0hzs6b0R.js} +1 -1
- package/dist/{Preview-DkRn_TSc.js → Preview--DnEAhwh.js} +1 -1
- package/dist/{ReportDefine-Cd0QeaWA.js → ReportDefine-Cu983bTN.js} +1 -1
- package/dist/{ReportDesign-4qNqyeEW.js → ReportDesign-QsWXXgvo.js} +2 -2
- package/dist/{ReportQuery-BJfTFpec.js → ReportQuery-BjKIIhPu.js} +1 -1
- package/dist/{ReportQueryFrom-CB7sExZx.js → ReportQueryFrom-DIjBO6Fx.js} +1 -1
- package/dist/{ReportQueryFrom.vue_vue_type_style_index_0_lang-CqO_2Ier.js → ReportQueryFrom.vue_vue_type_style_index_0_lang-0T62cUMK.js} +1 -1
- package/dist/{ReportTemplate-B69muSgT.js → ReportTemplate-2uk9tJcy.js} +1 -1
- package/dist/{Role-Bo4YrNDC.js → Role-_QP8QEaI.js} +3 -3
- package/dist/{RoleAssign-kOMYJ4s3.js → RoleAssign-C2gkcmEQ.js} +3 -3
- package/dist/{RolePanel-BSJmjyqc.js → RolePanel-B8FPNGaA.js} +1 -1
- package/dist/{RolePanel-B1d4e6uk.js → RolePanel-vnl_lXNY.js} +1 -1
- package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-DCzX-ZP_.js → RolePanel.vue_vue_type_script_setup_true_lang-BuQbYEEI.js} +1 -1
- package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-DgQpfjaU.js → RolePanel.vue_vue_type_script_setup_true_lang-bxHXrBYl.js} +3 -3
- package/dist/{ScrollPanel.vue_vue_type_style_index_0_lang-WNOYFxJ1.js → ScrollPanel.vue_vue_type_style_index_0_lang-C6yZXBqB.js} +1 -1
- package/dist/{Staff-BFp3zNNR.js → Staff-CHWrMIEb.js} +3 -3
- package/dist/{StaffInfo-DcU9_40C.js → StaffInfo-Cpq2eayz.js} +1 -1
- package/dist/{StaffInfo.vue_vue_type_script_setup_true_lang-CtfN2CAr.js → StaffInfo.vue_vue_type_script_setup_true_lang-BVCjF2i1.js} +1 -1
- package/dist/{StaffPanel-7exWkZd9.js → StaffPanel-D2BMXt5p.js} +1 -1
- package/dist/{StaffPanel.vue_vue_type_script_setup_true_lang-v5xOXKRS.js → StaffPanel.vue_vue_type_script_setup_true_lang-B6jAGo-g.js} +2 -2
- package/dist/{SysUser-B3uB_cp2.js → SysUser-om6H1BeC.js} +2 -2
- package/dist/{SysUserPanel-B0CLp5AO.js → SysUserPanel-CH0HPP7h.js} +1 -1
- package/dist/{SysUserPanel.vue_vue_type_script_setup_true_lang-Cwea_4dY.js → SysUserPanel.vue_vue_type_script_setup_true_lang-Dpl13ee0.js} +126 -111
- package/dist/{SystemMenu-a59l4hTk.js → SystemMenu-BkG_DKxA.js} +52 -49
- package/dist/{UserInfo-D1IA2oLt.js → UserInfo-D9croxUe.js} +1 -1
- package/dist/{UserInfo.vue_vue_type_style_index_0_lang-DDVgYRD5.js → UserInfo.vue_vue_type_style_index_0_lang-DLIP8xpN.js} +1 -1
- package/dist/{childView-6rCeLcsx.js → childView-BY_Ip-l1.js} +1 -1
- package/dist/{childView-JdrkroL5.js → childView-CHp_TueS.js} +1 -1
- package/dist/{childView.vue_vue_type_style_index_0_lang-BfcnWnx9.js → childView.vue_vue_type_style_index_0_lang-BNHbDRjt.js} +25 -22
- package/dist/{childView.vue_vue_type_style_index_0_lang-B8x99f1B.js → childView.vue_vue_type_style_index_0_lang-CbjGf7Z7.js} +1 -1
- package/dist/{code-rule-2lkPF547.js → code-rule-Ce6yWqCq.js} +1 -1
- package/dist/core.es.js +1 -1
- package/dist/{cron-task-DV1pGO1m.js → cron-task-DziaH0rI.js} +1 -1
- package/dist/{frameView-C0bzSB8c.js → frameView-DNeCVQaY.js} +1 -1
- package/dist/index-BabfUVv_.js +7241 -0
- package/dist/layout-home-Cis1KlEr.js +195 -0
- package/dist/{layoutView-CTV-E4Cj.js → layoutView-12Mlp9A2.js} +144 -145
- package/dist/{log-in-CoBP2x6u.js → log-in-1NGaA5OM.js} +1 -1
- package/dist/{log-out-KX8FiRVf.js → log-out-B8_atGcQ.js} +1 -1
- package/dist/{login-CtCoGWzD.js → login-5dydO6GR.js} +124 -134
- package/dist/{lov-view-Bm0JEzzg.js → lov-view-DPvGUu3h.js} +2 -2
- package/dist/{menuInfo-D2qPoRwz.js → menuInfo-DVADYfEK.js} +1 -1
- package/dist/{menuInfo.vue_vue_type_style_index_0_lang-DoQjX9Ly.js → menuInfo.vue_vue_type_style_index_0_lang-DgsifDrm.js} +37 -35
- package/dist/{pda-app-SbcIclbH.js → pda-app-BZXs-2BQ.js} +1 -1
- package/dist/{resource-Cdq1UKGI.js → resource-BZA9NFKc.js} +1 -1
- package/dist/su-welcome-BXe6Cdp3.js +580 -0
- package/dist/{sys-config-CCOf4xbj.js → sys-config-DQmNjWH4.js} +1 -1
- package/dist/udp-core.css +1 -1
- package/package.json +1 -1
- package/src/App.vue +71 -65
- package/src/components/udp/form-upload/form-upload.vue +492 -0
- package/src/components/udp/index.ts +2 -1
- package/src/layout/components/lay-content/index.vue +136 -143
- package/src/layout/components/lay-sidebar/sidebar-logo.vue +1 -1
- package/src/layout/layoutView.vue +7 -6
- package/src/main.ts +4 -7
- package/src/plugins/i18n/zh.ts +16 -3
- package/src/plugins/vxe-table/render.tsx +19 -1
- package/src/style/vxetable.scss +356 -348
- package/src/views/system/layout/layout-home.vue +199 -0
- package/src/views/system/menu/AuthorityPanel.vue +141 -140
- package/src/views/system/menu/SystemMenu.vue +10 -1
- package/src/views/system/menu/menuInfo.vue +384 -384
- package/src/views/system/sysUser/SysUserPanel.vue +22 -6
- package/src/views/udev/dict/DictView.vue +2 -2
- package/src/views/udev/dict/childView.vue +1 -0
- package/src/views/uhome/dynamic-card.vue +32 -0
- package/src/views/uhome/su-welcome.vue +10 -5
- package/src/views/ulogin/login.vue +34 -23
- package/types/global.d.ts +1 -0
- package/dist/index-BbtbEMCH.js +0 -4649
- package/dist/su-welcome-BHDsjqqV.js +0 -524
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useI18n as
|
|
3
|
-
import { t as
|
|
4
|
-
import { useRender as
|
|
5
|
-
import { VxeUI as
|
|
6
|
-
import { clone as
|
|
7
|
-
import { y as
|
|
8
|
-
const
|
|
1
|
+
import { defineComponent as re, reactive as ne, ref as v, inject as ie, createVNode as o, Fragment as x, resolveComponent as r, onMounted as de, createElementBlock as S, openBlock as h, createBlock as N, createCommentVNode as $, withCtx as u, renderList as ue, unref as me } from "vue";
|
|
2
|
+
import { useI18n as ce } from "vue-i18n";
|
|
3
|
+
import { t as M } from "./await-to-js.es5-BtRbN2QH.js";
|
|
4
|
+
import { useRender as fe, warnMessage as pe, delay as ge, errorMessage as he, getDictChildren as we } from "@utogether/utils";
|
|
5
|
+
import { VxeUI as _ } from "vxe-pc-ui";
|
|
6
|
+
import { clone as U, isEmpty as ve } from "xe-utils";
|
|
7
|
+
import { y as _e } from "./index-BabfUVv_.js";
|
|
8
|
+
const ye = {
|
|
9
9
|
class: "page"
|
|
10
|
-
}, i = "/uums/user",
|
|
10
|
+
}, i = "/uums/user", xe = /* @__PURE__ */ re({
|
|
11
11
|
__name: "SysUserPanel",
|
|
12
|
-
setup(
|
|
13
|
-
const t =
|
|
12
|
+
setup(be) {
|
|
13
|
+
const t = ne({
|
|
14
14
|
record: {},
|
|
15
15
|
listQuery: {},
|
|
16
16
|
dataList: [],
|
|
@@ -22,28 +22,33 @@ const ve = {
|
|
|
22
22
|
showModal: !1,
|
|
23
23
|
showAuth: !1,
|
|
24
24
|
dataStatus: ""
|
|
25
|
-
}),
|
|
26
|
-
t:
|
|
27
|
-
} =
|
|
25
|
+
}), d = _e(), {
|
|
26
|
+
t: a
|
|
27
|
+
} = ce(), L = {
|
|
28
28
|
userName: [{
|
|
29
29
|
required: !0,
|
|
30
|
-
message: `${
|
|
30
|
+
message: `${a("message.required")}${a("message.userCode")}`
|
|
31
31
|
}],
|
|
32
32
|
name: [{
|
|
33
33
|
required: !0,
|
|
34
|
-
message: `${
|
|
34
|
+
message: `${a("message.required")}${a("message.userName")}`
|
|
35
35
|
}],
|
|
36
36
|
unitId: [{
|
|
37
37
|
required: !0,
|
|
38
|
-
message: `${
|
|
38
|
+
message: `${a("message.required")}${a("message.unitName")}`
|
|
39
39
|
}],
|
|
40
40
|
userPwd: [{
|
|
41
41
|
required: !0,
|
|
42
|
-
message: `${
|
|
42
|
+
message: `${a("message.required")}${a("message.userPwd")}`
|
|
43
43
|
}]
|
|
44
|
-
},
|
|
45
|
-
let
|
|
46
|
-
const
|
|
44
|
+
}, q = fe(), y = v({}), D = ie("treeList"), c = v(!1);
|
|
45
|
+
let w = "";
|
|
46
|
+
const E = [{
|
|
47
|
+
code: "resetPassword",
|
|
48
|
+
status: "warning",
|
|
49
|
+
icon: "ri-lock-line",
|
|
50
|
+
auth: "batch"
|
|
51
|
+
}], m = v(null), A = [{
|
|
47
52
|
field: "name",
|
|
48
53
|
title: "message.udp.userName"
|
|
49
54
|
}, {
|
|
@@ -53,7 +58,7 @@ const ve = {
|
|
|
53
58
|
field: "type",
|
|
54
59
|
title: "message.udp.userType",
|
|
55
60
|
code: "SU.USER.TYPE"
|
|
56
|
-
}],
|
|
61
|
+
}], I = [{
|
|
57
62
|
type: "checkbox",
|
|
58
63
|
width: 40,
|
|
59
64
|
align: "center"
|
|
@@ -70,7 +75,7 @@ const ve = {
|
|
|
70
75
|
}, {
|
|
71
76
|
field: "enabled",
|
|
72
77
|
width: 80,
|
|
73
|
-
cellRender:
|
|
78
|
+
cellRender: q.renderEnabled(O)
|
|
74
79
|
}, {
|
|
75
80
|
field: "operate",
|
|
76
81
|
width: 150,
|
|
@@ -78,18 +83,18 @@ const ve = {
|
|
|
78
83
|
slots: {
|
|
79
84
|
default: ({
|
|
80
85
|
row: e
|
|
81
|
-
}) => [o(x, null, [o(
|
|
86
|
+
}) => [o(x, null, [o(r("ut-button"), {
|
|
82
87
|
content: "edit",
|
|
83
88
|
icon: "ri-edit-line",
|
|
84
|
-
onTap: () =>
|
|
85
|
-
}, null), o(
|
|
86
|
-
buttons:
|
|
87
|
-
onCommand: (s) =>
|
|
89
|
+
onTap: () => Y(e)
|
|
90
|
+
}, null), o(r("ut-dropdown"), {
|
|
91
|
+
buttons: B(),
|
|
92
|
+
onCommand: (s) => T(e, s)
|
|
88
93
|
}, null)])]
|
|
89
94
|
}
|
|
90
|
-
}],
|
|
91
|
-
s === "role" &&
|
|
92
|
-
},
|
|
95
|
+
}], T = (e, s) => {
|
|
96
|
+
s === "role" && Q(e), s === "auth" && J(e), s === "passwordReset" && W(e);
|
|
97
|
+
}, B = () => [{
|
|
93
98
|
code: "role",
|
|
94
99
|
icon: "ri-user-fill"
|
|
95
100
|
}, {
|
|
@@ -98,7 +103,7 @@ const ve = {
|
|
|
98
103
|
}, {
|
|
99
104
|
code: "passwordReset",
|
|
100
105
|
icon: "ri-lock-password-line"
|
|
101
|
-
}],
|
|
106
|
+
}], C = [{
|
|
102
107
|
field: "userName",
|
|
103
108
|
title: "message.udp.userCode",
|
|
104
109
|
required: !0,
|
|
@@ -118,118 +123,128 @@ const ve = {
|
|
|
118
123
|
visibleMethod: ({
|
|
119
124
|
data: e
|
|
120
125
|
}) => !e.id
|
|
121
|
-
}],
|
|
126
|
+
}], F = () => {
|
|
122
127
|
t.record = {
|
|
123
|
-
userPwd:
|
|
124
|
-
...
|
|
128
|
+
userPwd: w,
|
|
129
|
+
...y.value,
|
|
125
130
|
type: "system"
|
|
126
|
-
}, t.items = C
|
|
127
|
-
},
|
|
128
|
-
t.record =
|
|
129
|
-
},
|
|
130
|
-
|
|
131
|
-
},
|
|
132
|
-
|
|
131
|
+
}, t.items = U(C, !0), t.height = 280, t.showModal = !0;
|
|
132
|
+
}, Y = (e) => {
|
|
133
|
+
t.record = U(e, !0), t.items = U(C, !0), t.items[0].disabled = !0, t.height = 240, t.showModal = !0;
|
|
134
|
+
}, j = () => {
|
|
135
|
+
m.value.getInstance().commitProxy("delete");
|
|
136
|
+
}, z = (e) => [e], H = () => {
|
|
137
|
+
m.value.refreshData();
|
|
133
138
|
};
|
|
134
|
-
async function
|
|
139
|
+
async function O({
|
|
135
140
|
row: e
|
|
136
141
|
}) {
|
|
137
|
-
await
|
|
142
|
+
await M(d.put(i, [e])), m.value.refreshData();
|
|
138
143
|
}
|
|
139
|
-
const
|
|
144
|
+
const Q = async (e) => {
|
|
140
145
|
var l;
|
|
141
|
-
t.roleList = [], t.showUserRole = !0,
|
|
142
|
-
const s = await
|
|
146
|
+
t.roleList = [], t.showUserRole = !0, c.value = !0;
|
|
147
|
+
const s = await d.get(i + "/getUserRole", {
|
|
143
148
|
userName: e.userName
|
|
144
149
|
});
|
|
145
|
-
|
|
146
|
-
},
|
|
147
|
-
await
|
|
148
|
-
code:
|
|
150
|
+
c.value = !1, t.roleList = (l = s[0]) == null ? void 0 : l.sysRoles;
|
|
151
|
+
}, W = async (e) => {
|
|
152
|
+
await _.modal.confirm(a("message.tip.confirmResetPassword")) === "confirm" && (await d.put(i + "/resetPwd", e), await _.modal.alert(a("message.tip.initPassword", {
|
|
153
|
+
code: w
|
|
154
|
+
})));
|
|
155
|
+
}, G = async () => {
|
|
156
|
+
const e = m.value.getSelectRecords();
|
|
157
|
+
if (!e.length || await _.modal.confirm(a("message.tip.confirmResetPassword")) !== "confirm") return;
|
|
158
|
+
const l = e.map((f) => ({
|
|
159
|
+
id: f.id
|
|
149
160
|
}));
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
161
|
+
await d.put(i + "/batchUpdatePwd", l), await _.modal.alert(a("message.tip.initPassword", {
|
|
162
|
+
code: w
|
|
163
|
+
})), m.value.refreshData();
|
|
164
|
+
}, J = async (e) => {
|
|
165
|
+
var f;
|
|
166
|
+
t.roleList = [], t.showAuth = !0, c.value = !0, t.record = e;
|
|
167
|
+
const [s, l] = await M(d.get(i + "/getUserRole", {
|
|
154
168
|
userName: e.userName
|
|
155
169
|
}));
|
|
156
|
-
|
|
157
|
-
},
|
|
158
|
-
|
|
170
|
+
c.value = !1, s || (ve(l) ? pe(a("message.tip.emptyAuth")) : t.roleList = (f = l[0]) == null ? void 0 : f.sysMenuExts);
|
|
171
|
+
}, R = v(null), K = () => {
|
|
172
|
+
R.value.validate(async (e) => {
|
|
159
173
|
if (!e) {
|
|
160
174
|
const {
|
|
161
175
|
record: s,
|
|
162
176
|
dataStatus: l
|
|
163
177
|
} = t;
|
|
164
|
-
l === "add" ? await
|
|
178
|
+
l === "add" ? await d.post(i, s) : await d.put(i, s), V();
|
|
165
179
|
}
|
|
166
180
|
});
|
|
167
|
-
},
|
|
181
|
+
}, V = () => {
|
|
168
182
|
t.showModelView = !1;
|
|
169
|
-
},
|
|
170
|
-
e === "add" &&
|
|
171
|
-
},
|
|
172
|
-
|
|
183
|
+
}, X = (e) => {
|
|
184
|
+
e === "add" && F(), e === "del" && j(), e === "resetPassword" && G();
|
|
185
|
+
}, Z = () => {
|
|
186
|
+
d.get("/uums/unit", {
|
|
173
187
|
pageSize: 10
|
|
174
188
|
}).then(async (e) => {
|
|
175
|
-
|
|
189
|
+
y.value = {
|
|
176
190
|
unitId: e[0].id,
|
|
177
191
|
enabled: "1"
|
|
178
|
-
}, await
|
|
192
|
+
}, await ge(100), m.value.refreshData();
|
|
179
193
|
}).catch(() => {
|
|
180
|
-
|
|
194
|
+
he("获取租户失败,刷新后重试");
|
|
181
195
|
});
|
|
182
|
-
},
|
|
196
|
+
}, ee = () => {
|
|
183
197
|
var s;
|
|
184
|
-
|
|
198
|
+
w = ((s = we("SU.DEFAULT_PASSWORD")) == null ? void 0 : s.find((l) => l.dictCode === "default")).dictName;
|
|
185
199
|
};
|
|
186
|
-
return
|
|
187
|
-
|
|
200
|
+
return de(() => {
|
|
201
|
+
ee(), Z();
|
|
188
202
|
}), (e, s) => {
|
|
189
|
-
const l =
|
|
190
|
-
return
|
|
203
|
+
const l = r("ut-grid"), f = r("vxe-option"), te = r("vxe-select"), p = r("vxe-form-item"), k = r("ut-button"), se = r("vxe-form"), b = r("vxe-modal"), P = r("vxe-column"), oe = r("vxe-table"), ae = r("el-tree-v2"), le = r("ut-modal-form");
|
|
204
|
+
return h(), S("div", ye, [o(l, {
|
|
191
205
|
ref_key: "xgrid",
|
|
192
|
-
ref:
|
|
193
|
-
columns:
|
|
194
|
-
items:
|
|
206
|
+
ref: m,
|
|
207
|
+
columns: I,
|
|
208
|
+
items: A,
|
|
195
209
|
url: i,
|
|
196
210
|
"auto-load": !1,
|
|
197
|
-
"default-params":
|
|
211
|
+
"default-params": y.value,
|
|
212
|
+
buttons: E,
|
|
198
213
|
mode: "form",
|
|
199
|
-
onButtonClick:
|
|
200
|
-
}, null, 8, ["default-params"]), o(
|
|
214
|
+
onButtonClick: X
|
|
215
|
+
}, null, 8, ["default-params"]), o(b, {
|
|
201
216
|
modelValue: t.showModelView,
|
|
202
217
|
"onUpdate:modelValue": s[0] || (s[0] = (n) => t.showModelView = n),
|
|
203
218
|
title: "用户信息",
|
|
204
219
|
width: "300"
|
|
205
220
|
}, {
|
|
206
|
-
default:
|
|
221
|
+
default: u(() => [o(se, {
|
|
207
222
|
ref_key: "xForm",
|
|
208
|
-
ref:
|
|
223
|
+
ref: R,
|
|
209
224
|
data: t.record,
|
|
210
|
-
rules:
|
|
225
|
+
rules: L,
|
|
211
226
|
"title-align": "right"
|
|
212
227
|
}, {
|
|
213
|
-
default:
|
|
228
|
+
default: u(() => [o(p, {
|
|
214
229
|
title: e.$t("message.unitName"),
|
|
215
230
|
field: "unitId",
|
|
216
231
|
span: "24"
|
|
217
232
|
}, {
|
|
218
|
-
default:
|
|
233
|
+
default: u(({
|
|
219
234
|
data: n
|
|
220
|
-
}) => [o(
|
|
235
|
+
}) => [o(te, {
|
|
221
236
|
modelValue: n.unitId,
|
|
222
|
-
"onUpdate:modelValue": (
|
|
237
|
+
"onUpdate:modelValue": (g) => n.unitId = g
|
|
223
238
|
}, {
|
|
224
|
-
default:
|
|
225
|
-
key:
|
|
226
|
-
value:
|
|
227
|
-
label:
|
|
239
|
+
default: u(() => [(h(!0), S(x, null, ue(me(D), (g) => (h(), N(f, {
|
|
240
|
+
key: g.id,
|
|
241
|
+
value: g.id,
|
|
242
|
+
label: g.unitName
|
|
228
243
|
}, null, 8, ["value", "label"]))), 128))]),
|
|
229
244
|
_: 2
|
|
230
245
|
}, 1032, ["modelValue", "onUpdate:modelValue"])]),
|
|
231
246
|
_: 1
|
|
232
|
-
}, 8, ["title"]), o(
|
|
247
|
+
}, 8, ["title"]), o(p, {
|
|
233
248
|
title: e.$t("message.userCode"),
|
|
234
249
|
"item-render": {
|
|
235
250
|
name: "input",
|
|
@@ -239,14 +254,14 @@ const ve = {
|
|
|
239
254
|
},
|
|
240
255
|
field: "userName",
|
|
241
256
|
span: "24"
|
|
242
|
-
}, null, 8, ["title", "item-render"]), o(
|
|
257
|
+
}, null, 8, ["title", "item-render"]), o(p, {
|
|
243
258
|
title: e.$t("message.userName"),
|
|
244
259
|
field: "name",
|
|
245
260
|
span: "24",
|
|
246
261
|
"item-render": {
|
|
247
262
|
name: "input"
|
|
248
263
|
}
|
|
249
|
-
}, null, 8, ["title"]), t.dataStatus === "add" ? (
|
|
264
|
+
}, null, 8, ["title"]), t.dataStatus === "add" ? (h(), N(p, {
|
|
250
265
|
key: 0,
|
|
251
266
|
title: e.$t("message.userPwd"),
|
|
252
267
|
"item-render": {
|
|
@@ -254,61 +269,61 @@ const ve = {
|
|
|
254
269
|
},
|
|
255
270
|
field: "userPwd",
|
|
256
271
|
span: "24"
|
|
257
|
-
}, null, 8, ["title"])) :
|
|
272
|
+
}, null, 8, ["title"])) : $("", !0), o(p, {
|
|
258
273
|
align: "right",
|
|
259
274
|
span: "24"
|
|
260
275
|
}, {
|
|
261
|
-
default:
|
|
276
|
+
default: u(() => [o(k, {
|
|
262
277
|
content: "cancel",
|
|
263
278
|
icon: "ri-close-fill",
|
|
264
|
-
onClick:
|
|
279
|
+
onClick: V
|
|
265
280
|
}), o(k, {
|
|
266
281
|
content: "confirm",
|
|
267
282
|
icon: "ri-save-3-fill",
|
|
268
283
|
status: "u-cyan",
|
|
269
|
-
onClick:
|
|
284
|
+
onClick: K
|
|
270
285
|
})]),
|
|
271
286
|
_: 1
|
|
272
287
|
})]),
|
|
273
288
|
_: 1
|
|
274
289
|
}, 8, ["data"])]),
|
|
275
290
|
_: 1
|
|
276
|
-
}, 8, ["modelValue"]), o(
|
|
291
|
+
}, 8, ["modelValue"]), o(b, {
|
|
277
292
|
modelValue: t.showUserRole,
|
|
278
293
|
"onUpdate:modelValue": s[1] || (s[1] = (n) => t.showUserRole = n),
|
|
279
|
-
loading:
|
|
294
|
+
loading: c.value,
|
|
280
295
|
title: e.$t("message.title.roleInfo"),
|
|
281
296
|
width: "600"
|
|
282
297
|
}, {
|
|
283
|
-
default:
|
|
298
|
+
default: u(() => [o(oe, {
|
|
284
299
|
height: "300",
|
|
285
300
|
data: t.roleList,
|
|
286
301
|
border: ""
|
|
287
302
|
}, {
|
|
288
|
-
default:
|
|
303
|
+
default: u(() => [o(P, {
|
|
289
304
|
type: "seq",
|
|
290
305
|
width: "60"
|
|
291
|
-
}), o(
|
|
306
|
+
}), o(P, {
|
|
292
307
|
field: "roleName",
|
|
293
308
|
title: e.$t("message.udp.roleName")
|
|
294
|
-
}, null, 8, ["title"]), o(
|
|
309
|
+
}, null, 8, ["title"]), o(P, {
|
|
295
310
|
field: "roleDesc",
|
|
296
311
|
title: e.$t("message.udp.roleDesc")
|
|
297
312
|
}, null, 8, ["title"])]),
|
|
298
313
|
_: 1
|
|
299
314
|
}, 8, ["data"])]),
|
|
300
315
|
_: 1
|
|
301
|
-
}, 8, ["modelValue", "loading", "title"]), o(
|
|
316
|
+
}, 8, ["modelValue", "loading", "title"]), o(b, {
|
|
302
317
|
modelValue: t.showAuth,
|
|
303
318
|
"onUpdate:modelValue": s[2] || (s[2] = (n) => t.showAuth = n),
|
|
304
|
-
loading:
|
|
319
|
+
loading: c.value,
|
|
305
320
|
title: e.$t("message.title.authority", {
|
|
306
321
|
role: t.record.name || "88888"
|
|
307
322
|
}),
|
|
308
323
|
height: "620",
|
|
309
324
|
width: "560"
|
|
310
325
|
}, {
|
|
311
|
-
default:
|
|
326
|
+
default: u(() => [o(ae, {
|
|
312
327
|
ref: "xTree",
|
|
313
328
|
data: t.roleList,
|
|
314
329
|
props: {
|
|
@@ -319,23 +334,23 @@ const ve = {
|
|
|
319
334
|
"node-key": "id"
|
|
320
335
|
}, null, 8, ["data"])]),
|
|
321
336
|
_: 1
|
|
322
|
-
}, 8, ["modelValue", "loading", "title"]), t.showModal ? (
|
|
337
|
+
}, 8, ["modelValue", "loading", "title"]), t.showModal ? (h(), N(le, {
|
|
323
338
|
key: 0,
|
|
324
339
|
record: t.record,
|
|
325
340
|
items: t.items,
|
|
326
341
|
width: 360,
|
|
327
342
|
height: t.height,
|
|
328
343
|
method: t.record.id ? "put" : "post",
|
|
329
|
-
"data-process-method":
|
|
344
|
+
"data-process-method": z,
|
|
330
345
|
title: e.$t("message.title.userInfo"),
|
|
331
346
|
"data-status": "update",
|
|
332
347
|
url: i,
|
|
333
348
|
onClose: s[3] || (s[3] = (n) => t.showModal = !1),
|
|
334
|
-
onConfirm:
|
|
335
|
-
}, null, 8, ["record", "items", "height", "method", "title"])) :
|
|
349
|
+
onConfirm: H
|
|
350
|
+
}, null, 8, ["record", "items", "height", "method", "title"])) : $("", !0)]);
|
|
336
351
|
};
|
|
337
352
|
}
|
|
338
353
|
});
|
|
339
354
|
export {
|
|
340
|
-
|
|
355
|
+
xe as _
|
|
341
356
|
};
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { defineComponent as k, reactive as S, ref as
|
|
2
|
-
import { useI18n as
|
|
3
|
-
import { _ as N } from "./menuInfo.vue_vue_type_style_index_0_lang-
|
|
4
|
-
import { _ as
|
|
5
|
-
import { clone as
|
|
6
|
-
import { t as
|
|
7
|
-
import { VxeUI as
|
|
8
|
-
import { useRender as
|
|
9
|
-
import { y as
|
|
10
|
-
const
|
|
1
|
+
import { defineComponent as k, reactive as S, ref as D, createVNode as o, resolveComponent as i, Fragment as h, createElementBlock as A, openBlock as E } from "vue";
|
|
2
|
+
import { useI18n as I } from "vue-i18n";
|
|
3
|
+
import { _ as N } from "./menuInfo.vue_vue_type_style_index_0_lang-DgsifDrm.js";
|
|
4
|
+
import { _ as P } from "./AuthorityPanel.vue_vue_type_style_index_0_lang-DxhZjp1S.js";
|
|
5
|
+
import { clone as f } from "xe-utils";
|
|
6
|
+
import { t as R } from "./await-to-js.es5-BtRbN2QH.js";
|
|
7
|
+
import { VxeUI as M } from "vxe-pc-ui";
|
|
8
|
+
import { useRender as U } from "@utogether/utils";
|
|
9
|
+
import { y as W } from "./index-BabfUVv_.js";
|
|
10
|
+
const B = {
|
|
11
11
|
class: "page-content"
|
|
12
|
-
},
|
|
12
|
+
}, L = {
|
|
13
13
|
name: "SystemMenu"
|
|
14
|
-
},
|
|
15
|
-
...
|
|
16
|
-
setup(
|
|
14
|
+
}, G = /* @__PURE__ */ k({
|
|
15
|
+
...L,
|
|
16
|
+
setup(z) {
|
|
17
17
|
const t = S({
|
|
18
18
|
record: {},
|
|
19
19
|
dataList: [],
|
|
@@ -26,10 +26,10 @@ const W = {
|
|
|
26
26
|
pageNum: 1
|
|
27
27
|
}
|
|
28
28
|
}), {
|
|
29
|
-
t:
|
|
30
|
-
} =
|
|
29
|
+
t: g
|
|
30
|
+
} = I(), y = U(), d = W(), a = D(null), s = "/uums/menu";
|
|
31
31
|
let l;
|
|
32
|
-
const
|
|
32
|
+
const C = [{
|
|
33
33
|
type: "checkbox",
|
|
34
34
|
width: 50,
|
|
35
35
|
align: "center"
|
|
@@ -57,7 +57,7 @@ const W = {
|
|
|
57
57
|
}, {
|
|
58
58
|
field: "enabled",
|
|
59
59
|
width: 80,
|
|
60
|
-
cellRender:
|
|
60
|
+
cellRender: y.renderEnabled(b)
|
|
61
61
|
}, {
|
|
62
62
|
field: "operate",
|
|
63
63
|
width: 140,
|
|
@@ -66,81 +66,84 @@ const W = {
|
|
|
66
66
|
default: ({
|
|
67
67
|
row: e
|
|
68
68
|
}) => {
|
|
69
|
-
const n = e.menuType,
|
|
69
|
+
const n = e.menuType, r = o(i("ut-button"), {
|
|
70
70
|
status: "u-cyan",
|
|
71
71
|
icon: "ri-add-fill",
|
|
72
72
|
content: "add",
|
|
73
73
|
onTap: () => u(e)
|
|
74
|
-
}, null),
|
|
74
|
+
}, null), m = o(i("ut-button"), {
|
|
75
75
|
icon: "ri-lock-fill",
|
|
76
76
|
content: "auth",
|
|
77
|
-
onTap: () =>
|
|
77
|
+
onTap: () => v(e)
|
|
78
78
|
}, null);
|
|
79
|
-
return [o(
|
|
79
|
+
return [o(h, null, [n ? null : o(h, null, [o(i("ut-button"), {
|
|
80
80
|
status: "success",
|
|
81
81
|
icon: "ri-edit-box-line",
|
|
82
82
|
content: "edit",
|
|
83
|
-
onTap: () =>
|
|
84
|
-
}, null), ["0", "5"].includes(e.menuCategory) ?
|
|
83
|
+
onTap: () => T(e)
|
|
84
|
+
}, null), ["0", "5"].includes(e.menuCategory) ? r : m])])];
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
|
-
}],
|
|
87
|
+
}], w = ({
|
|
88
88
|
code: e
|
|
89
89
|
}) => {
|
|
90
|
-
e === "add" && u(), e === "del" &&
|
|
91
|
-
},
|
|
90
|
+
e === "add" && u(), e === "del" && x();
|
|
91
|
+
}, _ = async ({
|
|
92
92
|
row: e
|
|
93
93
|
}) => {
|
|
94
|
-
const n = await d.get(
|
|
94
|
+
const n = await d.get(s, {
|
|
95
95
|
parentId: e.id
|
|
96
96
|
});
|
|
97
|
-
return new Promise((
|
|
98
|
-
|
|
97
|
+
return new Promise((r) => {
|
|
98
|
+
r(n.list);
|
|
99
99
|
});
|
|
100
100
|
}, u = (e) => {
|
|
101
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.showLink = "Y", t.record.isApprovalPage = "N", 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;
|
|
102
|
-
},
|
|
103
|
-
t.showDrawer = !0, t.dataStatus = "update", t.record =
|
|
102
|
+
}, T = (e) => {
|
|
103
|
+
t.showDrawer = !0, t.dataStatus = "update", t.record = f(e, !0), t.record.menuType = t.record.menuType.toString(), t.record.dispalyCode = e.permissionCode;
|
|
104
104
|
};
|
|
105
|
-
async function
|
|
105
|
+
async function b({
|
|
106
106
|
row: e
|
|
107
107
|
}) {
|
|
108
|
-
await d.put(
|
|
108
|
+
await d.put(s, [e]), a.value.refreshData();
|
|
109
109
|
}
|
|
110
|
-
const
|
|
111
|
-
const e = await
|
|
110
|
+
const x = async () => {
|
|
111
|
+
const e = await M.modal.confirm(g("message.delRecord")), n = a.value.getInstance().getCheckboxRecords();
|
|
112
112
|
if (e === "confirm") {
|
|
113
|
-
const [
|
|
113
|
+
const [r, m] = await R(d.delete(s, n));
|
|
114
|
+
if (r) return;
|
|
115
|
+
const p = a.value.getInstance().getTreeParentRow(n[0]);
|
|
116
|
+
p ? a.value.getInstance().reloadTreeExpand(p) : a.value.refreshData();
|
|
114
117
|
}
|
|
115
|
-
},
|
|
116
|
-
t.showAuthority = !0, t.dataStatus = "update", t.record =
|
|
118
|
+
}, v = (e) => {
|
|
119
|
+
t.showAuthority = !0, t.dataStatus = "update", t.record = f(e, !0), t.record.menuType = t.record.menuType.toString(), t.record.dispalyCode = e.permissionCode;
|
|
117
120
|
}, c = (e, n) => {
|
|
118
|
-
e === "submit" && (l || n) &&
|
|
121
|
+
e === "submit" && (l || n) && a.value.getInstance().reloadTreeExpand(l || n), t.record = {}, t.showDrawer = !1, t.showAuthority = !1;
|
|
119
122
|
};
|
|
120
123
|
return (e, n) => {
|
|
121
|
-
const
|
|
122
|
-
return
|
|
124
|
+
const r = i("ut-grid");
|
|
125
|
+
return E(), A("div", B, [o(r, {
|
|
123
126
|
ref_key: "xgrid",
|
|
124
|
-
ref:
|
|
127
|
+
ref: a,
|
|
125
128
|
"tree-config": {
|
|
126
129
|
childrenField: "children",
|
|
127
130
|
lazy: !0,
|
|
128
131
|
hasChild: "hasChildren",
|
|
129
|
-
loadMethod:
|
|
132
|
+
loadMethod: _,
|
|
130
133
|
iconOpen: "ri-checkbox-indeterminate-line ri-lg",
|
|
131
134
|
iconClose: "ri-add-box-line ri-lg"
|
|
132
135
|
},
|
|
133
|
-
columns:
|
|
134
|
-
url:
|
|
136
|
+
columns: C,
|
|
137
|
+
url: s,
|
|
135
138
|
stripe: !1,
|
|
136
139
|
mode: "form",
|
|
137
|
-
onToolbarButtonClick:
|
|
140
|
+
onToolbarButtonClick: w
|
|
138
141
|
}, null, 8, ["tree-config"]), o(N, {
|
|
139
142
|
show: t.showDrawer,
|
|
140
143
|
record: t.record,
|
|
141
144
|
"data-status": t.dataStatus,
|
|
142
145
|
onClose: c
|
|
143
|
-
}, null, 8, ["show", "record", "data-status"]), o(
|
|
146
|
+
}, null, 8, ["show", "record", "data-status"]), o(P, {
|
|
144
147
|
show: t.showAuthority,
|
|
145
148
|
record: t.record,
|
|
146
149
|
onClose: c
|
|
@@ -149,5 +152,5 @@ const W = {
|
|
|
149
152
|
}
|
|
150
153
|
});
|
|
151
154
|
export {
|
|
152
|
-
|
|
155
|
+
G as default
|
|
153
156
|
};
|
|
@@ -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
2
|
import { t as S } from "./await-to-js.es5-BtRbN2QH.js";
|
|
3
|
-
import { y as V } from "./index-
|
|
3
|
+
import { y as V } from "./index-BabfUVv_.js";
|
|
4
4
|
const q = { class: "u-dict-config_wrapper" }, D = /* @__PURE__ */ R({
|
|
5
5
|
__name: "UserInfo",
|
|
6
6
|
props: {
|