@ximatai/muyun-web-app 0.26.5 → 0.26.6
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/{EmployeeDetailWorkspaceView-rm9ujeiQ.js → EmployeeDetailWorkspaceView-DHZ4arBj.js} +1 -1
- package/dist/{EmployeeManagementView-DyYMWQ64.js → EmployeeManagementView-BfGb_ssB.js} +573 -573
- package/dist/{MetadataOrchestrationView-DaPNQML7.js → MetadataOrchestrationView-BLxigKBh.js} +198 -198
- package/dist/ModuleActionManagementView-ByJzNkQs.js +597 -0
- package/dist/{RoleAuthorizationView-qQvn7M75.js → RoleAuthorizationView-DJSWY3fu.js} +76 -76
- package/dist/{RoleDetailWorkspaceView-C-vaKeZM.js → RoleDetailWorkspaceView-Dfdigf04.js} +1 -1
- package/dist/{RoleManagementView-C3nxfub2.js → RoleManagementView-D0e9nLwW.js} +504 -504
- package/dist/{SystemUserDetailWorkspaceView-FIbfff00.js → SystemUserDetailWorkspaceView-D-UPhCmD.js} +1 -1
- package/dist/{SystemUserManagementView-m6vwJDxI.js → SystemUserManagementView-DNKRvmDk.js} +251 -251
- package/dist/{UserDetailWorkspaceView-M--ndn6x.js → UserDetailWorkspaceView-BCSCLNSz.js} +1 -1
- package/dist/UserManagementView-aY2AeeWK.js +965 -0
- package/dist/index.css +1 -1
- package/dist/index.js +2187 -2213
- package/dist/pageRealtime-Be2xkeKK.js +225 -0
- package/dist/{platform-components-_3KlZZf5.js → platform-components-DuAohqJO.js} +2716 -1528
- package/dist/types/app/workbenchRouteSync.d.ts +13 -0
- package/dist/types/consumer/index.d.ts +10 -1
- package/dist/types/dynamic-page-runtime/DynamicModuleHost.vue.d.ts +8 -1
- package/dist/types/dynamic-page-runtime/index.d.ts +5 -0
- package/dist/types/dynamic-page-runtime/modulePageEnhancements.d.ts +126 -0
- package/dist/types/dynamic-page-runtime/modulePageListRefresh.d.ts +12 -0
- package/dist/types/dynamic-page-runtime/modulePageNavigation.d.ts +11 -0
- package/dist/types/platform-admin-runtime/PlatformAdminOutlet.vue.d.ts +1 -0
- package/dist/types/platform-admin-runtime/backendHttp.d.ts +1 -1
- package/dist/types/platform-admin-runtime/index.d.ts +3 -0
- package/dist/types/platform-admin-runtime/realtime.d.ts +9 -5
- package/dist/types/platform-admin-runtime/workspaceViewContract.d.ts +1 -36
- package/dist/types/platform-admin-runtime/workspaceViewHost.d.ts +2 -10
- package/dist/types/platform-admin-runtime/workspaceViews.d.ts +1 -17
- package/dist/types/platform-components/CrudRecordListExplorer.vue.d.ts +2 -2
- package/dist/types/platform-components/DateTimeText.vue.d.ts +1 -1
- package/dist/types/platform-components/FileSizeText.vue.d.ts +10 -0
- package/dist/types/platform-components/FileTransferUploader.vue.d.ts +51 -0
- package/dist/types/platform-components/RecordDetailExtensionSection.vue.d.ts +16 -0
- package/dist/types/platform-components/RecordDetailFields.vue.d.ts +1 -1
- package/dist/types/platform-components/RecordFileReferenceTransfer.vue.d.ts +19 -0
- package/dist/types/platform-components/RecordFormFields.vue.d.ts +4 -0
- package/dist/types/platform-components/RecordListExplorer.vue.d.ts +2 -2
- package/dist/types/platform-components/RecordModeDrawer.vue.d.ts +1 -0
- package/dist/types/platform-components/RecordMultiPicker.vue.d.ts +33 -0
- package/dist/types/platform-components/RecordPanelButton.vue.d.ts +33 -0
- package/dist/types/platform-components/RecordPanelState.vue.d.ts +11 -0
- package/dist/types/platform-components/RecordPicker.vue.d.ts +1 -1
- package/dist/types/platform-components/RecordQueryListPanel.vue.d.ts +47 -2
- package/dist/types/platform-components/RecordStatusTag.vue.d.ts +6 -1
- package/dist/types/platform-components/RecordTagList.vue.d.ts +7 -0
- package/dist/types/platform-components/TreeRecordExplorer.vue.d.ts +2 -2
- package/dist/types/platform-components/fileReferenceTransfer.d.ts +17 -0
- package/dist/types/platform-components/fileTransferUpload.d.ts +43 -0
- package/dist/types/platform-components/index.d.ts +14 -1
- package/dist/types/platform-components/platformErrorFeedback.d.ts +2 -0
- package/dist/types/platform-components/platformFileSize.d.ts +10 -0
- package/dist/types/platform-components/recordActionBarModel.d.ts +6 -1
- package/dist/types/platform-components/recordFormFieldModel.d.ts +21 -3
- package/dist/types/platform-workbench/Workbench.vue.d.ts +2 -2
- package/dist/types/platform-workbench/WorkbenchBrandControl.vue.d.ts +21 -0
- package/dist/types/platform-workbench/WorkbenchMenu.vue.d.ts +15 -1
- package/dist/types/platform-workbench/WorkbenchMenuTree.vue.d.ts +2 -0
- package/dist/types/platform-workbench/WorkspaceViewOutlet.vue.d.ts +7 -0
- package/dist/types/platform-workbench/index.d.ts +7 -0
- package/dist/types/platform-workbench/menuPointerAim.d.ts +11 -0
- package/dist/types/platform-workbench/workbenchLayout.d.ts +1 -0
- package/dist/types/platform-workbench/workspaceViewContract.d.ts +20 -0
- package/dist/types/platform-workbench/workspaceViewHost.d.ts +8 -0
- package/dist/types/platform-workbench/workspaceViews.d.ts +21 -0
- package/dist/types/views/employeeDetailWorkspaceView.d.ts +1 -1
- package/dist/types/views/metadataOrchestrationWorkspaceView.d.ts +1 -1
- package/dist/types/views/moduleActionManagementWorkspaceView.d.ts +1 -1
- package/dist/types/views/roleAuthorizationWorkspaceView.d.ts +1 -1
- package/dist/types/views/roleDetailWorkspaceView.d.ts +1 -1
- package/dist/types/views/systemUserDetailWorkspaceView.d.ts +1 -1
- package/dist/types/views/userDetailWorkspaceView.d.ts +1 -1
- package/dist/types/vue-ui-antdv/components/UiColorPicker.vue.d.ts +14 -0
- package/dist/types/vue-ui-antdv/components/UiIcon.vue.d.ts +1 -1
- package/dist/types/vue-ui-antdv/components/UiRecordExplorerItem.vue.d.ts +3 -3
- package/dist/types/vue-ui-antdv/components/UiSelect.vue.d.ts +1 -1
- package/dist/types/vue-ui-antdv/components/UiTagList.vue.d.ts +17 -0
- package/dist/types/vue-ui-antdv/components/UiTree.vue.d.ts +3 -3
- package/dist/types/vue-ui-antdv/components/UiTreeSelect.vue.d.ts +1 -1
- package/dist/types/vue-ui-antdv/index.d.ts +3 -0
- package/dist/types/vue-ui-antdv/types.d.ts +3 -9
- package/dist/types/web-contracts/index.d.ts +111 -1
- package/dist/types/web-core/clients.d.ts +6 -1
- package/dist/types/web-core/http.d.ts +12 -1
- package/dist/types/web-core/module/staticModuleClient.d.ts +1 -0
- package/dist/{useUserSessionRows-iAqK_cUy.js → useUserSessionRows-DX9qYU5r.js} +2 -2
- package/dist/workspaceViewSessions-C3GP1UGp.js +2639 -0
- package/package.json +1 -1
- package/dist/ModuleActionManagementView-BFoPGqzC.js +0 -597
- package/dist/UserManagementView-MSXf4fno.js +0 -965
- package/dist/pageRealtime-4LXXvVW7.js +0 -140
- package/dist/workspaceViewSessions-DW0wbyQ_.js +0 -1448
|
@@ -1,50 +1,50 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { i as pe, n as me } from "./pageRealtime-
|
|
4
|
-
import { t as he } from "./useUserSessionRows-
|
|
5
|
-
import { Fragment as ge, computed as h, createBlock as g, createCommentVNode as _, createElementBlock as v, createElementVNode as y, createTextVNode as b, createVNode as x, defineComponent as S, onBeforeUnmount as _e, onMounted as ve, openBlock as C, ref as w, resolveComponent as
|
|
1
|
+
import { $ as e, A as t, Et as n, Fn as r, I as i, M as a, N as o, Nt as ee, O as te, S as ne, Tt as re, _ as s, at as ie, c as ae, g as oe, i as c, m as se, r as ce, tt as l, v as le, w as ue, xt as u } from "./platform-components-DuAohqJO.js";
|
|
2
|
+
import { c as d, i as de, n as f, r as p, t as m, x as fe } from "./workspaceViewSessions-C3GP1UGp.js";
|
|
3
|
+
import { i as pe, n as me } from "./pageRealtime-Be2xkeKK.js";
|
|
4
|
+
import { t as he } from "./useUserSessionRows-DX9qYU5r.js";
|
|
5
|
+
import { Fragment as ge, computed as h, createBlock as g, createCommentVNode as _, createElementBlock as v, createElementVNode as y, createTextVNode as b, createVNode as x, defineComponent as S, onBeforeUnmount as _e, onMounted as ve, openBlock as C, ref as w, resolveComponent as ye, unref as T, watch as be, withCtx as E, withModifiers as xe } from "vue";
|
|
6
6
|
//#region src/views/systemUserDetailWorkspaceSession.ts
|
|
7
|
-
function
|
|
7
|
+
function Se(e, t) {
|
|
8
8
|
return m(d, e, {
|
|
9
9
|
...t,
|
|
10
10
|
selectedUser: { ...t.selectedUser },
|
|
11
11
|
draft: { ...t.draft }
|
|
12
12
|
});
|
|
13
13
|
}
|
|
14
|
-
function
|
|
14
|
+
function Ce(e, t) {
|
|
15
15
|
return f(d, e, t);
|
|
16
16
|
}
|
|
17
|
-
function
|
|
17
|
+
function we(e) {
|
|
18
18
|
return p(d, e);
|
|
19
19
|
}
|
|
20
20
|
//#endregion
|
|
21
21
|
//#region src/views/SystemUserManagementView.vue?vue&type=script&setup=true&lang.ts
|
|
22
|
-
var
|
|
22
|
+
var Te = { class: "system-user-management-page" }, Ee = { class: "system-user-detail-state" }, De = {
|
|
23
23
|
key: 0,
|
|
24
24
|
class: "system-user-password-reset-result"
|
|
25
|
-
},
|
|
25
|
+
}, Oe = { key: 0 }, ke = { key: 1 }, Ae = {
|
|
26
26
|
key: 1,
|
|
27
27
|
class: "system-user-detail-state"
|
|
28
|
-
},
|
|
28
|
+
}, je = {
|
|
29
29
|
key: 0,
|
|
30
30
|
class: "system-user-password-reset-result"
|
|
31
|
-
},
|
|
31
|
+
}, Me = { key: 0 }, Ne = { key: 1 }, D = /*#__PURE__*/ n(/* @__PURE__ */ S({
|
|
32
32
|
name: "SystemUserManagementView",
|
|
33
33
|
__name: "SystemUserManagementView",
|
|
34
34
|
props: {
|
|
35
35
|
recordId: {},
|
|
36
36
|
mode: {}
|
|
37
37
|
},
|
|
38
|
-
setup(
|
|
39
|
-
let f =
|
|
38
|
+
setup(n) {
|
|
39
|
+
let f = n, p = ee({ moduleAlias: "iam.user" }), m = fe(), S = w(), D = w(), O = w(!1), k = w("view"), A = w(!1), j = w(!1), M = w(!1), N = w(0), P = w(0), F = w(_t()), I = w(""), L = w(), R = w(o(void 0)), z = h(() => !!f.recordId), B = h(() => z.value && m?.presentation === "drawer"), Pe = h(() => !z.value || B.value), { expandedUserKeys: Fe, handleUserListLoaded: Ie, handleUserRowExpand: Le, handleUserSessionBusinessEvent: Re, loadUserSessions: ze, userOnlineStatusTitle: Be, userSessionState: V } = he({
|
|
40
40
|
context: p,
|
|
41
41
|
source: "system-user-management"
|
|
42
|
-
}),
|
|
42
|
+
}), H = pe({
|
|
43
43
|
moduleAlias: "iam.user",
|
|
44
|
-
recordId: () =>
|
|
45
|
-
editing: () =>
|
|
46
|
-
saving: () =>
|
|
47
|
-
}),
|
|
44
|
+
recordId: () => D.value?.id,
|
|
45
|
+
editing: () => k.value === "edit",
|
|
46
|
+
saving: () => M.value
|
|
47
|
+
}), U = h(() => Ze(p)), Ve = h(() => [
|
|
48
48
|
{
|
|
49
49
|
key: "username",
|
|
50
50
|
title: "账号",
|
|
@@ -73,74 +73,74 @@ var we = { class: "system-user-management-page" }, Te = { class: "system-user-de
|
|
|
73
73
|
type: "enabledStatus",
|
|
74
74
|
width: "14%"
|
|
75
75
|
}
|
|
76
|
-
]),
|
|
77
|
-
if (
|
|
78
|
-
if (
|
|
79
|
-
if (
|
|
80
|
-
let e =
|
|
76
|
+
]), He = h(() => $(D.value ?? F.value)), Ue = h(() => k.value === "resetPassword" ? "修改密码" : "系统账号"), W = h(() => M.value || A.value), G = h(() => {
|
|
77
|
+
if (A.value) return !1;
|
|
78
|
+
if (k.value === "edit") return !!D.value?.id && p.can("update") === !0;
|
|
79
|
+
if (k.value === "resetPassword") {
|
|
80
|
+
let e = D.value?.id;
|
|
81
81
|
return !!e && p.can("changePassword", e) === !0;
|
|
82
82
|
}
|
|
83
83
|
return !1;
|
|
84
|
-
}),
|
|
84
|
+
}), K = h(() => !D.value?.id || A.value ? !1 : p.can(St(D.value)) === !0), We = h(() => k.value === "view" ? D.value?.id ? [
|
|
85
85
|
{
|
|
86
86
|
key: "edit",
|
|
87
87
|
actionCode: "update",
|
|
88
88
|
title: "编辑",
|
|
89
89
|
iconName: "edit",
|
|
90
|
-
disabled:
|
|
90
|
+
disabled: M.value
|
|
91
91
|
},
|
|
92
92
|
{
|
|
93
93
|
key: "resetPassword",
|
|
94
94
|
actionCode: "changePassword",
|
|
95
95
|
title: "修改密码",
|
|
96
96
|
iconName: "lock",
|
|
97
|
-
disabled:
|
|
97
|
+
disabled: M.value
|
|
98
98
|
},
|
|
99
99
|
{
|
|
100
100
|
key: "resetGeneratedPassword",
|
|
101
101
|
actionCode: "resetPassword",
|
|
102
102
|
title: "重置密码",
|
|
103
103
|
iconName: "reload",
|
|
104
|
-
disabled:
|
|
104
|
+
disabled: M.value
|
|
105
105
|
}
|
|
106
106
|
] : [] : [{
|
|
107
107
|
key: "cancel",
|
|
108
108
|
title: "取消",
|
|
109
109
|
iconName: "close",
|
|
110
|
-
disabled:
|
|
110
|
+
disabled: M.value
|
|
111
111
|
}, {
|
|
112
112
|
key: "save",
|
|
113
|
-
actionCode:
|
|
113
|
+
actionCode: k.value === "resetPassword" ? "changePassword" : "update",
|
|
114
114
|
title: "保存",
|
|
115
115
|
iconName: "save",
|
|
116
116
|
primary: !0,
|
|
117
|
-
loading:
|
|
118
|
-
disabled: !
|
|
119
|
-
}]), Ge = h(() => We.value), Ke =
|
|
117
|
+
loading: M.value,
|
|
118
|
+
disabled: !G.value
|
|
119
|
+
}]), Ge = h(() => We.value), Ke = de({
|
|
120
120
|
view: d,
|
|
121
121
|
input: h(() => {
|
|
122
|
-
let e =
|
|
123
|
-
return e && (
|
|
122
|
+
let e = D.value?.id;
|
|
123
|
+
return e && (k.value === "view" || k.value === "edit") ? { recordId: e } : void 0;
|
|
124
124
|
}),
|
|
125
|
-
title: h(() => $(
|
|
125
|
+
title: h(() => $(D.value)),
|
|
126
126
|
eligibility: h(() => ({
|
|
127
|
-
hasStableIdentity: !!
|
|
128
|
-
busy:
|
|
127
|
+
hasStableIdentity: !!D.value?.id && !A.value,
|
|
128
|
+
busy: M.value
|
|
129
129
|
})),
|
|
130
130
|
beforePromote: async (e) => {
|
|
131
|
-
let t =
|
|
132
|
-
if (t) return await
|
|
131
|
+
let t = D.value;
|
|
132
|
+
if (t) return await Se(e, {
|
|
133
133
|
selectedUser: t,
|
|
134
|
-
draft:
|
|
135
|
-
mode:
|
|
136
|
-
password:
|
|
137
|
-
resetPasswordResult:
|
|
134
|
+
draft: F.value,
|
|
135
|
+
mode: k.value === "edit" ? "edit" : "view",
|
|
136
|
+
password: I.value,
|
|
137
|
+
resetPasswordResult: L.value
|
|
138
138
|
}) === "accepted";
|
|
139
139
|
},
|
|
140
140
|
onPromoted: nt
|
|
141
141
|
});
|
|
142
|
-
|
|
143
|
-
!
|
|
142
|
+
be(D, (e) => {
|
|
143
|
+
!z.value || !e || m?.setTitle($(e));
|
|
144
144
|
}, { immediate: !0 });
|
|
145
145
|
let q = h(() => ({
|
|
146
146
|
username: {
|
|
@@ -158,24 +158,24 @@ var we = { class: "system-user-management-page" }, Te = { class: "system-user-de
|
|
|
158
158
|
ve(() => {
|
|
159
159
|
if (Xe(), f.recordId) {
|
|
160
160
|
let e = { recordId: f.recordId };
|
|
161
|
-
|
|
162
|
-
let t =
|
|
161
|
+
B.value || (Je = Ce(e, Ye));
|
|
162
|
+
let t = we(e);
|
|
163
163
|
if (t) {
|
|
164
|
-
|
|
164
|
+
mt(t);
|
|
165
165
|
return;
|
|
166
166
|
}
|
|
167
167
|
J({ id: f.recordId }, f.mode ?? "view");
|
|
168
168
|
}
|
|
169
169
|
}), _e(() => Je?.());
|
|
170
170
|
function Ye(e) {
|
|
171
|
-
return
|
|
171
|
+
return k.value === "view" ? (mt(e), !0) : !1;
|
|
172
172
|
}
|
|
173
|
-
me(
|
|
173
|
+
me(Re);
|
|
174
174
|
async function Xe() {
|
|
175
175
|
try {
|
|
176
|
-
|
|
177
|
-
} catch (
|
|
178
|
-
|
|
176
|
+
R.value = o((await p.runtime.ready).uiDescriptor);
|
|
177
|
+
} catch (t) {
|
|
178
|
+
e(t, {
|
|
179
179
|
source: "system-user-management",
|
|
180
180
|
phase: "load"
|
|
181
181
|
});
|
|
@@ -213,7 +213,7 @@ var we = { class: "system-user-management-page" }, Te = { class: "system-user-de
|
|
|
213
213
|
}];
|
|
214
214
|
}
|
|
215
215
|
function et(e, t) {
|
|
216
|
-
if (
|
|
216
|
+
if (X()) {
|
|
217
217
|
if (e.key === "view") {
|
|
218
218
|
J(t, "view");
|
|
219
219
|
return;
|
|
@@ -222,20 +222,20 @@ var we = { class: "system-user-management-page" }, Te = { class: "system-user-de
|
|
|
222
222
|
}
|
|
223
223
|
}
|
|
224
224
|
function tt(e) {
|
|
225
|
-
|
|
226
|
-
}
|
|
227
|
-
async function J(
|
|
228
|
-
if (!
|
|
229
|
-
let
|
|
230
|
-
if (!
|
|
231
|
-
S.value =
|
|
232
|
-
let i =
|
|
233
|
-
|
|
225
|
+
X() && J(e, "view");
|
|
226
|
+
}
|
|
227
|
+
async function J(t, n) {
|
|
228
|
+
if (!X()) return;
|
|
229
|
+
let r = String(t.id ?? "");
|
|
230
|
+
if (!r) return;
|
|
231
|
+
S.value = r, H.clearExternalChanged(), O.value = !0, k.value = n, D.value = void 0, F.value = Q(t), I.value = "", L.value = void 0, A.value = !0, j.value = !1;
|
|
232
|
+
let i = N.value + 1;
|
|
233
|
+
N.value = i;
|
|
234
234
|
try {
|
|
235
|
-
let e = await p.crud.view(
|
|
236
|
-
if (!
|
|
235
|
+
let e = await p.crud.view(r);
|
|
236
|
+
if (!pt(r, i)) return;
|
|
237
237
|
if (!e?.id) {
|
|
238
|
-
|
|
238
|
+
j.value = !0, l("未找到指定系统账号", {
|
|
239
239
|
source: "system-user-management",
|
|
240
240
|
phase: "load"
|
|
241
241
|
});
|
|
@@ -245,32 +245,32 @@ var we = { class: "system-user-management-page" }, Te = { class: "system-user-de
|
|
|
245
245
|
rt();
|
|
246
246
|
return;
|
|
247
247
|
}
|
|
248
|
-
|
|
249
|
-
} catch (
|
|
250
|
-
|
|
248
|
+
Z(e, n);
|
|
249
|
+
} catch (t) {
|
|
250
|
+
pt(r, i) && (j.value = !0, e(t, {
|
|
251
251
|
source: "system-user-management",
|
|
252
252
|
phase: "load"
|
|
253
253
|
}));
|
|
254
254
|
} finally {
|
|
255
|
-
|
|
255
|
+
pt(r, i) && (A.value = !1);
|
|
256
256
|
}
|
|
257
257
|
}
|
|
258
258
|
function nt() {
|
|
259
|
-
|
|
259
|
+
M.value || (N.value += 1, A.value = !1, j.value = !1, O.value = !1, k.value = "view", I.value = "", L.value = void 0, H.clearExternalChanged(), F.value = D.value ? Q(D.value) : _t(), B.value && m?.dismiss());
|
|
260
260
|
}
|
|
261
261
|
function rt() {
|
|
262
|
-
|
|
262
|
+
N.value += 1, A.value = !1, j.value = !1, O.value = !1, D.value = void 0, S.value = void 0, F.value = _t(), l("指定账号不属于系统账号管理范围", {
|
|
263
263
|
source: "system-user-management",
|
|
264
264
|
phase: "validation"
|
|
265
|
-
}),
|
|
265
|
+
}), z.value && m?.dismiss();
|
|
266
266
|
}
|
|
267
267
|
function it() {
|
|
268
|
-
if (!
|
|
269
|
-
if (!
|
|
268
|
+
if (!M.value) {
|
|
269
|
+
if (!D.value?.id) {
|
|
270
270
|
nt();
|
|
271
271
|
return;
|
|
272
272
|
}
|
|
273
|
-
|
|
273
|
+
F.value = Q(D.value), I.value = "", L.value = void 0, H.clearExternalChanged(), k.value = "view", A.value = !1, j.value = !1;
|
|
274
274
|
}
|
|
275
275
|
}
|
|
276
276
|
function at(e) {
|
|
@@ -279,60 +279,60 @@ var we = { class: "system-user-management-page" }, Te = { class: "system-user-de
|
|
|
279
279
|
return;
|
|
280
280
|
}
|
|
281
281
|
if (e.key === "save") {
|
|
282
|
-
|
|
282
|
+
st();
|
|
283
283
|
return;
|
|
284
284
|
}
|
|
285
|
-
if (
|
|
286
|
-
if (e.key === "edit" &&
|
|
287
|
-
|
|
285
|
+
if (X()) {
|
|
286
|
+
if (e.key === "edit" && D.value) {
|
|
287
|
+
F.value = Q(D.value), H.clearExternalChanged(), k.value = "edit";
|
|
288
288
|
return;
|
|
289
289
|
}
|
|
290
|
-
if (e.key === "resetPassword" &&
|
|
291
|
-
|
|
290
|
+
if (e.key === "resetPassword" && D.value) {
|
|
291
|
+
I.value = "", L.value = void 0, H.clearExternalChanged(), k.value = "resetPassword";
|
|
292
292
|
return;
|
|
293
293
|
}
|
|
294
|
-
e.key === "resetGeneratedPassword" &&
|
|
294
|
+
e.key === "resetGeneratedPassword" && D.value && lt();
|
|
295
295
|
}
|
|
296
296
|
}
|
|
297
|
-
function
|
|
298
|
-
let e = String(
|
|
297
|
+
function Y() {
|
|
298
|
+
let e = String(F.value.id ?? S.value ?? "");
|
|
299
299
|
e && J({
|
|
300
|
-
...
|
|
300
|
+
...F.value,
|
|
301
301
|
id: e
|
|
302
|
-
},
|
|
302
|
+
}, k.value);
|
|
303
303
|
}
|
|
304
|
-
function
|
|
305
|
-
let e = String(
|
|
306
|
-
e && (
|
|
307
|
-
...
|
|
304
|
+
function ot() {
|
|
305
|
+
let e = String(H.externalChangedRecordId.value ?? F.value.id ?? S.value ?? "");
|
|
306
|
+
e && (H.clearExternalChanged(), J({
|
|
307
|
+
...F.value,
|
|
308
308
|
id: e
|
|
309
309
|
}, "edit"));
|
|
310
310
|
}
|
|
311
|
-
async function
|
|
312
|
-
if (
|
|
313
|
-
await
|
|
311
|
+
async function st() {
|
|
312
|
+
if (k.value === "resetPassword") {
|
|
313
|
+
await ct();
|
|
314
314
|
return;
|
|
315
315
|
}
|
|
316
316
|
await ce({
|
|
317
|
-
loading:
|
|
317
|
+
loading: M,
|
|
318
318
|
mode: "edit",
|
|
319
319
|
source: "system-user-management",
|
|
320
|
-
canSave: () =>
|
|
320
|
+
canSave: () => G.value,
|
|
321
321
|
deniedMessage: "当前用户无权保存系统账号",
|
|
322
|
-
createRecord: () => vt(
|
|
322
|
+
createRecord: () => vt(F.value),
|
|
323
323
|
validateRecord: yt,
|
|
324
|
-
save: (e) => p.crud.update(
|
|
324
|
+
save: (e) => p.crud.update(D.value.id, e),
|
|
325
325
|
actionErrorHandlers: [{
|
|
326
|
-
code:
|
|
327
|
-
handle: (e, { mode: t, record: n }) => t === "edit" &&
|
|
326
|
+
code: r.conflictVersion,
|
|
327
|
+
handle: (e, { mode: t, record: n }) => t === "edit" && H.markExternalRecordChanged(n.id)
|
|
328
328
|
}],
|
|
329
329
|
onSaved: ({ record: e }) => {
|
|
330
|
-
|
|
330
|
+
Z(e), P.value += 1;
|
|
331
331
|
}
|
|
332
332
|
});
|
|
333
333
|
}
|
|
334
|
-
async function
|
|
335
|
-
if (!
|
|
334
|
+
async function ct() {
|
|
335
|
+
if (!I.value.trim()) {
|
|
336
336
|
l("请填写新密码", {
|
|
337
337
|
source: "system-user-management",
|
|
338
338
|
phase: "validation"
|
|
@@ -340,26 +340,26 @@ var we = { class: "system-user-management-page" }, Te = { class: "system-user-de
|
|
|
340
340
|
return;
|
|
341
341
|
}
|
|
342
342
|
await c({
|
|
343
|
-
loading:
|
|
343
|
+
loading: M,
|
|
344
344
|
source: "system-user-management",
|
|
345
|
-
record: () =>
|
|
346
|
-
canExecute: () =>
|
|
345
|
+
record: () => D.value?.id ? D.value : void 0,
|
|
346
|
+
canExecute: () => G.value,
|
|
347
347
|
deniedMessage: "当前用户无权重置系统账号密码",
|
|
348
348
|
execute: (e) => p.http.request({
|
|
349
349
|
method: "POST",
|
|
350
350
|
path: `/iam.user/changePassword/${encodeURIComponent(e.id)}`,
|
|
351
|
-
body: { password:
|
|
351
|
+
body: { password: I.value }
|
|
352
352
|
}),
|
|
353
353
|
onExecuted: async (e, t) => {
|
|
354
|
-
|
|
354
|
+
Z(await p.crud.view(t.id)), P.value += 1;
|
|
355
355
|
}
|
|
356
356
|
});
|
|
357
357
|
}
|
|
358
|
-
async function
|
|
358
|
+
async function lt() {
|
|
359
359
|
await c({
|
|
360
|
-
loading:
|
|
360
|
+
loading: M,
|
|
361
361
|
source: "system-user-management",
|
|
362
|
-
record: () =>
|
|
362
|
+
record: () => D.value?.id ? D.value : void 0,
|
|
363
363
|
canExecute: (e) => p.can("resetPassword", e.id) === !0,
|
|
364
364
|
deniedMessage: "当前用户无权重置系统账号密码",
|
|
365
365
|
execute: (e) => p.http.request({
|
|
@@ -367,18 +367,18 @@ var we = { class: "system-user-management-page" }, Te = { class: "system-user-de
|
|
|
367
367
|
path: `/iam.user/resetPassword/${encodeURIComponent(e.id)}`
|
|
368
368
|
}),
|
|
369
369
|
onExecuted: async (e, t) => {
|
|
370
|
-
|
|
370
|
+
Z(await p.crud.view(t.id)), L.value = e, P.value += 1;
|
|
371
371
|
}
|
|
372
372
|
});
|
|
373
373
|
}
|
|
374
|
-
async function
|
|
374
|
+
async function ut(e, t) {
|
|
375
375
|
await c({
|
|
376
|
-
loading:
|
|
376
|
+
loading: M,
|
|
377
377
|
source: "system-user-management",
|
|
378
378
|
record: () => e?.id ? e : void 0,
|
|
379
379
|
canExecute: (e) => p.can("revokeSession", e.id) === !0 && !t.current,
|
|
380
380
|
deniedMessage: "当前用户无权下线该登录会话",
|
|
381
|
-
confirm: (e) =>
|
|
381
|
+
confirm: (e) => ie({
|
|
382
382
|
title: "下线登录会话",
|
|
383
383
|
content: `确认下线系统账号「${$(e)}」的该登录会话?`,
|
|
384
384
|
okText: "下线",
|
|
@@ -389,12 +389,12 @@ var we = { class: "system-user-management-page" }, Te = { class: "system-user-de
|
|
|
389
389
|
path: `/iam.user/${encodeURIComponent(e.id)}/sessions/${encodeURIComponent(t.id)}/revoke`
|
|
390
390
|
}),
|
|
391
391
|
onExecuted: (e, t) => {
|
|
392
|
-
|
|
392
|
+
ze(t.id), P.value += 1;
|
|
393
393
|
}
|
|
394
394
|
});
|
|
395
395
|
}
|
|
396
|
-
async function
|
|
397
|
-
let t =
|
|
396
|
+
async function dt(e) {
|
|
397
|
+
let t = ht(String(e.id ?? "")).map((e) => e.id);
|
|
398
398
|
if (t.length === 0) {
|
|
399
399
|
l("当前没有可下线的登录会话", {
|
|
400
400
|
source: "system-user-management",
|
|
@@ -403,12 +403,12 @@ var we = { class: "system-user-management-page" }, Te = { class: "system-user-de
|
|
|
403
403
|
return;
|
|
404
404
|
}
|
|
405
405
|
await c({
|
|
406
|
-
loading:
|
|
406
|
+
loading: M,
|
|
407
407
|
source: "system-user-management",
|
|
408
408
|
record: () => e?.id ? e : void 0,
|
|
409
409
|
canExecute: (e) => p.can("revokeSessions", e.id) === !0,
|
|
410
410
|
deniedMessage: "当前用户无权批量下线登录会话",
|
|
411
|
-
confirm: (e) =>
|
|
411
|
+
confirm: (e) => ie({
|
|
412
412
|
title: "批量下线登录会话",
|
|
413
413
|
content: `确认下线系统账号「${$(e)}」的 ${t.length} 个登录会话?`,
|
|
414
414
|
okText: "全部下线",
|
|
@@ -420,42 +420,42 @@ var we = { class: "system-user-management-page" }, Te = { class: "system-user-de
|
|
|
420
420
|
body: { sessionIds: t }
|
|
421
421
|
}),
|
|
422
422
|
onExecuted: (e, t) => {
|
|
423
|
-
|
|
423
|
+
ze(t.id), P.value += 1;
|
|
424
424
|
}
|
|
425
425
|
});
|
|
426
426
|
}
|
|
427
|
-
async function
|
|
427
|
+
async function ft() {
|
|
428
428
|
await c({
|
|
429
|
-
loading:
|
|
429
|
+
loading: M,
|
|
430
430
|
source: "system-user-management",
|
|
431
|
-
record: () =>
|
|
432
|
-
canExecute: () =>
|
|
431
|
+
record: () => D.value?.id ? D.value : void 0,
|
|
432
|
+
canExecute: () => K.value,
|
|
433
433
|
deniedMessage: "当前用户无权变更系统账号启停状态",
|
|
434
434
|
execute: (e) => e.enabled === !1 ? p.crud.enable(e.id, { version: e.version }) : p.crud.disable(e.id, { version: e.version }),
|
|
435
435
|
onExecuted: async (e, t) => {
|
|
436
|
-
|
|
436
|
+
Z(await p.crud.view(t.id)), P.value += 1;
|
|
437
437
|
}
|
|
438
438
|
});
|
|
439
439
|
}
|
|
440
|
-
function
|
|
441
|
-
return !
|
|
440
|
+
function X() {
|
|
441
|
+
return !M.value;
|
|
442
442
|
}
|
|
443
|
-
function
|
|
444
|
-
return
|
|
443
|
+
function pt(e, t) {
|
|
444
|
+
return N.value === t && S.value === e;
|
|
445
445
|
}
|
|
446
|
-
function
|
|
447
|
-
|
|
446
|
+
function Z(e, t = "view") {
|
|
447
|
+
D.value = e, S.value = e.id, F.value = Q(e), I.value = "", k.value = t === "edit" ? "edit" : "view", H.clearExternalChanged(), O.value = !0, A.value = !1, j.value = !1, N.value += 1;
|
|
448
448
|
}
|
|
449
|
-
function
|
|
450
|
-
S.value = e.selectedUser.id,
|
|
449
|
+
function mt(e) {
|
|
450
|
+
S.value = e.selectedUser.id, D.value = { ...e.selectedUser }, F.value = Q(e.draft), k.value = e.mode, I.value = e.password, L.value = e.resetPasswordResult, O.value = !0, A.value = !1, j.value = !1;
|
|
451
451
|
}
|
|
452
|
-
function
|
|
453
|
-
return !e || p.can("revokeSession", e) !== !0 ? [] :
|
|
452
|
+
function ht(e) {
|
|
453
|
+
return !e || p.can("revokeSession", e) !== !0 ? [] : V(e).records.filter((e) => !e.current);
|
|
454
454
|
}
|
|
455
|
-
function
|
|
455
|
+
function gt(e, t) {
|
|
456
456
|
return !!e && !t.current && p.can("revokeSession", e) === !0;
|
|
457
457
|
}
|
|
458
|
-
function
|
|
458
|
+
function _t() {
|
|
459
459
|
return { enabled: !0 };
|
|
460
460
|
}
|
|
461
461
|
function Q(e) {
|
|
@@ -465,7 +465,7 @@ var we = { class: "system-user-management-page" }, Te = { class: "system-user-de
|
|
|
465
465
|
};
|
|
466
466
|
}
|
|
467
467
|
function vt(e) {
|
|
468
|
-
return
|
|
468
|
+
return ae(e, {
|
|
469
469
|
tenantId: void 0,
|
|
470
470
|
username: e.username?.trim(),
|
|
471
471
|
enabled: e.enabled !== !1,
|
|
@@ -473,19 +473,19 @@ var we = { class: "system-user-management-page" }, Te = { class: "system-user-de
|
|
|
473
473
|
});
|
|
474
474
|
}
|
|
475
475
|
function yt(e) {
|
|
476
|
-
let t =
|
|
477
|
-
fields:
|
|
476
|
+
let t = a("username", {
|
|
477
|
+
fields: R.value,
|
|
478
478
|
fallback: q.value
|
|
479
479
|
});
|
|
480
480
|
if (t.visible && t.required && !e.username) return `请填写${t.label}`;
|
|
481
|
-
if (
|
|
481
|
+
if (k.value === "resetPassword" && !I.value.trim()) return "请填写新密码";
|
|
482
482
|
}
|
|
483
483
|
function bt(e) {
|
|
484
484
|
return e === "username";
|
|
485
485
|
}
|
|
486
486
|
function xt(e, t) {
|
|
487
|
-
|
|
488
|
-
...
|
|
487
|
+
F.value = {
|
|
488
|
+
...F.value,
|
|
489
489
|
[e]: t
|
|
490
490
|
};
|
|
491
491
|
}
|
|
@@ -495,38 +495,38 @@ var we = { class: "system-user-management-page" }, Te = { class: "system-user-de
|
|
|
495
495
|
function $(e) {
|
|
496
496
|
return String(e?.username ?? e?.id ?? "系统账号");
|
|
497
497
|
}
|
|
498
|
-
return (e,
|
|
499
|
-
let
|
|
500
|
-
return C(), v("section",
|
|
498
|
+
return (e, n) => {
|
|
499
|
+
let r = ye("UiSpin"), a = ye("UiError"), o = ye("DateTimeText");
|
|
500
|
+
return C(), v("section", Te, [!z.value || B.value ? (C(), g(T(se), {
|
|
501
501
|
key: 0,
|
|
502
502
|
class: "system-user-list-panel",
|
|
503
|
-
context:
|
|
503
|
+
context: U.value,
|
|
504
504
|
title: "系统账号",
|
|
505
|
-
columns:
|
|
506
|
-
"cell-renderers": { onlineStatus:
|
|
505
|
+
columns: Ve.value,
|
|
506
|
+
"cell-renderers": { onlineStatus: T(Be) },
|
|
507
507
|
"row-actions-of": $e,
|
|
508
508
|
"selected-key": S.value,
|
|
509
|
-
"expanded-row-keys":
|
|
510
|
-
"reload-key":
|
|
509
|
+
"expanded-row-keys": T(Fe),
|
|
510
|
+
"reload-key": P.value,
|
|
511
511
|
ready: !0,
|
|
512
512
|
"quick-search-placeholder": "搜索账号、姓名、手机号或邮箱",
|
|
513
513
|
"empty-description": "暂无系统账号",
|
|
514
514
|
onRowAction: et,
|
|
515
515
|
onRowDblclick: tt,
|
|
516
|
-
onRowExpand:
|
|
517
|
-
onLoaded:
|
|
518
|
-
onSelect:
|
|
516
|
+
onRowExpand: T(Le),
|
|
517
|
+
onLoaded: T(Ie),
|
|
518
|
+
onSelect: n[0] ||= (e) => S.value = String(e.id ?? "")
|
|
519
519
|
}, {
|
|
520
|
-
expandedRow:
|
|
521
|
-
sessions:
|
|
522
|
-
loading:
|
|
523
|
-
error:
|
|
524
|
-
"actions-disabled":
|
|
525
|
-
"can-revoke": (t) =>
|
|
526
|
-
"can-revoke-all":
|
|
527
|
-
onRefresh: (t) =>
|
|
528
|
-
onRevoke: (t) =>
|
|
529
|
-
onRevokeAll: (t) =>
|
|
520
|
+
expandedRow: E(({ record: e }) => [x(T(ue), {
|
|
521
|
+
sessions: T(V)(String(e.id ?? "")).records,
|
|
522
|
+
loading: T(V)(String(e.id ?? "")).loading,
|
|
523
|
+
error: T(V)(String(e.id ?? "")).error,
|
|
524
|
+
"actions-disabled": M.value,
|
|
525
|
+
"can-revoke": (t) => gt(String(e.id ?? ""), t),
|
|
526
|
+
"can-revoke-all": ht(String(e.id ?? "")).length > 1,
|
|
527
|
+
onRefresh: (t) => T(ze)(String(e.id ?? "")),
|
|
528
|
+
onRevoke: (t) => ut(e, t),
|
|
529
|
+
onRevokeAll: (t) => dt(e)
|
|
530
530
|
}, null, 8, [
|
|
531
531
|
"sessions",
|
|
532
532
|
"loading",
|
|
@@ -548,98 +548,98 @@ var we = { class: "system-user-management-page" }, Te = { class: "system-user-de
|
|
|
548
548
|
"reload-key",
|
|
549
549
|
"onRowExpand",
|
|
550
550
|
"onLoaded"
|
|
551
|
-
])) : _("v-if", !0),
|
|
551
|
+
])) : _("v-if", !0), Pe.value ? (C(), g(T(oe), {
|
|
552
552
|
key: 1,
|
|
553
|
-
open:
|
|
554
|
-
title:
|
|
555
|
-
subtitle:
|
|
556
|
-
mode:
|
|
553
|
+
open: O.value,
|
|
554
|
+
title: He.value,
|
|
555
|
+
subtitle: Ue.value,
|
|
556
|
+
mode: k.value,
|
|
557
557
|
"form-modes": ["edit", "resetPassword"],
|
|
558
|
-
loading:
|
|
559
|
-
"load-failed":
|
|
560
|
-
"externally-changed":
|
|
561
|
-
promotion:
|
|
558
|
+
loading: A.value,
|
|
559
|
+
"load-failed": j.value,
|
|
560
|
+
"externally-changed": T(H).externallyChanged.value,
|
|
561
|
+
promotion: T(Ke),
|
|
562
562
|
"error-title": "详情加载失败",
|
|
563
563
|
"error-message": "无法加载系统账号详情,请重试",
|
|
564
564
|
onClose: nt,
|
|
565
|
-
onRetry:
|
|
566
|
-
onReloadExternalChange:
|
|
567
|
-
onDismissExternalChange:
|
|
565
|
+
onRetry: Y,
|
|
566
|
+
onReloadExternalChange: ot,
|
|
567
|
+
onDismissExternalChange: T(H).clearExternalChanged
|
|
568
568
|
}, {
|
|
569
|
-
status:
|
|
569
|
+
status: E(() => [k.value === "view" && D.value ? (C(), g(T(ne), {
|
|
570
570
|
key: 0,
|
|
571
|
-
enabled:
|
|
572
|
-
disabled:
|
|
573
|
-
loading:
|
|
571
|
+
enabled: D.value.enabled !== !1,
|
|
572
|
+
disabled: M.value || !K.value,
|
|
573
|
+
loading: M.value,
|
|
574
574
|
"show-label": !1,
|
|
575
|
-
onChange:
|
|
575
|
+
onChange: ft
|
|
576
576
|
}, null, 8, [
|
|
577
577
|
"enabled",
|
|
578
578
|
"disabled",
|
|
579
579
|
"loading"
|
|
580
580
|
])) : _("v-if", !0)]),
|
|
581
|
-
operation:
|
|
582
|
-
context:
|
|
581
|
+
operation: E(() => [x(T(i), {
|
|
582
|
+
context: U.value,
|
|
583
583
|
actions: Ge.value,
|
|
584
|
-
"record-id":
|
|
584
|
+
"record-id": D.value?.id,
|
|
585
585
|
onAction: at
|
|
586
586
|
}, null, 8, [
|
|
587
587
|
"context",
|
|
588
588
|
"actions",
|
|
589
589
|
"record-id"
|
|
590
590
|
])]),
|
|
591
|
-
loading:
|
|
591
|
+
loading: E(() => [x(r, {
|
|
592
592
|
class: "system-user-detail-state",
|
|
593
593
|
tip: "加载系统账号详情"
|
|
594
594
|
})]),
|
|
595
|
-
error:
|
|
595
|
+
error: E(() => [y("div", Ee, [x(a, {
|
|
596
596
|
title: "详情加载失败",
|
|
597
597
|
message: "无法加载系统账号详情,请重试"
|
|
598
|
-
}), x(
|
|
598
|
+
}), x(T(re), {
|
|
599
599
|
type: "primary",
|
|
600
600
|
"icon-name": "reload",
|
|
601
|
-
onClick:
|
|
601
|
+
onClick: Y
|
|
602
602
|
}, {
|
|
603
|
-
default:
|
|
603
|
+
default: E(() => [...n[3] ||= [b("重试", -1)]]),
|
|
604
604
|
_: 1
|
|
605
605
|
})])]),
|
|
606
|
-
view:
|
|
607
|
-
x(
|
|
608
|
-
record:
|
|
609
|
-
fields:
|
|
606
|
+
view: E(() => [
|
|
607
|
+
x(T(t), {
|
|
608
|
+
record: F.value,
|
|
609
|
+
fields: R.value,
|
|
610
610
|
fallback: q.value
|
|
611
611
|
}, null, 8, [
|
|
612
612
|
"record",
|
|
613
613
|
"fields",
|
|
614
614
|
"fallback"
|
|
615
615
|
]),
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
x(
|
|
619
|
-
value:
|
|
616
|
+
k.value === "view" && L.value?.temporaryPassword ? (C(), v("div", De, [
|
|
617
|
+
n[5] ||= y("span", null, "临时密码", -1),
|
|
618
|
+
x(T(u), {
|
|
619
|
+
value: L.value.temporaryPassword,
|
|
620
620
|
disabled: ""
|
|
621
621
|
}, null, 8, ["value"]),
|
|
622
|
-
|
|
622
|
+
L.value.expiresAt ? (C(), v("small", Oe, [n[4] ||= b(" 有效期至 ", -1), x(o, { value: L.value.expiresAt }, null, 8, ["value"])])) : _("v-if", !0)
|
|
623
623
|
])) : _("v-if", !0),
|
|
624
|
-
x(
|
|
624
|
+
x(T(s), { record: F.value }, null, 8, ["record"])
|
|
625
625
|
]),
|
|
626
|
-
form:
|
|
626
|
+
form: E(() => [y("form", {
|
|
627
627
|
class: "system-user-form",
|
|
628
|
-
onSubmit:
|
|
629
|
-
}, [
|
|
630
|
-
value:
|
|
628
|
+
onSubmit: xe(st, ["prevent"])
|
|
629
|
+
}, [k.value === "resetPassword" ? (C(), v("label", ke, [n[6] ||= y("span", { class: "system-user-form-label" }, "新密码", -1), x(T(u), {
|
|
630
|
+
value: I.value,
|
|
631
631
|
type: "password",
|
|
632
|
-
disabled:
|
|
632
|
+
disabled: W.value,
|
|
633
633
|
placeholder: "请输入密码",
|
|
634
634
|
"allow-clear": "",
|
|
635
|
-
"onUpdate:value":
|
|
636
|
-
}, null, 8, ["value", "disabled"])])) : (C(), g(
|
|
635
|
+
"onUpdate:value": n[1] ||= (e) => I.value = e
|
|
636
|
+
}, null, 8, ["value", "disabled"])])) : (C(), g(T(le), {
|
|
637
637
|
key: 0,
|
|
638
|
-
record:
|
|
638
|
+
record: F.value,
|
|
639
639
|
"field-names": qe.value,
|
|
640
|
-
fields:
|
|
640
|
+
fields: R.value,
|
|
641
641
|
fallback: q.value,
|
|
642
|
-
disabled:
|
|
642
|
+
disabled: W.value,
|
|
643
643
|
"disabled-of": bt,
|
|
644
644
|
"onUpdate:field": xt
|
|
645
645
|
}, null, 8, [
|
|
@@ -648,9 +648,9 @@ var we = { class: "system-user-management-page" }, Te = { class: "system-user-de
|
|
|
648
648
|
"fields",
|
|
649
649
|
"fallback",
|
|
650
650
|
"disabled"
|
|
651
|
-
]))], 32),
|
|
651
|
+
]))], 32), k.value === "resetPassword" ? _("v-if", !0) : (C(), g(T(s), {
|
|
652
652
|
key: 0,
|
|
653
|
-
record:
|
|
653
|
+
record: F.value
|
|
654
654
|
}, null, 8, ["record"]))]),
|
|
655
655
|
_: 1
|
|
656
656
|
}, 8, [
|
|
@@ -663,83 +663,83 @@ var we = { class: "system-user-management-page" }, Te = { class: "system-user-de
|
|
|
663
663
|
"externally-changed",
|
|
664
664
|
"promotion",
|
|
665
665
|
"onDismissExternalChange"
|
|
666
|
-
])) : (C(), g(
|
|
666
|
+
])) : (C(), g(T(te), {
|
|
667
667
|
key: 2,
|
|
668
|
-
title:
|
|
669
|
-
subtitle:
|
|
668
|
+
title: He.value,
|
|
669
|
+
subtitle: Ue.value
|
|
670
670
|
}, {
|
|
671
|
-
status:
|
|
671
|
+
status: E(() => [k.value === "view" && D.value ? (C(), g(T(ne), {
|
|
672
672
|
key: 0,
|
|
673
|
-
enabled:
|
|
674
|
-
disabled:
|
|
675
|
-
loading:
|
|
673
|
+
enabled: D.value.enabled !== !1,
|
|
674
|
+
disabled: M.value || !K.value,
|
|
675
|
+
loading: M.value,
|
|
676
676
|
"show-label": !1,
|
|
677
|
-
onChange:
|
|
677
|
+
onChange: ft
|
|
678
678
|
}, null, 8, [
|
|
679
679
|
"enabled",
|
|
680
680
|
"disabled",
|
|
681
681
|
"loading"
|
|
682
682
|
])) : _("v-if", !0)]),
|
|
683
|
-
operation:
|
|
684
|
-
context:
|
|
683
|
+
operation: E(() => [x(T(i), {
|
|
684
|
+
context: U.value,
|
|
685
685
|
actions: Ge.value,
|
|
686
|
-
"record-id":
|
|
686
|
+
"record-id": D.value?.id,
|
|
687
687
|
onAction: at
|
|
688
688
|
}, null, 8, [
|
|
689
689
|
"context",
|
|
690
690
|
"actions",
|
|
691
691
|
"record-id"
|
|
692
692
|
])]),
|
|
693
|
-
default:
|
|
693
|
+
default: E(() => [A.value ? (C(), g(r, {
|
|
694
694
|
key: 0,
|
|
695
695
|
class: "system-user-detail-state",
|
|
696
696
|
tip: "加载系统账号详情"
|
|
697
|
-
})) :
|
|
697
|
+
})) : j.value ? (C(), v("div", Ae, [x(a, {
|
|
698
698
|
title: "详情加载失败",
|
|
699
699
|
message: "无法加载系统账号详情,请重试"
|
|
700
|
-
}), x(
|
|
700
|
+
}), x(T(re), {
|
|
701
701
|
type: "primary",
|
|
702
702
|
"icon-name": "reload",
|
|
703
|
-
onClick:
|
|
703
|
+
onClick: Y
|
|
704
704
|
}, {
|
|
705
|
-
default:
|
|
705
|
+
default: E(() => [...n[7] ||= [b("重试", -1)]]),
|
|
706
706
|
_: 1
|
|
707
|
-
})])) :
|
|
708
|
-
x(
|
|
709
|
-
record:
|
|
710
|
-
fields:
|
|
707
|
+
})])) : k.value === "view" ? (C(), v(ge, { key: 2 }, [
|
|
708
|
+
x(T(t), {
|
|
709
|
+
record: F.value,
|
|
710
|
+
fields: R.value,
|
|
711
711
|
fallback: q.value
|
|
712
712
|
}, null, 8, [
|
|
713
713
|
"record",
|
|
714
714
|
"fields",
|
|
715
715
|
"fallback"
|
|
716
716
|
]),
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
x(
|
|
720
|
-
value:
|
|
717
|
+
L.value?.temporaryPassword ? (C(), v("div", je, [
|
|
718
|
+
n[9] ||= y("span", null, "临时密码", -1),
|
|
719
|
+
x(T(u), {
|
|
720
|
+
value: L.value.temporaryPassword,
|
|
721
721
|
disabled: ""
|
|
722
722
|
}, null, 8, ["value"]),
|
|
723
|
-
|
|
723
|
+
L.value.expiresAt ? (C(), v("small", Me, [n[8] ||= b(" 有效期至 ", -1), x(o, { value: L.value.expiresAt }, null, 8, ["value"])])) : _("v-if", !0)
|
|
724
724
|
])) : _("v-if", !0),
|
|
725
|
-
x(
|
|
725
|
+
x(T(s), { record: F.value }, null, 8, ["record"])
|
|
726
726
|
], 64)) : (C(), v(ge, { key: 3 }, [y("form", {
|
|
727
727
|
class: "system-user-form",
|
|
728
|
-
onSubmit:
|
|
729
|
-
}, [
|
|
730
|
-
value:
|
|
728
|
+
onSubmit: xe(st, ["prevent"])
|
|
729
|
+
}, [k.value === "resetPassword" ? (C(), v("label", Ne, [n[10] ||= y("span", { class: "system-user-form-label" }, "新密码", -1), x(T(u), {
|
|
730
|
+
value: I.value,
|
|
731
731
|
type: "password",
|
|
732
|
-
disabled:
|
|
732
|
+
disabled: W.value,
|
|
733
733
|
placeholder: "请输入密码",
|
|
734
734
|
"allow-clear": "",
|
|
735
|
-
"onUpdate:value":
|
|
736
|
-
}, null, 8, ["value", "disabled"])])) : (C(), g(
|
|
735
|
+
"onUpdate:value": n[2] ||= (e) => I.value = e
|
|
736
|
+
}, null, 8, ["value", "disabled"])])) : (C(), g(T(le), {
|
|
737
737
|
key: 0,
|
|
738
|
-
record:
|
|
738
|
+
record: F.value,
|
|
739
739
|
"field-names": qe.value,
|
|
740
|
-
fields:
|
|
740
|
+
fields: R.value,
|
|
741
741
|
fallback: q.value,
|
|
742
|
-
disabled:
|
|
742
|
+
disabled: W.value,
|
|
743
743
|
"disabled-of": bt,
|
|
744
744
|
"onUpdate:field": xt
|
|
745
745
|
}, null, 8, [
|
|
@@ -748,9 +748,9 @@ var we = { class: "system-user-management-page" }, Te = { class: "system-user-de
|
|
|
748
748
|
"fields",
|
|
749
749
|
"fallback",
|
|
750
750
|
"disabled"
|
|
751
|
-
]))], 32),
|
|
751
|
+
]))], 32), k.value === "resetPassword" ? _("v-if", !0) : (C(), g(T(s), {
|
|
752
752
|
key: 0,
|
|
753
|
-
record:
|
|
753
|
+
record: F.value
|
|
754
754
|
}, null, 8, ["record"]))], 64))]),
|
|
755
755
|
_: 1
|
|
756
756
|
}, 8, ["title", "subtitle"]))]);
|
|
@@ -758,4 +758,4 @@ var we = { class: "system-user-management-page" }, Te = { class: "system-user-de
|
|
|
758
758
|
}
|
|
759
759
|
}), [["__scopeId", "data-v-01fb79d3"]]);
|
|
760
760
|
//#endregion
|
|
761
|
-
export {
|
|
761
|
+
export { D as t };
|