@oinone/kunlun-vue-admin-base 7.1.0 → 7.2.0
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/oinone-kunlun-vue-admin-base.css +1 -1
- package/dist/oinone-kunlun-vue-admin-base.esm.js +18 -18
- package/dist/oinone-kunlun-vue-admin-base.scss +1 -1
- package/dist/types/src/action/component/action-bar/ActionBarWidget.d.ts +1 -0
- package/dist/types/src/action/component/action-bar/DefaultActionBar.vue.d.ts +12 -6
- package/dist/types/src/action/view-actions/biz-audit/BizAuditRecordDetail.vue.d.ts +1 -1
- package/dist/types/src/action/view-actions/biz-audit/BizAuditRecordDetailFieldValue.vue.d.ts +1 -1
- package/dist/types/src/action/view-actions/biz-audit/service.d.ts +1 -1
- package/dist/types/src/basic/field/complex/select/SelectFieldWidget.d.ts +1 -0
- package/dist/types/src/basic/form/DefaultForm.vue.d.ts +10 -1
- package/dist/types/src/basic/table/BaseTableWidget.d.ts +2 -2
- package/dist/types/src/basic/table-column/BaseTableColumnWidget.d.ts +5 -0
- package/dist/types/src/basic/table-column/BaseTableFieldWidget.d.ts +0 -5
- package/dist/types/src/basic/token/BaseFieldWidget.d.ts +2 -1
- package/dist/types/src/components/select/base/BaseSelect.vue.d.ts +2 -1
- package/dist/types/src/components/select/base/index.d.ts +1 -0
- package/dist/types/src/components/select/base/useSelectId.d.ts +1 -0
- package/dist/types/src/components/select/department-select/DepartmentModal.vue.d.ts +3 -3
- package/dist/types/src/components/select/department-select/DepartmentTree.vue.d.ts +1 -1
- package/dist/types/src/components/select/modal-select/ModalSelect.vue.d.ts +2 -0
- package/dist/types/src/components/select/organizational-structure-tree/OrganizationalStructureTree.vue.d.ts +5 -2
- package/dist/types/src/components/sortable-group/SortableGroup.vue.d.ts +1 -1
- package/dist/types/src/field/businees-audit/FormBizAuditField.vue.d.ts +1 -1
- package/dist/types/src/field/cascader/DefaultCascader.vue.d.ts +1 -1
- package/dist/types/src/field/detail/date/DetailWeekPickerFieldWidget.d.ts +3 -0
- package/dist/types/src/field/detail/date/index.d.ts +1 -0
- package/dist/types/src/field/detail/index.d.ts +1 -1
- package/dist/types/src/field/detail/m2m/table/DetailM2MTableFieldWidget.d.ts +1 -0
- package/dist/types/src/field/detail/number/DetailFloatFieldWidget.d.ts +3 -0
- package/dist/types/src/field/detail/number/DetailIntegerFieldWidget.d.ts +3 -0
- package/dist/types/src/field/detail/number/DetailMoneyFieldWidget.d.ts +3 -0
- package/dist/types/src/field/detail/number/index.d.ts +4 -0
- package/dist/types/src/field/detail/o2m/table/DetailO2MTableFieldWidget.d.ts +1 -0
- package/dist/types/src/field/form/abstract/department/AbstractFormDepartmentFieldWidget.d.ts +4 -0
- package/dist/types/src/field/form/abstract/employee/AbstractFormEmployeeFieldWidget.d.ts +4 -0
- package/dist/types/src/field/form/abstract/radio/FormRelationFieldRadioWidget.d.ts +2 -1
- package/dist/types/src/field/form/abstract/role/AbstractFormRoleFieldWidget.d.ts +4 -0
- package/dist/types/src/field/form/abstract/select/DefaultMultipleSelect.vue.d.ts +2 -1
- package/dist/types/src/field/form/abstract/select/DefaultSingleSelect.vue.d.ts +2 -1
- package/dist/types/src/field/form/date/DefaultDatePicker.vue.d.ts +1 -1
- package/dist/types/src/field/form/date/DefaultDateTimePicker.vue.d.ts +1 -1
- package/dist/types/src/field/form/date/DefaultTimePicker.vue.d.ts +1 -1
- package/dist/types/src/field/form/date/DefaultYearPicker.vue.d.ts +1 -1
- package/dist/types/src/field/form/date/range/DefaultDateRangePicker.vue.d.ts +1 -1
- package/dist/types/src/field/form/date/range/DefaultDateTimeRangePicker.vue.d.ts +1 -1
- package/dist/types/src/field/form/date/range/DefaultTimeRangePicker.vue.d.ts +1 -1
- package/dist/types/src/field/form/date/range/DefaultYearRangePicker.vue.d.ts +1 -1
- package/dist/types/src/field/form/enum/select/multi/MultiEnumSelect.vue.d.ts +1 -1
- package/dist/types/src/field/form/enum/select/single/EnumSelect.vue.d.ts +1 -1
- package/dist/types/src/field/form/enum/thumbnail/FormEnumThumbnail.vue.d.ts +2 -1
- package/dist/types/src/field/form/string/expression/model-field-select/modelFieldSelectControlWidget.d.ts +2 -0
- package/dist/types/src/field/form/text/DomainExpGenerator/DomainExpGenerator.vue.d.ts +1 -1
- package/dist/types/src/field/form/text/DomainExpGenerator/ExpItem.vue.d.ts +4 -0
- package/dist/types/src/field/form/text/DomainExpGenerator/ExpRight.vue.d.ts +1 -1
- package/dist/types/src/field/gallery/number/GalleryFloatFieldWidget.d.ts +3 -0
- package/dist/types/src/field/gallery/number/GalleryIntegerFieldWidget.d.ts +3 -0
- package/dist/types/src/field/gallery/number/GalleryMoneyFieldWidget.d.ts +3 -0
- package/dist/types/src/field/gallery/number/index.d.ts +3 -0
- package/dist/types/src/field/prop/RelationSelectProps.d.ts +1 -0
- package/dist/types/src/field/resource/language-badge/FormResourceLangBadge.vue.d.ts +2 -1
- package/dist/types/src/field/search/enum/TabSelect.vue.d.ts +1 -1
- package/dist/types/src/field/search/enum/TagSelect.vue.d.ts +1 -1
- package/dist/types/src/field/table/date/TableWeekPickerFieldWidget.d.ts +3 -0
- package/dist/types/src/field/table/date/index.d.ts +1 -0
- package/dist/types/src/field/table/date/range/editor/DefaultEditorDateRangePicker.vue.d.ts +1 -1
- package/dist/types/src/field/table/date/range/editor/DefaultEditorDateTimeRangePicker.vue.d.ts +1 -1
- package/dist/types/src/field/table/date/range/editor/DefaultEditorTimeRangePicker.vue.d.ts +1 -1
- package/dist/types/src/field/table/date/range/editor/DefaultEditorYearRangePicker.vue.d.ts +1 -1
- package/dist/types/src/field/table/html/TableRichText.vue.d.ts +1 -1
- package/dist/types/src/field/table/number/TableFloatFieldWidget.d.ts +3 -0
- package/dist/types/src/field/table/number/TableIntegerFieldWidget.d.ts +3 -0
- package/dist/types/src/field/table/number/index.d.ts +2 -0
- package/dist/types/src/field/table-layout-column/TableLayoutColumnWidget.d.ts +8 -5
- package/dist/types/src/field/table-operation-column/TableOperationColumn.vue.d.ts +1 -1
- package/dist/types/src/field/tree-select/DefaultTreeSelect.vue.d.ts +1 -1
- package/dist/types/src/permission/permission/field/FieldPermission.vue.d.ts +1 -1
- package/dist/types/src/permission/permission/field/index.d.ts +0 -2
- package/dist/types/src/permission/permission/index.d.ts +0 -1
- package/dist/types/src/permission/system-permission/field/permission-field/FieldPermission.vue.d.ts +1 -1
- package/dist/types/src/permission/system-permission/field/permission-user/UserPermission.vue.d.ts +1 -1
- package/dist/types/src/permission/system-permission/service/index.d.ts +3 -0
- package/dist/types/src/util/jumpDesignerPage.d.ts +0 -9
- package/dist/types/src/view/application-screen/apps-business-screen/components/Card.vue.d.ts +1 -1
- package/dist/types/src/view/application-screen/apps-business-screen/components/CardList.vue.d.ts +1 -1
- package/dist/types/src/view/application-screen/gallery/AppsGalleryWidget.d.ts +0 -2
- package/dist/types/src/view/application-screen/gallery/Gallery.vue.d.ts +1 -1
- package/dist/types/src/view/detail/DefaultDetail.vue.d.ts +9 -0
- package/dist/types/src/view/detail/DetailWidget.d.ts +1 -0
- package/dist/types/src/view/gallery/GalleryWidget.d.ts +2 -2
- package/dist/types/src/view/homepage-setting/components/MultiSelect.vue.d.ts +2 -1
- package/dist/types/src/view/homepage-setting/components/SingleSelect.vue.d.ts +2 -1
- package/dist/types/src/view/homepage-setting/field/HomepageSettingFieldWidget.d.ts +1 -1
- package/dist/types/src/view/homepage-setting/view/advanced-homepage-setting/AdvancedHomepageSetting.vue.d.ts +84 -0
- package/dist/types/src/view/iframe-view/menu/Menu.vue.d.ts +73 -1
- package/dist/types/src/view/index.d.ts +0 -2
- package/dist/types/src/view/login/BaseLoginWidget.d.ts +3 -2
- package/dist/types/src/view/login/LoginWidget.d.ts +0 -1
- package/dist/types/src/view/reset-password/FirstResetPassword.vue.d.ts +1 -1
- package/dist/types/src/view/reset-password/ForgetPassword.vue.d.ts +1 -1
- package/dist/types/src/view/search/SearchPrefer.vue.d.ts +1 -1
- package/dist/types/src/view/table/DefaultTable.vue.d.ts +28 -1
- package/dist/types/src/view/table/TableWidget.d.ts +3 -1
- package/dist/types/src/view/view/DetailView.d.ts +1 -0
- package/dist/types/src/view/workbench/Workbench.vue.d.ts +1 -1
- package/package.json +22 -22
- package/src/action/client-actions/SaveDraftActionWidget.ts +42 -27
- package/src/action/component/action/ActionWidget.ts +4 -4
- package/src/action/component/action/DefaultAction.vue +6 -1
- package/src/action/component/action-bar/ActionBarWidget.ts +13 -0
- package/src/action/component/action-bar/DefaultActionBar.vue +27 -9
- package/src/action/component/action-bar/DefaultMoreActionItem.vue +2 -2
- package/src/action/component/action-bar/style/index.scss +16 -0
- package/src/action/server-actions/ServerActionWidget.ts +2 -2
- package/src/action/url-actions/UrlActionWidget.ts +1 -1
- package/src/action/view-actions/BackActionWidget.ts +2 -3
- package/src/action/view-actions/biz-audit/RegisterDetail.ts +2 -2
- package/src/action/view-actions/biz-audit/service.ts +1 -1
- package/src/action/view-actions/popup/util.ts +1 -1
- package/src/basic/element/BaseElementListViewWidget.ts +4 -1
- package/src/basic/element/BaseElementObjectViewWidget.ts +4 -1
- package/src/basic/field/complex/select/SelectFieldWidget.ts +9 -0
- package/src/basic/form/DefaultForm.vue +17 -2
- package/src/basic/form-item/DefaultFormItem.vue +4 -4
- package/src/basic/form-item/style/index.scss +2 -2
- package/src/basic/table/BaseTableWidget.ts +8 -12
- package/src/basic/table-column/BaseTableColumnWidget.ts +86 -2
- package/src/basic/table-column/BaseTableFieldWidget.ts +1 -86
- package/src/basic/table-column/DefaultGroupCell.vue +21 -31
- package/src/basic/token/BaseFieldWidget.ts +32 -1
- package/src/basic/token/BaseView.ts +1 -0
- package/src/components/index.scss +1 -0
- package/src/components/oio-manage-group/OioManageGroup.vue +3 -2
- package/src/components/select/base/BaseSelect.vue +44 -8
- package/src/components/select/base/index.ts +1 -0
- package/src/components/select/base/useSelectId.ts +7 -0
- package/src/components/select/company-select/CompanySelect.vue +1 -0
- package/src/components/select/department-select/DepartmentModal.vue +7 -5
- package/src/components/select/department-select/DepartmentTree.vue +2 -2
- package/src/components/select/employee-select/DepartmentEmployeeSelectPanel.vue +0 -1
- package/src/components/select/modal-select/ModalSelect.vue +50 -6
- package/src/components/select/modal-select/style/index.scss +5 -0
- package/src/components/select/organizational-structure-tree/OrganizationalStructureTree.vue +31 -5
- package/src/components/select/table-select/TableSelect.vue +10 -1
- package/src/components/sortable-group/SortableGroup.vue +1 -1
- package/src/components/upload/UploadDraggable.vue +1 -1
- package/src/components/user-prefer/SimpleUserPreferSetting.vue +2 -1
- package/src/container/collapse/DefaultCollapsePanel.vue +1 -0
- package/src/container/group/DefaultGroup.vue +3 -4
- package/src/container/tabs/DefaultTabWidget.ts +2 -1
- package/src/field/detail/date/DetailWeekPickerFieldWidget.ts +13 -0
- package/src/field/detail/date/index.ts +1 -0
- package/src/field/detail/date/range/use-date-time-range-picker.ts +1 -1
- package/src/field/detail/date/use-date-time-picker.ts +1 -1
- package/src/field/detail/index.ts +1 -1
- package/src/field/detail/m2m/table/DetailM2MTableFieldWidget.ts +16 -0
- package/src/field/detail/number/DetailFloatFieldWidget.ts +12 -0
- package/src/field/detail/number/DetailIntegerFieldWidget.ts +12 -0
- package/src/field/detail/number/DetailMoneyFieldWidget.ts +12 -0
- package/src/field/detail/number/DetailNumberWidget.ts +0 -9
- package/src/field/detail/number/index.ts +4 -0
- package/src/field/detail/o2m/table/DetailO2MTableFieldWidget.ts +16 -0
- package/src/field/detail/string/color/DefaultColorPicker.vue +2 -3
- package/src/field/form/abstract/department/AbstractFormDepartmentFieldWidget.ts +11 -0
- package/src/field/form/abstract/employee/AbstractFormEmployeeFieldWidget.ts +11 -0
- package/src/field/form/abstract/radio/FormRelationFieldRadioWidget.ts +3 -1
- package/src/field/form/abstract/role/AbstractFormRoleFieldWidget.ts +11 -0
- package/src/field/form/abstract/select/DefaultMultipleSelect.vue +1 -0
- package/src/field/form/abstract/select/DefaultSingleSelect.vue +1 -0
- package/src/field/form/enum/thumbnail/FormEnumThumbnail.vue +15 -3
- package/src/field/form/integer/FormIntegerSliderFieldWidget.ts +1 -1
- package/src/field/form/m2m/upload/FormM2MUploadDraggableFieldWidget.ts +3 -3
- package/src/field/form/m2o/upload/FormM2OUploadDraggableFieldWidget.ts +3 -3
- package/src/field/form/o2m/upload/FormO2MUploadDraggableFieldWidget.ts +3 -3
- package/src/field/form/o2o/upload/FormO2OUploadDraggableFieldWidget.ts +3 -3
- package/src/field/form/string/color/DefaultColorPicker.vue +2 -3
- package/src/field/form/string/download/FormStringDownloadFieldWidget.ts +2 -2
- package/src/field/form/string/expression/model-field-select/modelFieldSelectControlWidget.ts +3 -0
- package/src/field/form/string/upload/FormStringUploadDraggableFieldWidget.ts +2 -2
- package/src/field/form/text/DomainExpGenerator/ExpRight.vue +2 -2
- package/src/field/gallery/number/GalleryFloatFieldWidget.ts +12 -0
- package/src/field/gallery/number/GalleryIntegerFieldWidget.ts +12 -0
- package/src/field/gallery/number/GalleryMoneyFieldWidget.ts +12 -0
- package/src/field/gallery/number/GalleryNumberWidget.ts +0 -9
- package/src/field/gallery/number/index.ts +3 -0
- package/src/field/prop/RelationSelectProps.ts +34 -0
- package/src/field/resource/resource-date-time-format/constant.ts +4 -4
- package/src/field/resource/resource-date-time-format/resource-date-format/FormResourceDateFormat.vue +61 -1
- package/src/field/table/date/TableWeekPickerFieldWidget.ts +13 -0
- package/src/field/table/date/TableYearFieldWidget.ts +1 -1
- package/src/field/table/date/index.ts +1 -0
- package/src/field/table/date/range/TableDateTimeRangeFieldWidget.ts +1 -1
- package/src/field/table/enum/TableEnum.vue +3 -3
- package/src/field/table/number/TableFloatFieldWidget.ts +12 -0
- package/src/field/table/number/TableIntegerFieldWidget.ts +12 -0
- package/src/field/table/number/TableNumberWidget.ts +1 -9
- package/src/field/table/number/index.ts +2 -0
- package/src/field/table-layout-column/TableLayoutColumnWidget.ts +37 -17
- package/src/file/excel/service/ExcelExportService.ts +1 -1
- package/src/file/print/service/PrintService.ts +1 -1
- package/src/icon-manage/view/search/IconSearch.vue +29 -35
- package/src/icon-manage/view/search/style/IconSearch.scss +37 -33
- package/src/main-view/DefaultMetadataMainViewWidget.ts +1 -1
- package/src/permission/permission/field/FieldPermissionWidget.ts +2 -4
- package/src/permission/permission/field/index.ts +0 -2
- package/src/permission/permission/index.ts +0 -1
- package/src/permission/system-permission/PermissionWidget.ts +12 -11
- package/src/permission/system-permission/components/Config.vue +17 -7
- package/src/permission/system-permission/components/Empty.vue +1 -1
- package/src/permission/system-permission/components/RoleDialog.vue +4 -4
- package/src/permission/system-permission/service/index.ts +77 -60
- package/src/plugins/translate.ts +6 -3
- package/src/shim-translate.d.ts +4 -1
- package/src/style/antdComponents/All.scss +0 -27
- package/src/style/root.scss +1 -1
- package/src/tags/context/runtime-context-helper.ts +6 -6
- package/src/tags/resolve/internal/widget-resolve.ts +5 -1
- package/src/util/collection-actions.ts +1 -1
- package/src/util/jumpDesignerPage.ts +11 -24
- package/src/view/application-screen/apps-business-screen/components/Card.vue +2 -2
- package/src/view/application-screen/apps-business-screen/components/RelationGraph.vue +2 -2
- package/src/view/application-screen/gallery/AppsGalleryWidget.ts +108 -133
- package/src/view/application-screen/gallery/Gallery.vue +2 -2
- package/src/view/company-setting/CompanySetting.vue +16 -14
- package/src/view/detail/DefaultDetail.vue +6 -5
- package/src/view/detail/DetailWidget.ts +12 -1
- package/src/view/gallery/GalleryWidget.ts +3 -3
- package/src/view/homepage-setting/field/HomepageSettingFieldWidget.ts +5 -5
- package/src/view/homepage-setting/hook/useHomepageSetting.ts +1 -1
- package/src/view/index.ts +0 -2
- package/src/view/login/BaseLoginWidget.ts +12 -6
- package/src/view/login/LoginWidget.ts +0 -2
- package/src/view/login/SSOLoginWidget.ts +1 -3
- package/src/view/login-page-setting/LoginPageSetting.vue +6 -7
- package/src/view/paas-install/PaaSInstall.vue +2 -2
- package/src/view/paas-manager/PaaSManager.vue +2 -2
- package/src/view/popup/PopupWidget.ts +2 -2
- package/src/view/quick-fill/Excel.vue +2 -1
- package/src/view/quick-fill/QuickFill.vue +9 -10
- package/src/view/system-style/localData.ts +8 -8
- package/src/view/table/DefaultTable.vue +81 -43
- package/src/view/table/DefaultTableFooterOperator.vue +2 -2
- package/src/view/table/TableUserPrefer.vue +1 -1
- package/src/view/table/TableWidget.ts +16 -5
- package/src/view/table/style/index.scss +6 -0
- package/src/view/unauthorized/Unauthorized.vue +1 -1
- package/src/view/view/DetailView.ts +12 -0
- package/src/view/view-control/card-col-control/DefaultCardColControl.vue +2 -2
- package/src/view/view-control/group-control/DefaultGroupControl.vue +2 -2
- package/src/view/view-control/sort-control/DefaultSortControl.vue +2 -2
- package/src/view/workbench/Workbench.vue +2 -2
- package/dist/types/src/permission/permission/action/PermissionSubmitActionWidget.d.ts +0 -7
- package/dist/types/src/permission/permission/action/index.d.ts +0 -1
- package/dist/types/src/permission/permission/field/ActionPermissionWidget.d.ts +0 -65
- package/dist/types/src/permission/permission/field/DataPermissionWidget.d.ts +0 -19
- package/dist/types/src/view/paas-install/PaaSInstall.d.ts +0 -6
- package/dist/types/src/view/paas-install/PaaSInstall.vue.d.ts +0 -22
- package/dist/types/src/view/paas-install/field/custom-table/CodeFoucsTable.vue.d.ts +0 -24
- package/dist/types/src/view/paas-install/field/custom-table/CustomTable.d.ts +0 -13
- package/dist/types/src/view/paas-install/field/index.d.ts +0 -2
- package/dist/types/src/view/paas-install/field/upload-and-select/UploadAndSelect.d.ts +0 -6
- package/dist/types/src/view/paas-install/field/upload-and-select/UploadAndSelect.vue.d.ts +0 -65
- package/dist/types/src/view/paas-install/index.d.ts +0 -2
- package/dist/types/src/view/paas-install/service.d.ts +0 -2
- package/dist/types/src/view/paas-manager/PaaSManager.d.ts +0 -6
- package/dist/types/src/view/paas-manager/PaaSManager.vue.d.ts +0 -23
- package/dist/types/src/view/paas-manager/service.d.ts +0 -2
- package/src/permission/permission/action/PermissionSubmitActionWidget.ts +0 -161
- package/src/permission/permission/action/index.ts +0 -1
- package/src/permission/permission/field/ActionPermissionWidget.ts +0 -472
- package/src/permission/permission/field/DataPermissionWidget.ts +0 -135
- package/src/view/login/view.vue +0 -7
- package/src/view/paas-install/PaaSInstall.ts +0 -23
- package/src/view/paas-install/README.md +0 -1
- package/src/view/paas-install/field/custom-table/CodeFoucsTable.vue +0 -115
- package/src/view/paas-install/field/custom-table/CustomTable.ts +0 -166
- package/src/view/paas-install/field/index.ts +0 -2
- package/src/view/paas-install/field/upload-and-select/UploadAndSelect.ts +0 -29
- package/src/view/paas-install/field/upload-and-select/UploadAndSelect.vue +0 -157
- package/src/view/paas-install/index.ts +0 -2
- package/src/view/paas-install/service.ts +0 -37
- package/src/view/paas-manager/PaaSManager.ts +0 -23
- package/src/view/paas-manager/service.ts +0 -37
|
@@ -3,7 +3,6 @@ import {
|
|
|
3
3
|
Dialog,
|
|
4
4
|
executeViewAction,
|
|
5
5
|
FunctionMetadata,
|
|
6
|
-
GenericFunctionService,
|
|
7
6
|
ModelCache,
|
|
8
7
|
ModuleCache,
|
|
9
8
|
type Pagination,
|
|
@@ -16,7 +15,6 @@ import {
|
|
|
16
15
|
translateValueByKey,
|
|
17
16
|
ViewCache
|
|
18
17
|
} from '@oinone/kunlun-engine';
|
|
19
|
-
import { Expression, type ExpressionRunParam } from '@oinone/kunlun-expression';
|
|
20
18
|
import { type IModelField, ViewType } from '@oinone/kunlun-meta';
|
|
21
19
|
import { Condition } from '@oinone/kunlun-request';
|
|
22
20
|
import {
|
|
@@ -35,7 +33,6 @@ import { SPI } from '@oinone/kunlun-spi';
|
|
|
35
33
|
import { appFinderSymbol } from '@oinone/kunlun-vue-admin-layout';
|
|
36
34
|
import { OioNotification } from '@oinone/kunlun-vue-ui-antd';
|
|
37
35
|
import { Widget, type WidgetSubjection } from '@oinone/kunlun-vue-widget';
|
|
38
|
-
import { isNil } from 'lodash-es';
|
|
39
36
|
import { BaseElementListViewWidget, BaseElementWidget } from '../../../basic';
|
|
40
37
|
import { createRuntimeContextForWidget } from '../../../tags';
|
|
41
38
|
import { onJumpCodeFuse, onJumpModelDesigner, onJumpUiDesignerHomePage } from '../../../util';
|
|
@@ -74,21 +71,6 @@ export class AppsGalleryWidget extends BaseElementListViewWidget {
|
|
|
74
71
|
|
|
75
72
|
private bindAppHomepageDialogFormWidget!: FormWidget | undefined;
|
|
76
73
|
|
|
77
|
-
@Widget.Reactive()
|
|
78
|
-
private addFormViewData = {};
|
|
79
|
-
|
|
80
|
-
protected executeInvisibleExpress(invisible?: string | boolean) {
|
|
81
|
-
if (isNil(invisible)) {
|
|
82
|
-
return false;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
if (typeof invisible === 'boolean') {
|
|
86
|
-
return invisible;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
return !!Expression.run({ activeRecord: this.addFormViewData } as ExpressionRunParam, invisible, false);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
74
|
@Widget.Reactive()
|
|
93
75
|
private moduleCategory = [];
|
|
94
76
|
|
|
@@ -113,38 +95,38 @@ export class AppsGalleryWidget extends BaseElementListViewWidget {
|
|
|
113
95
|
|
|
114
96
|
@Widget.Reactive()
|
|
115
97
|
protected get actionPermission(): ActionPermission {
|
|
116
|
-
const CreateAppAction = this.modelActions.find((a) => a.name === 'create');
|
|
117
|
-
const UpdateAppAction = this.modelActions.find((a) => a.name === 'update');
|
|
118
|
-
const UninstallAction = this.modelActions.find((a) => a.name === 'uninstall');
|
|
119
|
-
const InstallAction = this.modelActions.find((a) => a.name === 'install');
|
|
120
|
-
const BindHomepageAction = this.modelActions.find((a) => a.name === 'bindHomePage');
|
|
121
|
-
const DetailAction = this.modelActions.find((a) => a.name === 'apps_business_screen_detail');
|
|
98
|
+
const CreateAppAction = this.modelActions.find((a) => a.name === 'create' && !!a.actionType);
|
|
99
|
+
const UpdateAppAction = this.modelActions.find((a) => a.name === 'update' && !!a.actionType);
|
|
100
|
+
const UninstallAction = this.modelActions.find((a) => a.name === 'uninstall' && !!a.actionType);
|
|
101
|
+
const InstallAction = this.modelActions.find((a) => a.name === 'install' && !!a.actionType);
|
|
102
|
+
const BindHomepageAction = this.modelActions.find((a) => a.name === 'bindHomePage' && !!a.actionType);
|
|
103
|
+
const DetailAction = this.modelActions.find((a) => a.name === 'apps_business_screen_detail' && !!a.actionType);
|
|
122
104
|
|
|
123
|
-
const LikeAction = this.modelActions.find((a) => a.name === 'like');
|
|
124
|
-
const UnLikeAction = this.modelActions.find((a) => a.name === 'unLike');
|
|
105
|
+
const LikeAction = this.modelActions.find((a) => a.name === 'like' && !!a.actionType);
|
|
106
|
+
const UnLikeAction = this.modelActions.find((a) => a.name === 'unLike' && !!a.actionType);
|
|
125
107
|
|
|
126
108
|
const ModelDesignerAction = this.modelActions.find(
|
|
127
|
-
(a) => a.name === 'homepage' && a.model === 'designer.DesignerModelDefinition'
|
|
109
|
+
(a) => a.name === 'homepage' && a.model === 'designer.DesignerModelDefinition' && !!a.actionType
|
|
128
110
|
);
|
|
129
111
|
const UiDesignerAction = this.modelActions.find(
|
|
130
|
-
(a) => a.name === 'homepage' && a.model === 'ui.designer.UiDesignerView'
|
|
112
|
+
(a) => a.name === 'homepage' && a.model === 'ui.designer.UiDesignerView' && !!a.actionType
|
|
131
113
|
);
|
|
132
|
-
const PaasAction = this.modelActions.find((a) => a.name === 'PaasMenus_Menu_LowCodeMenu');
|
|
114
|
+
const PaasAction = this.modelActions.find((a) => a.name === 'PaasMenus_Menu_LowCodeMenu' && !!a.actionType);
|
|
133
115
|
|
|
134
116
|
return {
|
|
135
|
-
hasCreateAppAction: !!CreateAppAction
|
|
136
|
-
hasUpdateAppAction: !!UpdateAppAction
|
|
117
|
+
hasCreateAppAction: !!CreateAppAction,
|
|
118
|
+
hasUpdateAppAction: !!UpdateAppAction,
|
|
137
119
|
hasUninstallAction: !!UninstallAction,
|
|
138
120
|
hasInstallAction: !!InstallAction,
|
|
139
|
-
hasBindHomepageAction: !!BindHomepageAction
|
|
140
|
-
hasDetailAction: !!DetailAction
|
|
121
|
+
hasBindHomepageAction: !!BindHomepageAction,
|
|
122
|
+
hasDetailAction: !!DetailAction,
|
|
141
123
|
|
|
142
|
-
hasLikeAction: !!LikeAction
|
|
143
|
-
hasUnLikeAction: !!UnLikeAction
|
|
124
|
+
hasLikeAction: !!LikeAction,
|
|
125
|
+
hasUnLikeAction: !!UnLikeAction,
|
|
144
126
|
|
|
145
|
-
hasModelDesignerAction: !!ModelDesignerAction
|
|
146
|
-
hasUiDesignerAction: !!UiDesignerAction
|
|
147
|
-
hasPaasAction: !!PaasAction
|
|
127
|
+
hasModelDesignerAction: !!ModelDesignerAction,
|
|
128
|
+
hasUiDesignerAction: !!UiDesignerAction,
|
|
129
|
+
hasPaasAction: !!PaasAction
|
|
148
130
|
};
|
|
149
131
|
}
|
|
150
132
|
|
|
@@ -153,21 +135,33 @@ export class AppsGalleryWidget extends BaseElementListViewWidget {
|
|
|
153
135
|
protected get hasExportAction() {
|
|
154
136
|
const actionNames = Object.keys(this.exportAction);
|
|
155
137
|
|
|
156
|
-
return actionNames.some(
|
|
157
|
-
(name) => !!this.exportAction[name] && !this.executeInvisibleExpress(this.exportAction[name].invisible)
|
|
158
|
-
);
|
|
138
|
+
return actionNames.some((name) => !!this.exportAction[name]);
|
|
159
139
|
}
|
|
160
140
|
|
|
161
141
|
@Widget.Reactive()
|
|
162
142
|
protected get exportAction() {
|
|
163
143
|
return {
|
|
164
|
-
exportModelAction: this.modelActions.find(
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
144
|
+
exportModelAction: this.modelActions.find(
|
|
145
|
+
(a) => a.name === 'modelDesignerDialog' && !!a.actionType
|
|
146
|
+
) as RuntimeViewAction,
|
|
147
|
+
exportUiAction: this.modelActions.find(
|
|
148
|
+
(a) => a.name === 'uiDesignerDialog' && !!a.actionType
|
|
149
|
+
) as RuntimeViewAction,
|
|
150
|
+
exportWorkFlowAction: this.modelActions.find(
|
|
151
|
+
(a) => a.name === 'wfDesignerDialog' && !!a.actionType
|
|
152
|
+
) as RuntimeViewAction,
|
|
153
|
+
exportEipAction: this.modelActions.find(
|
|
154
|
+
(a) => a.name === 'eipDesignerDialog' && !!a.actionType
|
|
155
|
+
) as RuntimeViewAction,
|
|
156
|
+
exportDataAction: this.modelActions.find(
|
|
157
|
+
(a) => a.name === 'dataDesignerDialog' && !!a.actionType
|
|
158
|
+
) as RuntimeViewAction,
|
|
159
|
+
exportMicroFlowAction: this.modelActions.find(
|
|
160
|
+
(a) => a.name === 'mfDesignerDialog' && !!a.actionType
|
|
161
|
+
) as RuntimeViewAction,
|
|
162
|
+
exportPrintAction: this.modelActions.find(
|
|
163
|
+
(a) => a.name === 'printDesignerDialog' && !!a.actionType
|
|
164
|
+
) as RuntimeViewAction
|
|
171
165
|
};
|
|
172
166
|
}
|
|
173
167
|
|
|
@@ -178,21 +172,33 @@ export class AppsGalleryWidget extends BaseElementListViewWidget {
|
|
|
178
172
|
protected get hasImportAction() {
|
|
179
173
|
const actionNames = Object.keys(this.importAction);
|
|
180
174
|
|
|
181
|
-
return actionNames.some(
|
|
182
|
-
(name) => !!this.importAction[name] && !this.executeInvisibleExpress(this.importAction[name].invisible)
|
|
183
|
-
);
|
|
175
|
+
return actionNames.some((name) => !!this.importAction[name]);
|
|
184
176
|
}
|
|
185
177
|
|
|
186
178
|
@Widget.Reactive()
|
|
187
179
|
protected get importAction() {
|
|
188
180
|
return {
|
|
189
|
-
importModelAction: this.modelActions.find(
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
181
|
+
importModelAction: this.modelActions.find(
|
|
182
|
+
(a) => a.name === 'modelDesignerImportDialog' && !!a.actionType
|
|
183
|
+
) as RuntimeViewAction,
|
|
184
|
+
importUiAction: this.modelActions.find(
|
|
185
|
+
(a) => a.name === 'uiDesignerImportDialog' && !!a.actionType
|
|
186
|
+
) as RuntimeViewAction,
|
|
187
|
+
importWorkFlowAction: this.modelActions.find(
|
|
188
|
+
(a) => a.name === 'wfDesignerImportDialog' && !!a.actionType
|
|
189
|
+
) as RuntimeViewAction,
|
|
190
|
+
importEipAction: this.modelActions.find(
|
|
191
|
+
(a) => a.name === 'eipDesignerImportDialog' && !!a.actionType
|
|
192
|
+
) as RuntimeViewAction,
|
|
193
|
+
importDataAction: this.modelActions.find(
|
|
194
|
+
(a) => a.name === 'dataDesignerImportDialog' && !!a.actionType
|
|
195
|
+
) as RuntimeViewAction,
|
|
196
|
+
importMicroFlowAction: this.modelActions.find(
|
|
197
|
+
(a) => a.name === 'mfDesignerImportDialog' && !!a.actionType
|
|
198
|
+
) as RuntimeViewAction,
|
|
199
|
+
importPrintAction: this.modelActions.find(
|
|
200
|
+
(a) => a.name === 'printDesignerImportDialog' && !!a.actionType
|
|
201
|
+
) as RuntimeViewAction
|
|
196
202
|
};
|
|
197
203
|
}
|
|
198
204
|
|
|
@@ -203,21 +209,33 @@ export class AppsGalleryWidget extends BaseElementListViewWidget {
|
|
|
203
209
|
protected get hasSyncAction() {
|
|
204
210
|
const actionNames = Object.keys(this.syncAction);
|
|
205
211
|
|
|
206
|
-
return actionNames.some(
|
|
207
|
-
(name) => !!this.syncAction[name] && !this.executeInvisibleExpress(this.syncAction[name].invisible)
|
|
208
|
-
);
|
|
212
|
+
return actionNames.some((name) => !!this.syncAction[name]);
|
|
209
213
|
}
|
|
210
214
|
|
|
211
215
|
@Widget.Reactive()
|
|
212
216
|
protected get syncAction() {
|
|
213
217
|
return {
|
|
214
|
-
syncModelAction: this.modelActions.find(
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
218
|
+
syncModelAction: this.modelActions.find(
|
|
219
|
+
(a) => a.name === 'modelDesignerSyncDialog' && !!a.actionType
|
|
220
|
+
) as RuntimeViewAction,
|
|
221
|
+
syncUiAction: this.modelActions.find(
|
|
222
|
+
(a) => a.name === 'uiDesignerSyncDialog' && !!a.actionType
|
|
223
|
+
) as RuntimeViewAction,
|
|
224
|
+
syncWorkFlowAction: this.modelActions.find(
|
|
225
|
+
(a) => a.name === 'wfDesignerSyncDialog' && !!a.actionType
|
|
226
|
+
) as RuntimeViewAction,
|
|
227
|
+
syncEipAction: this.modelActions.find(
|
|
228
|
+
(a) => a.name === 'eipDesignerSyncDialog' && !!a.actionType
|
|
229
|
+
) as RuntimeViewAction,
|
|
230
|
+
syncDataAction: this.modelActions.find(
|
|
231
|
+
(a) => a.name === 'dataDesignerSyncDialog' && !!a.actionType
|
|
232
|
+
) as RuntimeViewAction,
|
|
233
|
+
syncMicroFlowAction: this.modelActions.find(
|
|
234
|
+
(a) => a.name === 'mfDesignerSyncDialog' && !!a.actionType
|
|
235
|
+
) as RuntimeViewAction,
|
|
236
|
+
syncPrintAction: this.modelActions.find(
|
|
237
|
+
(a) => a.name === 'printDesignerSyncDialog' && !!a.actionType
|
|
238
|
+
) as RuntimeViewAction
|
|
221
239
|
};
|
|
222
240
|
}
|
|
223
241
|
|
|
@@ -295,9 +313,7 @@ export class AppsGalleryWidget extends BaseElementListViewWidget {
|
|
|
295
313
|
displayName: translateValueByKey('模型导入'),
|
|
296
314
|
icon: 'oinone-a-moxingdaoru3x',
|
|
297
315
|
|
|
298
|
-
visible: (record) =>
|
|
299
|
-
!!this.importAction.importModelAction &&
|
|
300
|
-
!this.executeInvisibleExpress(this.importAction.importModelAction.invisible),
|
|
316
|
+
visible: (record) => !!this.importAction.importModelAction,
|
|
301
317
|
exe: (record) => {
|
|
302
318
|
executeViewAction(this.importAction.importModelAction!, undefined, undefined, {
|
|
303
319
|
module: record.module,
|
|
@@ -308,9 +324,7 @@ export class AppsGalleryWidget extends BaseElementListViewWidget {
|
|
|
308
324
|
{
|
|
309
325
|
displayName: translateValueByKey('界面导入'),
|
|
310
326
|
icon: 'oinone-a-jiemiandaoru2x',
|
|
311
|
-
visible: (record) =>
|
|
312
|
-
!!this.importAction.importUiAction &&
|
|
313
|
-
!this.executeInvisibleExpress(this.importAction.importUiAction.invisible),
|
|
327
|
+
visible: (record) => !!this.importAction.importUiAction,
|
|
314
328
|
exe: (record) => {
|
|
315
329
|
executeViewAction(this.importAction.importUiAction!, undefined, undefined, {
|
|
316
330
|
module: record.module,
|
|
@@ -321,9 +335,7 @@ export class AppsGalleryWidget extends BaseElementListViewWidget {
|
|
|
321
335
|
{
|
|
322
336
|
displayName: translateValueByKey('流程导入'),
|
|
323
337
|
icon: 'oinone-a-liuchengdaoru2x',
|
|
324
|
-
visible: (record) =>
|
|
325
|
-
!!this.importAction.importWorkFlowAction &&
|
|
326
|
-
!this.executeInvisibleExpress(this.importAction.importWorkFlowAction.invisible),
|
|
338
|
+
visible: (record) => !!this.importAction.importWorkFlowAction,
|
|
327
339
|
exe: (record) => {
|
|
328
340
|
executeViewAction(this.importAction.importWorkFlowAction!, undefined, undefined, {
|
|
329
341
|
module: record.module,
|
|
@@ -334,9 +346,7 @@ export class AppsGalleryWidget extends BaseElementListViewWidget {
|
|
|
334
346
|
{
|
|
335
347
|
displayName: translateValueByKey('微流导入'),
|
|
336
348
|
icon: 'oinone-a-liuchengdaoru2x',
|
|
337
|
-
visible: (record) =>
|
|
338
|
-
!!this.importAction.importMicroFlowAction &&
|
|
339
|
-
!this.executeInvisibleExpress(this.importAction.importMicroFlowAction.invisible),
|
|
349
|
+
visible: (record) => !!this.importAction.importMicroFlowAction,
|
|
340
350
|
exe: (record) => {
|
|
341
351
|
executeViewAction(this.importAction.importMicroFlowAction!, undefined, undefined, {
|
|
342
352
|
module: record.module,
|
|
@@ -347,9 +357,7 @@ export class AppsGalleryWidget extends BaseElementListViewWidget {
|
|
|
347
357
|
{
|
|
348
358
|
displayName: translateValueByKey('集成导入'),
|
|
349
359
|
icon: 'oinone-a-jichengdaoru2x',
|
|
350
|
-
visible: (record) =>
|
|
351
|
-
!!this.importAction.importEipAction &&
|
|
352
|
-
!this.executeInvisibleExpress(this.importAction.importEipAction.invisible),
|
|
360
|
+
visible: (record) => !!this.importAction.importEipAction,
|
|
353
361
|
exe: (record) => {
|
|
354
362
|
executeViewAction(this.importAction.importEipAction!, undefined, undefined, {
|
|
355
363
|
module: record.module,
|
|
@@ -360,9 +368,7 @@ export class AppsGalleryWidget extends BaseElementListViewWidget {
|
|
|
360
368
|
{
|
|
361
369
|
displayName: translateValueByKey('数据可视化导入'),
|
|
362
370
|
icon: 'oinone-a-shujukeshihuadaoru2x',
|
|
363
|
-
visible: (record) =>
|
|
364
|
-
!!this.importAction.importDataAction &&
|
|
365
|
-
!this.executeInvisibleExpress(this.importAction.importDataAction.invisible),
|
|
371
|
+
visible: (record) => !!this.importAction.importDataAction,
|
|
366
372
|
exe: (record) => {
|
|
367
373
|
executeViewAction(this.importAction.importDataAction!, undefined, undefined, {
|
|
368
374
|
module: record.module,
|
|
@@ -373,9 +379,7 @@ export class AppsGalleryWidget extends BaseElementListViewWidget {
|
|
|
373
379
|
{
|
|
374
380
|
displayName: translateValueByKey('打印导入'),
|
|
375
381
|
icon: 'oinone-a-jiemiandaoru2x',
|
|
376
|
-
visible: (record) =>
|
|
377
|
-
!!this.importAction.importPrintAction &&
|
|
378
|
-
!this.executeInvisibleExpress(this.importAction.importPrintAction.invisible),
|
|
382
|
+
visible: (record) => !!this.importAction.importPrintAction,
|
|
379
383
|
exe: (record) => {
|
|
380
384
|
executeViewAction(this.importAction.importPrintAction!, undefined, undefined, {
|
|
381
385
|
module: record.module,
|
|
@@ -394,9 +398,7 @@ export class AppsGalleryWidget extends BaseElementListViewWidget {
|
|
|
394
398
|
{
|
|
395
399
|
displayName: translateValueByKey('模型导出'),
|
|
396
400
|
icon: 'oinone-a-moxingdaoru3x',
|
|
397
|
-
visible: (record) =>
|
|
398
|
-
!!this.exportAction.exportModelAction &&
|
|
399
|
-
!this.executeInvisibleExpress(this.exportAction.exportModelAction.invisible),
|
|
401
|
+
visible: (record) => !!this.exportAction.exportModelAction,
|
|
400
402
|
exe: (record) => {
|
|
401
403
|
executeViewAction(this.exportAction.exportModelAction!, undefined, undefined, {
|
|
402
404
|
module: record.module,
|
|
@@ -407,9 +409,7 @@ export class AppsGalleryWidget extends BaseElementListViewWidget {
|
|
|
407
409
|
{
|
|
408
410
|
displayName: translateValueByKey('界面导出'),
|
|
409
411
|
icon: 'oinone-a-jiemiandaoru2x',
|
|
410
|
-
visible: (record) =>
|
|
411
|
-
!!this.exportAction.exportUiAction &&
|
|
412
|
-
!this.executeInvisibleExpress(this.exportAction.exportUiAction.invisible),
|
|
412
|
+
visible: (record) => !!this.exportAction.exportUiAction,
|
|
413
413
|
exe: (record) => {
|
|
414
414
|
executeViewAction(this.exportAction.exportUiAction!, undefined, undefined, {
|
|
415
415
|
module: record.module,
|
|
@@ -420,9 +420,7 @@ export class AppsGalleryWidget extends BaseElementListViewWidget {
|
|
|
420
420
|
{
|
|
421
421
|
displayName: translateValueByKey('流程导出'),
|
|
422
422
|
icon: 'oinone-a-liuchengdaoru2x',
|
|
423
|
-
visible: (record) =>
|
|
424
|
-
!!this.exportAction.exportWorkFlowAction &&
|
|
425
|
-
!this.executeInvisibleExpress(this.exportAction.exportWorkFlowAction.invisible),
|
|
423
|
+
visible: (record) => !!this.exportAction.exportWorkFlowAction,
|
|
426
424
|
exe: (record) => {
|
|
427
425
|
executeViewAction(this.exportAction.exportWorkFlowAction!, undefined, undefined, {
|
|
428
426
|
module: record.module,
|
|
@@ -433,9 +431,7 @@ export class AppsGalleryWidget extends BaseElementListViewWidget {
|
|
|
433
431
|
{
|
|
434
432
|
displayName: translateValueByKey('微流导出'),
|
|
435
433
|
icon: 'oinone-a-liuchengdaoru2x',
|
|
436
|
-
visible: (record) =>
|
|
437
|
-
!!this.exportAction.exportMicroFlowAction &&
|
|
438
|
-
!this.executeInvisibleExpress(this.exportAction.exportMicroFlowAction.invisible),
|
|
434
|
+
visible: (record) => !!this.exportAction.exportMicroFlowAction,
|
|
439
435
|
exe: (record) => {
|
|
440
436
|
executeViewAction(this.exportAction.exportMicroFlowAction!, undefined, undefined, {
|
|
441
437
|
module: record.module,
|
|
@@ -446,9 +442,7 @@ export class AppsGalleryWidget extends BaseElementListViewWidget {
|
|
|
446
442
|
{
|
|
447
443
|
displayName: translateValueByKey('集成导出'),
|
|
448
444
|
icon: 'oinone-a-jichengdaoru2x',
|
|
449
|
-
visible: (record) =>
|
|
450
|
-
!!this.exportAction.exportEipAction &&
|
|
451
|
-
!this.executeInvisibleExpress(this.exportAction.exportEipAction.invisible),
|
|
445
|
+
visible: (record) => !!this.exportAction.exportEipAction,
|
|
452
446
|
exe: (record) => {
|
|
453
447
|
executeViewAction(this.exportAction.exportEipAction!, undefined, undefined, {
|
|
454
448
|
module: record.module,
|
|
@@ -459,9 +453,7 @@ export class AppsGalleryWidget extends BaseElementListViewWidget {
|
|
|
459
453
|
{
|
|
460
454
|
displayName: translateValueByKey('数据可视化导出'),
|
|
461
455
|
icon: 'oinone-a-shujukeshihuadaoru2x',
|
|
462
|
-
visible: (record) =>
|
|
463
|
-
!!this.exportAction.exportDataAction &&
|
|
464
|
-
!this.executeInvisibleExpress(this.exportAction.exportDataAction.invisible),
|
|
456
|
+
visible: (record) => !!this.exportAction.exportDataAction,
|
|
465
457
|
exe: (record) => {
|
|
466
458
|
executeViewAction(this.exportAction.exportDataAction!, undefined, undefined, {
|
|
467
459
|
module: record.module,
|
|
@@ -472,9 +464,7 @@ export class AppsGalleryWidget extends BaseElementListViewWidget {
|
|
|
472
464
|
{
|
|
473
465
|
displayName: translateValueByKey('打印导出'),
|
|
474
466
|
icon: 'oinone-a-jiemiandaoru2x',
|
|
475
|
-
visible: (record) =>
|
|
476
|
-
!!this.exportAction.exportPrintAction &&
|
|
477
|
-
!this.executeInvisibleExpress(this.exportAction.exportPrintAction.invisible),
|
|
467
|
+
visible: (record) => !!this.exportAction.exportPrintAction,
|
|
478
468
|
exe: (record) => {
|
|
479
469
|
executeViewAction(this.exportAction.exportPrintAction!, undefined, undefined, {
|
|
480
470
|
module: record.module,
|
|
@@ -493,9 +483,7 @@ export class AppsGalleryWidget extends BaseElementListViewWidget {
|
|
|
493
483
|
{
|
|
494
484
|
displayName: translateValueByKey('模型部署'),
|
|
495
485
|
icon: 'oinone-a-moxingdaoru3x',
|
|
496
|
-
visible: (record) =>
|
|
497
|
-
!!this.syncAction.syncModelAction &&
|
|
498
|
-
!this.executeInvisibleExpress(this.syncAction.syncModelAction.invisible),
|
|
486
|
+
visible: (record) => !!this.syncAction.syncModelAction,
|
|
499
487
|
exe: (record) => {
|
|
500
488
|
executeViewAction(this.syncAction.syncModelAction!, undefined, undefined, {
|
|
501
489
|
module: record.module,
|
|
@@ -506,8 +494,7 @@ export class AppsGalleryWidget extends BaseElementListViewWidget {
|
|
|
506
494
|
{
|
|
507
495
|
displayName: translateValueByKey('界面部署'),
|
|
508
496
|
icon: 'oinone-a-jiemiandaoru2x',
|
|
509
|
-
visible: (record) =>
|
|
510
|
-
!!this.syncAction.syncUiAction && !this.executeInvisibleExpress(this.syncAction.syncUiAction.invisible),
|
|
497
|
+
visible: (record) => !!this.syncAction.syncUiAction,
|
|
511
498
|
exe: (record) => {
|
|
512
499
|
executeViewAction(this.syncAction.syncUiAction!, undefined, undefined, {
|
|
513
500
|
module: record.module,
|
|
@@ -518,9 +505,7 @@ export class AppsGalleryWidget extends BaseElementListViewWidget {
|
|
|
518
505
|
{
|
|
519
506
|
displayName: translateValueByKey('流程部署'),
|
|
520
507
|
icon: 'oinone-a-liuchengdaoru2x',
|
|
521
|
-
visible: (record) =>
|
|
522
|
-
!!this.syncAction.syncWorkFlowAction &&
|
|
523
|
-
!this.executeInvisibleExpress(this.syncAction.syncWorkFlowAction.invisible),
|
|
508
|
+
visible: (record) => !!this.syncAction.syncWorkFlowAction,
|
|
524
509
|
exe: (record) => {
|
|
525
510
|
executeViewAction(this.syncAction.syncWorkFlowAction!, undefined, undefined, {
|
|
526
511
|
module: record.module,
|
|
@@ -531,9 +516,7 @@ export class AppsGalleryWidget extends BaseElementListViewWidget {
|
|
|
531
516
|
{
|
|
532
517
|
displayName: translateValueByKey('微流部署'),
|
|
533
518
|
icon: 'oinone-a-liuchengdaoru2x',
|
|
534
|
-
visible: (record) =>
|
|
535
|
-
!!this.syncAction.syncMicroFlowAction &&
|
|
536
|
-
!this.executeInvisibleExpress(this.syncAction.syncMicroFlowAction.invisible),
|
|
519
|
+
visible: (record) => !!this.syncAction.syncMicroFlowAction,
|
|
537
520
|
exe: (record) => {
|
|
538
521
|
executeViewAction(this.syncAction.syncMicroFlowAction!, undefined, undefined, {
|
|
539
522
|
module: record.module,
|
|
@@ -544,8 +527,7 @@ export class AppsGalleryWidget extends BaseElementListViewWidget {
|
|
|
544
527
|
{
|
|
545
528
|
displayName: translateValueByKey('集成部署'),
|
|
546
529
|
icon: 'oinone-a-jichengdaoru2x',
|
|
547
|
-
visible: (record) =>
|
|
548
|
-
!!this.syncAction.syncEipAction && !this.executeInvisibleExpress(this.syncAction.syncEipAction.invisible),
|
|
530
|
+
visible: (record) => !!this.syncAction.syncEipAction,
|
|
549
531
|
exe: (record) => {
|
|
550
532
|
executeViewAction(this.syncAction.syncEipAction!, undefined, undefined, {
|
|
551
533
|
module: record.module,
|
|
@@ -556,9 +538,7 @@ export class AppsGalleryWidget extends BaseElementListViewWidget {
|
|
|
556
538
|
{
|
|
557
539
|
displayName: translateValueByKey('数据可视化部署'),
|
|
558
540
|
icon: 'oinone-a-shujukeshihuadaoru2x',
|
|
559
|
-
visible: (record) =>
|
|
560
|
-
!!this.syncAction.syncDataAction &&
|
|
561
|
-
!this.executeInvisibleExpress(this.syncAction.syncDataAction.invisible),
|
|
541
|
+
visible: (record) => !!this.syncAction.syncDataAction,
|
|
562
542
|
exe: (record) => {
|
|
563
543
|
executeViewAction(this.syncAction.syncDataAction!, undefined, undefined, {
|
|
564
544
|
module: record.module,
|
|
@@ -569,9 +549,7 @@ export class AppsGalleryWidget extends BaseElementListViewWidget {
|
|
|
569
549
|
{
|
|
570
550
|
displayName: translateValueByKey('打印部署'),
|
|
571
551
|
icon: 'oinone-a-jiemiandaoru2x',
|
|
572
|
-
visible: (record) =>
|
|
573
|
-
!!this.syncAction.syncPrintAction &&
|
|
574
|
-
!this.executeInvisibleExpress(this.syncAction.syncPrintAction.invisible),
|
|
552
|
+
visible: (record) => !!this.syncAction.syncPrintAction,
|
|
575
553
|
exe: (record) => {
|
|
576
554
|
executeViewAction(this.syncAction.syncPrintAction!, undefined, undefined, {
|
|
577
555
|
module: record.module,
|
|
@@ -719,7 +697,7 @@ export class AppsGalleryWidget extends BaseElementListViewWidget {
|
|
|
719
697
|
);
|
|
720
698
|
this.fetchTree((this.searchBody || {}) as any);
|
|
721
699
|
result.content?.forEach((a: any) => {
|
|
722
|
-
a.stateDisplayName = AppStateDisplayNameENum[a.state] || '';
|
|
700
|
+
a.stateDisplayName = translateValueByKey(AppStateDisplayNameENum[a.state] || '');
|
|
723
701
|
});
|
|
724
702
|
return result;
|
|
725
703
|
}
|
|
@@ -873,9 +851,6 @@ export class AppsGalleryWidget extends BaseElementListViewWidget {
|
|
|
873
851
|
ViewCache.compile(EditAppModelModel, CreateAppForm, CreateAppFormXml);
|
|
874
852
|
ViewCache.compile(EditAppModelModel, UpdateAppForm, UpdateAppFormXml);
|
|
875
853
|
ViewCache.compile(EditAppModelModel, BindAppHomepageForm, BindAppHomepageFormXml);
|
|
876
|
-
|
|
877
|
-
this.addFormViewData =
|
|
878
|
-
(await GenericFunctionService.INSTANCE.simpleExecuteByFun(this.model.model, 'construct', {})) || {};
|
|
879
854
|
}
|
|
880
855
|
}
|
|
881
856
|
|
|
@@ -304,8 +304,8 @@ export default defineComponent({
|
|
|
304
304
|
translateValueByKey,
|
|
305
305
|
moreActionItemNode,
|
|
306
306
|
|
|
307
|
-
appTag: `${genStaticPath('
|
|
308
|
-
moduleTag: `${genStaticPath('
|
|
307
|
+
appTag: `${genStaticPath('tag1.png')}`,
|
|
308
|
+
moduleTag: `${genStaticPath('tag2.png')}`
|
|
309
309
|
};
|
|
310
310
|
}
|
|
311
311
|
});
|
|
@@ -4,17 +4,17 @@
|
|
|
4
4
|
<!-- 企业信息 -->
|
|
5
5
|
<div class="oio-group oio-default-group">
|
|
6
6
|
<div class="oio-group-title-wrapper">
|
|
7
|
-
<div class="oio-group-title">{{
|
|
7
|
+
<div class="oio-group-title">{{ $translate('企业信息') }}</div>
|
|
8
8
|
</div>
|
|
9
9
|
|
|
10
10
|
<oio-form>
|
|
11
|
-
<oio-form-item :label="
|
|
11
|
+
<oio-form-item :label="$translate('企业名称')">
|
|
12
12
|
<oio-input v-model:value="companySetting.partnerName"></oio-input>
|
|
13
13
|
</oio-form-item>
|
|
14
|
-
<oio-form-item :label="
|
|
14
|
+
<oio-form-item :label="$translate('企业官网')">
|
|
15
15
|
<oio-input v-model:value="companySetting.officialWebsite"></oio-input>
|
|
16
16
|
</oio-form-item>
|
|
17
|
-
<oio-form-item :label="
|
|
17
|
+
<oio-form-item :label="$translate('企业slogan')">
|
|
18
18
|
<oio-input v-model:value="companySetting.slogan"></oio-input>
|
|
19
19
|
</oio-form-item>
|
|
20
20
|
</oio-form>
|
|
@@ -23,11 +23,11 @@
|
|
|
23
23
|
<!-- LOGO -->
|
|
24
24
|
<div class="oio-group oio-default-group">
|
|
25
25
|
<div class="oio-group-title-wrapper">
|
|
26
|
-
<div class="oio-group-title">{{
|
|
26
|
+
<div class="oio-group-title">{{ $translate('LOGO设置') }}</div>
|
|
27
27
|
</div>
|
|
28
28
|
<!-- 业务应用导航栏logo -->
|
|
29
29
|
<div>
|
|
30
|
-
<div class="title">{{
|
|
30
|
+
<div class="title">{{ $translate('业务应用导航栏logo') }}</div>
|
|
31
31
|
<div class="flex-s-c">
|
|
32
32
|
<div class="margin-right">
|
|
33
33
|
<div class="flex-row-start-center">
|
|
@@ -62,13 +62,13 @@
|
|
|
62
62
|
</div>
|
|
63
63
|
</div>
|
|
64
64
|
<div class="tips">
|
|
65
|
-
{{
|
|
65
|
+
{{ $translate('请上传jpg、png格式的图片,文件大小不超过5MB') }}
|
|
66
66
|
</div>
|
|
67
67
|
</div>
|
|
68
68
|
|
|
69
69
|
<!-- 浏览器logo -->
|
|
70
70
|
<div class="margin-top">
|
|
71
|
-
<div class="title">{{
|
|
71
|
+
<div class="title">{{ $translate('浏览器logo') }}</div>
|
|
72
72
|
<upload-img
|
|
73
73
|
limitSize="5"
|
|
74
74
|
limit-file-extensions=".jpg,.png"
|
|
@@ -79,26 +79,28 @@
|
|
|
79
79
|
>
|
|
80
80
|
</upload-img>
|
|
81
81
|
<div class="tips">
|
|
82
|
-
{{
|
|
82
|
+
{{ $translate('请上传jpg、png格式的图片,文件大小不超过5MB') }}
|
|
83
83
|
</div>
|
|
84
84
|
</div>
|
|
85
85
|
|
|
86
86
|
<div class="flex-s-c margin-top" style="margin-top: var(--oio-margin)">
|
|
87
|
-
<oio-button class="margin-right" @click="onBack">{{
|
|
88
|
-
<oio-button type="primary" @click="onSaveCompanySetting">{{
|
|
87
|
+
<oio-button class="margin-right" @click="onBack">{{ $translate('返回') }}</oio-button>
|
|
88
|
+
<oio-button type="primary" @click="onSaveCompanySetting">{{ $translate('发布') }}</oio-button>
|
|
89
89
|
</div>
|
|
90
90
|
</div>
|
|
91
91
|
</div>
|
|
92
92
|
</div>
|
|
93
93
|
</template>
|
|
94
94
|
<script lang="ts" setup>
|
|
95
|
-
import { translateValueByKey } from '@oinone/kunlun-engine';
|
|
96
95
|
import { OioButton, OioForm, OioFormItem, OioInput, OioTooltipHelp } from '@oinone/kunlun-vue-ui-antd';
|
|
97
96
|
import { defineProps, ref, watchEffect } from 'vue';
|
|
98
97
|
import UploadImg from '../../components/upload/UploadImg.vue';
|
|
99
98
|
|
|
100
|
-
const props =
|
|
101
|
-
|
|
99
|
+
const props = defineProps<{
|
|
100
|
+
companySetting: Record<string, any>;
|
|
101
|
+
onSaveCompanySetting: () => void;
|
|
102
|
+
goBack: () => void;
|
|
103
|
+
}>();
|
|
102
104
|
|
|
103
105
|
// app finder logo
|
|
104
106
|
const appSideLogoInfo = ref<Record<string, any>>({});
|
|
@@ -18,6 +18,10 @@ export default defineComponent({
|
|
|
18
18
|
template: {
|
|
19
19
|
type: Object as PropType<DslRenderDefinition>
|
|
20
20
|
},
|
|
21
|
+
inline: {
|
|
22
|
+
type: Boolean,
|
|
23
|
+
default: undefined
|
|
24
|
+
},
|
|
21
25
|
formData: {
|
|
22
26
|
type: Object,
|
|
23
27
|
default: () => ({})
|
|
@@ -28,15 +32,12 @@ export default defineComponent({
|
|
|
28
32
|
DefaultForm,
|
|
29
33
|
{
|
|
30
34
|
...PropRecordHelper.convert(OioFormProps, CastHelper.cast(this)),
|
|
31
|
-
...PropRecordHelper.collectionBasicProps(
|
|
32
|
-
this.$attrs,
|
|
33
|
-
StringHelper.append([`${DEFAULT_PREFIX}-default-detail`], CastHelper.cast(this.template?.class)),
|
|
34
|
-
CastHelper.cast(this.template?.style)
|
|
35
|
-
),
|
|
35
|
+
...PropRecordHelper.collectionBasicProps(this.$attrs, [`${DEFAULT_PREFIX}-default-detail`]),
|
|
36
36
|
wrapperClassName: StringHelper.append([`${DEFAULT_PREFIX}-default-detail-wrapper`], this.wrapperClassName).join(
|
|
37
37
|
' '
|
|
38
38
|
),
|
|
39
39
|
template: this.template,
|
|
40
|
+
inline: this.inline,
|
|
40
41
|
formData: this.formData
|
|
41
42
|
},
|
|
42
43
|
PropRecordHelper.collectionSlots(this.$slots, [
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ViewType } from '@oinone/kunlun-meta';
|
|
2
|
+
import { BooleanHelper } from '@oinone/kunlun-shared';
|
|
2
3
|
import { SPI } from '@oinone/kunlun-spi';
|
|
3
|
-
import { isDetailViewState, type OioAnyViewState } from '@oinone/kunlun-vue-widget';
|
|
4
|
+
import { isDetailViewState, type OioAnyViewState, Widget } from '@oinone/kunlun-vue-widget';
|
|
4
5
|
import { BaseElementWidget, BaseFormWidget } from '../../basic';
|
|
5
6
|
import { DETAIL_WIDGET } from '../../typing';
|
|
6
7
|
import DefaultDetail from './DefaultDetail.vue';
|
|
@@ -18,9 +19,19 @@ export class DetailWidget extends BaseFormWidget {
|
|
|
18
19
|
return this;
|
|
19
20
|
}
|
|
20
21
|
|
|
22
|
+
@Widget.Reactive()
|
|
23
|
+
protected get disabledRelationQuery() {
|
|
24
|
+
return BooleanHelper.toBoolean(this.getDsl().disabledRelationQuery);
|
|
25
|
+
}
|
|
26
|
+
|
|
21
27
|
protected $$initViewState(state: OioAnyViewState): void {
|
|
22
28
|
if (isDetailViewState(state) && !state.detail) {
|
|
23
29
|
state.detail = this.currentHandle;
|
|
30
|
+
if (this.inline) {
|
|
31
|
+
state.disabledRelationQuery = this.disabledRelationQuery;
|
|
32
|
+
} else if (this.globalState) {
|
|
33
|
+
this.globalState.disabledRelationQuery = this.disabledRelationQuery;
|
|
34
|
+
}
|
|
24
35
|
}
|
|
25
36
|
}
|
|
26
37
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type DslDefinition, DslDefinitionType } from '@oinone/kunlun-dsl';
|
|
1
|
+
import { type DslDefinition, DslDefinitionType, ElementDslDefinition } from '@oinone/kunlun-dsl';
|
|
2
2
|
import { getCurrentThemeSize } from '@oinone/kunlun-engine';
|
|
3
3
|
import { ViewType } from '@oinone/kunlun-meta';
|
|
4
4
|
import { BooleanHelper, NumberHelper, Optional } from '@oinone/kunlun-shared';
|
|
@@ -143,12 +143,12 @@ export class GalleryWidget extends BaseElementListViewWidget {
|
|
|
143
143
|
return {
|
|
144
144
|
dslNodeType: DslDefinitionType.ELEMENT,
|
|
145
145
|
widget: 'ViewControl',
|
|
146
|
-
widgets: this.viewControlChildren
|
|
146
|
+
widgets: this.viewControlChildren.map((v) => ({ ...v, key: v.widget }))
|
|
147
147
|
};
|
|
148
148
|
}
|
|
149
149
|
|
|
150
150
|
@Widget.Reactive()
|
|
151
|
-
protected get viewControlChildren():
|
|
151
|
+
protected get viewControlChildren(): ElementDslDefinition[] {
|
|
152
152
|
const controls: { enabled: boolean; widget: string; props?: Record<string, unknown> }[] = [
|
|
153
153
|
{
|
|
154
154
|
enabled: this.sortable,
|