super-page-runtime 2.3.44 → 2.3.45-cdnTmp2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/_virtual/_plugin-vue_export-helper.mjs +8 -0
- package/dist/es/components/runtime/utils/ai-chat-util.mjs +16 -0
- package/dist/es/components/runtime/utils/anchor-util.mjs +83 -0
- package/dist/es/components/runtime/utils/api/api-util.d.ts +1 -1
- package/dist/es/components/runtime/utils/api/api-util.mjs +12 -0
- package/dist/es/components/runtime/utils/api/page-expose-util.mjs +196 -0
- package/dist/es/components/runtime/utils/assemblys-config.mjs +19 -0
- package/dist/es/components/runtime/utils/barcode-util.mjs +12 -0
- package/dist/es/components/runtime/utils/charts/chart-columnline-util.mjs +169 -0
- package/dist/es/components/runtime/utils/charts/chart-gauge-util.mjs +38 -0
- package/dist/es/components/runtime/utils/charts/chart-pie-util.mjs +83 -0
- package/dist/es/components/runtime/utils/charts/chart-radar-util.mjs +56 -0
- package/dist/es/components/runtime/utils/charts/chart-scatter-util.mjs +47 -0
- package/dist/es/components/runtime/utils/charts/chart-util.mjs +285 -0
- package/dist/es/components/runtime/utils/common-util.mjs +116 -0
- package/dist/es/components/runtime/utils/eventBus.mjs +8 -0
- package/dist/es/components/runtime/utils/events/data-backfill-util.mjs +38 -0
- package/dist/es/components/runtime/utils/events/event-util.mjs +424 -0
- package/dist/es/components/runtime/utils/events/print-label.mjs +100 -0
- package/dist/es/components/runtime/utils/events/standard-event.mjs +1169 -0
- package/dist/es/components/runtime/utils/events/validator-util.mjs +444 -0
- package/dist/es/components/runtime/utils/form/date-shortcuts.mjs +36 -0
- package/dist/es/components/runtime/utils/form/scan-util.mjs +88 -0
- package/dist/es/components/runtime/utils/global-refs.mjs +57 -0
- package/dist/es/components/runtime/utils/i18n-util.mjs +14 -0
- package/dist/es/components/runtime/utils/interfaces/page-design-types.mjs +4 -0
- package/dist/es/components/runtime/utils/page-helper-util.mjs +381 -0
- package/dist/es/components/runtime/utils/page-init-util.d.ts +7 -1
- package/dist/es/components/runtime/utils/page-init-util.mjs +281 -0
- package/dist/es/components/runtime/utils/{page-permission-util.js → page-permission-util.mjs} +20 -21
- package/dist/es/components/runtime/utils/page-store.mjs +53 -0
- package/dist/es/components/runtime/utils/store-util.mjs +13 -0
- package/dist/es/components/runtime/utils/table-utils.mjs +84 -0
- package/dist/es/components/runtime/utils/tree-utils.mjs +68 -0
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue.mjs +4 -0
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime2.vue.mjs +29 -0
- package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.mjs +7 -0
- package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime2.vue.mjs +21 -0
- package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue.mjs +4 -0
- package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime2.vue.mjs +41 -0
- package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue.mjs +4 -0
- package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime2.vue.mjs +6 -0
- package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue.mjs +4 -0
- package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime2.vue.mjs +21 -0
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.mjs +7 -0
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime2.vue.mjs +53 -0
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue.mjs +14 -0
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb2.vue.mjs +4 -0
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.mjs +13 -0
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group2.vue.mjs +4 -0
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.mjs +59 -0
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header2.vue.mjs +4 -0
- package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue.mjs +7 -0
- package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search2.vue.mjs +59 -0
- package/dist/es/components/runtime/views/assemblys/chart/common/home-chart-condition-render.vue.mjs +93 -0
- package/dist/es/components/runtime/views/assemblys/chart/common/home-chart-condition-render2.vue.mjs +4 -0
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.mjs +7 -0
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime2.vue.mjs +35 -0
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue.mjs +7 -0
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime2.vue.mjs +46 -0
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue.mjs +7 -0
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime2.vue.mjs +35 -0
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.mjs +7 -0
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime2.vue.mjs +35 -0
- package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.mjs +425 -0
- package/dist/es/components/runtime/views/assemblys/chart/table/group-column-item.vue.mjs +6 -0
- package/dist/es/components/runtime/views/assemblys/chart/table/group-column-item2.vue.mjs +4 -0
- package/dist/es/components/runtime/views/assemblys/chart/table/group-column.vue.mjs +10 -0
- package/dist/es/components/runtime/views/assemblys/chart/table/group-column2.vue.mjs +4 -0
- package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue.mjs +42 -0
- package/dist/es/components/runtime/views/assemblys/chart/table/normal-column2.vue.mjs +4 -0
- package/dist/es/components/runtime/views/assemblys/chart/table/table-pageination.vue.mjs +15 -0
- package/dist/es/components/runtime/views/assemblys/chart/table/table-pageination2.vue.mjs +4 -0
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue.mjs +4 -0
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime2.vue.mjs +256 -0
- package/dist/es/components/runtime/views/assemblys/common/event-call-component.vue.mjs +20 -0
- package/dist/es/components/runtime/views/assemblys/common/event-call-component2.vue.mjs +4 -0
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.mjs +35 -0
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog2.vue.mjs +4 -0
- package/dist/es/components/runtime/views/assemblys/common/file-task-notice.vue.mjs +34 -0
- package/dist/es/components/runtime/views/assemblys/common/file-task-notice2.vue.mjs +4 -0
- package/dist/es/components/runtime/views/assemblys/common/format-file-task-notice-message.vue.mjs +27 -0
- package/dist/es/components/runtime/views/assemblys/common/format-file-task-notice-message2.vue.mjs +4 -0
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.mjs +17 -0
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog2.vue.mjs +4 -0
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-table.vue.mjs +22 -0
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-table2.vue.mjs +4 -0
- package/dist/es/components/runtime/views/assemblys/common/remove-transactor-dialog.vue.mjs +18 -0
- package/dist/es/components/runtime/views/assemblys/common/remove-transactor-dialog2.vue.mjs +4 -0
- package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.mjs +35 -0
- package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog2.vue.mjs +4 -0
- package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.mjs +19 -0
- package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog2.vue.mjs +4 -0
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue.mjs +7 -0
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime2.vue.mjs +35 -0
- package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue.mjs +4 -0
- package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime2.vue.mjs +21 -0
- package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue.mjs +7 -0
- package/dist/es/components/runtime/views/assemblys/container/container/container-runtime2.vue.mjs +27 -0
- package/dist/es/components/runtime/views/assemblys/container/fixed/FixedBox.vue.mjs +7 -0
- package/dist/es/components/runtime/views/assemblys/container/fixed/FixedBox2.vue.mjs +29 -0
- package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue.mjs +7 -0
- package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix2.vue.mjs +81 -0
- package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue.mjs +4 -0
- package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime2.vue.mjs +25 -0
- package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue.mjs +4 -0
- package/dist/es/components/runtime/views/assemblys/container/form/form-runtime2.vue.mjs +25 -0
- package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue.mjs +4 -0
- package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime2.vue.mjs +43 -0
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.mjs +7 -0
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime2.vue.mjs +96 -0
- package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue.mjs +7 -0
- package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime2.vue.mjs +47 -0
- package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue.mjs +4 -0
- package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime2.vue.mjs +69 -0
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.mjs +362 -0
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime2.vue.mjs +4 -0
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.mjs +329 -0
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime2.vue.mjs +4 -0
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue.mjs +4 -0
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime2.vue.mjs +88 -0
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue.mjs +7 -0
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime2.vue.mjs +132 -0
- package/dist/es/components/runtime/views/assemblys/error-render.vue.mjs +5 -0
- package/dist/es/components/runtime/views/assemblys/error-render2.vue.mjs +4 -0
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue.mjs +4 -0
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime2.vue.mjs +65 -0
- package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.mjs +36 -0
- package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element2.vue.mjs +4 -0
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue.mjs +4 -0
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime2.vue.mjs +69 -0
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue.mjs +4 -0
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime2.vue.mjs +102 -0
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue.mjs +4 -0
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime2.vue.mjs +55 -0
- package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue.mjs +4 -0
- package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime2.vue.mjs +24 -0
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue.mjs +4 -0
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime2.vue.mjs +111 -0
- package/dist/es/components/runtime/views/assemblys/form/image-upload/imageupload-runtime.vue.mjs +4 -0
- package/dist/es/components/runtime/views/assemblys/form/image-upload/imageupload-runtime2.vue.mjs +88 -0
- package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue.mjs +4 -0
- package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime2.vue.mjs +28 -0
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue.mjs +4 -0
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime2.vue.mjs +81 -0
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue.mjs +7 -0
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime2.vue.mjs +37 -0
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue.mjs +4 -0
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime2.vue.mjs +42 -0
- package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.mjs +7 -0
- package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime2.vue.mjs +16 -0
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue.mjs +4 -0
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime2.vue.mjs +84 -0
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.mjs +8 -0
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime2.vue.mjs +215 -0
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue.mjs +7 -0
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime2.vue.mjs +150 -0
- package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue.mjs +4 -0
- package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime2.vue.mjs +16 -0
- package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue.mjs +4 -0
- package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime2.vue.mjs +36 -0
- package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue.mjs +4 -0
- package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime2.vue.mjs +43 -0
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue.mjs +7 -0
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime2.vue.mjs +28 -0
- package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.mjs +83 -0
- package/dist/es/components/runtime/views/assemblys/home-chart-render2.vue.mjs +4 -0
- package/dist/es/components/runtime/views/assemblys/object-render.vue.mjs +163 -0
- package/dist/es/components/runtime/views/assemblys/object-render2.vue.mjs +4 -0
- package/dist/es/components/runtime/views/assemblys/page-bottom.vue.mjs +9 -0
- package/dist/es/components/runtime/views/assemblys/page-bottom2.vue.mjs +4 -0
- package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue.mjs +7 -0
- package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box2.vue.mjs +55 -0
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue.mjs +7 -0
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog2.vue.mjs +28 -0
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue.mjs +7 -0
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime2.vue.mjs +45 -0
- package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue.mjs +4 -0
- package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime2.vue.mjs +20 -0
- package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue.mjs +4 -0
- package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime2.vue.mjs +23 -0
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.mjs +7 -0
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime2.vue.mjs +30 -0
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue.mjs +4 -0
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime2.vue.mjs +27 -0
- package/dist/es/components/runtime/views/home-chart.vue.mjs +46 -0
- package/dist/es/components/runtime/views/home-chart2.vue.mjs +4 -0
- package/dist/es/components/runtime/views/super-page-dialog.vue.mjs +29 -0
- package/dist/es/components/runtime/views/super-page-dialog3.vue.mjs +5 -0
- package/dist/es/components/runtime/views/super-page.vue.d.ts +2 -2
- package/dist/es/components/runtime/views/super-page.vue.mjs +7 -0
- package/dist/es/components/runtime/views/super-page2.vue.mjs +307 -0
- package/dist/es/index.mjs +32 -0
- package/dist/es/style.css +1 -1052
- package/dist/lib/_virtual/_plugin-vue_export-helper.cjs +1 -0
- package/dist/lib/assets/chart-themes/bar-theme.cjs +1 -0
- package/dist/lib/assets/chart-themes/bar-theme.d.ts +6 -0
- package/dist/lib/assets/chart-themes/gauge-theme.cjs +1 -0
- package/dist/lib/assets/chart-themes/gauge-theme.d.ts +6 -0
- package/dist/lib/assets/chart-themes/pie-theme.cjs +1 -0
- package/dist/lib/assets/chart-themes/pie-theme.d.ts +6 -0
- package/dist/lib/assets/chart-themes/radar-theme.cjs +1 -0
- package/dist/lib/assets/chart-themes/radar-theme.d.ts +6 -0
- package/dist/lib/assets/chart-themes/scatter-theme.cjs +1 -0
- package/dist/lib/assets/chart-themes/scatter-theme.d.ts +6 -0
- package/dist/lib/assets/file.png.cjs +1 -0
- package/dist/lib/assets/folder.png.cjs +1 -0
- package/dist/lib/components/runtime/index.d.ts +6 -0
- package/dist/lib/components/runtime/utils/ai-chat-util.cjs +1 -0
- package/dist/lib/components/runtime/utils/anchor-util.cjs +1 -0
- package/dist/lib/components/runtime/utils/anchor-util.d.ts +13 -0
- package/dist/lib/components/runtime/utils/api/api-util.cjs +1 -0
- package/dist/lib/components/runtime/utils/api/api-util.d.ts +1 -0
- package/dist/lib/components/runtime/utils/api/page-expose-util.cjs +1 -0
- package/dist/lib/components/runtime/utils/api/page-expose-util.d.ts +1 -0
- package/dist/lib/components/runtime/utils/assemblys-config.cjs +1 -0
- package/dist/lib/components/runtime/utils/barcode-util.cjs +1 -0
- package/dist/lib/components/runtime/utils/barcode-util.d.ts +8 -0
- package/dist/lib/components/runtime/utils/charts/chart-columnline-util.cjs +2 -0
- package/dist/lib/components/runtime/utils/charts/chart-gauge-util.cjs +1 -0
- package/dist/lib/components/runtime/utils/charts/chart-pie-util.cjs +2 -0
- package/dist/lib/components/runtime/utils/charts/chart-radar-util.cjs +1 -0
- package/dist/lib/components/runtime/utils/charts/chart-scatter-util.cjs +1 -0
- package/dist/lib/components/runtime/utils/charts/chart-util.cjs +1 -0
- package/dist/lib/components/runtime/utils/charts/chart-util.d.ts +115 -0
- package/dist/lib/components/runtime/utils/common-util.cjs +1 -0
- package/dist/lib/components/runtime/utils/common-util.d.ts +33 -0
- package/dist/lib/components/runtime/utils/eventBus.cjs +1 -0
- package/dist/lib/components/runtime/utils/eventBus.d.ts +8 -0
- package/dist/lib/components/runtime/utils/events/data-backfill-util.cjs +1 -0
- package/dist/lib/components/runtime/utils/events/data-backfill-util.d.ts +27 -0
- package/dist/lib/components/runtime/utils/events/event-util.cjs +1 -0
- package/dist/lib/components/runtime/utils/events/event-util.d.ts +93 -0
- package/dist/lib/components/runtime/utils/events/print-label.cjs +1 -0
- package/dist/lib/components/runtime/utils/events/print-label.d.ts +5 -0
- package/dist/lib/components/runtime/utils/events/standard-event.cjs +1 -0
- package/dist/lib/components/runtime/utils/events/standard-event.d.ts +107 -0
- package/dist/lib/components/runtime/utils/events/validator-util.cjs +1 -0
- package/dist/lib/components/runtime/utils/events/validator-util.d.ts +31 -0
- package/dist/lib/components/runtime/utils/form/date-shortcuts.cjs +1 -0
- package/dist/lib/components/runtime/utils/form/date-shortcuts.d.ts +7 -0
- package/dist/lib/components/runtime/utils/form/scan-util.cjs +1 -0
- package/dist/lib/components/runtime/utils/global-refs.cjs +1 -0
- package/dist/lib/components/runtime/utils/global-refs.d.ts +65 -0
- package/dist/lib/components/runtime/utils/i18n-util.cjs +1 -0
- package/dist/lib/components/runtime/utils/i18n-util.d.ts +1 -0
- package/dist/lib/components/runtime/utils/interfaces/page-design-types.cjs +1 -0
- package/dist/lib/components/runtime/utils/interfaces/page-design-types.d.ts +259 -0
- package/dist/lib/components/runtime/utils/page-helper-util.cjs +1 -0
- package/dist/lib/components/runtime/utils/page-helper-util.d.ts +181 -0
- package/dist/lib/components/runtime/utils/page-init-util.cjs +1 -0
- package/dist/lib/components/runtime/utils/page-init-util.d.ts +55 -0
- package/dist/lib/components/runtime/utils/page-permission-util.cjs +1 -0
- package/dist/lib/components/runtime/utils/page-permission-util.d.ts +26 -0
- package/dist/lib/components/runtime/utils/page-store.cjs +1 -0
- package/dist/lib/components/runtime/utils/page-store.d.ts +58 -0
- package/dist/lib/components/runtime/utils/store-util.cjs +1 -0
- package/dist/lib/components/runtime/utils/store-util.d.ts +15 -0
- package/dist/lib/components/runtime/utils/store.cjs +1 -0
- package/dist/lib/components/runtime/utils/store.d.ts +2 -0
- package/dist/lib/components/runtime/utils/table-utils.cjs +1 -0
- package/dist/lib/components/runtime/utils/table-utils.d.ts +36 -0
- package/dist/lib/components/runtime/utils/tree-utils.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/button/button/button-runtime.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/button/button/button-runtime2.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/button/button-group/buttongroup-runtime2.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/button/dropdown/dropdown-runtime2.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime2.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/button/print-label/printlabel-runtime2.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/chart/column-line/column-line-runtime2.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb2.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-group2.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header2.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-homepage-search.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-homepage-search2.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/chart/common/home-chart-condition-render.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/chart/common/home-chart-condition-render.vue.d.ts +36 -0
- package/dist/lib/components/runtime/views/assemblys/chart/common/home-chart-condition-render2.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/chart/gauge/gauge-runtime2.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/chart/pie/pie-runtime.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/chart/pie/pie-runtime2.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/chart/radar/radar-runtime.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/chart/radar/radar-runtime2.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/chart/scatter/scatter-runtime2.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/chart/table/chart-table-util.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/chart/table/chart-table-util.d.ts +121 -0
- package/dist/lib/components/runtime/views/assemblys/chart/table/group-column-item.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/chart/table/group-column-item2.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/chart/table/group-column.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/chart/table/group-column2.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/chart/table/normal-column.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/chart/table/normal-column2.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/chart/table/table-pageination.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/chart/table/table-pageination2.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/chart/table/table-runtime.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/chart/table/table-runtime2.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/common/event-call-component.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/common/event-call-component.vue.d.ts +5 -0
- package/dist/lib/components/runtime/views/assemblys/common/event-call-component2.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue.d.ts +28 -0
- package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog2.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/common/file-task-notice.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/common/file-task-notice.vue.d.ts +27 -0
- package/dist/lib/components/runtime/views/assemblys/common/file-task-notice2.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/common/format-file-task-notice-message.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/common/format-file-task-notice-message.vue.d.ts +59 -0
- package/dist/lib/components/runtime/views/assemblys/common/format-file-task-notice-message2.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/common/remove-signer-dialog.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/common/remove-signer-dialog.vue.d.ts +35 -0
- package/dist/lib/components/runtime/views/assemblys/common/remove-signer-dialog2.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/common/remove-signer-table.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/common/remove-signer-table.vue.d.ts +26 -0
- package/dist/lib/components/runtime/views/assemblys/common/remove-signer-table2.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/common/remove-transactor-dialog.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/common/remove-transactor-dialog.vue.d.ts +35 -0
- package/dist/lib/components/runtime/views/assemblys/common/remove-transactor-dialog2.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.d.ts +31 -0
- package/dist/lib/components/runtime/views/assemblys/common/save-chart-condition-dialog2.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/common/task-informition-dialog.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/common/task-informition-dialog.vue.d.ts +26 -0
- package/dist/lib/components/runtime/views/assemblys/common/task-informition-dialog2.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/container/card/card-runtime.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/container/card/card-runtime2.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/container/collapse/collapse-runtime2.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/container/container/container-runtime.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/container/container/container-runtime2.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/container/fixed/FixedBox.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/container/fixed/FixedBox2.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/container/fixed/YxAffix.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/container/fixed/YxAffix.vue.d.ts +94 -0
- package/dist/lib/components/runtime/views/assemblys/container/fixed/YxAffix2.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/container/flex/flex-runtime.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/container/flex/flex-runtime2.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/container/form/form-runtime.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/container/form/form-runtime2.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/container/iframe/iframe-runtime2.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/container/tabs/tabs-runtime2.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/container/tools/tools-runtime.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/container/tools/tools-runtime2.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/data/bar-code/barcode-runtime2.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/data/table/main-table-runtime.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/data/table/main-table-runtime2.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/data/table/sub-table-runtime2.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/data/table/table-runtime.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/data/table/table-runtime2.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/data/tree/tree-runtime.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/data/tree/tree-runtime2.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/error-render.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/error-render.vue.d.ts +22 -0
- package/dist/lib/components/runtime/views/assemblys/error-render2.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/form/checkbox/checkbox-runtime2.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/form/common/title-suffix-element.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/form/common/title-suffix-element2.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/form/custom/custom-runtime.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/form/custom/custom-runtime2.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/form/date-picker/datepicker-runtime2.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/form/dept-tree/depttree-runtime2.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/form/divider/divider-runtime.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/form/divider/divider-runtime2.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/form/file-upload/fileupload-runtime2.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/form/image-upload/imageupload-runtime.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/form/image-upload/imageupload-runtime2.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/form/input-number/input-number-runtime2.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/form/input-text/inputtext-runtime2.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/form/label/label-runtime.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/form/label/label-runtime2.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/form/link/link-runtime.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/form/link/link-runtime2.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/form/placeholder/placeholder-runtime2.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/form/radio/radio-runtime.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/form/radio/radio-runtime2.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/form/rich-text/richtext-runtime2.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/form/select/select-runtime.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/form/select/select-runtime2.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime2.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/form/switch/switch-runtime.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/form/switch/switch-runtime2.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/form/tag/tag-runtime.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/form/tag/tag-runtime2.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/form/textarea/textarea-runtime2.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/home-chart-render.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/home-chart-render.vue.d.ts +17 -0
- package/dist/lib/components/runtime/views/assemblys/home-chart-render2.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/object-render.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/object-render.vue.d.ts +17 -0
- package/dist/lib/components/runtime/views/assemblys/object-render2.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/page-bottom.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/page-bottom.vue.d.ts +14 -0
- package/dist/lib/components/runtime/views/assemblys/page-bottom2.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue.d.ts +19 -0
- package/dist/lib/components/runtime/views/assemblys/workflow/component/workflow-opinion-box2.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog2.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime2.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime2.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/workflow/text-history/textflow-runtime2.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime2.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime2.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/home-chart.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/home-chart.vue.d.ts +23 -0
- package/dist/lib/components/runtime/views/home-chart2.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/super-page-dialog.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/super-page-dialog.vue.d.ts +40 -0
- package/dist/lib/components/runtime/views/super-page-dialog3.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/super-page.vue.cjs +1 -0
- package/dist/lib/components/runtime/views/super-page.vue.d.ts +137 -0
- package/dist/lib/components/runtime/views/super-page2.vue.cjs +1 -0
- package/dist/lib/favicon.ico +0 -0
- package/dist/lib/i18n/langs/cn.cjs +1 -0
- package/dist/lib/i18n/langs/en.cjs +1 -0
- package/dist/lib/index.cjs +1 -0
- package/dist/lib/index.d.ts +16 -0
- package/dist/lib/style.css +1 -0
- package/package.json +13 -11
- package/dist/es/_virtual/_plugin-vue_export-helper.js +0 -8
- package/dist/es/components/runtime/utils/ai-chat-util.js +0 -16
- package/dist/es/components/runtime/utils/anchor-util.js +0 -84
- package/dist/es/components/runtime/utils/api/api-util.js +0 -7
- package/dist/es/components/runtime/utils/api/page-expose-util.js +0 -202
- package/dist/es/components/runtime/utils/assemblys-config.js +0 -20
- package/dist/es/components/runtime/utils/barcode-util.js +0 -12
- package/dist/es/components/runtime/utils/charts/chart-columnline-util.js +0 -168
- package/dist/es/components/runtime/utils/charts/chart-gauge-util.js +0 -38
- package/dist/es/components/runtime/utils/charts/chart-pie-util.js +0 -82
- package/dist/es/components/runtime/utils/charts/chart-radar-util.js +0 -56
- package/dist/es/components/runtime/utils/charts/chart-scatter-util.js +0 -47
- package/dist/es/components/runtime/utils/charts/chart-util.js +0 -288
- package/dist/es/components/runtime/utils/common-util.js +0 -120
- package/dist/es/components/runtime/utils/eventBus.js +0 -8
- package/dist/es/components/runtime/utils/events/data-backfill-util.js +0 -39
- package/dist/es/components/runtime/utils/events/event-util.js +0 -439
- package/dist/es/components/runtime/utils/events/print-label.js +0 -100
- package/dist/es/components/runtime/utils/events/standard-event.js +0 -1225
- package/dist/es/components/runtime/utils/events/validator-util.js +0 -463
- package/dist/es/components/runtime/utils/form/date-shortcuts.js +0 -36
- package/dist/es/components/runtime/utils/form/scan-util.js +0 -93
- package/dist/es/components/runtime/utils/global-refs.js +0 -57
- package/dist/es/components/runtime/utils/i18n-util.js +0 -14
- package/dist/es/components/runtime/utils/interfaces/page-design-types.js +0 -4
- package/dist/es/components/runtime/utils/page-helper-util.js +0 -391
- package/dist/es/components/runtime/utils/page-init-util.js +0 -279
- package/dist/es/components/runtime/utils/page-store.js +0 -53
- package/dist/es/components/runtime/utils/store-util.js +0 -13
- package/dist/es/components/runtime/utils/table-utils.js +0 -89
- package/dist/es/components/runtime/utils/tree-utils.js +0 -73
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +0 -29
- package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.js +0 -7
- package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +0 -21
- package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +0 -41
- package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.js +0 -6
- package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.js +0 -21
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.js +0 -7
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +0 -53
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue.js +0 -14
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue2.js +0 -4
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +0 -13
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue2.js +0 -4
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +0 -60
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue2.js +0 -4
- package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue.js +0 -7
- package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +0 -64
- package/dist/es/components/runtime/views/assemblys/chart/common/home-chart-condition-render.vue.js +0 -94
- package/dist/es/components/runtime/views/assemblys/chart/common/home-chart-condition-render.vue2.js +0 -4
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.js +0 -7
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +0 -35
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue.js +0 -7
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +0 -46
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue.js +0 -7
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +0 -35
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.js +0 -7
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +0 -35
- package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +0 -430
- package/dist/es/components/runtime/views/assemblys/chart/table/group-column-item.vue.js +0 -6
- package/dist/es/components/runtime/views/assemblys/chart/table/group-column-item.vue2.js +0 -4
- package/dist/es/components/runtime/views/assemblys/chart/table/group-column.vue.js +0 -10
- package/dist/es/components/runtime/views/assemblys/chart/table/group-column.vue2.js +0 -4
- package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue.js +0 -46
- package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue2.js +0 -4
- package/dist/es/components/runtime/views/assemblys/chart/table/table-pageination.vue.js +0 -15
- package/dist/es/components/runtime/views/assemblys/chart/table/table-pageination.vue2.js +0 -4
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +0 -263
- package/dist/es/components/runtime/views/assemblys/common/event-call-component.vue.js +0 -20
- package/dist/es/components/runtime/views/assemblys/common/event-call-component.vue2.js +0 -4
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +0 -36
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue2.js +0 -4
- package/dist/es/components/runtime/views/assemblys/common/file-task-notice.vue.js +0 -35
- package/dist/es/components/runtime/views/assemblys/common/file-task-notice.vue2.js +0 -4
- package/dist/es/components/runtime/views/assemblys/common/format-file-task-notice-message.vue.js +0 -32
- package/dist/es/components/runtime/views/assemblys/common/format-file-task-notice-message.vue2.js +0 -4
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.js +0 -17
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue2.js +0 -4
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-table.vue.js +0 -23
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-table.vue2.js +0 -4
- package/dist/es/components/runtime/views/assemblys/common/remove-transactor-dialog.vue.js +0 -18
- package/dist/es/components/runtime/views/assemblys/common/remove-transactor-dialog.vue2.js +0 -4
- package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.js +0 -35
- package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue2.js +0 -4
- package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +0 -19
- package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue2.js +0 -4
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue.js +0 -7
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +0 -35
- package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +0 -21
- package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue.js +0 -7
- package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +0 -27
- package/dist/es/components/runtime/views/assemblys/container/fixed/FixedBox.vue.js +0 -7
- package/dist/es/components/runtime/views/assemblys/container/fixed/FixedBox.vue2.js +0 -29
- package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue.js +0 -7
- package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +0 -81
- package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +0 -25
- package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +0 -25
- package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +0 -46
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +0 -7
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +0 -96
- package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue.js +0 -7
- package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +0 -47
- package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +0 -69
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +0 -383
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue2.js +0 -4
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +0 -337
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue2.js +0 -4
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +0 -88
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue.js +0 -7
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +0 -134
- package/dist/es/components/runtime/views/assemblys/error-render.vue.js +0 -5
- package/dist/es/components/runtime/views/assemblys/error-render.vue2.js +0 -4
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +0 -66
- package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +0 -38
- package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue2.js +0 -4
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +0 -69
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +0 -102
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +0 -55
- package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +0 -24
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +0 -110
- package/dist/es/components/runtime/views/assemblys/form/image-upload/imageupload-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/form/image-upload/imageupload-runtime.vue2.js +0 -91
- package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +0 -28
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +0 -83
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue.js +0 -7
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +0 -38
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +0 -43
- package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.js +0 -7
- package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.js +0 -16
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +0 -84
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.js +0 -8
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +0 -218
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue.js +0 -7
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +0 -156
- package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js +0 -16
- package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +0 -36
- package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +0 -44
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue.js +0 -7
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +0 -28
- package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.js +0 -83
- package/dist/es/components/runtime/views/assemblys/home-chart-render.vue2.js +0 -4
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +0 -166
- package/dist/es/components/runtime/views/assemblys/object-render.vue2.js +0 -4
- package/dist/es/components/runtime/views/assemblys/page-bottom.vue.js +0 -9
- package/dist/es/components/runtime/views/assemblys/page-bottom.vue2.js +0 -4
- package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue.js +0 -7
- package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue2.js +0 -55
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue.js +0 -7
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue2.js +0 -28
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue.js +0 -7
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue2.js +0 -45
- package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue2.js +0 -20
- package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue2.js +0 -23
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +0 -7
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +0 -32
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue2.js +0 -27
- package/dist/es/components/runtime/views/home-chart.vue.js +0 -47
- package/dist/es/components/runtime/views/home-chart.vue2.js +0 -4
- package/dist/es/components/runtime/views/super-page-dialog.vue.js +0 -26
- package/dist/es/components/runtime/views/super-page-dialog.vue3.js +0 -5
- package/dist/es/components/runtime/views/super-page.vue.js +0 -7
- package/dist/es/components/runtime/views/super-page.vue2.js +0 -311
- package/dist/es/index.js +0 -32
- /package/dist/es/assets/chart-themes/{bar-theme.js → bar-theme.mjs} +0 -0
- /package/dist/es/assets/chart-themes/{gauge-theme.js → gauge-theme.mjs} +0 -0
- /package/dist/es/assets/chart-themes/{pie-theme.js → pie-theme.mjs} +0 -0
- /package/dist/es/assets/chart-themes/{radar-theme.js → radar-theme.mjs} +0 -0
- /package/dist/es/assets/chart-themes/{scatter-theme.js → scatter-theme.mjs} +0 -0
- /package/dist/es/assets/{file.png.js → file.png.mjs} +0 -0
- /package/dist/es/assets/{folder.png.js → folder.png.mjs} +0 -0
- /package/dist/es/components/runtime/utils/{store.js → store.mjs} +0 -0
- /package/dist/es/i18n/langs/{cn.js → cn.mjs} +0 -0
- /package/dist/es/i18n/langs/{en.js → en.mjs} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const N=require("agilebuilder-ui"),S=require("vue-plugin-hiprint"),A=require("../barcode-util.cjs");function I(t,f){N.http.post(window.$vueApp.config.globalProperties.baseAPI+"/component/print-models/by-codes",[f]).then(E=>{const d=JSON.parse(E[0].template),c=[];d.panels.forEach(e=>{e.printElements.forEach(r=>{r.options.textType!=="barcode"&&r.options.textType!=="qrcode"||c.push(r.options)})});const n=new S.hiprint.PrintTemplate({template:d}),u={callback:()=>{},styleHandler:()=>""},o={leftOffset:-1,topOffset:-1},p={};d.panels[0].printElements.forEach(e=>{if(e.options.dataType==="datetime"&&e.options.field){const r=e.options.field.substring(6);p[r]=e.options.dateFormat}}),t.pageContext.pageType?t.pageContext.pageType==="list"?function(e,r,y,a,h,x){const m=JSON.parse(JSON.stringify(e.selections));if(m.forEach(i=>{Object.keys(r).forEach(s=>{if(i[s]&&typeof i[s]=="number"&&!isNaN(i[s]))try{i[s]=new Date(i[s])}catch(g){console.error(`日期格式化失败: ${g}`)}})}),y.length>0){const i=[];y.forEach(s=>{i.push(function(g,l){return new Promise((b,C)=>{const v=g.field.split("."),P=[];v.length<2&&b([]);try{J(v[1]).then(O=>{l.forEach((j,q)=>{const w={type:v[0],name:v[1],value:null,index:q};w.value=A.generateCodeByRule(JSON.parse(O.barcodeModelItems),j),P.push(w)}),b(P)})}catch(O){console.error("获取条码规则失败:",O),b([])}})}(s,m))}),Promise.all(i).then(s=>{s.forEach(g=>{g.forEach(l=>{const b=l.index,C=m[b];C[l.type]||(C[l.type]={}),C[l.type][l.name]=l.value})}),a.print(m,h,x)})}else a.print(m,h,x)}(t,p,c,n,o,u):t.pageContext.pageType==="form"&&T(t,c,n,o,u):T(t,c,n,o,u)})}function T(t,f,E,d,c){if(f.length>0){const n=[];f.forEach(u=>{n.push(function(o,p){return new Promise((e,r)=>{const y=p.field.split("."),a={type:null,name:null,value:null};y.length<2&&e(a),a.type=y[0],a.name=y[1];try{J(a.name).then(h=>{const x=JSON.parse(h.barcodeModelItems);a.value=A.generateCodeByRule(x,o.entity.data),e(a)})}catch(h){console.error("获取条码规则失败:",h),e(a)}})}(t.pageContext,u))}),Promise.all(n).then(u=>{const o={};u.forEach(e=>{e.type&&e.name&&e.value&&(o[e.type]||(o[e.type]={}),o[e.type][e.name]=e.value)});const p={table:{}};Object.assign(p,t.pageContext.entity,o),p.table=t.pageContext.entity.data,E.print(p,d,c)})}else{const n={table:{}};Object.assign(n,t.pageContext.entity),n.table=t.pageContext.entity.data,E.print(n,d,c)}}function J(t){const f=encodeURIComponent(t);return N.http.get(window.$vueApp.config.globalProperties.baseAPI+`/component/setting-barcode-models/by-name?name=${f}`)}S.disAutoConnect();const M={printLabel:I};exports.default=M,exports.printLabel=I;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("../common-util.cjs"),g=require("agilebuilder-ui"),k=require("element-plus"),J=require("../global-refs.cjs"),D=require("../eventBus.cjs"),ne=require("axios"),W=require("./event-util.cjs"),Ce=require("../store-util.cjs"),G=require("../page-init-util.cjs"),Y=require("../page-helper-util.cjs"),Be=require("./print-label.cjs"),se=require("../table-utils.cjs"),he=require("./validator-util.cjs"),De=require("../api/page-expose-util.cjs"),be=require("../page-store.cjs"),_e=require("vue"),je=require("../../views/assemblys/common/file-task-notice.vue.cjs"),j=require("./data-backfill-util.cjs"),Fe={save:function(e){return Te(e,!1)},saveList:function(e){return Te(e,!0)},exportForm:function(e){const t=e.pageContext.code+"_";D.$emit(t+"export-form-report",e)},exportPDF:function(e){const t=e.pageContext.code+"_";D.$emit(t+"export-pdf-report",e)},submit:function(e){return Z(e,!1,"submit","/dsc/commons/submits")},submitList:function(e){return Z(e,!0,"submit","/dsc/commons/batch-submits")},agree:function(e){return Z(e,!1,"agree","/dsc/commons/approves")},agreeList:function(e){return Z(e,!0,"agree","/dsc/commons/batch-approves")},disagree:function(e){return Z(e,!1,"disagree","/dsc/commons/refuses")},disagreeList:function(e){return Z(e,!0,"disagree","/dsc/commons/batch-refuses")},back:function(e){const t=e.pageContext,o=t.entity?t.entity.data:{},s=!(!e.configureObj.props||!e.configureObj.props.base)&&e.configureObj.props.base.isNeedValueMapping;ge(t,e.configureObj,o,s)},delete:function(e){return function(t){return new Promise((o,s)=>{const n=t.ids;if(!n||n.length===0)return k.ElMessage({showClose:!0,type:"warning",message:g.getI18n().t("superPageRuntimeMessage.pleaseSelectRecord")}),void o(!0);k.ElMessageBox.confirm(g.getI18n().t("superPageRuntimeMessage.whetherToConfirmDeletion"),g.getI18n().t("superPageRuntimeMessage.tips"),{confirmButtonText:g.getI18n().t("superPageRuntimeMessage.sure"),cancelButtonText:g.getI18n().t("superPageRuntimeMessage.cancel"),type:"warning"}).then(()=>{var N,R,P;const a=t.pageContext,r=t.configureObj,c=r.props.base,l=a.systemCode,m=a.backendUrl,u=r.props.base.tableUuid?r.props.base.tableUuid:t.tableUuid,p=se.getTableNameByTableUuid(a,u);let d=f.getBaseUrl(m,a.isTest)+"/dsc/commons/"+p;d=f.getRealRestApiPath(d,l,m,a.isTest);const b=c.isPermission===void 0||c.isPermission==="true"||c.isPermission,T=f.isWorkflowPage(a),i=G.getPermissionCodes(r,a),C={ids:n,functionCode:i,isPermission:b+"",systemCode:l,isWorkflowEntity:T,listCodesMap:a.listCodesMap,pageCode:a.code,pageVersion:a.version};a.beanName&&(C.beanName=a.beanName);const h=r.props.deleteLogicSetting;h&&(typeof h=="object"?C.deleteLogicSetting=JSON.stringify(h):typeof h=="string"&&(C.deleteLogicSetting=h));const w=(N=r.props.base)==null?void 0:N.logSetting;w&&(C.logSettingText=w.join(""));const I=r.props.base.isSafeDelete;I&&(C.isSafeDelete=I);const M=(P=(R=r.runtime)==null?void 0:R.props)==null?void 0:P.title;M&&(C.currentOperation=M),C.isMobile=g.isMobileBrowser(),g.http.delete(d,{data:C}).then(S=>{const y=J.getComponentRef(a,u);y&&(y.isDeleteChange(!0),y.clearSelections()),V(a,r,S,"superPageRuntimeMessage.successfulDelete",!0),o(!0)}).catch(S=>{s(S)})}).catch(()=>{s()})})}(e)},downloadTemplate:function(e){(function(t){var M,N,R,P;const o=t.pageContext,s=t.configureObj,n=s.props.base,a=f.packageTemplateFiles(n.templateFiles,o,s);let r,c;a&&a.length>0&&(r=a[0].templateUuid,c=a[0].templateName);const l=o.systemCode,m=o.backendUrl;let u=c,p="?1=1";r&&u&&r!=="undefined"&&u!=="undefined"&&r!=="null"&&u!=="null"?p+="&fileName="+encodeURI(r)+"&showName="+encodeURI(u):u?p+="&showName="+encodeURI(u):o.label&&((M=t.tableConfigure)!=null&&M.title?(p+="&showName="+encodeURI(g.getI18n().t(t.tableConfigure.title))+".xlsx",u=g.getI18n().t(t.tableConfigure.title)+".xlsx"):(p+="&showName="+encodeURI(o.label)+".xlsx",u=o.label+".xlsx"));const d=(N=s.props.base)==null?void 0:N.logSetting;d&&(p+="&logSettingText="+d.join("")),l&&(p+="&systemCode="+l);const b=t.listCode;b&&(p+="&listCode="+b),o.beanName&&(p+="&beanName="+o.beanName);const T=G.getPermissionCodes(s,o);T&&(p+="&functionCode="+T),o.tableName&&(p+="&tableName="+o.tableName),o.code&&(p+="&pageCode="+o.code),o.version&&(p+="&pageVersion="+o.version);const i=g.getToken();i&&(p+="&JWT="+i);const C=(P=(R=s.runtime)==null?void 0:R.props)==null?void 0:P.title;C&&(p+="¤tOperation="+encodeURI(C)),p+="&isMobile="+g.isMobileBrowser();const h="_RUN_CURRENT_ROLE",w=g.getSessionCache(h);w&&(p+="&"+h+"="+w),n&&(p+="&isPermission="+(n.isPermission===void 0||n.isPermission==="true"||n.isPermission));const I=f.getBaseUrl(m,o.isTest);window.$http({url:encodeURI(I+"/dsc/commons/download-files"+p),method:"get",responseType:"blob"}).then(S=>{const y=document.createElement("a"),x=new Blob([S],{type:"application/vnd.ms-excel;charset=UTF-8"});y.style.display="none",y.remove("download"),y.href=URL.createObjectURL(x),y.setAttribute("download",u||"template.xlsx"),document.body.appendChild(y),y.click(),document.body.removeChild(y)})})(e)},import:function(e){const t=e.pageContext.code+"_";D.$emit(t+"import-file",e)},export:function(e){return function(t){return new Promise((o,s)=>{var h,w,I,M,N,R,P,S,y,x,U,v;const n=t.pageContext,a=t.configureObj,r=a.props.base,c=t.listCode,l=t.selections,m={};l&&l.length>0&&(m.data=l);let u=n.label;u||(u=n.code);let p=!1;p=r.isAsync!==void 0&&r.isAsync!==null&&r.isAsync;const d=r.isPermission===void 0||r.isPermission==="true"||r.isPermission,b=G.getPermissionCodes(a,n),T=u,i={backendUrl:n.backendUrl,pageContext:n},C=(w=(h=a.runtime)==null?void 0:h.props)==null?void 0:w.title;C&&(i.currentOperation=C),i.isShowWatermark=((M=(I=a.props)==null?void 0:I.watermark)==null?void 0:M.isShowWatermark)===void 0?"true":((R=(N=a.props)==null?void 0:N.watermark)==null?void 0:R.isShowWatermark)+"",i.watermarkContent=(S=(P=a.props)==null?void 0:P.watermark)!=null&&S.content&&((x=(y=a.props)==null?void 0:y.watermark)==null?void 0:x.content.length)>0?(v=(U=a.props)==null?void 0:U.watermark)==null?void 0:v.content.join("-~"):"",window.$vueApp.config.globalProperties.$exportDataNew(m,T,c,b,null,i,p,n.code,d),p&&setTimeout(()=>{me(n)},100)})}(e)},search:function(e){const t=e.pageContext,o=e.tableUuid;J.getComponentRef(t,o).refresh()},showSearch:function(e){const t=e.pageContext,o=e.tableUuid;J.getComponentRef(t,o).showMobileSearch()},workflowSave:function(e){return D.$emit("clearTableAllStartEditing"),async function(t){return new Promise((o,s)=>{const n=t.pageContext;if(Q(n))return void o(!1);const a=n.entity.data,r=n.systemCode,c=n.backendUrl;let l=f.getBaseUrl(c,n.isTest)+"/dsc/workflow-commons";if(l=f.getRealRestApiPath(l,r,c,n.isTest),!l)return void k.ElMessage({showClose:!0,type:"warning",message:g.getI18n().t("superPageRuntimeMessage.requestPathEmpty")});const m=_(t);let u;u=a.id||a.ID?g.http.put(l,m):g.http.post(l,m),j.cacheBackfillData(n.code,a),u.then(p=>{let d=!0;p&&(j.removeCacheFillData(n.code,a),d=z(p,!1,n,t,null)),d===!0&&k.ElMessage({showClose:!0,type:"success",message:g.getI18n().t("superPageRuntimeMessage.successfulSave")}),D.$emit("clearTableAllEndEditing"),o(!0)}).catch(p=>{s(p)})})}(e)},workflowStart:function(e){return D.$emit("clearTableAllStartEditing"),async function(t){return new Promise((o,s)=>{const n=t.pageContext,a=n.entity.data,r=n.systemCode,c=n.backendUrl;if(Q(n))return void o(!1);let l=f.getBaseUrl(c,n.isTest)+"/dsc/workflow-commons/start";if(l=f.getRealRestApiPath(l,r,c,n.isTest),!l)return void k.ElMessage({showClose:!0,type:"warning",message:g.getI18n().t("superPageRuntimeMessage.requestPathEmpty")});const m=_(t);let u;a.workflow_id||a.WORKFLOW_ID?(l=f.getBaseUrl(c,n.isTest)+"/dsc/workflow-commons",l=f.getRealRestApiPath(l,r,c,n.isTest),u=g.http.put(l,m)):u=g.http.post(l,m),j.cacheBackfillData(n.code,a),u.then(p=>{let d=!0;p&&(j.removeCacheFillData(n.code,a),d=z(p,!1,n,t,null)),d===!0&&k.ElMessage({showClose:!0,type:"success",message:g.getI18n().t("superPageRuntimeMessage.successfulStart")}),D.$emit("clearTableAllEndEditing"),o(!0)}).catch(p=>{s(p)})})}(e)},submitProcess:function(e){return D.$emit("clearTableAllStartEditing"),function(t){return new Promise((o,s)=>{const n=t.pageContext;if(Q(n))return void o(!1);const a=n.systemCode,r=n.backendUrl;let c=f.getBaseUrl(r,n.isTest)+"/dsc/workflow-commons/submit";if(c=f.getRealRestApiPath(c,a,r,n.isTest),!c)return void k.ElMessage({showClose:!0,type:"warning",message:g.getI18n().t("superPageRuntimeMessage.requestPathEmpty")});const l=_(t);j.cacheBackfillData(n.code,n.entity.data);const m=g.http.post(c,l);m?m.then(u=>{let p=!0;u&&(j.removeCacheFillData(n.code,n.entity.data),p=z(u,!1,n,t,null)),p===!0&&k.ElMessage({showClose:!0,type:"success",message:g.getI18n().t("superPageRuntimeMessage.successfulSubmit")}),D.$emit("clearTableAllEndEditing"),o(!0)}).catch(u=>{s(u)}):j.removeCacheFillData(n.code,n.entity.data)})}(e)},submitTask:function(e){return X(e,"SUBMIT")},approve:function(e){return X(e,"APPROVE")},refuse:function(e){return X(e,"REFUSE")},readed:function(e){return X(e,"READED")},agreement:function(e){return X(e,"AGREEMENT")},oppose:function(e){return X(e,"OPPOSE")},kiken:function(e){return X(e,"KIKEN")},assign:function(e){return function(t){const o=t.pageContext,s=o.code+"_";D.$emit(s+"assign-task",t)}(e)},copyTask:function(e){return function(t){const o=t.pageContext,s=o.code+"_";D.$emit(s+"copy-task",t)}(e)},addSigner:function(e){return function(t){const o=t.pageContext,s=o.code+"_";D.$emit(s+"add-signer",t)}(e)},drawTask:function(e){return function(t){const o=t.pageContext,s=o.backendUrl,n=f.getBaseUrl(s,o.isTest)+"/dsc/workflow-commons/draw-tasks",a=_(t);return H(t,a,n,"superPageRuntimeMessage.successfulDrawTask")}(e)},abandonReceive:function(e){return function(t){const o=t.pageContext,s=o.backendUrl,n=f.getBaseUrl(s,o.isTest)+"/dsc/workflow-commons/abandon-receives",a=_(t);return H(t,a,n,"superPageRuntimeMessage.successfulAbandonReceive")}(e)},returnToPreviousTask:function(e){return function(t){const o=t.pageContext,s=o.backendUrl,n=f.getBaseUrl(s,o.isTest)+"/dsc/workflow-commons/return-to-previous-tasks",a=_(t);return H(t,a,n,"superPageRuntimeMessage.successfulReturnToPreviousTask")}(e)},endInstance:function(e){return function(t){const o=t.pageContext,s=o.backendUrl,n=f.getBaseUrl(s,o.isTest)+"/dsc/workflow-commons/end-instance",a=_(t);return H(t,a,n,"superPageRuntimeMessage.successfulEndInstance")}(e)},returnTaskTo:function(e){return function(t){const o=t.pageContext,s=o.code+"_";D.$emit(s+"choose-return-node",t)}(e)},removeSigner:function(e){return function(t){const o=t.pageContext,s=o.code+"_";D.$emit(s+"remove-signer",t)}(e)},retrieveTask:function(e){return function(t){const o=t.pageContext,s=o.backendUrl,n=f.getBaseUrl(s,o.isTest)+"/dsc/workflow-commons/retrieves",a=_(t);return H(t,a,n,"superPageRuntimeMessage.successfulRetrieve")}(e)},extractWorkflow:function(e){return Ee(e)},extractWorkflowEvent:function(e){return function(t){const o=t.pageContext;D.$emit(o.code+"_event-call-component",{componentName:"extract-workflow-dialog",componentProps:{pageContext:t.pageContext,configure:t.configureObj}})}(e)},cancelExtractWorkflow:function(e){return function(t){const o=t.pageContext,s=o.backendUrl,n=f.getBaseUrl(s,o.isTest)+"/dsc/workflow-commons/cancel-extract",a=_(t);return H(t,a,n,"superPageRuntimeMessage.successfulCancelExtract")}(e)},approveExtractWorkflow:function(e){return function(t){const o=t.pageContext,s=o.backendUrl,n=f.getBaseUrl(s,o.isTest)+"/dsc/workflow-commons/approve-extract",a=_(t);return H(t,a,n,"superPageRuntimeMessage.successfulOperation")}(e)},refuseExtractWorkflow:function(e){return function(t){const o=t.pageContext,s=o.backendUrl,n=f.getBaseUrl(s,o.isTest)+"/dsc/workflow-commons/refuse-extract",a=_(t);return H(t,a,n,"superPageRuntimeMessage.successfulOperation")}(e)},viewDetail:function(e){},lineEditCreate:function(e){return function(t){const o=t.pageContext,s=t.tableUuid,n=J.getComponentRef(o,s);n&&(t.getDefaultValueFunc=G.getDefaultValue,n.createRow(t.listCode,{},t))}(e)},printLabel:function(e){return function(t){let o=null;try{if(o=t.menuItem?t.menuItem.templateUuid:t.configureObj.props.base.template[0].templateUuid,!o)throw new Error("未找到模板")}catch(s){console.error("打印标签失败,未在配置中找到找到模板",s,t)}Be.default.printLabel(t,o)}(e)},queryCharts:function(e){we(e)},resetCharts:function(e){var o,s;const t=e.pageContext;Object.assign(t.entity.data,f.deepCopy((o=t.initChartData)==null?void 0:o.data)),Object.assign(t.entity.page,f.deepCopy((s=t.initChartData)==null?void 0:s.page)),e.isInitChart=!0,we(e)},exportCharts:function(e){(function(t){var i,C,h,w,I,M,N,R,P,S,y,x;const o=t.pageContext,s=o.allChartUuids;if(!s||s.length==0)return;const n=t.configureObj;let a=null;n&&n.runtime&&(a=n.runtime.props);const r=a?a.state:void 0;a&&(a.state="disabled");const c=[];for(let U=0;U<s.length;U++){const v=s[U],E=J.getComponentRef(o,v);if(E){const A=E.getConfigure();A&&A.exportable&&A._dynamicShowFlag&&E.exportChart&&c.push(E.exportChart())}}if(!c||c.length==0)return;let l,m=o.label;m||(m=o.code),l=m;const u={reportDataList:c,beanName:o.beanName,systemCode:o.systemCode,pageCode:o.code},p=$(o);u.additionalParamMap=p;const d=(C=(i=n.runtime)==null?void 0:i.props)==null?void 0:C.title;d&&(u.currentOperation=d),u.isMobile=g.isMobileBrowser(),u.isShowWatermark=((w=(h=n.props)==null?void 0:h.watermark)==null?void 0:w.isShowWatermark)===void 0?"true":((M=(I=n.props)==null?void 0:I.watermark)==null?void 0:M.isShowWatermark)+"",u.watermark=(R=(N=n.props)==null?void 0:N.watermark)!=null&&R.content&&((S=(P=n.props)==null?void 0:P.watermark)==null?void 0:S.content.length)>0?(x=(y=n.props)==null?void 0:y.watermark)==null?void 0:x.content.join("-~"):"";const b=o.backendUrl,T=f.getBaseUrl(b,o.isTest)+"/dsc/commons/exportChart";pe(),ne.post(T,u,{responseType:"blob"}).then(U=>{const v=document.createElement("a");v.style.display="none",v.href=URL.createObjectURL(U.data),v.setAttribute("download",l+".xlsx"),document.body.appendChild(v),v.click(),document.body.removeChild(v)}).finally(()=>{a&&(a.state=r)})})(e)},saveQueryCharts:function(e){(function(t){const o=t.pageContext,s=t.configureObj,n=o.code+"_";D.$emit(n+"save-chart-condition",{pageContext:o,configureObj:s})})(e)},addTransactor:function(e){return function(t){const o=t.pageContext,s=o.code+"_";D.$emit(s+"add-transactor",t)}(e)},removeTransactor:function(e){return function(t){const o=t.pageContext,s=o.code+"_";D.$emit(s+"remove-transactor",t)}(e)}};function we(e){const t=e.pageContext,o=t.initChartServiceConfigs;if(!o||o.length==0)return;const s=e.configureObj;let n=null;s&&s.runtime&&(n=s.runtime.props);const a=n?n.state:void 0;n&&(n.state="disabled"),Y.updateChartDatasources(t,o,void 0,e.isInitChart).then(()=>{n&&(n.state=a)}).catch(()=>{n&&(n.state=a)})}function pe(){ne.defaults.headers.common.Authorization=g.getToken();const e=g.getRunCurrentRole();if(e){const t="_RUN_CURRENT_ROLE";ne.defaults.headers.common[t]=e}}function Q(e){if(e.fileuploadInfo&&e.fileuploadInfo.length>0){const t=e.fileuploadInfo[0];let o;return o=t.isTable&&t.tableTitle&&t.rowIndex!==void 0?g.getI18n().t("superPageRuntimeMessage.fileUploadUnCompleteTable",{label:t.label,tableTitle:t.tableTitle,rowIndex:t.rowIndex+1}):g.getI18n().t("superPageRuntimeMessage.fileUploadUnComplete",{label:t.label}),k.ElMessage({message:o,type:"warning",showClose:!0}),!0}return!1}function Te(e,t){return new Promise((o,s)=>{const n=e.pageContext,a=e.configureObj,r=e.mainDefaultValueColumns,c=e.dynamicColumnInfo,l=a.props.base.successOperation;let m=!1;if(l&&l==="noOperation"&&(m=!0),Q(n))return void o(!1);j.cacheBackfillData(n.code,n.entity.data);const u=Me(n,a,"/dsc/commons",m,r,c);u?u.then(p=>{p&&j.removeCacheFillData(n.code,n.entity.data),V(n,a,p,"superPageRuntimeMessage.successfulSave",t),o(p)}).catch(p=>{s(p)}):(j.removeCacheFillData(n.code,n.entity.data),s("保存时request不存在"))})}function Ie(e,t,o,s,n,a,r){var I,M,N;const c=f.isWorkflowPage(e),l=e.systemCode,m=t.props.base.isPermission===void 0||t.props.base.isPermission==="true"||t.props.base.isPermission,u=G.getPermissionCodes(t,e);let p=r;p||(p=e.entity.data);const d={entity:p,tableName:e.tableName,formNoRuleCode:e.formNoRuleCode,isWorkflowEntity:c,functionCode:u,isPermission:m+"",listCodesMap:e.listCodesMap,pageCode:e.code,pageVersion:e.version,listCodesInitSearchForm:e.listCodesInitSearchForm};a&&(d.ids=a),e.judgeHeavyList&&(f.isArrayFn(e.judgeHeavyList)?d.judgeHeavyList=JSON.stringify(e.judgeHeavyList):d.judgeHeavyList=e.judgeHeavyList);const b=t.props.base.conversionCodes;b&&(f.isArrayFn(b)?d.dataConversionRule=b.join(","):typeof b=="string"&&(d.dataConversionRule=b));const T=fe(t);T&&(d.autoSetValueData=T);const i=(I=t.props.base)==null?void 0:I.logSetting;i&&(d.logSettingText=i.join("")),d.systemCode||(d.systemCode=l);const C=e.beanName;C&&(d.beanName=C),n&&(d.dynamicColumnInfo=n),s&&(d.mainDefaultValueColumns=s);const h=$(e);d.additionalParamMap=h,o!==void 0&&(d.unControlVersion=o);const w=(N=(M=t.runtime)==null?void 0:M.props)==null?void 0:N.title;return w&&(d.currentOperation=w),d.isMobile=g.isMobileBrowser(),d}function Re(e,t,o,s,n,a,r,c,l){const m=e.systemCode,u=e.backendUrl,p=Ie(e,t,s,n,a,null,r);return c&&c.tableName&&(p.tableName=c.tableName),l&&(p.isWorkflowEntity=!1),r||e.pageType!=="form"?ke(m,u,p,o,r,e.isTest):ke(m,u,p,o,e.entity.data,e.isTest)}function Me(e,t,o,s,n,a){return Re(e,t,o,s,n,a,null,null)}function ke(e,t,o,s,n,a){let r,c=f.getBaseUrl(t,a)+s;return c=f.getRealRestApiPath(c,e,t,a),r=n&&(n.id||n.ID)?g.http.put(c,o):g.http.post(c,o),r}function V(e,t,o,s,n){const a=ve(e,t,n);if(a&&a==="list")(function(r,c,l,m){let u=c.props.base.successOperation;const p=c.props.base.isNeedValueMapping,d=W.getTableUuid(r,c);if(u||We.includes(c.name)||(u="refresh"),u==="refresh")d?J.getComponentRef(r,d).refresh():console.error("tableUuid is empty");else if(u==="closeWindow"||u==="closeWindowAndRefresh"){const b=f.deepCopy(r.entity.page);let T=l;T||(T={}),Object.assign(b,T),ge(r,c,b,p)}m&&k.ElMessage({message:g.getI18n().t(m),type:"success",showClose:!0})})(e,t,o,s),e.canClick=!0;else if(a&&a==="form")(function(r,c,l,m){if(l){const u=l;let p;p=u.entity?u.entity:u,u.formNo&&(r.initFormNo=u.formNo),ce(r,c,{...p,...r.entity.page})}else{const u=c.props.base.successOperation;u&&u!==null?ce(r,c,{...r.entity.page}):r.canClick=!0}m&&k.ElMessage({message:g.getI18n().t(m),type:"success",showClose:!0})})(e,t,o,s);else{const r=t.props.base.successOperation;r&&r!==null?ce(e,t,null):e.canClick=!0}}function ve(e,t,o){let s;return o===void 0?s=t.props.base.tableUuid?"list":null:o===!1&&(s="form"),s||(s=e.pageType),s}function ce(e,t,o){const s=t.props.base.successOperation;if(!s||s===null)return;const n=t.props.base.isNeedValueMapping;s==="noOperation"?e.canClick=!0:s==="refresh"?o&&(o.id||o.ID)?de(e,o.ID?o.ID:o.id):e.canClick=!0:s!=="closeWindow"&&s!=="closeWindowAndRefresh"||(ge(e,t,o,n),e.canClick=!0)}function ge(e,t,o,s){const n=e.entity&&e.entity.request?e.entity.request.jumpMode:null;if(n==="openWindow"||n==="newTab")window.parent?window.parent.close():window.close();else{const a=e.tableName,r=s!==void 0&&s===!0&&o&&o!==void 0,c=(e.entity&&e.entity.request?e.entity.request.parentPageCode:null)+"_close-dialog";D.$has(c)?D.$emit(c,{isNeedValueMapping:r,dataModel:o,sourceConfigureObj:t,sourceTableName:a,jumpMode:n}):n==="refresh"&&window.history.back()}}const We=["dropdown"];function Z(e,t,o,s){return new Promise((n,a)=>{const r=e.pageContext,c=e.configureObj;if(Q(r))return void n(!1);const l=e.mainDefaultValueColumns,m=e.dynamicColumnInfo,u=e.ids,p=c.props.base.successOperation;let d=!1;p&&p==="noOperation"&&(d=!0);let b=r.tableName;if(t){const i=c.props.base.tableUuid?c.props.base.tableUuid:e.tableUuid;b=se.getTableNameByTableUuid(r,i)}else j.cacheBackfillData(r.code,r.entity.data);const T=function(i,C,h,w,I,M,N,R,P){return new Promise((S,y)=>{const x=C.props.base.title,U="superPageRuntimeMessage.whetherToConfirm"+f.upperFirstCase(N);k.ElMessageBox.confirm(g.getI18n().t(U,{name:x}),g.getI18n().t("superPageRuntimeMessage.tips"),{confirmButtonText:g.getI18n().t("superPageRuntimeMessage.sure"),cancelButtonText:g.getI18n().t("superPageRuntimeMessage.cancel"),type:"warning"}).then(()=>{const v=i.systemCode,E=i.backendUrl,A=Ie(i,C,w,I,M,R,null);A.tableName=P;let B=f.getBaseUrl(E,i.isTest)+h;B=f.getRealRestApiPath(B,v,E,i.isTest),g.http.post(B,A).then(O=>{S(O)}).catch(O=>{y(O)})}).catch(()=>{y("点击了取消按钮")})})}(r,c,s,d,l,m,o,u,b);T?T.then(i=>{!t&&i&&j.removeCacheFillData(r.code,r.entity.data),V(r,c,i,"superPageRuntimeMessage.successfulSave",t),n(i)}).catch(i=>{a(i)}):(t||j.removeCacheFillData(r.code,r.entity.data),a("request不存在"))})}function _(e){var T,i,C;const t=e.pageContext,o=e.configureObj,s=t.entity.data,n=t.systemCode,a=t.code;let r=G.getPermissionCodes(o,t);r||(r=a+".xxx"),s.id||s.ID||(s.PAGE_CODE=t.code,s.PAGE_VERSION=t.version);const c={entity:s,pageMoel:t.entity.page,formNoRuleCode:t.formNoRuleCode,tableName:t.tableName,emailTemplateCode:t.emailTemplateCode,definitionId:t.definitionId,functionCode:r,systemCode:n,listCodesMap:t.listCodesMap,pageCode:t.code,pageVersion:t.version,listCodesInitSearchForm:t.listCodesInitSearchForm};t.dataTypeMaps&&Object.keys(t.dataTypeMaps).length>0&&(c.dataTypeMap=t.dataTypeMaps),t.completeTaskParam&&(c.completeTaskParam={taskId:t.completeTaskParam.taskId,opinion:t.completeTaskParam.opinion}),t.judgeHeavyList&&(f.isArrayFn(t.judgeHeavyList)?c.judgeHeavyList=JSON.stringify(t.judgeHeavyList):c.judgeHeavyList=t.judgeHeavyList);const l=o.props.base.conversionCodes;l&&(f.isArrayFn(l)?c.dataConversionRule=l.join(","):typeof l=="string"&&(c.dataConversionRule=l));const m=fe(o);m&&(c.autoSetValueData=m),t.beanName&&(c.beanName=t.beanName);const u=(T=o.props.base)==null?void 0:T.logSetting;u&&(c.logSettingText=u.join("")),c.systemCode||(c.systemCode=n);const p=$(t);c.additionalParamMap=p,p.ids&&p.ids.length>0&&(typeof p.ids=="string"?c.ids=p.ids.split(","):Array.isArray(p.ids)?c.ids=p.ids:typeof ids=="number"?c.ids=[p.ids]:console.error("ids参数类型错误"));const d=o.props.base.successOperation;d&&d==="noOperation"&&(c.unControlVersion=!0),c.isWorkflowEntity=!0;const b=(C=(i=o.runtime)==null?void 0:i.props)==null?void 0:C.title;return b&&(c.currentOperation=b),c.isMobile=g.isMobileBrowser(),c.taskParamMap=t.entity.task,c}function z(e,t,o,s,n){const a=o.code,r=o.version;let c;if(e){t&&(o.initFormNo=e.formNo,o.emailTemplateCode=e.emailTemplateCode),e.entity&&(o.entity.data=e.entity,function(m,u){const p=$(u);m&&p&&g.setSessionCache(p._t_+"_id",m)}(e.entity.id||e.entity.ID,o));const l=e.completeTaskResult;if(l){const m=l.completeTaskTipType;if(m&&m==="MESSAGE"){const u=l.content;return k.ElMessage({showClose:!0,type:"warning",message:u}),!1}}if(e.completeTaskParam){const m=e.completeTaskParam;c=m.taskId,s&&(s.taskId=c),Ce.setStoreInfo(a,r,"_completeTaskParam",m),o.fieldPermissions=m.fieldPermissions,o.actionPermissions=m.actionPermissions,o.workflowButtonComponent=m.buttonComponent,o.completeTaskParam=m,o.completeTaskParam.opinion=null}o.entity||(o.entity={}),o.entity.task=e.taskParamMap,Ce.setStoreInfo(a,r,"_currentActivityName",e.taskName)}return s&&(s.operationResult=n),t||V(o,s.configureObj,e,null,!1),!0}async function X(e,t){const o=await Se(e);return new Promise((s,n)=>{var r;const a=e.pageContext;if(Q(a))s(!1);else if(o){const c=a.systemCode,l=a.backendUrl,m=o===!0?(r=a.completeTaskParam)==null?void 0:r.opinion:o;let u=f.getBaseUrl(l,a.isTest)+"/dsc/workflow-commons/complete-tasks";if(u=f.getRealRestApiPath(u,c,l,a.isTest),!u)return void k.ElMessage({showClose:!0,type:"warning",message:g.getI18n().t("superPageRuntimeMessage.requestPathEmpty")});const p=_(e);p.completeTaskParam={operationResult:t,taskId:a.completeTaskParam?a.completeTaskParam.taskId:null,opinion:m||null};const d=g.http.post(u,p);j.cacheBackfillData(a.code,a.entity.data),d.then(b=>{let T=!0;b&&(j.removeCacheFillData(a.code,a.entity.data),T=z(b,!1,a,e,t)),T===!0&&k.ElMessage({showClose:!0,type:"success",message:g.getI18n().t("superPageRuntimeMessage.successfulCompleteTask")}),s(!0)}).catch(b=>{n(b)})}else s(!0)})}function Se(e){return new Promise((t,o)=>{var n,a,r,c,l;const s=e.configureObj;if(s){if((n=e.pageContext.workflowOpinion)!=null&&n.opinion)return void t(e.pageContext.workflowOpinion.opinion);let m=!1;if((r=(a=s.props)==null?void 0:a.base)!=null&&r.isMustOpinion&&(m=!0),m===!0){const u=e.pageContext,p=(l=(c=s.props)==null?void 0:c.base)==null?void 0:l.mustOpinionConditions;m=Y.caculateShowCondition(u,p)}m===!0?(k.ElMessage({showClose:!0,type:"warning",message:g.getI18n().t("superPageRuntimeMessage.pleaseInputOpinion")}),e.pageContext.workflowOpinion.focusOpinionInput=!0,t(!1)):t(!0)}else t(!0)})}function le(e){var u,p;const t=e.pageContext,o=t.entity.data,s=t.systemCode,n=t.code,a=e.configureObj,r=$(t),c=o.ID!==void 0&&o.ID!==null?o.ID:o.id,l={beanName:t.beanName,id:c,entity:o,additionalParamMap:r,tableName:t.tableName,functionCode:n+".xxx",isWorkflowEntity:!0,listCodesMap:t.listCodesMap,pageCode:t.code,pageVersion:t.version,listCodesInitSearchForm:t.listCodesInitSearchForm};l.completeTaskParam={taskId:t.completeTaskParam.taskId,systemCode:s},l.completeTaskParam.customTaskTitle=xe(e);const m=(p=(u=a==null?void 0:a.runtime)==null?void 0:u.props)==null?void 0:p.title;return m&&(l.currentOperation=m),l.isMobile=g.isMobileBrowser(),l}function xe(e){var o,s,n;let t=null;if(((s=(o=e.configureObj.props.task)==null?void 0:o.title)==null?void 0:s.length)>0)for(let a=0;a<e.configureObj.props.task.title.length;a++){const r=e.configureObj.props.task.title[a];if(r.config){if(!(((n=r.conditions)==null?void 0:n.length)>0)){t=r.config;break}if(Y.caculateShowCondition(e.pageContext,r.conditions)){t=r.config;break}}}return t}function $(e){if(e.entity){let t=f.deepCopy(e.entity.page);t||(t={});const o=e.entity.request;return o&&Object.assign(t,o),t}}async function H(e,t,o,s){const n=await Se(e);return new Promise((a,r)=>{var c;if(n){const l=e.pageContext,m=l.systemCode,u=l.backendUrl;if(l.completeTaskParam){const d=n===!0?(c=l.completeTaskParam)==null?void 0:c.opinion:n;t.completeTaskParam={taskId:l.completeTaskParam.taskId,opinion:d}}if(!(o=f.getRealRestApiPath(o,m,u,l.isTest)))return void k.ElMessage({showClose:!0,type:"warning",message:g.getI18n().t("superPageRuntimeMessage.requestPathEmpty")});const p=g.http.post(o,t);p&&p.then(d=>{let b=!0;d&&(b=z(d,!1,l,e,null)),b===!0&&k.ElMessage({showClose:!0,type:"success",message:g.getI18n().t(s)}),a(!0)}).catch(d=>{r(d)})}else a(!0)})}function Ee(e){const t=e.pageContext,o=t.backendUrl;let s=f.getBaseUrl(o,t.isTest)+"/dsc/workflow-commons/initiate-extract";const n=_(e);if(t.completeTaskParam){const a=[];e._value.loginName&&a.push(e._value.loginName),n.completeTaskParam={taskId:t.completeTaskParam.taskId,opinion:e._value.opinion,transactors:a,customTaskTitle:xe(e)}}return new Promise((a,r)=>{const c=e.pageContext,l=c.systemCode,m=c.backendUrl;if(s=f.getRealRestApiPath(s,l,m,c.isTest),!s)return void k.ElMessage({showClose:!0,type:"warning",message:g.getI18n().t("superPageRuntimeMessage.requestPathEmpty")});const u=g.http.post(s,n);u&&u.then(p=>{let d=!0;p&&(d=z(p,!1,c,e,null)),d===!0&&k.ElMessage({showClose:!0,type:"success",message:g.getI18n().t("superPageRuntimeMessage.successfulInitiateExtract")}),a(!0)}).catch(p=>{r(p)})})}function Le(e,t,o){return!(!e.processState||e.processState!=="EXTRACT"||e.active!=="WAIT_TRANSACT")}function de(e,t){e.entity.page||(e.entity.page={}),e.entity.page._isRefresh=!0,Ne(e,t).then(o=>{e.isRefresh=!0})}function Ne(e,t,o){const s=e.pageType;return s&&s==="form"?(e.canClick=!1,f.isWorkflowPage(e)?function(n,a,r){return new Promise((c,l)=>{var N;const m=n.systemCode,u=n.code,p=n.version,d=$(n);let b=a||null,T=a?[a]:null;r===void 0||r?(b||(b=d&&d.id?d.id:null),T||(T=d?d.ids:null)):(b=null,T=null,d._id=d.id,d.id=null);const i=d?d.taskId:null,C=u,h={pageCode:u,pageVersion:p,tableName:n.tableName,formNoRuleCode:n.formNoRuleCode,isWorkflowEntity:!0,systemCode:m,functionCode:C+".workflowGets",listCodesMap:n.listCodesMap,listCodesInitSearchForm:n.listCodesInitSearchForm};if(n.listCodesMap,(!n.listCodesMap||Object.keys(n.listCodesMap).length===0)&&n.tableUuids){const R={};n.tableUuids.forEach(P=>{const S=f.getListCode(u,p,P);R[S]=S}),h.listCodesMap=R}T&&(h.ids=Pe(T)),i?h.taskId=i:b?h.id=b:(d&&d._t_&&g.getSessionCache(d._t_+"_id")&&(h.id=g.getSessionCache(d._t_+"_id")),n.notIdInitializationList&&(h.noIdAndTaskIdInitSetting=JSON.stringify(n.notIdInitializationList))),d&&(h.additionalParamMap=d),n.beanName&&(h.beanName=n.beanName),n.refercePropMap&&(h.refercePropMap=n.refercePropMap),(N=n.props)!=null&&N.enableFormDataPermission&&(h.withDataPermission=!0),h.isMobile=g.isMobileBrowser();const w=f.getBaseUrl(n.backendUrl,n.isTest)+"/dsc/workflow-commons/gets",I=be.usePageContextStore();I.restorePageLoadState(),W.handleEvent(null,n,n,"beforeFormLoadData");const M=j.hasBackfillData(n.code,h.id);g.http.post(w,h).then(async R=>{M&&await ye(n,h.id,R),n.workflowOpinion={showOpinionBox:!1},n.definitionId=R.definitionId,n.entity.task=R.taskParamMap,n.dataTypeMaps=R.dataTypeMap,z(R,!0,n),n.workflowRules=he.getWorkflowRules(n);const P=n.pageType;P&&P==="form"&&function(S){(function(y){const x=new Map,U=y.fieldPermissions;if(U!==void 0)for(let v=0;v<U.length;v++){const E=U[v].name;if(E)if(E.indexOf("$")===0&&E.indexOf(".")>0){const A=U[v],B=JSON.parse(JSON.stringify(A)),O=E.substring(1,E.indexOf(".")),q=E.substring(E.indexOf(".")+1);if(B.name=q,B&&B.name==="all_fields")B.canEdit===!1?B.rowIndexes?x.set(O,[{name:"all_fields",canEdit:!1,rowIndexes:B.rowIndexes}]):x.set(O,[{name:"all_fields",canEdit:!1}]):B.rowIndexes?x.set(O,[{name:"all_fields",canEdit:!0,rowIndexes:B.rowIndexes}]):x.set(O,[{name:"all_fields",canEdit:!0}]);else{let L=x.get(O);L||(L=[]),L.push(B),x.set(O,L)}}else x.set(E,U[v])}y.fieldPermissionMap=x})(S),function(y){const x=y.fieldPermissionMap,U=new Map,v=y.actionPermissions;v!=null&&Object.keys(v).forEach(E=>{const A=v[E],B=x.get(E);if(B&&B.length>0&&B[0].name==="all_fields"&&B[0].canEdit===!1)A.canUpdate=!1,A.canAdd=!1;else{A&&Object.keys(A.deleteCondition).length!==0||(A.deleteCondition=null),A&&Object.keys(A.updateCondition).length!==0||(A.updateCondition=null);const O=A.canUpdate,q=A.updateRowIndexes;O!==void 0&&O===!1&&q!=null&&q.length>0&&x.set(E,[{name:"all_fields",canEdit:!1,rowIndexes:q}])}U.set(E,A)}),y.actionPermissionMap=U}(S)}(n),n.canClick=!0,W.handleEvent(null,n,n,"afterFormLoadData"),I.setFormPageDataLoadState(!0),c(R)}).catch(R=>{n.canClick=!0,l(R)})})}(e,t,o):function(n,a,r){return new Promise((c,l)=>{var R;const m=n.systemCode,u=n.code,p=n.version,d=$(n);let b=a||null,T=a?[a]:null;r===void 0||r?(b||(b=d&&d.id?d.id:null),T||(T=d?d.ids:null)):(b=null,T=null,d._id=d.id,d.id=null);const i=d?d.taskId:null,C=u,h=f.getBaseUrl(n.backendUrl,n.isTest),w={pageCode:u,pageVersion:p,tableName:n.tableName,formNoRuleCode:n.formNoRuleCode,id:b,systemCode:m,functionCode:C+".gets",listCodesMap:n.listCodesMap,listCodesInitSearchForm:n.listCodesInitSearchForm};if(!w.id&&d&&d._t_&&g.getSessionCache(d._t_+"_id")&&(w.id=g.getSessionCache(d._t_+"_id")),T&&(w.ids=Pe(T)),n.notIdInitializationList&&(w.noIdAndTaskIdInitSetting=JSON.stringify(n.notIdInitializationList)),d&&(w.additionalParamMap=d),n.beanName&&(w.beanName=n.beanName),i&&(w.taskId=i),(R=n.props)!=null&&R.enableFormDataPermission&&(w.withDataPermission=!0),n.listCodesMap,(!n.listCodesMap||Object.keys(n.listCodesMap).length===0)&&n.tableUuids){const P={};n.tableUuids.forEach(S=>{const y=f.getListCode(u,p,S);P[y]=y}),w.listCodesMap=P}n.refercePropMap&&(w.refercePropMap=n.refercePropMap),w.isMobile=g.isMobileBrowser();const I=h+"/dsc/commons/gets",M=be.usePageContextStore();M.restorePageLoadState(),W.handleEvent(null,n,n,"beforeFormLoadData");const N=j.hasBackfillData(n.code,w.id);g.http.post(I,w).then(async P=>{P&&(N&&await ye(n,w.id,P),n.entity.data=P.entity,n.initFormNo=P.formNo);const S=n.customRules,y=n.rules,x=he.packageCustomRules(n,S,y);n.rules=x,n.canClick=!0,W.handleEvent(null,n,n,"afterFormLoadData"),M.setFormPageDataLoadState(!0),c(P)}).catch(P=>{n.canClick=!0,l(P)})})}(e,t,o)):new Promise((n,a)=>{n(!0)})}async function ye(e,t,o){try{await k.ElMessageBox.confirm("检测到您有未保存的数据,是否继续填写上次未保存的数据?","提示",{confirmButtonText:"是",cancelButtonText:"否",type:"warning"}),o.entity=j.getRealFillData(e.code,t,o.entity)}catch{}j.removeCacheFillDataById(e.code,t)}function Pe(e){return e&&(typeof e=="string"?e=e.split(","):typeof e=="number"&&(e=[e])),e}function fe(e){const t=e.props.setValueList;if(t){if(f.isArrayFn(t)&&t.length>0)return JSON.stringify(t);if(typeof t=="string"&&t!=="[]")return t}return null}function me(e){e.exportNoticeInfo&&(e.exportNoticeInfo.noticeInterval&&clearInterval(e.exportNoticeInfo.noticeInterval),e.exportNoticeInfo.noticeComponent=null,e.exportNoticeInfo.noticeInterval=null),e.exportNoticeInfo={},Ae(e.exportNoticeInfo,e.backendUrl,e.code)}function Ue(e,t,o){e.lastFileTask&&!e.noticeComponent?e.noticeComponent=k.ElNotification({title:g.getI18n().t("superPageRuntimeMessage.logTip"),duration:0,position:"top-right",type:"success",onClose(){e.lastFileTask.taskState==="Success"||e.lastFileTask.taskState==="Fail"||e.lastFileTask.taskState==="PartSuccess"?ue(t,o,e.lastFileTask.id,e):(e.noticeComponent=null,e.noticeInterval==null&&Ae(e,t,o))},message:_e.h(je,{isShow:!0,backendUrl:t,lastFileTask:e.lastFileTask,onClickMsg(s){s.serverPath?function(n,a,r,c,l,m){ue(l,m,r,c);const u=g.getToken(),p=f.getBaseUrl(l),d=p+"/common/super-form/downloads?jwt="+u+"&showName="+encodeURI(n)+"&serverPath="+a;window.open(d)}(s.fileName,s.serverPath,s.id,e,t,o):ue(t,o,s.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 Ae(e,t,o){e.noticeInterval||(e.noticeInterval=setInterval(()=>{e.noticeComponent||function(s,n,a){Oe(n,a).then(r=>{s.lastFileTask=r,Ue(s,n,a)})}(e,t,o)},3e3))}function Oe(e,t){return se.getCurrentUserFileTasks(e,t)}function ue(e,t,o,s){se.setFileTaskRead(e,o).then(()=>{(function(n,a,r){Oe(a,r).then(c=>{n.lastFileTask=c,Ue(n,a,r)})})(s,e,t)})}exports.checkAndTipFileUploading=Q,exports.dealAfterOperate=V,exports.dealCompleteTaskParam=z,exports.deleteChartCondition=function(e){const t=window.$vueApp.config.globalProperties.baseAPI+"/component/chart-search-condition/"+e;return g.http.delete(t)},exports.doAddSigner=function(e,t){if(t){const o=e.pageContext,s=e.configureObj,n=o.systemCode,a=o.backendUrl;let r=f.getBaseUrl(a,o.isTest)+"/dsc/workflow-commons/add-signers";if(r=f.getRealRestApiPath(r,n,a,o.isTest),!r)return void k.ElMessage({showClose:!0,type:"warning",message:g.getI18n().t("superPageRuntimeMessage.requestPathEmpty")});const c=le(e);c.completeTaskParam.transactors=t.loginNames.join(",").split(",");const l=g.http.post(r,c);l&&l.then(m=>{k.ElMessage({showClose:!0,type:"success",message:g.getI18n().t("superPageRuntimeMessage.successfulOperation")}),m.entity&&V(o,s,m,null,!1),W.doAfterClickEvent(o,s)})}},exports.doAddTransactor=function(e,t){if(t){const o=e.pageContext,s=e.configureObj,n=o.systemCode,a=o.backendUrl;let r=f.getBaseUrl(a,o.isTest)+"/dsc/workflow-commons/add-transactors";if(r=f.getRealRestApiPath(r,n,a,o.isTest),!r)return void k.ElMessage({showClose:!0,type:"warning",message:g.getI18n().t("superPageRuntimeMessage.requestPathEmpty")});const c=le(e);c.completeTaskParam.transactors=t.loginNames.join(",").split(",");const l=g.http.post(r,c);l&&l.then(m=>{k.ElMessage({showClose:!0,type:"success",message:g.getI18n().t("superPageRuntimeMessage.successfulOperation")}),m.entity&&V(o,s,m,null,!1),W.doAfterClickEvent(o,s)})}},exports.doAssign=function(e,t){if(t){const o=e.pageContext,s=e.configureObj,n=o.backendUrl,a=f.getBaseUrl(n,o.isTest)+"/dsc/workflow-commons/assigns",r=t.id?t.id:t.ID?t.ID:null,c=_(e);c.assigneeId=r,H(e,c,a,"superPageRuntimeMessage.successfulAssign").then(l=>{W.doAfterClickEvent(o,s)})}},exports.doCreateCopyTask=async function(e,t){if(t){const o=await function(s){return new Promise((n,a)=>{var c,l,m,u;const r=s.configureObj;if(r){let p=(l=(c=r.props)==null?void 0:c.base)==null?void 0:l.isMustRemark;if(p===void 0||p===!0){p=!0;const d=s.pageContext,b=(u=(m=r.props)==null?void 0:m.base)==null?void 0:u.mustRemarkConditions;p=Y.caculateShowCondition(d,b)}p===!0?k.ElMessageBox.prompt(g.getI18n().t("superPageRuntimeMessage.pleaseInputRemark"),g.getI18n().t("superPageRuntimeMessage.remark"),{confirmButtonText:g.getI18n().t("superPageRuntimeMessage.sure"),cancelButtonText:g.getI18n().t("superPageRuntimeMessage.cancel"),inputType:"textarea",inputValue:null,closeOnClickModal:!1,inputValidator:d=>!(!d||!d.trim())||g.getI18n().t("superPageRuntimeMessage.pleaseInputRemark")}).then(({value:d})=>{n(d)}).catch(()=>{n(!1)}):n(!0)}else n(!0)})}(e);if(o){const s=e.pageContext,n=e.configureObj,a=s.systemCode,r=s.backendUrl;let c=f.getBaseUrl(r,s.isTest)+"/dsc/workflow-commons/copies";if(c=f.getRealRestApiPath(c,a,r,s.isTest),!c)return void k.ElMessage({showClose:!0,type:"warning",message:g.getI18n().t("superPageRuntimeMessage.requestPathEmpty")});const l=le(e);l.completeTaskParam.transactors=t.loginNames.join(",").split(","),o!==!0&&(l.completeTaskParam.remark=o);const m=g.http.post(c,l);m&&m.then(u=>{var p;k.ElMessage({showClose:!0,type:"success",message:g.getI18n().t("superPageRuntimeMessage.successfulOperation")}),V(s,n,{entity:(p=s.entity)==null?void 0:p.data},null),W.doAfterClickEvent(s,n)})}}},exports.doFileTaskFunc=me,exports.doImportFinally=function(e,t){var S,y,x,U;const o=e.pageContext,s=e.configureObj,n=e.tableConfigure,a=s.props.base,r=s.props.base.tableUuid?s.props.base.tableUuid:e.tableUuid,c=se.getTableNameByTableUuid(o,r),l=new FormData;l.append("multipartFile",t),c&&l.append("tableName",c);const m=(y=(S=s.runtime)==null?void 0:S.props)==null?void 0:y.title;m&&l.append("currentOperation",m),l.append("isMobile",g.isMobileBrowser()),o.importBeanName&&l.append("importBeanName",o.importBeanName),o.beanName&&l.append("beanName",o.beanName);const u=(x=n.props.importSetting)==null?void 0:x.listViewImportDuplicate;u&&l.append("importDuplicateRule",u);const p=o.judgeHeavyList;p&&l.append("judgeHeavyList",JSON.stringify(p));const d=fe(s);d&&l.append("autoSetValueData",d);const b=o.formNoRuleCode;b&&l.append("formNoRuleCode",b);const T=e.listCode;T&&l.append("listCode",T);let i=!1;i=a.isAsync!==void 0&&a.isAsync!==null&&a.isAsync,l.append("isAsync",i+""),l.append("pageCode",o.code);const C=f.isWorkflowPage(o);C!=null&&l.append("isWorkflowEntity",C+"");const h=G.getPermissionCodes(s,o);h&&l.append("functionCode",h);const w=$(o);l.append("additionalParamMapStr",JSON.stringify(w));const I=a.isPermission===void 0||a.isPermission==="true"||a.isPermission;l.append("isPermission",I+"");const M=o.systemCode;M&&l.append("systemCode",M);const N=(U=s.props.base)==null?void 0:U.logSetting;N&&l.append("logSettingText",N.join(""));const R=o.backendUrl;let P=f.getBaseUrl(R,o.isTest)+"/dsc/commons/import-data";P=f.getRealRestApiPath(P,M,R,o.isTest),g.http.post(P,l).then(v=>{if(i)k.ElMessage({showClose:!0,type:"success",message:g.getI18n().t("superPageRuntimeMessage.asyncImport")}),me(o);else{let E=!1;v?(E=!1,k.ElMessage({dangerouslyUseHTMLString:!0,showClose:!0,type:"warning",message:v})):(k.ElMessage({showClose:!0,type:"success",message:g.getI18n().t("superPageRuntimeMessage.successfulImport")}),E=!0),V(o,s,v,null,!0),o.result=E,W.doAfterClickEvent(o,s)}}).catch(v=>{})},exports.doRemoveSigners=function(e,t){if(t){const o=e.pageContext,s=e.configureObj,n=o.systemCode,a=o.backendUrl;let r=f.getBaseUrl(a,o.isTest)+"/dsc/workflow-commons/remove-signers";if(r=f.getRealRestApiPath(r,n,a,o.isTest),!r)return void k.ElMessage({showClose:!0,type:"warning",message:g.getI18n().t("superPageRuntimeMessage.requestPathEmpty")});const c=t.map(u=>u.id?u.id:u.ID?u.ID:null),l=_(e);l.ids=c;const m=g.http.post(r,l);m&&m.then(u=>{V(o,s,u,"superPageRuntimeMessage.successfulOperation",!1),W.doAfterClickEvent(o,s)})}},exports.doRemoveTransactors=function(e,t){if(t){const o=e.pageContext,s=e.configureObj,n=o.systemCode,a=o.backendUrl;let r=f.getBaseUrl(a,o.isTest)+"/dsc/workflow-commons/remove-transactors";if(r=f.getRealRestApiPath(r,n,a,o.isTest),!r)return void k.ElMessage({showClose:!0,type:"warning",message:g.getI18n().t("superPageRuntimeMessage.requestPathEmpty")});const c=t.map(u=>u.taskId),l=_(e);l.ids=c;const m=g.http.post(r,l);m&&m.then(u=>{V(o,s,u,"superPageRuntimeMessage.successfulOperation",!1),W.doAfterClickEvent(o,s)})}},exports.doReturnTaskTo=function(e,t){const o=e.pageContext,s=e.configureObj,n=o.backendUrl,a=f.getBaseUrl(n,o.isTest)+"/dsc/workflow-commons/returnTaskTo",r=_(e);t.nodeName&&(r.returnToNodeName=t.nodeName),t.nodeId&&(r.returnToNodeId=t.nodeId),H(e,r,a,"superPageRuntimeMessage.successfulReturnTaskTo").then(c=>{W.doAfterClickEvent(o,s)})},exports.exportFormReport=function(e,t,o,s){var I,M,N,R,P,S,y,x,U,v,E,A,B;e.clickUuid=t.uuid,e.canClick=!1;const n=o.templateUuid,a=o.templateName,r=e.systemCode,c=(I=t.props.base)==null?void 0:I.logSetting,l=f.isWorkflowPage(e),m=e.beanName,u=t.props.base,p=t.tableName?t.tableName:e.tableName,d=e.backendUrl,b=De.functions.getFormViewData(e),T=u.isPermission===void 0||u.isPermission==="true"||u.isPermission,i={entity:b,fileName:n,showName:a,beanName:m,isWorkflowForm:l,functionCode:G.getPermissionCodes(t,e),tableName:p,isPermission:T+"",systemCode:r,listCodesMap:e.listCodesMap,pageCode:e.code,pageVersion:e.version,listCodesInitSearchForm:e.listCodesInitSearchForm};if(e.tableUuids&&e.tableUuids.length>0){const O={};e.tableUuids.forEach(q=>{const L=J.getComponentRef(e,q);if(L){const ee=L.getConfigure().code,K=L.getSuperGridRef().columns;K&&K.length>0&&(O[ee]=K)}}),i.subTableColumns=O}c&&(i.logSettingText=c.join(""));const C=(N=(M=t.runtime)==null?void 0:M.props)==null?void 0:N.title;C&&(i.currentOperation=C),i.isMobile=g.isMobileBrowser();const h=$(e);let w;i.additionalParamMap=h,i.isShowWatermark=((P=(R=t.props)==null?void 0:R.watermark)==null?void 0:P.isShowWatermark)===void 0?"true":((y=(S=t.props)==null?void 0:S.watermark)==null?void 0:y.isShowWatermark)+"",i.watermark=(U=(x=t.props)==null?void 0:x.watermark)!=null&&U.content&&((E=(v=t.props)==null?void 0:v.watermark)==null?void 0:E.content.length)>0?(B=(A=t.props)==null?void 0:A.watermark)==null?void 0:B.content.join("-~"):"",w=s?function(O,q,L,ee){return new Promise((K,ie)=>{const re=f.getBaseUrl(q,ee)+"/dsc/commons/export-pdf";pe();const te=ne.post(re,L,{headers:{"content-type":"application/json"},responseType:"blob"});window.$message.info("正在导出中..."),te.then(oe=>{const ae=new Blob([oe.data]),F=document.createElement("a");F.download=O.substring(0,O.lastIndexOf("."))+".pdf",F.style.display="none",F.target="_blank",F.href=URL.createObjectURL(ae),document.body.appendChild(F),F.click(),URL.revokeObjectURL(F.href),document.body.removeChild(F),K(!0)}).catch(oe=>{ie(oe)})})}(a,d,i,e.isTest):function(O,q,L,ee){return new Promise((K,ie)=>{const re=f.getBaseUrl(q,ee)+"/dsc/commons/export-reports";pe(),ne.post(re,L,{responseType:"blob"}).then(te=>{const oe=new Blob([te.data]);let ae="报告.xlsx";O&&(ae=O);const F=document.createElement("a");F.download=ae,F.style.display="none",F.target="_blank",F.href=URL.createObjectURL(oe),document.body.appendChild(F),F.click(),URL.revokeObjectURL(F.href),document.body.removeChild(F),K(!0)}).catch(te=>{ie(te)})})}(a,d,i,e.isTest),w&&w.then(()=>{W.doAfterClickEvent(e,t)}).catch(O=>{window.$message.error("导出失败..."),W.doAfterClickEvent(e,t)})},exports.extractWorkflowFunc=Ee,exports.getAdditionalParamMap=$,exports.getFormData=Ne,exports.getRemoveSigner=function(e){const t=e.pageContext,o=t.systemCode,s=t.backendUrl;let n=f.getBaseUrl(s,t.isTest)+"/dsc/workflow-commons/get-remove-signers";const a=_(e);if(n=f.getRealRestApiPath(n,o,s,t.isTest),n)return g.http.post(n,a);k.ElMessage({showClose:!0,type:"warning",message:g.getI18n().t("superPageRuntimeMessage.requestPathEmpty")})},exports.getRemoveTransactor=function(e){const t=e.pageContext,o=t.systemCode,s=t.backendUrl;let n=f.getBaseUrl(s,t.isTest)+"/dsc/workflow-commons/get-remove-transactors";const a=_(e);if(n=f.getRealRestApiPath(n,o,s,t.isTest),n)return g.http.post(n,a);k.ElMessage({showClose:!0,type:"warning",message:g.getI18n().t("superPageRuntimeMessage.requestPathEmpty")})},exports.getSaveFormRequest=Me,exports.getSaveFormRequestWithRow=Re,exports.getTaskInformitions=function(e){const t=e.pageContext,o=t.systemCode,s=t.backendUrl,n=t.completeTaskParam;let a=f.getBaseUrl(s,t.isTest)+"/dsc/workflow-commons/returnable-task/"+n.taskId;if(a=f.getRealRestApiPath(a,o,s,t.isTest),!a)return void k.ElMessage({showClose:!0,type:"warning",message:g.getI18n().t("superPageRuntimeMessage.requestPathEmpty")});const r=t.code,c=$(t),l={beanName:t.beanName,additionalParamMap:c,tableName:t.tableName,functionCode:r+".xxx",pageCode:t.code};return g.http.post(a,l)},exports.isVisibleWorkflowButton=function(e,t,o,s,n,a){var c,l,m,u,p,d,b,T;let r=!1;if(s&&s.archival)return r;if(t&&o&&(t==="workflowSave"?r=function(i){return!!((i.processState===void 0||i.processState===null||i.processState==="UNSUBMIT"&&i.active==="WAIT_TRANSACT"&&i.theTransactor===!0)&&(i.processState===void 0||i.showButtonSave===!0)||i.processState&&i.processState==="SUBMIT"&&i.theTransactor===!0&&i.processingMode!=="TYPE_READ"&&i.showButtonSave&&(i.active==="WAIT_TRANSACT"||i.active==="WAIT_DESIGNATE_TRANSACTOR"||i.active==="WAIT_CHOICE_TACHE"||i.active==="DRAW_WAIT"))}(o):t==="workflowStart"?r=function(i,C){return!!(i.processState===void 0||i.processState===null||C&&!C.workflow_id&&!C.WORKFLOW_ID)}(o,a):t==="submitProcess"?r=function(i){return(i.processState===void 0||i.processState===null||i.processState==="UNSUBMIT"&&i.active==="WAIT_TRANSACT"&&i.theTransactor===!0)&&(i.processState===void 0||i.showButtonSave===!0)}(o):t==="submitTask"?r=function(i){return!!(i.processState&&i.processState==="SUBMIT"&&i.theTransactor===!0&&i.active==="WAIT_TRANSACT"&&i.processingMode==="EDIT")}(o):t==="drawTask"?r=function(i){return!!(i.processState&&i.processState==="SUBMIT"&&i.active&&(i.active==="DRAW_WAIT"||i.active==="DEPT_DRAW_WAIT")&&i.showButtonDraw)}(o):t==="abandonReceive"?r=function(i){return!!(i.processState&&i.processState==="SUBMIT"&&(i.drawTask&&i.active==="WAIT_TRANSACT"||i.canAbandonDeptTask&&i.active==="WAIT_TRANSACT")&&i.showButtonAbandon)}(o):t==="approve"||t==="refuse"?r=function(i){return!!(i.processState&&i.processState==="SUBMIT"&&i.active==="WAIT_TRANSACT"&&(i.processingMode==="APPROVE"||i.processingMode==="COUNTERSIGN"))}(o):t==="readed"?r=function(i){return i.active==="WAIT_TRANSACT"&&i.processingMode==="TYPE_READ"}(o):t==="assign"?r=function(i){return!!(i.processState&&i.processState==="SUBMIT"&&i.processingMode!=="TYPE_READ"&&(i.active==="WAIT_TRANSACT"||i.active==="DRAW_WAIT"))}(o):t==="copyTask"?r=function(i,C){let h=!1;return i.processState&&i.processState==="SUBMIT"&&i.active==="WAIT_TRANSACT"&&i.processingMode!=="TYPE_READ"&&i.showButtonCopy&&(h=!0),C&&(C.props.base.state=h?"":"hidden"),!0}(o,n):t==="addSigner"?r=function(i){return!!(i.processState&&i.processState==="SUBMIT"&&i.active==="WAIT_TRANSACT"&&i.processingMode==="COUNTERSIGN"&&i.showButtonAddCounter)}(o):t==="removeSigner"?r=function(i){return!!(i.processState&&i.processState==="SUBMIT"&&i.active==="WAIT_TRANSACT"&&i.processingMode==="COUNTERSIGN"&&i.showButtonDelCounter)}(o):t==="retrieveTask"?r=function(i){return!!(i.processState&&i.processState!=="END"&&i.processState==="SUBMIT"&&i.showButtonGetBack===!0&&function(C){return!(C.active!=="COMPLETED"||C.processingMode==="TYPE_READ"||!C.showButtonGetBack)}(i))}(o):t==="agreement"||t==="oppose"?r=function(i){return!!(i.processState&&i.processState==="SUBMIT"&&i.active==="WAIT_TRANSACT"&&i.processingMode==="VOTE")}(o):t==="kiken"?r=function(i){return!!(i.processState&&i.processState==="SUBMIT"&&i.active==="WAIT_TRANSACT"&&i.processingMode==="VOTE"&&i.showButtonKiken)}(o):t==="extractWorkflow"?r=function(i,C,h){var M;const w=g.getCurrentUser(),I=w?w.loginName:null;if(i!=null&&i.processState){if(((M=C==null?void 0:C.firstNodeInfo)==null?void 0:M.nodeId)===(h==null?void 0:h.CURRENT_ACTIVITY_ID))return!1;if((i==null?void 0:i.processState)!=="END"&&(i==null?void 0:i.processState)!=="EXTRACT"&&(i==null?void 0:i.processState)!=="MANUAL_END"&&h&&(h.creator===I||h.CREATOR===I))return!0}return!1}(o,s,a):t==="cancelExtractWorkflow"?r=function(i,C,h){const w=g.getCurrentUser(),I=w?w.loginName:null;return!!((i==null?void 0:i.processState)==="EXTRACT"&&h&&(h.creator===I||h.CREATOR===I))}(o,0,a):t==="approveExtractWorkflow"||t==="refuseExtractWorkflow"?r=Le(o):t==="addTransactor"||t==="removeTransactor"?r=function(i){return!!(i.processState&&i.processState==="SUBMIT"&&(i.active==="WAIT_TRANSACT"||i.active==="DRAW_WAIT")&&i.processingMode!=="COUNTERSIGN")}(o):function(i,C){return i.processState&&i.processState==="SUBMIT"&&i.processingMode!=="TYPE_READ"&&!function(h){const w=h;let I=!0;return w&&(I=w.taskComplete),I}(C)}(o,s)&&(r=t!=="returnToPreviousTask"||function(i){return!!i.rebuttable}(o))),(n==null?void 0:n.check)&&["submitTask","approve","refuse","agreement","oppose","kiken","extractWorkflow","cancelExtractWorkflow","approveExtractWorkflow","refuseExtractWorkflow","returnToPreviousTask","returnTaskTo"].indexOf(t)!==-1&&r){if(e.workflowOpinion||(e.workflowOpinion={showOpinionBox:!1}),(l=(c=n.props)==null?void 0:c.base)==null?void 0:l.showOpinionBox){e.workflowOpinion.showOpinionBox=!0;const C=(u=(m=n.props)==null?void 0:m.base)==null?void 0:u.showOpinionBoxConditions;C&&C.length>0&&(e.workflowOpinion.showOpinionBox=Y.caculateShowCondition(e,C))}let i=!1;if((d=(p=n.props)==null?void 0:p.base)!=null&&d.isMustOpinion){if(i=!0,i===!0){const C=(T=(b=n.props)==null?void 0:b.base)==null?void 0:T.mustOpinionConditions;C&&C.length>0&&(i=Y.caculateShowCondition(e,C))}e.workflowOpinion.isRequired=i,i&&(e.workflowOpinion.showOpinionBox=!0)}}return e.workflowOpinion,r},exports.judgeDataNumber=function(e,t){const o=e.props.base;if(o.conditionsForExecution&&o.conditionsForExecution!==""){if(o.conditionsForExecution==="one"){if(!t||t.length!==1)return k.ElMessage({showClose:!0,type:"warning",message:g.getI18n().t("superPageRuntimeMessage.thePreconditionOfTheButtonTo",{message:g.getI18n().t("superPageRuntimeMessage.onlyOneRecordCanBeselected")})}),!1}else if(o.conditionsForExecution==="more"&&(!t||t.length<=0))return k.ElMessage({showClose:!0,type:"warning",message:g.getI18n().t("superPageRuntimeMessage.thePreconditionOfTheButtonTo",{message:g.getI18n().t("superPageRuntimeMessage.selectAtLeastOneRecord")})}),!1}return!0},exports.listChartConditions=function(e){const t=e.code,o=window.$vueApp.config.globalProperties.baseAPI+"/component/chart-search-condition/list/"+t;return g.http.get(o)},exports.refreshFormOrListPage=function(e,t,o,s){var r;t&&!t.props.base&&(t.props.base={});let n=s;n||(n=o?"refresh":(r=t.props.base)==null?void 0:r.successOperation);const a=ve(e,t);if(a&&a==="list"&&!n&&(n="refresh"),n==="refresh"){if(a&&a==="list"){const c=W.getTableUuid(e,t);c?J.getComponentRef(e,c).refresh():console.error("tableUuid is empty")}else if(a&&a==="form"){const c=e.entity.data;de(e,c.ID?c.ID:c.id)}}},exports.refreshPage=de,exports.saveChartConditionBase=function(e,t){const o=e.entity?e.entity:{},s={data:o.data,page:o.page},n={pageCode:e.code,queryCondition:JSON.stringify(s),name:t},a=window.$vueApp.config.globalProperties.baseAPI+"/component/chart-search-condition";return g.http.post(a,n)},exports.standardEvents=Fe,exports.updateValuesWhenCloseDialog=function({parentPageContext:e,parentEventParams:t,parentConfigureObj:o,sourceModel:s,sourceTableName:n,valueMappings:a}){var c;a||(a=o.runtime&&o.runtime.linkPage&&o.runtime.linkPage.valueMappings?o.runtime.linkPage.valueMappings:null)||(a=(c=o.props.linkPage)==null?void 0:c.valueMappings);const r=e.tableName;(function(l,m,u){if(l&&l!==null&&m){let p=l;Array.isArray(l)&&l.length>0&&(p=l[0]),m.forEach(d=>{const b=d.source;if(!b)return;const T=b.split("."),i=Y.getVariableValue(p,T),C=d.target,h=G.getModelFields(null,C);Y.setVariableValue(u.entity,h,i)})}})(s,a,e),W.handleEvent(null,e,o,"setValue",{sourceModel:s,sourceTableName:n,entity:e.entity.data,targetTableName:r,eventParams:t})};
|
|
@@ -0,0 +1,107 @@
|
|
|
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 checkAndTipFileUploading(pageContext: any): boolean;
|
|
58
|
+
export declare function getSaveFormRequestWithRow(pageContext: PageContext, configureObj: any, url: string, isUnControlVersion: boolean, mainDefaultValueColumns: any, dynamicColumnInfo: any, row: any, otherParams: any, isTable?: any): any;
|
|
59
|
+
export declare function getSaveFormRequest(pageContext: PageContext, configureObj: any, url: any, isUnControlVersion: any, mainDefaultValueColumns: any, dynamicColumnInfo: any): any;
|
|
60
|
+
/**
|
|
61
|
+
* 按钮执行后页面处理方式:刷新、关闭弹框等等
|
|
62
|
+
* @param pageContext
|
|
63
|
+
* @param configureObj
|
|
64
|
+
* @param data
|
|
65
|
+
* @param successTip
|
|
66
|
+
* @param isListButton
|
|
67
|
+
*/
|
|
68
|
+
export declare function dealAfterOperate(pageContext: any, configureObj: any, data: any, successTip: any, isListButton?: boolean): void;
|
|
69
|
+
export declare function updateValuesWhenCloseDialog({ parentPageContext, parentEventParams, parentConfigureObj, sourceModel, sourceTableName, valueMappings }: {
|
|
70
|
+
parentPageContext: any;
|
|
71
|
+
parentConfigureObj: any;
|
|
72
|
+
parentEventParams: any;
|
|
73
|
+
sourceModel: any;
|
|
74
|
+
sourceTableName: any;
|
|
75
|
+
valueMappings?: any;
|
|
76
|
+
}): void;
|
|
77
|
+
export declare function refreshFormOrListPage(pageContext: any, configureObj: any, isRefreshWhenClosePopup: any, mySuccessOperation: any): void;
|
|
78
|
+
export declare function doImportFinally(params: any, fileObj: any): void;
|
|
79
|
+
export declare function judgeDataNumber(buttonConfigureObj: any, ids: any): boolean;
|
|
80
|
+
export declare function dealCompleteTaskParam(commonEntity: any, isInit: any, pageContext: any, params?: any, operationResult?: any): boolean;
|
|
81
|
+
export declare function doAssign(params: any, selectNodeInfo: any): void;
|
|
82
|
+
export declare function getAdditionalParamMap(pageContext: any): any;
|
|
83
|
+
export declare function doAddSigner(params: any, selectNodeInfo: any): void;
|
|
84
|
+
export declare function doAddTransactor(params: any, selectNodeInfo: any): void;
|
|
85
|
+
export declare function doCreateCopyTask(params: any, selectNodeInfo: any): Promise<void>;
|
|
86
|
+
export declare function getTaskInformitions(params: any): any;
|
|
87
|
+
export declare function doReturnTaskTo(params: any, selectTaskNode: any): void;
|
|
88
|
+
export declare function getRemoveSigner(params: any): any;
|
|
89
|
+
export declare function doRemoveSigners(params: any, selectRemoveTasks: any): void;
|
|
90
|
+
export declare function getRemoveTransactor(params: any): any;
|
|
91
|
+
export declare function doRemoveTransactors(params: any, selectRemoveTasks: any): void;
|
|
92
|
+
export declare function extractWorkflowFunc(params: any): Promise<unknown>;
|
|
93
|
+
export declare function isVisibleWorkflowButton(pageContext: any, standardEventName: any, buttonInfo: any, completeTaskParam: any, btnConfigure: any, data: any): boolean;
|
|
94
|
+
/**
|
|
95
|
+
* 刷新页面
|
|
96
|
+
* @param pageContext
|
|
97
|
+
*/
|
|
98
|
+
export declare function refreshPage(pageContext: PageContext, id?: any): void;
|
|
99
|
+
/**
|
|
100
|
+
* 获得表单数据
|
|
101
|
+
* @param pageContext
|
|
102
|
+
*/
|
|
103
|
+
export declare function getFormData(pageContext: PageContext, id?: any, isNeedId?: boolean): Promise<unknown>;
|
|
104
|
+
export declare function saveChartConditionBase(pageContext: any, conditionName: string): any;
|
|
105
|
+
export declare function listChartConditions(pageContext: any): any;
|
|
106
|
+
export declare function deleteChartCondition(conditionId: any): any;
|
|
107
|
+
export declare function doFileTaskFunc(pageContext: any): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const he=require("async-validator"),T=require("element-plus"),y=require("../global-refs.cjs"),m=require("agilebuilder-ui"),H=require("./standard-event.cjs"),M=require("../common-util.cjs"),I=require("../anchor-util.cjs"),be=["downloadTemplate","back","exportForm","exportPDF","lineEditCreate","workflowSave"];function k(e,t=new WeakMap){if(typeof structuredClone=="function")try{return structuredClone(e)}catch{}if(e===null||typeof e!="object")return e;const n=e;if(t.has(n))return t.get(n);if(Array.isArray(e)){const s=[];return t.set(n,s),e.forEach((i,o)=>{s[o]=k(i,t)}),s}if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp)return new RegExp(e.source,e.flags);if(e instanceof Map){const s=new Map;return t.set(n,s),e.forEach((i,o)=>{s.set(k(o,t),k(i,t))}),s}if(e instanceof Set){const s=new Set;return t.set(n,s),e.forEach(i=>{s.add(k(i,t))}),s}const r={};return t.set(n,r),Object.keys(e).forEach(s=>{r[s]=k(e[s],t)}),r}function K(e,t,n){const r={};t||(t={});let s=0;const i=e.split(".");return i.forEach(o=>{let l;if(s===i.length-1)l=function(u,a,c){let g;for(let f=0;f<a.length&&(g=f===0?u[a[f]]:g.fields[a[f]],!(f!==a.length-1&&a[f+1]===c));f++);return g}(r,i,o),l.fields[o]=n;else{let u;s===0?l=t:(u=function(a,c,g){let f;for(let d=0;d<c.length;d++){const h=c[d];if(f=d===0?a[h]:f.fields[c[d]],h===g)break}return f}(r,i,i[s-1]),l=u.fields),l[o]||(l[o]={type:"object",required:!0,fields:{}}),s===0?r[o]=l[o]:u.fields[o]=l[o]}s++}),r}function se(e,t,n,r,s,i){return U(e,t,n,r,!0,s,i)}function oe(e){if(e)return Object.keys(e).forEach(t=>{if(t.indexOf(".")>=0){let n=[];n=t.split("."),e[n[0]]?e[n[0]].fields[n[1]]=e[t][0]:(e[n[0]]=new Object,e[n[0]].fields=new Object,e[n[0]].fields[n[1]]=e[t][0],e[n[0]].type="object"),delete e[t]}}),e}function U(e,t,n,r,s,i,o){var c;let l=oe(t);if(t&&t!==null||!n||(l={}),!l||Object.keys(l).length===0)return e.validateErrorField="",!0;const u=((c=o.props)==null?void 0:c.highlightAllRequiredField)||!1;let a;return new he(l).validate(e,{first:!u},(g,f)=>{if(u){if(a=g||!0,a===!0&&s===!0&&l){const d=/[A-Z]+/,h=Object.keys(l);if(h.some(b=>d.test(b)&&e[b.toLowerCase()]!==void 0)){const b=JSON.parse(JSON.stringify(e));h.forEach(w=>{d.test(w)&&e[w.toLowerCase()]!==void 0&&(b[w.toUpperCase()]=e[w.toLowerCase()],delete b[w.toLowerCase()])}),a=U(b,t,n,r,!1,i,o)}}a!==!0&&T.ElMessage({showClose:!0,message:m.getI18n().t("superPageRuntimeMessage.pleaseInputRequiredInfo"),type:"warning"})}else{let d;if(g){a=g[0].message,d=g[0].field,T.ElMessage({message:a,showClose:!0,type:"warning",duration:3e3});const h=y.getComponentRefByCode(o,d);if(h&&h.addRequiredClass){h.addRequiredClass();try{I.scrollIntoComponentWithCode(o,d)}catch(b){console.error("滚动失败",b)}}}else a=!0;if(d&&s===!0&&/[A-Z]+/.test(d)&&e[d.toLowerCase()]!==void 0){const h=JSON.parse(JSON.stringify(e));h[d.toUpperCase()]=e[d.toLowerCase()],delete h[d.toLowerCase()],a=U(h,t,n,r,!1,i,o)}}}),a}function W(e,t){if(t.listCode){const n=y.getComponentRefByCode(e,t.listCode);n!=null&&n.addRequiredClass&&n.addRequiredClass(t.field,t.rowIndex,t.pageNum)}else if(t.field){const n=y.getComponentRefByCode(e,t.field);n!=null&&n.addRequiredClass&&n.addRequiredClass()}}function re(e,t){t.forEach(n=>W(e,n))}function ie(e,t){try{I.scrollIntoComponentWithCode(e,t.listCode);const n=y.getComponentRefByCode(e,t.listCode);n!=null&&n.scrollToCell&&n.scrollToCell({fieldName:t.field,rowIndex:t.rowIndex,pageNum:t.pageNum})}catch(n){console.error("滚动到验证失败的子表字段失败,可能是表格组件版本较低没有scrollToCell方法",n)}}function le(e,t){try{I.scrollIntoComponentWithCode(e,t)}catch(n){console.error("滚动失败",n)}}function ae(e,t){let n=null,r=1/0;return t.forEach(s=>{const i=s.listCode||s.field;if(!i)return;const o=y.getComponentRefByCode(e,i),l=(o==null?void 0:o.$el)||o;if(l!=null&&l.getBoundingClientRect){const u=l.getBoundingClientRect();u.top<r&&(r=u.top,n=s)}}),n}function ue(e,t){t&&(t.listCode?ie(e,t):t.field&&le(e,t.field))}function j(e){return new Promise((t,n)=>{const r=[],s=e.customValidatorUuids;s&&s.forEach(i=>{const o=y.getComponentRef(e,i);o&&o.validator&&r.push(o.validator())}),r&&r.length>0?Promise.all(r).then(i=>{i.includes(!1)?t(!1):t(!0)}):t(!0)})}function Q(e,t,n){return new Promise((r,s)=>{var u;const i=JSON.parse(JSON.stringify(e)),o=k(n),l=t.hiddenNotValidatorCodes;if(o&&l&&l.size>0&&l.forEach(a=>{delete o[a]}),o&&Object.keys(o).length!==0){const a=se(i,o,null,null,!0,t);if((u=t.props)!=null&&u.highlightAllRequiredField&&a&&Array.isArray(a)&&a.length>0&&(re(t,a),ue(t,ae(t,a)),r(!1)),a===!0)if(X(t)===!0){const c=ee(t);c&&m.isPromise(c)?c.then(g=>{g?j(t).then(f=>{r(f)}):r(!1)}):j(t).then(g=>{r(g)})}else s(new Error(m.getI18n().t("superPageRuntimeMessage.tableListSubTableDataVerificationFailed")).message);else s(new Error(m.getI18n().t("superPageRuntimeMessage.formDataVerificationFailed")).message)}else if(X(t)===!0){const a=ee(t);a&&m.isPromise(a)?a.then(c=>{c?j(t).then(g=>{r(g)}):r(!1)}):j(t).then(c=>{r(c)})}else s(new Error(m.getI18n().t("superPageRuntimeMessage.tableListSubTableDataVerificationFailed")).message)})}function S(e,t,n){if(!t)return n;n||(n={});const r=M.isWorkflowPage(e),s=Object.keys(t),i=t;return s.forEach(o=>{if(o==="__subRules"){const l=i.__subRules;Object.keys(l).forEach(u=>{n.subRules||(n.subRules={}),n.subRules[u]?Object.assign(n.subRules[u],l[u]):n.subRules[u]=l[u]})}else fe(i[o]),r?(n.rules[o]=i[o],n[o]&&(n[o]=i[o])):n[o]=i[o]}),oe(n)}function X(e){var n;if(!e||M.isWorkflowPage(e))return!0;const t=e.tableUuids;if(!t)return!0;for(let r=0;r<t.length;r++){const s=t[r],i=e.hiddenNotValidatorCodes;if(i&&i.size>0&&i.has(s))continue;const o=y.getComponentRef(e,s);if(o){if(o.getConfigure()){const l=o.getConfigure();if((n=l==null?void 0:l.verification)!=null&&n.notEmpty){const u=o.getTableData();if(!u||!Array.isArray(u)||u.length===0){try{I.scrollIntoComponentWithUuid(e,s)}catch{}return T.ElMessage({showClose:!0,message:m.getI18n().t("superPageRuntimeMessage.xxxNotEmpty",{label:l.title?l.title:l.code}),type:"warning"}),!1}}}if(o.validatorSunTableListData()===!1){try{I.scrollIntoComponentWithUuid(e,s)}catch{}return!1}}}return!0}function Y(e,t){e.forEach(n=>{n.message;const r=n.label,s=m.getI18n().t(r);n.required&&(n.message=m.getI18n().t("superPageRuntimeMessage.required",{label:s})),n.myType&&(n.message=m.getI18n().t("superPageRuntimeMessage.formatMismatch",{label:s})),n.patternType&&(n.message=m.getI18n().t("superPageRuntimeMessage.formatMismatch",{label:s})),n.max!==void 0&&n.max!==null&&(n.message=m.getI18n().t("superPageRuntimeMessage.overMaxLength",{label:s,value:n.max})),n.min!==void 0&&n.min!==null&&(n.message=m.getI18n().t("superPageRuntimeMessage.limitMinLength",{label:s,value:n.min}))})}function ee(e){const t=[];return e.customRuleEvents&&e.customRuleEvents.length>0&&e.customRuleEvents.forEach(n=>{n.events.forEach(r=>{const s=e.customEvents[r];t.push(s.apply(s,[{prop:n.prop,pageContext:e}]))})}),t&&t.length>0?new Promise((n,r)=>{const s=[],i=[];t.forEach(o=>{m.isPromise(o)?s.push(o):i.push(o)}),i.includes(!1)&&n(!1),s.length>0?Promise.all(s).then(o=>{o.includes(!1)?n(!1):n(!0)}).catch(o=>{console.error(o),n(!1)}):n(!0)}):null}function te(e,t){const n=y.getAllComponentRefs(e);if(n)for(const r in n){const s=n[r];de(e,s&&s.value,t)}}function de(e,t,n){var r,s,i;if(t){const o=t.getConfigure();if(n.show!==void 0&&(n.show?t.show():t.hide()),n.required!==void 0&&((r=o==null?void 0:o.runtime)!=null&&r.props)&&(o.runtime.props.required=n.required),n.readonly!==void 0&&((s=o==null?void 0:o.runtime)!=null&&s.props)&&(n.readonly?o.runtime.props.state="readonly":o.runtime.props.state="enabled"),n.disabled!==void 0&&o&&((i=o==null?void 0:o.runtime)!=null&&i.props&&(n.disabled?o.runtime.props.state="disabled":o.runtime.props.state="enabled"),o.name==="table")){t.changeOperationAddState(!1);const l=t?t.getTableUuid():null,u=e.code,a=e.version,c=M.getListCode(u,a,l),g=[{name:"_all_fields",disabled:!0}];t.dynamicControlTableEdit(e,g,c)}}}function fe(e){if(!(e!=null&&e.type))return;const t=Re[e.type];t&&(e.validator=t.validator)}const Re={boolean:{validator:function(e,t,n){return D(e,t)===!0&&(typeof t=="number"&&(t===1||t===0)||typeof t=="boolean"&&(t===!0||t===!1))}},date:{validator:function(e,t,n){if(D(e,t)!==!0)return!1;const r=new Date(t);return!isNaN(r.getTime())}},number:{validator:function(e,t,n){return D(e,t)===!0&&(typeof t!="string"||t.trim()!=="")&&(typeof t=="number"||!isNaN(Number(t)))}}},D=(e,t)=>t!=null&&t!==""||!e.required;function ne(e,t){return e&&be.includes(t.eventName)}exports.disabledAllFields=function(e){te(e,{disabled:!0})},exports.dynamicControlTableEdit=function(e,t,n){var u;let r,s;if(n?(r=y.getComponentRefByCode(e,n),s=r?r.getTableUuid():null):(s=e.tableUuids&&e.tableUuids.length>0?e.tableUuids[0]:null,r=s?y.getComponentRef(e,s):null),!r)return;const i=e.code,o=e.version,l=M.getListCode(i,o,s);if(e.workflowRules||(e.workflowRules={rules:{},subRules:{}}),e.workflowRules.subRules||(e.workflowRules.subRules={}),e.workflowRules.subRules[n]||(e.workflowRules.subRules[n]={}),((u=e.workflowRules)==null?void 0:u.subRules)&&e.workflowRules.subRules[n]){const a=e.workflowRules.subRules[n];t.forEach(c=>{a[c.name]=c})}r.dynamicControlTableEdit(e,t,l)},exports.getWorkflowRules=function(e){const t=e.entity.data,n={...e.entity.page,...t},r=H.getAdditionalParamMap(e),s=e.entity.context,i=e.entity.task;e.formPropTiltleMap&&Object.keys(e.formPropTiltleMap).length>0&&e.completeTaskParam.fieldPermissions&&e.completeTaskParam.fieldPermissions.length>0&&e.completeTaskParam.fieldPermissions.forEach(u=>{u.name&&e.formPropTiltleMap[u.name]&&(u.label=e.formPropTiltleMap[u.name])});let o=window.$vueApp.config.globalProperties.$getValidator(e.completeTaskParam.fieldPermissions,n,!0,r,i,s);const l=e.customRules;return o=S(e,l,o),o&&(o.rules||(o.rules={}),o.subRules||(o.subRules={})),o},exports.i18nValidatePropRulesMessage=Y,exports.i18nValidateRulesMessage=function(e){if(!e||Object.keys(e).length===0)return;const t={},n=Object.keys(e);for(let r=0;r<n.length;r++){const s=n[r],i=e[s];Y(i),s.indexOf(".")>0?K(s,t,i):i&&i.length>0&&(t[s]=[...i])}return t},exports.isNotNeedValidateRequired=ne,exports.packageCustomRules=S,exports.packageCustomValidator=fe,exports.setObjectPropRule=K,exports.updateFormItemEditState=function(e,t){if(!t)return;const n={};if(t.forEach(s=>{const{name:i,rules:o}=s;o?n[i]=o:s.required===!1&&(n[i]=[])}),M.isWorkflowPage(e)){let s=e.workflowRules?e.workflowRules:{rules:{},subRules:{}};s=S(e,n,s),e.workflowRules=s}else{let s=e.rules?e.rules:{};s=S(e,n,s),e.rules=s}const r=t.filter(s=>s.name==="_all_fields");r&&r.length>0&&te(e,r[0]),t.forEach(s=>{if(s.name!=="_all_fields"){const i=y.getComponentRefByCode(e,s.name);de(e,i,s)}})},exports.validateDataModelFunc=function(e,t,n,r){if(n&&ne(n.isStandard,n.event))return new Promise((u,a)=>{u(!0)});const s=e.entity.data,i={...e.entity.page,...s},o=e.rules,l=t.props.base?t.props.base.isEnableRequired:null;return l!=null&&(r=l),r==null&&(r=!1),function(u,a,c,g){return u?M.isWorkflowPage(g)?function(f,d,h){return new Promise((b,w)=>{var B;const O=H.getAdditionalParamMap(d),q=d.entity.context,ce=d.entity.task,ge=!0,pe=d.subTablePageInfo,me=((B=d.props)==null?void 0:B.highlightAllRequiredField)||!1;Q(f,d,h).then(x=>{if(x){let A=x;const _=d.workflowRules;let F=null,p=null;if(_){if(!function(C,E){var v,J,$,z;if(!C.actionPermissions)return!0;const R=Object.keys(C.actionPermissions);for(let V=0;V<R.length;V++){const P=R[V],N=C.actionPermissions[P];if(N&&N.notEmpty){if((v=C.hiddenNotValidatorCodes)!=null&&v.has(P))continue;let L=!1;if(E[P]?Array.isArray(E[P])&&E[P].length===0&&(L=!0):L=!0,L){const Z=y.getComponentRefByCode(C,P);if(!Z)return!0;const G=Z.getConfigure();return(J=N.notEmptyCondition)!=null&&J.parentCondition&&m.parseSubTablePermissionCondition(N.notEmptyCondition.parentCondition.replaceAll("${field[","${parent["),C.dataTypeMaps,E,{},($=C.entity)==null?void 0:$.request,(z=C.entity)==null?void 0:z.task,C.contextParam)===!1?!0:(T.ElMessage({showClose:!0,message:m.getI18n().t("superPageRuntimeMessage.xxxNotEmpty",{label:G.title?G.title:P}),type:"warning"}),!1)}}}return!0}(d,f))return void b(!1);F=function(C,E){const R=k(C);return E&&E.size>0&&E.forEach(v=>{delete R[v],R.subRules&&delete R.subRules[v],R.rules&&delete R.rules[v]}),R.subRules&&(Object.keys(R.subRules).length>0?R.totalSubRules||(R.totalSubRules={}):delete R.subRules),R}(_,d.hiddenNotValidatorCodes),p=window.$vueApp.config.globalProperties.$formValidator(f,F,ge,O,ce,q,pe,!0,{returnAllErrors:me}),A=p&&Array.isArray(p)?p.length===1&&p[0].message?p[0].message:p.length===0||m.getI18n().t("superPageRuntimeMessage.pleaseInputRequiredInfo"):!p||p.msg}else A=!0;A!==!0?(console.error("流程表单验证失败",F,f),T.ElMessage({showClose:!0,message:A+"",type:"warning"}),p&&Array.isArray(p)&&p.length>0?(re(d,p),ue(d,ae(d,p))):p.listCode?(W(d,p),ie(d,p)):(W(d,p),le(d,p.field)),b(!1)):(Object.keys(f).indexOf("validateErrorField")>=0&&delete f.validateErrorField,b(f))}else w(new Error(m.getI18n().t("superPageRuntimeMessage.formDataVerificationFailed")).message)}).catch(x=>{w(x)})})}(a,g,c):function(f,d,h){return new Promise((b,w)=>{Q(f,d,h).then(O=>{if(O){const q=JSON.parse(JSON.stringify(f));Object.keys(q).indexOf("validateErrorField")>=0&&delete q.validateErrorField,b(q)}else b(!1)}).catch(O=>{w(O)})})}(a,g,c):new Promise((f,d)=>{f(!0)})}(r,i,o,e)},exports.validator=se;
|
|
@@ -0,0 +1,31 @@
|
|
|
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, clickEventFunObj: 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
|
+
/**
|
|
20
|
+
* 布尔型和日期校验需要自定义,为了兼容oracle和mysql数据库,
|
|
21
|
+
* 数字类型的校验,防止select、radio、checkbox传字符串类型的数字
|
|
22
|
+
* @param fieldRule
|
|
23
|
+
*/
|
|
24
|
+
export declare function packageCustomValidator(fieldRule: any): void;
|
|
25
|
+
/**
|
|
26
|
+
* 是否需要必填验证。特殊的标准事件不需要必填验证。
|
|
27
|
+
* @param isStandardEvent
|
|
28
|
+
* @param clickEvent
|
|
29
|
+
* @returns 返回true表示不需要执行必填验证
|
|
30
|
+
*/
|
|
31
|
+
export declare function isNotNeedValidateRequired(isStandardEvent: boolean, clickEvent: any): boolean;
|
|
@@ -0,0 +1 @@
|
|
|
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};
|
|
@@ -0,0 +1 @@
|
|
|
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;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"}),require("vue"),window.globalRefs||(window.globalRefs={});const t=window.globalRefs;function i(e,n){return"pageRuntimeRef-"+e+"-"+(n||1)}function u(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=u(e.code,e.version);return t[o]||(t[o]={}),t[o][n]=r,t[o]},exports.getAllComponentRefs=function(e){if(!e)return;const n=u(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=u(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]={}};
|
|
@@ -0,0 +1,65 @@
|
|
|
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;
|
|
@@ -0,0 +1 @@
|
|
|
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};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const $t: (key: string, ...args: any[]) => any;
|
|
@@ -0,0 +1 @@
|
|
|
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;
|