super-page-runtime 2.3.22-tmp3 → 2.3.22-tmp4
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/package.json +1 -2
- package/dist/lib/_virtual/_plugin-vue_export-helper.cjs +0 -1
- package/dist/lib/assets/chart-themes/bar-theme.cjs +0 -1
- package/dist/lib/assets/chart-themes/bar-theme.d.ts +0 -6
- package/dist/lib/assets/chart-themes/gauge-theme.cjs +0 -1
- package/dist/lib/assets/chart-themes/gauge-theme.d.ts +0 -6
- package/dist/lib/assets/chart-themes/pie-theme.cjs +0 -1
- package/dist/lib/assets/chart-themes/pie-theme.d.ts +0 -6
- package/dist/lib/assets/chart-themes/radar-theme.cjs +0 -1
- package/dist/lib/assets/chart-themes/radar-theme.d.ts +0 -6
- package/dist/lib/assets/chart-themes/scatter-theme.cjs +0 -1
- package/dist/lib/assets/chart-themes/scatter-theme.d.ts +0 -6
- package/dist/lib/assets/file.png.cjs +0 -1
- package/dist/lib/assets/folder.png.cjs +0 -1
- package/dist/lib/components/runtime/index.d.ts +0 -5
- package/dist/lib/components/runtime/utils/ai-chat-util.cjs +0 -1
- package/dist/lib/components/runtime/utils/anchor-util.cjs +0 -1
- package/dist/lib/components/runtime/utils/anchor-util.d.ts +0 -13
- package/dist/lib/components/runtime/utils/api/api-util.d.ts +0 -1
- package/dist/lib/components/runtime/utils/api/page-expose-util.cjs +0 -1
- package/dist/lib/components/runtime/utils/api/page-expose-util.d.ts +0 -1
- package/dist/lib/components/runtime/utils/assemblys-config.cjs +0 -1
- package/dist/lib/components/runtime/utils/barcode-util.cjs +0 -1
- package/dist/lib/components/runtime/utils/barcode-util.d.ts +0 -8
- package/dist/lib/components/runtime/utils/charts/chart-columnline-util.cjs +0 -2
- package/dist/lib/components/runtime/utils/charts/chart-gauge-util.cjs +0 -1
- package/dist/lib/components/runtime/utils/charts/chart-pie-util.cjs +0 -2
- package/dist/lib/components/runtime/utils/charts/chart-radar-util.cjs +0 -1
- package/dist/lib/components/runtime/utils/charts/chart-scatter-util.cjs +0 -1
- package/dist/lib/components/runtime/utils/charts/chart-util.cjs +0 -1
- package/dist/lib/components/runtime/utils/charts/chart-util.d.ts +0 -115
- package/dist/lib/components/runtime/utils/common-util.cjs +0 -1
- package/dist/lib/components/runtime/utils/common-util.d.ts +0 -33
- package/dist/lib/components/runtime/utils/eventBus.cjs +0 -1
- package/dist/lib/components/runtime/utils/eventBus.d.ts +0 -7
- package/dist/lib/components/runtime/utils/events/event-util.cjs +0 -1
- package/dist/lib/components/runtime/utils/events/event-util.d.ts +0 -92
- package/dist/lib/components/runtime/utils/events/print-label.cjs +0 -1
- package/dist/lib/components/runtime/utils/events/print-label.d.ts +0 -5
- package/dist/lib/components/runtime/utils/events/standard-event.cjs +0 -1
- package/dist/lib/components/runtime/utils/events/standard-event.d.ts +0 -99
- package/dist/lib/components/runtime/utils/events/validator-util.cjs +0 -1
- package/dist/lib/components/runtime/utils/events/validator-util.d.ts +0 -25
- package/dist/lib/components/runtime/utils/form/date-shortcuts.cjs +0 -1
- package/dist/lib/components/runtime/utils/form/date-shortcuts.d.ts +0 -7
- package/dist/lib/components/runtime/utils/form/scan-util.cjs +0 -1
- package/dist/lib/components/runtime/utils/global-refs.cjs +0 -1
- package/dist/lib/components/runtime/utils/global-refs.d.ts +0 -65
- package/dist/lib/components/runtime/utils/i18n-util.cjs +0 -1
- package/dist/lib/components/runtime/utils/i18n-util.d.ts +0 -1
- package/dist/lib/components/runtime/utils/interfaces/page-design-types.cjs +0 -1
- package/dist/lib/components/runtime/utils/interfaces/page-design-types.d.ts +0 -247
- package/dist/lib/components/runtime/utils/page-helper-util.cjs +0 -1
- package/dist/lib/components/runtime/utils/page-helper-util.d.ts +0 -174
- package/dist/lib/components/runtime/utils/page-init-util.cjs +0 -1
- package/dist/lib/components/runtime/utils/page-init-util.d.ts +0 -49
- package/dist/lib/components/runtime/utils/page-permission-util.cjs +0 -1
- package/dist/lib/components/runtime/utils/page-permission-util.d.ts +0 -26
- package/dist/lib/components/runtime/utils/page-store.cjs +0 -1
- package/dist/lib/components/runtime/utils/page-store.d.ts +0 -58
- package/dist/lib/components/runtime/utils/store-util.cjs +0 -1
- package/dist/lib/components/runtime/utils/store-util.d.ts +0 -15
- package/dist/lib/components/runtime/utils/store.cjs +0 -1
- package/dist/lib/components/runtime/utils/store.d.ts +0 -2
- package/dist/lib/components/runtime/utils/table-utils.cjs +0 -1
- package/dist/lib/components/runtime/utils/table-utils.d.ts +0 -36
- package/dist/lib/components/runtime/utils/tree-utils.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/button/button/button-runtime.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/button/button/button-runtime.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-homepage-search.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/chart/pie/pie-runtime.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/chart/radar/radar-runtime.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/chart/table/chart-table-util.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/chart/table/chart-table-util.d.ts +0 -121
- package/dist/lib/components/runtime/views/assemblys/chart/table/group-column-item.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/chart/table/group-column-item.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/chart/table/group-column.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/chart/table/group-column.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/chart/table/normal-column.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/chart/table/normal-column.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/chart/table/table-pageination.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/chart/table/table-pageination.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/chart/table/table-runtime.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/chart/table/table-runtime.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/common/event-call-component.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/common/event-call-component.vue.d.ts +0 -5
- package/dist/lib/components/runtime/views/assemblys/common/event-call-component.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue.d.ts +0 -28
- package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/common/file-task-notice.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/common/file-task-notice.vue.d.ts +0 -27
- package/dist/lib/components/runtime/views/assemblys/common/file-task-notice.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/common/format-file-task-notice-message.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/common/format-file-task-notice-message.vue.d.ts +0 -59
- package/dist/lib/components/runtime/views/assemblys/common/format-file-task-notice-message.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/common/remove-signer-dialog.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/common/remove-signer-dialog.vue.d.ts +0 -35
- package/dist/lib/components/runtime/views/assemblys/common/remove-signer-dialog.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/common/remove-signer-table.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/common/remove-signer-table.vue.d.ts +0 -26
- package/dist/lib/components/runtime/views/assemblys/common/remove-signer-table.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/common/remove-transactor-dialog.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/common/remove-transactor-dialog.vue.d.ts +0 -35
- package/dist/lib/components/runtime/views/assemblys/common/remove-transactor-dialog.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.d.ts +0 -31
- package/dist/lib/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/common/task-informition-dialog.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/common/task-informition-dialog.vue.d.ts +0 -26
- package/dist/lib/components/runtime/views/assemblys/common/task-informition-dialog.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/container/card/card-runtime.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/container/card/card-runtime.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/container/container/container-runtime.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/container/container/container-runtime.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/container/fixed/FixedBox.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/container/fixed/FixedBox.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/container/fixed/YxAffix.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/container/fixed/YxAffix.vue.d.ts +0 -94
- package/dist/lib/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/container/flex/flex-runtime.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/container/form/form-runtime.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/container/form/form-runtime.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/container/tools/tools-runtime.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/data/table/main-table-runtime.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/data/table/main-table-runtime.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/data/table/sub-table-runtime.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/data/table/table-runtime.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/data/table/table-runtime.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/data/tree/tree-runtime.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/error-render.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/error-render.vue.d.ts +0 -22
- package/dist/lib/components/runtime/views/assemblys/error-render.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/form/common/title-suffix-element.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/form/common/title-suffix-element.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/form/custom/custom-runtime.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/form/divider/divider-runtime.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/form/label/label-runtime.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/form/label/label-runtime.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/form/link/link-runtime.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/form/link/link-runtime.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/form/radio/radio-runtime.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/form/select/select-runtime.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/form/select/select-runtime.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/form/switch/switch-runtime.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/form/tag/tag-runtime.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/home-chart-render.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/home-chart-render.vue.d.ts +0 -17
- package/dist/lib/components/runtime/views/assemblys/home-chart-render.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/object-render.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/object-render.vue.d.ts +0 -17
- package/dist/lib/components/runtime/views/assemblys/object-render.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/page-bottom.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/page-bottom.vue.d.ts +0 -14
- package/dist/lib/components/runtime/views/assemblys/page-bottom.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue.d.ts +0 -14
- package/dist/lib/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/home-chart.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/home-chart.vue.d.ts +0 -23
- package/dist/lib/components/runtime/views/home-chart.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/super-page-dialog.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/super-page-dialog.vue.d.ts +0 -40
- package/dist/lib/components/runtime/views/super-page-dialog.vue3.cjs +0 -1
- package/dist/lib/components/runtime/views/super-page.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/super-page.vue.d.ts +0 -135
- package/dist/lib/components/runtime/views/super-page.vue2.cjs +0 -1
- package/dist/lib/favicon.ico +0 -0
- package/dist/lib/i18n/langs/cn.cjs +0 -1
- package/dist/lib/i18n/langs/en.cjs +0 -1
- package/dist/lib/index.cjs +0 -1
- package/dist/lib/index.d.ts +0 -16
- package/dist/lib/style.css +0 -1
- package/dist/umd/favicon.ico +0 -0
- package/dist/umd/index.full.min.js +0 -3
- package/dist/umd/style.css +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("../common-util.cjs"),m=require("agilebuilder-ui"),P=require("element-plus"),G=require("../global-refs.cjs"),O=require("../eventBus.cjs"),X=require("axios"),j=require("./event-util.cjs"),ge=require("../store-util.cjs"),V=require("../page-init-util.cjs"),J=require("../page-helper-util.cjs"),Ae=require("./print-label.cjs"),Q=require("../table-utils.cjs"),fe=require("./validator-util.cjs"),xe=require("../api/page-expose-util.cjs"),Ce=require("../page-store.cjs"),Ue=require("vue"),Oe=require("../../views/assemblys/common/file-task-notice.vue.cjs"),Be={save:function(e){return be(e,!1)},saveList:function(e){return be(e,!0)},exportForm:function(e){const t=e.pageContext.code+"_";O.$emit(t+"export-form-report",e)},exportPDF:function(e){const t=e.pageContext.code+"_";O.$emit(t+"export-pdf-report",e)},submit:function(e){return Y(e,!1,"submit","/dsc/commons/submits")},submitList:function(e){return Y(e,!0,"submit","/dsc/commons/batch-submits")},agree:function(e){return Y(e,!1,"agree","/dsc/commons/approves")},agreeList:function(e){return Y(e,!0,"agree","/dsc/commons/batch-approves")},disagree:function(e){return Y(e,!1,"disagree","/dsc/commons/refuses")},disagreeList:function(e){return Y(e,!0,"disagree","/dsc/commons/batch-refuses")},back:function(e){const t=e.pageContext,s=t.entity?t.entity.data:{},a=!(!e.configureObj.props||!e.configureObj.props.base)&&e.configureObj.props.base.isNeedValueMapping;de(t,e.configureObj,s,a)},delete:function(e){return function(t){return new Promise((s,a)=>{const o=t.ids;if(!o||o.length===0)return P.ElMessage({showClose:!0,type:"warning",message:m.getI18n().t("superPageRuntimeMessage.pleaseSelectRecord")}),void s(!0);P.ElMessageBox.confirm(m.getI18n().t("superPageRuntimeMessage.whetherToConfirmDeletion"),m.getI18n().t("superPageRuntimeMessage.tips"),{confirmButtonText:m.getI18n().t("superPageRuntimeMessage.sure"),cancelButtonText:m.getI18n().t("superPageRuntimeMessage.cancel"),type:"warning"}).then(()=>{var y,v,N;const i=t.pageContext,r=t.configureObj,c=r.props.base,u=i.systemCode,d=i.backendUrl,p=r.props.base.tableUuid?r.props.base.tableUuid:t.tableUuid,n=Q.getTableNameByTableUuid(i,p);let l=g.getBaseUrl(d,i.isTest)+"/dsc/commons/"+n;l=g.getRealRestApiPath(l,u,d,i.isTest);const f=c.isPermission===void 0||c.isPermission==="true"||c.isPermission,h=g.isWorkflowPage(i),C=V.getPermissionCodes(r,i),b={ids:o,functionCode:C,isPermission:f+"",systemCode:u,isWorkflowEntity:h,listCodesMap:i.listCodesMap,pageCode:i.code,pageVersion:i.version};i.beanName&&(b.beanName=i.beanName);const w=r.props.deleteLogicSetting;w&&(typeof w=="object"?b.deleteLogicSetting=JSON.stringify(w):typeof w=="string"&&(b.deleteLogicSetting=w));const T=(y=r.props.base)==null?void 0:y.logSetting;T&&(b.logSettingText=T.join(""));const M=r.props.base.isSafeDelete;M&&(b.isSafeDelete=M);const k=(N=(v=r.runtime)==null?void 0:v.props)==null?void 0:N.title;k&&(b.currentOperation=k),b.isMobile=m.isMobileBrowser(),m.http.delete(l,{data:b}).then(R=>{const E=G.getComponentRef(i,p);E&&(E.isDeleteChange(!0),E.clearSelections()),q(i,r,R,"superPageRuntimeMessage.successfulDelete",!0),s(!0)}).catch(R=>{a(R)})}).catch(()=>{a()})})}(e)},downloadTemplate:function(e){(function(t){var k,y,v;const s=t.pageContext,a=t.configureObj,o=a.props.base,i=g.packageTemplateFiles(o.templateFiles,s,a);let r,c;i&&i.length>0&&(r=i[0].templateUuid,c=i[0].templateName);const u=s.systemCode,d=s.backendUrl,p=c;let n="?1=1";r&&p&&r!=="undefined"&&p!=="undefined"&&r!=="null"&&p!=="null"?n+="&fileName="+encodeURI(r)+"&showName="+encodeURI(p):p?n+="&showName="+encodeURI(p):s.label&&(n+="&showName="+encodeURI(s.label)+".xlsx");const l=(k=a.props.base)==null?void 0:k.logSetting;l&&(n+="&logSettingText="+l.join("")),u&&(n+="&systemCode="+u);const f=t.listCode;f&&(n+="&listCode="+f),s.beanName&&(n+="&beanName="+s.beanName);const h=V.getPermissionCodes(a,s);h&&(n+="&functionCode="+h),s.tableName&&(n+="&tableName="+s.tableName),s.code&&(n+="&pageCode="+s.code),s.version&&(n+="&pageVersion="+s.version);const C=m.getToken();C&&(n+="&JWT="+C);const b=(v=(y=a.runtime)==null?void 0:y.props)==null?void 0:v.title;b&&(n+="¤tOperation="+encodeURI(b)),n+="&isMobile="+m.isMobileBrowser();const w="_RUN_CURRENT_ROLE",T=m.getSessionCache(w);T&&(n+="&"+w+"="+T),o&&(n+="&isPermission="+(o.isPermission===void 0||o.isPermission==="true"||o.isPermission));const M=g.getBaseUrl(d,s.isTest);window.open(M+"/dsc/commons/download-files"+n)})(e)},import:function(e){const t=e.pageContext.code+"_";O.$emit(t+"import-file",e)},export:function(e){return function(t){return new Promise((s,a)=>{var w,T,M,k,y,v,N,R,E,A,I,S;const o=t.pageContext,i=t.configureObj,r=i.props.base,c=t.listCode,u=t.selections,d={};u&&u.length>0&&(d.data=u);let p=o.label;p||(p=o.code);let n=!1;n=r.isAsync!==void 0&&r.isAsync!==null&&r.isAsync;const l=r.isPermission===void 0||r.isPermission==="true"||r.isPermission,f=V.getPermissionCodes(i,o),h=p,C={backendUrl:o.backendUrl,pageContext:o},b=(T=(w=i.runtime)==null?void 0:w.props)==null?void 0:T.title;b&&(C.currentOperation=b),C.isShowWatermark=((k=(M=i.props)==null?void 0:M.watermark)==null?void 0:k.isShowWatermark)===void 0?"true":((v=(y=i.props)==null?void 0:y.watermark)==null?void 0:v.isShowWatermark)+"",C.watermarkContent=(R=(N=i.props)==null?void 0:N.watermark)!=null&&R.content&&((A=(E=i.props)==null?void 0:E.watermark)==null?void 0:A.content.length)>0?(S=(I=i.props)==null?void 0:I.watermark)==null?void 0:S.content.join("-~"):"",window.$vueApp.config.globalProperties.$exportDataNew(d,h,c,f,null,C,n,o.code,l),n&&setTimeout(()=>{pe(o)},100)})}(e)},search:function(e){const t=e.pageContext,s=e.tableUuid;G.getComponentRef(t,s).refresh()},showSearch:function(e){const t=e.pageContext,s=e.tableUuid;G.getComponentRef(t,s).showMobileSearch()},workflowSave:function(e){return O.$emit("clearTableAllStartEditing"),async function(t){return new Promise((s,a)=>{const o=t.pageContext,i=o.entity.data,r=o.systemCode,c=o.backendUrl;let u=g.getBaseUrl(c,o.isTest)+"/dsc/workflow-commons";if(u=g.getRealRestApiPath(u,r,c,o.isTest),!u)return void P.ElMessage({showClose:!0,type:"warning",message:m.getI18n().t("superPageRuntimeMessage.requestPathEmpty")});const d=B(t);let p;p=i.id||i.ID?m.http.put(u,d):m.http.post(u,d),p.then(n=>{let l=!0;n&&(l=$(n,!1,o,t,null)),l===!0&&P.ElMessage({showClose:!0,type:"success",message:m.getI18n().t("superPageRuntimeMessage.successfulSave")}),O.$emit("clearTableAllEndEditing"),s(!0)}).catch(n=>{a(n)})})}(e)},workflowStart:function(e){return O.$emit("clearTableAllStartEditing"),async function(t){return new Promise((s,a)=>{const o=t.pageContext,i=o.entity.data,r=o.systemCode,c=o.backendUrl;let u=g.getBaseUrl(c,o.isTest)+"/dsc/workflow-commons/start";if(u=g.getRealRestApiPath(u,r,c,o.isTest),!u)return void P.ElMessage({showClose:!0,type:"warning",message:m.getI18n().t("superPageRuntimeMessage.requestPathEmpty")});const d=B(t);let p;i.workflow_id||i.WORKFLOW_ID?(u=g.getBaseUrl(c,o.isTest)+"/dsc/workflow-commons",u=g.getRealRestApiPath(u,r,c,o.isTest),p=m.http.put(u,d)):p=m.http.post(u,d),p.then(n=>{let l=!0;n&&(l=$(n,!1,o,t,null)),l===!0&&P.ElMessage({showClose:!0,type:"success",message:m.getI18n().t("superPageRuntimeMessage.successfulStart")}),O.$emit("clearTableAllEndEditing"),s(!0)}).catch(n=>{a(n)})})}(e)},submitProcess:function(e){return O.$emit("clearTableAllStartEditing"),function(t){return new Promise((s,a)=>{const o=t.pageContext,i=o.systemCode,r=o.backendUrl;let c=g.getBaseUrl(r,o.isTest)+"/dsc/workflow-commons/submit";if(c=g.getRealRestApiPath(c,i,r,o.isTest),!c)return void P.ElMessage({showClose:!0,type:"warning",message:m.getI18n().t("superPageRuntimeMessage.requestPathEmpty")});const u=B(t),d=m.http.post(c,u);d&&d.then(p=>{let n=!0;p&&(n=$(p,!1,o,t,null)),n===!0&&P.ElMessage({showClose:!0,type:"success",message:m.getI18n().t("superPageRuntimeMessage.successfulSubmit")}),O.$emit("clearTableAllEndEditing"),s(!0)}).catch(p=>{a(p)})})}(e)},submitTask:function(e){return H(e,"SUBMIT")},approve:function(e){return H(e,"APPROVE")},refuse:function(e){return H(e,"REFUSE")},readed:function(e){return H(e,"READED")},agreement:function(e){return H(e,"AGREEMENT")},oppose:function(e){return H(e,"OPPOSE")},kiken:function(e){return H(e,"KIKEN")},assign:function(e){return function(t){const s=t.pageContext,a=s.code+"_";O.$emit(a+"assign-task",t)}(e)},copyTask:function(e){return function(t){const s=t.pageContext,a=s.code+"_";O.$emit(a+"copy-task",t)}(e)},addSigner:function(e){return function(t){const s=t.pageContext,a=s.code+"_";O.$emit(a+"add-signer",t)}(e)},drawTask:function(e){return function(t){const s=t.pageContext,a=s.backendUrl,o=g.getBaseUrl(a,s.isTest)+"/dsc/workflow-commons/draw-tasks",i=B(t);return L(t,i,o,"superPageRuntimeMessage.successfulDrawTask")}(e)},abandonReceive:function(e){return function(t){const s=t.pageContext,a=s.backendUrl,o=g.getBaseUrl(a,s.isTest)+"/dsc/workflow-commons/abandon-receives",i=B(t);return L(t,i,o,"superPageRuntimeMessage.successfulAbandonReceive")}(e)},returnToPreviousTask:function(e){return function(t){const s=t.pageContext,a=s.backendUrl,o=g.getBaseUrl(a,s.isTest)+"/dsc/workflow-commons/return-to-previous-tasks",i=B(t);return L(t,i,o,"superPageRuntimeMessage.successfulReturnToPreviousTask")}(e)},endInstance:function(e){return function(t){const s=t.pageContext,a=s.backendUrl,o=g.getBaseUrl(a,s.isTest)+"/dsc/workflow-commons/end-instance",i=B(t);return L(t,i,o,"superPageRuntimeMessage.successfulEndInstance")}(e)},returnTaskTo:function(e){return function(t){const s=t.pageContext,a=s.code+"_";O.$emit(a+"choose-return-node",t)}(e)},removeSigner:function(e){return function(t){const s=t.pageContext,a=s.code+"_";O.$emit(a+"remove-signer",t)}(e)},retrieveTask:function(e){return function(t){const s=t.pageContext,a=s.backendUrl,o=g.getBaseUrl(a,s.isTest)+"/dsc/workflow-commons/retrieves",i=B(t);return L(t,i,o,"superPageRuntimeMessage.successfulRetrieve")}(e)},extractWorkflow:function(e){return Me(e)},extractWorkflowEvent:function(e){return function(t){const s=t.pageContext;O.$emit(s.code+"_event-call-component",{componentName:"extract-workflow-dialog",componentProps:{pageContext:t.pageContext,configure:t.configureObj}})}(e)},cancelExtractWorkflow:function(e){return function(t){const s=t.pageContext,a=s.backendUrl,o=g.getBaseUrl(a,s.isTest)+"/dsc/workflow-commons/cancel-extract",i=B(t);return L(t,i,o,"superPageRuntimeMessage.successfulCancelExtract")}(e)},approveExtractWorkflow:function(e){return function(t){const s=t.pageContext,a=s.backendUrl,o=g.getBaseUrl(a,s.isTest)+"/dsc/workflow-commons/approve-extract",i=B(t);return L(t,i,o,"superPageRuntimeMessage.successfulOperation")}(e)},refuseExtractWorkflow:function(e){return function(t){const s=t.pageContext,a=s.backendUrl,o=g.getBaseUrl(a,s.isTest)+"/dsc/workflow-commons/refuse-extract",i=B(t);return L(t,i,o,"superPageRuntimeMessage.successfulOperation")}(e)},viewDetail:function(e){},lineEditCreate:function(e){return function(t){const s=t.pageContext,a=t.tableUuid,o=G.getComponentRef(s,a);o&&(t.getDefaultValueFunc=V.getDefaultValue,o.createRow(t.listCode,{},t))}(e)},printLabel:function(e){return function(t){let s=null;try{if(s=t.menuItem?t.menuItem.templateUuid:t.configureObj.props.base.template[0].templateUuid,!s)throw new Error("未找到模板")}catch(a){console.error("打印标签失败,未在配置中找到找到模板",a,t)}Ae.default.printLabel(t,s)}(e)},queryCharts:function(e){he(e)},resetCharts:function(e){var s,a;const t=e.pageContext;Object.assign(t.entity.data,g.deepCopy((s=t.initChartData)==null?void 0:s.data)),Object.assign(t.entity.page,g.deepCopy((a=t.initChartData)==null?void 0:a.page)),e.isInitChart=!0,he(e)},exportCharts:function(e){(function(t){var C,b,w,T,M,k,y,v,N,R,E,A;const s=t.pageContext,a=s.allChartUuids;if(!a||a.length==0)return;const o=t.configureObj;let i=null;o&&o.runtime&&(i=o.runtime.props);const r=i?i.state:void 0;i&&(i.state="disabled");const c=[];for(let I=0;I<a.length;I++){const S=a[I],x=G.getComponentRef(s,S);if(x){const U=x.getConfigure();U&&U.exportable&&U._dynamicShowFlag&&x.exportChart&&c.push(x.exportChart())}}if(!c||c.length==0)return;let u,d=s.label;d||(d=s.code),u=d;const p={reportDataList:c,beanName:s.beanName,systemCode:s.systemCode,pageCode:s.code},n=F(s);p.additionalParamMap=n;const l=(b=(C=o.runtime)==null?void 0:C.props)==null?void 0:b.title;l&&(p.currentOperation=l),p.isMobile=m.isMobileBrowser(),p.isShowWatermark=((T=(w=o.props)==null?void 0:w.watermark)==null?void 0:T.isShowWatermark)===void 0?"true":((k=(M=o.props)==null?void 0:M.watermark)==null?void 0:k.isShowWatermark)+"",p.watermark=(v=(y=o.props)==null?void 0:y.watermark)!=null&&v.content&&((R=(N=o.props)==null?void 0:N.watermark)==null?void 0:R.content.length)>0?(A=(E=o.props)==null?void 0:E.watermark)==null?void 0:A.content.join("-~"):"";const f=s.backendUrl,h=g.getBaseUrl(f,s.isTest)+"/dsc/commons/exportChart";le(),X.post(h,p,{responseType:"blob"}).then(I=>{const S=document.createElement("a");S.style.display="none",S.href=URL.createObjectURL(I.data),S.setAttribute("download",u+".xlsx"),document.body.appendChild(S),S.click(),document.body.removeChild(S)}).finally(()=>{i&&(i.state=r)})})(e)},saveQueryCharts:function(e){(function(t){const s=t.pageContext,a=t.configureObj,o=s.code+"_";O.$emit(o+"save-chart-condition",{pageContext:s,configureObj:a})})(e)},addTransactor:function(e){return function(t){const s=t.pageContext,a=s.code+"_";O.$emit(a+"add-transactor",t)}(e)},removeTransactor:function(e){return function(t){const s=t.pageContext,a=s.code+"_";O.$emit(a+"remove-transactor",t)}(e)}};function he(e){const t=e.pageContext,s=t.initChartServiceConfigs;if(!s||s.length==0)return;const a=e.configureObj;let o=null;a&&a.runtime&&(o=a.runtime.props);const i=o?o.state:void 0;o&&(o.state="disabled"),J.updateChartDatasources(t,s,void 0,e.isInitChart).then(()=>{o&&(o.state=i)}).catch(()=>{o&&(o.state=i)})}function le(){X.defaults.headers.common.Authorization=m.getToken();const e=m.getRunCurrentRole();if(e){const t="_RUN_CURRENT_ROLE";X.defaults.headers.common[t]=e}}function be(e,t){return new Promise((s,a)=>{const o=e.pageContext,i=e.configureObj,r=e.mainDefaultValueColumns,c=e.dynamicColumnInfo,u=i.props.base.successOperation;let d=!1;u&&u==="noOperation"&&(d=!0);const p=ye(o,i,"/dsc/commons",d,r,c);p?p.then(n=>{q(o,i,n,"superPageRuntimeMessage.successfulSave",t),s(n)}).catch(n=>{a(n)}):a("保存时request不存在")})}function Te(e,t,s,a,o,i,r){var M,k,y;const c=g.isWorkflowPage(e),u=e.systemCode,d=t.props.base.isPermission===void 0||t.props.base.isPermission==="true"||t.props.base.isPermission,p=V.getPermissionCodes(t,e);let n=r;n||(n=e.entity.data);const l={entity:n,tableName:e.tableName,formNoRuleCode:e.formNoRuleCode,isWorkflowEntity:c,functionCode:p,isPermission:d+"",listCodesMap:e.listCodesMap,pageCode:e.code,pageVersion:e.version,listCodesInitSearchForm:e.listCodesInitSearchForm};i&&(l.ids=i),e.judgeHeavyList&&(g.isArrayFn(e.judgeHeavyList)?l.judgeHeavyList=JSON.stringify(e.judgeHeavyList):l.judgeHeavyList=e.judgeHeavyList);const f=t.props.base.conversionCodes;f&&(g.isArrayFn(f)?l.dataConversionRule=f.join(","):typeof f=="string"&&(l.dataConversionRule=f));const h=me(t);h&&(l.autoSetValueData=h);const C=(M=t.props.base)==null?void 0:M.logSetting;C&&(l.logSettingText=C.join("")),l.systemCode||(l.systemCode=u);const b=e.beanName;b&&(l.beanName=b),o&&(l.dynamicColumnInfo=o),a&&(l.mainDefaultValueColumns=a);const w=F(e);l.additionalParamMap=w,s!==void 0&&(l.unControlVersion=s);const T=(y=(k=t.runtime)==null?void 0:k.props)==null?void 0:y.title;return T&&(l.currentOperation=T),l.isMobile=m.isMobileBrowser(),l}function ke(e,t,s,a,o,i,r,c){const u=e.systemCode,d=e.backendUrl,p=Te(e,t,a,o,i,null,r);return c&&c.tableName&&(p.tableName=c.tableName),function(n,l,f,h,C,b){const w=g.getBaseUrl(l,b);let T,M=w+h;return M=g.getRealRestApiPath(M,n,l,b),T=C&&(C.id||C.ID)?m.http.put(M,f):m.http.post(M,f),T}(u,d,p,s,e.entity.data,e.isTest)}function ye(e,t,s,a,o,i){return ke(e,t,s,a,o,i,null,null)}function q(e,t,s,a,o){const i=Pe(e,t,o);if(i&&i==="list")(function(r,c,u,d){let p=c.props.base.successOperation;const n=c.props.base.isNeedValueMapping,l=j.getTableUuid(r,c);if(p||_e.includes(c.name)||(p="refresh"),p==="refresh")l?G.getComponentRef(r,l).refresh():console.error("tableUuid is empty");else if(p==="closeWindow"||p==="closeWindowAndRefresh"){const f=g.deepCopy(r.entity.page);let h=u;h||(h={}),Object.assign(f,h),de(r,c,f,n)}d&&P.ElMessage({message:m.getI18n().t(d),type:"success",showClose:!0})})(e,t,s,a),e.canClick=!0;else if(i&&i==="form")(function(r,c,u,d){if(u){const p=u;let n;n=p.entity?p.entity:p,p.formNo&&(r.initFormNo=p.formNo),ie(r,c,{...n,...r.entity.page})}else{const p=c.props.base.successOperation;p&&p!==null?ie(r,c,{...r.entity.page}):r.canClick=!0}d&&P.ElMessage({message:m.getI18n().t(d),type:"success",showClose:!0})})(e,t,s,a);else{const r=t.props.base.successOperation;r&&r!==null?ie(e,t,null):e.canClick=!0}}function Pe(e,t,s){let a;return s===void 0?a=t.props.base.tableUuid?"list":null:s===!1&&(a="form"),a||(a=e.pageType),a}function ie(e,t,s){const a=t.props.base.successOperation;if(!a||a===null)return;const o=t.props.base.isNeedValueMapping;a==="noOperation"?e.canClick=!0:a==="refresh"?s&&(s.id||s.ID)?ue(e,s.ID?s.ID:s.id):e.canClick=!0:a!=="closeWindow"&&a!=="closeWindowAndRefresh"||(de(e,t,s,o),e.canClick=!0)}function de(e,t,s,a){const o=e.entity&&e.entity.request?e.entity.request.jumpMode:null;if(o==="openWindow"||o==="newTab")window.parent?window.parent.close():window.close();else{const i=e.tableName,r=a!==void 0&&a===!0&&s&&s!==void 0,c=(e.entity&&e.entity.request?e.entity.request.parentPageCode:null)+"_";O.$emit(c+"close-dialog",{isNeedValueMapping:r,dataModel:s,sourceConfigureObj:t,sourceTableName:i,jumpMode:o})}}const _e=["dropdown"];function Y(e,t,s,a){return new Promise((o,i)=>{const r=e.pageContext,c=e.configureObj,u=e.mainDefaultValueColumns,d=e.dynamicColumnInfo,p=e.ids,n=c.props.base.successOperation;let l=!1;n&&n==="noOperation"&&(l=!0);let f=r.tableName;if(t){const C=c.props.base.tableUuid?c.props.base.tableUuid:e.tableUuid;f=Q.getTableNameByTableUuid(r,C)}const h=function(C,b,w,T,M,k,y,v,N){return new Promise((R,E)=>{const A=b.props.base.title,I="superPageRuntimeMessage.whetherToConfirm"+g.upperFirstCase(y);P.ElMessageBox.confirm(m.getI18n().t(I,{name:A}),m.getI18n().t("superPageRuntimeMessage.tips"),{confirmButtonText:m.getI18n().t("superPageRuntimeMessage.sure"),cancelButtonText:m.getI18n().t("superPageRuntimeMessage.cancel"),type:"warning"}).then(()=>{const S=C.systemCode,x=C.backendUrl,U=Te(C,b,T,M,k,v,null);U.tableName=N;let W=g.getBaseUrl(x,C.isTest)+w;W=g.getRealRestApiPath(W,S,x,C.isTest),m.http.post(W,U).then(D=>{R(D)}).catch(D=>{E(D)})}).catch(()=>{E("点击了取消按钮")})})}(r,c,a,l,u,d,s,p,f);h?h.then(C=>{q(r,c,C,"superPageRuntimeMessage.successfulSave",t),o(C)}).catch(C=>{i(C)}):i("request不存在")})}function B(e){var h,C,b;const t=e.pageContext,s=e.configureObj,a=t.entity.data,o=t.systemCode,i=t.code;let r=V.getPermissionCodes(s,t);r||(r=i+".xxx"),a.id||a.ID||(a.PAGE_CODE=t.code,a.PAGE_VERSION=t.version);const c={entity:a,pageMoel:t.entity.page,formNoRuleCode:t.formNoRuleCode,tableName:t.tableName,emailTemplateCode:t.emailTemplateCode,definitionId:t.definitionId,functionCode:r,systemCode:o,listCodesMap:t.listCodesMap,pageCode:t.code,pageVersion:t.version,listCodesInitSearchForm:t.listCodesInitSearchForm};t.completeTaskParam&&(c.completeTaskParam={taskId:t.completeTaskParam.taskId,opinion:t.completeTaskParam.opinion}),t.judgeHeavyList&&(g.isArrayFn(t.judgeHeavyList)?c.judgeHeavyList=JSON.stringify(t.judgeHeavyList):c.judgeHeavyList=t.judgeHeavyList);const u=s.props.base.conversionCodes;u&&(g.isArrayFn(u)?c.dataConversionRule=u.join(","):typeof u=="string"&&(c.dataConversionRule=u));const d=me(s);d&&(c.autoSetValueData=d),t.beanName&&(c.beanName=t.beanName);const p=(h=s.props.base)==null?void 0:h.logSetting;p&&(c.logSettingText=p.join("")),c.systemCode||(c.systemCode=o);const n=F(t);c.additionalParamMap=n,n.ids&&n.ids.length>0&&(typeof n.ids=="string"?c.ids=n.ids.split(","):Array.isArray(n.ids)?c.ids=n.ids:typeof ids=="number"?c.ids=[n.ids]:console.error("ids参数类型错误"));const l=s.props.base.successOperation;l&&l==="noOperation"&&(c.unControlVersion=!0),c.isWorkflowEntity=!0;const f=(b=(C=s.runtime)==null?void 0:C.props)==null?void 0:b.title;return f&&(c.currentOperation=f),c.isMobile=m.isMobileBrowser(),c}function $(e,t,s,a,o){const i=s.code,r=s.version;let c;if(e){t&&(s.initFormNo=e.formNo,s.emailTemplateCode=e.emailTemplateCode),e.entity&&(s.entity.data=e.entity,function(d,p){const n=F(p);d&&n&&m.setSessionCache(n._t_+"_id",d)}(e.entity.id||e.entity.ID,s));const u=e.completeTaskResult;if(u){const d=u.completeTaskTipType;if(d&&d==="MESSAGE"){const p=u.content;return P.ElMessage({showClose:!0,type:"warning",message:p}),!1}}if(e.completeTaskParam){const d=e.completeTaskParam;c=d.taskId,a&&(a.taskId=c),ge.setStoreInfo(i,r,"_completeTaskParam",d),s.fieldPermissions=d.fieldPermissions,s.actionPermissions=d.actionPermissions,s.workflowButtonComponent=d.buttonComponent,s.completeTaskParam=d,s.completeTaskParam.opinion=null}s.entity||(s.entity={}),s.entity.task=e.taskParamMap,ge.setStoreInfo(i,r,"_currentActivityName",e.taskName)}return a&&(a.operationResult=o),t||q(s,a.configureObj,e,null,!1),!0}async function H(e,t){const s=await Re(e);return new Promise((a,o)=>{var i;if(s){const r=e.pageContext,c=r.systemCode,u=r.backendUrl,d=s===!0?(i=r.completeTaskParam)==null?void 0:i.opinion:s;let p=g.getBaseUrl(u,r.isTest)+"/dsc/workflow-commons/complete-tasks";if(p=g.getRealRestApiPath(p,c,u,r.isTest),!p)return void P.ElMessage({showClose:!0,type:"warning",message:m.getI18n().t("superPageRuntimeMessage.requestPathEmpty")});const n=B(e);n.completeTaskParam={operationResult:t,taskId:r.completeTaskParam?r.completeTaskParam.taskId:null,opinion:d||null},m.http.post(p,n).then(l=>{let f=!0;l&&(f=$(l,!1,r,e,t)),f===!0&&P.ElMessage({showClose:!0,type:"success",message:m.getI18n().t("superPageRuntimeMessage.successfulCompleteTask")}),a(!0)}).catch(l=>{o(l)})}else a(!0)})}function Re(e){return new Promise((t,s)=>{var o,i,r,c,u;const a=e.configureObj;if(a){if((o=e.pageContext.workflowOpinion)!=null&&o.opinion)return void t(e.pageContext.workflowOpinion.opinion);let d=!1;if((r=(i=a.props)==null?void 0:i.base)!=null&&r.isMustOpinion&&(d=!0),d===!0){const p=e.pageContext,n=(u=(c=a.props)==null?void 0:c.base)==null?void 0:u.mustOpinionConditions;d=J.caculateShowCondition(p,n)}d===!0?(P.ElMessage({showClose:!0,type:"warning",message:m.getI18n().t("superPageRuntimeMessage.pleaseInputOpinion")}),e.pageContext.workflowOpinion.focusOpinionInput=!0,t(!1)):t(!0)}else t(!0)})}function re(e){var p,n;const t=e.pageContext,s=t.entity.data,a=t.systemCode,o=t.code,i=e.configureObj,r=F(t),c=s.ID!==void 0&&s.ID!==null?s.ID:s.id,u={beanName:t.beanName,id:c,entity:s,additionalParamMap:r,tableName:t.tableName,functionCode:o+".xxx",isWorkflowEntity:!0,listCodesMap:t.listCodesMap,pageCode:t.code,pageVersion:t.version,listCodesInitSearchForm:t.listCodesInitSearchForm};u.completeTaskParam={taskId:t.completeTaskParam.taskId,systemCode:a},u.completeTaskParam.customTaskTitle=Ie(e);const d=(n=(p=i==null?void 0:i.runtime)==null?void 0:p.props)==null?void 0:n.title;return d&&(u.currentOperation=d),u.isMobile=m.isMobileBrowser(),u}function Ie(e){var s,a,o;let t=null;if(((a=(s=e.configureObj.props.task)==null?void 0:s.title)==null?void 0:a.length)>0)for(let i=0;i<e.configureObj.props.task.title.length;i++){const r=e.configureObj.props.task.title[i];if(r.config){if(!(((o=r.conditions)==null?void 0:o.length)>0)){t=r.config;break}if(J.caculateShowCondition(e.pageContext,r.conditions)){t=r.config;break}}}return t}function F(e){if(e.entity){let t=g.deepCopy(e.entity.page);t||(t={});const s=e.entity.request;return s&&Object.assign(t,s),t}}async function L(e,t,s,a){const o=await Re(e);return new Promise((i,r)=>{var c;if(o){const u=e.pageContext,d=u.systemCode,p=u.backendUrl;if(u.completeTaskParam){const l=o===!0?(c=u.completeTaskParam)==null?void 0:c.opinion:o;t.completeTaskParam={taskId:u.completeTaskParam.taskId,opinion:l}}if(!(s=g.getRealRestApiPath(s,d,p,u.isTest)))return void P.ElMessage({showClose:!0,type:"warning",message:m.getI18n().t("superPageRuntimeMessage.requestPathEmpty")});const n=m.http.post(s,t);n&&n.then(l=>{let f=!0;l&&(f=$(l,!1,u,e,null)),f===!0&&P.ElMessage({showClose:!0,type:"success",message:m.getI18n().t(a)}),i(!0)}).catch(l=>{r(l)})}else i(!0)})}function Me(e){const t=e.pageContext,s=t.backendUrl;let a=g.getBaseUrl(s,t.isTest)+"/dsc/workflow-commons/initiate-extract";const o=B(e);if(t.completeTaskParam){const i=[];e._value.loginName&&i.push(e._value.loginName),o.completeTaskParam={taskId:t.completeTaskParam.taskId,opinion:e._value.opinion,transactors:i,customTaskTitle:Ie(e)}}return new Promise((i,r)=>{const c=e.pageContext,u=c.systemCode,d=c.backendUrl;if(a=g.getRealRestApiPath(a,u,d,c.isTest),!a)return void P.ElMessage({showClose:!0,type:"warning",message:m.getI18n().t("superPageRuntimeMessage.requestPathEmpty")});const p=m.http.post(a,o);p&&p.then(n=>{let l=!0;n&&(l=$(n,!1,c,e,null)),l===!0&&P.ElMessage({showClose:!0,type:"success",message:m.getI18n().t("superPageRuntimeMessage.successfulInitiateExtract")}),i(!0)}).catch(n=>{r(n)})})}function je(e,t,s){return!(!e.processState||e.processState!=="EXTRACT"||e.active!=="WAIT_TRANSACT")}function ue(e,t){e.entity.page||(e.entity.page={}),e.entity.page._isRefresh=!0,ve(e,t).then(s=>{e.isRefresh=!0})}function ve(e,t,s){const a=e.pageType;return a&&a==="form"?(e.canClick=!1,g.isWorkflowPage(e)?function(o,i,r){return new Promise((c,u)=>{const d=o.systemCode,p=o.code,n=o.version,l=F(o);let f=i||null,h=i?[i]:null;r===void 0||r?(f||(f=l&&l.id?l.id:null),h||(h=l?l.ids:null)):(f=null,h=null,l._id=l.id,l.id=null);const C=l?l.taskId:null,b=p,w={pageCode:p,pageVersion:n,tableName:o.tableName,formNoRuleCode:o.formNoRuleCode,isWorkflowEntity:!0,systemCode:d,functionCode:b+".workflowGets",listCodesMap:o.listCodesMap,listCodesInitSearchForm:o.listCodesInitSearchForm};if(o.listCodesMap,(!o.listCodesMap||Object.keys(o.listCodesMap).length===0)&&o.tableUuids){const k={};o.tableUuids.forEach(y=>{const v=g.getListCode(p,n,y);k[v]=v}),w.listCodesMap=k}h&&(w.ids=we(h)),C?w.taskId=C:f?w.id=f:(l&&l._t_&&m.getSessionCache(l._t_+"_id")&&(w.id=m.getSessionCache(l._t_+"_id")),o.notIdInitializationList&&(w.noIdAndTaskIdInitSetting=JSON.stringify(o.notIdInitializationList))),l&&(w.additionalParamMap=l),o.beanName&&(w.beanName=o.beanName),o.refercePropMap&&(w.refercePropMap=o.refercePropMap);const T=g.getBaseUrl(o.backendUrl,o.isTest)+"/dsc/workflow-commons/gets",M=Ce.usePageContextStore();M.restorePageLoadState(),j.handleEvent(null,o,o,"beforeFormLoadData"),m.http.post(T,w).then(k=>{o.workflowOpinion={showOpinionBox:!1},o.definitionId=k.definitionId,o.entity.task=k.taskParamMap,o.dataTypeMaps=k.dataTypeMap,$(k,!0,o),o.workflowRules=fe.getWorkflowRules(o);const y=o.pageType;y&&y==="form"&&function(v){(function(N){const R=new Map,E=N.fieldPermissions;if(E!==void 0)for(let A=0;A<E.length;A++){const I=E[A].name;if(I)if(I.indexOf("$")===0&&I.indexOf(".")>0){const S=E[A],x=JSON.parse(JSON.stringify(S)),U=I.substring(1,I.indexOf(".")),W=I.substring(I.indexOf(".")+1);if(x.name=W,x&&x.name==="all_fields")x.canEdit===!1?x.rowIndexes?R.set(U,[{name:"all_fields",canEdit:!1,rowIndexes:x.rowIndexes}]):R.set(U,[{name:"all_fields",canEdit:!1}]):x.rowIndexes?R.set(U,[{name:"all_fields",canEdit:!0,rowIndexes:x.rowIndexes}]):R.set(U,[{name:"all_fields",canEdit:!0}]);else{let D=R.get(U);D||(D=[]),D.push(x),R.set(U,D)}}else R.set(I,E[A])}N.fieldPermissionMap=R})(v),function(N){const R=N.fieldPermissionMap,E=new Map,A=N.actionPermissions;A!=null&&Object.keys(A).forEach(I=>{const S=A[I],x=R.get(I);if(x&&x.length>0&&x[0].name==="all_fields"&&x[0].canEdit===!1)S.canUpdate=!1,S.canAdd=!1;else{S&&Object.keys(S.deleteCondition).length!==0||(S.deleteCondition=null),S&&Object.keys(S.updateCondition).length!==0||(S.updateCondition=null);const U=S.canUpdate,W=S.updateRowIndexes;U!==void 0&&U===!1&&W!=null&&W.length>0&&R.set(I,[{name:"all_fields",canEdit:!1,rowIndexes:W}])}E.set(I,S)}),N.actionPermissionMap=E}(v)}(o),o.canClick=!0,j.handleEvent(null,o,o,"afterFormLoadData"),M.setFormPageDataLoadState(!0),c(k)}).catch(k=>{o.canClick=!0,u(k)})})}(e,t,s):function(o,i,r){return new Promise((c,u)=>{const d=o.systemCode,p=o.code,n=o.version,l=F(o);let f=i||null,h=i?[i]:null;r===void 0||r?(f||(f=l&&l.id?l.id:null),h||(h=l?l.ids:null)):(f=null,h=null,l._id=l.id,l.id=null);const C=l?l.taskId:null,b=p,w=g.getBaseUrl(o.backendUrl,o.isTest),T={pageCode:p,pageVersion:n,tableName:o.tableName,formNoRuleCode:o.formNoRuleCode,id:f,systemCode:d,functionCode:b+".gets",listCodesMap:o.listCodesMap,listCodesInitSearchForm:o.listCodesInitSearchForm};if(!T.id&&l&&l._t_&&m.getSessionCache(l._t_+"_id")&&(T.id=m.getSessionCache(l._t_+"_id")),h&&(T.ids=we(h)),o.notIdInitializationList&&(T.noIdAndTaskIdInitSetting=JSON.stringify(o.notIdInitializationList)),l&&(T.additionalParamMap=l),o.beanName&&(T.beanName=o.beanName),C&&(T.taskId=C),o.listCodesMap,(!o.listCodesMap||Object.keys(o.listCodesMap).length===0)&&o.tableUuids){const y={};o.tableUuids.forEach(v=>{const N=g.getListCode(p,n,v);y[N]=N}),T.listCodesMap=y}o.refercePropMap&&(T.refercePropMap=o.refercePropMap);const M=w+"/dsc/commons/gets",k=Ce.usePageContextStore();k.restorePageLoadState(),j.handleEvent(null,o,o,"beforeFormLoadData"),m.http.post(M,T).then(y=>{y&&(o.entity.data=y.entity,o.initFormNo=y.formNo);const v=o.customRules,N=o.rules,R=fe.packageCustomRules(o,v,N);o.rules=R,o.canClick=!0,j.handleEvent(null,o,o,"afterFormLoadData"),k.setFormPageDataLoadState(!0),c(y)}).catch(y=>{o.canClick=!0,u(y)})})}(e,t,s)):new Promise((o,i)=>{o(!0)})}function we(e){return e&&(typeof e=="string"?e=e.split(","):typeof e=="number"&&(e=[e])),e}function me(e){const t=e.props.setValueList;if(t){if(g.isArrayFn(t)&&t.length>0)return JSON.stringify(t);if(typeof t=="string"&&t!=="[]")return t}return null}function pe(e){e.exportNoticeInfo&&(e.exportNoticeInfo.noticeInterval&&clearInterval(e.exportNoticeInfo.noticeInterval),e.exportNoticeInfo.noticeComponent=null,e.exportNoticeInfo.noticeInterval=null),e.exportNoticeInfo={},Ne(e.exportNoticeInfo,e.backendUrl,e.code)}function Se(e,t,s){e.lastFileTask&&!e.noticeComponent?e.noticeComponent=P.ElNotification({title:m.getI18n().t("superPageRuntimeMessage.logTip"),duration:0,position:"top-right",type:"success",onClose(){e.lastFileTask.taskState==="Success"||e.lastFileTask.taskState==="Fail"||e.lastFileTask.taskState==="PartSuccess"?ce(t,s,e.lastFileTask.id,e):(e.noticeComponent=null,e.noticeInterval==null&&Ne(e,t,s))},message:()=>Ue.h(Oe,{isShow:!0,backendUrl:t,lastFileTask:e.lastFileTask,onClickMsg(a){a.serverPath?function(o,i,r,c,u,d){ce(u,d,r,c);const p=m.getToken(),n=g.getBaseUrl(u),l=n+"/common/super-form/downloads?jwt="+p+"&showName="+encodeURI(o)+"&serverPath="+i;window.open(l)}(a.fileName,a.serverPath,a.id,e,t,s):ce(t,s,a.id,e),e.noticeComponent.close(),e.noticeComponent=null}})}):(e.noticeComponent!=null&&(e.noticeComponent.close(),e.noticeComponent=null),e.noticeInterval&&(clearInterval(e.noticeInterval),e.noticeInterval=null))}function Ne(e,t,s){e.noticeInterval||(e.noticeInterval=setInterval(()=>{e.noticeComponent||function(a,o,i){Ee(o,i).then(r=>{a.lastFileTask=r,Se(a,o,i)})}(e,t,s)},3e3))}function Ee(e,t){return Q.getCurrentUserFileTasks(e,t)}function ce(e,t,s,a){Q.setFileTaskRead(e,s).then(()=>{(function(o,i,r){Ee(i,r).then(c=>{o.lastFileTask=c,Se(o,i,r)})})(a,e,t)})}exports.dealAfterOperate=q,exports.dealCompleteTaskParam=$,exports.deleteChartCondition=function(e){const t=window.$vueApp.config.globalProperties.baseAPI+"/component/chart-search-condition/"+e;return m.http.delete(t)},exports.doAddSigner=function(e,t){if(t){const s=e.pageContext,a=e.configureObj,o=s.systemCode,i=s.backendUrl;let r=g.getBaseUrl(i,s.isTest)+"/dsc/workflow-commons/add-signers";if(r=g.getRealRestApiPath(r,o,i,s.isTest),!r)return void P.ElMessage({showClose:!0,type:"warning",message:m.getI18n().t("superPageRuntimeMessage.requestPathEmpty")});const c=re(e);c.completeTaskParam.transactors=t.loginNames.join(",").split(",");const u=m.http.post(r,c);u&&u.then(d=>{P.ElMessage({showClose:!0,type:"success",message:m.getI18n().t("superPageRuntimeMessage.successfulOperation")}),d.entity&&q(s,a,d,null,!1),j.doAfterClickEvent(s,a)})}},exports.doAddTransactor=function(e,t){if(t){const s=e.pageContext,a=e.configureObj,o=s.systemCode,i=s.backendUrl;let r=g.getBaseUrl(i,s.isTest)+"/dsc/workflow-commons/add-transactors";if(r=g.getRealRestApiPath(r,o,i,s.isTest),!r)return void P.ElMessage({showClose:!0,type:"warning",message:m.getI18n().t("superPageRuntimeMessage.requestPathEmpty")});const c=re(e);c.completeTaskParam.transactors=t.loginNames.join(",").split(",");const u=m.http.post(r,c);u&&u.then(d=>{P.ElMessage({showClose:!0,type:"success",message:m.getI18n().t("superPageRuntimeMessage.successfulOperation")}),d.entity&&q(s,a,d,null,!1),j.doAfterClickEvent(s,a)})}},exports.doAssign=function(e,t){if(t){const s=e.pageContext,a=e.configureObj,o=s.backendUrl,i=g.getBaseUrl(o,s.isTest)+"/dsc/workflow-commons/assigns",r=t.id?t.id:t.ID?t.ID:null,c=B(e);c.assigneeId=r,L(e,c,i,"superPageRuntimeMessage.successfulAssign").then(u=>{j.doAfterClickEvent(s,a)})}},exports.doCreateCopyTask=async function(e,t){if(t){const s=await function(a){return new Promise((o,i)=>{var c,u,d,p;const r=a.configureObj;if(r){let n=(u=(c=r.props)==null?void 0:c.base)==null?void 0:u.isMustRemark;if(n===void 0||n===!0){n=!0;const l=a.pageContext,f=(p=(d=r.props)==null?void 0:d.base)==null?void 0:p.mustRemarkConditions;n=J.caculateShowCondition(l,f)}n===!0?P.ElMessageBox.prompt(m.getI18n().t("superPageRuntimeMessage.pleaseInputRemark"),m.getI18n().t("superPageRuntimeMessage.remark"),{confirmButtonText:m.getI18n().t("superPageRuntimeMessage.sure"),cancelButtonText:m.getI18n().t("superPageRuntimeMessage.cancel"),inputType:"textarea",inputValue:null,closeOnClickModal:!1,inputValidator:l=>!(!l||!l.trim())||m.getI18n().t("superPageRuntimeMessage.pleaseInputRemark")}).then(({value:l})=>{o(l)}).catch(()=>{o(!1)}):o(!0)}else o(!0)})}(e);if(s){const a=e.pageContext,o=e.configureObj,i=a.systemCode,r=a.backendUrl;let c=g.getBaseUrl(r,a.isTest)+"/dsc/workflow-commons/copies";if(c=g.getRealRestApiPath(c,i,r,a.isTest),!c)return void P.ElMessage({showClose:!0,type:"warning",message:m.getI18n().t("superPageRuntimeMessage.requestPathEmpty")});const u=re(e);u.completeTaskParam.transactors=t.loginNames.join(",").split(","),s!==!0&&(u.completeTaskParam.remark=s);const d=m.http.post(c,u);d&&d.then(p=>{P.ElMessage({showClose:!0,type:"success",message:m.getI18n().t("superPageRuntimeMessage.successfulOperation")}),j.doAfterClickEvent(a,o)})}}},exports.doFileTaskFunc=pe,exports.doImportFinally=function(e,t){var N,R,E;const s=e.pageContext,a=e.configureObj,o=e.tableConfigure,i=a.props.base,r=a.props.base.tableUuid?a.props.base.tableUuid:e.tableUuid,c=Q.getTableNameByTableUuid(s,r),u=new FormData;u.append("multipartFile",t),c&&u.append("tableName",c);const d=(R=(N=a.runtime)==null?void 0:N.props)==null?void 0:R.title;d&&u.append("currentOperation",d),u.append("isMobile",m.isMobileBrowser()),s.importBeanName&&u.append("importBeanName",s.importBeanName),s.beanName&&u.append("beanName",s.beanName);const p=(E=o.props.importSetting)==null?void 0:E.listViewImportDuplicate;p&&u.append("importDuplicateRule",p);const n=s.judgeHeavyList;n&&u.append("judgeHeavyList",JSON.stringify(n));const l=me(a);l&&u.append("autoSetValueData",l);const f=s.formNoRuleCode;f&&u.append("formNoRuleCode",f);const h=e.listCode;h&&u.append("listCode",h);let C=!1;C=i.isAsync!==void 0&&i.isAsync!==null&&i.isAsync,u.append("isAsync",C+""),u.append("pageCode",s.code);const b=g.isWorkflowPage(s);b!=null&&u.append("isWorkflowEntity",b+"");const w=V.getPermissionCodes(a,s);w&&u.append("functionCode",w);const T=F(s);u.append("additionalParamMapStr",JSON.stringify(T));const M=i.isPermission===void 0||i.isPermission==="true"||i.isPermission;u.append("isPermission",M+"");const k=s.systemCode;k&&u.append("systemCode",k);const y=s.backendUrl;let v=g.getBaseUrl(y,s.isTest)+"/dsc/commons/import-data";v=g.getRealRestApiPath(v,k,y,s.isTest),m.http.post(v,u).then(A=>{if(C)P.ElMessage({showClose:!0,type:"success",message:m.getI18n().t("superPageRuntimeMessage.asyncImport")}),pe(s);else{let I=!1;A?(I=!1,P.ElMessage({dangerouslyUseHTMLString:!0,showClose:!0,type:"warning",message:A})):(P.ElMessage({showClose:!0,type:"success",message:m.getI18n().t("superPageRuntimeMessage.successfulImport")}),I=!0),q(s,a,A,null,!0),s.result=I,j.doAfterClickEvent(s,a)}}).catch(A=>{})},exports.doRemoveSigners=function(e,t){if(t){const s=e.pageContext,a=e.configureObj,o=s.systemCode,i=s.backendUrl;let r=g.getBaseUrl(i,s.isTest)+"/dsc/workflow-commons/remove-signers";if(r=g.getRealRestApiPath(r,o,i,s.isTest),!r)return void P.ElMessage({showClose:!0,type:"warning",message:m.getI18n().t("superPageRuntimeMessage.requestPathEmpty")});const c=t.map(p=>p.id?p.id:p.ID?p.ID:null),u=B(e);u.ids=c;const d=m.http.post(r,u);d&&d.then(p=>{q(s,a,p,"superPageRuntimeMessage.successfulOperation",!1),j.doAfterClickEvent(s,a)})}},exports.doRemoveTransactors=function(e,t){if(t){const s=e.pageContext,a=e.configureObj,o=s.systemCode,i=s.backendUrl;let r=g.getBaseUrl(i,s.isTest)+"/dsc/workflow-commons/remove-transactors";if(r=g.getRealRestApiPath(r,o,i,s.isTest),!r)return void P.ElMessage({showClose:!0,type:"warning",message:m.getI18n().t("superPageRuntimeMessage.requestPathEmpty")});const c=t.map(p=>p.taskId),u=B(e);u.ids=c;const d=m.http.post(r,u);d&&d.then(p=>{q(s,a,p,"superPageRuntimeMessage.successfulOperation",!1),j.doAfterClickEvent(s,a)})}},exports.doReturnTaskTo=function(e,t){const s=e.pageContext,a=e.configureObj,o=s.backendUrl,i=g.getBaseUrl(o,s.isTest)+"/dsc/workflow-commons/returnTaskTo",r=B(e);t.nodeName&&(r.returnToNodeName=t.nodeName),t.nodeId&&(r.returnToNodeId=t.nodeId),L(e,r,i,"superPageRuntimeMessage.successfulReturnTaskTo").then(c=>{j.doAfterClickEvent(s,a)})},exports.exportFormReport=function(e,t,s,a){var M,k,y,v,N,R,E,A,I,S,x,U,W;e.clickUuid=t.uuid,e.canClick=!1;const o=s.templateUuid,i=s.templateName,r=e.systemCode,c=(M=t.props.base)==null?void 0:M.logSetting,u=g.isWorkflowPage(e),d=e.beanName,p=t.props.base,n=t.tableName?t.tableName:e.tableName,l=e.backendUrl,f=xe.functions.getFormViewData(e),h=p.isPermission===void 0||p.isPermission==="true"||p.isPermission,C={entity:f,fileName:o,showName:i,beanName:d,isWorkflowForm:u,functionCode:V.getPermissionCodes(t,e),tableName:n,isPermission:h+"",systemCode:r,listCodesMap:e.listCodesMap,pageCode:e.code,pageVersion:e.version,listCodesInitSearchForm:e.listCodesInitSearchForm};c&&(C.logSettingText=c.join(""));const b=(y=(k=t.runtime)==null?void 0:k.props)==null?void 0:y.title;b&&(C.currentOperation=b),C.isMobile=m.isMobileBrowser();const w=F(e);let T;C.additionalParamMap=w,C.isShowWatermark=((N=(v=t.props)==null?void 0:v.watermark)==null?void 0:N.isShowWatermark)===void 0?"true":((E=(R=t.props)==null?void 0:R.watermark)==null?void 0:E.isShowWatermark)+"",C.watermark=(I=(A=t.props)==null?void 0:A.watermark)!=null&&I.content&&((x=(S=t.props)==null?void 0:S.watermark)==null?void 0:x.content.length)>0?(W=(U=t.props)==null?void 0:U.watermark)==null?void 0:W.content.join("-~"):"",T=a?function(D,ee,te,se){return new Promise((oe,ne)=>{const ae=g.getBaseUrl(ee,se)+"/dsc/commons/export-pdf";le();const z=X.post(ae,te,{headers:{"content-type":"application/json"},responseType:"blob"});window.$message.info("正在导出中..."),z.then(K=>{const Z=new Blob([K.data]),_=document.createElement("a");_.download=D.substring(0,D.lastIndexOf("."))+".pdf",_.style.display="none",_.target="_blank",_.href=URL.createObjectURL(Z),document.body.appendChild(_),_.click(),URL.revokeObjectURL(_.href),document.body.removeChild(_),oe(!0)}).catch(K=>{ne(K)})})}(i,l,C,e.isTest):function(D,ee,te,se){return new Promise((oe,ne)=>{const ae=g.getBaseUrl(ee,se)+"/dsc/commons/export-reports";le(),X.post(ae,te,{responseType:"blob"}).then(z=>{const K=new Blob([z.data]);let Z="报告.xlsx";D&&(Z=D);const _=document.createElement("a");_.download=Z,_.style.display="none",_.target="_blank",_.href=URL.createObjectURL(K),document.body.appendChild(_),_.click(),URL.revokeObjectURL(_.href),document.body.removeChild(_),oe(!0)}).catch(z=>{ne(z)})})}(i,l,C,e.isTest),T&&T.then(()=>{j.doAfterClickEvent(e,t)}).catch(D=>{window.$message.error("导出失败..."),j.doAfterClickEvent(e,t)})},exports.extractWorkflowFunc=Me,exports.getAdditionalParamMap=F,exports.getFormData=ve,exports.getRemoveSigner=function(e){const t=e.pageContext,s=t.systemCode,a=t.backendUrl;let o=g.getBaseUrl(a,t.isTest)+"/dsc/workflow-commons/get-remove-signers";const i=B(e);if(o=g.getRealRestApiPath(o,s,a,t.isTest),o)return m.http.post(o,i);P.ElMessage({showClose:!0,type:"warning",message:m.getI18n().t("superPageRuntimeMessage.requestPathEmpty")})},exports.getRemoveTransactor=function(e){const t=e.pageContext,s=t.systemCode,a=t.backendUrl;let o=g.getBaseUrl(a,t.isTest)+"/dsc/workflow-commons/get-remove-transactors";const i=B(e);if(o=g.getRealRestApiPath(o,s,a,t.isTest),o)return m.http.post(o,i);P.ElMessage({showClose:!0,type:"warning",message:m.getI18n().t("superPageRuntimeMessage.requestPathEmpty")})},exports.getSaveFormRequest=ye,exports.getSaveFormRequestWithRow=ke,exports.getTaskInformitions=function(e){const t=e.pageContext,s=t.systemCode,a=t.backendUrl,o=t.completeTaskParam;let i=g.getBaseUrl(a,t.isTest)+"/dsc/workflow-commons/returnable-task/"+o.taskId;if(i=g.getRealRestApiPath(i,s,a,t.isTest),!i)return void P.ElMessage({showClose:!0,type:"warning",message:m.getI18n().t("superPageRuntimeMessage.requestPathEmpty")});const r=t.code,c=F(t),u={beanName:t.beanName,additionalParamMap:c,tableName:t.tableName,functionCode:r+".xxx",pageCode:t.code};return m.http.post(i,u)},exports.isVisibleWorkflowButton=function(e,t,s,a,o,i){var c,u,d,p;let r=!1;if(t&&s&&(t==="workflowSave"?r=function(n){return!!((n.processState===void 0||n.processState===null||n.processState==="UNSUBMIT"&&n.active==="WAIT_TRANSACT"&&n.theTransactor===!0)&&(n.processState===void 0||n.showButtonSave===!0)||n.processState&&n.processState==="SUBMIT"&&n.theTransactor===!0&&n.processingMode!=="TYPE_READ"&&n.showButtonSave&&(n.active==="WAIT_TRANSACT"||n.active==="WAIT_DESIGNATE_TRANSACTOR"||n.active==="WAIT_CHOICE_TACHE"||n.active==="DRAW_WAIT"))}(s):t==="workflowStart"?r=function(n,l){return!!(n.processState===void 0||n.processState===null||l&&!l.workflow_id&&!l.WORKFLOW_ID)}(s,i):t==="submitProcess"?r=function(n){return(n.processState===void 0||n.processState===null||n.processState==="UNSUBMIT"&&n.active==="WAIT_TRANSACT"&&n.theTransactor===!0)&&(n.processState===void 0||n.showButtonSave===!0)}(s):t==="submitTask"?r=function(n){return!!(n.processState&&n.processState==="SUBMIT"&&n.theTransactor===!0&&n.active==="WAIT_TRANSACT"&&n.processingMode==="EDIT")}(s):t==="drawTask"?r=function(n){return!!(n.processState&&n.processState==="SUBMIT"&&n.active&&(n.active==="DRAW_WAIT"||n.active==="DEPT_DRAW_WAIT")&&n.showButtonDraw)}(s):t==="abandonReceive"?r=function(n){return!!(n.processState&&n.processState==="SUBMIT"&&(n.drawTask&&n.active==="WAIT_TRANSACT"||n.canAbandonDeptTask&&n.active==="WAIT_TRANSACT")&&n.showButtonAbandon)}(s):t==="approve"||t==="refuse"?r=function(n){return!!(n.processState&&n.processState==="SUBMIT"&&n.active==="WAIT_TRANSACT"&&(n.processingMode==="APPROVE"||n.processingMode==="COUNTERSIGN"))}(s):t==="readed"?r=function(n){return n.active==="WAIT_TRANSACT"&&n.processingMode==="TYPE_READ"}(s):t==="assign"?r=function(n){return!!(n.processState&&n.processState==="SUBMIT"&&n.processingMode!=="TYPE_READ"&&(n.active==="WAIT_TRANSACT"||n.active==="DRAW_WAIT"))}(s):t==="copyTask"?r=function(n,l){let f=!1;return n.processState&&n.processState==="SUBMIT"&&n.active==="WAIT_TRANSACT"&&n.processingMode!=="TYPE_READ"&&n.showButtonCopy&&(f=!0),l&&(l.props.base.state=f?"":"hidden"),!0}(s,o):t==="addSigner"?r=function(n){return!!(n.processState&&n.processState==="SUBMIT"&&n.active==="WAIT_TRANSACT"&&n.processingMode==="COUNTERSIGN"&&n.showButtonAddCounter)}(s):t==="removeSigner"?r=function(n){return!!(n.processState&&n.processState==="SUBMIT"&&n.active==="WAIT_TRANSACT"&&n.processingMode==="COUNTERSIGN"&&n.showButtonDelCounter)}(s):t==="retrieveTask"?r=function(n){return!!(n.processState&&n.processState!=="END"&&n.processState==="SUBMIT"&&n.showButtonGetBack===!0&&function(l){return!(l.active!=="COMPLETED"||l.processingMode==="TYPE_READ"||!l.showButtonGetBack)}(n))}(s):t==="agreement"||t==="oppose"?r=function(n){return!!(n.processState&&n.processState==="SUBMIT"&&n.active==="WAIT_TRANSACT"&&n.processingMode==="VOTE")}(s):t==="kiken"?r=function(n){return!!(n.processState&&n.processState==="SUBMIT"&&n.active==="WAIT_TRANSACT"&&n.processingMode==="VOTE"&&n.showButtonKiken)}(s):t==="extractWorkflow"?r=function(n,l,f){var b;const h=m.getCurrentUser(),C=h?h.loginName:null;if(n!=null&&n.processState){if(((b=l==null?void 0:l.firstNodeInfo)==null?void 0:b.nodeId)===(f==null?void 0:f.CURRENT_ACTIVITY_ID))return!1;if((n==null?void 0:n.processState)!=="END"&&(n==null?void 0:n.processState)!=="EXTRACT"&&(n==null?void 0:n.processState)!=="MANUAL_END"&&f&&(f.creator===C||f.CREATOR===C))return!0}return!1}(s,a,i):t==="cancelExtractWorkflow"?r=function(n,l,f){const h=m.getCurrentUser(),C=h?h.loginName:null;return!!((n==null?void 0:n.processState)==="EXTRACT"&&f&&(f.creator===C||f.CREATOR===C))}(s,0,i):t==="approveExtractWorkflow"||t==="refuseExtractWorkflow"?r=je(s):t==="addTransactor"||t==="removeTransactor"?r=function(n){return!!(n.processState&&n.processState==="SUBMIT"&&(n.active==="WAIT_TRANSACT"||n.active==="DRAW_WAIT")&&n.processingMode!=="COUNTERSIGN")}(s):function(n,l){return n.processState&&n.processState==="SUBMIT"&&n.processingMode!=="TYPE_READ"&&!function(f){const h=f;let C=!0;return h&&(C=h.taskComplete),C}(l)}(s,a)&&(r=t!=="returnToPreviousTask"||function(n){return!!n.rebuttable}(s))),(o==null?void 0:o.check)&&["submitTask","approve","refuse","agreement","oppose","kiken","extractWorkflow","cancelExtractWorkflow","approveExtractWorkflow","refuseExtractWorkflow","returnToPreviousTask"].indexOf(t)!==-1&&r&&e){e.workflowOpinion?e.workflowOpinion.showOpinionBox=!0:e.workflowOpinion={showOpinionBox:!0};let n=!1;if((u=(c=o.props)==null?void 0:c.base)!=null&&u.isMustOpinion){if(n=!0,n===!0){const l=(p=(d=o.props)==null?void 0:d.base)==null?void 0:p.mustOpinionConditions;n=J.caculateShowCondition(e,l)}e.workflowOpinion.isRequired=n}}return r},exports.judgeDataNumber=function(e,t){const s=e.props.base;if(s.conditionsForExecution&&s.conditionsForExecution!==""){if(s.conditionsForExecution==="one"){if(!t||t.length!==1)return P.ElMessage({showClose:!0,type:"warning",message:m.getI18n().t("superPageRuntimeMessage.thePreconditionOfTheButtonTo",{message:m.getI18n().t("superPageRuntimeMessage.onlyOneRecordCanBeselected")})}),!1}else if(s.conditionsForExecution==="more"&&(!t||t.length<=0))return P.ElMessage({showClose:!0,type:"warning",message:m.getI18n().t("superPageRuntimeMessage.thePreconditionOfTheButtonTo",{message:m.getI18n().t("superPageRuntimeMessage.selectAtLeastOneRecord")})}),!1}return!0},exports.listChartConditions=function(e){const t=e.code,s=window.$vueApp.config.globalProperties.baseAPI+"/component/chart-search-condition/list/"+t;return m.http.get(s)},exports.refreshFormOrListPage=function(e,t,s,a){var r;t&&!t.props.base&&(t.props.base={});let o=a;o||(o=s?"refresh":(r=t.props.base)==null?void 0:r.successOperation);const i=Pe(e,t);if(i&&i==="list"&&!o&&(o="refresh"),o==="refresh"){if(i&&i==="list"){const c=j.getTableUuid(e,t);c?G.getComponentRef(e,c).refresh():console.error("tableUuid is empty")}else if(i&&i==="form"){const c=e.entity.data;ue(e,c.ID?c.ID:c.id)}}},exports.refreshPage=ue,exports.saveChartConditionBase=function(e,t){const s=e.entity?e.entity:{},a={data:s.data,page:s.page},o={pageCode:e.code,queryCondition:JSON.stringify(a),name:t},i=window.$vueApp.config.globalProperties.baseAPI+"/component/chart-search-condition";return m.http.post(i,o)},exports.standardEvents=Be,exports.updateValuesWhenCloseDialog=function(e,t,s,a,o){var r;o||(o=t.runtime&&t.runtime.linkPage&&t.runtime.linkPage.valueMappings?t.runtime.linkPage.valueMappings:null)||(o=(r=t.props.linkPage)==null?void 0:r.valueMappings);const i=e.tableName;(function(c,u,d){if(c&&c!==null&&u){let p=c;Array.isArray(c)&&c.length>0&&(p=c[0]),u.forEach(n=>{const l=n.source;if(!l)return;const f=l.split("."),h=J.getVariableValue(p,f),C=n.target,b=V.getModelFields(null,C);J.setVariableValue(d.entity,b,h)})}})(s,o,e),j.handleEvent(null,e,t,"setValue",{sourceModel:s,sourceTableName:a,entity:e.entity.data,targetTableName:i})};
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
import { PageContext } from '../interfaces/page-design-types';
|
|
2
|
-
|
|
3
|
-
export declare const standardEvents: {
|
|
4
|
-
save: (params: any) => Promise<unknown>;
|
|
5
|
-
saveList: (params: any) => Promise<unknown>;
|
|
6
|
-
exportForm: (params: any) => void;
|
|
7
|
-
exportPDF: (params: any) => void;
|
|
8
|
-
submit: (params: any) => Promise<unknown>;
|
|
9
|
-
submitList: (params: any) => Promise<unknown>;
|
|
10
|
-
agree: (params: any) => Promise<unknown>;
|
|
11
|
-
agreeList: (params: any) => Promise<unknown>;
|
|
12
|
-
disagree: (params: any) => Promise<unknown>;
|
|
13
|
-
disagreeList: (params: any) => Promise<unknown>;
|
|
14
|
-
back: (params: any) => void;
|
|
15
|
-
delete: (params: any) => Promise<unknown>;
|
|
16
|
-
downloadTemplate: (params: any) => void;
|
|
17
|
-
import: (params: any) => void;
|
|
18
|
-
export: (params: any) => Promise<unknown>;
|
|
19
|
-
search: (params: any) => void;
|
|
20
|
-
showSearch: (params: any) => void;
|
|
21
|
-
workflowSave: (params: any) => Promise<unknown>;
|
|
22
|
-
workflowStart: (params: any) => Promise<unknown>;
|
|
23
|
-
submitProcess: (params: any) => Promise<unknown>;
|
|
24
|
-
submitTask: (params: any) => Promise<unknown>;
|
|
25
|
-
approve: (params: any) => Promise<unknown>;
|
|
26
|
-
refuse: (params: any) => Promise<unknown>;
|
|
27
|
-
readed: (params: any) => Promise<unknown>;
|
|
28
|
-
agreement: (params: any) => Promise<unknown>;
|
|
29
|
-
oppose: (params: any) => Promise<unknown>;
|
|
30
|
-
kiken: (params: any) => Promise<unknown>;
|
|
31
|
-
assign: (params: any) => void;
|
|
32
|
-
copyTask: (params: any) => void;
|
|
33
|
-
addSigner: (params: any) => void;
|
|
34
|
-
drawTask: (params: any) => Promise<unknown>;
|
|
35
|
-
abandonReceive: (params: any) => Promise<unknown>;
|
|
36
|
-
returnToPreviousTask: (params: any) => Promise<unknown>;
|
|
37
|
-
endInstance: (params: any) => Promise<unknown>;
|
|
38
|
-
returnTaskTo: (params: any) => void;
|
|
39
|
-
removeSigner: (params: any) => void;
|
|
40
|
-
retrieveTask: (params: any) => Promise<unknown>;
|
|
41
|
-
extractWorkflow: (params: any) => Promise<unknown>;
|
|
42
|
-
extractWorkflowEvent: (params: any) => void;
|
|
43
|
-
cancelExtractWorkflow: (params: any) => Promise<unknown>;
|
|
44
|
-
approveExtractWorkflow: (params: any) => Promise<unknown>;
|
|
45
|
-
refuseExtractWorkflow: (params: any) => Promise<unknown>;
|
|
46
|
-
viewDetail: (params: any) => void;
|
|
47
|
-
lineEditCreate: (params: any) => void;
|
|
48
|
-
printLabel: (params: any) => void;
|
|
49
|
-
queryCharts: (params: any) => void;
|
|
50
|
-
resetCharts: (params: any) => void;
|
|
51
|
-
exportCharts: (params: any) => void;
|
|
52
|
-
saveQueryCharts: (params: any) => void;
|
|
53
|
-
addTransactor: (params: any) => void;
|
|
54
|
-
removeTransactor: (params: any) => void;
|
|
55
|
-
};
|
|
56
|
-
export declare function exportFormReport(pageContext: any, configureObj: any, templateFile: any, isPdf: any): void;
|
|
57
|
-
export declare function getSaveFormRequestWithRow(pageContext: PageContext, configureObj: any, url: string, isUnControlVersion: boolean, mainDefaultValueColumns: any, dynamicColumnInfo: any, row: any, otherParams: any): any;
|
|
58
|
-
export declare function getSaveFormRequest(pageContext: PageContext, configureObj: any, url: any, isUnControlVersion: any, mainDefaultValueColumns: any, dynamicColumnInfo: any): any;
|
|
59
|
-
/**
|
|
60
|
-
* 按钮执行后页面处理方式:刷新、关闭弹框等等
|
|
61
|
-
* @param pageContext
|
|
62
|
-
* @param configureObj
|
|
63
|
-
* @param data
|
|
64
|
-
* @param successTip
|
|
65
|
-
* @param isListButton
|
|
66
|
-
*/
|
|
67
|
-
export declare function dealAfterOperate(pageContext: any, configureObj: any, data: any, successTip: any, isListButton?: boolean): void;
|
|
68
|
-
export declare function updateValuesWhenCloseDialog(parentPageContext: any, parentConfigureObj: any, sourceModel: any, sourceTableName: any, valueMappings?: any): void;
|
|
69
|
-
export declare function refreshFormOrListPage(pageContext: any, configureObj: any, isRefreshWhenClosePopup: any, mySuccessOperation: any): void;
|
|
70
|
-
export declare function doImportFinally(params: any, fileObj: any): void;
|
|
71
|
-
export declare function judgeDataNumber(buttonConfigureObj: any, ids: any): boolean;
|
|
72
|
-
export declare function dealCompleteTaskParam(commonEntity: any, isInit: any, pageContext: any, params?: any, operationResult?: any): boolean;
|
|
73
|
-
export declare function doAssign(params: any, selectNodeInfo: any): void;
|
|
74
|
-
export declare function getAdditionalParamMap(pageContext: any): any;
|
|
75
|
-
export declare function doAddSigner(params: any, selectNodeInfo: any): void;
|
|
76
|
-
export declare function doAddTransactor(params: any, selectNodeInfo: any): void;
|
|
77
|
-
export declare function doCreateCopyTask(params: any, selectNodeInfo: any): Promise<void>;
|
|
78
|
-
export declare function getTaskInformitions(params: any): any;
|
|
79
|
-
export declare function doReturnTaskTo(params: any, selectTaskNode: any): void;
|
|
80
|
-
export declare function getRemoveSigner(params: any): any;
|
|
81
|
-
export declare function doRemoveSigners(params: any, selectRemoveTasks: any): void;
|
|
82
|
-
export declare function getRemoveTransactor(params: any): any;
|
|
83
|
-
export declare function doRemoveTransactors(params: any, selectRemoveTasks: any): void;
|
|
84
|
-
export declare function extractWorkflowFunc(params: any): Promise<unknown>;
|
|
85
|
-
export declare function isVisibleWorkflowButton(pageContext: any, standardEventName: any, buttonInfo: any, completeTaskParam: any, btnConfigure: any, data: any): boolean;
|
|
86
|
-
/**
|
|
87
|
-
* 刷新页面
|
|
88
|
-
* @param pageContext
|
|
89
|
-
*/
|
|
90
|
-
export declare function refreshPage(pageContext: PageContext, id?: any): void;
|
|
91
|
-
/**
|
|
92
|
-
* 获得表单数据
|
|
93
|
-
* @param pageContext
|
|
94
|
-
*/
|
|
95
|
-
export declare function getFormData(pageContext: PageContext, id?: any, isNeedId?: boolean): Promise<unknown>;
|
|
96
|
-
export declare function saveChartConditionBase(pageContext: any, conditionName: string): any;
|
|
97
|
-
export declare function listChartConditions(pageContext: any): any;
|
|
98
|
-
export declare function deleteChartCondition(conditionId: any): any;
|
|
99
|
-
export declare function doFileTaskFunc(pageContext: any): void;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const re=require("async-validator"),x=require("element-plus"),b=require("../global-refs.cjs"),p=require("agilebuilder-ui"),Z=require("./standard-event.cjs"),E=require("../common-util.cjs");function z(e,n,t){const r={};n||(n={});let s=0;const o=e.split(".");return o.forEach(l=>{let u;if(s===o.length-1)u=function(a,d,c){let f;for(let i=0;i<d.length&&(f=i===0?a[d[i]]:f.fields[d[i]],!(i!==d.length-1&&d[i+1]===c));i++);return f}(r,o,l),u.fields[l]=t;else{let a;s===0?u=n:(a=function(d,c,f){let i;for(let m=0;m<c.length;m++){const g=c[m];if(i=m===0?d[g]:i.fields[c[m]],g===f)break}return i}(r,o,o[s-1]),u=a.fields),u[l]||(u[l]={type:"object",required:!0,fields:{}}),s===0?r[l]=u[l]:a.fields[l]=u[l]}s++}),r}function X(e,n,t,r,s,o){return ee(e,n,t,r,!0,s,o)}function Y(e){if(e)return Object.keys(e).forEach(n=>{if(n.indexOf(".")>=0){let t=[];t=n.split("."),e[t[0]]?e[t[0]].fields[t[1]]=e[n][0]:(e[t[0]]=new Object,e[t[0]].fields=new Object,e[t[0]].fields[t[1]]=e[n][0],e[t[0]].type="object"),delete e[n]}}),e}function ee(e,n,t,r,s,o,l){let u,a=Y(n);return n&&n!==null||!t||(a={}),!a||Object.keys(a).length===0?(e.validateErrorField="",!0):(new re(a).validate(e,{first:!0},(d,c)=>{let f;if(d){u=d[0].message,f=d[0].field,x.ElMessage({message:u,showClose:!0,type:"warning",duration:3e3});const i=b.getComponentRefByCode(l,f);i&&i.addRequiredClass&&i.addRequiredClass()}else u=!0;if(f&&s===!0&&/[A-Z]+/.test(f)&&e[f.toLowerCase()]!==void 0){const i=JSON.parse(JSON.stringify(e));i[f.toUpperCase()]=e[f.toLowerCase()],delete i[f.toLowerCase()],u=ee(i,n,t,r,!1,o,l)}}),u)}function G(e){return new Promise((n,t)=>{const r=[],s=e.customValidatorUuids;s&&s.forEach(o=>{const l=b.getComponentRef(e,o);l&&l.validator&&r.push(l.validator())}),r&&r.length>0?Promise.all(r).then(o=>{o.includes(!1)?n(!1):n(!0)}):n(!0)})}function H(e,n,t){return new Promise((r,s)=>{const o=JSON.parse(JSON.stringify(e));if(t&&Object.keys(t).length!==0)if(X(o,t,null,null,!0,n)===!0)if(function(u){var d;if(!u||E.isWorkflowPage(u))return!0;const a=u.tableUuids;if(!a)return!0;for(let c=0;c<a.length;c++){const f=a[c],i=b.getComponentRef(u,f);if(i){if(i.getConfigure()){const m=i.getConfigure();if((d=m==null?void 0:m.verification)!=null&&d.notEmpty){const g=i.getTableData();if(!g||!Array.isArray(g)||g.length===0)return x.ElMessage({showClose:!0,message:p.getI18n().t("superPageRuntimeMessage.xxxNotEmpty",{label:m.title?m.title:m.code}),type:"warning"}),!1}}if(!i.validatorSunTableListData())return!1}}return!0}(n)===!0){const u=function(a){const d=[];return a.customRuleEvents&&a.customRuleEvents.length>0&&a.customRuleEvents.forEach(c=>{c.events.forEach(f=>{const i=a.customEvents[f];d.push(i.apply(i,[{prop:c.prop,pageContext:a}]))})}),d&&d.length>0?new Promise((c,f)=>{const i=[],m=[];d.forEach(g=>{p.isPromise(g)?i.push(g):m.push(g)}),m.includes(!1)&&c(!1),i.length>0?Promise.all(i).then(g=>{g.includes(!1)?c(!1):c(!0)}).catch(g=>{console.error(g),c(!1)}):c(!0)}):null}(n);u&&p.isPromise(u)?u.then(a=>{a?G(n).then(d=>{r(d)}):r(!1)}):G(n).then(a=>{r(a)})}else s(new Error(p.getI18n().t("superPageRuntimeMessage.tableListSubTableDataVerificationFailed")).message);else s(new Error(p.getI18n().t("superPageRuntimeMessage.formDataVerificationFailed")).message);else r(!0)})}function j(e,n,t){if(!n)return t;t||(t={});const r=E.isWorkflowPage(e),s=Object.keys(n),o=n;return s.forEach(l=>{if(l==="__subRules"){const u=o.__subRules;Object.keys(u).forEach(a=>{t.subRules||(t.subRules={}),t.subRules[a]?Object.assign(t.subRules[a],u[a]):t.subRules[a]=u[a]})}else te(o[l]),r?(t.rules[l]=o[l],t[l]&&(t[l]=o[l])):t[l]=o[l]}),Y(t)}function K(e,n){e.forEach(t=>{const r=t.label,s=p.getI18n().t(r);t.required&&(t.message=p.getI18n().t("superPageRuntimeMessage.required",{label:s})),t.myType&&(t.message=p.getI18n().t("superPageRuntimeMessage.formatMismatch",{label:s})),t.patternType&&(t.message=p.getI18n().t("superPageRuntimeMessage.formatMismatch",{label:s})),t.max!==void 0&&t.max!==null&&(t.message=p.getI18n().t("superPageRuntimeMessage.overMaxLength",{label:s,value:t.max})),t.min!==void 0&&t.min!==null&&(t.message=p.getI18n().t("superPageRuntimeMessage.limitMinLength",{label:s,value:t.min}))})}function Q(e,n){const t=b.getAllComponentRefs(e);if(t)for(const r in t){const s=t[r];V(s&&s.value,n)}}function V(e,n){var t,r,s;if(e){const o=e.getConfigure();n.show!==void 0&&(n.show?e.show():e.hide()),n.required!==void 0&&((t=o==null?void 0:o.runtime)!=null&&t.props)&&(o.runtime.props.required=n.required),n.readonly!==void 0&&((r=o==null?void 0:o.runtime)!=null&&r.props)&&(n.readonly?o.runtime.props.state="readonly":o.runtime.props.state="enabled"),n.disabled!==void 0&&o&&((s=o==null?void 0:o.runtime)!=null&&s.props&&(n.disabled?o.runtime.props.state="disabled":o.runtime.props.state="enabled"),o.name==="table"&&e.changeOperationAddState(!1))}}function te(e){if(!(e!=null&&e.type))return;const n=ie[e.type];n&&(e.validator=n.validator)}const ie={boolean:{validator:function(e,n,t){return F(e,n)===!0&&(typeof n=="number"&&(n===1||n===0)||typeof n=="boolean"&&(n===!0||n===!1))}},date:{validator:function(e,n,t){if(F(e,n)!==!0)return!1;const r=new Date(n);return!isNaN(r.getTime())}},number:{validator:function(e,n,t){return F(e,n)===!0&&(typeof n!="string"||n.trim()!=="")&&(typeof n=="number"||!isNaN(Number(n)))}}},F=(e,n)=>n!=null&&n!==""||!e.required;exports.disabledAllFields=function(e){Q(e,{disabled:!0})},exports.dynamicControlTableEdit=function(e,n,t){var a;let r,s;if(t?(r=b.getComponentRefByCode(e,t),s=r?r.getTableUuid():null):(s=e.tableUuids&&e.tableUuids.length>0?e.tableUuids[0]:null,r=s?b.getComponentRef(e,s):null),!r)return;const o=e.code,l=e.version,u=E.getListCode(o,l,s);if(e.workflowRules||(e.workflowRules={rules:{},subRules:{}}),e.workflowRules.subRules||(e.workflowRules.subRules={}),e.workflowRules.subRules[t]||(e.workflowRules.subRules[t]={}),((a=e.workflowRules)==null?void 0:a.subRules)&&e.workflowRules.subRules[t]){const d=e.workflowRules.subRules[t];n.forEach(c=>{d[c.name]=c})}r.dynamicControlTableEdit(e,n,u)},exports.getWorkflowRules=function(e){const n=e.entity.data,t={...e.entity.page,...n},r=Z.getAdditionalParamMap(e),s=e.entity.context,o=e.entity.task;e.formPropTiltleMap&&Object.keys(e.formPropTiltleMap).length>0&&e.completeTaskParam.fieldPermissions&&e.completeTaskParam.fieldPermissions.length>0&&e.completeTaskParam.fieldPermissions.forEach(a=>{a.name&&e.formPropTiltleMap[a.name]&&(a.label=e.formPropTiltleMap[a.name])});let l=window.$vueApp.config.globalProperties.$getValidator(e.completeTaskParam.fieldPermissions,t,!0,r,o,s);const u=e.customRules;return l=j(e,u,l),l&&(l.rules||(l.rules={}),l.subRules||(l.subRules={})),l},exports.i18nValidatePropRulesMessage=K,exports.i18nValidateRulesMessage=function(e){if(!e||Object.keys(e).length===0)return;const n={},t=Object.keys(e);for(let r=0;r<t.length;r++){const s=t[r],o=e[s];K(o),s.indexOf(".")>0?z(s,n,o):o&&o.length>0&&(n[s]=[...o])}return n},exports.packageCustomRules=j,exports.packageCustomValidator=te,exports.setObjectPropRule=z,exports.updateComponentDisplayState=V,exports.updateFormItemEditState=function(e,n){if(!n)return;const t={};if(n.forEach(s=>{const{name:o,rules:l}=s;l?t[o]=l:s.required===!1&&(t[o]=[])}),E.isWorkflowPage(e)){let s=e.workflowRules?e.workflowRules:{rules:{},subRules:{}};s=j(e,t,s),e.workflowRules=s}else{let s=e.rules?e.rules:{};s=j(e,t,s),e.rules=s}const r=n.filter(s=>s.name==="_all_fields");r&&r.length>0&&Q(e,r[0]),n.forEach(s=>{s.name!=="_all_fields"&&V(b.getComponentRefByCode(e,s.name),s)})},exports.validateDataModelFunc=function(e,n,t){const r=e.entity.data,s={...e.entity.page,...r},o=e.rules,l=n.props.base?n.props.base.isEnableRequired:null;return l!=null&&(t=l),t==null&&(t=!1),function(u,a,d,c){return u?E.isWorkflowPage(c)?function(f,i,m){return new Promise((g,v)=>{const P=Z.getAdditionalParamMap(i),C=i.entity.context,ne=i.entity.task,se=!0,oe=i.subTablePageInfo;H(f,i,m).then(M=>{if(M){let S,I,D,L,O=M;const _=i.workflowRules;if(_){if(!function(y,q){var B,J,$;if(!y.actionPermissions)return!0;const U=Object.keys(y.actionPermissions);for(let N=0;N<U.length;N++){const h=U[N],T=y.actionPermissions[h];if(T&&T.notEmpty){let A=!1;if(q[h]?Array.isArray(q[h])&&q[h].length===0&&(A=!0):A=!0,A){const W=b.getComponentRefByCode(y,h).getConfigure();return(B=T.notEmptyCondition)!=null&&B.parentCondition&&p.parseSubTablePermissionCondition(T.notEmptyCondition.parentCondition.replaceAll("${field[","${parent["),y.dataTypeMaps,q,{},(J=y.entity)==null?void 0:J.request,($=y.entity)==null?void 0:$.task,y.contextParam)===!1?!0:(x.ElMessage({showClose:!0,message:p.getI18n().t("superPageRuntimeMessage.xxxNotEmpty",{label:W.title?W.title:h}),type:"warning"}),!1)}}}return!0}(i,f))return void g(!1);const R=!0,w=Object.assign({},_);w.subRules&&(Object.keys(w.subRules).length>0?w.totalSubRules||(w.totalSubRules={}):delete w.subRules);const k=window.$vueApp.config.globalProperties.$formValidator(f,w,se,P,ne,C,oe,R);O=k.msg,S=k.field,I=k.listCode,D=k.rowIndex,L=k.pageNum}else O=!0;if(O!==!0){if(x.ElMessage({showClose:!0,message:O+"",type:"warning"}),I){const R=b.getComponentRefByCode(i,I);R&&R.addRequiredClass&&R.addRequiredClass(S,D,L)}else{const R=b.getComponentRefByCode(i,S);R&&R.addRequiredClass&&R.addRequiredClass()}g(!1)}else Object.keys(f).indexOf("validateErrorField")>=0&&delete f.validateErrorField,g(f)}else v(new Error(p.getI18n().t("superPageRuntimeMessage.formDataVerificationFailed")).message)}).catch(M=>{v(M)})})}(a,c,d):function(f,i,m){return new Promise((g,v)=>{H(f,i,m).then(P=>{if(P){const C=JSON.parse(JSON.stringify(f));Object.keys(C).indexOf("validateErrorField")>=0&&delete C.validateErrorField,g(C)}else g(!1)}).catch(P=>{v(P)})})}(a,c,d):new Promise((f,i)=>{f(!0)})}(t,s,o,e)},exports.validator=X;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { PageContext } from '../interfaces/page-design-types';
|
|
2
|
-
|
|
3
|
-
export declare function setObjectPropRule(prop: any, rules: any, leafRule: any): {};
|
|
4
|
-
export declare function validator(entity: any, rules: any, columns: any, rowIndex: any, isSql: any, pageContext: any): any;
|
|
5
|
-
export declare function validateDataModelFunc(pageContext: any, configureObj: any, isEnableRequired: any): Promise<unknown>;
|
|
6
|
-
/**
|
|
7
|
-
* 封装自定义校验规则
|
|
8
|
-
* @param orgCustomRules 自定义规则
|
|
9
|
-
* @param orgRules 原来的表单规则
|
|
10
|
-
* @returns 添加了自定义规则后的规则
|
|
11
|
-
*/
|
|
12
|
-
export declare function packageCustomRules(pageContext: any, orgCustomRules: any, orgRules: any): any;
|
|
13
|
-
export declare function i18nValidateRulesMessage(rules: any): {};
|
|
14
|
-
export declare function i18nValidatePropRulesMessage(propRules: any, isResetMessage: boolean): void;
|
|
15
|
-
export declare function getWorkflowRules(pageContext: any): any;
|
|
16
|
-
export declare function updateFormItemEditState(pageContext: PageContext, customRules: any[]): void;
|
|
17
|
-
export declare function disabledAllFields(pageContext: PageContext): void;
|
|
18
|
-
export declare function dynamicControlTableEdit(pageContext: PageContext, customRules: any[], tableCode?: any): void;
|
|
19
|
-
export declare function updateComponentDisplayState(ref: any, item: any): void;
|
|
20
|
-
/**
|
|
21
|
-
* 布尔型和日期校验需要自定义,为了兼容oracle和mysql数据库,
|
|
22
|
-
* 数字类型的校验,防止select、radio、checkbox传字符串类型的数字
|
|
23
|
-
* @param fieldRule
|
|
24
|
-
*/
|
|
25
|
-
export declare function packageCustomValidator(fieldRule: any): void;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"}),exports.getDateShortCuts=function(n,u,s){if(!n)return;const a=[];if(n.includes("today")&&!["week","month","year"].includes(u)){const e={text:"今天",value:()=>new Date};s.endsWith("range")&&(e.value=()=>[new Date,new Date]),a.push(e)}if(n.includes("yesterday")&&!["week","month","year"].includes(u)){const e=new Date;e.setTime(e.getTime()-864e5);const t={text:"昨天",value:()=>e};s.endsWith("range")&&(t.value=()=>[e,new Date]),a.push(t)}if(n.includes("oneWeek")&&!["month","year"].includes(u)){const e=new Date;e.setTime(e.getTime()-6048e5);const t={text:"一周前",value:()=>e};s.endsWith("range")&&(t.text="一周",t.value=()=>[e,new Date]),a.push(t)}if(n.includes("oneMonth")&&!["year"].includes(u)){const e=new Date;e.getMonth()>0?e.setMonth(e.getMonth()-1):(e.setMonth(12),e.setFullYear(e.getFullYear()-1));const t={text:"一月前",value:()=>e};s.endsWith("range")&&(t.text="一月",t.value=()=>[e,new Date]),a.push(t)}if(n.includes("oneYear")){const e=new Date;e.setFullYear(e.getFullYear()-1);const t={text:"一年前",value:()=>e};s.endsWith("range")&&(t.text="一年",t.value=()=>[e,new Date]),a.push(t)}return a};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const agilebuilderUi=require("agilebuilder-ui"),pageHelperUtil=require("../page-helper-util.cjs");function formatScanRuleSets(a){const e={};return a.forEach(s=>{s.type==="group"?s.outs.forEach(c=>{e[c.ruleCode]||(e[c.ruleCode]={outs:[],adaptations:[]}),e[c.ruleCode].outs.push(c)}):e[s.code]={outs:s.outs,adaptations:[]}}),packageScanRuleSets(e)}function packageScanRuleSets(a){return new Promise((e,s)=>{Object.keys(a).length>0?agilebuilderUi.http.post(window.$vueApp.config.globalProperties.baseAPI+"/dc/setting-barcode-analysis/by-codes",Object.keys(a)).then(c=>{c.forEach(t=>{const u=JSON.parse(t.barcodeAnalysisOuts),n=new Set,l={};a[t.code].outs.forEach(r=>{n.add(r.returnedValue),l[r.returnedValue]=r.pageVariable});const o=[];u.forEach(r=>{n.has(r.code)&&(r.pageVariable=l[r.code],o.push(r))}),a[t.code].outs=o,a[t.code].adaptations=JSON.parse(t.barcodeAnalysisAdaptations),e(a)})}):e(null)})}function analysisScanValue(scanValue,scanRuleSets){if(!scanValue)return null;const scanSets=Object.values(scanRuleSets);for(let i=0;i<scanSets.length;i++){const scanSet=scanSets[i],adaptations=scanSet.adaptations;let validStr="";for(let a=0;a<adaptations.length;a++){const e=adaptations[a],s=_getScanIndexs(scanValue,e.startIndex,e.endIndex),c=s[0],t=s[1];let u=scanValue.substring(c,t),n=e.value,l=e.operate;if(l=="times"&&(n=u.split(n??"").length-1,u=e.times,l="="),(isNaN(u)||isNaN(n))&&(u="'"+u+"'",n="'"+n+"'"),e.leftBracket&&(validStr+=e.leftBracket),l=="<>"?l="!=":l=="="&&(l="=="),l=="include"||l=="notinclude"?(validStr+=u+".indexOf("+n+")",validStr+=l=="include"?">-1":"<0"):validStr+=u+l+n,e.rightBracket&&(validStr+=e.rightBracket),e.joinStr&&a+1<adaptations.length){const o=e.joinStr=="and"?"&&":"||";validStr+=o}}let res=!1;if(validStr)try{res=eval("("+validStr+")")}catch(a){}else res=!0;if(res)return executeAnalysisForScan(scanValue,scanSet)}return null}function executeAnalysisForScan(a,e){if(!e||!a)return;const s=e.outs,c={};return s.forEach(t=>{const u=t.fieldName;if(t.fixedValue!=null)c[u]=t.fixedValue;else{let n=a;if(t.splitChar&&t.splitNum){const l=(t.splitChar,t.splitChar),o=a.split(l),r=t.splitNum<1?1:t.splitNum;n=r<=o.length?o[r-1]:""}if(t.splitChar2&&t.splitNum2){const l=(t.splitChar2,t.splitChar2),o=n.split(l),r=t.splitNum2<1?1:t.splitNum2;n=r<=o.length?o[r-1]:""}if(n.length>0){const l=_getScanIndexs(n,t.startIndex,t.endIndex),o=l[0],r=l[1];n=n.substring(o,r)}c[u]=n}}),{value:a,params:c,scanSet:e}}function _getScanIndexs(a,e,s){return e=(e=(e=e==null?0:e-1)<0?0:e)>a.length-1?a.length-1:e,(s=(s=(s=s??a.length)>a.length?a.length:s)<1?1:s)<e&&(s=e),[e,s]}function setScanAnalysisValue(a,e,s){e&&e.outs.forEach(c=>{const t=c.fieldName,u=s[t];pageHelperUtil.setValueForVariableName(a.entity,c.pageVariable,u)})}exports.analysisScanValue=analysisScanValue,exports.formatScanRuleSets=formatScanRuleSets,exports.setScanAnalysisValue=setScanAnalysisValue;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"}),window.globalRefs||(window.globalRefs={});const t=window.globalRefs;function i(e,n){return"pageRuntimeRef-"+e+"-"+(n||1)}function c(e,n){return i(e,n)+"-code"}exports.addComponentRef=function(e,n,r){if(!e)return;const o=i(e.code,e.version);return t[o]||(t[o]={}),t[o][n]=r,t[o]},exports.addComponentRefByCode=function(e,n,r){if(!e)return;const o=c(e.code,e.version);return t[o]||(t[o]={}),t[o][n]=r,t[o]},exports.getAllComponentRefs=function(e){if(!e)return;const n=c(e.code,e.version);return t[n]||(t[n]={}),t[n]},exports.getComponentRef=function(e,n){if(!e||!n)return;const r=i(e.code,e.version);t[r]||(t[r]={});const o=t[r][n];return o&&o.value},exports.getComponentRefByCode=function(e,n){if(!e)return;const r=c(e.code,e.version);t[r]||(t[r]={});const o=t[r][n];return o&&o.value},exports.initComponentRefState=function(e){if(!e)return;const n=i(e.code,e.version);t[n]={}},exports.removePageAllRef=function(e){if(!e)return;const n=i(e.code,e.version);t[n]={}};
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import { PageContext } from './interfaces/page-design-types';
|
|
2
|
-
|
|
3
|
-
declare global {
|
|
4
|
-
interface Window {
|
|
5
|
-
globalRefs: any;
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* 添加组件引用对象
|
|
10
|
-
* @param pageContext 页面运行时对象
|
|
11
|
-
* @param componentIndex 对象ID
|
|
12
|
-
* @param refObj 引用对象
|
|
13
|
-
* @returns
|
|
14
|
-
*/
|
|
15
|
-
export declare function addComponentRef(pageContext: PageContext, componentUuid: string, refObj: any): any;
|
|
16
|
-
/**
|
|
17
|
-
* 添加组件引用对象
|
|
18
|
-
* @param pageContext 页面运行时对象
|
|
19
|
-
* @param componentIndex 对象ID
|
|
20
|
-
* @param refObj 引用对象
|
|
21
|
-
* @returns
|
|
22
|
-
*/
|
|
23
|
-
export declare function addComponentRefByCode(pageContext: PageContext, componentCode: string, refObj: any): any;
|
|
24
|
-
/**
|
|
25
|
-
* 获取组件引用对象
|
|
26
|
-
* @param pageDesign 页面设计对象
|
|
27
|
-
* @param componentIndex 对象ID
|
|
28
|
-
* @returns
|
|
29
|
-
*/
|
|
30
|
-
export declare function getComponentRef(pageContext: PageContext, componentUuid: string): any;
|
|
31
|
-
/**
|
|
32
|
-
* 根据编码获取组件引用对象
|
|
33
|
-
* @param pageDesign 页面设计对象
|
|
34
|
-
* @param componentCode 对象code
|
|
35
|
-
* @returns
|
|
36
|
-
*/
|
|
37
|
-
export declare function getComponentRefByCode(pageContext: PageContext, componentCode: string): any;
|
|
38
|
-
/**
|
|
39
|
-
* 移除组件引用对象
|
|
40
|
-
* @param pageDesign 页面设计对象
|
|
41
|
-
* @param componentIndex 对象ID
|
|
42
|
-
* @param refObj 引用对象
|
|
43
|
-
* @returns
|
|
44
|
-
*/
|
|
45
|
-
export declare function removeComponentRef(pageContext: PageContext, componentUuid: string): any;
|
|
46
|
-
/**
|
|
47
|
-
* 移除页面所有引用
|
|
48
|
-
* @param pageDesign 页面设计对象
|
|
49
|
-
* @param componentIndex 对象ID
|
|
50
|
-
* @param refObj 引用对象
|
|
51
|
-
* @returns
|
|
52
|
-
*/
|
|
53
|
-
export declare function removePageAllRef(pageContext: PageContext): void;
|
|
54
|
-
/**
|
|
55
|
-
* 初始化页面引用对象
|
|
56
|
-
* @param pageCode
|
|
57
|
-
* @param pageVersion
|
|
58
|
-
*/
|
|
59
|
-
export declare function initComponentRefState(pageContext: PageContext): void;
|
|
60
|
-
/**
|
|
61
|
-
* 获取所有组件引用对象
|
|
62
|
-
* @param pageDesign 页面设计对象
|
|
63
|
-
* @returns
|
|
64
|
-
*/
|
|
65
|
-
export declare function getAllComponentRefs(pageContext: PageContext): any;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./page-store.cjs"),o=require("agilebuilder-ui"),a=require("vue-i18n");let t=null,n=null;exports.$t=(e,...s)=>{n||(n=a.useI18n());const r=i.usePageContextStore().pageContext;if(t===null&&(t=!!o.i18nUtil.getEnableI18nState(r.systemCode)),!t)return e;const u=`${r.systemCode}.${e}`,l=n.t(u,s||[]);return l!==u?l:e};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const $t: (key: string, ...args: any[]) => any;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var i=(e=>(e.PC="pc",e.IPAD="ipad",e.PHONE="phone",e))(i||{});exports.PageDimensions=i;
|
|
@@ -1,247 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 状态
|
|
3
|
-
*/
|
|
4
|
-
export declare enum EnableStates {
|
|
5
|
-
ENABLE = "ENABLE",
|
|
6
|
-
DISABLE = "DISABLE"
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* 屏幕尺寸
|
|
10
|
-
*/
|
|
11
|
-
export declare enum PageDimensions {
|
|
12
|
-
PC = "pc",
|
|
13
|
-
IPAD = "ipad",
|
|
14
|
-
PHONE = "phone"
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* 组件配置的属性
|
|
18
|
-
*/
|
|
19
|
-
export interface ComponentProps {
|
|
20
|
-
align?: 'left' | 'center' | 'flex-end';
|
|
21
|
-
isAffix?: boolean;
|
|
22
|
-
isFixed?: boolean;
|
|
23
|
-
position?: 'default' | 'top' | 'bottom';
|
|
24
|
-
offset?: number;
|
|
25
|
-
[key: string]: any;
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* 组件对象
|
|
29
|
-
*/
|
|
30
|
-
export interface Component extends Object {
|
|
31
|
-
uuid: string;
|
|
32
|
-
name: string;
|
|
33
|
-
label: string;
|
|
34
|
-
desc?: string;
|
|
35
|
-
icon?: string;
|
|
36
|
-
version?: number;
|
|
37
|
-
releaseDate?: string;
|
|
38
|
-
creator?: string;
|
|
39
|
-
auditor?: string;
|
|
40
|
-
snapshot?: string;
|
|
41
|
-
docHref?: string;
|
|
42
|
-
parent?: Component;
|
|
43
|
-
items?: Component[];
|
|
44
|
-
props?: ComponentProps;
|
|
45
|
-
style?: any;
|
|
46
|
-
events?: ComponentEvent[];
|
|
47
|
-
methods?: ComponentMethod[];
|
|
48
|
-
advance?: any;
|
|
49
|
-
[otherProp: string]: any;
|
|
50
|
-
}
|
|
51
|
-
/**
|
|
52
|
-
* 页面对象
|
|
53
|
-
*/
|
|
54
|
-
export interface PageDesign extends Component {
|
|
55
|
-
systemCode: string;
|
|
56
|
-
systemVersion: number;
|
|
57
|
-
code: string;
|
|
58
|
-
version: number;
|
|
59
|
-
tableSysCode?: string;
|
|
60
|
-
tableSysVersion?: number;
|
|
61
|
-
tableName?: string;
|
|
62
|
-
tableAlias?: string;
|
|
63
|
-
workflowCode: string;
|
|
64
|
-
workflowVersion: number;
|
|
65
|
-
variables?: CustomVariable[];
|
|
66
|
-
logicDesigns?: object[];
|
|
67
|
-
modelFields?: ModelField[];
|
|
68
|
-
initChartServiceConfigs?: Array<any>;
|
|
69
|
-
rules?: object;
|
|
70
|
-
tableUuids?: Array<any>;
|
|
71
|
-
listCodesMap?: object;
|
|
72
|
-
formNoRuleCode?: string;
|
|
73
|
-
judgeHeavyList?: Array<any>;
|
|
74
|
-
conversionCodes?: Array<any>;
|
|
75
|
-
pageType?: string;
|
|
76
|
-
beanName?: string;
|
|
77
|
-
importBeanName?: string;
|
|
78
|
-
name: string;
|
|
79
|
-
notIdInitializationList?: Array<any>;
|
|
80
|
-
subTablePageInfo?: object;
|
|
81
|
-
customEvents?: Array<any>;
|
|
82
|
-
contextParam?: object;
|
|
83
|
-
systemtParam?: object;
|
|
84
|
-
subTableWatchProps?: object;
|
|
85
|
-
allChartUuids: Array<string>;
|
|
86
|
-
}
|
|
87
|
-
interface PageRuntimeStyle {
|
|
88
|
-
height?: number;
|
|
89
|
-
width?: number;
|
|
90
|
-
}
|
|
91
|
-
/**
|
|
92
|
-
* 运行时页面对象
|
|
93
|
-
*/
|
|
94
|
-
export interface PageContext extends Component {
|
|
95
|
-
isTest?: boolean;
|
|
96
|
-
systemCode?: string;
|
|
97
|
-
systemVersion?: number;
|
|
98
|
-
backendUrl?: string;
|
|
99
|
-
code: string;
|
|
100
|
-
version: number;
|
|
101
|
-
dimensions: string;
|
|
102
|
-
tableSysCode?: string;
|
|
103
|
-
tableSysVersion?: number;
|
|
104
|
-
tableName?: string;
|
|
105
|
-
tableAlias?: string;
|
|
106
|
-
workflowCode?: string;
|
|
107
|
-
workflowVersion?: number;
|
|
108
|
-
rules?: any;
|
|
109
|
-
tableUuids?: Array<any>;
|
|
110
|
-
listCodesMap?: object;
|
|
111
|
-
formNoRuleCode?: string;
|
|
112
|
-
judgeHeavyList?: Array<any>;
|
|
113
|
-
conversionCodes?: Array<any>;
|
|
114
|
-
pageType?: string;
|
|
115
|
-
beanName?: string;
|
|
116
|
-
importBeanName?: string;
|
|
117
|
-
name: string;
|
|
118
|
-
notIdInitializationList?: Array<any>;
|
|
119
|
-
subTablePageInfo?: object;
|
|
120
|
-
customValidatorUuids?: Array<string>;
|
|
121
|
-
entity: {
|
|
122
|
-
data: {
|
|
123
|
-
[otherProp: string]: any;
|
|
124
|
-
};
|
|
125
|
-
task: {
|
|
126
|
-
[otherProp: string]: any;
|
|
127
|
-
};
|
|
128
|
-
request: {
|
|
129
|
-
[otherProp: string]: any;
|
|
130
|
-
};
|
|
131
|
-
page: {
|
|
132
|
-
[otherProp: string]: any;
|
|
133
|
-
};
|
|
134
|
-
context: {
|
|
135
|
-
[otherProp: string]: any;
|
|
136
|
-
};
|
|
137
|
-
system: {
|
|
138
|
-
[otherProp: string]: any;
|
|
139
|
-
};
|
|
140
|
-
};
|
|
141
|
-
superGridItems?: object;
|
|
142
|
-
emailTemplateCode?: string;
|
|
143
|
-
fieldPermissions?: Array<any>;
|
|
144
|
-
fieldPermissionMap?: Map<string, any>;
|
|
145
|
-
actionPermissions?: Array<any>;
|
|
146
|
-
actionPermissionMap?: Map<string, any>;
|
|
147
|
-
workflowButtonComponent?: object;
|
|
148
|
-
completeTaskParam?: object;
|
|
149
|
-
customRules?: Record<string, any>;
|
|
150
|
-
initFormNo?: string;
|
|
151
|
-
definitionId?: number;
|
|
152
|
-
dataTypeMaps?: Object;
|
|
153
|
-
editData?: object;
|
|
154
|
-
searchFormData?: Array<object>;
|
|
155
|
-
selectOptions?: object;
|
|
156
|
-
chartDataSourceMap?: any;
|
|
157
|
-
refercePropMap?: object;
|
|
158
|
-
subTableWatchProps?: object;
|
|
159
|
-
[otherProp: string]: any;
|
|
160
|
-
allChartUuids: Array<string>;
|
|
161
|
-
pageRuntimeStyle?: PageRuntimeStyle;
|
|
162
|
-
}
|
|
163
|
-
/**
|
|
164
|
-
* 事件对象
|
|
165
|
-
*/
|
|
166
|
-
export interface ComponentEvent extends Object {
|
|
167
|
-
name: string;
|
|
168
|
-
label: string;
|
|
169
|
-
params?: ComponentEventParam[];
|
|
170
|
-
}
|
|
171
|
-
/**
|
|
172
|
-
* 事件对象
|
|
173
|
-
*/
|
|
174
|
-
export interface ComponentEventParam extends Object {
|
|
175
|
-
name: string;
|
|
176
|
-
label: string;
|
|
177
|
-
type: string;
|
|
178
|
-
}
|
|
179
|
-
/**
|
|
180
|
-
* 方法对象
|
|
181
|
-
*/
|
|
182
|
-
export interface ComponentMethod extends Object {
|
|
183
|
-
name: string;
|
|
184
|
-
label: string;
|
|
185
|
-
inParams: ComponentEventParam[];
|
|
186
|
-
outParams: ComponentEventParam[];
|
|
187
|
-
}
|
|
188
|
-
/**
|
|
189
|
-
* 方法参数描述
|
|
190
|
-
*/
|
|
191
|
-
export interface ComponentMethodParam extends Object {
|
|
192
|
-
name: string;
|
|
193
|
-
type: string;
|
|
194
|
-
}
|
|
195
|
-
/**
|
|
196
|
-
* 自定义变量对象
|
|
197
|
-
*/
|
|
198
|
-
export interface CustomVariable extends Object {
|
|
199
|
-
name: string;
|
|
200
|
-
alias: string;
|
|
201
|
-
defaultValue?: string;
|
|
202
|
-
isArrayElement?: boolean;
|
|
203
|
-
items?: CustomVariable[];
|
|
204
|
-
[otherProp: string]: any;
|
|
205
|
-
}
|
|
206
|
-
/**
|
|
207
|
-
* 自定义变量对象
|
|
208
|
-
*/
|
|
209
|
-
export interface ModelField extends Object {
|
|
210
|
-
name: string;
|
|
211
|
-
alias: string;
|
|
212
|
-
dataType: string;
|
|
213
|
-
displayOrder: number;
|
|
214
|
-
}
|
|
215
|
-
/**
|
|
216
|
-
* 前端逻辑对象
|
|
217
|
-
*/
|
|
218
|
-
export interface LogicDesign extends Object {
|
|
219
|
-
code: string;
|
|
220
|
-
name: string;
|
|
221
|
-
props?: any;
|
|
222
|
-
variables?: CustomVariable[];
|
|
223
|
-
flow: {
|
|
224
|
-
nodes?: LogicNode[];
|
|
225
|
-
};
|
|
226
|
-
triggerSource?: LogicTriggerSource[];
|
|
227
|
-
}
|
|
228
|
-
/**
|
|
229
|
-
* 前端逻辑节点对象
|
|
230
|
-
*/
|
|
231
|
-
export interface LogicNode extends Object {
|
|
232
|
-
id: string;
|
|
233
|
-
type: string;
|
|
234
|
-
x: number;
|
|
235
|
-
y: number;
|
|
236
|
-
properties?: any;
|
|
237
|
-
}
|
|
238
|
-
/**
|
|
239
|
-
* 前端逻辑节点触发来源
|
|
240
|
-
*/
|
|
241
|
-
export interface LogicTriggerSource extends Object {
|
|
242
|
-
assemblyIndex: number;
|
|
243
|
-
assemblyType: string;
|
|
244
|
-
triggerType: string;
|
|
245
|
-
triggerName: string;
|
|
246
|
-
}
|
|
247
|
-
export {};
|