@ibiz-template/vue3-components 0.7.38-alpha.12 → 0.7.38-alpha.31
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/ibiz-markdown-editor-BZ8j-yda.js +1 -0
- package/dist/{index-B_Fo_3Rt.js → index-CnCC-cC2.js} +1 -1
- package/dist/index-Q4QqDXYJ.js +4 -0
- package/dist/{index-BvI3oZGL.js → index-X3QXftIl.js} +1 -1
- package/dist/index.min.css +1 -1
- package/dist/index.system.min.js +1 -1
- package/dist/wang-editor-Btv6GIhJ.js +1 -0
- package/dist/{xlsx-util-XDKOLzzW.js → xlsx-util-DbA3TyD9.js} +1 -1
- package/es/common/action-toolbar/action-toolbar.css +1 -1
- package/es/common/action-toolbar/action-toolbar.mjs +6 -3
- package/es/common/anchor-container/anchor-bar-list/anchor-bar-list.css +1 -1
- package/es/common/control-navigation/control-navigation.css +1 -0
- package/es/common/control-navigation/control-navigation.d.ts +32 -0
- package/es/common/control-navigation/control-navigation.mjs +116 -0
- package/es/common/control-navigation/provider/calendar-navigation.provider.d.ts +17 -0
- package/es/common/control-navigation/provider/calendar-navigation.provider.mjs +55 -0
- package/es/common/control-navigation/provider/index.d.ts +10 -0
- package/es/common/control-navigation/provider/index.mjs +17 -0
- package/es/common/control-navigation/provider/navigation-base.provider.d.ts +84 -0
- package/es/common/control-navigation/provider/navigation-base.provider.mjs +142 -0
- package/es/common/control-navigation/provider/tree-navigation.provider.d.ts +30 -0
- package/es/common/control-navigation/provider/tree-navigation.provider.mjs +81 -0
- package/es/common/custom-filter-condition/custom-filter-condition.d.ts +2 -0
- package/es/common/custom-theme/custom-theme-model.mjs +5 -13
- package/es/common/data-import2/data-import2.mjs +1 -1
- package/es/common/gantt-setting/gantt-setting.css +1 -0
- package/es/common/gantt-setting/gantt-setting.d.ts +63 -0
- package/es/common/gantt-setting/gantt-setting.mjs +237 -0
- package/es/common/grid-setting/grid-setting.css +1 -1
- package/es/common/grid-setting/grid-setting.d.ts +3 -1
- package/es/common/grid-setting/grid-setting.mjs +21 -5
- package/es/common/index.mjs +6 -0
- package/es/common/nav-split/nav-split.css +1 -0
- package/es/common/nav-split/nav-split.d.ts +57 -0
- package/es/common/nav-split/nav-split.mjs +209 -0
- package/es/common/pql-editor/utils/index.mjs +30 -40
- package/es/common/split/split.css +1 -1
- package/es/common/view-message/view-message.d.ts +2 -0
- package/es/control/app-menu/app-menu.css +1 -1
- package/es/control/app-menu/app-menu.d.ts +3 -0
- package/es/control/app-menu/app-menu.mjs +62 -22
- package/es/control/app-menu/custom-menu-design/custom-menu-design.mjs +12 -3
- package/es/control/app-menu/index.d.ts +3 -0
- package/es/control/calendar/calendar.css +1 -1
- package/es/control/calendar/calendar.d.ts +12 -1
- package/es/control/calendar/calendar.mjs +42 -10
- package/es/control/calendar/index.d.ts +12 -1
- package/es/control/dashboard/custom-dashboard-container/custom-dashboard-container.d.ts +54 -0
- package/es/control/dashboard/custom-dashboard-container/custom-dashboard-container.mjs +10 -3
- package/es/control/dashboard/dashboard-design/dashboard-design.mjs +2 -1
- package/es/control/dashboard/dashboard.mjs +13 -1
- package/es/control/dashboard/portlet/filter-portlet/filter-portlet-design/filter-portlet-design.css +1 -1
- package/es/control/dashboard/portlet/filter-portlet/filter-portlet-design/filter-portlet-design.mjs +9 -4
- package/es/control/data-view/data-view.css +1 -1
- package/es/control/data-view/data-view.d.ts +1 -0
- package/es/control/data-view/data-view.mjs +21 -3
- package/es/control/data-view/index.d.ts +1 -0
- package/es/control/drbar/drbar.controller.mjs +2 -2
- package/es/control/drtab/drtab-control.util.mjs +1 -1
- package/es/control/drtab/drtab.controller.d.ts +28 -8
- package/es/control/drtab/drtab.controller.mjs +62 -11
- package/es/control/drtab/drtab.css +1 -1
- package/es/control/drtab/drtab.d.ts +3 -1
- package/es/control/drtab/drtab.mjs +68 -9
- package/es/control/drtab/index.d.ts +3 -1
- package/es/control/form/form-detail/form-group-panel/form-group-panel.mjs +1 -1
- package/es/control/form/form-detail/form-item/form-item.d.ts +1 -0
- package/es/control/form/form-detail/form-item/form-item.mjs +21 -2
- package/es/control/form/form-detail/form-item/index.d.ts +1 -0
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.d.ts +104 -0
- package/es/control/form/form-detail/form-tab-panel/form-tab-panel.css +1 -1
- package/es/control/form/form-detail/form-tab-panel/form-tab-panel.mjs +1 -1
- package/es/control/form/search-form/index.d.ts +9 -0
- package/es/control/form/search-form/search-form.d.ts +9 -0
- package/es/control/form/search-form/search-form.mjs +4 -0
- package/es/control/gantt/gantt.css +1 -1
- package/es/control/gantt/gantt.d.ts +3 -4
- package/es/control/gantt/gantt.mjs +158 -52
- package/es/control/gantt/index.d.ts +3 -4
- package/es/control/grid/grid/grid-control.util.d.ts +2 -0
- package/es/control/grid/grid/grid-control.util.mjs +40 -4
- package/es/control/grid/grid/grid.css +1 -1
- package/es/control/grid/grid/grid.mjs +86 -73
- package/es/control/grid/grid-column/grid-field-column/grid-field-column.d.ts +1 -0
- package/es/control/grid/grid-column/grid-field-column/grid-field-column.mjs +21 -1
- package/es/control/grid/grid-column/grid-field-column/index.d.ts +1 -0
- package/es/control/list/index.d.ts +1 -0
- package/es/control/list/list.css +1 -1
- package/es/control/list/list.d.ts +1 -0
- package/es/control/list/list.mjs +23 -5
- package/es/control/map/map.d.ts +9 -0
- package/es/control/map/map.mjs +4 -0
- package/es/control/search-bar/search-groups/search-groups.mjs +2 -2
- package/es/control/tab-exp-panel/tab-exp-panel.css +1 -1
- package/es/control/toolbar/toolbar.mjs +3 -0
- package/es/control/tree/el-tree-util.d.ts +39 -1
- package/es/control/tree/el-tree-util.mjs +70 -2
- package/es/control/tree/index.d.ts +16 -14
- package/es/control/tree/tree.css +1 -1
- package/es/control/tree/tree.d.ts +16 -14
- package/es/control/tree/tree.mjs +60 -31
- package/es/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-field-column/tree-grid-ex-field-column.mjs +17 -1
- package/es/editor/data-picker/ibiz-picker-embed-view/ibiz-picker-embed-view.css +1 -1
- package/es/editor/data-picker/ibiz-picker-embed-view/ibiz-picker-embed-view.d.ts +3 -8
- package/es/editor/data-picker/ibiz-picker-embed-view/ibiz-picker-embed-view.mjs +22 -23
- package/es/editor/data-picker/ibiz-picker-select-view/ibiz-picker-select-view.mjs +1 -0
- package/es/editor/date-range/ibiz-date-range-picker/ibiz-date-range-picker.mjs +3 -1
- package/es/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.css +1 -1
- package/es/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.mjs +8 -2
- package/es/editor/html/wang-editor/wang-editor.mjs +1 -1
- package/es/editor/markdown/ibiz-markdown-editor/ibiz-markdown-editor.mjs +1 -1
- package/es/editor/span/span/span.mjs +7 -1
- package/es/editor/span/span-editor.controller.d.ts +7 -0
- package/es/editor/span/span-editor.controller.mjs +10 -0
- package/es/editor/text-box/ibiz-input-number/ibiz-input-number.css +1 -1
- package/es/editor/text-box/ibiz-input-number/ibiz-input-number.mjs +24 -6
- package/es/editor/text-box/input/input.css +1 -1
- package/es/editor/text-box/input/input.mjs +32 -5
- package/es/editor/text-box/text-box-editor.controller.d.ts +7 -0
- package/es/editor/text-box/text-box-editor.controller.mjs +10 -0
- package/es/editor/upload/use/use-iview-upload.mjs +1 -1
- package/es/locale/en/index.d.ts +33 -0
- package/es/locale/en/index.mjs +27 -2
- package/es/locale/zh-CN/index.d.ts +33 -0
- package/es/locale/zh-CN/index.mjs +27 -2
- package/es/panel-component/auth-sso/auth-sso.css +1 -0
- package/es/panel-component/auth-sso/auth-sso.d.ts +26 -0
- package/es/panel-component/auth-sso/auth-sso.mjs +100 -0
- package/es/panel-component/auth-sso/auth-sso.provider.d.ts +6 -0
- package/es/panel-component/auth-sso/auth-sso.provider.mjs +21 -0
- package/es/panel-component/auth-sso/index.d.ts +23 -0
- package/es/panel-component/auth-sso/index.mjs +12 -0
- package/es/panel-component/auth-userinfo/auth-userinfo.css +1 -1
- package/es/panel-component/coop-pos/coop-pos.controller.d.ts +46 -1
- package/es/panel-component/coop-pos/coop-pos.controller.mjs +92 -1
- package/es/panel-component/coop-pos/coop-pos.css +1 -1
- package/es/panel-component/coop-pos/coop-pos.d.ts +4 -1
- package/es/panel-component/coop-pos/coop-pos.mjs +23 -3
- package/es/panel-component/coop-pos/index.d.ts +3 -0
- package/es/panel-component/index-actions/index-actions.css +1 -1
- package/es/panel-component/index.mjs +4 -1
- package/es/panel-component/nav-breadcrumb/nav-breadcrumb.controller.mjs +8 -31
- package/es/panel-component/nav-breadcrumb/nav-breadcrumb.service.d.ts +1 -1
- package/es/panel-component/nav-breadcrumb/nav-breadcrumb.service.mjs +1 -1
- package/es/panel-component/nav-pos-index/nav-pos-index.controller.mjs +7 -2
- package/es/panel-component/nav-tabs/nav-tabs.controller.d.ts +1 -1
- package/es/panel-component/nav-tabs/nav-tabs.controller.mjs +3 -3
- package/es/panel-component/panel-app-title/index.mjs +4 -0
- package/es/panel-component/panel-app-title/panel-app-title.controller.mjs +8 -0
- package/es/panel-component/panel-app-title/panel-app-title.css +1 -1
- package/es/panel-component/panel-app-title/panel-app-title.mjs +112 -108
- package/es/panel-component/panel-button-list/panel-button-list.controller.mjs +2 -1
- package/es/panel-component/panel-index-view-search/panel-index-view-search.css +1 -1
- package/es/panel-component/searchform-buttons/searchform-buttons.mjs +1 -1
- package/es/util/app-popover/app-popover-component.mjs +1 -1
- package/es/util/fullscreen/fullscreen-util.mjs +2 -2
- package/es/util/notification-util/notification-util.d.ts +10 -1
- package/es/util/notification-util/notification-util.mjs +36 -0
- package/es/util/notification-util/upload-manager/file-type.d.ts +8 -0
- package/es/util/notification-util/upload-manager/file-type.mjs +207 -0
- package/es/util/notification-util/upload-manager/upload-manager.css +1 -0
- package/es/util/notification-util/upload-manager/upload-manager.d.ts +64 -0
- package/es/util/notification-util/upload-manager/upload-manager.mjs +159 -0
- package/es/util/pagination/use-pagination.mjs +5 -4
- package/es/view/login-view/login-view.mjs +18 -0
- package/es/view-engine/edit-view.engine.mjs +14 -0
- package/es/view-engine/login-view.engine.mjs +1 -0
- package/es/view-engine/opt-view.engine.d.ts +1 -0
- package/es/view-engine/opt-view.engine.mjs +41 -1
- package/es/view-engine/tab-exp-view.engine.d.ts +9 -0
- package/es/view-engine/tab-exp-view.engine.mjs +20 -1
- package/es/view-engine/tab-search-view.engine.d.ts +9 -1
- package/es/view-engine/tab-search-view.engine.mjs +52 -2
- package/es/web-app/attach-environment-config.mjs +5 -1
- package/es/web-app/guard/auth-guard/auth-guard.d.ts +21 -14
- package/es/web-app/guard/auth-guard/auth-guard.mjs +26 -19
- package/es/web-app/guard/auth-guard/dyna-auth-guard.d.ts +1 -1
- package/es/web-app/guard/auth-guard/dyna-auth-guard.mjs +2 -1
- package/es/web-app/main.mjs +3 -1
- package/es/web-app/router/index.d.ts +3 -2
- package/es/web-app/router/index.mjs +15 -4
- package/lib/common/action-toolbar/action-toolbar.cjs +6 -3
- package/lib/common/action-toolbar/action-toolbar.css +1 -1
- package/lib/common/anchor-container/anchor-bar-list/anchor-bar-list.css +1 -1
- package/lib/common/control-navigation/control-navigation.cjs +118 -0
- package/lib/common/control-navigation/control-navigation.css +1 -0
- package/lib/common/control-navigation/provider/calendar-navigation.provider.cjs +57 -0
- package/lib/common/control-navigation/provider/index.cjs +19 -0
- package/lib/common/control-navigation/provider/navigation-base.provider.cjs +144 -0
- package/lib/common/control-navigation/provider/tree-navigation.provider.cjs +83 -0
- package/lib/common/custom-theme/custom-theme-model.cjs +5 -13
- package/lib/common/data-import2/data-import2.cjs +1 -1
- package/lib/common/gantt-setting/gantt-setting.cjs +239 -0
- package/lib/common/gantt-setting/gantt-setting.css +1 -0
- package/lib/common/grid-setting/grid-setting.cjs +21 -5
- package/lib/common/grid-setting/grid-setting.css +1 -1
- package/lib/common/index.cjs +6 -0
- package/lib/common/nav-split/nav-split.cjs +211 -0
- package/lib/common/nav-split/nav-split.css +1 -0
- package/lib/common/pql-editor/utils/index.cjs +30 -40
- package/lib/common/split/split.css +1 -1
- package/lib/control/app-menu/app-menu.cjs +60 -20
- package/lib/control/app-menu/app-menu.css +1 -1
- package/lib/control/app-menu/custom-menu-design/custom-menu-design.cjs +11 -2
- package/lib/control/calendar/calendar.cjs +42 -10
- package/lib/control/calendar/calendar.css +1 -1
- package/lib/control/dashboard/custom-dashboard-container/custom-dashboard-container.cjs +10 -3
- package/lib/control/dashboard/dashboard-design/dashboard-design.cjs +2 -1
- package/lib/control/dashboard/dashboard.cjs +13 -1
- package/lib/control/dashboard/portlet/filter-portlet/filter-portlet-design/filter-portlet-design.cjs +9 -4
- package/lib/control/dashboard/portlet/filter-portlet/filter-portlet-design/filter-portlet-design.css +1 -1
- package/lib/control/data-view/data-view.cjs +21 -3
- package/lib/control/data-view/data-view.css +1 -1
- package/lib/control/drbar/drbar.controller.cjs +2 -2
- package/lib/control/drtab/drtab-control.util.cjs +1 -1
- package/lib/control/drtab/drtab.cjs +67 -8
- package/lib/control/drtab/drtab.controller.cjs +62 -11
- package/lib/control/drtab/drtab.css +1 -1
- package/lib/control/form/form-detail/form-group-panel/form-group-panel.cjs +1 -1
- package/lib/control/form/form-detail/form-item/form-item.cjs +20 -1
- package/lib/control/form/form-detail/form-tab-panel/form-tab-panel.cjs +1 -1
- package/lib/control/form/form-detail/form-tab-panel/form-tab-panel.css +1 -1
- package/lib/control/form/search-form/search-form.cjs +4 -0
- package/lib/control/gantt/gantt.cjs +156 -50
- package/lib/control/gantt/gantt.css +1 -1
- package/lib/control/grid/grid/grid-control.util.cjs +39 -3
- package/lib/control/grid/grid/grid.cjs +86 -73
- package/lib/control/grid/grid/grid.css +1 -1
- package/lib/control/grid/grid-column/grid-field-column/grid-field-column.cjs +21 -1
- package/lib/control/list/list.cjs +23 -5
- package/lib/control/list/list.css +1 -1
- package/lib/control/map/map.cjs +4 -0
- package/lib/control/search-bar/search-groups/search-groups.cjs +2 -2
- package/lib/control/tab-exp-panel/tab-exp-panel.css +1 -1
- package/lib/control/toolbar/toolbar.cjs +3 -0
- package/lib/control/tree/el-tree-util.cjs +70 -0
- package/lib/control/tree/tree.cjs +58 -29
- package/lib/control/tree/tree.css +1 -1
- package/lib/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-field-column/tree-grid-ex-field-column.cjs +17 -1
- package/lib/editor/data-picker/ibiz-picker-embed-view/ibiz-picker-embed-view.cjs +21 -22
- package/lib/editor/data-picker/ibiz-picker-embed-view/ibiz-picker-embed-view.css +1 -1
- package/lib/editor/data-picker/ibiz-picker-select-view/ibiz-picker-select-view.cjs +1 -0
- package/lib/editor/date-range/ibiz-date-range-picker/ibiz-date-range-picker.cjs +3 -1
- package/lib/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.cjs +8 -2
- package/lib/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.css +1 -1
- package/lib/editor/html/wang-editor/wang-editor.cjs +1 -1
- package/lib/editor/markdown/ibiz-markdown-editor/ibiz-markdown-editor.cjs +1 -1
- package/lib/editor/span/span/span.cjs +7 -1
- package/lib/editor/span/span-editor.controller.cjs +10 -0
- package/lib/editor/text-box/ibiz-input-number/ibiz-input-number.cjs +24 -6
- package/lib/editor/text-box/ibiz-input-number/ibiz-input-number.css +1 -1
- package/lib/editor/text-box/input/input.cjs +32 -5
- package/lib/editor/text-box/input/input.css +1 -1
- package/lib/editor/text-box/text-box-editor.controller.cjs +10 -0
- package/lib/editor/upload/use/use-iview-upload.cjs +1 -1
- package/lib/locale/en/index.cjs +27 -2
- package/lib/locale/zh-CN/index.cjs +27 -2
- package/lib/panel-component/auth-sso/auth-sso.cjs +102 -0
- package/lib/panel-component/auth-sso/auth-sso.css +1 -0
- package/lib/panel-component/auth-sso/auth-sso.provider.cjs +23 -0
- package/lib/panel-component/auth-sso/index.cjs +17 -0
- package/lib/panel-component/auth-userinfo/auth-userinfo.css +1 -1
- package/lib/panel-component/coop-pos/coop-pos.cjs +22 -2
- package/lib/panel-component/coop-pos/coop-pos.controller.cjs +91 -0
- package/lib/panel-component/coop-pos/coop-pos.css +1 -1
- package/lib/panel-component/index-actions/index-actions.css +1 -1
- package/lib/panel-component/index.cjs +39 -36
- package/lib/panel-component/nav-breadcrumb/nav-breadcrumb.controller.cjs +7 -30
- package/lib/panel-component/nav-breadcrumb/nav-breadcrumb.service.cjs +1 -1
- package/lib/panel-component/nav-pos-index/nav-pos-index.controller.cjs +7 -2
- package/lib/panel-component/nav-tabs/nav-tabs.controller.cjs +3 -3
- package/lib/panel-component/panel-app-title/index.cjs +4 -0
- package/lib/panel-component/panel-app-title/panel-app-title.cjs +112 -108
- package/lib/panel-component/panel-app-title/panel-app-title.controller.cjs +8 -0
- package/lib/panel-component/panel-app-title/panel-app-title.css +1 -1
- package/lib/panel-component/panel-button-list/panel-button-list.controller.cjs +2 -1
- package/lib/panel-component/panel-index-view-search/panel-index-view-search.css +1 -1
- package/lib/panel-component/searchform-buttons/searchform-buttons.cjs +1 -1
- package/lib/util/app-popover/app-popover-component.cjs +1 -1
- package/lib/util/fullscreen/fullscreen-util.cjs +2 -2
- package/lib/util/notification-util/notification-util.cjs +36 -0
- package/lib/util/notification-util/upload-manager/file-type.cjs +209 -0
- package/lib/util/notification-util/upload-manager/upload-manager.cjs +161 -0
- package/lib/util/notification-util/upload-manager/upload-manager.css +1 -0
- package/lib/util/pagination/use-pagination.cjs +5 -4
- package/lib/view/login-view/login-view.cjs +18 -0
- package/lib/view-engine/edit-view.engine.cjs +14 -0
- package/lib/view-engine/login-view.engine.cjs +1 -0
- package/lib/view-engine/opt-view.engine.cjs +40 -0
- package/lib/view-engine/tab-exp-view.engine.cjs +19 -0
- package/lib/view-engine/tab-search-view.engine.cjs +52 -2
- package/lib/web-app/attach-environment-config.cjs +5 -1
- package/lib/web-app/guard/auth-guard/auth-guard.cjs +26 -19
- package/lib/web-app/guard/auth-guard/dyna-auth-guard.cjs +2 -1
- package/lib/web-app/main.cjs +3 -1
- package/lib/web-app/router/index.cjs +15 -4
- package/package.json +11 -11
- package/dist/ibiz-markdown-editor-B4c6yGAW.js +0 -1
- package/dist/index-VQ3FT6ih.js +0 -4
- package/dist/wang-editor-BUIAd4uJ.js +0 -1
- /package/es/node_modules/.pnpm/{@ibiz-template_core@0.7.35-alpha.1_axios@1.7.7_lodash-es@4.17.21_qs@6.13.0_qx-util@0.4.8_ramda@0.29.1 → @ibiz-template_core@0.7.38-alpha.32_axios@1.7.7_lodash-es@4.17.21_qs@6.13.0_qx-util@0.4.8_ramda@0.29.1}/node_modules/@ibiz-template/core/out/utils/namespace/namespace.mjs +0 -0
- /package/lib/node_modules/.pnpm/{@ibiz-template_core@0.7.35-alpha.1_axios@1.7.7_lodash-es@4.17.21_qs@6.13.0_qx-util@0.4.8_ramda@0.29.1 → @ibiz-template_core@0.7.38-alpha.32_axios@1.7.7_lodash-es@4.17.21_qs@6.13.0_qx-util@0.4.8_ramda@0.29.1}/node_modules/@ibiz-template/core/out/utils/namespace/namespace.cjs +0 -0
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { Ref, PropType } from 'vue';
|
|
2
|
+
import { IUploadManagerParams } from '@ibiz-template/runtime';
|
|
3
|
+
import './upload-manager.scss';
|
|
4
|
+
interface IFile {
|
|
5
|
+
/**
|
|
6
|
+
* 文件
|
|
7
|
+
*
|
|
8
|
+
* @type {File}
|
|
9
|
+
*/
|
|
10
|
+
file: File;
|
|
11
|
+
/**
|
|
12
|
+
* 状态
|
|
13
|
+
*
|
|
14
|
+
* (未上传 | 已上传 | 上传失败)
|
|
15
|
+
* @type {(10 | 20 | 30)}
|
|
16
|
+
*/
|
|
17
|
+
status: 10 | 20 | 30;
|
|
18
|
+
/**
|
|
19
|
+
* 进度
|
|
20
|
+
*
|
|
21
|
+
* @type {number}
|
|
22
|
+
*/
|
|
23
|
+
progress: number;
|
|
24
|
+
/**
|
|
25
|
+
* 状态文本
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
*/
|
|
29
|
+
statusText?: string;
|
|
30
|
+
/**
|
|
31
|
+
* 响应数据
|
|
32
|
+
*
|
|
33
|
+
* @type {IData}
|
|
34
|
+
* @memberof IFile
|
|
35
|
+
*/
|
|
36
|
+
data?: IData;
|
|
37
|
+
}
|
|
38
|
+
export declare const IBizUploadManager: import("vue").DefineComponent<{
|
|
39
|
+
params: {
|
|
40
|
+
type: PropType<IUploadManagerParams>;
|
|
41
|
+
required: true;
|
|
42
|
+
};
|
|
43
|
+
}, {
|
|
44
|
+
ns: import("@ibiz-template/core").Namespace;
|
|
45
|
+
fileList: Ref<IFile[]>;
|
|
46
|
+
uploading: import("vue").ComputedRef<boolean>;
|
|
47
|
+
progress: import("vue").ComputedRef<number>;
|
|
48
|
+
uploadStatus: import("vue").ComputedRef<boolean>;
|
|
49
|
+
showFileList: Ref<boolean>;
|
|
50
|
+
onClose: () => void;
|
|
51
|
+
onChangeShowFileList: () => void;
|
|
52
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
53
|
+
close: () => true;
|
|
54
|
+
uploadComplete: (_data: IData[]) => true;
|
|
55
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
56
|
+
params: {
|
|
57
|
+
type: PropType<IUploadManagerParams>;
|
|
58
|
+
required: true;
|
|
59
|
+
};
|
|
60
|
+
}>> & {
|
|
61
|
+
onClose?: (() => any) | undefined;
|
|
62
|
+
onUploadComplete?: ((_data: IData[]) => any) | undefined;
|
|
63
|
+
}, {}, {}>;
|
|
64
|
+
export {};
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
import { defineComponent, ref, computed, watch, onMounted, createVNode, resolveComponent } from 'vue';
|
|
2
|
+
import { useNamespace } from '@ibiz-template/vue3-util';
|
|
3
|
+
import { getCookie } from 'qx-util';
|
|
4
|
+
import { CoreConst } from '@ibiz-template/core';
|
|
5
|
+
import { getFileSvgByType } from './file-type.mjs';
|
|
6
|
+
import './upload-manager.css';
|
|
7
|
+
|
|
8
|
+
"use strict";
|
|
9
|
+
const IBizUploadManager = /* @__PURE__ */ defineComponent({
|
|
10
|
+
name: "IBizUploadManager",
|
|
11
|
+
props: {
|
|
12
|
+
params: {
|
|
13
|
+
type: Object,
|
|
14
|
+
required: true
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
emits: {
|
|
18
|
+
close: () => true,
|
|
19
|
+
uploadComplete: (_data) => true
|
|
20
|
+
},
|
|
21
|
+
setup(props, {
|
|
22
|
+
emit
|
|
23
|
+
}) {
|
|
24
|
+
const ns = useNamespace("upload-manager");
|
|
25
|
+
const fileList = ref([]);
|
|
26
|
+
const showFileList = ref(true);
|
|
27
|
+
for (let i = 0; i < props.params.files.length; i++) {
|
|
28
|
+
fileList.value.push({
|
|
29
|
+
file: props.params.files[i],
|
|
30
|
+
status: 10,
|
|
31
|
+
progress: 0
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
const uploading = computed(() => {
|
|
35
|
+
return fileList.value.findIndex((item) => item.status === 10) !== -1;
|
|
36
|
+
});
|
|
37
|
+
const uploadStatus = computed(() => {
|
|
38
|
+
return fileList.value.findIndex((item) => item.status === 30) === -1;
|
|
39
|
+
});
|
|
40
|
+
const progress = computed(() => {
|
|
41
|
+
const uploaded = fileList.value.filter((item) => item.status !== 10);
|
|
42
|
+
return Math.floor(uploaded.length / fileList.value.length * 100);
|
|
43
|
+
});
|
|
44
|
+
watch(() => uploading.value, () => {
|
|
45
|
+
if (!uploading.value) {
|
|
46
|
+
const data = fileList.value.filter((item) => item.status === 20 && !!item.data).map((item) => item.data);
|
|
47
|
+
emit("uploadComplete", data);
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
const onClose = () => {
|
|
51
|
+
emit("close");
|
|
52
|
+
};
|
|
53
|
+
const onChangeShowFileList = () => {
|
|
54
|
+
showFileList.value = !showFileList.value;
|
|
55
|
+
};
|
|
56
|
+
const uploadFile = async (item) => {
|
|
57
|
+
const data = new FormData();
|
|
58
|
+
data.append("file", item.file);
|
|
59
|
+
const headers = {
|
|
60
|
+
["".concat(ibiz.env.tokenHeader, "Authorization")]: "".concat(ibiz.env.tokenPrefix, "Bearer ").concat(getCookie(CoreConst.TOKEN)),
|
|
61
|
+
...props.params.headers
|
|
62
|
+
};
|
|
63
|
+
const res = await ibiz.net.axios({
|
|
64
|
+
url: props.params.uploadUrl,
|
|
65
|
+
method: "post",
|
|
66
|
+
headers,
|
|
67
|
+
data,
|
|
68
|
+
onUploadProgress: (ProgressEvent) => {
|
|
69
|
+
const percentCompleted = Math.round(ProgressEvent.loaded * 100 / (ProgressEvent.total || 1));
|
|
70
|
+
item.progress = percentCompleted;
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
return res;
|
|
74
|
+
};
|
|
75
|
+
onMounted(async () => {
|
|
76
|
+
for (let i = 0; i < fileList.value.length; i++) {
|
|
77
|
+
const item = fileList.value[i];
|
|
78
|
+
uploadFile(item).then((res) => {
|
|
79
|
+
item.data = res.data;
|
|
80
|
+
item.status = res.status === 200 ? 20 : 30;
|
|
81
|
+
item.statusText = res.statusText;
|
|
82
|
+
}).catch((error) => {
|
|
83
|
+
item.status = 30;
|
|
84
|
+
item.statusText = error.message ? error.message : ibiz.i18n.t("util.uploadManager.failed");
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
});
|
|
88
|
+
return {
|
|
89
|
+
ns,
|
|
90
|
+
fileList,
|
|
91
|
+
uploading,
|
|
92
|
+
progress,
|
|
93
|
+
uploadStatus,
|
|
94
|
+
showFileList,
|
|
95
|
+
onClose,
|
|
96
|
+
onChangeShowFileList
|
|
97
|
+
};
|
|
98
|
+
},
|
|
99
|
+
render() {
|
|
100
|
+
return createVNode("div", {
|
|
101
|
+
"class": this.ns.b()
|
|
102
|
+
}, [createVNode("div", {
|
|
103
|
+
"class": this.ns.e("header")
|
|
104
|
+
}, [createVNode("div", {
|
|
105
|
+
"class": this.ns.em("header", "loading")
|
|
106
|
+
}, [this.uploading ? createVNode(resolveComponent("el-progress"), {
|
|
107
|
+
"type": "circle",
|
|
108
|
+
"percentage": this.progress,
|
|
109
|
+
"showText": false
|
|
110
|
+
}, null) : this.uploadStatus ? createVNode("ion-icon", {
|
|
111
|
+
"name": "checkmark-circle",
|
|
112
|
+
"class": "icon success"
|
|
113
|
+
}, null) : createVNode("ion-icon", {
|
|
114
|
+
"name": "close-circle",
|
|
115
|
+
"class": "icon danger"
|
|
116
|
+
}, null)]), createVNode("div", {
|
|
117
|
+
"class": this.ns.em("header", "title")
|
|
118
|
+
}, [createVNode("span", {
|
|
119
|
+
"class": "caption"
|
|
120
|
+
}, [ibiz.i18n.t("util.uploadManager.title")]), createVNode("span", {
|
|
121
|
+
"class": "progress"
|
|
122
|
+
}, ["".concat(this.fileList.filter((item) => item.status === 20).length, " / ").concat(this.fileList.length)])]), createVNode("div", {
|
|
123
|
+
"class": this.ns.em("header", "actions")
|
|
124
|
+
}, [createVNode("ion-icon", {
|
|
125
|
+
"name": this.showFileList ? "chevron-down-outline" : "chevron-up-outline",
|
|
126
|
+
"class": "icon down-up",
|
|
127
|
+
"onClick": this.onChangeShowFileList
|
|
128
|
+
}, null), createVNode("ion-icon", {
|
|
129
|
+
"name": "close-outline",
|
|
130
|
+
"class": "icon close",
|
|
131
|
+
"onClick": this.onClose
|
|
132
|
+
}, null)])]), this.showFileList && createVNode("div", {
|
|
133
|
+
"class": this.ns.e("content")
|
|
134
|
+
}, [this.fileList.map((item) => {
|
|
135
|
+
return createVNode("div", {
|
|
136
|
+
"class": this.ns.e("file-item")
|
|
137
|
+
}, [createVNode("div", {
|
|
138
|
+
"class": this.ns.em("file-item", "icon")
|
|
139
|
+
}, [getFileSvgByType(item.file.type)]), createVNode("div", {
|
|
140
|
+
"class": this.ns.em("file-item", "name")
|
|
141
|
+
}, [item.file.name]), createVNode("div", {
|
|
142
|
+
"class": this.ns.em("file-item", "status")
|
|
143
|
+
}, [item.status === 10 && createVNode(resolveComponent("el-progress"), {
|
|
144
|
+
"type": "circle",
|
|
145
|
+
"percentage": item.progress
|
|
146
|
+
}, null), item.status === 20 && createVNode("ion-icon", {
|
|
147
|
+
"name": "checkmark-circle",
|
|
148
|
+
"class": "icon success"
|
|
149
|
+
}, null), item.status === 30 && createVNode("ion-icon", {
|
|
150
|
+
"name": "close-circle",
|
|
151
|
+
"class": "icon danger"
|
|
152
|
+
}, null)]), item.status === 30 && createVNode("div", {
|
|
153
|
+
"class": this.ns.em("file-item", "status-text")
|
|
154
|
+
}, [item.statusText])]);
|
|
155
|
+
})])]);
|
|
156
|
+
}
|
|
157
|
+
});
|
|
158
|
+
|
|
159
|
+
export { IBizUploadManager };
|
|
@@ -18,7 +18,7 @@ function usePagination(c) {
|
|
|
18
18
|
return;
|
|
19
19
|
}
|
|
20
20
|
c.state.curPage = page;
|
|
21
|
-
if (c.
|
|
21
|
+
if (c.runMode === "DESIGN") {
|
|
22
22
|
initGridItems();
|
|
23
23
|
return;
|
|
24
24
|
}
|
|
@@ -29,13 +29,14 @@ function usePagination(c) {
|
|
|
29
29
|
return;
|
|
30
30
|
}
|
|
31
31
|
c.state.size = size;
|
|
32
|
-
if (c.
|
|
32
|
+
if (c.runMode === "DESIGN") {
|
|
33
33
|
initGridItems();
|
|
34
34
|
return;
|
|
35
35
|
}
|
|
36
|
-
if (c.state.curPage
|
|
37
|
-
c.
|
|
36
|
+
if (c.state.curPage !== 1) {
|
|
37
|
+
c.state.curPage = 1;
|
|
38
38
|
}
|
|
39
|
+
c.load();
|
|
39
40
|
}
|
|
40
41
|
function onPageRefresh() {
|
|
41
42
|
c.load();
|
|
@@ -54,6 +54,21 @@ const LoginView = /* @__PURE__ */ defineComponent({
|
|
|
54
54
|
}
|
|
55
55
|
};
|
|
56
56
|
getTitle();
|
|
57
|
+
const platform = window.navigator.userAgent.toUpperCase();
|
|
58
|
+
const thirdAuth = async () => {
|
|
59
|
+
let result;
|
|
60
|
+
if (platform.indexOf("DINGTALK") !== -1) {
|
|
61
|
+
result = await ibiz.thirdAuth.auth("DINGTALK", "EMBED");
|
|
62
|
+
} else if (platform.indexOf("WXWORK") !== -1) {
|
|
63
|
+
result = await ibiz.thirdAuth.auth("WXWORK", "EMBED");
|
|
64
|
+
}
|
|
65
|
+
if (result && result.ok) {
|
|
66
|
+
window.location.hash = ru;
|
|
67
|
+
window.history.pushState({}, "");
|
|
68
|
+
window.location.reload();
|
|
69
|
+
}
|
|
70
|
+
};
|
|
71
|
+
thirdAuth();
|
|
57
72
|
ibiz.appData = void 0;
|
|
58
73
|
ibiz.orgData = void 0;
|
|
59
74
|
const onClick = async () => {
|
|
@@ -76,6 +91,9 @@ const LoginView = /* @__PURE__ */ defineComponent({
|
|
|
76
91
|
}
|
|
77
92
|
};
|
|
78
93
|
onMounted(async () => {
|
|
94
|
+
if (platform.indexOf("DINGTALK") !== -1 || platform.indexOf("WXWORK") !== -1) {
|
|
95
|
+
return;
|
|
96
|
+
}
|
|
79
97
|
const search = qs.parse(window.location.search.replace("?", ""));
|
|
80
98
|
if (search.isAnonymous === "true") {
|
|
81
99
|
const bol = await ibiz.auth.anonymousLogin();
|
|
@@ -149,6 +149,20 @@ class EditViewEngine extends ViewEngineBase {
|
|
|
149
149
|
this.formDataStateChange(event);
|
|
150
150
|
evt.emit("onDataChange", { ...event, actionType: "REMOVE" });
|
|
151
151
|
});
|
|
152
|
+
const appDe = await ibiz.hub.getAppDataEntity(
|
|
153
|
+
this.view.model.appDataEntityId,
|
|
154
|
+
this.view.model.appId
|
|
155
|
+
);
|
|
156
|
+
this.form.evt.on("onFormDataChange", (event) => {
|
|
157
|
+
const { name, value } = event;
|
|
158
|
+
if (name === appDe.formTypeAppDEFieldId && this.view.model.multiFormMode === 1) {
|
|
159
|
+
this.view.redrawView({
|
|
160
|
+
context: this.view.context,
|
|
161
|
+
params: { srfdatatype: value, [name]: value },
|
|
162
|
+
isReloadModel: true
|
|
163
|
+
});
|
|
164
|
+
}
|
|
165
|
+
});
|
|
152
166
|
if (!this.view.state.noLoadDefault && model.loadDefault) {
|
|
153
167
|
this.load();
|
|
154
168
|
}
|
|
@@ -96,6 +96,7 @@ class LoginViewEngine extends ViewEngineBase {
|
|
|
96
96
|
this.view.evt.emit("onAfterLogin", { ok: bol, panelDataParent });
|
|
97
97
|
if (bol === true) {
|
|
98
98
|
window.location.hash = this.route.query.ru || "/";
|
|
99
|
+
window.history.pushState({}, "");
|
|
99
100
|
window.location.reload();
|
|
100
101
|
}
|
|
101
102
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ViewEngineBase, SysUIActionTag, ViewCallTag } from '@ibiz-template/runtime';
|
|
1
|
+
import { ViewEngineBase, getControl, getControlsByView, SysUIActionTag, ViewCallTag } from '@ibiz-template/runtime';
|
|
2
2
|
|
|
3
3
|
"use strict";
|
|
4
4
|
class OptViewEngine extends ViewEngineBase {
|
|
@@ -11,6 +11,27 @@ class OptViewEngine extends ViewEngineBase {
|
|
|
11
11
|
get form() {
|
|
12
12
|
return this.view.getController("form");
|
|
13
13
|
}
|
|
14
|
+
init() {
|
|
15
|
+
super.init();
|
|
16
|
+
if (this.view.model.multiFormMode === 1 && this.view.params.srfdatatype) {
|
|
17
|
+
const model = getControl(
|
|
18
|
+
this.view.model,
|
|
19
|
+
"_form_".concat(this.view.params.srfdatatype)
|
|
20
|
+
);
|
|
21
|
+
if (model) {
|
|
22
|
+
const controls = getControlsByView(this.view.model).filter((item) => {
|
|
23
|
+
return item.controlType !== "FORM";
|
|
24
|
+
});
|
|
25
|
+
model.name = "form";
|
|
26
|
+
controls.push(model);
|
|
27
|
+
if (this.view.model.viewLayoutPanel) {
|
|
28
|
+
this.view.model.viewLayoutPanel.controls = controls;
|
|
29
|
+
} else {
|
|
30
|
+
this.view.model.controls = controls;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
14
35
|
/**
|
|
15
36
|
* 视图created生命周期执行逻辑
|
|
16
37
|
*
|
|
@@ -64,6 +85,25 @@ class OptViewEngine extends ViewEngineBase {
|
|
|
64
85
|
this.form.evt.on("onSaveSuccess", (event) => {
|
|
65
86
|
formDataStateChange(event);
|
|
66
87
|
});
|
|
88
|
+
const appDe = await ibiz.hub.getAppDataEntity(
|
|
89
|
+
this.view.model.appDataEntityId,
|
|
90
|
+
this.view.model.appId
|
|
91
|
+
);
|
|
92
|
+
this.form.evt.on("onFormDataChange", (event) => {
|
|
93
|
+
const { name, value } = event;
|
|
94
|
+
if (name === appDe.formTypeAppDEFieldId && this.view.model.multiFormMode === 1) {
|
|
95
|
+
this.view.redrawView({
|
|
96
|
+
context: this.view.context,
|
|
97
|
+
params: {
|
|
98
|
+
...this.view.params,
|
|
99
|
+
srfdatatype: value,
|
|
100
|
+
srfdefdata: event.data[0],
|
|
101
|
+
[name]: value
|
|
102
|
+
},
|
|
103
|
+
isReloadModel: true
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
});
|
|
67
107
|
if (!this.view.state.noLoadDefault && model.loadDefault) {
|
|
68
108
|
this.load();
|
|
69
109
|
}
|
|
@@ -27,6 +27,15 @@ export declare class TabExpViewEngine extends ViewEngineBase {
|
|
|
27
27
|
* @memberof TabExpViewEngine
|
|
28
28
|
*/
|
|
29
29
|
onCreated(): Promise<void>;
|
|
30
|
+
/**
|
|
31
|
+
* 分页导航视图刷新
|
|
32
|
+
*
|
|
33
|
+
* @author tony001
|
|
34
|
+
* @date 2024-10-21 11:10:47
|
|
35
|
+
* @return {*} {Promise<void>}
|
|
36
|
+
*/
|
|
37
|
+
refresh(): Promise<void>;
|
|
38
|
+
call(key: string, args: any): Promise<any>;
|
|
30
39
|
onMounted(): Promise<void>;
|
|
31
40
|
loadEntityData(): Promise<void>;
|
|
32
41
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ModelError } from '@ibiz-template/core';
|
|
2
|
-
import { ViewEngineBase, calcDeCodeNameById, getControl } from '@ibiz-template/runtime';
|
|
2
|
+
import { ViewEngineBase, SysUIActionTag, calcDeCodeNameById, getControl } from '@ibiz-template/runtime';
|
|
3
3
|
|
|
4
4
|
"use strict";
|
|
5
5
|
class TabExpViewEngine extends ViewEngineBase {
|
|
@@ -33,6 +33,25 @@ class TabExpViewEngine extends ViewEngineBase {
|
|
|
33
33
|
)) == null ? void 0 : _a.value;
|
|
34
34
|
this.view.slotProps.tabexppanel.defaultTabName = this.view.state.srfnav || srfdefaultnav;
|
|
35
35
|
}
|
|
36
|
+
/**
|
|
37
|
+
* 分页导航视图刷新
|
|
38
|
+
*
|
|
39
|
+
* @author tony001
|
|
40
|
+
* @date 2024-10-21 11:10:47
|
|
41
|
+
* @return {*} {Promise<void>}
|
|
42
|
+
*/
|
|
43
|
+
async refresh() {
|
|
44
|
+
await this.loadEntityData();
|
|
45
|
+
this.tabExpPanel.refresh();
|
|
46
|
+
}
|
|
47
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/explicit-module-boundary-types
|
|
48
|
+
async call(key, args) {
|
|
49
|
+
if (key === SysUIActionTag.REFRESH) {
|
|
50
|
+
await this.refresh();
|
|
51
|
+
return null;
|
|
52
|
+
}
|
|
53
|
+
return super.call(key, args);
|
|
54
|
+
}
|
|
36
55
|
async onMounted() {
|
|
37
56
|
await super.onMounted();
|
|
38
57
|
await this.loadEntityData();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ISearchBarController, ISearchFormController, ITabExpPanelController, ITabSearchViewEvent, ITabSearchViewState, ViewController } from '@ibiz-template/runtime';
|
|
2
|
-
import { IAppDETabSearchView } from '@ibiz/model-core';
|
|
2
|
+
import { IAppDETabSearchView, IDETabViewPanel } from '@ibiz/model-core';
|
|
3
3
|
import { TabExpViewEngine } from './tab-exp-view.engine';
|
|
4
4
|
/**
|
|
5
5
|
* 编辑视图3(分页关系)
|
|
@@ -45,6 +45,14 @@ export declare class TabSearchViewEngine extends TabExpViewEngine {
|
|
|
45
45
|
protected preprocessTabExpModelLayout(): void;
|
|
46
46
|
onCreated(): Promise<void>;
|
|
47
47
|
onMounted(): Promise<void>;
|
|
48
|
+
/**
|
|
49
|
+
* 给快捷搜索赋默认提示值
|
|
50
|
+
* @author ljx
|
|
51
|
+
* @date 2024-11-12 10:56:25
|
|
52
|
+
* @return {*} {Promise<void>}
|
|
53
|
+
* @memberof TabSearchViewEngine
|
|
54
|
+
*/
|
|
55
|
+
onQuickSearchPlaceHolder(tab: IDETabViewPanel): Promise<void>;
|
|
48
56
|
call(key: string, args: any): Promise<IData | null | undefined>;
|
|
49
57
|
/**
|
|
50
58
|
* 获取搜索相关的查询参数
|
|
@@ -61,10 +61,60 @@ class TabSearchViewEngine extends TabExpViewEngine {
|
|
|
61
61
|
});
|
|
62
62
|
}
|
|
63
63
|
if (this.tabExpPanel) {
|
|
64
|
-
this.tabExpPanel.evt.on(
|
|
65
|
-
|
|
64
|
+
this.tabExpPanel.evt.on(
|
|
65
|
+
"onTabChange",
|
|
66
|
+
({ tab }) => {
|
|
67
|
+
this.calcViewParams();
|
|
68
|
+
this.onQuickSearchPlaceHolder(tab);
|
|
69
|
+
}
|
|
70
|
+
);
|
|
71
|
+
const { activeTabViewPanelModel } = this.tabExpPanel;
|
|
72
|
+
if (activeTabViewPanelModel) {
|
|
73
|
+
this.onQuickSearchPlaceHolder(activeTabViewPanelModel);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* 给快捷搜索赋默认提示值
|
|
79
|
+
* @author ljx
|
|
80
|
+
* @date 2024-11-12 10:56:25
|
|
81
|
+
* @return {*} {Promise<void>}
|
|
82
|
+
* @memberof TabSearchViewEngine
|
|
83
|
+
*/
|
|
84
|
+
async onQuickSearchPlaceHolder(tab) {
|
|
85
|
+
let { caption } = tab;
|
|
86
|
+
const viewConfig = await ibiz.hub.config.view.get(
|
|
87
|
+
tab.embeddedAppDEViewId || ""
|
|
88
|
+
);
|
|
89
|
+
const appDataEntity = await ibiz.hub.getAppDataEntity(
|
|
90
|
+
viewConfig.appDataEntityId,
|
|
91
|
+
viewConfig.appId
|
|
92
|
+
);
|
|
93
|
+
if (appDataEntity) {
|
|
94
|
+
const searchFields = appDataEntity.appDEFields.filter((field) => {
|
|
95
|
+
return field.enableQuickSearch;
|
|
66
96
|
});
|
|
97
|
+
if (searchFields.length) {
|
|
98
|
+
const placeHolders = [];
|
|
99
|
+
searchFields.forEach((searchField) => {
|
|
100
|
+
if (searchField.lnlanguageRes && searchField.lnlanguageRes.lanResTag) {
|
|
101
|
+
placeHolders.push(
|
|
102
|
+
ibiz.i18n.t(
|
|
103
|
+
searchField.lnlanguageRes.lanResTag,
|
|
104
|
+
searchField.logicName
|
|
105
|
+
)
|
|
106
|
+
);
|
|
107
|
+
} else if (searchField.logicName) {
|
|
108
|
+
placeHolders.push(searchField.logicName);
|
|
109
|
+
}
|
|
110
|
+
});
|
|
111
|
+
if (placeHolders.length > 0) {
|
|
112
|
+
caption = placeHolders.join("\u3001");
|
|
113
|
+
}
|
|
114
|
+
}
|
|
67
115
|
}
|
|
116
|
+
this.searchBar.placeHolder = caption || "";
|
|
117
|
+
this.searchBar.state.quickSearchPlaceHolder = caption || "";
|
|
68
118
|
}
|
|
69
119
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/explicit-module-boundary-types
|
|
70
120
|
async call(key, args) {
|
|
@@ -15,7 +15,11 @@ async function attachEnvironmentConfig() {
|
|
|
15
15
|
Object.keys(ibiz.env).forEach((key) => {
|
|
16
16
|
const key2 = envMap.has(key) ? envMap.get(key) : key;
|
|
17
17
|
if (env[key2] != null) {
|
|
18
|
-
|
|
18
|
+
if (key2 === "customParams") {
|
|
19
|
+
ibiz.env[key] = JSON.parse(env[key2]);
|
|
20
|
+
} else {
|
|
21
|
+
ibiz.env[key] = env[key2];
|
|
22
|
+
}
|
|
19
23
|
}
|
|
20
24
|
});
|
|
21
25
|
if (query) {
|
|
@@ -21,35 +21,42 @@ export declare class AuthGuard {
|
|
|
21
21
|
});
|
|
22
22
|
/**
|
|
23
23
|
* 总的入口校验
|
|
24
|
-
*
|
|
25
|
-
* @
|
|
26
|
-
* @
|
|
24
|
+
*
|
|
25
|
+
* @author tony001
|
|
26
|
+
* @date 2024-11-12 14:11:32
|
|
27
|
+
* @param {IParams} context
|
|
28
|
+
* @param {boolean} [notLogin=true]
|
|
27
29
|
* @return {*} {Promise<boolean>}
|
|
28
30
|
*/
|
|
29
|
-
verify(notLogin?: boolean): Promise<boolean>;
|
|
31
|
+
verify(context: IParams, notLogin?: boolean): Promise<boolean>;
|
|
30
32
|
/**
|
|
31
33
|
* 匿名登录相关校验逻辑,不通过会抛异常
|
|
32
|
-
*
|
|
33
|
-
* @
|
|
34
|
+
*
|
|
35
|
+
* @author tony001
|
|
36
|
+
* @date 2024-11-12 14:11:27
|
|
37
|
+
* @param {IParams} context
|
|
34
38
|
* @return {*} {Promise<void>}
|
|
35
39
|
*/
|
|
36
|
-
anonymousValidate(): Promise<void>;
|
|
40
|
+
anonymousValidate(context: IParams): Promise<void>;
|
|
37
41
|
/**
|
|
38
42
|
* 应用参数初始化
|
|
39
43
|
*
|
|
40
|
-
* @author
|
|
41
|
-
* @date
|
|
44
|
+
* @author tony001
|
|
45
|
+
* @date 2024-11-12 14:11:06
|
|
46
|
+
* @param {IParams} context
|
|
42
47
|
* @return {*} {Promise<void>}
|
|
43
48
|
*/
|
|
44
|
-
appInit(): Promise<void>;
|
|
49
|
+
appInit(context: IParams): Promise<void>;
|
|
45
50
|
/**
|
|
46
51
|
* 初始化模型
|
|
47
|
-
*
|
|
48
|
-
* @
|
|
49
|
-
* @
|
|
52
|
+
*
|
|
53
|
+
* @author tony001
|
|
54
|
+
* @date 2024-11-12 14:11:43
|
|
55
|
+
* @param {IParams} context
|
|
56
|
+
* @param {boolean} [_permission=true]
|
|
50
57
|
* @return {*} {Promise<void>}
|
|
51
58
|
*/
|
|
52
|
-
initModel(_permission?: boolean): Promise<void>;
|
|
59
|
+
initModel(context: IParams, _permission?: boolean): Promise<void>;
|
|
53
60
|
/**
|
|
54
61
|
* 加载应用数据
|
|
55
62
|
*
|