@ibiz-template/runtime 0.7.11 → 0.7.12
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/index.esm.js +1467 -415
- package/dist/index.system.min.js +1 -1
- package/out/app-hub.d.ts.map +1 -1
- package/out/app-hub.js +4 -4
- package/out/command/app/app-func/app-func.js +3 -3
- package/out/command/app/open-app-view/open-app-view.d.ts.map +1 -1
- package/out/command/app/open-app-view/open-app-view.js +6 -4
- package/out/constant/sys-uiaction-tag.d.ts +5 -1
- package/out/constant/sys-uiaction-tag.d.ts.map +1 -1
- package/out/constant/sys-uiaction-tag.js +4 -0
- package/out/controller/common/editor/code-list-editor.controller.js +1 -1
- package/out/controller/common/view/view.controller.d.ts +7 -0
- package/out/controller/common/view/view.controller.d.ts.map +1 -1
- package/out/controller/common/view/view.controller.js +18 -1
- package/out/controller/control/app-menu/app-menu.controller.js +1 -1
- package/out/controller/control/app-menu-icon-view/app-menu-icon-view.controller.js +1 -1
- package/out/controller/control/calendar/calendar.service.js +2 -2
- package/out/controller/control/chart/chart.controller.js +2 -2
- package/out/controller/control/chart/generator/bar-series-generator.js +2 -2
- package/out/controller/control/chart/generator/chart-options-generator.js +2 -2
- package/out/controller/control/chart/generator/line-series-generator.js +2 -2
- package/out/controller/control/chart/generator/scatter-series-generator.js +2 -2
- package/out/controller/control/dashboard/custom-dashboard.controller.d.ts +2 -2
- package/out/controller/control/dashboard/custom-dashboard.controller.d.ts.map +1 -1
- package/out/controller/control/data-view/data-view.controller.js +2 -2
- package/out/controller/control/exp-bar/tree-exp-bar.controller.js +1 -1
- package/out/controller/control/form/form-detail/form-mdctrl/form-mdctrl-md.controller.js +1 -1
- package/out/controller/control/form/form-detail/form-mdctrl/form-mdctrl-repeater.controller.js +1 -1
- package/out/controller/control/gantt/gantt.controller.js +2 -2
- package/out/controller/control/gantt/gantt.service.js +1 -1
- package/out/controller/control/grid/grid/grid.controller.js +4 -4
- package/out/controller/control/grid/grid-column/grid-field-column/grid-field-column.controller.js +1 -1
- package/out/controller/control/kanban/kanban.controller.js +2 -2
- package/out/controller/control/md-ctrl/md-ctrl.controller.js +2 -2
- package/out/controller/control/report-panel/generator/generator-factory.js +1 -1
- package/out/controller/control/search-bar/search-bar-filter-items.controller.js +1 -1
- package/out/controller/control/toolbar/toolbar.controllerr.js +1 -1
- package/out/controller/control/tree/tree.controller.js +2 -2
- package/out/controller/control/tree/tree.service.js +1 -1
- package/out/controller/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-field-column/tree-grid-ex-node-column.controller.js +2 -2
- package/out/controller/control/tree-grid-ex/tree-grid-ex.controller.js +2 -2
- package/out/controller/utils/data-file-util/data-file-util.js +1 -1
- package/out/controller/utils/value-default/value-default.js +2 -2
- package/out/controller/utils/view-msg/view-msg-controller.d.ts.map +1 -1
- package/out/controller/utils/view-msg/view-msg-controller.js +2 -2
- package/out/de-logic/de-logic-link/de-logic-link-group-cond/de-logic-link-group-cond.d.ts.map +1 -1
- package/out/de-logic/de-logic-link/de-logic-link-group-cond/de-logic-link-group-cond.js +6 -3
- package/out/de-logic/de-logic-link/de-logic-link-single-cond/de-logic-link-single-cond.d.ts.map +1 -1
- package/out/de-logic/de-logic-link/de-logic-link-single-cond/de-logic-link-single-cond.js +10 -4
- package/out/de-logic/de-logic-node/append-param-node/append-param-node.d.ts.map +1 -1
- package/out/de-logic/de-logic-node/append-param-node/append-param-node.js +4 -2
- package/out/de-logic/de-logic-node/bind-param-node/bind-param-node.d.ts.map +1 -1
- package/out/de-logic/de-logic-node/bind-param-node/bind-param-node.js +5 -2
- package/out/de-logic/de-logic-node/copy-param-node/copy-param-node.d.ts.map +1 -1
- package/out/de-logic/de-logic-node/copy-param-node/copy-param-node.js +5 -2
- package/out/de-logic/de-logic-node/data-set-node/data-set-node.d.ts.map +1 -1
- package/out/de-logic/de-logic-node/data-set-node/data-set-node.js +6 -1
- package/out/de-logic/de-logic-node/de-action-node/de-action-node.d.ts.map +1 -1
- package/out/de-logic/de-logic-node/de-action-node/de-action-node.js +8 -3
- package/out/de-logic/de-logic-node/end-node/end-node.d.ts.map +1 -1
- package/out/de-logic/de-logic-node/end-node/end-node.js +7 -2
- package/out/de-logic/de-logic-node/prepare-param-node/prepare-param-node.d.ts.map +1 -1
- package/out/de-logic/de-logic-node/prepare-param-node/prepare-param-node.js +8 -2
- package/out/de-logic/de-logic-node/renew-param-node/renew-param-node.d.ts.map +1 -1
- package/out/de-logic/de-logic-node/renew-param-node/renew-param-node.js +5 -2
- package/out/de-logic/de-logic-node/reset-param-node/reset-param-node.d.ts.map +1 -1
- package/out/de-logic/de-logic-node/reset-param-node/reset-param-node.js +5 -2
- package/out/de-logic/de-logic-node/sort-param-node/sort-param-node.d.ts.map +1 -1
- package/out/de-logic/de-logic-node/sort-param-node/sort-param-node.js +7 -2
- package/out/de-logic/de-logic-node/start-node/start-node.d.ts.map +1 -1
- package/out/de-logic/de-logic-node/start-node/start-node.js +3 -1
- package/out/de-logic/de-logic-node/throw-exception-node/throw-exception-node.d.ts.map +1 -1
- package/out/de-logic/de-logic-node/throw-exception-node/throw-exception-node.js +5 -1
- package/out/de-logic/de-logic-param/de-logic-param.d.ts.map +1 -1
- package/out/de-logic/de-logic-param/de-logic-param.js +10 -10
- package/out/de-logic/de-logic.d.ts.map +1 -1
- package/out/de-logic/de-logic.js +6 -4
- package/out/de-logic/index.d.ts.map +1 -1
- package/out/de-logic/index.js +12 -3
- package/out/de-logic/utils/handle-src-val.d.ts.map +1 -1
- package/out/de-logic/utils/handle-src-val.js +7 -3
- package/out/engine/engine-factory.d.ts.map +1 -1
- package/out/engine/engine-factory.js +1 -1
- package/out/engine/md-view.engine.d.ts.map +1 -1
- package/out/engine/md-view.engine.js +3 -3
- package/out/engine/view-base.engine.d.ts +1 -0
- package/out/engine/view-base.engine.d.ts.map +1 -1
- package/out/engine/view-base.engine.js +42 -5
- package/out/global/global-util/global-util.d.ts +9 -1
- package/out/global/global-util/global-util.d.ts.map +1 -1
- package/out/global/global-util/global-util.js +11 -3
- package/out/hub/config/app-view-config-service.js +2 -2
- package/out/interface/controller/state/view/i-view.state.d.ts +7 -0
- package/out/interface/controller/state/view/i-view.state.d.ts.map +1 -1
- package/out/interface/service/service/i-auth.service.d.ts +1 -1
- package/out/interface/service/service/i-auth.service.d.ts.map +1 -1
- package/out/interface/util/i-short-cut/i-short-cut.d.ts +58 -0
- package/out/interface/util/i-short-cut/i-short-cut.d.ts.map +1 -0
- package/out/interface/util/i-short-cut/i-short-cut.js +1 -0
- package/out/interface/util/index.d.ts +1 -0
- package/out/interface/util/index.d.ts.map +1 -1
- package/out/logic-scheduler/executor/app-de-ui-logic-executor.d.ts.map +1 -1
- package/out/logic-scheduler/executor/app-de-ui-logic-executor.js +1 -1
- package/out/logic-scheduler/executor/app-ui-action-executor.js +1 -1
- package/out/logic-scheduler/executor/app-ui-logic-executor.d.ts.map +1 -1
- package/out/logic-scheduler/executor/app-ui-logic-executor.js +24 -16
- package/out/logic-scheduler/executor/logic-executor-factory.d.ts.map +1 -1
- package/out/logic-scheduler/executor/logic-executor-factory.js +3 -1
- package/out/logic-scheduler/executor/logic-executor.d.ts.map +1 -1
- package/out/logic-scheduler/executor/logic-executor.js +1 -1
- package/out/logic-scheduler/trigger/item-dyna-logic-trigger.js +1 -1
- package/out/logic-scheduler/trigger/logic-trigger-factory.d.ts.map +1 -1
- package/out/logic-scheduler/trigger/logic-trigger-factory.js +3 -1
- package/out/logic-scheduler/trigger/logic-trigger.d.ts.map +1 -1
- package/out/logic-scheduler/trigger/logic-trigger.js +3 -1
- package/out/logic-scheduler/trigger/timer-trigger.d.ts.map +1 -1
- package/out/logic-scheduler/trigger/timer-trigger.js +2 -2
- package/out/model/utils/util.d.ts.map +1 -1
- package/out/model/utils/util.js +3 -3
- package/out/model/view/view.d.ts.map +1 -1
- package/out/model/view/view.js +3 -1
- package/out/platform/provider/platform-provider-base.d.ts.map +1 -1
- package/out/platform/provider/platform-provider-base.js +4 -4
- package/out/register/helper/app-counter-register.d.ts.map +1 -1
- package/out/register/helper/app-counter-register.js +7 -3
- package/out/register/helper/app-menu-item-register.d.ts.map +1 -1
- package/out/register/helper/app-menu-item-register.js +3 -1
- package/out/register/helper/async-action-register.d.ts.map +1 -1
- package/out/register/helper/async-action-register.js +3 -1
- package/out/register/helper/common-register.d.ts.map +1 -1
- package/out/register/helper/common-register.js +3 -1
- package/out/register/helper/control-register.d.ts.map +1 -1
- package/out/register/helper/control-register.js +13 -4
- package/out/register/helper/de-method-register.d.ts.map +1 -1
- package/out/register/helper/de-method-register.js +6 -2
- package/out/register/helper/editor-register.d.ts.map +1 -1
- package/out/register/helper/editor-register.js +14 -4
- package/out/register/helper/form-detail-register.d.ts.map +1 -1
- package/out/register/helper/form-detail-register.js +9 -3
- package/out/register/helper/grid-column-register.d.ts.map +1 -1
- package/out/register/helper/grid-column-register.js +9 -3
- package/out/register/helper/internal-message-register.d.ts.map +1 -1
- package/out/register/helper/internal-message-register.js +3 -1
- package/out/register/helper/panel-item-register.d.ts.map +1 -1
- package/out/register/helper/panel-item-register.js +17 -5
- package/out/register/helper/portlet-register.d.ts.map +1 -1
- package/out/register/helper/portlet-register.js +6 -2
- package/out/register/helper/tree-grid-ex-column-register.d.ts.map +1 -1
- package/out/register/helper/tree-grid-ex-column-register.js +6 -2
- package/out/register/helper/ui-action-register.d.ts.map +1 -1
- package/out/register/helper/ui-action-register.js +6 -2
- package/out/register/helper/ui-logic-node-register.d.ts.map +1 -1
- package/out/register/helper/ui-logic-node-register.js +3 -1
- package/out/register/helper/view-register.d.ts.map +1 -1
- package/out/register/helper/view-register.js +7 -2
- package/out/service/app-data-entity/app-data-entity.d.ts.map +1 -1
- package/out/service/app-data-entity/app-data-entity.js +9 -3
- package/out/service/de-service-util.js +1 -1
- package/out/service/dto/method.dto.d.ts.map +1 -1
- package/out/service/dto/method.dto.js +4 -2
- package/out/service/service/auth/v7-auth.service.d.ts +1 -1
- package/out/service/service/auth/v7-auth.service.d.ts.map +1 -1
- package/out/service/service/auth/v7-auth.service.js +5 -5
- package/out/service/service/authority/authority.service.js +1 -1
- package/out/service/service/authority/de-authority.service.d.ts.map +1 -1
- package/out/service/service/authority/de-authority.service.js +13 -6
- package/out/service/service/code-list/code-list.service.d.ts.map +1 -1
- package/out/service/service/code-list/code-list.service.js +2 -2
- package/out/service/service/counter/counter.service.d.ts.map +1 -1
- package/out/service/service/counter/counter.service.js +1 -1
- package/out/service/service/entity/de.service.d.ts.map +1 -1
- package/out/service/service/entity/de.service.js +12 -4
- package/out/service/service/entity/method/de-action.d.ts.map +1 -1
- package/out/service/service/entity/method/de-action.js +10 -5
- package/out/service/service/entity/method/fetch.d.ts.map +1 -1
- package/out/service/service/entity/method/fetch.js +4 -2
- package/out/service/service/entity/method/method.d.ts.map +1 -1
- package/out/service/service/entity/method/method.js +3 -3
- package/out/service/service/util/util.service.d.ts.map +1 -1
- package/out/service/service/util/util.service.js +6 -3
- package/out/service/service/work-flow/work-flow.service.d.ts.map +1 -1
- package/out/service/service/work-flow/work-flow.service.js +1 -1
- package/out/service/utils/app-counter/app-counter.js +1 -1
- package/out/service/utils/app-counter/app-de-counter.d.ts.map +1 -1
- package/out/service/utils/app-counter/app-de-counter.js +1 -1
- package/out/service/utils/de-cache/de-cache.d.ts.map +1 -1
- package/out/service/utils/de-cache/de-cache.js +18 -6
- package/out/service/utils/de-dq-cond/ps-de-dq-cond-engine.d.ts.map +1 -1
- package/out/service/utils/de-dq-cond/ps-de-dq-cond-engine.js +3 -3
- package/out/service/utils/de-dq-cond/ps-model-group-cond-base.js +1 -1
- package/out/service/utils/de-dq-cond-util/de-dq-cond-util.d.ts.map +1 -1
- package/out/service/utils/de-dq-cond-util/de-dq-cond-util.js +3 -1
- package/out/service/utils/dynamic-code-list/dynamic-code-list.d.ts.map +1 -1
- package/out/service/utils/dynamic-code-list/dynamic-code-list.js +4 -4
- package/out/service/utils/service-exist-util/service-exist-util.d.ts.map +1 -1
- package/out/service/utils/service-exist-util/service-exist-util.js +2 -2
- package/out/service/vo/tree-node-data/tree-data-set-node-data.d.ts.map +1 -1
- package/out/service/vo/tree-node-data/tree-data-set-node-data.js +1 -1
- package/out/service/vo/ui-map-field.d.ts.map +1 -1
- package/out/service/vo/ui-map-field.js +3 -1
- package/out/ui-action/provider/backend-ui-action-provider.d.ts.map +1 -1
- package/out/ui-action/provider/backend-ui-action-provider.js +1 -1
- package/out/ui-action/provider/front-ui-action-provider.d.ts +1 -1
- package/out/ui-action/provider/front-ui-action-provider.d.ts.map +1 -1
- package/out/ui-action/provider/front-ui-action-provider.js +20 -13
- package/out/ui-action/provider/loginout-ui-action-provider.js +2 -2
- package/out/ui-action/provider/ui-action-provider-base.d.ts.map +1 -1
- package/out/ui-action/provider/ui-action-provider-base.js +7 -4
- package/out/ui-action/provider/wf-withdraw-ui-action-provider.js +2 -2
- package/out/ui-action/uiaction-util.d.ts.map +1 -1
- package/out/ui-action/uiaction-util.js +1 -1
- package/out/ui-logic/index.d.ts.map +1 -1
- package/out/ui-logic/index.js +12 -3
- package/out/ui-logic/ui-logic-link/ui-logic-link-group-cond/ui-logic-link-group-cond.d.ts.map +1 -1
- package/out/ui-logic/ui-logic-link/ui-logic-link-group-cond/ui-logic-link-group-cond.js +6 -3
- package/out/ui-logic/ui-logic-link/ui-logic-link-single-cond/ui-logic-link-single-cond.d.ts.map +1 -1
- package/out/ui-logic/ui-logic-link/ui-logic-link-single-cond/ui-logic-link-single-cond.js +10 -4
- package/out/ui-logic/ui-logic-link/ui-logic-link.d.ts.map +1 -1
- package/out/ui-logic/ui-logic-link/ui-logic-link.js +4 -4
- package/out/ui-logic/ui-logic-node/append-param-node/append-param-node.js +2 -2
- package/out/ui-logic/ui-logic-node/bind-param-node/bind-param-node.d.ts.map +1 -1
- package/out/ui-logic/ui-logic-node/bind-param-node/bind-param-node.js +5 -2
- package/out/ui-logic/ui-logic-node/copy-param-node/copy-param-node.d.ts.map +1 -1
- package/out/ui-logic/ui-logic-node/copy-param-node/copy-param-node.js +5 -2
- package/out/ui-logic/ui-logic-node/data-set-node/data-set-node.d.ts.map +1 -1
- package/out/ui-logic/ui-logic-node/data-set-node/data-set-node.js +7 -2
- package/out/ui-logic/ui-logic-node/de-action-node/de-action-node.d.ts.map +1 -1
- package/out/ui-logic/ui-logic-node/de-action-node/de-action-node.js +8 -3
- package/out/ui-logic/ui-logic-node/de-ui-action-node/de-ui-action-node.d.ts.map +1 -1
- package/out/ui-logic/ui-logic-node/de-ui-action-node/de-ui-action-node.js +7 -2
- package/out/ui-logic/ui-logic-node/debug-param-node/debug-param-node.d.ts.map +1 -1
- package/out/ui-logic/ui-logic-node/debug-param-node/debug-param-node.js +2 -2
- package/out/ui-logic/ui-logic-node/end-node/end-node.d.ts.map +1 -1
- package/out/ui-logic/ui-logic-node/end-node/end-node.js +5 -2
- package/out/ui-logic/ui-logic-node/execute-de-logic-node/execute-de-logic-node.d.ts.map +1 -1
- package/out/ui-logic/ui-logic-node/execute-de-logic-node/execute-de-logic-node.js +10 -5
- package/out/ui-logic/ui-logic-node/msg-box-node/msg-box-node.d.ts.map +1 -1
- package/out/ui-logic/ui-logic-node/msg-box-node/msg-box-node.js +16 -10
- package/out/ui-logic/ui-logic-node/pf-plugin-node/pf-plugin-node.d.ts.map +1 -1
- package/out/ui-logic/ui-logic-node/pf-plugin-node/pf-plugin-node.js +4 -1
- package/out/ui-logic/ui-logic-node/prepare-js-param-node/prepare-js-param-node.d.ts.map +1 -1
- package/out/ui-logic/ui-logic-node/prepare-js-param-node/prepare-js-param-node.js +10 -4
- package/out/ui-logic/ui-logic-node/raw-js-code-node/raw-js-code-node.d.ts.map +1 -1
- package/out/ui-logic/ui-logic-node/raw-js-code-node/raw-js-code-node.js +3 -1
- package/out/ui-logic/ui-logic-node/renew-param-node/renew-param-node.d.ts.map +1 -1
- package/out/ui-logic/ui-logic-node/renew-param-node/renew-param-node.js +5 -2
- package/out/ui-logic/ui-logic-node/reset-param-node/reset-param-node.d.ts.map +1 -1
- package/out/ui-logic/ui-logic-node/reset-param-node/reset-param-node.js +5 -2
- package/out/ui-logic/ui-logic-node/sort-param-node/sort-param-node.d.ts.map +1 -1
- package/out/ui-logic/ui-logic-node/sort-param-node/sort-param-node.js +7 -2
- package/out/ui-logic/ui-logic-node/start-node/start-node.d.ts.map +1 -1
- package/out/ui-logic/ui-logic-node/start-node/start-node.js +3 -1
- package/out/ui-logic/ui-logic-node/throw-exception-node/throw-exception-node.d.ts.map +1 -1
- package/out/ui-logic/ui-logic-node/throw-exception-node/throw-exception-node.js +4 -1
- package/out/ui-logic/ui-logic-node/view-ctrl-fire-event-node/view-ctrl-fire-event-node.d.ts.map +1 -1
- package/out/ui-logic/ui-logic-node/view-ctrl-fire-event-node/view-ctrl-fire-event-node.js +12 -6
- package/out/ui-logic/ui-logic-node/view-ctrl-invoke-node/view-ctrl-invoke-node.d.ts.map +1 -1
- package/out/ui-logic/ui-logic-node/view-ctrl-invoke-node/view-ctrl-invoke-node.js +17 -7
- package/out/ui-logic/ui-logic-param/ui-logic-param.d.ts.map +1 -1
- package/out/ui-logic/ui-logic-param/ui-logic-param.js +10 -4
- package/out/ui-logic/ui-logic.d.ts.map +1 -1
- package/out/ui-logic/ui-logic.js +5 -3
- package/out/ui-logic/utils/handle-src-val.d.ts.map +1 -1
- package/out/ui-logic/utils/handle-src-val.js +6 -2
- package/out/utils/anime/anime-element-util.js +1 -1
- package/out/utils/anime/anime-util/anime-util.d.ts.map +1 -1
- package/out/utils/anime/anime-util/anime-util.js +2 -2
- package/out/utils/error-handler/default-error-handler.d.ts.map +1 -1
- package/out/utils/error-handler/default-error-handler.js +1 -1
- package/out/utils/error-handler/error-handler-center.d.ts.map +1 -1
- package/out/utils/error-handler/error-handler-center.js +1 -1
- package/out/utils/file-util/file-util.d.ts.map +1 -1
- package/out/utils/file-util/file-util.js +3 -3
- package/out/utils/handlebars/handlebars.js +1 -1
- package/out/utils/index.d.ts +1 -0
- package/out/utils/index.d.ts.map +1 -1
- package/out/utils/index.js +1 -0
- package/out/utils/modal/modal.d.ts.map +1 -1
- package/out/utils/modal/modal.js +2 -2
- package/out/utils/open-redirect-view/open-redirect-view.d.ts.map +1 -1
- package/out/utils/open-redirect-view/open-redirect-view.js +22 -9
- package/out/utils/script/script-function.d.ts.map +1 -1
- package/out/utils/script/script-function.js +1 -1
- package/out/utils/short-cut/index.d.ts +2 -0
- package/out/utils/short-cut/index.d.ts.map +1 -0
- package/out/utils/short-cut/index.js +1 -0
- package/out/utils/short-cut/short-cut-util.d.ts +89 -0
- package/out/utils/short-cut/short-cut-util.d.ts.map +1 -0
- package/out/utils/short-cut/short-cut-util.js +141 -0
- package/out/utils/ui-domain/transaction.js +2 -2
- package/out/utils/ui-domain-manager/ui-domain-manager.d.ts.map +1 -1
- package/out/utils/ui-domain-manager/ui-domain-manager.js +3 -1
- package/out/utils/verify/de-rule-verify.js +11 -11
- package/out/utils/verify/form-dynamic-logic.d.ts.map +1 -1
- package/out/utils/verify/form-dynamic-logic.js +4 -2
- package/out/utils/verify/panel-dynamic-logic.d.ts.map +1 -1
- package/out/utils/verify/panel-dynamic-logic.js +4 -2
- package/out/utils/verify/verify.d.ts.map +1 -1
- package/out/utils/verify/verify.js +3 -3
- package/package.json +1 -1
|
@@ -94,7 +94,9 @@ export class DECache {
|
|
|
94
94
|
if (this.isUnionKey) {
|
|
95
95
|
this.calcUnionKey(entity);
|
|
96
96
|
if (this.checkData(context, entity.srfkey)) {
|
|
97
|
-
throw new RuntimeError(
|
|
97
|
+
throw new RuntimeError(ibiz.i18n.t('runtime.service.createPrimaryKeyData', {
|
|
98
|
+
srfkey: entity.srfkey,
|
|
99
|
+
}));
|
|
98
100
|
}
|
|
99
101
|
}
|
|
100
102
|
try {
|
|
@@ -159,7 +161,9 @@ export class DECache {
|
|
|
159
161
|
this.calcUnionKey(entity);
|
|
160
162
|
// 只在临时数据的新建更新时,主键改变的时候,检测变更之后的主键是否已经存在
|
|
161
163
|
if (oldKey !== entity.srfkey && this.checkData(context, entity.srfkey)) {
|
|
162
|
-
throw new RuntimeError(
|
|
164
|
+
throw new RuntimeError(ibiz.i18n.t('runtime.service.updatePrimaryKeyData', {
|
|
165
|
+
srfkey: entity.srfkey,
|
|
166
|
+
}));
|
|
163
167
|
}
|
|
164
168
|
}
|
|
165
169
|
try {
|
|
@@ -190,7 +194,7 @@ export class DECache {
|
|
|
190
194
|
}
|
|
191
195
|
return _data;
|
|
192
196
|
}
|
|
193
|
-
throw new Error('
|
|
197
|
+
throw new Error(ibiz.i18n.t('runtime.service.noExistNoUpdated'));
|
|
194
198
|
}
|
|
195
199
|
catch (err) {
|
|
196
200
|
ibiz.log.error(err);
|
|
@@ -304,7 +308,9 @@ export class DECache {
|
|
|
304
308
|
// 主键改变的时候,检测变更之后的主键是否已经存在
|
|
305
309
|
if (oldKey !== entity.srfkey &&
|
|
306
310
|
this.checkData(context, entity.srfkey)) {
|
|
307
|
-
throw new RuntimeError(
|
|
311
|
+
throw new RuntimeError(ibiz.i18n.t('runtime.service.updatePrimaryKeyData', {
|
|
312
|
+
srfkey: entity.srfkey,
|
|
313
|
+
}));
|
|
308
314
|
}
|
|
309
315
|
}
|
|
310
316
|
entity.srftempdate = new Date().getTime();
|
|
@@ -325,7 +331,11 @@ export class DECache {
|
|
|
325
331
|
}
|
|
326
332
|
}
|
|
327
333
|
else {
|
|
328
|
-
throw new Error(
|
|
334
|
+
throw new Error(ibiz.i18n.t('runtime.service.dataNoExistNoUpdated', {
|
|
335
|
+
srfdename: entity.srfdename,
|
|
336
|
+
srfmajortext: entity.srfmajortext,
|
|
337
|
+
srfkey: entity.srfkey,
|
|
338
|
+
}));
|
|
329
339
|
}
|
|
330
340
|
}
|
|
331
341
|
return entities;
|
|
@@ -360,7 +370,9 @@ export class DECache {
|
|
|
360
370
|
}
|
|
361
371
|
}
|
|
362
372
|
if (notRemoveKeys.length > 0) {
|
|
363
|
-
throw new Error(
|
|
373
|
+
throw new Error(ibiz.i18n.t('runtime.service.noDeleted', {
|
|
374
|
+
notRemoveKey: notRemoveKeys.join('、'),
|
|
375
|
+
}));
|
|
364
376
|
}
|
|
365
377
|
const commit = (key) => {
|
|
366
378
|
this.cacheMap.delete(key);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ps-de-dq-cond-engine.d.ts","sourceRoot":"","sources":["../../../../src/service/utils/de-dq-cond/ps-de-dq-cond-engine.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAE9D,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AAEpE,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAElE,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AAEpE;;;;;;;;GAQG;AACH,qBAAa,gBAAiB,SAAQ,qBAAqB;IACzD;;;;;OAKG;IACH,MAAM,CAAC,QAAQ,CAAC,qBAAqB,iBAAiB;IAEtD;;;;;OAKG;IACH,MAAM,CAAC,QAAQ,CAAC,oBAAoB,gBAAgB;IAEpD;;;;;;;OAOG;IACI,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,YAAY,GAAG,OAAO;IAIvD;;;;;;;;;;OAUG;IACH,SAAS,CAAC,QAAQ,CAChB,IAAI,EAAE,eAAe,EACrB,IAAI,EAAE,KAAK,EACX,MAAM,EAAE,YAAY,GACnB,OAAO;
|
|
1
|
+
{"version":3,"file":"ps-de-dq-cond-engine.d.ts","sourceRoot":"","sources":["../../../../src/service/utils/de-dq-cond/ps-de-dq-cond-engine.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAE9D,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AAEpE,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAElE,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AAEpE;;;;;;;;GAQG;AACH,qBAAa,gBAAiB,SAAQ,qBAAqB;IACzD;;;;;OAKG;IACH,MAAM,CAAC,QAAQ,CAAC,qBAAqB,iBAAiB;IAEtD;;;;;OAKG;IACH,MAAM,CAAC,QAAQ,CAAC,oBAAoB,gBAAgB;IAEpD;;;;;;;OAOG;IACI,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,YAAY,GAAG,OAAO;IAIvD;;;;;;;;;;OAUG;IACH,SAAS,CAAC,QAAQ,CAChB,IAAI,EAAE,eAAe,EACrB,IAAI,EAAE,KAAK,EACX,MAAM,EAAE,YAAY,GACnB,OAAO;IA+DV,SAAS,CAAC,uBAAuB,IAAI,qBAAqB;IAI1D,SAAS,CAAC,sBAAsB,IAAI,oBAAoB;CAGzD"}
|
|
@@ -68,7 +68,7 @@ export class PSDEDQCondEngine extends PSModelCondEngineBase {
|
|
|
68
68
|
// 逻辑项
|
|
69
69
|
if (cond instanceof PSModelSingleCondBase) {
|
|
70
70
|
if (isEmpty(cond.getParam())) {
|
|
71
|
-
ibiz.log.warn('
|
|
71
|
+
ibiz.log.warn(ibiz.i18n.t('runtime.service.noAttributeName'), cond);
|
|
72
72
|
}
|
|
73
73
|
const objValue = data[cond.getParam().toLowerCase()];
|
|
74
74
|
let objCondValue = null;
|
|
@@ -76,7 +76,7 @@ export class PSDEDQCondEngine extends PSModelCondEngineBase {
|
|
|
76
76
|
const val = cond.getValue();
|
|
77
77
|
if (valType != null && !isEmpty(valType)) {
|
|
78
78
|
if (isEmpty(val)) {
|
|
79
|
-
ibiz.log.warn('
|
|
79
|
+
ibiz.log.warn(ibiz.i18n.t('runtime.service.noContextParameterName'));
|
|
80
80
|
}
|
|
81
81
|
// 网页请求上下文
|
|
82
82
|
if (PSDEDQCondEngine.PARAMTYPE_WEBCONTEXT === valType) {
|
|
@@ -94,7 +94,7 @@ export class PSDEDQCondEngine extends PSModelCondEngineBase {
|
|
|
94
94
|
// 进行值判断
|
|
95
95
|
return this.testSingleCond(cond.getCondOp(), objValue, objCondValue);
|
|
96
96
|
}
|
|
97
|
-
ibiz.log.warn(
|
|
97
|
+
ibiz.log.warn(ibiz.log.warn(ibiz.i18n.t('runtime.service.conditionalObjects')), cond);
|
|
98
98
|
return false;
|
|
99
99
|
}
|
|
100
100
|
createPSModelSingleCond() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"de-dq-cond-util.d.ts","sourceRoot":"","sources":["../../../../src/service/utils/de-dq-cond-util/de-dq-cond-util.ts"],"names":[],"mappings":"AACA,OAAO,EACL,aAAa,EACb,cAAc,EAGf,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AAEtE;;;;;;;GAOG;AACH,qBAAa,YAAY;IACvB;;;;;;;;OAQG;IACH,SAAS,CAAC,MAAM,CAAC,GAAG,EAAE,OAAO,CAAC,aAAa,EAAE,gBAAgB,CAAC,CAC9C;IAEhB;;;;;;;;OAQG;IACH,MAAM,CAAC,OAAO,CAAC,OAAO,EAAE,aAAa,GAAG,gBAAgB,GAAG,IAAI;IAkB/D;;;;;;;;;OASG;IACH,SAAS,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,EAAE,cAAc,EAAE,GAAG,OAAO,EAAE;
|
|
1
|
+
{"version":3,"file":"de-dq-cond-util.d.ts","sourceRoot":"","sources":["../../../../src/service/utils/de-dq-cond-util/de-dq-cond-util.ts"],"names":[],"mappings":"AACA,OAAO,EACL,aAAa,EACb,cAAc,EAGf,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AAEtE;;;;;;;GAOG;AACH,qBAAa,YAAY;IACvB;;;;;;;;OAQG;IACH,SAAS,CAAC,MAAM,CAAC,GAAG,EAAE,OAAO,CAAC,aAAa,EAAE,gBAAgB,CAAC,CAC9C;IAEhB;;;;;;;;OAQG;IACH,MAAM,CAAC,OAAO,CAAC,OAAO,EAAE,aAAa,GAAG,gBAAgB,GAAG,IAAI;IAkB/D;;;;;;;;;OASG;IACH,SAAS,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,EAAE,cAAc,EAAE,GAAG,OAAO,EAAE;CA+C9D"}
|
|
@@ -86,7 +86,9 @@ export class DEDQCondUtil {
|
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
88
|
else {
|
|
89
|
-
throw new ModelError(item,
|
|
89
|
+
throw new ModelError(item, ibiz.i18n.t('runtime.service.unsupportedQueryTypes', {
|
|
90
|
+
condType: item.condType,
|
|
91
|
+
}));
|
|
90
92
|
}
|
|
91
93
|
arr.push(condArr);
|
|
92
94
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dynamic-code-list.d.ts","sourceRoot":"","sources":["../../../../src/service/utils/dynamic-code-list/dynamic-code-list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAEL,cAAc,EAGf,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,OAAO,EAAe,MAAM,SAAS,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,YAAY,EAAe,MAAM,oBAAoB,CAAC;AAK/D;;;;;;GAMG;AACH,KAAK,SAAS,GAAG;IACf;;;;;;OAMG;IACH,cAAc,EAAE,MAAM,CAAC;IAEvB;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,YAAY,EAAE,CAAC;IAEvB;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC,YAAY,EAAE,CAAC,CAAC;CACnC,CAAC;AAEF;;;;;;;GAOG;AACH,qBAAa,oBAAoB;IAC/B,SAAS,CAAC,GAAG,EAAG,WAAW,CAAC;IAE5B;;;;;;;OAOG;IACH,SAAS,CAAC,QAAQ,EAAE,YAAY,CAAC;IAEjC;;;;;;OAMG;IACH,SAAS,CAAC,KAAK,yBAAgC;IAE/C;;;;;;;OAOG;IACH,SAAS,CAAC,YAAY,EAAE,OAAO,CAAS;IAExC;;;;;;;OAOG;IACH,SAAS,CAAC,OAAO,EAAE,QAAQ,CAAwB;IAEnD;;;;;;;OAOG;IACH,SAAS,CAAC,MAAM,EAAE,OAAO,CAAM;IAE/B;;;;;;OAMG;IACH,SAAS,CAAC,GAAG,EAAE,OAAO,CAAC;QAAE,MAAM,EAAE,CAAC,IAAI,EAAE,YAAY,EAAE,KAAK,IAAI,CAAA;KAAE,CAAC,CAClD;IAEhB;;;;;;OAMG;IACH,SAAS,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC;IAEtC;;;;;;OAMG;IACH,SAAS,CAAC,UAAU,EAAE,MAAM,EAAE,CAA2B;gBAE7C,QAAQ,EAAE,YAAY;IAYlC;;;;;;;;OAQG;IACH,SAAS,CAAC,SAAS,CAAC,OAAO,CAAC,EAAE,QAAQ,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,IAAI;IAS/D;;;;;;OAMG;IACG,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAqB3B;;;;;;;OAOG;IACH,SAAS,CAAC,WAAW,CAAC,IAAI,EAAE,KAAK,GAAG,YAAY;
|
|
1
|
+
{"version":3,"file":"dynamic-code-list.d.ts","sourceRoot":"","sources":["../../../../src/service/utils/dynamic-code-list/dynamic-code-list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAEL,cAAc,EAGf,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,OAAO,EAAe,MAAM,SAAS,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,YAAY,EAAe,MAAM,oBAAoB,CAAC;AAK/D;;;;;;GAMG;AACH,KAAK,SAAS,GAAG;IACf;;;;;;OAMG;IACH,cAAc,EAAE,MAAM,CAAC;IAEvB;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,YAAY,EAAE,CAAC;IAEvB;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC,YAAY,EAAE,CAAC,CAAC;CACnC,CAAC;AAEF;;;;;;;GAOG;AACH,qBAAa,oBAAoB;IAC/B,SAAS,CAAC,GAAG,EAAG,WAAW,CAAC;IAE5B;;;;;;;OAOG;IACH,SAAS,CAAC,QAAQ,EAAE,YAAY,CAAC;IAEjC;;;;;;OAMG;IACH,SAAS,CAAC,KAAK,yBAAgC;IAE/C;;;;;;;OAOG;IACH,SAAS,CAAC,YAAY,EAAE,OAAO,CAAS;IAExC;;;;;;;OAOG;IACH,SAAS,CAAC,OAAO,EAAE,QAAQ,CAAwB;IAEnD;;;;;;;OAOG;IACH,SAAS,CAAC,MAAM,EAAE,OAAO,CAAM;IAE/B;;;;;;OAMG;IACH,SAAS,CAAC,GAAG,EAAE,OAAO,CAAC;QAAE,MAAM,EAAE,CAAC,IAAI,EAAE,YAAY,EAAE,KAAK,IAAI,CAAA;KAAE,CAAC,CAClD;IAEhB;;;;;;OAMG;IACH,SAAS,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC;IAEtC;;;;;;OAMG;IACH,SAAS,CAAC,UAAU,EAAE,MAAM,EAAE,CAA2B;gBAE7C,QAAQ,EAAE,YAAY;IAYlC;;;;;;;;OAQG;IACH,SAAS,CAAC,SAAS,CAAC,OAAO,CAAC,EAAE,QAAQ,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,IAAI;IAS/D;;;;;;OAMG;IACG,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAqB3B;;;;;;;OAOG;IACH,SAAS,CAAC,WAAW,CAAC,IAAI,EAAE,KAAK,GAAG,YAAY;IAsEhD,SAAS,CAAC,iBAAiB,CAAC,IAAI,EAAE,KAAK,GAAG,YAAY;IAetD,SAAS,CAAC,aAAa,CAAC,GAAG,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE;IAS9C;;;;;;;;;OASG;cACa,IAAI,CAClB,OAAO,EAAE,QAAQ,EACjB,MAAM,GAAE,OAAY,GACnB,OAAO,CAAC,YAAY,EAAE,CAAC;IAgG1B;;;;OAIG;IACH,SAAS,CAAC,eAAe,CAAC,KAAK,EAAE,KAAK,EAAE,GAAG,YAAY,EAAE,GAAG,SAAS;IAmBrE;;;;;;;;OAQG;IACG,GAAG,CAAC,OAAO,EAAE,QAAQ,EAAE,MAAM,GAAE,OAAY,GAAG,OAAO,CAAC,YAAY,EAAE,CAAC;IA0C3E;;;;;;;OAOG;IACH,SAAS,CAAC,cAAc,CAAC,GAAG,EAAE,cAAc,GAAG,IAAI;IAenD;;;;;;OAMG;IACG,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;IAS9B;;;;;;;OAOG;IACH,QAAQ,CACN,EAAE,EAAE,CAAC,IAAI,EAAE,YAAY,EAAE,KAAK,IAAI,EAClC,SAAS,GAAE,OAAc,GACxB,IAAI;IASP;;;;;;OAMG;IACH,SAAS,CAAC,EAAE,EAAE,CAAC,IAAI,EAAE,YAAY,EAAE,KAAK,IAAI,GAAG,IAAI;IAInD;;;;;OAKG;IACH,OAAO,IAAI,IAAI;CAMhB"}
|
|
@@ -106,7 +106,7 @@ export class DynamicCodeListCache {
|
|
|
106
106
|
if (predefinedType) {
|
|
107
107
|
this.isPredefined = true;
|
|
108
108
|
if (!['OPERATOR', 'RUNTIME', 'DEMAINSTATE'].includes(predefinedType)) {
|
|
109
|
-
throw new ModelError(this.codeList,
|
|
109
|
+
throw new ModelError(this.codeList, ibiz.i18n.t('runtime.service.predefinedType', { predefinedType }));
|
|
110
110
|
}
|
|
111
111
|
return;
|
|
112
112
|
}
|
|
@@ -172,7 +172,7 @@ export class DynamicCodeListCache {
|
|
|
172
172
|
result.data = ScriptFactory.execSingleLine(data[dataAppDEFieldId]);
|
|
173
173
|
}
|
|
174
174
|
catch (error) {
|
|
175
|
-
ibiz.log.error('
|
|
175
|
+
ibiz.log.error(ibiz.i18n.t('runtime.service.dynamicCodeTable'));
|
|
176
176
|
}
|
|
177
177
|
}
|
|
178
178
|
return result;
|
|
@@ -256,10 +256,10 @@ export class DynamicCodeListCache {
|
|
|
256
256
|
}
|
|
257
257
|
// *加载实体服务数据
|
|
258
258
|
if (!appDataEntityId) {
|
|
259
|
-
throw new RuntimeModelError(this.codeList, '
|
|
259
|
+
throw new RuntimeModelError(this.codeList, ibiz.i18n.t('runtime.controller.utils.viewMsg.unconfiguredEntities'));
|
|
260
260
|
}
|
|
261
261
|
if (!appDEDataSetId) {
|
|
262
|
-
throw new RuntimeModelError(this.codeList, '
|
|
262
|
+
throw new RuntimeModelError(this.codeList, ibiz.i18n.t('runtime.service.unconfiguredDataset'));
|
|
263
263
|
}
|
|
264
264
|
const res = await app.deService.exec(appDataEntityId, appDEDataSetId, context, undefined, tempParams);
|
|
265
265
|
let resultItems = [];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service-exist-util.d.ts","sourceRoot":"","sources":["../../../../src/service/utils/service-exist-util/service-exist-util.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEjD;;;;;;;GAOG;AACH,wBAAgB,aAAa,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,GAAG,OAAO,
|
|
1
|
+
{"version":3,"file":"service-exist-util.d.ts","sourceRoot":"","sources":["../../../../src/service/utils/service-exist-util/service-exist-util.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEjD;;;;;;;GAOG;AACH,wBAAgB,aAAa,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,GAAG,OAAO,CAU5E;AAED;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,GAAG,OAAO,CAQ7E"}
|
|
@@ -15,7 +15,7 @@ export function isExistSrfKey(funcName, entity) {
|
|
|
15
15
|
return true;
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
|
-
throw new RuntimeError(
|
|
18
|
+
throw new RuntimeError(ibiz.i18n.t('runtime.service.processedWithout', { funcName }));
|
|
19
19
|
}
|
|
20
20
|
/**
|
|
21
21
|
* 判断缓存 srfsessionid 是否存在,不存在抛异常
|
|
@@ -30,5 +30,5 @@ export function isExistSessionId(funcName, context) {
|
|
|
30
30
|
if (!isNil(srfsessionid) && !isEmpty(srfsessionid)) {
|
|
31
31
|
return true;
|
|
32
32
|
}
|
|
33
|
-
throw new RuntimeError(
|
|
33
|
+
throw new RuntimeError(ibiz.i18n.t('runtime.service.noExistProcessed', { funcName }));
|
|
34
34
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tree-data-set-node-data.d.ts","sourceRoot":"","sources":["../../../../src/service/vo/tree-node-data/tree-data-set-node-data.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAG3E,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAG1D,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAahD;;;;;;;GAOG;AACH,qBAAa,mBAAoB,SAAQ,YAAa,YAAW,aAAa;IACpE,KAAK,EAAE,MAAM,CAAC;IAEd,GAAG,EAAE,MAAM,CAAC;IAEZ,MAAM,EAAE,MAAM,CAAC;IAEf,OAAO,EAAE,KAAK,CAAC;IAEf,UAAU,EAAE,KAAK,CAAC;IAE1B;;;;OAIG;IACK,KAAK,EAAE,MAAM,mBAAmB,CAAC;gBAGvC,KAAK,EAAE,kBAAkB,EACzB,cAAc,EAAE,aAAa,GAAG,SAAS,EACzC,IAAI,EAAE;QACJ,IAAI,EAAE,KAAK,CAAC;QACZ,IAAI,EAAE,OAAO,CAAC;QACd,UAAU,CAAC,EAAE,OAAO,CAAC;QACrB,SAAS,CAAC,EAAE,OAAO,CAAC;KACrB;
|
|
1
|
+
{"version":3,"file":"tree-data-set-node-data.d.ts","sourceRoot":"","sources":["../../../../src/service/vo/tree-node-data/tree-data-set-node-data.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAG3E,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAG1D,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAahD;;;;;;;GAOG;AACH,qBAAa,mBAAoB,SAAQ,YAAa,YAAW,aAAa;IACpE,KAAK,EAAE,MAAM,CAAC;IAEd,GAAG,EAAE,MAAM,CAAC;IAEZ,MAAM,EAAE,MAAM,CAAC;IAEf,OAAO,EAAE,KAAK,CAAC;IAEf,UAAU,EAAE,KAAK,CAAC;IAE1B;;;;OAIG;IACK,KAAK,EAAE,MAAM,mBAAmB,CAAC;gBAGvC,KAAK,EAAE,kBAAkB,EACzB,cAAc,EAAE,aAAa,GAAG,SAAS,EACzC,IAAI,EAAE;QACJ,IAAI,EAAE,KAAK,CAAC;QACZ,IAAI,EAAE,OAAO,CAAC;QACd,UAAU,CAAC,EAAE,OAAO,CAAC;QACrB,SAAS,CAAC,EAAE,OAAO,CAAC;KACrB;IAkNH,SAAS,CAAC,QAAQ,CAAC,KAAK,EAAE,kBAAkB,GAAG,KAAK,GAAG,SAAS;IAsBhE;;;;;;;OAOG;IACH,SAAS,CAAC,kBAAkB,CAC1B,QAAQ,EAAE,mBAAmB,GAC5B,MAAM,GAAG,SAAS;IAYrB;;;;;;;OAOG;IACH,SAAS,CAAC,YAAY,CAAC,KAAK,EAAE,kBAAkB,GAAG,MAAM,GAAG,SAAS;CAStE"}
|
|
@@ -116,7 +116,7 @@ export class TreeDataSetNodeData extends TreeNodeData {
|
|
|
116
116
|
const columnKey = column.detreeColumnId; // 不配树表格列不会有这个模型
|
|
117
117
|
const dataItemKey = column.dataItemName; // 配了就一定有数据项名称
|
|
118
118
|
if (!columnKey || !dataItemKey) {
|
|
119
|
-
ibiz.log.error('
|
|
119
|
+
ibiz.log.error(ibiz.i18n.t('runtime.service.missingDetreeColumnId'), column);
|
|
120
120
|
}
|
|
121
121
|
else {
|
|
122
122
|
nodeColumnKeyMap.set(columnKey, dataItemKey);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ui-map-field.d.ts","sourceRoot":"","sources":["../../../src/service/vo/ui-map-field.ts"],"names":[],"mappings":"AAGA;;;;;;;GAOG;AACH,qBAAa,UAAU;IACrB;;;;;;OAMG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;;;;;OAMG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;;;;;OAMG;IACH,aAAa,EAAE,OAAO,CAAS;IAE/B;;;;;;OAMG;IACH,aAAa,EAAE,OAAO,CAAQ;gBAG5B,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,MAAM,EACf,IAAI,GAAE;QACJ,aAAa,CAAC,EAAE,OAAO,CAAC;QACxB,QAAQ,CAAC,EAAE,MAAM,CAAC;KACd;IAYR;;;;;OAKG;IACH,UAAU,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO;
|
|
1
|
+
{"version":3,"file":"ui-map-field.d.ts","sourceRoot":"","sources":["../../../src/service/vo/ui-map-field.ts"],"names":[],"mappings":"AAGA;;;;;;;GAOG;AACH,qBAAa,UAAU;IACrB;;;;;;OAMG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;;;;;OAMG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;;;;;OAMG;IACH,aAAa,EAAE,OAAO,CAAS;IAE/B;;;;;;OAMG;IACH,aAAa,EAAE,OAAO,CAAQ;gBAG5B,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,MAAM,EACf,IAAI,GAAE;QACJ,aAAa,CAAC,EAAE,OAAO,CAAC;QACxB,QAAQ,CAAC,EAAE,MAAM,CAAC;KACd;IAYR;;;;;OAKG;IACH,UAAU,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO;CAwBpC"}
|
|
@@ -51,7 +51,9 @@ export class UIMapField {
|
|
|
51
51
|
const numVal = !isNil(value) && value !== '' ? Number(value) : value;
|
|
52
52
|
if (Number.isNaN(numVal)) {
|
|
53
53
|
// 不能转换的给原值
|
|
54
|
-
ibiz.log.debug(
|
|
54
|
+
ibiz.log.debug(ibiz.i18n.t('runtime.service.convertedNumber', {
|
|
55
|
+
value,
|
|
56
|
+
}));
|
|
55
57
|
return value;
|
|
56
58
|
}
|
|
57
59
|
return numVal;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"backend-ui-action-provider.d.ts","sourceRoot":"","sources":["../../../src/ui-action/provider/backend-ui-action-provider.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAGlD,OAAO,EAAE,cAAc,EAAE,eAAe,EAAc,MAAM,iBAAiB,CAAC;AAC9E,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAEjE;;;;;;;;GAQG;AACH,qBAAa,uBAAwB,SAAQ,oBAAoB;IACzD,UAAU,CACd,MAAM,EAAE,cAAc,EACtB,IAAI,EAAE,cAAc,GACnB,OAAO,CAAC,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"backend-ui-action-provider.d.ts","sourceRoot":"","sources":["../../../src/ui-action/provider/backend-ui-action-provider.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAGlD,OAAO,EAAE,cAAc,EAAE,eAAe,EAAc,MAAM,iBAAiB,CAAC;AAC9E,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAEjE;;;;;;;;GAQG;AACH,qBAAa,uBAAwB,SAAQ,oBAAoB;IACzD,UAAU,CACd,MAAM,EAAE,cAAc,EACtB,IAAI,EAAE,cAAc,GACnB,OAAO,CAAC,eAAe,CAAC;CAkF5B"}
|
|
@@ -18,7 +18,7 @@ export class BackendUIActionProvider extends UIActionProviderBase {
|
|
|
18
18
|
const entityName = action.appDataEntityId;
|
|
19
19
|
const methodName = action.appDEMethodId;
|
|
20
20
|
if (!entityName || !methodName) {
|
|
21
|
-
throw new RuntimeModelError(action, '
|
|
21
|
+
throw new RuntimeModelError(action, ibiz.i18n.t('runtime.uiAction.noEntityOrBehavior'));
|
|
22
22
|
}
|
|
23
23
|
// 处理参数
|
|
24
24
|
const { resultContext, resultParams, resultData } = await this.handleParams(action, context, data, params);
|
|
@@ -21,7 +21,7 @@ export declare class FrontUIActionProvider extends UIActionProviderBase {
|
|
|
21
21
|
* @param {IUILogicParams} args
|
|
22
22
|
* @return {*}
|
|
23
23
|
*/
|
|
24
|
-
protected doOther(action: IAppDEUIAction, args: IUILogicParams): IUIActionResult
|
|
24
|
+
protected doOther(action: IAppDEUIAction, args: IUILogicParams): Promise<IUIActionResult>;
|
|
25
25
|
/**
|
|
26
26
|
* 执行打印行为
|
|
27
27
|
* @protected
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"front-ui-action-provider.d.ts","sourceRoot":"","sources":["../../../src/ui-action/provider/front-ui-action-provider.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,cAAc,EAAa,MAAM,kBAAkB,CAAC;AAG7D,OAAO,EACL,cAAc,EACd,eAAe,EAIhB,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"front-ui-action-provider.d.ts","sourceRoot":"","sources":["../../../src/ui-action/provider/front-ui-action-provider.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,cAAc,EAAa,MAAM,kBAAkB,CAAC;AAG7D,OAAO,EACL,cAAc,EACd,eAAe,EAIhB,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAIjE;;;;;;;;GAQG;AACH,qBAAa,qBAAsB,SAAQ,oBAAoB;IACvD,UAAU,CACd,MAAM,EAAE,cAAc,EACtB,IAAI,EAAE,cAAc,GACnB,OAAO,CAAC,eAAe,CAAC;IAyE3B;;;;;;;;OAQG;cACa,OAAO,CACrB,MAAM,EAAE,cAAc,EACtB,IAAI,EAAE,cAAc,GACnB,OAAO,CAAC,eAAe,CAAC;IAoB3B;;;;;;OAMG;cACa,YAAY,CAC1B,MAAM,EAAE,cAAc,EACtB,IAAI,EAAE,cAAc,GACnB,OAAO,CAAC,IAAI,CAAC;IAiEhB;;;;;;OAMG;cACa,iBAAiB,CAC/B,MAAM,EAAE,cAAc,EACtB,IAAI,EAAE,cAAc,GACnB,OAAO,CAAC,eAAe,CAAC;IA+B3B;;;;;;OAMG;cACa,iBAAiB,CAC/B,MAAM,EAAE,cAAc,EACtB,IAAI,EAAE,cAAc,GACnB,OAAO,CAAC,IAAI,CAAC;IAwDhB;;;;;;;;OAQG;cACa,YAAY,CAC1B,MAAM,EAAE,cAAc,EACtB,IAAI,EAAE,cAAc,GACnB,OAAO,CAAC,eAAe,CAAC;CAsD5B"}
|
|
@@ -4,6 +4,7 @@ import { OpenAppViewCommand } from '../../command';
|
|
|
4
4
|
import { ScriptFactory } from '../../utils';
|
|
5
5
|
import { UIActionProviderBase } from './ui-action-provider-base';
|
|
6
6
|
import { openDataImport } from '../../controller/utils';
|
|
7
|
+
import { SysUIActionTag } from '../../constant';
|
|
7
8
|
/**
|
|
8
9
|
* 前台调用界面行为适配器
|
|
9
10
|
*
|
|
@@ -27,7 +28,7 @@ export class FrontUIActionProvider extends UIActionProviderBase {
|
|
|
27
28
|
case 'WIZARD': {
|
|
28
29
|
const frontPSAppView = action.frontAppViewId;
|
|
29
30
|
if (!frontPSAppView) {
|
|
30
|
-
throw new RuntimeModelError(action, '
|
|
31
|
+
throw new RuntimeModelError(action, ibiz.i18n.t('runtime.uiAction.noConfiguredopenView'));
|
|
31
32
|
}
|
|
32
33
|
// 处理参数
|
|
33
34
|
const { resultContext, resultParams } = await this.handleParams(action, context, data, params);
|
|
@@ -55,13 +56,15 @@ export class FrontUIActionProvider extends UIActionProviderBase {
|
|
|
55
56
|
await this.executeDataExport(action, args);
|
|
56
57
|
break;
|
|
57
58
|
case 'OTHER':
|
|
58
|
-
actionResult = this.doOther(action, args);
|
|
59
|
+
actionResult = await this.doOther(action, args);
|
|
59
60
|
break;
|
|
60
61
|
case 'EDITFORM':
|
|
61
62
|
actionResult = await this.openEditForm(action, args);
|
|
62
63
|
break;
|
|
63
64
|
default:
|
|
64
|
-
throw new ModelError(action,
|
|
65
|
+
throw new ModelError(action, ibiz.i18n.t('runtime.uiAction.frontProcessingModes', {
|
|
66
|
+
frontProcessType: action.frontProcessType,
|
|
67
|
+
}));
|
|
65
68
|
}
|
|
66
69
|
return actionResult;
|
|
67
70
|
}
|
|
@@ -74,14 +77,18 @@ export class FrontUIActionProvider extends UIActionProviderBase {
|
|
|
74
77
|
* @param {IUILogicParams} args
|
|
75
78
|
* @return {*}
|
|
76
79
|
*/
|
|
77
|
-
doOther(action, args) {
|
|
78
|
-
const { scriptCode } = action;
|
|
80
|
+
async doOther(action, args) {
|
|
81
|
+
const { scriptCode, uiactionTag } = action;
|
|
79
82
|
const { context, params, data, event, view } = args;
|
|
83
|
+
if (uiactionTag === SysUIActionTag.SHOTR_CUT) {
|
|
84
|
+
const result = await view.callUIAction(uiactionTag, args);
|
|
85
|
+
return result || {};
|
|
86
|
+
}
|
|
80
87
|
if (scriptCode) {
|
|
81
88
|
const result = ScriptFactory.execScriptFn({ context, params, data, el: event === null || event === void 0 ? void 0 : event.target, view }, scriptCode);
|
|
82
89
|
return result || {};
|
|
83
90
|
}
|
|
84
|
-
throw new RuntimeModelError(action, '
|
|
91
|
+
throw new RuntimeModelError(action, ibiz.i18n.t('runtime.uiAction.missingConfigurationScriptCode'));
|
|
85
92
|
}
|
|
86
93
|
/**
|
|
87
94
|
* 执行打印行为
|
|
@@ -106,7 +113,7 @@ export class FrontUIActionProvider extends UIActionProviderBase {
|
|
|
106
113
|
requestUrl += `/${appDataEntity.deapicodeName2}/printdata/${resultContext[appDataEntity.codeName.toLowerCase()]}`;
|
|
107
114
|
}
|
|
108
115
|
else {
|
|
109
|
-
throw new RuntimeError('
|
|
116
|
+
throw new RuntimeError(ibiz.i18n.t('runtime.uiAction.dataPrimaryKey'));
|
|
110
117
|
}
|
|
111
118
|
const res = await ibiz.net.request(requestUrl, {
|
|
112
119
|
method: 'get',
|
|
@@ -136,11 +143,11 @@ export class FrontUIActionProvider extends UIActionProviderBase {
|
|
|
136
143
|
}
|
|
137
144
|
}
|
|
138
145
|
else {
|
|
139
|
-
throw new RuntimeError('
|
|
146
|
+
throw new RuntimeError(ibiz.i18n.t('runtime.uiAction.printFailure'));
|
|
140
147
|
}
|
|
141
148
|
}
|
|
142
149
|
else {
|
|
143
|
-
throw new RuntimeError('
|
|
150
|
+
throw new RuntimeError(ibiz.i18n.t('runtime.uiAction.physicalPrint'));
|
|
144
151
|
}
|
|
145
152
|
}
|
|
146
153
|
/**
|
|
@@ -155,7 +162,7 @@ export class FrontUIActionProvider extends UIActionProviderBase {
|
|
|
155
162
|
const { resultContext, resultParams } = await this.handleParams(action, args.context, args.data, args.params);
|
|
156
163
|
const { appDataEntityId, appDEDataImportId, frontAppViewId } = action;
|
|
157
164
|
if (!appDataEntityId || !appDEDataImportId) {
|
|
158
|
-
throw new RuntimeModelError(action, '
|
|
165
|
+
throw new RuntimeModelError(action, ibiz.i18n.t('runtime.controller.common.control.noImportModel'));
|
|
159
166
|
}
|
|
160
167
|
await openDataImport({
|
|
161
168
|
appDataEntityId,
|
|
@@ -209,11 +216,11 @@ export class FrontUIActionProvider extends UIActionProviderBase {
|
|
|
209
216
|
document.body.removeChild(elink);
|
|
210
217
|
}
|
|
211
218
|
else {
|
|
212
|
-
throw new RuntimeError('
|
|
219
|
+
throw new RuntimeError(ibiz.i18n.t('runtime.uiAction.exportRequestFailed'));
|
|
213
220
|
}
|
|
214
221
|
}
|
|
215
222
|
else {
|
|
216
|
-
throw new RuntimeError('
|
|
223
|
+
throw new RuntimeError(ibiz.i18n.t('runtime.uiAction.noEntityExportsFound'));
|
|
217
224
|
}
|
|
218
225
|
}
|
|
219
226
|
/**
|
|
@@ -229,7 +236,7 @@ export class FrontUIActionProvider extends UIActionProviderBase {
|
|
|
229
236
|
const actionResult = {};
|
|
230
237
|
const { context, params, data, event } = args;
|
|
231
238
|
if (!event) {
|
|
232
|
-
throw new RuntimeError('
|
|
239
|
+
throw new RuntimeError(ibiz.i18n.t('runtime.uiAction.lackNativeEvent'));
|
|
233
240
|
}
|
|
234
241
|
// 处理参数
|
|
235
242
|
const { resultContext, resultParams } = await this.handleParams(action, context, data, params);
|
|
@@ -11,8 +11,8 @@ import { UIActionProviderBase } from './ui-action-provider-base';
|
|
|
11
11
|
export class LoginOutUIActionProvider extends UIActionProviderBase {
|
|
12
12
|
async execAction(_action, _params) {
|
|
13
13
|
const confirm = await ibiz.confirm.info({
|
|
14
|
-
title: '
|
|
15
|
-
desc: '
|
|
14
|
+
title: ibiz.i18n.t('app.logout'),
|
|
15
|
+
desc: ibiz.i18n.t('runtime.uiAction.wantLogout'),
|
|
16
16
|
});
|
|
17
17
|
if (confirm) {
|
|
18
18
|
const bol = await ibiz.hub.controller.logout();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ui-action-provider-base.d.ts","sourceRoot":"","sources":["../../../src/ui-action/provider/ui-action-provider-base.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAgC,MAAM,kBAAkB,CAAC;AAChF,OAAO,EACL,iBAAiB,EACjB,eAAe,EACf,cAAc,EACd,eAAe,EAChB,MAAM,iBAAiB,CAAC;AAMzB;;;;;;;GAOG;AACH,8BAAsB,oBAAqB,YAAW,iBAAiB;IACrE;;;;;;;OAOG;IACG,IAAI,CACR,MAAM,EAAE,cAAc,EACtB,IAAI,EAAE,cAAc,GACnB,OAAO,CAAC,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"ui-action-provider-base.d.ts","sourceRoot":"","sources":["../../../src/ui-action/provider/ui-action-provider-base.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAgC,MAAM,kBAAkB,CAAC;AAChF,OAAO,EACL,iBAAiB,EACjB,eAAe,EACf,cAAc,EACd,eAAe,EAChB,MAAM,iBAAiB,CAAC;AAMzB;;;;;;;GAOG;AACH,8BAAsB,oBAAqB,YAAW,iBAAiB;IACrE;;;;;;;OAOG;IACG,IAAI,CACR,MAAM,EAAE,cAAc,EACtB,IAAI,EAAE,cAAc,GACnB,OAAO,CAAC,eAAe,CAAC;IA2E3B;;;;;;;;OAQG;IACH,SAAS,CAAC,iBAAiB,CACzB,IAAI,EAAE,cAAc,EACpB,MAAM,EAAE,eAAe,GACtB,cAAc;IASjB;;;;;;;;OAQG;IACH,SAAS,CAAC,WAAW,CACnB,MAAM,EAAE,eAAe,EACvB,IAAI,EAAE,eAAe,GACpB,eAAe;IAQlB;;;;;;;OAOG;IACG,SAAS,CACb,MAAM,EAAE,cAAc,EACtB,IAAI,EAAE,cAAc,GACnB,OAAO,CAAC,OAAO,CAAC;IAWnB;;;;;;;;;;;;OAYG;IACH,QAAQ,CAAC,UAAU,CACjB,MAAM,EAAE,cAAc,EACtB,MAAM,EAAE,cAAc,GACrB,OAAO,CAAC,eAAe,CAAC;IAE3B;;;;;;;;;;;OAWG;IACG,YAAY,CAChB,MAAM,EAAE,cAAc,EACtB,MAAM,EAAE,cAAc,EACtB,KAAK,EAAE,MAAM,GACZ,OAAO,CAAC,eAAe,GAAG,SAAS,CAAC;IAOvC;;;;;;;;;;;;;;;;OAgBG;cACa,YAAY,CAC1B,MAAM,EAAE,cAAc,EACtB,OAAO,EAAE,QAAQ,EACjB,IAAI,EAAE,KAAK,EAAE,EACb,MAAM,EAAE,OAAO,GACd,OAAO,CAAC;QACT,aAAa,EAAE,QAAQ,CAAC;QACxB,UAAU,EAAE,KAAK,EAAE,CAAC;QACpB,YAAY,EAAE,OAAO,CAAC;KACvB,CAAC;IAwFF;;;;;;;;;OASG;IACH,SAAS,CAAC,WAAW,CACnB,IAAI,EAAE,SAAS,GAAG,SAAS,EAC3B,MAAM,EAAE,cAAc,EACtB,IAAI,EAAE,cAAc,GACnB,MAAM,GAAG,SAAS;IA4CrB;;;;;;;;OAQG;IACH,sBAAsB,CAAC,KAAK,EAAE,KAAK,GAAG,KAAK;CAc5C"}
|
|
@@ -34,7 +34,7 @@ export class UIActionProviderBase {
|
|
|
34
34
|
const { appDEUILogicId, appDataEntityId, uilogicAttachMode } = action;
|
|
35
35
|
if (uilogicAttachMode === 'REPLACE') {
|
|
36
36
|
if (!appDEUILogicId) {
|
|
37
|
-
throw new RuntimeModelError(action, '
|
|
37
|
+
throw new RuntimeModelError(action, ibiz.i18n.t('runtime.logicScheduler.executor.noConfiguredLogic'));
|
|
38
38
|
}
|
|
39
39
|
await execUILogic(appDEUILogicId, appDataEntityId, args);
|
|
40
40
|
return result;
|
|
@@ -53,7 +53,7 @@ export class UIActionProviderBase {
|
|
|
53
53
|
// ** 界面行为执行之后,执行界面逻辑
|
|
54
54
|
if (action.uilogicAttachMode === 'AFTER') {
|
|
55
55
|
if (!appDEUILogicId) {
|
|
56
|
-
throw new RuntimeModelError(action, '
|
|
56
|
+
throw new RuntimeModelError(action, ibiz.i18n.t('runtime.logicScheduler.executor.noConfiguredLogic'));
|
|
57
57
|
}
|
|
58
58
|
await execUILogic(appDEUILogicId, appDataEntityId, this.mergeArgsByResult(args, result));
|
|
59
59
|
}
|
|
@@ -113,7 +113,10 @@ export class UIActionProviderBase {
|
|
|
113
113
|
async isConfirm(action, args) {
|
|
114
114
|
const confirmMsg = this.calcMessage('confirm', action, args);
|
|
115
115
|
if (action.enableConfirm && confirmMsg) {
|
|
116
|
-
return ibiz.confirm.warning({
|
|
116
|
+
return ibiz.confirm.warning({
|
|
117
|
+
title: ibiz.i18n.t('runtime.uiAction.operationConfirmation'),
|
|
118
|
+
desc: confirmMsg,
|
|
119
|
+
});
|
|
117
120
|
}
|
|
118
121
|
return true;
|
|
119
122
|
}
|
|
@@ -284,7 +287,7 @@ export class UIActionProviderBase {
|
|
|
284
287
|
return { modalOption };
|
|
285
288
|
}
|
|
286
289
|
catch (error) {
|
|
287
|
-
ibiz.log.error(
|
|
290
|
+
ibiz.log.error(ibiz.i18n.t('runtime.uiAction.viewParameterModalOption', { error }));
|
|
288
291
|
}
|
|
289
292
|
}
|
|
290
293
|
return {};
|
|
@@ -12,8 +12,8 @@ export class WFWithdrawUIActionProvider extends UIActionProviderBase {
|
|
|
12
12
|
async execAction(_action, args) {
|
|
13
13
|
const { view } = args;
|
|
14
14
|
const isWithdraw = await ibiz.modal.confirm({
|
|
15
|
-
title: '
|
|
16
|
-
desc: '
|
|
15
|
+
title: ibiz.i18n.t('runtime.controller.control.form.prompt'),
|
|
16
|
+
desc: ibiz.i18n.t('runtime.uiAction.withdrawalConfirmed'),
|
|
17
17
|
});
|
|
18
18
|
let isCloseView = false;
|
|
19
19
|
if (isWithdraw && view) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uiaction-util.d.ts","sourceRoot":"","sources":["../../src/ui-action/uiaction-util.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAI/D;;;;;;;GAOG;AACH,qBAAa,YAAY;IACvB;;;;;;;;;OASG;WACU,IAAI,CACf,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,cAAc,EACtB,KAAK,EAAE,MAAM,GACZ,OAAO,CAAC,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"uiaction-util.d.ts","sourceRoot":"","sources":["../../src/ui-action/uiaction-util.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAI/D;;;;;;;GAOG;AACH,qBAAa,YAAY;IACvB;;;;;;;;;OASG;WACU,IAAI,CACf,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,cAAc,EACtB,KAAK,EAAE,MAAM,GACZ,OAAO,CAAC,eAAe,CAAC;IAkB3B;;;;;;;OAOG;WACU,eAAe,CAC1B,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,cAAc,EACtB,KAAK,EAAE,MAAM,GACZ,OAAO,CAAC,IAAI,CAAC;IA6BhB;;;;;;;;;OASG;mBACkB,iBAAiB;IAMtC;;;;;;;;;;OAUG;mBACkB,sBAAsB;CAW5C"}
|
|
@@ -24,7 +24,7 @@ export class UIActionUtil {
|
|
|
24
24
|
static async exec(actionId, params, appId) {
|
|
25
25
|
const action = await getUIActionById(actionId, appId);
|
|
26
26
|
if (!action) {
|
|
27
|
-
throw new RuntimeError(
|
|
27
|
+
throw new RuntimeError(ibiz.i18n.t('runtime.uiAction.noFoundBehaviorModel', { actionId }));
|
|
28
28
|
}
|
|
29
29
|
// 单项数据的界面行为执行前校验表单的数据,不通过则拦截
|
|
30
30
|
if (action.actionTarget === 'SINGLEDATA') {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ui-logic/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAQ9C;;;;;;;;;;;;GAYG;AACH,wBAAsB,WAAW,CAC/B,WAAW,EAAE,MAAM,EACnB,eAAe,EAAE,MAAM,EACvB,UAAU,EAAE,cAAc,GACzB,OAAO,CAAC,OAAO,CAAC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ui-logic/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAQ9C;;;;;;;;;;;;GAYG;AACH,wBAAsB,WAAW,CAC/B,WAAW,EAAE,MAAM,EACnB,eAAe,EAAE,MAAM,EACvB,UAAU,EAAE,cAAc,GACzB,OAAO,CAAC,OAAO,CAAC,CA6BlB"}
|
package/out/ui-logic/index.js
CHANGED
|
@@ -21,14 +21,23 @@ export async function execUILogic(deUILogicId, appDataEntityId, parameters) {
|
|
|
21
21
|
const app = ibiz.hub.getApp(parameters.context.srfappid);
|
|
22
22
|
const deUILogic = await app.getDEUILogic(deUILogicId, appDataEntityId);
|
|
23
23
|
if (!deUILogic) {
|
|
24
|
-
throw new RuntimeError(
|
|
24
|
+
throw new RuntimeError(ibiz.i18n.t('runtime.uiLogic.interfaceLogic', {
|
|
25
|
+
appDataEntityId,
|
|
26
|
+
deUILogicId,
|
|
27
|
+
}));
|
|
25
28
|
}
|
|
26
29
|
if (!uiLogicMap.has(deUILogic)) {
|
|
27
30
|
uiLogicMap.set(deUILogic, new UILogic(deUILogic));
|
|
28
31
|
}
|
|
29
|
-
ibiz.log.debug(
|
|
32
|
+
ibiz.log.debug(ibiz.i18n.t('runtime.uiLogic.startExecutingInterfaceLogic', {
|
|
33
|
+
appDataEntityId,
|
|
34
|
+
name: deUILogic.name,
|
|
35
|
+
}));
|
|
30
36
|
const uiLogic = uiLogicMap.get(deUILogic);
|
|
31
37
|
const result = await uiLogic.exec(parameters);
|
|
32
|
-
ibiz.log.debug(
|
|
38
|
+
ibiz.log.debug(ibiz.i18n.t('runtime.uiLogic.endExecutionInterfaceLogic', {
|
|
39
|
+
appDataEntityId,
|
|
40
|
+
name: deUILogic.name,
|
|
41
|
+
}));
|
|
33
42
|
return result;
|
|
34
43
|
}
|
package/out/ui-logic/ui-logic-link/ui-logic-link-group-cond/ui-logic-link-group-cond.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ui-logic-link-group-cond.d.ts","sourceRoot":"","sources":["../../../../src/ui-logic/ui-logic-link/ui-logic-link-group-cond/ui-logic-link-group-cond.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,uBAAuB,EACxB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,0CAA0C,CAAC;AAC3E,OAAO,EAAE,qBAAqB,EAAE,MAAM,wDAAwD,CAAC;AAE/F;;;;;;;;GAQG;AACH,qBAAa,oBAAqB,SAAQ,eAAe;IAqCpC,KAAK,EAAE,uBAAuB;IApCjD;;;;;;;;OAQG;IACH,SAAS,KAAK,EAAE,IAAI,KAAK,GAAG,IAAI,CAE/B;IAED;;;;;;;;OAQG;IACH,SAAS,KAAK,OAAO,IAAI,OAAO,CAE/B;IAED;;;;;;;OAOG;IACH,SAAS,CAAC,KAAK,EAAE,CAAC,qBAAqB,GAAG,oBAAoB,CAAC,EAAE,CAAC;gBAE/C,KAAK,EAAE,uBAAuB;IAUjD;;;;;;;;;OASG;IACH,IAAI,CAAC,GAAG,EAAE,cAAc,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,GAAG,OAAO;
|
|
1
|
+
{"version":3,"file":"ui-logic-link-group-cond.d.ts","sourceRoot":"","sources":["../../../../src/ui-logic/ui-logic-link/ui-logic-link-group-cond/ui-logic-link-group-cond.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,uBAAuB,EACxB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,0CAA0C,CAAC;AAC3E,OAAO,EAAE,qBAAqB,EAAE,MAAM,wDAAwD,CAAC;AAE/F;;;;;;;;GAQG;AACH,qBAAa,oBAAqB,SAAQ,eAAe;IAqCpC,KAAK,EAAE,uBAAuB;IApCjD;;;;;;;;OAQG;IACH,SAAS,KAAK,EAAE,IAAI,KAAK,GAAG,IAAI,CAE/B;IAED;;;;;;;;OAQG;IACH,SAAS,KAAK,OAAO,IAAI,OAAO,CAE/B;IAED;;;;;;;OAOG;IACH,SAAS,CAAC,KAAK,EAAE,CAAC,qBAAqB,GAAG,oBAAoB,CAAC,EAAE,CAAC;gBAE/C,KAAK,EAAE,uBAAuB;IAUjD;;;;;;;;;OASG;IACH,IAAI,CAAC,GAAG,EAAE,cAAc,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,GAAG,OAAO;CAgCnE"}
|
|
@@ -56,9 +56,9 @@ export class UILogicLinkGroupCond extends UILogicLinkCond {
|
|
|
56
56
|
* @return {*} {boolean}
|
|
57
57
|
*/
|
|
58
58
|
test(ctx, context, data) {
|
|
59
|
-
let bol =
|
|
59
|
+
let bol = this.op !== 'OR';
|
|
60
60
|
if (this.conds.length === 0) {
|
|
61
|
-
throw new RuntimeModelError(this.model,
|
|
61
|
+
throw new RuntimeModelError(this.model, ibiz.i18n.t('runtime.uiLogic.interfaceConnectionConditional'));
|
|
62
62
|
}
|
|
63
63
|
for (let i = 0; i < this.conds.length; i++) {
|
|
64
64
|
const cond = this.conds[i];
|
|
@@ -75,7 +75,10 @@ export class UILogicLinkGroupCond extends UILogicLinkCond {
|
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
77
|
const result = this.notMode ? !bol : bol;
|
|
78
|
-
ibiz.log.debug(
|
|
78
|
+
ibiz.log.debug(ibiz.i18n.t('runtime.uiLogic.connectionConditionGroup', {
|
|
79
|
+
name: this.model.name,
|
|
80
|
+
id: this.model.id,
|
|
81
|
+
}), result);
|
|
79
82
|
return result;
|
|
80
83
|
}
|
|
81
84
|
}
|
package/out/ui-logic/ui-logic-link/ui-logic-link-single-cond/ui-logic-link-single-cond.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ui-logic-link-single-cond.d.ts","sourceRoot":"","sources":["../../../../src/ui-logic/ui-logic-link/ui-logic-link-single-cond/ui-logic-link-single-cond.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAE1D,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAExD,OAAO,EAAE,eAAe,EAAE,MAAM,0CAA0C,CAAC;AAE3E;;;;;;;;GAQG;AACH,qBAAa,qBAAsB,SAAQ,eAAe;IAmCrC,KAAK,EAAE,sBAAsB;IAlChD;;;;;;OAMG;IACH,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAE3B;;;;;;OAMG;IACH,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAE1B,IAAI,QAAQ,IAAI,MAAM,CAErB;IAED,IAAI,EAAE,IAAI,MAAM,CAEf;IAED,IAAI,IAAI,IAAI,MAAM,GAAG,SAAS,CAE7B;IAED,IAAI,KAAK,IAAI,MAAM,GAAG,SAAS,CAE9B;gBAEkB,KAAK,EAAE,sBAAsB;IAMhD;;;;;;;;;OASG;IACH,IAAI,CAAC,GAAG,EAAE,cAAc,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,GAAG,OAAO;
|
|
1
|
+
{"version":3,"file":"ui-logic-link-single-cond.d.ts","sourceRoot":"","sources":["../../../../src/ui-logic/ui-logic-link/ui-logic-link-single-cond/ui-logic-link-single-cond.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAE1D,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAExD,OAAO,EAAE,eAAe,EAAE,MAAM,0CAA0C,CAAC;AAE3E;;;;;;;;GAQG;AACH,qBAAa,qBAAsB,SAAQ,eAAe;IAmCrC,KAAK,EAAE,sBAAsB;IAlChD;;;;;;OAMG;IACH,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAE3B;;;;;;OAMG;IACH,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAE1B,IAAI,QAAQ,IAAI,MAAM,CAErB;IAED,IAAI,EAAE,IAAI,MAAM,CAEf;IAED,IAAI,IAAI,IAAI,MAAM,GAAG,SAAS,CAE7B;IAED,IAAI,KAAK,IAAI,MAAM,GAAG,SAAS,CAE9B;gBAEkB,KAAK,EAAE,sBAAsB;IAMhD;;;;;;;;;OASG;IACH,IAAI,CAAC,GAAG,EAAE,cAAc,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,GAAG,OAAO;CAgEnE"}
|
|
@@ -50,7 +50,7 @@ export class UILogicLinkSingleCond extends UILogicLinkCond {
|
|
|
50
50
|
switch (this.type) {
|
|
51
51
|
case 'ENTITYFIELD': {
|
|
52
52
|
if (!this.value) {
|
|
53
|
-
throw new RuntimeModelError(this.model, '
|
|
53
|
+
throw new RuntimeModelError(this.model, ibiz.i18n.t('runtime.uiLogic.currentConditionValue'));
|
|
54
54
|
}
|
|
55
55
|
// 数据对象属性
|
|
56
56
|
const value = data[this.value] != null ? data[this.value] : context[this.value];
|
|
@@ -60,7 +60,7 @@ export class UILogicLinkSingleCond extends UILogicLinkCond {
|
|
|
60
60
|
}
|
|
61
61
|
case 'SRCENTITYFIELD': {
|
|
62
62
|
if (!this.value) {
|
|
63
|
-
throw new RuntimeModelError(this.model, '
|
|
63
|
+
throw new RuntimeModelError(this.model, ibiz.i18n.t('runtime.uiLogic.sourceDataObjectAttribute'));
|
|
64
64
|
}
|
|
65
65
|
// 源数据对象属性
|
|
66
66
|
const srcVal = handleSrcVal(ctx, {
|
|
@@ -72,12 +72,18 @@ export class UILogicLinkSingleCond extends UILogicLinkCond {
|
|
|
72
72
|
break;
|
|
73
73
|
}
|
|
74
74
|
case 'CURTIME': // 当前时间
|
|
75
|
-
throw new ModelError(this.model,
|
|
75
|
+
throw new ModelError(this.model, ibiz.i18n.t('runtime.uiLogic.currentTime'));
|
|
76
76
|
default: // 直接使用目标对象参数属性和值做对比
|
|
77
77
|
compareValue = this.value;
|
|
78
78
|
result = testCond(dstVal, this.op, this.value);
|
|
79
79
|
}
|
|
80
|
-
ibiz.log.debug(
|
|
80
|
+
ibiz.log.debug(ibiz.i18n.t('runtime.uiLogic.interfaceConnectionConditionalTypeName', {
|
|
81
|
+
name: this.model.name,
|
|
82
|
+
type: this.type,
|
|
83
|
+
dstField: this.dstField,
|
|
84
|
+
}), dstVal, ibiz.i18n.t('runtime.deLogic.deLogicLink.comparisonCondition', {
|
|
85
|
+
op: this.op,
|
|
86
|
+
}), ibiz.i18n.t('runtime.deLogic.deLogicLink.comparisonValue'), compareValue, ibiz.i18n.t('runtime.deLogic.deLogicLink.compareResults'), result);
|
|
81
87
|
return result;
|
|
82
88
|
}
|
|
83
89
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ui-logic-link.d.ts","sourceRoot":"","sources":["../../../src/ui-logic/ui-logic-link/ui-logic-link.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAAE,oBAAoB,EAAE,MAAM,qDAAqD,CAAC;AAE3F;;;;;;;GAOG;AACH,qBAAa,WAAW;IAmCH,KAAK,EAAE,cAAc;IAlCxC;;;;;;OAMG;IACH,OAAO,EAAE,WAAW,GAAG,IAAI,CAAQ;IAEnC;;;;;;OAMG;IACH,OAAO,EAAE,WAAW,GAAG,IAAI,CAAQ;IAEnC;;;;;;OAMG;IACH,SAAS,EAAE,oBAAoB,GAAG,IAAI,CAAQ;IAE9C;;;;;;OAMG;gBACgB,KAAK,EAAE,cAAc;IASxC;;;;;;;;;;OAUG;IACG,IAAI,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ui-logic-link.d.ts","sourceRoot":"","sources":["../../../src/ui-logic/ui-logic-link/ui-logic-link.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAAE,oBAAoB,EAAE,MAAM,qDAAqD,CAAC;AAE3F;;;;;;;GAOG;AACH,qBAAa,WAAW;IAmCH,KAAK,EAAE,cAAc;IAlCxC;;;;;;OAMG;IACH,OAAO,EAAE,WAAW,GAAG,IAAI,CAAQ;IAEnC;;;;;;OAMG;IACH,OAAO,EAAE,WAAW,GAAG,IAAI,CAAQ;IAEnC;;;;;;OAMG;IACH,SAAS,EAAE,oBAAoB,GAAG,IAAI,CAAQ;IAE9C;;;;;;OAMG;gBACgB,KAAK,EAAE,cAAc;IASxC;;;;;;;;;;OAUG;IACG,IAAI,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,OAAO,CAAC;CAuClD"}
|
|
@@ -74,13 +74,13 @@ export class UILogicLink {
|
|
|
74
74
|
case 1: // 默认连接
|
|
75
75
|
return true;
|
|
76
76
|
case 2: // 异步结束
|
|
77
|
-
throw new ModelError(this.model,
|
|
77
|
+
throw new ModelError(this.model, ibiz.i18n.t('runtime.uiLogic.asynchronousTermination'));
|
|
78
78
|
case 3: // 异步拒绝
|
|
79
|
-
throw new ModelError(this.model,
|
|
79
|
+
throw new ModelError(this.model, ibiz.i18n.t('runtime.uiLogic.asynchronousRejection'));
|
|
80
80
|
case 9: // 异常处理
|
|
81
|
-
throw new ModelError(this.model,
|
|
81
|
+
throw new ModelError(this.model, ibiz.i18n.t('runtime.uiLogic.exceptionHandling'));
|
|
82
82
|
default:
|
|
83
|
-
throw new ModelError(this.model,
|
|
83
|
+
throw new ModelError(this.model, ibiz.i18n.t('runtime.uiLogic.logicalLinkTypes', { linkMode }));
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
86
|
}
|