@ximatai/muyun-web-app 0.26.4 → 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-BySbWjCV.js → EmployeeDetailWorkspaceView-DHZ4arBj.js} +1 -1
- package/dist/{EmployeeManagementView-DvmDPxzN.js → EmployeeManagementView-BfGb_ssB.js} +336 -336
- package/dist/MetadataOrchestrationView-BLxigKBh.js +655 -0
- package/dist/{ModuleActionManagementView-DRtYMXOK.js → ModuleActionManagementView-ByJzNkQs.js} +102 -102
- package/dist/{RoleAuthorizationView-CK6Vfdup.js → RoleAuthorizationView-DJSWY3fu.js} +62 -62
- package/dist/{RoleDetailWorkspaceView-BPZcZy-r.js → RoleDetailWorkspaceView-Dfdigf04.js} +1 -1
- package/dist/{RoleManagementView-B7TzzVOm.js → RoleManagementView-D0e9nLwW.js} +295 -295
- package/dist/{SystemUserDetailWorkspaceView-BtEDyU-k.js → SystemUserDetailWorkspaceView-D-UPhCmD.js} +1 -1
- package/dist/{SystemUserManagementView-TKqj92zG.js → SystemUserManagementView-DNKRvmDk.js} +198 -198
- package/dist/{UserDetailWorkspaceView-B6fGrnQ7.js → UserDetailWorkspaceView-BCSCLNSz.js} +1 -1
- package/dist/{UserManagementView-4IJeDSQS.js → UserManagementView-aY2AeeWK.js} +287 -287
- package/dist/index.css +1 -1
- package/dist/index.js +2384 -2410
- package/dist/pageRealtime-Be2xkeKK.js +225 -0
- package/dist/{platform-components-CgMBopmF.js → platform-components-DuAohqJO.js} +2732 -1546
- package/dist/types/app/workbenchRouteSync.d.ts +13 -0
- package/dist/types/consumer/index.d.ts +10 -2
- package/dist/types/dynamic-page-runtime/DynamicModuleHost.vue.d.ts +8 -1
- package/dist/types/dynamic-page-runtime/dynamicModuleDetailStateModel.d.ts +12 -0
- 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 +15 -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-DHsyr2Vy.js → useUserSessionRows-DX9qYU5r.js} +2 -2
- package/dist/workspaceViewSessions-C3GP1UGp.js +2639 -0
- package/package.json +1 -1
- package/dist/MetadataOrchestrationView-2JxJkFEC.js +0 -655
- package/dist/pageRealtime-CJriNmzP.js +0 -140
- package/dist/workspaceViewSessions-BMbyO9O4.js +0 -1571
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { $
|
|
2
|
-
import {
|
|
3
|
-
import { i as
|
|
4
|
-
import { t as
|
|
5
|
-
import { Fragment 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
7
|
function Se(e, t) {
|
|
8
|
-
return
|
|
8
|
+
return m(d, e, {
|
|
9
9
|
...t,
|
|
10
10
|
selectedUser: { ...t.selectedUser },
|
|
11
11
|
draft: { ...t.draft }
|
|
12
12
|
});
|
|
13
13
|
}
|
|
14
14
|
function Ce(e, t) {
|
|
15
|
-
return d
|
|
15
|
+
return f(d, e, t);
|
|
16
16
|
}
|
|
17
17
|
function we(e) {
|
|
18
|
-
return
|
|
18
|
+
return p(d, e);
|
|
19
19
|
}
|
|
20
20
|
//#endregion
|
|
21
21
|
//#region src/views/SystemUserManagementView.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -28,23 +28,23 @@ var Te = { class: "system-user-management-page" }, Ee = { class: "system-user-de
|
|
|
28
28
|
}, je = {
|
|
29
29
|
key: 0,
|
|
30
30
|
class: "system-user-password-reset-result"
|
|
31
|
-
}, Me = { key: 0 }, Ne = { key: 1 }, D = /*#__PURE__*/
|
|
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
|
|
40
|
-
context:
|
|
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
|
+
context: p,
|
|
41
41
|
source: "system-user-management"
|
|
42
|
-
}),
|
|
42
|
+
}), H = pe({
|
|
43
43
|
moduleAlias: "iam.user",
|
|
44
44
|
recordId: () => D.value?.id,
|
|
45
45
|
editing: () => k.value === "edit",
|
|
46
46
|
saving: () => M.value
|
|
47
|
-
}),
|
|
47
|
+
}), U = h(() => Ze(p)), Ve = h(() => [
|
|
48
48
|
{
|
|
49
49
|
key: "username",
|
|
50
50
|
title: "账号",
|
|
@@ -73,15 +73,15 @@ var Te = { class: "system-user-management-page" }, Ee = { class: "system-user-de
|
|
|
73
73
|
type: "enabledStatus",
|
|
74
74
|
width: "14%"
|
|
75
75
|
}
|
|
76
|
-
]),
|
|
76
|
+
]), He = h(() => $(D.value ?? F.value)), Ue = h(() => k.value === "resetPassword" ? "修改密码" : "系统账号"), W = h(() => M.value || A.value), G = h(() => {
|
|
77
77
|
if (A.value) return !1;
|
|
78
|
-
if (k.value === "edit") return !!D.value?.id &&
|
|
78
|
+
if (k.value === "edit") return !!D.value?.id && p.can("update") === !0;
|
|
79
79
|
if (k.value === "resetPassword") {
|
|
80
80
|
let e = D.value?.id;
|
|
81
|
-
return !!e &&
|
|
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",
|
|
@@ -115,15 +115,15 @@ var Te = { class: "system-user-management-page" }, Ee = { class: "system-user-de
|
|
|
115
115
|
iconName: "save",
|
|
116
116
|
primary: !0,
|
|
117
117
|
loading: M.value,
|
|
118
|
-
disabled: !
|
|
119
|
-
}]), Ge =
|
|
120
|
-
view:
|
|
121
|
-
input:
|
|
118
|
+
disabled: !G.value
|
|
119
|
+
}]), Ge = h(() => We.value), Ke = de({
|
|
120
|
+
view: d,
|
|
121
|
+
input: h(() => {
|
|
122
122
|
let e = D.value?.id;
|
|
123
123
|
return e && (k.value === "view" || k.value === "edit") ? { recordId: e } : void 0;
|
|
124
124
|
}),
|
|
125
|
-
title:
|
|
126
|
-
eligibility:
|
|
125
|
+
title: h(() => $(D.value)),
|
|
126
|
+
eligibility: h(() => ({
|
|
127
127
|
hasStableIdentity: !!D.value?.id && !A.value,
|
|
128
128
|
busy: M.value
|
|
129
129
|
})),
|
|
@@ -140,9 +140,9 @@ var Te = { class: "system-user-management-page" }, Ee = { class: "system-user-de
|
|
|
140
140
|
onPromoted: nt
|
|
141
141
|
});
|
|
142
142
|
be(D, (e) => {
|
|
143
|
-
!z.value || !e ||
|
|
143
|
+
!z.value || !e || m?.setTitle($(e));
|
|
144
144
|
}, { immediate: !0 });
|
|
145
|
-
let q =
|
|
145
|
+
let q = h(() => ({
|
|
146
146
|
username: {
|
|
147
147
|
label: "账号",
|
|
148
148
|
required: !0,
|
|
@@ -154,28 +154,28 @@ var Te = { class: "system-user-management-page" }, Ee = { class: "system-user-de
|
|
|
154
154
|
visible: !0,
|
|
155
155
|
controlType: "enabledStatus"
|
|
156
156
|
}
|
|
157
|
-
})), qe =
|
|
158
|
-
|
|
159
|
-
if (Xe(),
|
|
160
|
-
let e = { recordId:
|
|
157
|
+
})), qe = h(() => ["username", "enabled"]), Je;
|
|
158
|
+
ve(() => {
|
|
159
|
+
if (Xe(), f.recordId) {
|
|
160
|
+
let e = { recordId: f.recordId };
|
|
161
161
|
B.value || (Je = Ce(e, Ye));
|
|
162
162
|
let t = we(e);
|
|
163
163
|
if (t) {
|
|
164
|
-
|
|
164
|
+
mt(t);
|
|
165
165
|
return;
|
|
166
166
|
}
|
|
167
|
-
J({ id:
|
|
167
|
+
J({ id: f.recordId }, f.mode ?? "view");
|
|
168
168
|
}
|
|
169
|
-
}),
|
|
169
|
+
}), _e(() => Je?.());
|
|
170
170
|
function Ye(e) {
|
|
171
|
-
return k.value === "view" ? (
|
|
171
|
+
return k.value === "view" ? (mt(e), !0) : !1;
|
|
172
172
|
}
|
|
173
|
-
|
|
173
|
+
me(Re);
|
|
174
174
|
async function Xe() {
|
|
175
175
|
try {
|
|
176
|
-
R.value =
|
|
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 Te = { class: "system-user-management-page" }, Ee = { 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 Te = { class: "system-user-management-page" }, Ee = { 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
|
-
|
|
232
|
-
let
|
|
233
|
-
N.value =
|
|
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
|
|
236
|
-
if (!
|
|
235
|
+
let e = await p.crud.view(r);
|
|
236
|
+
if (!pt(r, i)) return;
|
|
237
237
|
if (!e?.id) {
|
|
238
|
-
j.value = !0,
|
|
238
|
+
j.value = !0, l("未找到指定系统账号", {
|
|
239
239
|
source: "system-user-management",
|
|
240
240
|
phase: "load"
|
|
241
241
|
});
|
|
@@ -245,24 +245,24 @@ var Te = { class: "system-user-management-page" }, Ee = { 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
|
-
M.value || (N.value += 1, A.value = !1, j.value = !1, O.value = !1, k.value = "view", I.value = "", L.value = void 0,
|
|
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
|
-
N.value += 1, A.value = !1, j.value = !1, O.value = !1, D.value = void 0,
|
|
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
|
-
}), z.value &&
|
|
265
|
+
}), z.value && m?.dismiss();
|
|
266
266
|
}
|
|
267
267
|
function it() {
|
|
268
268
|
if (!M.value) {
|
|
@@ -270,7 +270,7 @@ var Te = { class: "system-user-management-page" }, Ee = { class: "system-user-de
|
|
|
270
270
|
nt();
|
|
271
271
|
return;
|
|
272
272
|
}
|
|
273
|
-
F.value = Q(D.value), I.value = "", L.value = void 0,
|
|
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,183 +279,183 @@ var Te = { class: "system-user-management-page" }, Ee = { 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 (
|
|
285
|
+
if (X()) {
|
|
286
286
|
if (e.key === "edit" && D.value) {
|
|
287
|
-
F.value = Q(D.value),
|
|
287
|
+
F.value = Q(D.value), H.clearExternalChanged(), k.value = "edit";
|
|
288
288
|
return;
|
|
289
289
|
}
|
|
290
290
|
if (e.key === "resetPassword" && D.value) {
|
|
291
|
-
I.value = "", L.value = void 0,
|
|
291
|
+
I.value = "", L.value = void 0, H.clearExternalChanged(), k.value = "resetPassword";
|
|
292
292
|
return;
|
|
293
293
|
}
|
|
294
|
-
e.key === "resetGeneratedPassword" && D.value &&
|
|
294
|
+
e.key === "resetGeneratedPassword" && D.value && lt();
|
|
295
295
|
}
|
|
296
296
|
}
|
|
297
|
-
function
|
|
298
|
-
let e = String(F.value.id ??
|
|
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 && (
|
|
304
|
+
function ot() {
|
|
305
|
+
let e = String(H.externalChangedRecordId.value ?? F.value.id ?? S.value ?? "");
|
|
306
|
+
e && (H.clearExternalChanged(), J({
|
|
307
307
|
...F.value,
|
|
308
308
|
id: e
|
|
309
309
|
}, "edit"));
|
|
310
310
|
}
|
|
311
|
-
async function
|
|
311
|
+
async function st() {
|
|
312
312
|
if (k.value === "resetPassword") {
|
|
313
|
-
await
|
|
313
|
+
await ct();
|
|
314
314
|
return;
|
|
315
315
|
}
|
|
316
|
-
await
|
|
316
|
+
await ce({
|
|
317
317
|
loading: M,
|
|
318
318
|
mode: "edit",
|
|
319
319
|
source: "system-user-management",
|
|
320
|
-
canSave: () =>
|
|
320
|
+
canSave: () => G.value,
|
|
321
321
|
deniedMessage: "当前用户无权保存系统账号",
|
|
322
322
|
createRecord: () => vt(F.value),
|
|
323
323
|
validateRecord: yt,
|
|
324
|
-
save: (e) =>
|
|
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
|
|
334
|
+
async function ct() {
|
|
335
335
|
if (!I.value.trim()) {
|
|
336
|
-
|
|
336
|
+
l("请填写新密码", {
|
|
337
337
|
source: "system-user-management",
|
|
338
338
|
phase: "validation"
|
|
339
339
|
});
|
|
340
340
|
return;
|
|
341
341
|
}
|
|
342
|
-
await
|
|
342
|
+
await c({
|
|
343
343
|
loading: M,
|
|
344
344
|
source: "system-user-management",
|
|
345
345
|
record: () => D.value?.id ? D.value : void 0,
|
|
346
|
-
canExecute: () =>
|
|
346
|
+
canExecute: () => G.value,
|
|
347
347
|
deniedMessage: "当前用户无权重置系统账号密码",
|
|
348
|
-
execute: (e) =>
|
|
348
|
+
execute: (e) => p.http.request({
|
|
349
349
|
method: "POST",
|
|
350
350
|
path: `/iam.user/changePassword/${encodeURIComponent(e.id)}`,
|
|
351
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
|
|
359
|
-
await
|
|
358
|
+
async function lt() {
|
|
359
|
+
await c({
|
|
360
360
|
loading: M,
|
|
361
361
|
source: "system-user-management",
|
|
362
362
|
record: () => D.value?.id ? D.value : void 0,
|
|
363
|
-
canExecute: (e) =>
|
|
363
|
+
canExecute: (e) => p.can("resetPassword", e.id) === !0,
|
|
364
364
|
deniedMessage: "当前用户无权重置系统账号密码",
|
|
365
|
-
execute: (e) =>
|
|
365
|
+
execute: (e) => p.http.request({
|
|
366
366
|
method: "POST",
|
|
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
|
|
375
|
-
await
|
|
374
|
+
async function ut(e, t) {
|
|
375
|
+
await c({
|
|
376
376
|
loading: M,
|
|
377
377
|
source: "system-user-management",
|
|
378
378
|
record: () => e?.id ? e : void 0,
|
|
379
|
-
canExecute: (e) =>
|
|
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: "下线",
|
|
385
385
|
danger: !0
|
|
386
386
|
}),
|
|
387
|
-
execute: (e) =>
|
|
387
|
+
execute: (e) => p.http.request({
|
|
388
388
|
method: "POST",
|
|
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",
|
|
401
401
|
phase: "validation"
|
|
402
402
|
});
|
|
403
403
|
return;
|
|
404
404
|
}
|
|
405
|
-
await
|
|
405
|
+
await c({
|
|
406
406
|
loading: M,
|
|
407
407
|
source: "system-user-management",
|
|
408
408
|
record: () => e?.id ? e : void 0,
|
|
409
|
-
canExecute: (e) =>
|
|
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: "全部下线",
|
|
415
415
|
danger: !0
|
|
416
416
|
}),
|
|
417
|
-
execute: (e) =>
|
|
417
|
+
execute: (e) => p.http.request({
|
|
418
418
|
method: "POST",
|
|
419
419
|
path: `/iam.user/${encodeURIComponent(e.id)}/sessions/revoke`,
|
|
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
|
|
428
|
-
await
|
|
427
|
+
async function ft() {
|
|
428
|
+
await c({
|
|
429
429
|
loading: M,
|
|
430
430
|
source: "system-user-management",
|
|
431
431
|
record: () => D.value?.id ? D.value : void 0,
|
|
432
|
-
canExecute: () =>
|
|
432
|
+
canExecute: () => K.value,
|
|
433
433
|
deniedMessage: "当前用户无权变更系统账号启停状态",
|
|
434
|
-
execute: (e) => e.enabled === !1 ?
|
|
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
|
|
440
|
+
function X() {
|
|
441
441
|
return !M.value;
|
|
442
442
|
}
|
|
443
|
-
function
|
|
444
|
-
return N.value === t &&
|
|
443
|
+
function pt(e, t) {
|
|
444
|
+
return N.value === t && S.value === e;
|
|
445
445
|
}
|
|
446
|
-
function
|
|
447
|
-
D.value = e,
|
|
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
|
-
|
|
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 ||
|
|
452
|
+
function ht(e) {
|
|
453
|
+
return !e || p.can("revokeSession", e) !== !0 ? [] : V(e).records.filter((e) => !e.current);
|
|
454
454
|
}
|
|
455
|
-
function
|
|
456
|
-
return !!e && !t.current &&
|
|
455
|
+
function gt(e, t) {
|
|
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 Te = { class: "system-user-management-page" }, Ee = { 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,7 +473,7 @@ var Te = { class: "system-user-management-page" }, Ee = { class: "system-user-de
|
|
|
473
473
|
});
|
|
474
474
|
}
|
|
475
475
|
function yt(e) {
|
|
476
|
-
let t =
|
|
476
|
+
let t = a("username", {
|
|
477
477
|
fields: R.value,
|
|
478
478
|
fallback: q.value
|
|
479
479
|
});
|
|
@@ -496,16 +496,16 @@ var Te = { class: "system-user-management-page" }, Ee = { class: "system-user-de
|
|
|
496
496
|
return String(e?.username ?? e?.id ?? "系统账号");
|
|
497
497
|
}
|
|
498
498
|
return (e, n) => {
|
|
499
|
-
let r =
|
|
500
|
-
return
|
|
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: T(
|
|
505
|
+
columns: Ve.value,
|
|
506
|
+
"cell-renderers": { onlineStatus: T(Be) },
|
|
507
507
|
"row-actions-of": $e,
|
|
508
|
-
"selected-key":
|
|
508
|
+
"selected-key": S.value,
|
|
509
509
|
"expanded-row-keys": T(Fe),
|
|
510
510
|
"reload-key": P.value,
|
|
511
511
|
ready: !0,
|
|
@@ -515,18 +515,18 @@ var Te = { class: "system-user-management-page" }, Ee = { class: "system-user-de
|
|
|
515
515
|
onRowDblclick: tt,
|
|
516
516
|
onRowExpand: T(Le),
|
|
517
517
|
onLoaded: T(Ie),
|
|
518
|
-
onSelect: n[0] ||= (e) =>
|
|
518
|
+
onSelect: n[0] ||= (e) => S.value = String(e.id ?? "")
|
|
519
519
|
}, {
|
|
520
|
-
expandedRow: E(({ record: e }) => [
|
|
521
|
-
sessions: T(
|
|
522
|
-
loading: T(
|
|
523
|
-
error: 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
524
|
"actions-disabled": M.value,
|
|
525
|
-
"can-revoke": (t) =>
|
|
526
|
-
"can-revoke-all":
|
|
527
|
-
onRefresh: (t) => T(
|
|
528
|
-
onRevoke: (t) =>
|
|
529
|
-
onRevokeAll: (t) =>
|
|
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,38 +548,38 @@ var Te = { class: "system-user-management-page" }, Ee = { class: "system-user-de
|
|
|
548
548
|
"reload-key",
|
|
549
549
|
"onRowExpand",
|
|
550
550
|
"onLoaded"
|
|
551
|
-
])) :
|
|
551
|
+
])) : _("v-if", !0), Pe.value ? (C(), g(T(oe), {
|
|
552
552
|
key: 1,
|
|
553
553
|
open: O.value,
|
|
554
|
-
title:
|
|
555
|
-
subtitle:
|
|
554
|
+
title: He.value,
|
|
555
|
+
subtitle: Ue.value,
|
|
556
556
|
mode: k.value,
|
|
557
557
|
"form-modes": ["edit", "resetPassword"],
|
|
558
558
|
loading: A.value,
|
|
559
559
|
"load-failed": j.value,
|
|
560
|
-
"externally-changed": T(
|
|
560
|
+
"externally-changed": T(H).externallyChanged.value,
|
|
561
561
|
promotion: T(Ke),
|
|
562
562
|
"error-title": "详情加载失败",
|
|
563
563
|
"error-message": "无法加载系统账号详情,请重试",
|
|
564
564
|
onClose: nt,
|
|
565
|
-
onRetry:
|
|
566
|
-
onReloadExternalChange:
|
|
567
|
-
onDismissExternalChange: T(
|
|
565
|
+
onRetry: Y,
|
|
566
|
+
onReloadExternalChange: ot,
|
|
567
|
+
onDismissExternalChange: T(H).clearExternalChanged
|
|
568
568
|
}, {
|
|
569
|
-
status: E(() => [k.value === "view" && D.value ? (
|
|
569
|
+
status: E(() => [k.value === "view" && D.value ? (C(), g(T(ne), {
|
|
570
570
|
key: 0,
|
|
571
571
|
enabled: D.value.enabled !== !1,
|
|
572
|
-
disabled: M.value || !
|
|
572
|
+
disabled: M.value || !K.value,
|
|
573
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
|
-
])) :
|
|
581
|
-
operation: E(() => [
|
|
582
|
-
context:
|
|
580
|
+
])) : _("v-if", !0)]),
|
|
581
|
+
operation: E(() => [x(T(i), {
|
|
582
|
+
context: U.value,
|
|
583
583
|
actions: Ge.value,
|
|
584
584
|
"record-id": D.value?.id,
|
|
585
585
|
onAction: at
|
|
@@ -588,23 +588,23 @@ var Te = { class: "system-user-management-page" }, Ee = { class: "system-user-de
|
|
|
588
588
|
"actions",
|
|
589
589
|
"record-id"
|
|
590
590
|
])]),
|
|
591
|
-
loading: E(() => [
|
|
591
|
+
loading: E(() => [x(r, {
|
|
592
592
|
class: "system-user-detail-state",
|
|
593
593
|
tip: "加载系统账号详情"
|
|
594
594
|
})]),
|
|
595
|
-
error: E(() => [
|
|
595
|
+
error: E(() => [y("div", Ee, [x(a, {
|
|
596
596
|
title: "详情加载失败",
|
|
597
597
|
message: "无法加载系统账号详情,请重试"
|
|
598
|
-
}),
|
|
598
|
+
}), x(T(re), {
|
|
599
599
|
type: "primary",
|
|
600
600
|
"icon-name": "reload",
|
|
601
|
-
onClick:
|
|
601
|
+
onClick: Y
|
|
602
602
|
}, {
|
|
603
|
-
default: E(() => [...n[3] ||= [
|
|
603
|
+
default: E(() => [...n[3] ||= [b("重试", -1)]]),
|
|
604
604
|
_: 1
|
|
605
605
|
})])]),
|
|
606
606
|
view: E(() => [
|
|
607
|
-
|
|
607
|
+
x(T(t), {
|
|
608
608
|
record: F.value,
|
|
609
609
|
fields: R.value,
|
|
610
610
|
fallback: q.value
|
|
@@ -613,33 +613,33 @@ var Te = { class: "system-user-management-page" }, Ee = { class: "system-user-de
|
|
|
613
613
|
"fields",
|
|
614
614
|
"fallback"
|
|
615
615
|
]),
|
|
616
|
-
k.value === "view" && L.value?.temporaryPassword ? (
|
|
617
|
-
n[5] ||=
|
|
618
|
-
|
|
616
|
+
k.value === "view" && L.value?.temporaryPassword ? (C(), v("div", De, [
|
|
617
|
+
n[5] ||= y("span", null, "临时密码", -1),
|
|
618
|
+
x(T(u), {
|
|
619
619
|
value: L.value.temporaryPassword,
|
|
620
620
|
disabled: ""
|
|
621
621
|
}, null, 8, ["value"]),
|
|
622
|
-
L.value.expiresAt ? (
|
|
623
|
-
])) :
|
|
624
|
-
|
|
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
|
+
])) : _("v-if", !0),
|
|
624
|
+
x(T(s), { record: F.value }, null, 8, ["record"])
|
|
625
625
|
]),
|
|
626
|
-
form: E(() => [
|
|
626
|
+
form: E(() => [y("form", {
|
|
627
627
|
class: "system-user-form",
|
|
628
|
-
onSubmit: xe(
|
|
629
|
-
}, [k.value === "resetPassword" ? (
|
|
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
630
|
value: I.value,
|
|
631
631
|
type: "password",
|
|
632
|
-
disabled:
|
|
632
|
+
disabled: W.value,
|
|
633
633
|
placeholder: "请输入密码",
|
|
634
634
|
"allow-clear": "",
|
|
635
635
|
"onUpdate:value": n[1] ||= (e) => I.value = e
|
|
636
|
-
}, null, 8, ["value", "disabled"])])) : (
|
|
636
|
+
}, null, 8, ["value", "disabled"])])) : (C(), g(T(le), {
|
|
637
637
|
key: 0,
|
|
638
638
|
record: F.value,
|
|
639
639
|
"field-names": qe.value,
|
|
640
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,7 +648,7 @@ var Te = { class: "system-user-management-page" }, Ee = { class: "system-user-de
|
|
|
648
648
|
"fields",
|
|
649
649
|
"fallback",
|
|
650
650
|
"disabled"
|
|
651
|
-
]))], 32), k.value === "resetPassword" ?
|
|
651
|
+
]))], 32), k.value === "resetPassword" ? _("v-if", !0) : (C(), g(T(s), {
|
|
652
652
|
key: 0,
|
|
653
653
|
record: F.value
|
|
654
654
|
}, null, 8, ["record"]))]),
|
|
@@ -663,25 +663,25 @@ var Te = { class: "system-user-management-page" }, Ee = { class: "system-user-de
|
|
|
663
663
|
"externally-changed",
|
|
664
664
|
"promotion",
|
|
665
665
|
"onDismissExternalChange"
|
|
666
|
-
])) : (
|
|
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: E(() => [k.value === "view" && D.value ? (
|
|
671
|
+
status: E(() => [k.value === "view" && D.value ? (C(), g(T(ne), {
|
|
672
672
|
key: 0,
|
|
673
673
|
enabled: D.value.enabled !== !1,
|
|
674
|
-
disabled: M.value || !
|
|
674
|
+
disabled: M.value || !K.value,
|
|
675
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
|
-
])) :
|
|
683
|
-
operation: E(() => [
|
|
684
|
-
context:
|
|
682
|
+
])) : _("v-if", !0)]),
|
|
683
|
+
operation: E(() => [x(T(i), {
|
|
684
|
+
context: U.value,
|
|
685
685
|
actions: Ge.value,
|
|
686
686
|
"record-id": D.value?.id,
|
|
687
687
|
onAction: at
|
|
@@ -690,22 +690,22 @@ var Te = { class: "system-user-management-page" }, Ee = { class: "system-user-de
|
|
|
690
690
|
"actions",
|
|
691
691
|
"record-id"
|
|
692
692
|
])]),
|
|
693
|
-
default: E(() => [A.value ? (
|
|
693
|
+
default: E(() => [A.value ? (C(), g(r, {
|
|
694
694
|
key: 0,
|
|
695
695
|
class: "system-user-detail-state",
|
|
696
696
|
tip: "加载系统账号详情"
|
|
697
|
-
})) : j.value ? (
|
|
697
|
+
})) : j.value ? (C(), v("div", Ae, [x(a, {
|
|
698
698
|
title: "详情加载失败",
|
|
699
699
|
message: "无法加载系统账号详情,请重试"
|
|
700
|
-
}),
|
|
700
|
+
}), x(T(re), {
|
|
701
701
|
type: "primary",
|
|
702
702
|
"icon-name": "reload",
|
|
703
|
-
onClick:
|
|
703
|
+
onClick: Y
|
|
704
704
|
}, {
|
|
705
|
-
default: E(() => [...n[7] ||= [
|
|
705
|
+
default: E(() => [...n[7] ||= [b("重试", -1)]]),
|
|
706
706
|
_: 1
|
|
707
|
-
})])) : k.value === "view" ? (
|
|
708
|
-
|
|
707
|
+
})])) : k.value === "view" ? (C(), v(ge, { key: 2 }, [
|
|
708
|
+
x(T(t), {
|
|
709
709
|
record: F.value,
|
|
710
710
|
fields: R.value,
|
|
711
711
|
fallback: q.value
|
|
@@ -714,32 +714,32 @@ var Te = { class: "system-user-management-page" }, Ee = { class: "system-user-de
|
|
|
714
714
|
"fields",
|
|
715
715
|
"fallback"
|
|
716
716
|
]),
|
|
717
|
-
L.value?.temporaryPassword ? (
|
|
718
|
-
n[9] ||=
|
|
719
|
-
|
|
717
|
+
L.value?.temporaryPassword ? (C(), v("div", je, [
|
|
718
|
+
n[9] ||= y("span", null, "临时密码", -1),
|
|
719
|
+
x(T(u), {
|
|
720
720
|
value: L.value.temporaryPassword,
|
|
721
721
|
disabled: ""
|
|
722
722
|
}, null, 8, ["value"]),
|
|
723
|
-
L.value.expiresAt ? (
|
|
724
|
-
])) :
|
|
725
|
-
|
|
726
|
-
], 64)) : (
|
|
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
|
+
])) : _("v-if", !0),
|
|
725
|
+
x(T(s), { record: F.value }, null, 8, ["record"])
|
|
726
|
+
], 64)) : (C(), v(ge, { key: 3 }, [y("form", {
|
|
727
727
|
class: "system-user-form",
|
|
728
|
-
onSubmit: xe(
|
|
729
|
-
}, [k.value === "resetPassword" ? (
|
|
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
730
|
value: I.value,
|
|
731
731
|
type: "password",
|
|
732
|
-
disabled:
|
|
732
|
+
disabled: W.value,
|
|
733
733
|
placeholder: "请输入密码",
|
|
734
734
|
"allow-clear": "",
|
|
735
735
|
"onUpdate:value": n[2] ||= (e) => I.value = e
|
|
736
|
-
}, null, 8, ["value", "disabled"])])) : (
|
|
736
|
+
}, null, 8, ["value", "disabled"])])) : (C(), g(T(le), {
|
|
737
737
|
key: 0,
|
|
738
738
|
record: F.value,
|
|
739
739
|
"field-names": qe.value,
|
|
740
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,7 +748,7 @@ var Te = { class: "system-user-management-page" }, Ee = { class: "system-user-de
|
|
|
748
748
|
"fields",
|
|
749
749
|
"fallback",
|
|
750
750
|
"disabled"
|
|
751
|
-
]))], 32), k.value === "resetPassword" ?
|
|
751
|
+
]))], 32), k.value === "resetPassword" ? _("v-if", !0) : (C(), g(T(s), {
|
|
752
752
|
key: 0,
|
|
753
753
|
record: F.value
|
|
754
754
|
}, null, 8, ["record"]))], 64))]),
|