@ximatai/muyun-web-app 0.26.3
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-mtdcsqgF.js +14 -0
- package/dist/EmployeeManagementView-CKKvQZaC.js +1706 -0
- package/dist/MetadataOrchestrationView-CprWBocy.js +655 -0
- package/dist/ModuleActionManagementView-DNuAQUPE.js +597 -0
- package/dist/RoleAuthorizationView-CQtSAJoJ.js +592 -0
- package/dist/RoleDetailWorkspaceView-Dh8DXpyS.js +26 -0
- package/dist/RoleManagementView-BrqaFV7y.js +1927 -0
- package/dist/SystemUserDetailWorkspaceView-N-kvycAu.js +17 -0
- package/dist/SystemUserManagementView-BVS5moV5.js +761 -0
- package/dist/UserDetailWorkspaceView-Iek6xwix.js +17 -0
- package/dist/UserManagementView-BR_Jz8O-.js +965 -0
- package/dist/currentUserContext-B1lj1WgF.js +11 -0
- package/dist/index.css +2 -0
- package/dist/index.js +7127 -0
- package/dist/pageRealtime-sRtDYlQP.js +140 -0
- package/dist/platform-components-bC1gwhic.js +8412 -0
- package/dist/types/App.vue.d.ts +3 -0
- package/dist/types/app/ChangeOwnPasswordDialog.vue.d.ts +27 -0
- package/dist/types/app/LoginView.vue.d.ts +14 -0
- package/dist/types/app/appWorkbenchStartup.d.ts +3 -0
- package/dist/types/app/devWorkbenchStartup.d.ts +1 -0
- package/dist/types/app/loginTenant.d.ts +6 -0
- package/dist/types/app/platformMessage.d.ts +6 -0
- package/dist/types/app/query.d.ts +3 -0
- package/dist/types/app/router.d.ts +1 -0
- package/dist/types/app/workbenchStartup.d.ts +24 -0
- package/dist/types/consumer/PlatformAdminOutlet.vue.d.ts +7 -0
- package/dist/types/consumer/index.d.ts +15 -0
- package/dist/types/dynamic-page-runtime/DynamicModuleHost.vue.d.ts +7 -0
- package/dist/types/dynamic-page-runtime/DynamicModulePage.vue.d.ts +7 -0
- package/dist/types/dynamic-page-runtime/actionReactions.d.ts +16 -0
- package/dist/types/dynamic-page-runtime/index.d.ts +3 -0
- package/dist/types/dynamic-page-runtime/mockDescriptor.d.ts +2 -0
- package/dist/types/main.d.ts +2 -0
- package/dist/types/platform-admin-runtime/PlatformAdminOutlet.vue.d.ts +7 -0
- package/dist/types/platform-admin-runtime/WorkspaceViewDrawer.vue.d.ts +32 -0
- package/dist/types/platform-admin-runtime/WorkspaceViewOutlet.vue.d.ts +7 -0
- package/dist/types/platform-admin-runtime/authSession.d.ts +8 -0
- package/dist/types/platform-admin-runtime/backendHttp.d.ts +3 -0
- package/dist/types/platform-admin-runtime/currentUserContext.d.ts +4 -0
- package/dist/types/platform-admin-runtime/index.d.ts +12 -0
- package/dist/types/platform-admin-runtime/moduleOpenApi.d.ts +36 -0
- package/dist/types/platform-admin-runtime/pageRealtime.d.ts +61 -0
- package/dist/types/platform-admin-runtime/platformAdminRoutes.d.ts +21 -0
- package/dist/types/platform-admin-runtime/realtime.d.ts +20 -0
- package/dist/types/platform-admin-runtime/sessionRecovery.d.ts +3 -0
- package/dist/types/platform-admin-runtime/useWorkspaceViewPromotion.d.ts +24 -0
- package/dist/types/platform-admin-runtime/workspaceViewContract.d.ts +36 -0
- package/dist/types/platform-admin-runtime/workspaceViewContributions.d.ts +3 -0
- package/dist/types/platform-admin-runtime/workspaceViewHost.d.ts +10 -0
- package/dist/types/platform-admin-runtime/workspaceViewSessions.d.ts +18 -0
- package/dist/types/platform-admin-runtime/workspaceViews.d.ts +18 -0
- package/dist/types/platform-components/ApplicationScopeSwitcher.vue.d.ts +18 -0
- package/dist/types/platform-components/CrudRecordListExplorer.vue.d.ts +52 -0
- package/dist/types/platform-components/DateTimeText.vue.d.ts +15 -0
- package/dist/types/platform-components/DrawerOperationBar.vue.d.ts +18 -0
- package/dist/types/platform-components/EnabledSelect.vue.d.ts +14 -0
- package/dist/types/platform-components/ManagementExplorerColumn.vue.d.ts +13 -0
- package/dist/types/platform-components/ManagementWorkspace.vue.d.ts +19 -0
- package/dist/types/platform-components/ModuleActionButton.vue.d.ts +40 -0
- package/dist/types/platform-components/RecordActionBar.vue.d.ts +20 -0
- package/dist/types/platform-components/RecordDetailDrawer.vue.d.ts +37 -0
- package/dist/types/platform-components/RecordDetailFields.vue.d.ts +23 -0
- package/dist/types/platform-components/RecordDetailLayout.vue.d.ts +37 -0
- package/dist/types/platform-components/RecordDetailPanel.vue.d.ts +25 -0
- package/dist/types/platform-components/RecordExpandedSubtable.vue.d.ts +29 -0
- package/dist/types/platform-components/RecordExplorerPanel.vue.d.ts +39 -0
- package/dist/types/platform-components/RecordExternalChangeNotice.vue.d.ts +20 -0
- package/dist/types/platform-components/RecordFormFields.vue.d.ts +31 -0
- package/dist/types/platform-components/RecordListExplorer.vue.d.ts +42 -0
- package/dist/types/platform-components/RecordMetaSection.vue.d.ts +8 -0
- package/dist/types/platform-components/RecordModeDrawer.vue.d.ts +74 -0
- package/dist/types/platform-components/RecordPicker.vue.d.ts +35 -0
- package/dist/types/platform-components/RecordQueryListPanel.vue.d.ts +103 -0
- package/dist/types/platform-components/RecordStatusSwitch.vue.d.ts +18 -0
- package/dist/types/platform-components/RecordStatusTag.vue.d.ts +6 -0
- package/dist/types/platform-components/RecordTreeSelector.vue.d.ts +22 -0
- package/dist/types/platform-components/RecycleBinModeButton.vue.d.ts +16 -0
- package/dist/types/platform-components/StaticManagementLayout.vue.d.ts +44 -0
- package/dist/types/platform-components/TreeRecordExplorer.vue.d.ts +57 -0
- package/dist/types/platform-components/UserSessionExpandedSubtable.vue.d.ts +26 -0
- package/dist/types/platform-components/actionConfirmation.d.ts +3 -0
- package/dist/types/platform-components/crudRecordListModel.d.ts +10 -0
- package/dist/types/platform-components/drawerPromotion.d.ts +4 -0
- package/dist/types/platform-components/index.d.ts +76 -0
- package/dist/types/platform-components/optionFieldOptions.d.ts +10 -0
- package/dist/types/platform-components/pageLayoutContext.d.ts +6 -0
- package/dist/types/platform-components/platformActionResultFeedback.d.ts +12 -0
- package/dist/types/platform-components/platformActionResultReactions.d.ts +53 -0
- package/dist/types/platform-components/platformDateTime.d.ts +16 -0
- package/dist/types/platform-components/platformErrorFeedback.d.ts +15 -0
- package/dist/types/platform-components/platformTimeZoneContext.d.ts +3 -0
- package/dist/types/platform-components/recordActionBarModel.d.ts +27 -0
- package/dist/types/platform-components/recordDetailFieldModel.d.ts +7 -0
- package/dist/types/platform-components/recordDraftNormalizer.d.ts +1 -0
- package/dist/types/platform-components/recordEditorSessionState.d.ts +38 -0
- package/dist/types/platform-components/recordExplorerItemModel.d.ts +8 -0
- package/dist/types/platform-components/recordFormFieldModel.d.ts +57 -0
- package/dist/types/platform-components/recordPickerConstraints.d.ts +20 -0
- package/dist/types/platform-components/recordPickerModel.d.ts +2 -0
- package/dist/types/platform-components/recycleBinState.d.ts +39 -0
- package/dist/types/platform-components/scopedResourceTreeModuleContext.d.ts +6 -0
- package/dist/types/platform-components/scopedTreeModuleContext.d.ts +10 -0
- package/dist/types/platform-components/softDeletedConflictHandler.d.ts +75 -0
- package/dist/types/platform-components/staticCrudManagementState.d.ts +66 -0
- package/dist/types/platform-components/staticFormActionFlow.d.ts +39 -0
- package/dist/types/platform-components/staticTreeResourceModuleContext.d.ts +7 -0
- package/dist/types/platform-components/treeRecordModel.d.ts +17 -0
- package/dist/types/platform-components/useRecycleBinExplorerMode.d.ts +26 -0
- package/dist/types/platform-components/userSessionPresentation.d.ts +12 -0
- package/dist/types/platform-workbench/Workbench.vue.d.ts +46 -0
- package/dist/types/platform-workbench/WorkbenchMenu.vue.d.ts +23 -0
- package/dist/types/platform-workbench/WorkbenchMenuTree.vue.d.ts +13 -0
- package/dist/types/platform-workbench/WorkbenchOutlet.vue.d.ts +7 -0
- package/dist/types/platform-workbench/hosts/BusinessRouteHost.vue.d.ts +7 -0
- package/dist/types/platform-workbench/hosts/ExternalPageHost.vue.d.ts +7 -0
- package/dist/types/platform-workbench/hosts/PlatformRouteHost.vue.d.ts +7 -0
- package/dist/types/platform-workbench/index.d.ts +11 -0
- package/dist/types/platform-workbench/menuNavigation.d.ts +28 -0
- package/dist/types/platform-workbench/menuTreeModel.d.ts +20 -0
- package/dist/types/platform-workbench/pageHostRegistry.d.ts +3 -0
- package/dist/types/platform-workbench/realtimeStatus.d.ts +7 -0
- package/dist/types/platform-workbench/workbenchNavigation.d.ts +12 -0
- package/dist/types/views/ApplicationManagementView.vue.d.ts +3 -0
- package/dist/types/views/DepartmentManagementView.vue.d.ts +3 -0
- package/dist/types/views/DictionaryManagementView.vue.d.ts +3 -0
- package/dist/types/views/EmployeeDetailContent.vue.d.ts +64 -0
- package/dist/types/views/EmployeeDetailWorkspaceView.vue.d.ts +6 -0
- package/dist/types/views/EmployeeEmploymentDrawer.vue.d.ts +14 -0
- package/dist/types/views/EmployeeEmploymentTable.vue.d.ts +18 -0
- package/dist/types/views/EmployeeManagementView.vue.d.ts +7 -0
- package/dist/types/views/FieldSpecManagementView.vue.d.ts +3 -0
- package/dist/types/views/FieldUiControlManagementView.vue.d.ts +3 -0
- package/dist/types/views/HomeView.vue.d.ts +3 -0
- package/dist/types/views/MenuManagementView.vue.d.ts +3 -0
- package/dist/types/views/MetadataOrchestrationView.vue.d.ts +8 -0
- package/dist/types/views/ModuleActionManagementView.vue.d.ts +9 -0
- package/dist/types/views/ModuleManagementView.vue.d.ts +3 -0
- package/dist/types/views/ModuleOpenApiView.vue.d.ts +10 -0
- package/dist/types/views/OpenApiCatalogView.vue.d.ts +9 -0
- package/dist/types/views/OrganizationManagementView.vue.d.ts +3 -0
- package/dist/types/views/PasswordManagementView.vue.d.ts +3 -0
- package/dist/types/views/PositionManagementView.vue.d.ts +3 -0
- package/dist/types/views/RoleAccountGrantDrawer.vue.d.ts +16 -0
- package/dist/types/views/RoleAuthorizationView.vue.d.ts +12 -0
- package/dist/types/views/RoleDetailWorkspaceView.vue.d.ts +9 -0
- package/dist/types/views/RoleEmploymentGrantDrawer.vue.d.ts +16 -0
- package/dist/types/views/RoleGroupMemberSelector.vue.d.ts +18 -0
- package/dist/types/views/RoleManagementView.vue.d.ts +9 -0
- package/dist/types/views/SystemUserDetailWorkspaceView.vue.d.ts +7 -0
- package/dist/types/views/SystemUserManagementView.vue.d.ts +7 -0
- package/dist/types/views/TenantManagementView.vue.d.ts +3 -0
- package/dist/types/views/UserDetailContent.vue.d.ts +32 -0
- package/dist/types/views/UserDetailWorkspaceView.vue.d.ts +7 -0
- package/dist/types/views/UserManagementView.vue.d.ts +8 -0
- package/dist/types/views/applicationManagementState.d.ts +64 -0
- package/dist/types/views/departmentManagementState.d.ts +137 -0
- package/dist/types/views/dictionaryManagementState.d.ts +215 -0
- package/dist/types/views/employeeDetailStateModel.d.ts +39 -0
- package/dist/types/views/employeeDetailWorkspaceSession.d.ts +16 -0
- package/dist/types/views/employeeDetailWorkspaceView.d.ts +4 -0
- package/dist/types/views/fieldSpecManagementState.d.ts +80 -0
- package/dist/types/views/fieldUiControlManagementState.d.ts +76 -0
- package/dist/types/views/menuManagementState.d.ts +178 -0
- package/dist/types/views/metadataOrchestrationState.d.ts +278 -0
- package/dist/types/views/metadataOrchestrationWorkspaceView.d.ts +6 -0
- package/dist/types/views/moduleActionManagementWorkspaceView.d.ts +7 -0
- package/dist/types/views/moduleManagementState.d.ts +76 -0
- package/dist/types/views/organizationManagementState.d.ts +64 -0
- package/dist/types/views/positionManagementState.d.ts +218 -0
- package/dist/types/views/roleAuthorizationWorkspaceSession.d.ts +17 -0
- package/dist/types/views/roleAuthorizationWorkspaceView.d.ts +5 -0
- package/dist/types/views/roleDetailWorkspaceSession.d.ts +19 -0
- package/dist/types/views/roleDetailWorkspaceView.d.ts +8 -0
- package/dist/types/views/roleGrantClient.d.ts +59 -0
- package/dist/types/views/systemUserDetailWorkspaceSession.d.ts +12 -0
- package/dist/types/views/systemUserDetailWorkspaceView.d.ts +5 -0
- package/dist/types/views/tenantManagementState.d.ts +64 -0
- package/dist/types/views/useEmployeeEmploymentRows.d.ts +20 -0
- package/dist/types/views/useUserSessionRows.d.ts +28 -0
- package/dist/types/views/userDetailStateModel.d.ts +11 -0
- package/dist/types/views/userDetailWorkspaceSession.d.ts +14 -0
- package/dist/types/views/userDetailWorkspaceView.d.ts +4 -0
- package/dist/types/vue-ui-antdv/components/ActionBar.vue.d.ts +11 -0
- package/dist/types/vue-ui-antdv/components/DictionarySelect.vue.d.ts +14 -0
- package/dist/types/vue-ui-antdv/components/ReferenceSelect.vue.d.ts +16 -0
- package/dist/types/vue-ui-antdv/components/UiActionButton.vue.d.ts +37 -0
- package/dist/types/vue-ui-antdv/components/UiBadge.vue.d.ts +20 -0
- package/dist/types/vue-ui-antdv/components/UiButton.vue.d.ts +41 -0
- package/dist/types/vue-ui-antdv/components/UiCheckbox.vue.d.ts +30 -0
- package/dist/types/vue-ui-antdv/components/UiDataTable.vue.d.ts +71 -0
- package/dist/types/vue-ui-antdv/components/UiDropdown.vue.d.ts +29 -0
- package/dist/types/vue-ui-antdv/components/UiEmpty.vue.d.ts +6 -0
- package/dist/types/vue-ui-antdv/components/UiError.vue.d.ts +7 -0
- package/dist/types/vue-ui-antdv/components/UiForm.vue.d.ts +15 -0
- package/dist/types/vue-ui-antdv/components/UiIcon.vue.d.ts +7 -0
- package/dist/types/vue-ui-antdv/components/UiInput.vue.d.ts +25 -0
- package/dist/types/vue-ui-antdv/components/UiMenu.vue.d.ts +19 -0
- package/dist/types/vue-ui-antdv/components/UiModal.vue.d.ts +36 -0
- package/dist/types/vue-ui-antdv/components/UiRecordExplorerItem.vue.d.ts +26 -0
- package/dist/types/vue-ui-antdv/components/UiSearchInput.vue.d.ts +22 -0
- package/dist/types/vue-ui-antdv/components/UiSelect.vue.d.ts +30 -0
- package/dist/types/vue-ui-antdv/components/UiSidePanel.vue.d.ts +28 -0
- package/dist/types/vue-ui-antdv/components/UiSidePanelHost.vue.d.ts +13 -0
- package/dist/types/vue-ui-antdv/components/UiSpin.vue.d.ts +22 -0
- package/dist/types/vue-ui-antdv/components/UiSwitch.vue.d.ts +22 -0
- package/dist/types/vue-ui-antdv/components/UiTable.vue.d.ts +13 -0
- package/dist/types/vue-ui-antdv/components/UiTabs.vue.d.ts +14 -0
- package/dist/types/vue-ui-antdv/components/UiTextArea.vue.d.ts +20 -0
- package/dist/types/vue-ui-antdv/components/UiTooltip.vue.d.ts +19 -0
- package/dist/types/vue-ui-antdv/components/UiTree.vue.d.ts +17 -0
- package/dist/types/vue-ui-antdv/components/UiTreeSelect.vue.d.ts +30 -0
- package/dist/types/vue-ui-antdv/components/sidePanelHost.d.ts +3 -0
- package/dist/types/vue-ui-antdv/confirm.d.ts +5 -0
- package/dist/types/vue-ui-antdv/dataTableModel.d.ts +10 -0
- package/dist/types/vue-ui-antdv/dictionaries.d.ts +2 -0
- package/dist/types/vue-ui-antdv/feedback.d.ts +10 -0
- package/dist/types/vue-ui-antdv/index.d.ts +36 -0
- package/dist/types/vue-ui-antdv/references.d.ts +8 -0
- package/dist/types/vue-ui-antdv/registry.d.ts +3 -0
- package/dist/types/vue-ui-antdv/types.d.ts +65 -0
- package/dist/types/web-contracts/index.d.ts +862 -0
- package/dist/types/web-core/actionResult.d.ts +28 -0
- package/dist/types/web-core/clients.d.ts +23 -0
- package/dist/types/web-core/dataChanges.d.ts +15 -0
- package/dist/types/web-core/errors.d.ts +65 -0
- package/dist/types/web-core/http.d.ts +21 -0
- package/dist/types/web-core/index.d.ts +8 -0
- package/dist/types/web-core/mock.d.ts +6 -0
- package/dist/types/web-core/module/abilities.d.ts +21 -0
- package/dist/types/web-core/module/abilityCodes.d.ts +18 -0
- package/dist/types/web-core/module/index.d.ts +6 -0
- package/dist/types/web-core/module/moduleContext.d.ts +49 -0
- package/dist/types/web-core/module/recycleBin.d.ts +6 -0
- package/dist/types/web-core/module/runtimeContext.d.ts +65 -0
- package/dist/types/web-core/module/staticModuleClient.d.ts +45 -0
- package/dist/types/web-core/query.d.ts +16 -0
- package/dist/types/web-core/realtime.d.ts +104 -0
- package/dist/useUserSessionRows-CLM0ZvAF.js +128 -0
- package/dist/workspaceViewSessions-WsJU3OS7.js +1578 -0
- package/package.json +27 -0
|
@@ -0,0 +1,597 @@
|
|
|
1
|
+
import { Et as e, Gt as t, Ht as n, K as r, Kt as i, L as ee, Pt as a, S as te, Xt as o, Yt as s, Zt as c, c as ne, cn as re, en as l, ht as ie, nn as u, p as ae, pn as oe, qt as d, st as se, t as ce, tn as f, tt as le } from "./platform-components-bC1gwhic.js";
|
|
2
|
+
import { computed as p, createBlock as m, createCommentVNode as h, createElementBlock as g, createElementVNode as _, createTextVNode as v, createVNode as y, defineComponent as b, onMounted as ue, openBlock as x, ref as S, toDisplayString as C, unref as w, withCtx as T, withModifiers as E } from "vue";
|
|
3
|
+
//#region src/views/ModuleActionManagementView.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
+
var de = { class: "action-declaration-section" }, fe = { class: "permission-governance-section" }, pe = { class: "governance-grid" }, me = { class: "governance-item" }, he = {
|
|
5
|
+
type: "button",
|
|
6
|
+
class: "governance-help",
|
|
7
|
+
"aria-label": "访问方式说明"
|
|
8
|
+
}, ge = { class: "governance-reset-slot" }, _e = { class: "governance-item" }, ve = {
|
|
9
|
+
type: "button",
|
|
10
|
+
class: "governance-help",
|
|
11
|
+
"aria-label": "默认授予策略说明"
|
|
12
|
+
}, ye = { class: "governance-reset-slot" }, be = { class: "governance-item" }, D = {
|
|
13
|
+
type: "button",
|
|
14
|
+
class: "governance-help",
|
|
15
|
+
"aria-label": "动作授权说明"
|
|
16
|
+
}, O = { class: "governance-reset-slot" }, k = { class: "governance-switch-control" }, A = { class: "governance-item" }, j = {
|
|
17
|
+
type: "button",
|
|
18
|
+
class: "governance-help",
|
|
19
|
+
"aria-label": "数据授权说明"
|
|
20
|
+
}, M = { class: "governance-reset-slot" }, N = { class: "governance-switch-control" }, xe = { class: "checkbox-field" }, Se = { class: "checkbox-field" }, Ce = { class: "wide-field" }, we = { class: "wide-field" }, P = /*#__PURE__*/ f(/* @__PURE__ */ b({
|
|
21
|
+
name: "ModuleActionManagementView",
|
|
22
|
+
__name: "ModuleActionManagementView",
|
|
23
|
+
props: {
|
|
24
|
+
moduleAlias: {},
|
|
25
|
+
moduleTitle: {},
|
|
26
|
+
moduleKind: {},
|
|
27
|
+
title: {}
|
|
28
|
+
},
|
|
29
|
+
setup(f) {
|
|
30
|
+
let b = f, P = re({ moduleAlias: "platform.module_action" }), F = ne(P, { client: oe(P.http, `/platform.module/${encodeURIComponent(b.moduleAlias)}/actions`) }), I = S(""), L = S([]), R = ce({
|
|
31
|
+
context: F,
|
|
32
|
+
confirmAction: a,
|
|
33
|
+
emptyDraft: () => He(b.moduleAlias),
|
|
34
|
+
normalizeDraft: (e) => J(e, b.moduleAlias),
|
|
35
|
+
copyRecord: (e) => ({ ...e }),
|
|
36
|
+
titleOf: Q,
|
|
37
|
+
fallbackTitle: "模块动作",
|
|
38
|
+
createTitle: "新建动作",
|
|
39
|
+
requiredMessage: "动作编码不能为空",
|
|
40
|
+
isValid: (e) => !!e.actionCode?.trim(),
|
|
41
|
+
recordName: "动作",
|
|
42
|
+
deleteTitle: "删除动作",
|
|
43
|
+
saveDeniedMessage: "当前用户无权保存模块动作",
|
|
44
|
+
createDeniedMessage: "当前用户无权新建模块动作",
|
|
45
|
+
enableDeniedMessage: "当前用户无权变更模块动作启停状态",
|
|
46
|
+
deleteDeniedMessage: () => "当前用户无权删除模块动作",
|
|
47
|
+
canDeleteRecord: (e) => e.systemManaged !== !0,
|
|
48
|
+
canEnableRecord: (e) => e.systemManaged !== !0
|
|
49
|
+
}), { selected: z, draft: B, mode: V, reloadKey: H, saving: U, cardTitle: Te, canCreate: Ee, canEnable: De } = R, Oe = p(() => b.moduleKind === "dynamic" && Ee.value && L.value.length > 0), ke = p(() => L.value.map((e) => ({
|
|
50
|
+
value: e.executorKey,
|
|
51
|
+
label: e.description ? `${e.title} · ${e.description}` : e.title
|
|
52
|
+
}))), Ae = p(() => (L.value.find((e) => e.executorKey === B.value.executorKey)?.supportedLevels ?? []).map((e) => ({
|
|
53
|
+
value: e,
|
|
54
|
+
label: {
|
|
55
|
+
LIST: "列表",
|
|
56
|
+
RECORD: "单条记录",
|
|
57
|
+
BATCH: "批量",
|
|
58
|
+
ANY: "任意"
|
|
59
|
+
}[e]
|
|
60
|
+
}))), je = p(() => [
|
|
61
|
+
"actionCode",
|
|
62
|
+
"title",
|
|
63
|
+
"category",
|
|
64
|
+
"actionLevel",
|
|
65
|
+
"accessMode",
|
|
66
|
+
"executorType",
|
|
67
|
+
...Z(B.value.executorKey) ? ["executorKey"] : [],
|
|
68
|
+
"actionAuth",
|
|
69
|
+
"dataAuth",
|
|
70
|
+
"defaultGrantPolicy",
|
|
71
|
+
...Z(B.value.availableExpression) ? ["availableExpression"] : [],
|
|
72
|
+
...Z(B.value.unavailableMessage) ? ["unavailableMessage"] : [],
|
|
73
|
+
...B.value.sourceType ? ["sourceType"] : [],
|
|
74
|
+
...Z(B.value.bindingAlias) ? ["bindingAlias"] : []
|
|
75
|
+
]), Me = p(() => [
|
|
76
|
+
"actionCode",
|
|
77
|
+
"title",
|
|
78
|
+
"category",
|
|
79
|
+
"actionLevel",
|
|
80
|
+
"executorType",
|
|
81
|
+
...Z(B.value.executorKey) ? ["executorKey"] : [],
|
|
82
|
+
...B.value.sourceType ? ["sourceType"] : []
|
|
83
|
+
]);
|
|
84
|
+
ue(() => void ze());
|
|
85
|
+
let Ne = p(() => R.readonly.value), W = p(() => Ne.value || R.saving.value), Pe = p(() => {
|
|
86
|
+
if (R.mode.value !== "view") return [
|
|
87
|
+
...R.mode.value === "edit" && R.selected.value?.systemManaged === !0 && Le(B.value) ? [{
|
|
88
|
+
key: "reset-permission-governance",
|
|
89
|
+
actionCode: "update",
|
|
90
|
+
title: "全部重置",
|
|
91
|
+
disabled: R.saving.value
|
|
92
|
+
}] : [],
|
|
93
|
+
{
|
|
94
|
+
key: "cancel",
|
|
95
|
+
title: "取消",
|
|
96
|
+
disabled: R.saving.value
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
key: "save",
|
|
100
|
+
actionCode: R.mode.value === "create" ? "create" : "update",
|
|
101
|
+
title: R.saving.value ? "保存中" : "保存",
|
|
102
|
+
primary: !0,
|
|
103
|
+
loading: R.saving.value
|
|
104
|
+
}
|
|
105
|
+
];
|
|
106
|
+
let e = R.selected.value;
|
|
107
|
+
return [{
|
|
108
|
+
key: "edit",
|
|
109
|
+
actionCode: "update",
|
|
110
|
+
title: "编辑",
|
|
111
|
+
disabled: !e || !R.canUpdate.value
|
|
112
|
+
}, {
|
|
113
|
+
key: "delete",
|
|
114
|
+
actionCode: "delete",
|
|
115
|
+
title: "删除",
|
|
116
|
+
danger: !0,
|
|
117
|
+
loading: R.saving.value,
|
|
118
|
+
disabled: !e || e.systemManaged === !0 || !R.canDelete.value
|
|
119
|
+
}];
|
|
120
|
+
});
|
|
121
|
+
function Fe(e) {
|
|
122
|
+
let t = e;
|
|
123
|
+
return {
|
|
124
|
+
title: Q(t),
|
|
125
|
+
secondary: t.actionCode,
|
|
126
|
+
tag: t.systemManaged === !0 ? "平台托管" : t.category,
|
|
127
|
+
muted: t.enabled === !1
|
|
128
|
+
};
|
|
129
|
+
}
|
|
130
|
+
function Ie(e) {
|
|
131
|
+
e.key === "edit" && R.startEdit(), e.key === "delete" && R.removeSelected(), e.key === "reset-permission-governance" && Re(), e.key === "cancel" && R.cancelEdit(), e.key === "save" && R.save();
|
|
132
|
+
}
|
|
133
|
+
function Le(e) {
|
|
134
|
+
return [
|
|
135
|
+
e.accessModeOverride,
|
|
136
|
+
e.actionAuthOverride,
|
|
137
|
+
e.dataAuthOverride,
|
|
138
|
+
e.defaultGrantPolicyOverride
|
|
139
|
+
].some((e) => e != null);
|
|
140
|
+
}
|
|
141
|
+
function G(e) {
|
|
142
|
+
return B.value[e] != null;
|
|
143
|
+
}
|
|
144
|
+
function K(e) {
|
|
145
|
+
q(e, void 0);
|
|
146
|
+
}
|
|
147
|
+
function Re() {
|
|
148
|
+
R.draft.value = {
|
|
149
|
+
...R.draft.value,
|
|
150
|
+
accessModeOverride: void 0,
|
|
151
|
+
actionAuthOverride: void 0,
|
|
152
|
+
dataAuthOverride: void 0,
|
|
153
|
+
defaultGrantPolicyOverride: void 0
|
|
154
|
+
};
|
|
155
|
+
}
|
|
156
|
+
function q(e, t) {
|
|
157
|
+
R.draft.value = {
|
|
158
|
+
...R.draft.value,
|
|
159
|
+
[e]: t ?? void 0
|
|
160
|
+
};
|
|
161
|
+
}
|
|
162
|
+
async function ze() {
|
|
163
|
+
try {
|
|
164
|
+
L.value = await P.http.request({ path: "/platform.module/action-executors" });
|
|
165
|
+
} catch (t) {
|
|
166
|
+
L.value = [], e(t, {
|
|
167
|
+
source: "module-action-management",
|
|
168
|
+
phase: "load"
|
|
169
|
+
});
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
function Be() {
|
|
173
|
+
R.startCreate();
|
|
174
|
+
let e = L.value[0];
|
|
175
|
+
e && (R.draft.value = {
|
|
176
|
+
...R.draft.value,
|
|
177
|
+
executorKey: e.executorKey,
|
|
178
|
+
actionLevel: e.supportedLevels[0] ?? "ANY"
|
|
179
|
+
});
|
|
180
|
+
}
|
|
181
|
+
function Ve(e) {
|
|
182
|
+
let t = typeof e == "string" ? e : void 0, n = L.value.find((e) => e.executorKey === t);
|
|
183
|
+
q("executorKey", t), n?.supportedLevels.length && q("actionLevel", n.supportedLevels[0]);
|
|
184
|
+
}
|
|
185
|
+
function He(e) {
|
|
186
|
+
return {
|
|
187
|
+
moduleAlias: e,
|
|
188
|
+
actionCode: "",
|
|
189
|
+
title: "",
|
|
190
|
+
category: "CUSTOM",
|
|
191
|
+
actionLevel: "ANY",
|
|
192
|
+
accessMode: "AUTH_REQUIRED",
|
|
193
|
+
actionAuth: !0,
|
|
194
|
+
dataAuth: !1,
|
|
195
|
+
defaultGrantPolicy: "NONE",
|
|
196
|
+
executorType: "SERVICE",
|
|
197
|
+
enabled: !0,
|
|
198
|
+
systemManaged: !1
|
|
199
|
+
};
|
|
200
|
+
}
|
|
201
|
+
function J(e, t) {
|
|
202
|
+
return {
|
|
203
|
+
...e,
|
|
204
|
+
moduleAlias: t,
|
|
205
|
+
actionCode: Y(e.actionCode),
|
|
206
|
+
title: X(e.title) ?? Y(e.actionCode),
|
|
207
|
+
entityAlias: X(e.entityAlias),
|
|
208
|
+
permissionActionCode: X(e.permissionActionCode),
|
|
209
|
+
availableExpression: X(e.availableExpression),
|
|
210
|
+
unavailableMessage: X(e.unavailableMessage),
|
|
211
|
+
executorKey: X(e.executorKey)
|
|
212
|
+
};
|
|
213
|
+
}
|
|
214
|
+
function Y(e) {
|
|
215
|
+
return e?.trim() ?? "";
|
|
216
|
+
}
|
|
217
|
+
function X(e) {
|
|
218
|
+
return e?.trim() || void 0;
|
|
219
|
+
}
|
|
220
|
+
function Z(e) {
|
|
221
|
+
return !!e?.trim();
|
|
222
|
+
}
|
|
223
|
+
function Q(e) {
|
|
224
|
+
return e.title?.trim() || e.actionCode?.trim() || e.id || "未命名动作";
|
|
225
|
+
}
|
|
226
|
+
function $(e, t) {
|
|
227
|
+
return e === "actionAuth" || e === "dataAuth" ? t === !0 ? "启用" : "未启用" : typeof t == "string" ? {
|
|
228
|
+
category: {
|
|
229
|
+
STANDARD: "标准动作",
|
|
230
|
+
CUSTOM: "自定义动作",
|
|
231
|
+
DIALOG: "弹窗动作",
|
|
232
|
+
WORKFLOW: "工作流动作",
|
|
233
|
+
GENERATE: "生成动作"
|
|
234
|
+
},
|
|
235
|
+
actionLevel: {
|
|
236
|
+
LIST: "列表",
|
|
237
|
+
RECORD: "单条记录",
|
|
238
|
+
BATCH: "批量",
|
|
239
|
+
ANY: "任意"
|
|
240
|
+
},
|
|
241
|
+
accessMode: {
|
|
242
|
+
AUTH_REQUIRED: "需要授权",
|
|
243
|
+
LOGIN_REQUIRED: "登录可用",
|
|
244
|
+
ANONYMOUS_ALLOWED: "匿名可用"
|
|
245
|
+
},
|
|
246
|
+
executorType: {
|
|
247
|
+
STANDARD: "平台标准",
|
|
248
|
+
SERVICE: "服务(二开)",
|
|
249
|
+
DIALOG: "弹窗协议",
|
|
250
|
+
WORKFLOW: "工作流",
|
|
251
|
+
GENERATE: "生成器"
|
|
252
|
+
},
|
|
253
|
+
defaultGrantPolicy: {
|
|
254
|
+
NONE: "不默认授予",
|
|
255
|
+
ANY_LOGIN_USER: "所有登录用户",
|
|
256
|
+
OWNER: "记录所有者",
|
|
257
|
+
ASSIGNEE: "办理人",
|
|
258
|
+
MEMBER: "成员"
|
|
259
|
+
},
|
|
260
|
+
sourceType: {
|
|
261
|
+
STATIC_MODULE: "静态模块声明",
|
|
262
|
+
CODE_EXTENSION: "代码扩展",
|
|
263
|
+
DYNAMIC_MODULE: "动态模块配置",
|
|
264
|
+
WORKFLOW_DEFINITION: "工作流定义",
|
|
265
|
+
WORKFLOW_RUNTIME: "工作流运行时",
|
|
266
|
+
RECORD_GENERATION_RULE: "生单规则",
|
|
267
|
+
DOCUMENT_RELATION: "单据关系",
|
|
268
|
+
PRINT_TEMPLATE: "打印模板"
|
|
269
|
+
}
|
|
270
|
+
}[e]?.[t] : void 0;
|
|
271
|
+
}
|
|
272
|
+
return (e, a) => (x(), m(w(ae), {
|
|
273
|
+
"explorer-title": "模块动作",
|
|
274
|
+
"refresh-title": "刷新动作",
|
|
275
|
+
mode: w(V),
|
|
276
|
+
"detail-title": w(Te),
|
|
277
|
+
"explorer-search-keyword": I.value,
|
|
278
|
+
"explorer-search-placeholder": "搜索动作名称或编码",
|
|
279
|
+
"onUpdate:explorerSearchKeyword": a[22] ||= (e) => I.value = e,
|
|
280
|
+
onRefresh: a[23] ||= (e) => H.value += 1
|
|
281
|
+
}, {
|
|
282
|
+
"explorer-actions": T(() => [y(w(se), {
|
|
283
|
+
class: "record-panel-create-button",
|
|
284
|
+
context: w(F),
|
|
285
|
+
"action-code": "create",
|
|
286
|
+
title: "新建动作",
|
|
287
|
+
"icon-only": "",
|
|
288
|
+
disabled: !Oe.value || w(U),
|
|
289
|
+
onClick: Be
|
|
290
|
+
}, null, 8, ["context", "disabled"])]),
|
|
291
|
+
explorer: T(() => [y(w(ie), {
|
|
292
|
+
context: w(F),
|
|
293
|
+
"selected-id": w(z)?.id,
|
|
294
|
+
"reload-key": w(H),
|
|
295
|
+
keyword: I.value,
|
|
296
|
+
"empty-description": "当前模块暂无动作",
|
|
297
|
+
"loading-tip": "加载模块动作",
|
|
298
|
+
"fallback-title": "未命名动作",
|
|
299
|
+
"item-of": Fe,
|
|
300
|
+
onLoaded: a[0] ||= (e) => w(R).handleListLoaded(e),
|
|
301
|
+
onSelect: a[1] ||= (e) => w(R).handleSelect(e)
|
|
302
|
+
}, null, 8, [
|
|
303
|
+
"context",
|
|
304
|
+
"selected-id",
|
|
305
|
+
"reload-key",
|
|
306
|
+
"keyword"
|
|
307
|
+
])]),
|
|
308
|
+
"detail-status": T(() => [w(V) === "view" && w(z) ? (x(), m(w(ee), {
|
|
309
|
+
key: 0,
|
|
310
|
+
enabled: w(z).enabled,
|
|
311
|
+
disabled: w(U) || w(z).systemManaged === !0 || !w(De),
|
|
312
|
+
loading: w(U),
|
|
313
|
+
"show-label": !1,
|
|
314
|
+
onChange: w(R).toggleEnabled
|
|
315
|
+
}, null, 8, [
|
|
316
|
+
"enabled",
|
|
317
|
+
"disabled",
|
|
318
|
+
"loading",
|
|
319
|
+
"onChange"
|
|
320
|
+
])) : h("v-if", !0)]),
|
|
321
|
+
"detail-actions": T(() => [y(w(le), {
|
|
322
|
+
context: w(F),
|
|
323
|
+
actions: Pe.value,
|
|
324
|
+
onAction: Ie
|
|
325
|
+
}, null, 8, ["context", "actions"])]),
|
|
326
|
+
default: T(() => [!w(z) && w(V) === "view" ? (x(), m(w(n), {
|
|
327
|
+
key: 0,
|
|
328
|
+
description: f.moduleKind === "static" ? "静态模块动作由 Java 声明自动注册" : "当前模块暂无动作"
|
|
329
|
+
}, null, 8, ["description"])) : w(V) === "view" && w(z) ? (x(), m(w(r), {
|
|
330
|
+
key: 1,
|
|
331
|
+
record: w(B),
|
|
332
|
+
"display-of": $,
|
|
333
|
+
"field-names": je.value,
|
|
334
|
+
fallback: {
|
|
335
|
+
actionCode: { label: "动作编码" },
|
|
336
|
+
title: { label: "动作名称" },
|
|
337
|
+
category: { label: "动作类别" },
|
|
338
|
+
actionLevel: { label: "执行层级" },
|
|
339
|
+
accessMode: { label: "访问方式" },
|
|
340
|
+
executorType: { label: "执行方式" },
|
|
341
|
+
executorKey: { label: "执行实现" },
|
|
342
|
+
actionAuth: { label: "动作授权" },
|
|
343
|
+
dataAuth: { label: "数据授权" },
|
|
344
|
+
defaultGrantPolicy: { label: "默认授予策略" },
|
|
345
|
+
availableExpression: { label: "可用条件" },
|
|
346
|
+
unavailableMessage: { label: "不可用提示" },
|
|
347
|
+
sourceType: { label: "注册来源" },
|
|
348
|
+
bindingAlias: { label: "绑定标识" }
|
|
349
|
+
}
|
|
350
|
+
}, null, 8, ["record", "field-names"])) : w(z)?.systemManaged ? (x(), g("form", {
|
|
351
|
+
key: 2,
|
|
352
|
+
class: "managed-action-editor",
|
|
353
|
+
onSubmit: a[10] ||= E((...e) => w(R).save && w(R).save(...e), ["prevent"])
|
|
354
|
+
}, [_("section", de, [a[24] ||= _("h3", null, "动作声明", -1), y(w(r), {
|
|
355
|
+
record: w(B),
|
|
356
|
+
"display-of": $,
|
|
357
|
+
"field-names": Me.value,
|
|
358
|
+
fallback: {
|
|
359
|
+
actionCode: { label: "动作编码" },
|
|
360
|
+
title: { label: "动作名称" },
|
|
361
|
+
category: { label: "动作类别" },
|
|
362
|
+
actionLevel: { label: "执行层级" },
|
|
363
|
+
executorType: { label: "执行方式" },
|
|
364
|
+
executorKey: { label: "执行实现" },
|
|
365
|
+
sourceType: { label: "注册来源" }
|
|
366
|
+
}
|
|
367
|
+
}, null, 8, ["record", "field-names"])]), _("section", fe, [a[33] ||= _("h3", null, "权限治理", -1), _("div", pe, [
|
|
368
|
+
_("section", me, [_("header", null, [_("div", null, [_("h4", null, [a[25] ||= v(" 访问方式 ", -1), y(w(i), { title: "决定调用动作前需要满足的身份条件。" }, {
|
|
369
|
+
default: T(() => [_("button", he, [y(w(u), { name: "help" })])]),
|
|
370
|
+
_: 1
|
|
371
|
+
})])]), _("span", ge, [G("accessModeOverride") ? (x(), m(w(l), {
|
|
372
|
+
key: 0,
|
|
373
|
+
type: "text",
|
|
374
|
+
size: "small",
|
|
375
|
+
disabled: W.value,
|
|
376
|
+
onClick: a[2] ||= (e) => K("accessModeOverride")
|
|
377
|
+
}, {
|
|
378
|
+
default: T(() => [...a[26] ||= [v("重置", -1)]]),
|
|
379
|
+
_: 1
|
|
380
|
+
}, 8, ["disabled"])) : h("v-if", !0)])]), y(w(o), {
|
|
381
|
+
value: w(B).accessModeOverride ?? w(B).accessMode,
|
|
382
|
+
disabled: W.value,
|
|
383
|
+
options: [
|
|
384
|
+
{
|
|
385
|
+
label: "需要授权",
|
|
386
|
+
value: "AUTH_REQUIRED"
|
|
387
|
+
},
|
|
388
|
+
{
|
|
389
|
+
label: "登录可用",
|
|
390
|
+
value: "LOGIN_REQUIRED"
|
|
391
|
+
},
|
|
392
|
+
{
|
|
393
|
+
label: "匿名可用",
|
|
394
|
+
value: "ANONYMOUS_ALLOWED"
|
|
395
|
+
}
|
|
396
|
+
],
|
|
397
|
+
"onUpdate:value": a[3] ||= (e) => q("accessModeOverride", e)
|
|
398
|
+
}, null, 8, ["value", "disabled"])]),
|
|
399
|
+
_("section", _e, [_("header", null, [_("div", null, [_("h4", null, [a[27] ||= v(" 默认授予策略 ", -1), y(w(i), { title: "定义满足条件的用户首次获得动作时的默认规则。" }, {
|
|
400
|
+
default: T(() => [_("button", ve, [y(w(u), { name: "help" })])]),
|
|
401
|
+
_: 1
|
|
402
|
+
})])]), _("span", ye, [G("defaultGrantPolicyOverride") ? (x(), m(w(l), {
|
|
403
|
+
key: 0,
|
|
404
|
+
type: "text",
|
|
405
|
+
size: "small",
|
|
406
|
+
disabled: W.value,
|
|
407
|
+
onClick: a[4] ||= (e) => K("defaultGrantPolicyOverride")
|
|
408
|
+
}, {
|
|
409
|
+
default: T(() => [...a[28] ||= [v("重置", -1)]]),
|
|
410
|
+
_: 1
|
|
411
|
+
}, 8, ["disabled"])) : h("v-if", !0)])]), y(w(o), {
|
|
412
|
+
value: w(B).defaultGrantPolicyOverride ?? w(B).defaultGrantPolicy,
|
|
413
|
+
disabled: W.value,
|
|
414
|
+
options: [
|
|
415
|
+
{
|
|
416
|
+
label: "不默认授予",
|
|
417
|
+
value: "NONE"
|
|
418
|
+
},
|
|
419
|
+
{
|
|
420
|
+
label: "所有登录用户",
|
|
421
|
+
value: "ANY_LOGIN_USER"
|
|
422
|
+
},
|
|
423
|
+
{
|
|
424
|
+
label: "记录所有者",
|
|
425
|
+
value: "OWNER"
|
|
426
|
+
},
|
|
427
|
+
{
|
|
428
|
+
label: "办理人",
|
|
429
|
+
value: "ASSIGNEE"
|
|
430
|
+
},
|
|
431
|
+
{
|
|
432
|
+
label: "成员",
|
|
433
|
+
value: "MEMBER"
|
|
434
|
+
}
|
|
435
|
+
],
|
|
436
|
+
"onUpdate:value": a[5] ||= (e) => q("defaultGrantPolicyOverride", e)
|
|
437
|
+
}, null, 8, ["value", "disabled"])]),
|
|
438
|
+
_("section", be, [_("header", null, [_("div", null, [_("h4", null, [a[29] ||= v(" 动作授权 ", -1), y(w(i), { title: "控制角色是否需要被显式授予该动作。" }, {
|
|
439
|
+
default: T(() => [_("button", D, [y(w(u), { name: "help" })])]),
|
|
440
|
+
_: 1
|
|
441
|
+
})])]), _("span", O, [G("actionAuthOverride") ? (x(), m(w(l), {
|
|
442
|
+
key: 0,
|
|
443
|
+
type: "text",
|
|
444
|
+
size: "small",
|
|
445
|
+
disabled: W.value,
|
|
446
|
+
onClick: a[6] ||= (e) => K("actionAuthOverride")
|
|
447
|
+
}, {
|
|
448
|
+
default: T(() => [...a[30] ||= [v("重置", -1)]]),
|
|
449
|
+
_: 1
|
|
450
|
+
}, 8, ["disabled"])) : h("v-if", !0)])]), _("div", k, [y(w(t), {
|
|
451
|
+
checked: (w(B).actionAuthOverride ?? w(B).actionAuth) !== !1,
|
|
452
|
+
disabled: W.value,
|
|
453
|
+
"checked-text": "开",
|
|
454
|
+
"unchecked-text": "关",
|
|
455
|
+
"onUpdate:checked": a[7] ||= (e) => q("actionAuthOverride", e)
|
|
456
|
+
}, null, 8, ["checked", "disabled"]), _("strong", null, C((w(B).actionAuthOverride ?? w(B).actionAuth) === !1 ? "未启用" : "已启用"), 1)])]),
|
|
457
|
+
_("section", A, [_("header", null, [_("div", null, [_("h4", null, [a[31] ||= v(" 数据授权 ", -1), y(w(i), { title: "启用后,读取和执行会继续按数据范围校验。" }, {
|
|
458
|
+
default: T(() => [_("button", j, [y(w(u), { name: "help" })])]),
|
|
459
|
+
_: 1
|
|
460
|
+
})])]), _("span", M, [G("dataAuthOverride") ? (x(), m(w(l), {
|
|
461
|
+
key: 0,
|
|
462
|
+
type: "text",
|
|
463
|
+
size: "small",
|
|
464
|
+
disabled: W.value,
|
|
465
|
+
onClick: a[8] ||= (e) => K("dataAuthOverride")
|
|
466
|
+
}, {
|
|
467
|
+
default: T(() => [...a[32] ||= [v("重置", -1)]]),
|
|
468
|
+
_: 1
|
|
469
|
+
}, 8, ["disabled"])) : h("v-if", !0)])]), _("div", N, [y(w(t), {
|
|
470
|
+
checked: (w(B).dataAuthOverride ?? w(B).dataAuth) === !0,
|
|
471
|
+
disabled: W.value,
|
|
472
|
+
"checked-text": "开",
|
|
473
|
+
"unchecked-text": "关",
|
|
474
|
+
"onUpdate:checked": a[9] ||= (e) => q("dataAuthOverride", e)
|
|
475
|
+
}, null, 8, ["checked", "disabled"]), _("strong", null, C((w(B).dataAuthOverride ?? w(B).dataAuth) === !0 ? "已启用" : "未启用"), 1)])])
|
|
476
|
+
])])], 32)) : (x(), g("form", {
|
|
477
|
+
key: 3,
|
|
478
|
+
class: "static-record-form",
|
|
479
|
+
onSubmit: a[21] ||= E((...e) => w(R).save && w(R).save(...e), ["prevent"])
|
|
480
|
+
}, [
|
|
481
|
+
a[44] ||= _("p", { class: "form-hint wide-field" }, " 手工动作只能绑定已部署的二开执行器;平台会通过通用动作接口承接权限、审计和运行态刷新。 ", -1),
|
|
482
|
+
_("label", null, [a[34] ||= _("span", null, "动作编码", -1), y(w(s), {
|
|
483
|
+
value: w(B).actionCode,
|
|
484
|
+
disabled: W.value,
|
|
485
|
+
"onUpdate:value": a[11] ||= (e) => q("actionCode", e)
|
|
486
|
+
}, null, 8, ["value", "disabled"])]),
|
|
487
|
+
_("label", null, [a[35] ||= _("span", null, "动作名称", -1), y(w(s), {
|
|
488
|
+
value: w(B).title,
|
|
489
|
+
disabled: W.value,
|
|
490
|
+
"onUpdate:value": a[12] ||= (e) => q("title", e)
|
|
491
|
+
}, null, 8, ["value", "disabled"])]),
|
|
492
|
+
_("label", null, [a[36] ||= _("span", null, "执行层级", -1), y(w(o), {
|
|
493
|
+
value: w(B).actionLevel,
|
|
494
|
+
disabled: W.value,
|
|
495
|
+
options: Ae.value,
|
|
496
|
+
"onUpdate:value": a[13] ||= (e) => q("actionLevel", e)
|
|
497
|
+
}, null, 8, [
|
|
498
|
+
"value",
|
|
499
|
+
"disabled",
|
|
500
|
+
"options"
|
|
501
|
+
])]),
|
|
502
|
+
_("label", null, [a[37] ||= _("span", null, "访问方式", -1), y(w(o), {
|
|
503
|
+
value: w(B).accessMode,
|
|
504
|
+
disabled: W.value,
|
|
505
|
+
options: [
|
|
506
|
+
{
|
|
507
|
+
label: "需要授权",
|
|
508
|
+
value: "AUTH_REQUIRED"
|
|
509
|
+
},
|
|
510
|
+
{
|
|
511
|
+
label: "登录可用",
|
|
512
|
+
value: "LOGIN_REQUIRED"
|
|
513
|
+
},
|
|
514
|
+
{
|
|
515
|
+
label: "匿名可用",
|
|
516
|
+
value: "ANONYMOUS_ALLOWED"
|
|
517
|
+
}
|
|
518
|
+
],
|
|
519
|
+
"onUpdate:value": a[14] ||= (e) => q("accessMode", e)
|
|
520
|
+
}, null, 8, ["value", "disabled"])]),
|
|
521
|
+
_("label", null, [a[38] ||= _("span", null, "二开执行器", -1), y(w(o), {
|
|
522
|
+
value: w(B).executorKey,
|
|
523
|
+
disabled: W.value,
|
|
524
|
+
options: ke.value,
|
|
525
|
+
"onUpdate:value": a[15] ||= (e) => Ve(e)
|
|
526
|
+
}, null, 8, [
|
|
527
|
+
"value",
|
|
528
|
+
"disabled",
|
|
529
|
+
"options"
|
|
530
|
+
])]),
|
|
531
|
+
_("label", xe, [y(w(c), {
|
|
532
|
+
checked: w(B).actionAuth !== !1,
|
|
533
|
+
disabled: W.value,
|
|
534
|
+
"onUpdate:checked": a[16] ||= (e) => q("actionAuth", e)
|
|
535
|
+
}, {
|
|
536
|
+
default: T(() => [...a[39] ||= [v("启用动作授权", -1)]]),
|
|
537
|
+
_: 1
|
|
538
|
+
}, 8, ["checked", "disabled"])]),
|
|
539
|
+
_("label", Se, [y(w(c), {
|
|
540
|
+
checked: w(B).dataAuth === !0,
|
|
541
|
+
disabled: W.value,
|
|
542
|
+
"onUpdate:checked": a[17] ||= (e) => q("dataAuth", e)
|
|
543
|
+
}, {
|
|
544
|
+
default: T(() => [...a[40] ||= [v("启用数据授权", -1)]]),
|
|
545
|
+
_: 1
|
|
546
|
+
}, 8, ["checked", "disabled"])]),
|
|
547
|
+
_("label", null, [a[41] ||= _("span", null, "默认授予策略", -1), y(w(o), {
|
|
548
|
+
value: w(B).defaultGrantPolicy,
|
|
549
|
+
disabled: W.value,
|
|
550
|
+
options: [
|
|
551
|
+
{
|
|
552
|
+
label: "不默认授予",
|
|
553
|
+
value: "NONE"
|
|
554
|
+
},
|
|
555
|
+
{
|
|
556
|
+
label: "所有登录用户",
|
|
557
|
+
value: "ANY_LOGIN_USER"
|
|
558
|
+
},
|
|
559
|
+
{
|
|
560
|
+
label: "记录所有者",
|
|
561
|
+
value: "OWNER"
|
|
562
|
+
},
|
|
563
|
+
{
|
|
564
|
+
label: "办理人",
|
|
565
|
+
value: "ASSIGNEE"
|
|
566
|
+
},
|
|
567
|
+
{
|
|
568
|
+
label: "成员",
|
|
569
|
+
value: "MEMBER"
|
|
570
|
+
}
|
|
571
|
+
],
|
|
572
|
+
"onUpdate:value": a[18] ||= (e) => q("defaultGrantPolicy", e)
|
|
573
|
+
}, null, 8, ["value", "disabled"])]),
|
|
574
|
+
_("label", Ce, [a[42] ||= _("span", null, "可用条件表达式", -1), y(w(d), {
|
|
575
|
+
value: w(B).availableExpression,
|
|
576
|
+
disabled: W.value,
|
|
577
|
+
"onUpdate:value": a[19] ||= (e) => q("availableExpression", e)
|
|
578
|
+
}, null, 8, ["value", "disabled"])]),
|
|
579
|
+
_("label", we, [a[43] ||= _("span", null, "不可用提示", -1), y(w(d), {
|
|
580
|
+
value: w(B).unavailableMessage,
|
|
581
|
+
disabled: W.value,
|
|
582
|
+
"onUpdate:value": a[20] ||= (e) => q("unavailableMessage", e)
|
|
583
|
+
}, null, 8, ["value", "disabled"])])
|
|
584
|
+
], 32)), w(z) || w(V) !== "view" ? (x(), m(w(te), {
|
|
585
|
+
key: 4,
|
|
586
|
+
record: w(B)
|
|
587
|
+
}, null, 8, ["record"])) : h("v-if", !0)]),
|
|
588
|
+
_: 1
|
|
589
|
+
}, 8, [
|
|
590
|
+
"mode",
|
|
591
|
+
"detail-title",
|
|
592
|
+
"explorer-search-keyword"
|
|
593
|
+
]));
|
|
594
|
+
}
|
|
595
|
+
}), [["__scopeId", "data-v-f74a56ea"]]);
|
|
596
|
+
//#endregion
|
|
597
|
+
export { P as default };
|