@ximatai/muyun-web-app 0.26.6 → 0.26.8
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-DHZ4arBj.js → EmployeeDetailWorkspaceView-DswEDSxH.js} +1 -1
- package/dist/EmployeeManagementView-C9STtw08.js +1777 -0
- package/dist/{MetadataOrchestrationView-BLxigKBh.js → MetadataOrchestrationView-DKYVGMzy.js} +195 -195
- package/dist/{ModuleActionManagementView-ByJzNkQs.js → ModuleActionManagementView-DiVzuPdu.js} +122 -122
- package/dist/RoleAuthorizationView-C0s4Bog7.js +592 -0
- package/dist/{RoleDetailWorkspaceView-Dfdigf04.js → RoleDetailWorkspaceView-dqHxKVfd.js} +1 -1
- package/dist/{RoleManagementView-D0e9nLwW.js → RoleManagementView-D43pUCxi.js} +542 -543
- package/dist/{SystemUserDetailWorkspaceView-D-UPhCmD.js → SystemUserDetailWorkspaceView-CQ9WeLrR.js} +1 -1
- package/dist/SystemUserManagementView-D75_ylYk.js +758 -0
- package/dist/{UserDetailWorkspaceView-BCSCLNSz.js → UserDetailWorkspaceView-BCST01d2.js} +1 -1
- package/dist/{UserManagementView-aY2AeeWK.js → UserManagementView-CcdvDo_y.js} +211 -212
- package/dist/index.css +1 -1
- package/dist/index.js +4293 -5694
- package/dist/{pageRealtime-Be2xkeKK.js → pageRealtime-EAiGWKEo.js} +87 -85
- package/dist/{platform-components-DuAohqJO.js → platform-components-CFU_zR7-.js} +3828 -2331
- package/dist/types/app/CurrentUserProfileDialog.vue.d.ts +33 -0
- package/dist/types/app/LoginView.vue.d.ts +4 -1
- package/dist/types/app/ThemeSkinPreferencesDialog.vue.d.ts +20 -0
- package/dist/types/app/lockedTabPreference.d.ts +6 -0
- package/dist/types/app/themeSkinPreference.d.ts +11 -0
- package/dist/types/app/workbenchStartup.d.ts +18 -1
- package/dist/types/consumer/AppWorkbenchShell.vue.d.ts +43 -0
- package/dist/types/consumer/index.d.ts +17 -2
- package/dist/types/consumer/userPreferencePersistence.d.ts +7 -0
- package/dist/types/consumer/workbenchNavigation.d.ts +8 -0
- package/dist/types/dynamic-page-runtime/DynamicModuleWorkspaceDetailView.vue.d.ts +10 -0
- package/dist/types/dynamic-page-runtime/DynamicRecordDetailActions.vue.d.ts +38 -0
- package/dist/types/dynamic-page-runtime/NavigatorManagementEditor.vue.d.ts +25 -0
- package/dist/types/dynamic-page-runtime/PageNavigatorExplorer.vue.d.ts +43 -0
- package/dist/types/dynamic-page-runtime/detailSurfacePreference.d.ts +10 -0
- package/dist/types/dynamic-page-runtime/index.d.ts +2 -1
- package/dist/types/dynamic-page-runtime/modulePageEnhancements.d.ts +57 -1
- package/dist/types/dynamic-page-runtime/modulePageNavigation.d.ts +1 -1
- package/dist/types/dynamic-page-runtime/pageContextRuntime.d.ts +6 -0
- package/dist/types/dynamic-page-runtime/recordDetailController.d.ts +27 -0
- package/dist/types/platform-admin-runtime/index.d.ts +1 -1
- package/dist/types/platform-admin-runtime/platformAdminRoutes.d.ts +5 -0
- package/dist/types/platform-admin-runtime/realtime.d.ts +2 -1
- package/dist/types/platform-components/BusinessNotificationPanel.vue.d.ts +12 -0
- package/dist/types/platform-components/CrudRecordListExplorer.vue.d.ts +6 -0
- package/dist/types/platform-components/FileTransferUploader.vue.d.ts +20 -1
- package/dist/types/platform-components/ManagementPanelHeader.vue.d.ts +32 -0
- package/dist/types/platform-components/ManagementWorkspace.vue.d.ts +8 -2
- package/dist/types/platform-components/RecordActionBar.vue.d.ts +1 -1
- package/dist/types/platform-components/RecordDetailDrawer.vue.d.ts +4 -1
- package/dist/types/platform-components/RecordDetailLayout.vue.d.ts +11 -7
- package/dist/types/platform-components/RecordDetailPanel.vue.d.ts +7 -5
- package/dist/types/platform-components/RecordExplorerPanel.vue.d.ts +6 -6
- package/dist/types/platform-components/RecordFileReferenceTransfer.vue.d.ts +10 -0
- package/dist/types/platform-components/RecordFormFields.vue.d.ts +5 -1
- package/dist/types/platform-components/RecordModeDrawer.vue.d.ts +4 -1
- package/dist/types/platform-components/RecordMultiPicker.vue.d.ts +1 -1
- package/dist/types/platform-components/RecordPanelButton.vue.d.ts +2 -0
- package/dist/types/platform-components/RecordPicker.vue.d.ts +1 -1
- package/dist/types/platform-components/RecordQueryListPanel.vue.d.ts +9 -2
- package/dist/types/platform-components/RecordStatusSwitch.vue.d.ts +3 -0
- package/dist/types/platform-components/SingleImageFileReferenceField.vue.d.ts +23 -0
- package/dist/types/platform-components/StaticManagementLayout.vue.d.ts +13 -7
- package/dist/types/platform-components/TreeRecordExplorer.vue.d.ts +3 -0
- package/dist/types/platform-components/fileReferenceTransfer.d.ts +8 -0
- package/dist/types/platform-components/index.d.ts +5 -2
- package/dist/types/platform-components/managementWorkspaceLayout.d.ts +14 -0
- package/dist/types/platform-components/platformErrorFeedback.d.ts +2 -0
- package/dist/types/platform-components/recordActionBarModel.d.ts +6 -0
- package/dist/types/platform-components/recordFormFieldModel.d.ts +6 -3
- package/dist/types/platform-components/recycleBinState.d.ts +2 -0
- package/dist/types/platform-components/scopedTreeModuleContext.d.ts +12 -1
- package/dist/types/platform-components/staticCrudManagementState.d.ts +1 -1
- package/dist/types/platform-workbench/Workbench.vue.d.ts +12 -2
- package/dist/types/platform-workbench/WorkbenchBrandControl.vue.d.ts +22 -2
- package/dist/types/platform-workbench/WorkbenchMenu.vue.d.ts +24 -0
- package/dist/types/platform-workbench/WorkbenchSidebarMenuEntry.vue.d.ts +19 -0
- package/dist/types/platform-workbench/index.d.ts +1 -0
- package/dist/types/platform-workbench/menuHoverClickIntent.d.ts +10 -0
- package/dist/types/platform-workbench/menuNavigation.d.ts +3 -0
- package/dist/types/platform-workbench/menuPointerAim.d.ts +1 -1
- package/dist/types/platform-workbench/modulePageWorkspaceViews.d.ts +7 -0
- package/dist/types/platform-workbench/workbenchLayout.d.ts +39 -0
- package/dist/types/platform-workbench/workbenchNavigation.d.ts +2 -0
- package/dist/types/platform-workbench/workspaceViewHost.d.ts +2 -0
- package/dist/types/views/fieldUiControlManagementState.d.ts +1 -1
- package/dist/types/views/tenantManagementState.d.ts +11 -1
- package/dist/types/vue-ui-antdv/components/UiButton.vue.d.ts +1 -1
- package/dist/types/vue-ui-antdv/components/UiDataTable.vue.d.ts +2 -2
- package/dist/types/vue-ui-antdv/components/UiIcon.vue.d.ts +1 -1
- package/dist/types/vue-ui-antdv/components/UiModal.vue.d.ts +1 -1
- package/dist/types/vue-ui-antdv/components/UiSelect.vue.d.ts +1 -1
- package/dist/types/vue-ui-antdv/components/UiTabs.vue.d.ts +6 -0
- package/dist/types/vue-ui-antdv/components/UiThemeProvider.vue.d.ts +21 -0
- package/dist/types/vue-ui-antdv/components/UiTreeSelect.vue.d.ts +7 -1
- package/dist/types/vue-ui-antdv/index.d.ts +4 -0
- package/dist/types/vue-ui-antdv/theme.d.ts +58 -0
- package/dist/types/vue-ui-antdv/themeGlobalScope.d.ts +2 -0
- package/dist/types/vue-ui-antdv/types.d.ts +1 -0
- package/dist/types/web-contracts/index.d.ts +168 -17
- package/dist/types/web-core/businessNotifications.d.ts +3 -0
- package/dist/types/web-core/clients.d.ts +9 -1
- package/dist/types/web-core/index.d.ts +3 -0
- package/dist/types/web-core/mock.d.ts +3 -1
- package/dist/types/web-core/module/moduleContext.d.ts +1 -0
- package/dist/types/web-core/module/runtimeContext.d.ts +3 -1
- package/dist/types/web-core/module/staticModuleClient.d.ts +8 -1
- package/dist/types/web-core/realtime.d.ts +5 -1
- package/dist/types/web-core/userPreferences.d.ts +24 -0
- package/dist/{useUserSessionRows-DX9qYU5r.js → useUserSessionRows-DCpUZCzN.js} +2 -2
- package/dist/workspaceViewSessions-Dj1LjdG1.js +4984 -0
- package/package.json +1 -1
- package/dist/EmployeeManagementView-BfGb_ssB.js +0 -1706
- package/dist/RoleAuthorizationView-DJSWY3fu.js +0 -592
- package/dist/SystemUserManagementView-DNKRvmDk.js +0 -761
- package/dist/currentUserContext-B1lj1WgF.js +0 -11
- package/dist/types/views/ApplicationManagementView.vue.d.ts +0 -3
- package/dist/types/views/DepartmentManagementView.vue.d.ts +0 -3
- package/dist/types/views/FieldSpecManagementView.vue.d.ts +0 -3
- package/dist/types/views/OrganizationManagementView.vue.d.ts +0 -3
- package/dist/types/views/applicationManagementState.d.ts +0 -64
- package/dist/types/views/departmentManagementState.d.ts +0 -137
- package/dist/types/views/fieldSpecManagementState.d.ts +0 -80
- package/dist/types/views/organizationManagementState.d.ts +0 -64
- package/dist/workspaceViewSessions-C3GP1UGp.js +0 -2639
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { d as m, i as
|
|
3
|
-
import { f as v, n as
|
|
4
|
-
import {
|
|
5
|
-
import { t as ve } from "./useUserSessionRows-DX9qYU5r.js";
|
|
1
|
+
import { C as e, F as t, Ft as n, I as r, J as i, Kn as ee, M as te, N as ne, Nt as a, T as re, Vt as ie, X as ae, ct as o, dt as s, h as oe, i as c, it as se, j as l, k as ce, kt as u, l as le, nt as ue, r as de, ut as d, v as f, w as fe, y as p, yt as pe } from "./platform-components-CFU_zR7-.js";
|
|
2
|
+
import { S as me, d as m, i as he, j as ge, n as h, r as g, t as _ } from "./workspaceViewSessions-Dj1LjdG1.js";
|
|
3
|
+
import { f as v, n as _e } from "./pageRealtime-EAiGWKEo.js";
|
|
4
|
+
import { t as ve } from "./useUserSessionRows-DCpUZCzN.js";
|
|
6
5
|
import { Fragment as y, computed as b, createBlock as x, createCommentVNode as S, createElementBlock as C, createElementVNode as w, createTextVNode as T, createVNode as E, defineComponent as D, normalizeClass as ye, onBeforeUnmount as be, onMounted as xe, openBlock as O, ref as k, toDisplayString as A, unref as j, watch as M, withCtx as N, withModifiers as P } from "vue";
|
|
7
6
|
//#region src/platform-admin-runtime/sessionRecovery.ts
|
|
8
7
|
var F;
|
|
@@ -12,7 +11,7 @@ function I(e, t) {
|
|
|
12
11
|
//#endregion
|
|
13
12
|
//#region src/platform-admin-runtime/backendHttp.ts
|
|
14
13
|
function Se(e = {}) {
|
|
15
|
-
return
|
|
14
|
+
return ee({
|
|
16
15
|
baseUrl: void 0,
|
|
17
16
|
token: e.withAuth === !1 ? void 0 : v(void 0),
|
|
18
17
|
credentials: Ce(void 0),
|
|
@@ -30,7 +29,7 @@ var we = {
|
|
|
30
29
|
}, Te = {
|
|
31
30
|
key: 1,
|
|
32
31
|
class: "user-password-reset-result"
|
|
33
|
-
}, Ee = { key: 0 }, L = { key: 1 }, De = { class: "user-form-label" }, Oe = /*#__PURE__*/
|
|
32
|
+
}, Ee = { key: 0 }, L = { key: 1 }, De = { class: "user-form-label" }, Oe = /*#__PURE__*/ n(/* @__PURE__ */ D({
|
|
34
33
|
name: "UserDetailContent",
|
|
35
34
|
__name: "UserDetailContent",
|
|
36
35
|
props: {
|
|
@@ -55,24 +54,24 @@ var we = {
|
|
|
55
54
|
"update:field",
|
|
56
55
|
"update:password"
|
|
57
56
|
],
|
|
58
|
-
setup(e, { emit:
|
|
59
|
-
let
|
|
60
|
-
return (
|
|
57
|
+
setup(e, { emit: t }) {
|
|
58
|
+
let n = t;
|
|
59
|
+
return (t, r) => e.loading ? (O(), x(j(s), {
|
|
61
60
|
key: 0,
|
|
62
61
|
class: "user-detail-state",
|
|
63
62
|
tip: "加载用户详情"
|
|
64
|
-
})) : e.loadFailed ? (O(), C("div", we, [E(j(
|
|
63
|
+
})) : e.loadFailed ? (O(), C("div", we, [E(j(d), {
|
|
65
64
|
title: "详情加载失败",
|
|
66
65
|
message: "无法加载用户详情,请重试"
|
|
67
|
-
}), E(j(
|
|
66
|
+
}), E(j(a), {
|
|
68
67
|
type: "primary",
|
|
69
68
|
"icon-name": "reload",
|
|
70
|
-
onClick:
|
|
69
|
+
onClick: r[0] ||= (e) => n("retry")
|
|
71
70
|
}, {
|
|
72
|
-
default: N(() => [...
|
|
71
|
+
default: N(() => [...r[4] ||= [T("重试", -1)]]),
|
|
73
72
|
_: 1
|
|
74
73
|
})])) : e.mode === "view" || e.mode === "create" || e.selectedUser ? (O(), C(y, { key: 2 }, [
|
|
75
|
-
e.mode === "view" ? (O(), x(j(
|
|
74
|
+
e.mode === "view" ? (O(), x(j(l), {
|
|
76
75
|
key: 0,
|
|
77
76
|
record: e.draft,
|
|
78
77
|
fields: e.fields,
|
|
@@ -85,23 +84,23 @@ var we = {
|
|
|
85
84
|
"display-of"
|
|
86
85
|
])) : S("v-if", !0),
|
|
87
86
|
e.mode === "view" && e.resetPasswordResult?.temporaryPassword ? (O(), C("div", Te, [
|
|
88
|
-
|
|
89
|
-
E(j(
|
|
87
|
+
r[6] ||= w("span", null, "临时密码", -1),
|
|
88
|
+
E(j(u), {
|
|
90
89
|
value: e.resetPasswordResult.temporaryPassword,
|
|
91
90
|
disabled: ""
|
|
92
91
|
}, null, 8, ["value"]),
|
|
93
|
-
e.resetPasswordResult.expiresAt ? (O(), C("small", Ee, [
|
|
92
|
+
e.resetPasswordResult.expiresAt ? (O(), C("small", Ee, [r[5] ||= T(" 有效期至 ", -1), E(j(i), { value: e.resetPasswordResult.expiresAt }, null, 8, ["value"])])) : S("v-if", !0)
|
|
94
93
|
])) : S("v-if", !0),
|
|
95
94
|
e.mode === "view" ? S("v-if", !0) : (O(), C("form", {
|
|
96
95
|
key: 2,
|
|
97
96
|
class: "user-form",
|
|
98
|
-
onSubmit:
|
|
97
|
+
onSubmit: r[3] ||= P((e) => n("save"), ["prevent"])
|
|
99
98
|
}, [
|
|
100
|
-
w("label", null, [
|
|
99
|
+
w("label", null, [r[7] ||= w("span", { class: "user-form-label" }, "当前租户", -1), E(j(u), {
|
|
101
100
|
value: e.tenantTitle,
|
|
102
101
|
disabled: ""
|
|
103
102
|
}, null, 8, ["value"])]),
|
|
104
|
-
e.mode === "resetPassword" ? S("v-if", !0) : (O(), x(j(
|
|
103
|
+
e.mode === "resetPassword" ? S("v-if", !0) : (O(), x(j(p), {
|
|
105
104
|
key: 0,
|
|
106
105
|
record: e.draft,
|
|
107
106
|
"field-names": e.fieldNames,
|
|
@@ -109,7 +108,7 @@ var we = {
|
|
|
109
108
|
fallback: e.fallback,
|
|
110
109
|
disabled: e.saving,
|
|
111
110
|
"disabled-of": e.disabledOf,
|
|
112
|
-
"onUpdate:field":
|
|
111
|
+
"onUpdate:field": r[1] ||= (e, t) => n("update:field", e, t)
|
|
113
112
|
}, null, 8, [
|
|
114
113
|
"record",
|
|
115
114
|
"field-names",
|
|
@@ -118,16 +117,16 @@ var we = {
|
|
|
118
117
|
"disabled",
|
|
119
118
|
"disabled-of"
|
|
120
119
|
])),
|
|
121
|
-
e.mode === "create" || e.mode === "resetPassword" ? (O(), C("label", L, [w("span", De, A(e.mode === "create" ? "初始密码" : "新密码"), 1), E(j(
|
|
120
|
+
e.mode === "create" || e.mode === "resetPassword" ? (O(), C("label", L, [w("span", De, A(e.mode === "create" ? "初始密码" : "新密码"), 1), E(j(u), {
|
|
122
121
|
value: e.password,
|
|
123
122
|
type: "password",
|
|
124
123
|
disabled: e.saving,
|
|
125
124
|
placeholder: "请输入密码",
|
|
126
125
|
"allow-clear": "",
|
|
127
|
-
"onUpdate:value":
|
|
126
|
+
"onUpdate:value": r[2] ||= (e) => n("update:password", e)
|
|
128
127
|
}, null, 8, ["value", "disabled"])])) : S("v-if", !0)
|
|
129
128
|
], 32)),
|
|
130
|
-
e.mode !== "create" && e.mode !== "resetPassword" ? (O(), x(j(
|
|
129
|
+
e.mode !== "create" && e.mode !== "resetPassword" ? (O(), x(j(f), {
|
|
131
130
|
key: 3,
|
|
132
131
|
record: e.draft
|
|
133
132
|
}, null, 8, ["record"])) : S("v-if", !0)
|
|
@@ -163,26 +162,26 @@ function Pe(e) {
|
|
|
163
162
|
}
|
|
164
163
|
//#endregion
|
|
165
164
|
//#region src/views/UserManagementView.vue
|
|
166
|
-
var Fe = /*#__PURE__*/
|
|
165
|
+
var Fe = /*#__PURE__*/ n(/* @__PURE__ */ D({
|
|
167
166
|
name: "UserManagementView",
|
|
168
167
|
__name: "UserManagementView",
|
|
169
168
|
props: {
|
|
170
169
|
recordId: {},
|
|
171
170
|
mode: {}
|
|
172
171
|
},
|
|
173
|
-
setup(
|
|
174
|
-
let
|
|
172
|
+
setup(n) {
|
|
173
|
+
let i = n, ee = ie({ moduleAlias: "iam.tenant" }), a = ie({ moduleAlias: "iam.user" }), s = ge(), l = me(), u = k(""), d = k(0), f = k(0), p = k(), h = k(), g = k(), _ = k(!1), v = k("view"), y = k(!1), w = k(!1), T = k(!1), D = k(0), A = k(X(void 0)), P = k(""), F = k(), I = k(ne(void 0)), { expandedUserKeys: Ce, handleUserListLoaded: we, handleUserRowExpand: Te, handleUserSessionBusinessEvent: Ee, loadUserSessions: L, resetUserSessionRows: De, userOnlineStatusTitle: Fe, userSessionState: R } = ve({
|
|
175
174
|
context: a,
|
|
176
175
|
source: "user-management"
|
|
177
|
-
}), Ie = b(() =>
|
|
178
|
-
let e =
|
|
179
|
-
if (!(
|
|
176
|
+
}), Ie = b(() => ee), z = b(() => !!i.recordId), B = b(() => z.value && l?.presentation === "drawer"), Le = b(() => !z.value || B.value), V = b(() => s?.value?.system === !0), H = b(() => {
|
|
177
|
+
let e = s?.value?.tenantId;
|
|
178
|
+
if (!(s?.value?.system === !0 || !e)) return {
|
|
180
179
|
id: e,
|
|
181
180
|
title: e,
|
|
182
181
|
alias: e,
|
|
183
182
|
enabled: !0
|
|
184
183
|
};
|
|
185
|
-
}), Re = b(() =>
|
|
184
|
+
}), Re = b(() => $e(a, p.value)), ze = b(() => [
|
|
186
185
|
{
|
|
187
186
|
key: "username",
|
|
188
187
|
title: "账号",
|
|
@@ -222,7 +221,7 @@ var Fe = /*#__PURE__*/ i(/* @__PURE__ */ D({
|
|
|
222
221
|
type: "datetime",
|
|
223
222
|
width: "180px"
|
|
224
223
|
}
|
|
225
|
-
]), Be = b(() => !!p.value?.id), Ve = b(() => p.value ? `用户列表 - ${$(p.value)}` : "用户列表"), He = b(() => v.value === "create" ? "新建用户" :
|
|
224
|
+
]), Be = b(() => !!p.value?.id), Ve = b(() => p.value ? `用户列表 - ${$(p.value)}` : "用户列表"), He = b(() => v.value === "create" ? "新建用户" : Dt(g.value ?? A.value)), Ue = b(() => {
|
|
226
225
|
if (v.value !== "create") return Ot(g.value ?? A.value);
|
|
227
226
|
}), U = b(() => {
|
|
228
227
|
if (y.value) return !1;
|
|
@@ -233,7 +232,7 @@ var Fe = /*#__PURE__*/ i(/* @__PURE__ */ D({
|
|
|
233
232
|
return !!e && a.can("changePassword", e) === !0;
|
|
234
233
|
}
|
|
235
234
|
return !1;
|
|
236
|
-
}),
|
|
235
|
+
}), W = b(() => !g.value?.id || y.value ? !1 : a.can(Et(g.value)) === !0), We = b(() => v.value === "view" ? g.value?.id ? [
|
|
237
236
|
{
|
|
238
237
|
key: "edit",
|
|
239
238
|
actionCode: "update",
|
|
@@ -276,7 +275,7 @@ var Fe = /*#__PURE__*/ i(/* @__PURE__ */ D({
|
|
|
276
275
|
primary: !0,
|
|
277
276
|
loading: T.value,
|
|
278
277
|
disabled: !U.value
|
|
279
|
-
}]),
|
|
278
|
+
}]), Ge = b(() => We.value), Ke = b(() => v.value === "view" ? g.value?.id ? [{
|
|
280
279
|
key: "edit",
|
|
281
280
|
actionCode: "update",
|
|
282
281
|
title: "编辑",
|
|
@@ -295,13 +294,13 @@ var Fe = /*#__PURE__*/ i(/* @__PURE__ */ D({
|
|
|
295
294
|
primary: !0,
|
|
296
295
|
loading: T.value,
|
|
297
296
|
disabled: !U.value
|
|
298
|
-
}] : []),
|
|
297
|
+
}] : []), qe = he({
|
|
299
298
|
view: m,
|
|
300
299
|
input: b(() => {
|
|
301
300
|
let e = g.value?.id, t = v.value;
|
|
302
301
|
return e && (t === "view" || t === "edit") ? { recordId: e } : void 0;
|
|
303
302
|
}),
|
|
304
|
-
title: b(() =>
|
|
303
|
+
title: b(() => Dt(g.value)),
|
|
305
304
|
eligibility: b(() => ({
|
|
306
305
|
hasStableIdentity: !!g.value?.id && !y.value,
|
|
307
306
|
busy: T.value
|
|
@@ -317,12 +316,12 @@ var Fe = /*#__PURE__*/ i(/* @__PURE__ */ D({
|
|
|
317
316
|
resetPasswordResult: F.value
|
|
318
317
|
}) === "accepted";
|
|
319
318
|
},
|
|
320
|
-
onPromoted:
|
|
319
|
+
onPromoted: K
|
|
321
320
|
});
|
|
322
321
|
M(g, (e) => {
|
|
323
|
-
!z.value || !e ||
|
|
322
|
+
!z.value || !e || l?.setTitle(Dt(e));
|
|
324
323
|
}, { immediate: !0 });
|
|
325
|
-
let
|
|
324
|
+
let Je = b(() => ({
|
|
326
325
|
username: {
|
|
327
326
|
label: "账号",
|
|
328
327
|
required: !0,
|
|
@@ -334,45 +333,45 @@ var Fe = /*#__PURE__*/ i(/* @__PURE__ */ D({
|
|
|
334
333
|
visible: !0,
|
|
335
334
|
controlType: "enabledStatus"
|
|
336
335
|
}
|
|
337
|
-
})),
|
|
336
|
+
})), Ye = b(() => ["username", "enabled"]), Xe;
|
|
338
337
|
xe(() => {
|
|
339
|
-
if (
|
|
340
|
-
let e = { recordId:
|
|
341
|
-
B.value || (
|
|
338
|
+
if (Qe(), i.recordId) {
|
|
339
|
+
let e = { recordId: i.recordId };
|
|
340
|
+
B.value || (Xe = Ae(e, Ze));
|
|
342
341
|
let t = je(e);
|
|
343
342
|
if (t) {
|
|
344
|
-
|
|
343
|
+
yt(t);
|
|
345
344
|
return;
|
|
346
345
|
}
|
|
347
|
-
|
|
346
|
+
G({ id: i.recordId }, i.mode ?? "view");
|
|
348
347
|
}
|
|
349
|
-
}), be(() =>
|
|
350
|
-
function
|
|
351
|
-
return v.value === "view" ? (
|
|
348
|
+
}), be(() => Xe?.());
|
|
349
|
+
function Ze(e) {
|
|
350
|
+
return v.value === "view" ? (yt(e), !0) : !1;
|
|
352
351
|
}
|
|
353
|
-
|
|
354
|
-
z.value || (h.value = void 0, g.value = void 0, De(), A.value =
|
|
352
|
+
_e(Ee), M(H, nt, { immediate: !0 }), M(p, () => {
|
|
353
|
+
z.value || (h.value = void 0, g.value = void 0, De(), A.value = X(p.value), K(), f.value += 1);
|
|
355
354
|
});
|
|
356
|
-
async function
|
|
355
|
+
async function Qe() {
|
|
357
356
|
try {
|
|
358
|
-
I.value =
|
|
359
|
-
} catch (
|
|
360
|
-
e
|
|
357
|
+
I.value = ne((await a.runtime.ready).uiDescriptor);
|
|
358
|
+
} catch (e) {
|
|
359
|
+
ue(e, {
|
|
361
360
|
source: "user-management",
|
|
362
361
|
phase: "load"
|
|
363
362
|
});
|
|
364
363
|
}
|
|
365
364
|
}
|
|
366
|
-
function
|
|
365
|
+
function $e(e, t) {
|
|
367
366
|
return {
|
|
368
367
|
...e,
|
|
369
368
|
crud: {
|
|
370
369
|
...e.crud,
|
|
371
|
-
query: (n) => e.crud.query(
|
|
370
|
+
query: (n) => e.crud.query(et(n, t))
|
|
372
371
|
}
|
|
373
372
|
};
|
|
374
373
|
}
|
|
375
|
-
function
|
|
374
|
+
function et(e, t) {
|
|
376
375
|
let n = [...e?.conditions ?? []];
|
|
377
376
|
return t?.id && n.push({
|
|
378
377
|
fieldName: "tenantId",
|
|
@@ -383,102 +382,102 @@ var Fe = /*#__PURE__*/ i(/* @__PURE__ */ D({
|
|
|
383
382
|
conditions: n
|
|
384
383
|
};
|
|
385
384
|
}
|
|
386
|
-
function
|
|
387
|
-
!V.value || p.value || e.length > 0 &&
|
|
385
|
+
function tt(e) {
|
|
386
|
+
!V.value || p.value || e.length > 0 && rt(e[0]);
|
|
388
387
|
}
|
|
389
|
-
function
|
|
388
|
+
function nt(e = H.value) {
|
|
390
389
|
z.value || !e || V.value || p.value || (p.value = e);
|
|
391
390
|
}
|
|
392
|
-
function
|
|
393
|
-
|
|
391
|
+
function rt(e) {
|
|
392
|
+
q() && (p.value = e);
|
|
394
393
|
}
|
|
395
|
-
function
|
|
396
|
-
e.key === "create" &&
|
|
394
|
+
function it(e) {
|
|
395
|
+
e.key === "create" && st();
|
|
397
396
|
}
|
|
398
|
-
function
|
|
399
|
-
if (
|
|
397
|
+
function at(e, t) {
|
|
398
|
+
if (q()) {
|
|
400
399
|
if (e.key === "view") {
|
|
401
|
-
|
|
400
|
+
G(t, "view");
|
|
402
401
|
return;
|
|
403
402
|
}
|
|
404
403
|
if (e.key === "edit") {
|
|
405
|
-
|
|
404
|
+
G(t, "edit");
|
|
406
405
|
return;
|
|
407
406
|
}
|
|
408
|
-
e.key === "delete" &&
|
|
407
|
+
e.key === "delete" && vt(t);
|
|
409
408
|
}
|
|
410
409
|
}
|
|
411
|
-
function
|
|
412
|
-
|
|
410
|
+
function ot(e) {
|
|
411
|
+
q() && G(e, "view");
|
|
413
412
|
}
|
|
414
|
-
function
|
|
415
|
-
if (
|
|
413
|
+
function st() {
|
|
414
|
+
if (q()) {
|
|
416
415
|
if (!p.value?.id) {
|
|
417
|
-
|
|
416
|
+
se("请先选择租户", { phase: "validation" });
|
|
418
417
|
return;
|
|
419
418
|
}
|
|
420
|
-
g.value = void 0, h.value = void 0, A.value =
|
|
419
|
+
g.value = void 0, h.value = void 0, A.value = X(p.value), P.value = "", v.value = "create", y.value = !1, w.value = !1, D.value += 1, _.value = !0;
|
|
421
420
|
}
|
|
422
421
|
}
|
|
423
|
-
async function
|
|
424
|
-
if (!
|
|
425
|
-
let
|
|
426
|
-
if (!
|
|
427
|
-
h.value =
|
|
428
|
-
let
|
|
429
|
-
D.value =
|
|
422
|
+
async function G(e, t) {
|
|
423
|
+
if (!q()) return;
|
|
424
|
+
let n = String(e.id ?? "");
|
|
425
|
+
if (!n) return;
|
|
426
|
+
h.value = n, _.value = !0, v.value = t, g.value = void 0, A.value = Z(e), P.value = "", F.value = void 0, y.value = !0, w.value = !1;
|
|
427
|
+
let r = D.value + 1;
|
|
428
|
+
D.value = r;
|
|
430
429
|
try {
|
|
431
|
-
let e = await a.crud.view(
|
|
432
|
-
if (!
|
|
430
|
+
let e = await a.crud.view(n);
|
|
431
|
+
if (!J(n, r)) return;
|
|
433
432
|
if (!e?.id) {
|
|
434
|
-
w.value = !0,
|
|
433
|
+
w.value = !0, se("未找到指定用户", {
|
|
435
434
|
source: "user-management",
|
|
436
435
|
phase: "load"
|
|
437
436
|
});
|
|
438
437
|
return;
|
|
439
438
|
}
|
|
440
|
-
let
|
|
441
|
-
if (!
|
|
442
|
-
|
|
439
|
+
let i = await ct(n);
|
|
440
|
+
if (!J(n, r)) return;
|
|
441
|
+
Y({
|
|
443
442
|
...e,
|
|
444
|
-
...
|
|
445
|
-
},
|
|
446
|
-
} catch (
|
|
447
|
-
|
|
443
|
+
...i
|
|
444
|
+
}, t);
|
|
445
|
+
} catch (e) {
|
|
446
|
+
J(n, r) && (w.value = !0, ue(e, {
|
|
448
447
|
source: "user-management",
|
|
449
448
|
phase: "load"
|
|
450
449
|
}));
|
|
451
450
|
} finally {
|
|
452
|
-
|
|
451
|
+
J(n, r) && (y.value = !1);
|
|
453
452
|
}
|
|
454
453
|
}
|
|
455
|
-
function
|
|
454
|
+
function ct(e) {
|
|
456
455
|
return Se().request({ path: `/iam.user/${encodeURIComponent(e)}/employee-binding` });
|
|
457
456
|
}
|
|
458
|
-
function
|
|
459
|
-
T.value || (D.value += 1, y.value = !1, w.value = !1, _.value = !1, v.value = "view", P.value = "", F.value = void 0, A.value = g.value ?
|
|
457
|
+
function K() {
|
|
458
|
+
T.value || (D.value += 1, y.value = !1, w.value = !1, _.value = !1, v.value = "view", P.value = "", F.value = void 0, A.value = g.value ? Z(g.value) : X(p.value), B.value && l?.dismiss());
|
|
460
459
|
}
|
|
461
|
-
function
|
|
460
|
+
function lt() {
|
|
462
461
|
if (!T.value) {
|
|
463
462
|
if (!g.value?.id || v.value === "create") {
|
|
464
|
-
|
|
463
|
+
K();
|
|
465
464
|
return;
|
|
466
465
|
}
|
|
467
|
-
A.value =
|
|
466
|
+
A.value = Z(g.value), P.value = "", F.value = void 0, v.value = "view", y.value = !1, w.value = !1;
|
|
468
467
|
}
|
|
469
468
|
}
|
|
470
|
-
function
|
|
469
|
+
function ut(e) {
|
|
471
470
|
if (e.key === "cancel") {
|
|
472
|
-
|
|
471
|
+
lt();
|
|
473
472
|
return;
|
|
474
473
|
}
|
|
475
474
|
if (e.key === "save") {
|
|
476
|
-
|
|
475
|
+
ft();
|
|
477
476
|
return;
|
|
478
477
|
}
|
|
479
|
-
if (
|
|
478
|
+
if (q()) {
|
|
480
479
|
if (e.key === "edit" && g.value) {
|
|
481
|
-
A.value =
|
|
480
|
+
A.value = Z(g.value), v.value = "edit";
|
|
482
481
|
return;
|
|
483
482
|
}
|
|
484
483
|
if (e.key === "resetPassword" && g.value) {
|
|
@@ -486,43 +485,43 @@ var Fe = /*#__PURE__*/ i(/* @__PURE__ */ D({
|
|
|
486
485
|
return;
|
|
487
486
|
}
|
|
488
487
|
if (e.key === "resetGeneratedPassword" && g.value) {
|
|
489
|
-
|
|
488
|
+
mt();
|
|
490
489
|
return;
|
|
491
490
|
}
|
|
492
|
-
e.key === "delete" &&
|
|
491
|
+
e.key === "delete" && vt(g.value);
|
|
493
492
|
}
|
|
494
493
|
}
|
|
495
|
-
function
|
|
494
|
+
function dt() {
|
|
496
495
|
let e = String(A.value.id ?? h.value ?? "");
|
|
497
496
|
if (!e) return;
|
|
498
497
|
let t = v.value === "create" ? "view" : v.value;
|
|
499
|
-
|
|
498
|
+
G({
|
|
500
499
|
...A.value,
|
|
501
500
|
id: e
|
|
502
501
|
}, t);
|
|
503
502
|
}
|
|
504
|
-
async function
|
|
503
|
+
async function ft() {
|
|
505
504
|
if (v.value === "resetPassword") {
|
|
506
|
-
await
|
|
505
|
+
await pt();
|
|
507
506
|
return;
|
|
508
507
|
}
|
|
509
|
-
await
|
|
508
|
+
await de({
|
|
510
509
|
loading: T,
|
|
511
510
|
mode: v.value === "edit" ? "edit" : "create",
|
|
512
511
|
source: "user-management",
|
|
513
512
|
validateContext: () => v.value === "create" && !p.value?.id ? "请先选择租户" : void 0,
|
|
514
513
|
canSave: () => U.value,
|
|
515
514
|
deniedMessage: "当前用户无权保存用户",
|
|
516
|
-
createRecord: () =>
|
|
517
|
-
validateRecord:
|
|
515
|
+
createRecord: () => St(A.value, p.value, v.value, P.value),
|
|
516
|
+
validateRecord: Ct,
|
|
518
517
|
save: (e, t) => t === "edit" && g.value?.id ? a.crud.update(g.value.id, e) : a.crud.insert(e),
|
|
519
518
|
onSaved: ({ record: e }) => {
|
|
520
|
-
|
|
519
|
+
Y(e), f.value += 1;
|
|
521
520
|
}
|
|
522
521
|
});
|
|
523
522
|
}
|
|
524
|
-
async function
|
|
525
|
-
await
|
|
523
|
+
async function pt() {
|
|
524
|
+
await c({
|
|
526
525
|
loading: T,
|
|
527
526
|
source: "user-management",
|
|
528
527
|
record: () => g.value?.id ? g.value : void 0,
|
|
@@ -534,12 +533,12 @@ var Fe = /*#__PURE__*/ i(/* @__PURE__ */ D({
|
|
|
534
533
|
body: { password: P.value }
|
|
535
534
|
}),
|
|
536
535
|
onExecuted: async (e, t) => {
|
|
537
|
-
|
|
536
|
+
Y(await a.crud.view(t.id)), f.value += 1;
|
|
538
537
|
}
|
|
539
538
|
});
|
|
540
539
|
}
|
|
541
|
-
async function
|
|
542
|
-
await
|
|
540
|
+
async function mt() {
|
|
541
|
+
await c({
|
|
543
542
|
loading: T,
|
|
544
543
|
source: "user-management",
|
|
545
544
|
record: () => g.value?.id ? g.value : void 0,
|
|
@@ -550,20 +549,20 @@ var Fe = /*#__PURE__*/ i(/* @__PURE__ */ D({
|
|
|
550
549
|
path: `/iam.user/resetPassword/${encodeURIComponent(e.id)}`
|
|
551
550
|
}),
|
|
552
551
|
onExecuted: async (e, t) => {
|
|
553
|
-
|
|
552
|
+
Y(await a.crud.view(t.id)), F.value = e, f.value += 1;
|
|
554
553
|
}
|
|
555
554
|
});
|
|
556
555
|
}
|
|
557
|
-
async function
|
|
558
|
-
await
|
|
556
|
+
async function ht(e, t) {
|
|
557
|
+
await c({
|
|
559
558
|
loading: T,
|
|
560
559
|
source: "user-management",
|
|
561
560
|
record: () => e?.id ? e : void 0,
|
|
562
561
|
canExecute: (e) => a.can("revokeSession", e.id) === !0 && !t.current,
|
|
563
562
|
deniedMessage: "当前用户无权下线该登录会话",
|
|
564
|
-
confirm: (e) =>
|
|
563
|
+
confirm: (e) => o({
|
|
565
564
|
title: "下线登录会话",
|
|
566
|
-
content: `确认下线用户「${
|
|
565
|
+
content: `确认下线用户「${Q(e)}」的该登录会话?`,
|
|
567
566
|
okText: "下线",
|
|
568
567
|
danger: !0
|
|
569
568
|
}),
|
|
@@ -576,24 +575,24 @@ var Fe = /*#__PURE__*/ i(/* @__PURE__ */ D({
|
|
|
576
575
|
}
|
|
577
576
|
});
|
|
578
577
|
}
|
|
579
|
-
async function
|
|
580
|
-
let t =
|
|
578
|
+
async function gt(e) {
|
|
579
|
+
let t = bt(String(e.id ?? "")).map((e) => e.id);
|
|
581
580
|
if (t.length === 0) {
|
|
582
|
-
|
|
581
|
+
se("当前没有可下线的登录会话", {
|
|
583
582
|
source: "user-management",
|
|
584
583
|
phase: "validation"
|
|
585
584
|
});
|
|
586
585
|
return;
|
|
587
586
|
}
|
|
588
|
-
await
|
|
587
|
+
await c({
|
|
589
588
|
loading: T,
|
|
590
589
|
source: "user-management",
|
|
591
590
|
record: () => e?.id ? e : void 0,
|
|
592
591
|
canExecute: (e) => a.can("revokeSessions", e.id) === !0,
|
|
593
592
|
deniedMessage: "当前用户无权批量下线登录会话",
|
|
594
|
-
confirm: (e) =>
|
|
593
|
+
confirm: (e) => o({
|
|
595
594
|
title: "批量下线登录会话",
|
|
596
|
-
content: `确认下线用户「${
|
|
595
|
+
content: `确认下线用户「${Q(e)}」的 ${t.length} 个登录会话?`,
|
|
597
596
|
okText: "全部下线",
|
|
598
597
|
danger: !0
|
|
599
598
|
}),
|
|
@@ -607,42 +606,42 @@ var Fe = /*#__PURE__*/ i(/* @__PURE__ */ D({
|
|
|
607
606
|
}
|
|
608
607
|
});
|
|
609
608
|
}
|
|
610
|
-
async function
|
|
611
|
-
await
|
|
609
|
+
async function _t() {
|
|
610
|
+
await c({
|
|
612
611
|
loading: T,
|
|
613
612
|
source: "user-management",
|
|
614
613
|
record: () => g.value?.id ? g.value : void 0,
|
|
615
|
-
canExecute: () =>
|
|
614
|
+
canExecute: () => W.value,
|
|
616
615
|
deniedMessage: "当前用户无权变更用户启停状态",
|
|
617
616
|
execute: (e) => e.enabled === !1 ? a.crud.enable(e.id, { version: e.version }) : a.crud.disable(e.id, { version: e.version }),
|
|
618
617
|
onExecuted: async (e, t) => {
|
|
619
|
-
|
|
618
|
+
Y(await a.crud.view(t.id)), f.value += 1;
|
|
620
619
|
}
|
|
621
620
|
});
|
|
622
621
|
}
|
|
623
|
-
async function
|
|
624
|
-
await
|
|
622
|
+
async function vt(e) {
|
|
623
|
+
await c({
|
|
625
624
|
loading: T,
|
|
626
625
|
source: "user-management",
|
|
627
626
|
record: () => e?.id ? e : void 0,
|
|
628
627
|
canExecute: () => a.can("delete") === !0,
|
|
629
628
|
deniedMessage: "当前用户无权删除用户",
|
|
630
|
-
confirm: (e) =>
|
|
629
|
+
confirm: (e) => o({
|
|
631
630
|
title: "删除用户",
|
|
632
|
-
content: `确认删除用户「${
|
|
631
|
+
content: `确认删除用户「${Q(e)}」?`,
|
|
633
632
|
okText: "删除",
|
|
634
633
|
danger: !0
|
|
635
634
|
}),
|
|
636
635
|
execute: (e) => a.crud.delete(String(e.id), { version: e.version }),
|
|
637
636
|
onExecuted: (e, t) => {
|
|
638
|
-
h.value === String(t.id) && (h.value = void 0, g.value = void 0, A.value =
|
|
637
|
+
h.value === String(t.id) && (h.value = void 0, g.value = void 0, A.value = X(p.value), _.value = !1, v.value = "view", y.value = !1, w.value = !1, D.value += 1), f.value += 1;
|
|
639
638
|
}
|
|
640
639
|
});
|
|
641
640
|
}
|
|
642
|
-
function
|
|
641
|
+
function q() {
|
|
643
642
|
return Me(T.value);
|
|
644
643
|
}
|
|
645
|
-
function
|
|
644
|
+
function J(e, t) {
|
|
646
645
|
return Ne({
|
|
647
646
|
activeRequestSeq: D.value,
|
|
648
647
|
requestSeq: t,
|
|
@@ -650,66 +649,66 @@ var Fe = /*#__PURE__*/ i(/* @__PURE__ */ D({
|
|
|
650
649
|
recordId: e
|
|
651
650
|
});
|
|
652
651
|
}
|
|
653
|
-
function
|
|
654
|
-
return g.value = e, h.value = e.id, A.value =
|
|
652
|
+
function Y(e, t = "view") {
|
|
653
|
+
return g.value = e, h.value = e.id, A.value = Z(e), P.value = "", v.value = Pe(t), _.value = !0, y.value = !1, w.value = !1, D.value += 1, D.value;
|
|
655
654
|
}
|
|
656
|
-
function
|
|
655
|
+
function yt(e) {
|
|
657
656
|
g.value = e.selectedUser, h.value = e.selectedUser.id, p.value = e.tenant, A.value = e.draft, v.value = e.mode, P.value = e.password, F.value = e.resetPasswordResult, _.value = !0, y.value = !1, w.value = !1, D.value += 1;
|
|
658
657
|
}
|
|
659
|
-
function
|
|
658
|
+
function bt(e) {
|
|
660
659
|
return !e || a.can("revokeSession", e) !== !0 ? [] : R(e).records.filter((e) => !e.current);
|
|
661
660
|
}
|
|
662
|
-
function
|
|
661
|
+
function xt(e, t) {
|
|
663
662
|
return !!e && !t.current && a.can("revokeSession", e) === !0;
|
|
664
663
|
}
|
|
665
|
-
function
|
|
664
|
+
function X(e) {
|
|
666
665
|
return {
|
|
667
666
|
tenantId: e?.id,
|
|
668
667
|
enabled: !0
|
|
669
668
|
};
|
|
670
669
|
}
|
|
671
|
-
function
|
|
670
|
+
function Z(e) {
|
|
672
671
|
return {
|
|
673
672
|
...e,
|
|
674
673
|
password: void 0
|
|
675
674
|
};
|
|
676
675
|
}
|
|
677
|
-
function
|
|
678
|
-
return
|
|
676
|
+
function St(e, t, n, r) {
|
|
677
|
+
return le(e, {
|
|
679
678
|
tenantId: t?.id ?? e.tenantId,
|
|
680
679
|
username: e.username?.trim(),
|
|
681
680
|
enabled: e.enabled !== !1,
|
|
682
681
|
password: n === "create" ? r.trim() : void 0
|
|
683
682
|
});
|
|
684
683
|
}
|
|
685
|
-
function
|
|
684
|
+
function Ct(e) {
|
|
686
685
|
for (let t of ["username"]) {
|
|
687
|
-
let n =
|
|
686
|
+
let n = te(t, {
|
|
688
687
|
fields: I.value,
|
|
689
|
-
fallback:
|
|
688
|
+
fallback: Je.value
|
|
690
689
|
});
|
|
691
690
|
if (n.visible && n.required && !e[t]) return `请填写${n.label}`;
|
|
692
691
|
}
|
|
693
692
|
if (v.value === "create" && !e.password) return "请填写初始密码";
|
|
694
693
|
if (v.value === "resetPassword" && !P.value.trim()) return "请填写新密码";
|
|
695
694
|
}
|
|
696
|
-
function
|
|
695
|
+
function wt(e) {
|
|
697
696
|
return e === "username" && v.value === "edit";
|
|
698
697
|
}
|
|
699
|
-
function
|
|
698
|
+
function Tt(e, t) {
|
|
700
699
|
A.value = {
|
|
701
700
|
...A.value,
|
|
702
701
|
[e]: t
|
|
703
702
|
};
|
|
704
703
|
}
|
|
705
|
-
function
|
|
704
|
+
function Et(e) {
|
|
706
705
|
return e.enabled === !1 ? "enable" : "disable";
|
|
707
706
|
}
|
|
708
|
-
function
|
|
707
|
+
function Q(e) {
|
|
709
708
|
return String(e?.username ?? e?.id ?? "用户");
|
|
710
709
|
}
|
|
711
|
-
function
|
|
712
|
-
return
|
|
710
|
+
function Dt(e) {
|
|
711
|
+
return Q(e);
|
|
713
712
|
}
|
|
714
713
|
function Ot(e) {
|
|
715
714
|
let t = String(e?.employeeTitle ?? "").trim();
|
|
@@ -726,40 +725,40 @@ var Fe = /*#__PURE__*/ i(/* @__PURE__ */ D({
|
|
|
726
725
|
muted: e.enabled === !1
|
|
727
726
|
};
|
|
728
727
|
}
|
|
729
|
-
return (
|
|
730
|
-
!z.value || B.value ? (O(), x(j(
|
|
728
|
+
return (n, i) => (O(), C("section", { class: ye(["user-management-page", { "user-management-page--task": z.value && !B.value }]) }, [
|
|
729
|
+
!z.value || B.value ? (O(), x(j(fe), {
|
|
731
730
|
key: 0,
|
|
732
731
|
class: "user-scope-panel",
|
|
733
732
|
title: "租户",
|
|
734
733
|
"refresh-title": "刷新租户列表",
|
|
735
|
-
"search-keyword":
|
|
734
|
+
"search-keyword": u.value,
|
|
736
735
|
"search-placeholder": "搜索租户名称、alias 或 ID",
|
|
737
736
|
searchable: V.value,
|
|
738
|
-
onRefresh:
|
|
739
|
-
"onUpdate:searchKeyword":
|
|
737
|
+
onRefresh: i[2] ||= (e) => V.value ? d.value += 1 : nt(),
|
|
738
|
+
"onUpdate:searchKeyword": i[3] ||= (e) => u.value = e
|
|
740
739
|
}, {
|
|
741
740
|
default: N(() => [!V.value && H.value ? (O(), C("button", {
|
|
742
741
|
key: 0,
|
|
743
742
|
class: "user-scope-entry",
|
|
744
743
|
type: "button",
|
|
745
|
-
onClick:
|
|
746
|
-
}, [E(j(
|
|
744
|
+
onClick: i[0] ||= (e) => rt(H.value)
|
|
745
|
+
}, [E(j(pe), {
|
|
747
746
|
title: $(H.value),
|
|
748
747
|
secondary: "当前租户",
|
|
749
748
|
clickable: "",
|
|
750
749
|
selected: p.value?.id === H.value.id
|
|
751
|
-
}, null, 8, ["title", "selected"])])) : S("v-if", !0), V.value ? (O(), x(j(
|
|
750
|
+
}, null, 8, ["title", "selected"])])) : S("v-if", !0), V.value ? (O(), x(j(ae), {
|
|
752
751
|
key: 1,
|
|
753
752
|
context: Ie.value,
|
|
754
753
|
"selected-id": p.value?.id,
|
|
755
|
-
"reload-key":
|
|
756
|
-
keyword:
|
|
754
|
+
"reload-key": d.value,
|
|
755
|
+
keyword: u.value,
|
|
757
756
|
"empty-description": "暂无租户",
|
|
758
757
|
"loading-tip": "加载租户列表",
|
|
759
758
|
"fallback-title": "未命名租户",
|
|
760
759
|
"item-of": At,
|
|
761
|
-
onLoaded:
|
|
762
|
-
onSelect:
|
|
760
|
+
onLoaded: tt,
|
|
761
|
+
onSelect: i[1] ||= (e) => rt(e)
|
|
763
762
|
}, null, 8, [
|
|
764
763
|
"context",
|
|
765
764
|
"selected-id",
|
|
@@ -768,7 +767,7 @@ var Fe = /*#__PURE__*/ i(/* @__PURE__ */ D({
|
|
|
768
767
|
])) : S("v-if", !0)]),
|
|
769
768
|
_: 1
|
|
770
769
|
}, 8, ["search-keyword", "searchable"])) : S("v-if", !0),
|
|
771
|
-
!z.value || B.value ? (O(), x(j(
|
|
770
|
+
!z.value || B.value ? (O(), x(j(oe), {
|
|
772
771
|
key: 1,
|
|
773
772
|
class: "user-list-panel",
|
|
774
773
|
context: Re.value,
|
|
@@ -784,23 +783,23 @@ var Fe = /*#__PURE__*/ i(/* @__PURE__ */ D({
|
|
|
784
783
|
"quick-search-placeholder": "搜索账号",
|
|
785
784
|
"empty-description": "当前租户暂无账号",
|
|
786
785
|
"waiting-description": "请选择租户",
|
|
787
|
-
onAction:
|
|
788
|
-
onRowAction:
|
|
789
|
-
onRowDblclick:
|
|
786
|
+
onAction: it,
|
|
787
|
+
onRowAction: at,
|
|
788
|
+
onRowDblclick: ot,
|
|
790
789
|
onRowExpand: j(Te),
|
|
791
790
|
onLoaded: j(we),
|
|
792
|
-
onSelect:
|
|
791
|
+
onSelect: i[4] ||= (e) => h.value = String(e.id ?? "")
|
|
793
792
|
}, {
|
|
794
|
-
expandedRow: N(({ record: e }) => [E(j(
|
|
793
|
+
expandedRow: N(({ record: e }) => [E(j(re), {
|
|
795
794
|
sessions: j(R)(String(e.id ?? "")).records,
|
|
796
795
|
loading: j(R)(String(e.id ?? "")).loading,
|
|
797
796
|
error: j(R)(String(e.id ?? "")).error,
|
|
798
797
|
"actions-disabled": T.value,
|
|
799
|
-
"can-revoke": (t) =>
|
|
800
|
-
"can-revoke-all":
|
|
798
|
+
"can-revoke": (t) => xt(String(e.id ?? ""), t),
|
|
799
|
+
"can-revoke-all": bt(String(e.id ?? "")).length > 1,
|
|
801
800
|
onRefresh: (t) => j(L)(String(e.id ?? "")),
|
|
802
|
-
onRevoke: (t) =>
|
|
803
|
-
onRevokeAll: (t) =>
|
|
801
|
+
onRevoke: (t) => ht(e, t),
|
|
802
|
+
onRevokeAll: (t) => gt(e)
|
|
804
803
|
}, null, 8, [
|
|
805
804
|
"sessions",
|
|
806
805
|
"loading",
|
|
@@ -825,32 +824,32 @@ var Fe = /*#__PURE__*/ i(/* @__PURE__ */ D({
|
|
|
825
824
|
"onRowExpand",
|
|
826
825
|
"onLoaded"
|
|
827
826
|
])) : S("v-if", !0),
|
|
828
|
-
Le.value ? (O(), x(j(
|
|
827
|
+
Le.value ? (O(), x(j(t), {
|
|
829
828
|
key: 2,
|
|
830
829
|
open: _.value,
|
|
831
830
|
title: He.value,
|
|
832
831
|
subtitle: Ue.value,
|
|
833
832
|
"close-on-outside": v.value === "view",
|
|
834
|
-
promotion: j(
|
|
835
|
-
onClose:
|
|
833
|
+
promotion: j(qe),
|
|
834
|
+
onClose: K
|
|
836
835
|
}, {
|
|
837
|
-
status: N(() => [v.value === "view" && g.value ? (O(), x(j(
|
|
836
|
+
status: N(() => [v.value === "view" && g.value ? (O(), x(j(e), {
|
|
838
837
|
key: 0,
|
|
839
838
|
enabled: g.value.enabled !== !1,
|
|
840
|
-
disabled: T.value || !
|
|
839
|
+
disabled: T.value || !W.value,
|
|
841
840
|
loading: T.value,
|
|
842
841
|
"show-label": !1,
|
|
843
|
-
onChange:
|
|
842
|
+
onChange: _t
|
|
844
843
|
}, null, 8, [
|
|
845
844
|
"enabled",
|
|
846
845
|
"disabled",
|
|
847
846
|
"loading"
|
|
848
847
|
])) : S("v-if", !0)]),
|
|
849
|
-
operation: N(() => [E(j(
|
|
848
|
+
operation: N(() => [E(j(r), {
|
|
850
849
|
context: Re.value,
|
|
851
|
-
actions:
|
|
850
|
+
actions: Ge.value,
|
|
852
851
|
"record-id": g.value?.id,
|
|
853
|
-
onAction:
|
|
852
|
+
onAction: ut
|
|
854
853
|
}, null, 8, [
|
|
855
854
|
"context",
|
|
856
855
|
"actions",
|
|
@@ -865,16 +864,16 @@ var Fe = /*#__PURE__*/ i(/* @__PURE__ */ D({
|
|
|
865
864
|
saving: T.value || y.value,
|
|
866
865
|
"tenant-title": $(p.value),
|
|
867
866
|
fields: I.value,
|
|
868
|
-
fallback:
|
|
869
|
-
"field-names":
|
|
867
|
+
fallback: Je.value,
|
|
868
|
+
"field-names": Ye.value,
|
|
870
869
|
password: P.value,
|
|
871
870
|
"reset-password-result": F.value,
|
|
872
871
|
"display-of": kt,
|
|
873
|
-
"disabled-of":
|
|
874
|
-
onRetry:
|
|
875
|
-
onSave:
|
|
876
|
-
"onUpdate:field":
|
|
877
|
-
"onUpdate:password":
|
|
872
|
+
"disabled-of": wt,
|
|
873
|
+
onRetry: dt,
|
|
874
|
+
onSave: ft,
|
|
875
|
+
"onUpdate:field": Tt,
|
|
876
|
+
"onUpdate:password": i[5] ||= (e) => P.value = e
|
|
878
877
|
}, null, 8, [
|
|
879
878
|
"mode",
|
|
880
879
|
"draft",
|
|
@@ -896,28 +895,28 @@ var Fe = /*#__PURE__*/ i(/* @__PURE__ */ D({
|
|
|
896
895
|
"subtitle",
|
|
897
896
|
"close-on-outside",
|
|
898
897
|
"promotion"
|
|
899
|
-
])) : (O(), x(j(
|
|
898
|
+
])) : (O(), x(j(ce), {
|
|
900
899
|
key: 3,
|
|
901
900
|
title: He.value,
|
|
902
901
|
subtitle: Ue.value
|
|
903
902
|
}, {
|
|
904
|
-
status: N(() => [v.value === "view" && g.value ? (O(), x(j(
|
|
903
|
+
status: N(() => [v.value === "view" && g.value ? (O(), x(j(e), {
|
|
905
904
|
key: 0,
|
|
906
905
|
enabled: g.value.enabled !== !1,
|
|
907
|
-
disabled: T.value || !
|
|
906
|
+
disabled: T.value || !W.value,
|
|
908
907
|
loading: T.value,
|
|
909
908
|
"show-label": !1,
|
|
910
|
-
onChange:
|
|
909
|
+
onChange: _t
|
|
911
910
|
}, null, 8, [
|
|
912
911
|
"enabled",
|
|
913
912
|
"disabled",
|
|
914
913
|
"loading"
|
|
915
914
|
])) : S("v-if", !0)]),
|
|
916
|
-
operation: N(() => [E(j(
|
|
915
|
+
operation: N(() => [E(j(r), {
|
|
917
916
|
context: j(a),
|
|
918
|
-
actions:
|
|
917
|
+
actions: Ke.value,
|
|
919
918
|
"record-id": g.value?.id,
|
|
920
|
-
onAction:
|
|
919
|
+
onAction: ut
|
|
921
920
|
}, null, 8, [
|
|
922
921
|
"context",
|
|
923
922
|
"actions",
|
|
@@ -932,16 +931,16 @@ var Fe = /*#__PURE__*/ i(/* @__PURE__ */ D({
|
|
|
932
931
|
saving: T.value || y.value,
|
|
933
932
|
"tenant-title": $(p.value ?? { id: A.value.tenantId }),
|
|
934
933
|
fields: I.value,
|
|
935
|
-
fallback:
|
|
936
|
-
"field-names":
|
|
934
|
+
fallback: Je.value,
|
|
935
|
+
"field-names": Ye.value,
|
|
937
936
|
password: P.value,
|
|
938
937
|
"reset-password-result": F.value,
|
|
939
938
|
"display-of": kt,
|
|
940
|
-
"disabled-of":
|
|
941
|
-
onRetry:
|
|
942
|
-
onSave:
|
|
943
|
-
"onUpdate:field":
|
|
944
|
-
"onUpdate:password":
|
|
939
|
+
"disabled-of": wt,
|
|
940
|
+
onRetry: dt,
|
|
941
|
+
onSave: ft,
|
|
942
|
+
"onUpdate:field": Tt,
|
|
943
|
+
"onUpdate:password": i[6] ||= (e) => P.value = e
|
|
945
944
|
}, null, 8, [
|
|
946
945
|
"mode",
|
|
947
946
|
"draft",
|