super-page-runtime 2.3.39 → 2.3.40-cdnTmp1
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 +9 -0
- package/dist/es/components/runtime/utils/api/page-expose-util.mjs +184 -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 +413 -0
- package/dist/es/components/runtime/utils/events/print-label.mjs +100 -0
- package/dist/es/components/runtime/utils/events/standard-event.d.ts +8 -1
- package/dist/es/components/runtime/utils/events/standard-event.mjs +1188 -0
- package/dist/es/components/runtime/utils/events/validator-util.mjs +403 -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.d.ts +7 -0
- package/dist/es/components/runtime/utils/page-helper-util.mjs +381 -0
- package/dist/es/components/runtime/utils/page-init-util.mjs +261 -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 +416 -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 +252 -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 +36 -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 +4 -0
- package/dist/es/components/runtime/views/assemblys/container/container/container-runtime2.vue.mjs +18 -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 +361 -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 +323 -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 +91 -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 +79 -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 +196 -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 +162 -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 +26 -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 +309 -0
- package/dist/es/index.mjs +32 -0
- package/dist/es/style.css +1 -1033
- 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 +106 -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 +49 -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 +135 -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 -4
- package/dist/es/components/runtime/utils/api/page-expose-util.js +0 -190
- 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 -425
- package/dist/es/components/runtime/utils/events/print-label.js +0 -100
- package/dist/es/components/runtime/utils/events/standard-event.js +0 -1237
- package/dist/es/components/runtime/utils/events/validator-util.js +0 -420
- 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 -387
- package/dist/es/components/runtime/utils/page-init-util.js +0 -280
- 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 -421
- 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 -259
- 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 -29
- 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 -4
- package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +0 -18
- 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 -382
- 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 -330
- 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 -64
- 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 -94
- 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 -81
- 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 -82
- 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 -199
- 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 -165
- 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"),oe=require("axios"),W=require("./event-util.cjs"),fe=require("../store-util.cjs"),G=require("../page-init-util.cjs"),Y=require("../page-helper-util.cjs"),Ae=require("./print-label.cjs"),ne=require("../table-utils.cjs"),Ce=require("./validator-util.cjs"),Oe=require("../api/page-expose-util.cjs"),be=require("../page-store.cjs"),Be=require("vue"),De=require("../../views/assemblys/common/file-task-notice.vue.cjs"),j=require("./data-backfill-util.cjs"),_e={save:function(e){return he(e,!1)},saveList:function(e){return he(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 Q(e,!1,"submit","/dsc/commons/submits")},submitList:function(e){return Q(e,!0,"submit","/dsc/commons/batch-submits")},agree:function(e){return Q(e,!1,"agree","/dsc/commons/approves")},agreeList:function(e){return Q(e,!0,"agree","/dsc/commons/batch-approves")},disagree:function(e){return Q(e,!1,"disagree","/dsc/commons/refuses")},disagreeList:function(e){return Q(e,!0,"disagree","/dsc/commons/batch-refuses")},back:function(e){const t=e.pageContext,o=t.entity?t.entity.data:{},a=!(!e.configureObj.props||!e.configureObj.props.base)&&e.configureObj.props.base.isNeedValueMapping;me(t,e.configureObj,o,a)},delete:function(e){return function(t){return new Promise((o,a)=>{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 x,P,M;const s=t.pageContext,r=t.configureObj,c=r.props.base,l=s.systemCode,m=s.backendUrl,u=r.props.base.tableUuid?r.props.base.tableUuid:t.tableUuid,p=ne.getTableNameByTableUuid(s,u);let d=f.getBaseUrl(m,s.isTest)+"/dsc/commons/"+p;d=f.getRealRestApiPath(d,l,m,s.isTest);const b=c.isPermission===void 0||c.isPermission==="true"||c.isPermission,T=f.isWorkflowPage(s),i=G.getPermissionCodes(r,s),C={ids:n,functionCode:i,isPermission:b+"",systemCode:l,isWorkflowEntity:T,listCodesMap:s.listCodesMap,pageCode:s.code,pageVersion:s.version};s.beanName&&(C.beanName=s.beanName);const w=r.props.deleteLogicSetting;w&&(typeof w=="object"?C.deleteLogicSetting=JSON.stringify(w):typeof w=="string"&&(C.deleteLogicSetting=w));const h=(x=r.props.base)==null?void 0:x.logSetting;h&&(C.logSettingText=h.join(""));const y=r.props.base.isSafeDelete;y&&(C.isSafeDelete=y);const I=(M=(P=r.runtime)==null?void 0:P.props)==null?void 0:M.title;I&&(C.currentOperation=I),C.isMobile=g.isMobileBrowser(),g.http.delete(d,{data:C}).then(R=>{const v=J.getComponentRef(s,u);v&&(v.isDeleteChange(!0),v.clearSelections()),V(s,r,R,"superPageRuntimeMessage.successfulDelete",!0),o(!0)}).catch(R=>{a(R)})}).catch(()=>{a()})})}(e)},downloadTemplate:function(e){(function(t){var I,x,P;const o=t.pageContext,a=t.configureObj,n=a.props.base,s=f.packageTemplateFiles(n.templateFiles,o,a);let r,c;s&&s.length>0&&(r=s[0].templateUuid,c=s[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&&(p+="&showName="+encodeURI(o.label)+".xlsx",u=o.label+".xlsx");const d=(I=a.props.base)==null?void 0:I.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(a,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=(x=a.runtime)==null?void 0:x.props)==null?void 0:P.title;C&&(p+="¤tOperation="+encodeURI(C)),p+="&isMobile="+g.isMobileBrowser();const w="_RUN_CURRENT_ROLE",h=g.getSessionCache(w);h&&(p+="&"+w+"="+h),n&&(p+="&isPermission="+(n.isPermission===void 0||n.isPermission==="true"||n.isPermission));const y=f.getBaseUrl(m,o.isTest);window.$http({url:encodeURI(y+"/dsc/commons/download-files"+p),method:"get",responseType:"blob"}).then(M=>{const R=document.createElement("a"),v=new Blob([M],{type:"application/vnd.ms-excel;charset=UTF-8"});R.style.display="none",R.remove("download"),R.href=URL.createObjectURL(v),R.setAttribute("download",u||"template.xlsx"),document.body.appendChild(R),R.click(),document.body.removeChild(R)})})(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,a)=>{var w,h,y,I,x,P,M,R,v,S,U,E;const n=t.pageContext,s=t.configureObj,r=s.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(s,n),T=u,i={backendUrl:n.backendUrl,pageContext:n},C=(h=(w=s.runtime)==null?void 0:w.props)==null?void 0:h.title;C&&(i.currentOperation=C),i.isShowWatermark=((I=(y=s.props)==null?void 0:y.watermark)==null?void 0:I.isShowWatermark)===void 0?"true":((P=(x=s.props)==null?void 0:x.watermark)==null?void 0:P.isShowWatermark)+"",i.watermarkContent=(R=(M=s.props)==null?void 0:M.watermark)!=null&&R.content&&((S=(v=s.props)==null?void 0:v.watermark)==null?void 0:S.content.length)>0?(E=(U=s.props)==null?void 0:U.watermark)==null?void 0:E.content.join("-~"):"",window.$vueApp.config.globalProperties.$exportDataNew(m,T,c,b,null,i,p,n.code,d),p&&setTimeout(()=>{de(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,a)=>{const n=t.pageContext;if(function(p){if(p.fileuploadInfo&&p.fileuploadInfo.length>0){const d=p.fileuploadInfo[0];let b;return d.isTable&&d.tableTitle&&d.rowIndex!==void 0?(d.rowIndex,d.rowIndex,b=g.getI18n().t("superPageRuntimeMessage.fileUploadUnCompleteTable",{label:d.label,tableTitle:d.tableTitle,rowIndex:d.rowIndex+1})):b=g.getI18n().t("superPageRuntimeMessage.fileUploadUnComplete",{label:d.label}),k.ElMessage({message:b,type:"warning",showClose:!0}),!0}return!1}(n))return void o(!1);const s=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=s.id||s.ID?g.http.put(l,m):g.http.post(l,m),j.cacheBackfillData(n.code,s),u.then(p=>{let d=!0;p&&(j.removeCacheFillData(n.code,s),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=>{a(p)})})}(e)},workflowStart:function(e){return D.$emit("clearTableAllStartEditing"),async function(t){return new Promise((o,a)=>{const n=t.pageContext,s=n.entity.data,r=n.systemCode,c=n.backendUrl;if(n.fileuploadInfo&&n.fileuploadInfo.length>0){const l=n.fileuploadInfo[0];let m;l.isTable&&l.tableTitle&&l.rowIndex!==void 0?(l.rowIndex,l.rowIndex,m=g.getI18n().t("superPageRuntimeMessage.fileUploadUnCompleteTable",{label:l.label,tableTitle:l.tableTitle,rowIndex:l.rowIndex+1})):m=g.getI18n().t("superPageRuntimeMessage.fileUploadUnComplete",{label:l.label}),k.ElMessage({message:m,type:"warning",showClose:!0}),o(!1)}else{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;s.workflow_id||s.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,s),u.then(p=>{let d=!0;p&&(j.removeCacheFillData(n.code,s),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=>{a(p)})}})}(e)},submitProcess:function(e){return D.$emit("clearTableAllStartEditing"),function(t){return new Promise((o,a)=>{const n=t.pageContext;if(n.fileuploadInfo&&n.fileuploadInfo.length>0){const s=n.fileuploadInfo[0];let r;s.isTable&&s.tableTitle&&s.rowIndex!==void 0?(s.rowIndex,s.rowIndex,r=g.getI18n().t("superPageRuntimeMessage.fileUploadUnCompleteTable",{label:s.label,tableTitle:s.tableTitle,rowIndex:s.rowIndex+1})):r=g.getI18n().t("superPageRuntimeMessage.fileUploadUnComplete",{label:s.label}),k.ElMessage({message:r,type:"warning",showClose:!0}),o(!1)}else{const s=n.systemCode,r=n.backendUrl;let c=f.getBaseUrl(r,n.isTest)+"/dsc/workflow-commons/submit";if(c=f.getRealRestApiPath(c,s,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=>{a(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,a=o.code+"_";D.$emit(a+"assign-task",t)}(e)},copyTask:function(e){return function(t){const o=t.pageContext,a=o.code+"_";D.$emit(a+"copy-task",t)}(e)},addSigner:function(e){return function(t){const o=t.pageContext,a=o.code+"_";D.$emit(a+"add-signer",t)}(e)},drawTask:function(e){return function(t){const o=t.pageContext,a=o.backendUrl,n=f.getBaseUrl(a,o.isTest)+"/dsc/workflow-commons/draw-tasks",s=_(t);return H(t,s,n,"superPageRuntimeMessage.successfulDrawTask")}(e)},abandonReceive:function(e){return function(t){const o=t.pageContext,a=o.backendUrl,n=f.getBaseUrl(a,o.isTest)+"/dsc/workflow-commons/abandon-receives",s=_(t);return H(t,s,n,"superPageRuntimeMessage.successfulAbandonReceive")}(e)},returnToPreviousTask:function(e){return function(t){const o=t.pageContext,a=o.backendUrl,n=f.getBaseUrl(a,o.isTest)+"/dsc/workflow-commons/return-to-previous-tasks",s=_(t);return H(t,s,n,"superPageRuntimeMessage.successfulReturnToPreviousTask")}(e)},endInstance:function(e){return function(t){const o=t.pageContext,a=o.backendUrl,n=f.getBaseUrl(a,o.isTest)+"/dsc/workflow-commons/end-instance",s=_(t);return H(t,s,n,"superPageRuntimeMessage.successfulEndInstance")}(e)},returnTaskTo:function(e){return function(t){const o=t.pageContext,a=o.code+"_";D.$emit(a+"choose-return-node",t)}(e)},removeSigner:function(e){return function(t){const o=t.pageContext,a=o.code+"_";D.$emit(a+"remove-signer",t)}(e)},retrieveTask:function(e){return function(t){const o=t.pageContext,a=o.backendUrl,n=f.getBaseUrl(a,o.isTest)+"/dsc/workflow-commons/retrieves",s=_(t);return H(t,s,n,"superPageRuntimeMessage.successfulRetrieve")}(e)},extractWorkflow:function(e){return Se(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,a=o.backendUrl,n=f.getBaseUrl(a,o.isTest)+"/dsc/workflow-commons/cancel-extract",s=_(t);return H(t,s,n,"superPageRuntimeMessage.successfulCancelExtract")}(e)},approveExtractWorkflow:function(e){return function(t){const o=t.pageContext,a=o.backendUrl,n=f.getBaseUrl(a,o.isTest)+"/dsc/workflow-commons/approve-extract",s=_(t);return H(t,s,n,"superPageRuntimeMessage.successfulOperation")}(e)},refuseExtractWorkflow:function(e){return function(t){const o=t.pageContext,a=o.backendUrl,n=f.getBaseUrl(a,o.isTest)+"/dsc/workflow-commons/refuse-extract",s=_(t);return H(t,s,n,"superPageRuntimeMessage.successfulOperation")}(e)},viewDetail:function(e){},lineEditCreate:function(e){return function(t){const o=t.pageContext,a=t.tableUuid,n=J.getComponentRef(o,a);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(a){console.error("打印标签失败,未在配置中找到找到模板",a,t)}Ae.default.printLabel(t,o)}(e)},queryCharts:function(e){we(e)},resetCharts:function(e){var o,a;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((a=t.initChartData)==null?void 0:a.page)),e.isInitChart=!0,we(e)},exportCharts:function(e){(function(t){var i,C,w,h,y,I,x,P,M,R,v,S;const o=t.pageContext,a=o.allChartUuids;if(!a||a.length==0)return;const n=t.configureObj;let s=null;n&&n.runtime&&(s=n.runtime.props);const r=s?s.state:void 0;s&&(s.state="disabled");const c=[];for(let U=0;U<a.length;U++){const E=a[U],N=J.getComponentRef(o,E);if(N){const A=N.getConfigure();A&&A.exportable&&A._dynamicShowFlag&&N.exportChart&&c.push(N.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=((h=(w=n.props)==null?void 0:w.watermark)==null?void 0:h.isShowWatermark)===void 0?"true":((I=(y=n.props)==null?void 0:y.watermark)==null?void 0:I.isShowWatermark)+"",u.watermark=(P=(x=n.props)==null?void 0:x.watermark)!=null&&P.content&&((R=(M=n.props)==null?void 0:M.watermark)==null?void 0:R.content.length)>0?(S=(v=n.props)==null?void 0:v.watermark)==null?void 0:S.content.join("-~"):"";const b=o.backendUrl,T=f.getBaseUrl(b,o.isTest)+"/dsc/commons/exportChart";ue(),oe.post(T,u,{responseType:"blob"}).then(U=>{const E=document.createElement("a");E.style.display="none",E.href=URL.createObjectURL(U.data),E.setAttribute("download",l+".xlsx"),document.body.appendChild(E),E.click(),document.body.removeChild(E)}).finally(()=>{s&&(s.state=r)})})(e)},saveQueryCharts:function(e){(function(t){const o=t.pageContext,a=t.configureObj,n=o.code+"_";D.$emit(n+"save-chart-condition",{pageContext:o,configureObj:a})})(e)},addTransactor:function(e){return function(t){const o=t.pageContext,a=o.code+"_";D.$emit(a+"add-transactor",t)}(e)},removeTransactor:function(e){return function(t){const o=t.pageContext,a=o.code+"_";D.$emit(a+"remove-transactor",t)}(e)}};function we(e){const t=e.pageContext,o=t.initChartServiceConfigs;if(!o||o.length==0)return;const a=e.configureObj;let n=null;a&&a.runtime&&(n=a.runtime.props);const s=n?n.state:void 0;n&&(n.state="disabled"),Y.updateChartDatasources(t,o,void 0,e.isInitChart).then(()=>{n&&(n.state=s)}).catch(()=>{n&&(n.state=s)})}function ue(){oe.defaults.headers.common.Authorization=g.getToken();const e=g.getRunCurrentRole();if(e){const t="_RUN_CURRENT_ROLE";oe.defaults.headers.common[t]=e}}function he(e,t){return new Promise((o,a)=>{const n=e.pageContext,s=e.configureObj,r=e.mainDefaultValueColumns,c=e.dynamicColumnInfo,l=s.props.base.successOperation;let m=!1;if(l&&l==="noOperation"&&(m=!0),n.fileuploadInfo&&n.fileuploadInfo.length>0){const u=n.fileuploadInfo[0];let p;p=u.isTable&&u.tableTitle&&u.rowIndex!==void 0?g.getI18n().t("superPageRuntimeMessage.fileUploadUnCompleteTable",{label:u.label,tableTitle:u.tableTitle,rowIndex:u.rowIndex+1}):g.getI18n().t("superPageRuntimeMessage.fileUploadUnComplete",{label:u.label}),k.ElMessage({message:p,type:"warning",showClose:!0}),o(!1)}else{j.cacheBackfillData(n.code,n.entity.data);const u=Pe(n,s,"/dsc/commons",m,r,c);u?u.then(p=>{p&&j.removeCacheFillData(n.code,n.entity.data),V(n,s,p,"superPageRuntimeMessage.successfulSave",t),o(p)}).catch(p=>{a(p)}):(j.removeCacheFillData(n.code,n.entity.data),a("保存时request不存在"))}})}function ye(e,t,o,a,n,s,r){var y,I,x;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};s&&(d.ids=s),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=ge(t);T&&(d.autoSetValueData=T);const i=(y=t.props.base)==null?void 0:y.logSetting;i&&(d.logSettingText=i.join("")),d.systemCode||(d.systemCode=l);const C=e.beanName;C&&(d.beanName=C),n&&(d.dynamicColumnInfo=n),a&&(d.mainDefaultValueColumns=a);const w=$(e);d.additionalParamMap=w,o!==void 0&&(d.unControlVersion=o);const h=(x=(I=t.runtime)==null?void 0:I.props)==null?void 0:x.title;return h&&(d.currentOperation=h),d.isMobile=g.isMobileBrowser(),d}function Ie(e,t,o,a,n,s,r,c,l){const m=e.systemCode,u=e.backendUrl,p=ye(e,t,a,n,s,null,r);return c&&c.tableName&&(p.tableName=c.tableName),l&&(p.isWorkflowEntity=!1),function(d,b,T,i,C,w){const h=f.getBaseUrl(b,w);let y,I=h+i;return I=f.getRealRestApiPath(I,d,b,w),y=C&&(C.id||C.ID)?g.http.put(I,T):g.http.post(I,T),y}(m,u,p,o,r,e.isTest)}function Pe(e,t,o,a,n,s){return Ie(e,t,o,a,n,s,null,null)}function V(e,t,o,a,n){const s=Re(e,t,n);if(s&&s==="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||je.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),me(r,c,b,p)}m&&k.ElMessage({message:g.getI18n().t(m),type:"success",showClose:!0})})(e,t,o,a),e.canClick=!0;else if(s&&s==="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),re(r,c,{...p,...r.entity.page})}else{const u=c.props.base.successOperation;u&&u!==null?re(r,c,{...r.entity.page}):r.canClick=!0}m&&k.ElMessage({message:g.getI18n().t(m),type:"success",showClose:!0})})(e,t,o,a);else{const r=t.props.base.successOperation;r&&r!==null?re(e,t,null):e.canClick=!0}}function Re(e,t,o){let a;return o===void 0?a=t.props.base.tableUuid?"list":null:o===!1&&(a="form"),a||(a=e.pageType),a}function re(e,t,o){const a=t.props.base.successOperation;if(!a||a===null)return;const n=t.props.base.isNeedValueMapping;a==="noOperation"?e.canClick=!0:a==="refresh"?o&&(o.id||o.ID)?pe(e,o.ID?o.ID:o.id):e.canClick=!0:a!=="closeWindow"&&a!=="closeWindowAndRefresh"||(me(e,t,o,n),e.canClick=!0)}function me(e,t,o,a){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 s=e.tableName,r=a!==void 0&&a===!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:s,jumpMode:n}):n==="refresh"&&window.history.back()}}const je=["dropdown"];function Q(e,t,o,a){return new Promise((n,s)=>{const r=e.pageContext,c=e.configureObj;if(r.fileuploadInfo&&r.fileuploadInfo.length>0){const l=r.fileuploadInfo[0];let m;l.isTable&&l.tableTitle&&l.rowIndex!==void 0?(l.rowIndex,l.rowIndex,m=g.getI18n().t("superPageRuntimeMessage.fileUploadUnCompleteTable",{label:l.label,tableTitle:l.tableTitle,rowIndex:l.rowIndex+1})):m=g.getI18n().t("superPageRuntimeMessage.fileUploadUnComplete",{label:l.label}),k.ElMessage({message:m,type:"warning",showClose:!0}),n(!1)}else{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=ne.getTableNameByTableUuid(r,i)}else j.cacheBackfillData(r.code,r.entity.data);const T=function(i,C,w,h,y,I,x,P,M){return new Promise((R,v)=>{const S=C.props.base.title,U="superPageRuntimeMessage.whetherToConfirm"+f.upperFirstCase(x);k.ElMessageBox.confirm(g.getI18n().t(U,{name:S}),g.getI18n().t("superPageRuntimeMessage.tips"),{confirmButtonText:g.getI18n().t("superPageRuntimeMessage.sure"),cancelButtonText:g.getI18n().t("superPageRuntimeMessage.cancel"),type:"warning"}).then(()=>{const E=i.systemCode,N=i.backendUrl,A=ye(i,C,h,y,I,P,null);A.tableName=M;let B=f.getBaseUrl(N,i.isTest)+w;B=f.getRealRestApiPath(B,E,N,i.isTest),g.http.post(B,A).then(O=>{R(O)}).catch(O=>{v(O)})}).catch(()=>{v("点击了取消按钮")})})}(r,c,a,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=>{s(i)}):(t||j.removeCacheFillData(r.code,r.entity.data),s("request不存在"))}})}function _(e){var T,i,C;const t=e.pageContext,o=e.configureObj,a=t.entity.data,n=t.systemCode,s=t.code;let r=G.getPermissionCodes(o,t);r||(r=s+".xxx"),a.id||a.ID||(a.PAGE_CODE=t.code,a.PAGE_VERSION=t.version);const c={entity:a,pageMoel:t.entity.page,formNoRuleCode:t.formNoRuleCode,tableName:t.tableName,emailTemplateCode:t.emailTemplateCode,definitionId:t.definitionId,functionCode:r,systemCode:n,listCodesMap:t.listCodesMap,pageCode:t.code,pageVersion:t.version,listCodesInitSearchForm:t.listCodesInitSearchForm};t.completeTaskParam&&(c.completeTaskParam={taskId:t.completeTaskParam.taskId,opinion:t.completeTaskParam.opinion}),t.judgeHeavyList&&(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=ge(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}function z(e,t,o,a,n){const s=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,a&&(a.taskId=c),fe.setStoreInfo(s,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,fe.setStoreInfo(s,r,"_currentActivityName",e.taskName)}return a&&(a.operationResult=n),t||V(o,a.configureObj,e,null,!1),!0}async function X(e,t){const o=await Me(e);return new Promise((a,n)=>{var r;const s=e.pageContext;if(s.fileuploadInfo&&s.fileuploadInfo.length>0){const c=s.fileuploadInfo[0];let l;c.isTable&&c.tableTitle&&c.rowIndex!==void 0?(c.rowIndex,c.rowIndex,l=g.getI18n().t("superPageRuntimeMessage.fileUploadUnCompleteTable",{label:c.label,tableTitle:c.tableTitle,rowIndex:c.rowIndex+1})):l=g.getI18n().t("superPageRuntimeMessage.fileUploadUnComplete",{label:c.label}),k.ElMessage({message:l,type:"warning",showClose:!0}),a(!1)}else if(o){const c=s.systemCode,l=s.backendUrl,m=o===!0?(r=s.completeTaskParam)==null?void 0:r.opinion:o;let u=f.getBaseUrl(l,s.isTest)+"/dsc/workflow-commons/complete-tasks";if(u=f.getRealRestApiPath(u,c,l,s.isTest),!u)return void k.ElMessage({showClose:!0,type:"warning",message:g.getI18n().t("superPageRuntimeMessage.requestPathEmpty")});const p=_(e);p.completeTaskParam={operationResult:t,taskId:s.completeTaskParam?s.completeTaskParam.taskId:null,opinion:m||null};const d=g.http.post(u,p);j.cacheBackfillData(s.code,s.entity.data),d.then(b=>{let T=!0;b&&(j.removeCacheFillData(s.code,s.entity.data),T=z(b,!1,s,e,t)),T===!0&&k.ElMessage({showClose:!0,type:"success",message:g.getI18n().t("superPageRuntimeMessage.successfulCompleteTask")}),a(!0)}).catch(b=>{n(b)})}else a(!0)})}function Me(e){return new Promise((t,o)=>{var n,s,r,c,l;const a=e.configureObj;if(a){if((n=e.pageContext.workflowOpinion)!=null&&n.opinion)return void t(e.pageContext.workflowOpinion.opinion);let m=!1;if((r=(s=a.props)==null?void 0:s.base)!=null&&r.isMustOpinion&&(m=!0),m===!0){const u=e.pageContext,p=(l=(c=a.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,a=t.systemCode,n=t.code,s=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:a},l.completeTaskParam.customTaskTitle=ve(e);const m=(p=(u=s==null?void 0:s.runtime)==null?void 0:u.props)==null?void 0:p.title;return m&&(l.currentOperation=m),l.isMobile=g.isMobileBrowser(),l}function ve(e){var o,a,n;let t=null;if(((a=(o=e.configureObj.props.task)==null?void 0:o.title)==null?void 0:a.length)>0)for(let s=0;s<e.configureObj.props.task.title.length;s++){const r=e.configureObj.props.task.title[s];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,a){const n=await Me(e);return new Promise((s,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(a)}),s(!0)}).catch(d=>{r(d)})}else s(!0)})}function Se(e){const t=e.pageContext,o=t.backendUrl;let a=f.getBaseUrl(o,t.isTest)+"/dsc/workflow-commons/initiate-extract";const n=_(e);if(t.completeTaskParam){const s=[];e._value.loginName&&s.push(e._value.loginName),n.completeTaskParam={taskId:t.completeTaskParam.taskId,opinion:e._value.opinion,transactors:s,customTaskTitle:ve(e)}}return new Promise((s,r)=>{const c=e.pageContext,l=c.systemCode,m=c.backendUrl;if(a=f.getRealRestApiPath(a,l,m,c.isTest),!a)return void k.ElMessage({showClose:!0,type:"warning",message:g.getI18n().t("superPageRuntimeMessage.requestPathEmpty")});const u=g.http.post(a,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")}),s(!0)}).catch(p=>{r(p)})})}function Fe(e,t,o){return!(!e.processState||e.processState!=="EXTRACT"||e.active!=="WAIT_TRANSACT")}function pe(e,t){e.entity.page||(e.entity.page={}),e.entity.page._isRefresh=!0,xe(e,t).then(o=>{e.isRefresh=!0})}function xe(e,t,o){const a=e.pageType;return a&&a==="form"?(e.canClick=!1,f.isWorkflowPage(e)?function(n,s,r){return new Promise((c,l)=>{var x;const m=n.systemCode,u=n.code,p=n.version,d=$(n);let b=s||null,T=s?[s]: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,w={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 P={};n.tableUuids.forEach(M=>{const R=f.getListCode(u,p,M);P[R]=R}),w.listCodesMap=P}T&&(w.ids=ke(T)),i?w.taskId=i:b?w.id=b:(d&&d._t_&&g.getSessionCache(d._t_+"_id")&&(w.id=g.getSessionCache(d._t_+"_id")),n.notIdInitializationList&&(w.noIdAndTaskIdInitSetting=JSON.stringify(n.notIdInitializationList))),d&&(w.additionalParamMap=d),n.beanName&&(w.beanName=n.beanName),n.refercePropMap&&(w.refercePropMap=n.refercePropMap),(x=n.props)!=null&&x.enableFormDataPermission&&(w.withDataPermission=!0),w.isMobile=g.isMobileBrowser();const h=f.getBaseUrl(n.backendUrl,n.isTest)+"/dsc/workflow-commons/gets",y=be.usePageContextStore();y.restorePageLoadState(),W.handleEvent(null,n,n,"beforeFormLoadData");const I=j.hasBackfillData(n.code,w.id);g.http.post(h,w).then(async P=>{I&&await Te(n,w.id,P),n.workflowOpinion={showOpinionBox:!1},n.definitionId=P.definitionId,n.entity.task=P.taskParamMap,n.dataTypeMaps=P.dataTypeMap,z(P,!0,n),n.workflowRules=Ce.getWorkflowRules(n);const M=n.pageType;M&&M==="form"&&function(R){(function(v){const S=new Map,U=v.fieldPermissions;if(U!==void 0)for(let E=0;E<U.length;E++){const N=U[E].name;if(N)if(N.indexOf("$")===0&&N.indexOf(".")>0){const A=U[E],B=JSON.parse(JSON.stringify(A)),O=N.substring(1,N.indexOf(".")),q=N.substring(N.indexOf(".")+1);if(B.name=q,B&&B.name==="all_fields")B.canEdit===!1?B.rowIndexes?S.set(O,[{name:"all_fields",canEdit:!1,rowIndexes:B.rowIndexes}]):S.set(O,[{name:"all_fields",canEdit:!1}]):B.rowIndexes?S.set(O,[{name:"all_fields",canEdit:!0,rowIndexes:B.rowIndexes}]):S.set(O,[{name:"all_fields",canEdit:!0}]);else{let L=S.get(O);L||(L=[]),L.push(B),S.set(O,L)}}else S.set(N,U[E])}v.fieldPermissionMap=S})(R),function(v){const S=v.fieldPermissionMap,U=new Map,E=v.actionPermissions;E!=null&&Object.keys(E).forEach(N=>{const A=E[N],B=S.get(N);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&&S.set(N,[{name:"all_fields",canEdit:!1,rowIndexes:q}])}U.set(N,A)}),v.actionPermissionMap=U}(R)}(n),n.canClick=!0,W.handleEvent(null,n,n,"afterFormLoadData"),y.setFormPageDataLoadState(!0),c(P)}).catch(P=>{n.canClick=!0,l(P)})})}(e,t,o):function(n,s,r){return new Promise((c,l)=>{var P;const m=n.systemCode,u=n.code,p=n.version,d=$(n);let b=s||null,T=s?[s]: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,w=f.getBaseUrl(n.backendUrl,n.isTest),h={pageCode:u,pageVersion:p,tableName:n.tableName,formNoRuleCode:n.formNoRuleCode,id:b,systemCode:m,functionCode:C+".gets",listCodesMap:n.listCodesMap,listCodesInitSearchForm:n.listCodesInitSearchForm};if(!h.id&&d&&d._t_&&g.getSessionCache(d._t_+"_id")&&(h.id=g.getSessionCache(d._t_+"_id")),T&&(h.ids=ke(T)),n.notIdInitializationList&&(h.noIdAndTaskIdInitSetting=JSON.stringify(n.notIdInitializationList)),d&&(h.additionalParamMap=d),n.beanName&&(h.beanName=n.beanName),i&&(h.taskId=i),(P=n.props)!=null&&P.enableFormDataPermission&&(h.withDataPermission=!0),n.listCodesMap,(!n.listCodesMap||Object.keys(n.listCodesMap).length===0)&&n.tableUuids){const M={};n.tableUuids.forEach(R=>{const v=f.getListCode(u,p,R);M[v]=v}),h.listCodesMap=M}n.refercePropMap&&(h.refercePropMap=n.refercePropMap),h.isMobile=g.isMobileBrowser();const y=w+"/dsc/commons/gets",I=be.usePageContextStore();I.restorePageLoadState(),W.handleEvent(null,n,n,"beforeFormLoadData");const x=j.hasBackfillData(n.code,h.id);g.http.post(y,h).then(async M=>{M&&(x&&await Te(n,h.id,M),n.entity.data=M.entity,n.initFormNo=M.formNo);const R=n.customRules,v=n.rules,S=Ce.packageCustomRules(n,R,v);n.rules=S,n.canClick=!0,W.handleEvent(null,n,n,"afterFormLoadData"),I.setFormPageDataLoadState(!0),c(M)}).catch(M=>{n.canClick=!0,l(M)})})}(e,t,o)):new Promise((n,s)=>{n(!0)})}async function Te(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 ke(e){return e&&(typeof e=="string"?e=e.split(","):typeof e=="number"&&(e=[e])),e}function ge(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 de(e){e.exportNoticeInfo&&(e.exportNoticeInfo.noticeInterval&&clearInterval(e.exportNoticeInfo.noticeInterval),e.exportNoticeInfo.noticeComponent=null,e.exportNoticeInfo.noticeInterval=null),e.exportNoticeInfo={},Ee(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"?ce(t,o,e.lastFileTask.id,e):(e.noticeComponent=null,e.noticeInterval==null&&Ee(e,t,o))},message:()=>Be.h(De,{isShow:!0,backendUrl:t,lastFileTask:e.lastFileTask,onClickMsg(a){a.serverPath?function(n,s,r,c,l,m){ce(l,m,r,c);const u=g.getToken(),p=f.getBaseUrl(l),d=p+"/common/super-form/downloads?jwt="+u+"&showName="+encodeURI(n)+"&serverPath="+s;window.open(d)}(a.fileName,a.serverPath,a.id,e,t,o):ce(t,o,a.id,e),e.noticeComponent.close(),e.noticeComponent=null}})}):(e.noticeComponent!=null&&(e.noticeComponent.close(),e.noticeComponent=null),e.noticeInterval&&(clearInterval(e.noticeInterval),e.noticeInterval=null))}function Ee(e,t,o){e.noticeInterval||(e.noticeInterval=setInterval(()=>{e.noticeComponent||function(a,n,s){Ne(n,s).then(r=>{a.lastFileTask=r,Ue(a,n,s)})}(e,t,o)},3e3))}function Ne(e,t){return ne.getCurrentUserFileTasks(e,t)}function ce(e,t,o,a){ne.setFileTaskRead(e,o).then(()=>{(function(n,s,r){Ne(s,r).then(c=>{n.lastFileTask=c,Ue(n,s,r)})})(a,e,t)})}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,a=e.configureObj,n=o.systemCode,s=o.backendUrl;let r=f.getBaseUrl(s,o.isTest)+"/dsc/workflow-commons/add-signers";if(r=f.getRealRestApiPath(r,n,s,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,a,m,null,!1),W.doAfterClickEvent(o,a)})}},exports.doAddTransactor=function(e,t){if(t){const o=e.pageContext,a=e.configureObj,n=o.systemCode,s=o.backendUrl;let r=f.getBaseUrl(s,o.isTest)+"/dsc/workflow-commons/add-transactors";if(r=f.getRealRestApiPath(r,n,s,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,a,m,null,!1),W.doAfterClickEvent(o,a)})}},exports.doAssign=function(e,t){if(t){const o=e.pageContext,a=e.configureObj,n=o.backendUrl,s=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,s,"superPageRuntimeMessage.successfulAssign").then(l=>{W.doAfterClickEvent(o,a)})}},exports.doCreateCopyTask=async function(e,t){if(t){const o=await function(a){return new Promise((n,s)=>{var c,l,m,u;const r=a.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=a.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 a=e.pageContext,n=e.configureObj,s=a.systemCode,r=a.backendUrl;let c=f.getBaseUrl(r,a.isTest)+"/dsc/workflow-commons/copies";if(c=f.getRealRestApiPath(c,s,r,a.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(a,n,{entity:(p=a.entity)==null?void 0:p.data},null),W.doAfterClickEvent(a,n)})}}},exports.doFileTaskFunc=de,exports.doImportFinally=function(e,t){var M,R,v;const o=e.pageContext,a=e.configureObj,n=e.tableConfigure,s=a.props.base,r=a.props.base.tableUuid?a.props.base.tableUuid:e.tableUuid,c=ne.getTableNameByTableUuid(o,r),l=new FormData;l.append("multipartFile",t),c&&l.append("tableName",c);const m=(R=(M=a.runtime)==null?void 0:M.props)==null?void 0:R.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=(v=n.props.importSetting)==null?void 0:v.listViewImportDuplicate;u&&l.append("importDuplicateRule",u);const p=o.judgeHeavyList;p&&l.append("judgeHeavyList",JSON.stringify(p));const d=ge(a);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=s.isAsync!==void 0&&s.isAsync!==null&&s.isAsync,l.append("isAsync",i+""),l.append("pageCode",o.code);const C=f.isWorkflowPage(o);C!=null&&l.append("isWorkflowEntity",C+"");const w=G.getPermissionCodes(a,o);w&&l.append("functionCode",w);const h=$(o);l.append("additionalParamMapStr",JSON.stringify(h));const y=s.isPermission===void 0||s.isPermission==="true"||s.isPermission;l.append("isPermission",y+"");const I=o.systemCode;I&&l.append("systemCode",I);const x=o.backendUrl;let P=f.getBaseUrl(x,o.isTest)+"/dsc/commons/import-data";P=f.getRealRestApiPath(P,I,x,o.isTest),g.http.post(P,l).then(S=>{if(i)k.ElMessage({showClose:!0,type:"success",message:g.getI18n().t("superPageRuntimeMessage.asyncImport")}),de(o);else{let U=!1;S?(U=!1,k.ElMessage({dangerouslyUseHTMLString:!0,showClose:!0,type:"warning",message:S})):(k.ElMessage({showClose:!0,type:"success",message:g.getI18n().t("superPageRuntimeMessage.successfulImport")}),U=!0),V(o,a,S,null,!0),o.result=U,W.doAfterClickEvent(o,a)}}).catch(S=>{})},exports.doRemoveSigners=function(e,t){if(t){const o=e.pageContext,a=e.configureObj,n=o.systemCode,s=o.backendUrl;let r=f.getBaseUrl(s,o.isTest)+"/dsc/workflow-commons/remove-signers";if(r=f.getRealRestApiPath(r,n,s,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,a,u,"superPageRuntimeMessage.successfulOperation",!1),W.doAfterClickEvent(o,a)})}},exports.doRemoveTransactors=function(e,t){if(t){const o=e.pageContext,a=e.configureObj,n=o.systemCode,s=o.backendUrl;let r=f.getBaseUrl(s,o.isTest)+"/dsc/workflow-commons/remove-transactors";if(r=f.getRealRestApiPath(r,n,s,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,a,u,"superPageRuntimeMessage.successfulOperation",!1),W.doAfterClickEvent(o,a)})}},exports.doReturnTaskTo=function(e,t){const o=e.pageContext,a=e.configureObj,n=o.backendUrl,s=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,s,"superPageRuntimeMessage.successfulReturnTaskTo").then(c=>{W.doAfterClickEvent(o,a)})},exports.exportFormReport=function(e,t,o,a){var y,I,x,P,M,R,v,S,U,E,N,A,B;e.clickUuid=t.uuid,e.canClick=!1;const n=o.templateUuid,s=o.templateName,r=e.systemCode,c=(y=t.props.base)==null?void 0:y.logSetting,l=f.isWorkflowPage(e),m=e.beanName,u=t.props.base,p=t.tableName?t.tableName:e.tableName,d=e.backendUrl,b=Oe.functions.getFormViewData(e),T=u.isPermission===void 0||u.isPermission==="true"||u.isPermission,i={entity:b,fileName:n,showName:s,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 Z=L.getConfigure().code,K=L.getSuperGridRef().columns;K&&K.length>0&&(O[Z]=K)}}),i.subTableColumns=O}c&&(i.logSettingText=c.join(""));const C=(x=(I=t.runtime)==null?void 0:I.props)==null?void 0:x.title;C&&(i.currentOperation=C),i.isMobile=g.isMobileBrowser();const w=$(e);let h;i.additionalParamMap=w,i.isShowWatermark=((M=(P=t.props)==null?void 0:P.watermark)==null?void 0:M.isShowWatermark)===void 0?"true":((v=(R=t.props)==null?void 0:R.watermark)==null?void 0:v.isShowWatermark)+"",i.watermark=(U=(S=t.props)==null?void 0:S.watermark)!=null&&U.content&&((N=(E=t.props)==null?void 0:E.watermark)==null?void 0:N.content.length)>0?(B=(A=t.props)==null?void 0:A.watermark)==null?void 0:B.content.join("-~"):"",h=a?function(O,q,L,Z){return new Promise((K,ae)=>{const ie=f.getBaseUrl(q,Z)+"/dsc/commons/export-pdf";ue();const ee=oe.post(ie,L,{headers:{"content-type":"application/json"},responseType:"blob"});window.$message.info("正在导出中..."),ee.then(te=>{const se=new Blob([te.data]),F=document.createElement("a");F.download=O.substring(0,O.lastIndexOf("."))+".pdf",F.style.display="none",F.target="_blank",F.href=URL.createObjectURL(se),document.body.appendChild(F),F.click(),URL.revokeObjectURL(F.href),document.body.removeChild(F),K(!0)}).catch(te=>{ae(te)})})}(s,d,i,e.isTest):function(O,q,L,Z){return new Promise((K,ae)=>{const ie=f.getBaseUrl(q,Z)+"/dsc/commons/export-reports";ue(),oe.post(ie,L,{responseType:"blob"}).then(ee=>{const te=new Blob([ee.data]);let se="报告.xlsx";O&&(se=O);const F=document.createElement("a");F.download=se,F.style.display="none",F.target="_blank",F.href=URL.createObjectURL(te),document.body.appendChild(F),F.click(),URL.revokeObjectURL(F.href),document.body.removeChild(F),K(!0)}).catch(ee=>{ae(ee)})})}(s,d,i,e.isTest),h&&h.then(()=>{W.doAfterClickEvent(e,t)}).catch(O=>{window.$message.error("导出失败..."),W.doAfterClickEvent(e,t)})},exports.extractWorkflowFunc=Se,exports.getAdditionalParamMap=$,exports.getFormData=xe,exports.getRemoveSigner=function(e){const t=e.pageContext,o=t.systemCode,a=t.backendUrl;let n=f.getBaseUrl(a,t.isTest)+"/dsc/workflow-commons/get-remove-signers";const s=_(e);if(n=f.getRealRestApiPath(n,o,a,t.isTest),n)return g.http.post(n,s);k.ElMessage({showClose:!0,type:"warning",message:g.getI18n().t("superPageRuntimeMessage.requestPathEmpty")})},exports.getRemoveTransactor=function(e){const t=e.pageContext,o=t.systemCode,a=t.backendUrl;let n=f.getBaseUrl(a,t.isTest)+"/dsc/workflow-commons/get-remove-transactors";const s=_(e);if(n=f.getRealRestApiPath(n,o,a,t.isTest),n)return g.http.post(n,s);k.ElMessage({showClose:!0,type:"warning",message:g.getI18n().t("superPageRuntimeMessage.requestPathEmpty")})},exports.getSaveFormRequest=Pe,exports.getSaveFormRequestWithRow=Ie,exports.getTaskInformitions=function(e){const t=e.pageContext,o=t.systemCode,a=t.backendUrl,n=t.completeTaskParam;let s=f.getBaseUrl(a,t.isTest)+"/dsc/workflow-commons/returnable-task/"+n.taskId;if(s=f.getRealRestApiPath(s,o,a,t.isTest),!s)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(s,l)},exports.isVisibleWorkflowButton=function(e,t,o,a,n,s){var c,l,m,u,p,d,b,T;let r=!1;if(a&&a.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,s):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 w=!1;return i.processState&&i.processState==="SUBMIT"&&i.active==="WAIT_TRANSACT"&&i.processingMode!=="TYPE_READ"&&i.showButtonCopy&&(w=!0),C&&(C.props.base.state=w?"":"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,w){var I;const h=g.getCurrentUser(),y=h?h.loginName:null;if(i!=null&&i.processState){if(((I=C==null?void 0:C.firstNodeInfo)==null?void 0:I.nodeId)===(w==null?void 0:w.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"&&w&&(w.creator===y||w.CREATOR===y))return!0}return!1}(o,a,s):t==="cancelExtractWorkflow"?r=function(i,C,w){const h=g.getCurrentUser(),y=h?h.loginName:null;return!!((i==null?void 0:i.processState)==="EXTRACT"&&w&&(w.creator===y||w.CREATOR===y))}(o,0,s):t==="approveExtractWorkflow"||t==="refuseExtractWorkflow"?r=Fe(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(w){const h=w;let y=!0;return h&&(y=h.taskComplete),y}(C)}(o,a)&&(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,a){var r;t&&!t.props.base&&(t.props.base={});let n=a;n||(n=o?"refresh":(r=t.props.base)==null?void 0:r.successOperation);const s=Re(e,t);if(s&&s==="list"&&!n&&(n="refresh"),n==="refresh"){if(s&&s==="list"){const c=W.getTableUuid(e,t);c?J.getComponentRef(e,c).refresh():console.error("tableUuid is empty")}else if(s&&s==="form"){const c=e.entity.data;pe(e,c.ID?c.ID:c.id)}}},exports.refreshPage=pe,exports.saveChartConditionBase=function(e,t){const o=e.entity?e.entity:{},a={data:o.data,page:o.page},n={pageCode:e.code,queryCondition:JSON.stringify(a),name:t},s=window.$vueApp.config.globalProperties.baseAPI+"/component/chart-search-condition";return g.http.post(s,n)},exports.standardEvents=_e,exports.updateValuesWhenCloseDialog=function({parentPageContext:e,parentEventParams:t,parentConfigureObj:o,sourceModel:a,sourceTableName:n,valueMappings:s}){var c;s||(s=o.runtime&&o.runtime.linkPage&&o.runtime.linkPage.valueMappings?o.runtime.linkPage.valueMappings:null)||(s=(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,w=G.getModelFields(null,C);Y.setVariableValue(u.entity,w,i)})}})(a,s,e),W.handleEvent(null,e,o,"setValue",{sourceModel:a,sourceTableName:n,entity:e.entity.data,targetTableName:r,eventParams:t})};
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { PageContext } from '../interfaces/page-design-types';
|
|
2
|
+
|
|
3
|
+
export declare const standardEvents: {
|
|
4
|
+
save: (params: any) => Promise<unknown>;
|
|
5
|
+
saveList: (params: any) => Promise<unknown>;
|
|
6
|
+
exportForm: (params: any) => void;
|
|
7
|
+
exportPDF: (params: any) => void;
|
|
8
|
+
submit: (params: any) => Promise<unknown>;
|
|
9
|
+
submitList: (params: any) => Promise<unknown>;
|
|
10
|
+
agree: (params: any) => Promise<unknown>;
|
|
11
|
+
agreeList: (params: any) => Promise<unknown>;
|
|
12
|
+
disagree: (params: any) => Promise<unknown>;
|
|
13
|
+
disagreeList: (params: any) => Promise<unknown>;
|
|
14
|
+
back: (params: any) => void;
|
|
15
|
+
delete: (params: any) => Promise<unknown>;
|
|
16
|
+
downloadTemplate: (params: any) => void;
|
|
17
|
+
import: (params: any) => void;
|
|
18
|
+
export: (params: any) => Promise<unknown>;
|
|
19
|
+
search: (params: any) => void;
|
|
20
|
+
showSearch: (params: any) => void;
|
|
21
|
+
workflowSave: (params: any) => Promise<unknown>;
|
|
22
|
+
workflowStart: (params: any) => Promise<unknown>;
|
|
23
|
+
submitProcess: (params: any) => Promise<unknown>;
|
|
24
|
+
submitTask: (params: any) => Promise<unknown>;
|
|
25
|
+
approve: (params: any) => Promise<unknown>;
|
|
26
|
+
refuse: (params: any) => Promise<unknown>;
|
|
27
|
+
readed: (params: any) => Promise<unknown>;
|
|
28
|
+
agreement: (params: any) => Promise<unknown>;
|
|
29
|
+
oppose: (params: any) => Promise<unknown>;
|
|
30
|
+
kiken: (params: any) => Promise<unknown>;
|
|
31
|
+
assign: (params: any) => void;
|
|
32
|
+
copyTask: (params: any) => void;
|
|
33
|
+
addSigner: (params: any) => void;
|
|
34
|
+
drawTask: (params: any) => Promise<unknown>;
|
|
35
|
+
abandonReceive: (params: any) => Promise<unknown>;
|
|
36
|
+
returnToPreviousTask: (params: any) => Promise<unknown>;
|
|
37
|
+
endInstance: (params: any) => Promise<unknown>;
|
|
38
|
+
returnTaskTo: (params: any) => void;
|
|
39
|
+
removeSigner: (params: any) => void;
|
|
40
|
+
retrieveTask: (params: any) => Promise<unknown>;
|
|
41
|
+
extractWorkflow: (params: any) => Promise<unknown>;
|
|
42
|
+
extractWorkflowEvent: (params: any) => void;
|
|
43
|
+
cancelExtractWorkflow: (params: any) => Promise<unknown>;
|
|
44
|
+
approveExtractWorkflow: (params: any) => Promise<unknown>;
|
|
45
|
+
refuseExtractWorkflow: (params: any) => Promise<unknown>;
|
|
46
|
+
viewDetail: (params: any) => void;
|
|
47
|
+
lineEditCreate: (params: any) => void;
|
|
48
|
+
printLabel: (params: any) => void;
|
|
49
|
+
queryCharts: (params: any) => void;
|
|
50
|
+
resetCharts: (params: any) => void;
|
|
51
|
+
exportCharts: (params: any) => void;
|
|
52
|
+
saveQueryCharts: (params: any) => void;
|
|
53
|
+
addTransactor: (params: any) => void;
|
|
54
|
+
removeTransactor: (params: any) => void;
|
|
55
|
+
};
|
|
56
|
+
export declare function exportFormReport(pageContext: any, configureObj: any, templateFile: any, isPdf: any): void;
|
|
57
|
+
export declare function getSaveFormRequestWithRow(pageContext: PageContext, configureObj: any, url: string, isUnControlVersion: boolean, mainDefaultValueColumns: any, dynamicColumnInfo: any, row: any, otherParams: any, isTable?: any): any;
|
|
58
|
+
export declare function getSaveFormRequest(pageContext: PageContext, configureObj: any, url: any, isUnControlVersion: any, mainDefaultValueColumns: any, dynamicColumnInfo: any): any;
|
|
59
|
+
/**
|
|
60
|
+
* 按钮执行后页面处理方式:刷新、关闭弹框等等
|
|
61
|
+
* @param pageContext
|
|
62
|
+
* @param configureObj
|
|
63
|
+
* @param data
|
|
64
|
+
* @param successTip
|
|
65
|
+
* @param isListButton
|
|
66
|
+
*/
|
|
67
|
+
export declare function dealAfterOperate(pageContext: any, configureObj: any, data: any, successTip: any, isListButton?: boolean): void;
|
|
68
|
+
export declare function updateValuesWhenCloseDialog({ parentPageContext, parentEventParams, parentConfigureObj, sourceModel, sourceTableName, valueMappings }: {
|
|
69
|
+
parentPageContext: any;
|
|
70
|
+
parentConfigureObj: any;
|
|
71
|
+
parentEventParams: any;
|
|
72
|
+
sourceModel: any;
|
|
73
|
+
sourceTableName: any;
|
|
74
|
+
valueMappings?: any;
|
|
75
|
+
}): void;
|
|
76
|
+
export declare function refreshFormOrListPage(pageContext: any, configureObj: any, isRefreshWhenClosePopup: any, mySuccessOperation: any): void;
|
|
77
|
+
export declare function doImportFinally(params: any, fileObj: any): void;
|
|
78
|
+
export declare function judgeDataNumber(buttonConfigureObj: any, ids: any): boolean;
|
|
79
|
+
export declare function dealCompleteTaskParam(commonEntity: any, isInit: any, pageContext: any, params?: any, operationResult?: any): boolean;
|
|
80
|
+
export declare function doAssign(params: any, selectNodeInfo: any): void;
|
|
81
|
+
export declare function getAdditionalParamMap(pageContext: any): any;
|
|
82
|
+
export declare function doAddSigner(params: any, selectNodeInfo: any): void;
|
|
83
|
+
export declare function doAddTransactor(params: any, selectNodeInfo: any): void;
|
|
84
|
+
export declare function doCreateCopyTask(params: any, selectNodeInfo: any): Promise<void>;
|
|
85
|
+
export declare function getTaskInformitions(params: any): any;
|
|
86
|
+
export declare function doReturnTaskTo(params: any, selectTaskNode: any): void;
|
|
87
|
+
export declare function getRemoveSigner(params: any): any;
|
|
88
|
+
export declare function doRemoveSigners(params: any, selectRemoveTasks: any): void;
|
|
89
|
+
export declare function getRemoveTransactor(params: any): any;
|
|
90
|
+
export declare function doRemoveTransactors(params: any, selectRemoveTasks: any): void;
|
|
91
|
+
export declare function extractWorkflowFunc(params: any): Promise<unknown>;
|
|
92
|
+
export declare function isVisibleWorkflowButton(pageContext: any, standardEventName: any, buttonInfo: any, completeTaskParam: any, btnConfigure: any, data: any): boolean;
|
|
93
|
+
/**
|
|
94
|
+
* 刷新页面
|
|
95
|
+
* @param pageContext
|
|
96
|
+
*/
|
|
97
|
+
export declare function refreshPage(pageContext: PageContext, id?: any): void;
|
|
98
|
+
/**
|
|
99
|
+
* 获得表单数据
|
|
100
|
+
* @param pageContext
|
|
101
|
+
*/
|
|
102
|
+
export declare function getFormData(pageContext: PageContext, id?: any, isNeedId?: boolean): Promise<unknown>;
|
|
103
|
+
export declare function saveChartConditionBase(pageContext: any, conditionName: string): any;
|
|
104
|
+
export declare function listChartConditions(pageContext: any): any;
|
|
105
|
+
export declare function deleteChartCondition(conditionId: any): any;
|
|
106
|
+
export declare function doFileTaskFunc(pageContext: any): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ge=require("async-validator"),F=require("element-plus"),R=require("../global-refs.cjs"),g=require("agilebuilder-ui"),X=require("./standard-event.cjs"),E=require("../common-util.cjs"),T=require("../anchor-util.cjs"),pe=["downloadTemplate","back","exportForm","exportPDF","lineEditCreate","workflowSave"];function w(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]=w(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(w(o,t),w(i,t))}),s}if(e instanceof Set){const s=new Set;return t.set(n,s),e.forEach(i=>{s.add(w(i,t))}),s}const r={};return t.set(n,r),Object.keys(e).forEach(s=>{r[s]=w(e[s],t)}),r}function Y(e,t,n){const r={};t||(t={});let s=0;const i=e.split(".");return i.forEach(o=>{let a;if(s===i.length-1)a=function(l,f,m){let c;for(let u=0;u<f.length&&(c=u===0?l[f[u]]:c.fields[f[u]],!(u!==f.length-1&&f[u+1]===m));u++);return c}(r,i,o),a.fields[o]=n;else{let l;s===0?a=t:(l=function(f,m,c){let u;for(let d=0;d<m.length;d++){const C=m[d];if(u=d===0?f[C]:u.fields[m[d]],C===c)break}return u}(r,i,i[s-1]),a=l.fields),a[o]||(a[o]={type:"object",required:!0,fields:{}}),s===0?r[o]=a[o]:l.fields[o]=a[o]}s++}),r}function ie(e,t,n,r,s,i){return ae(e,t,n,r,!0,s,i)}function le(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 ae(e,t,n,r,s,i,o){let a,l=le(t);return t&&t!==null||!n||(l={}),!l||Object.keys(l).length===0?(e.validateErrorField="",!0):(new ge(l).validate(e,{first:!0},(f,m)=>{let c;if(f){a=f[0].message,c=f[0].field,F.ElMessage({message:a,showClose:!0,type:"warning",duration:3e3});const u=R.getComponentRefByCode(o,c);if(u&&u.addRequiredClass){u.addRequiredClass();try{T.scrollIntoComponentWithCode(o,c)}catch(d){console.error("滚动失败",d)}}}else a=!0;if(c&&s===!0&&/[A-Z]+/.test(c)&&e[c.toLowerCase()]!==void 0){const u=JSON.parse(JSON.stringify(e));u[c.toUpperCase()]=e[c.toLowerCase()],delete u[c.toLowerCase()],a=ae(u,t,n,r,!1,i,o)}}),a)}function A(e){return new Promise((t,n)=>{const r=[],s=e.customValidatorUuids;s&&s.forEach(i=>{const o=R.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 ee(e,t,n){return new Promise((r,s)=>{const i=JSON.parse(JSON.stringify(e)),o=w(n),a=t.hiddenNotValidatorCodes;if(o&&a&&a.size>0&&a.forEach(l=>{delete o[l]}),o&&Object.keys(o).length!==0)if(ie(i,o,null,null,!0,t)===!0)if(te(t)===!0){const l=se(t);l&&g.isPromise(l)?l.then(f=>{f?A(t).then(m=>{r(m)}):r(!1)}):A(t).then(f=>{r(f)})}else s(new Error(g.getI18n().t("superPageRuntimeMessage.tableListSubTableDataVerificationFailed")).message);else s(new Error(g.getI18n().t("superPageRuntimeMessage.formDataVerificationFailed")).message);else if(te(t)===!0){const l=se(t);l&&g.isPromise(l)?l.then(f=>{f?A(t).then(m=>{r(m)}):r(!1)}):A(t).then(f=>{r(f)})}else s(new Error(g.getI18n().t("superPageRuntimeMessage.tableListSubTableDataVerificationFailed")).message)})}function V(e,t,n){if(!t)return n;n||(n={});const r=E.isWorkflowPage(e),s=Object.keys(t),i=t;return s.forEach(o=>{if(o==="__subRules"){const a=i.__subRules;Object.keys(a).forEach(l=>{n.subRules||(n.subRules={}),n.subRules[l]?Object.assign(n.subRules[l],a[l]):n.subRules[l]=a[l]})}else fe(i[o]),r?(n.rules[o]=i[o],n[o]&&(n[o]=i[o])):n[o]=i[o]}),le(n)}function te(e){var n;if(!e||E.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=R.getComponentRef(e,s);if(o){if(o.getConfigure()){const a=o.getConfigure();if((n=a==null?void 0:a.verification)!=null&&n.notEmpty){const l=o.getTableData();if(!l||!Array.isArray(l)||l.length===0){try{T.scrollIntoComponentWithUuid(e,s)}catch{}return F.ElMessage({showClose:!0,message:g.getI18n().t("superPageRuntimeMessage.xxxNotEmpty",{label:a.title?a.title:a.code}),type:"warning"}),!1}}}if(o.validatorSunTableListData()===!1){try{T.scrollIntoComponentWithUuid(e,s)}catch{}return!1}}}return!0}function ne(e,t){e.forEach(n=>{n.message;const r=n.label,s=g.getI18n().t(r);n.required&&(n.message=g.getI18n().t("superPageRuntimeMessage.required",{label:s})),n.myType&&(n.message=g.getI18n().t("superPageRuntimeMessage.formatMismatch",{label:s})),n.patternType&&(n.message=g.getI18n().t("superPageRuntimeMessage.formatMismatch",{label:s})),n.max!==void 0&&n.max!==null&&(n.message=g.getI18n().t("superPageRuntimeMessage.overMaxLength",{label:s,value:n.max})),n.min!==void 0&&n.min!==null&&(n.message=g.getI18n().t("superPageRuntimeMessage.limitMinLength",{label:s,value:n.min}))})}function se(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=>{g.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 oe(e,t){const n=R.getAllComponentRefs(e);if(n)for(const r in n){const s=n[r];ue(e,s&&s.value,t)}}function ue(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 a=t?t.getTableUuid():null,l=e.code,f=e.version,m=E.getListCode(l,f,a),c=[{name:"_all_fields",disabled:!0}];t.dynamicControlTableEdit(e,c,m)}}}function fe(e){if(!(e!=null&&e.type))return;const t=be[e.type];t&&(e.validator=t.validator)}const be={boolean:{validator:function(e,t,n){return B(e,t)===!0&&(typeof t=="number"&&(t===1||t===0)||typeof t=="boolean"&&(t===!0||t===!1))}},date:{validator:function(e,t,n){if(B(e,t)!==!0)return!1;const r=new Date(t);return!isNaN(r.getTime())}},number:{validator:function(e,t,n){return B(e,t)===!0&&(typeof t!="string"||t.trim()!=="")&&(typeof t=="number"||!isNaN(Number(t)))}}},B=(e,t)=>t!=null&&t!==""||!e.required;function re(e,t){return e&&pe.includes(t.eventName)}exports.disabledAllFields=function(e){oe(e,{disabled:!0})},exports.dynamicControlTableEdit=function(e,t,n){var l;let r,s;if(n?(r=R.getComponentRefByCode(e,n),s=r?r.getTableUuid():null):(s=e.tableUuids&&e.tableUuids.length>0?e.tableUuids[0]:null,r=s?R.getComponentRef(e,s):null),!r)return;const i=e.code,o=e.version,a=E.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]={}),((l=e.workflowRules)==null?void 0:l.subRules)&&e.workflowRules.subRules[n]){const f=e.workflowRules.subRules[n];t.forEach(m=>{f[m.name]=m})}r.dynamicControlTableEdit(e,t,a)},exports.getWorkflowRules=function(e){const t=e.entity.data,n={...e.entity.page,...t},r=X.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(l=>{l.name&&e.formPropTiltleMap[l.name]&&(l.label=e.formPropTiltleMap[l.name])});let o=window.$vueApp.config.globalProperties.$getValidator(e.completeTaskParam.fieldPermissions,n,!0,r,i,s);const a=e.customRules;return o=V(e,a,o),o&&(o.rules||(o.rules={}),o.subRules||(o.subRules={})),o},exports.i18nValidatePropRulesMessage=ne,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];ne(i),s.indexOf(".")>0?Y(s,t,i):i&&i.length>0&&(t[s]=[...i])}return t},exports.isNotNeedValidateRequired=re,exports.packageCustomRules=V,exports.packageCustomValidator=fe,exports.setObjectPropRule=Y,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]=[])}),E.isWorkflowPage(e)){let s=e.workflowRules?e.workflowRules:{rules:{},subRules:{}};s=V(e,n,s),e.workflowRules=s}else{let s=e.rules?e.rules:{};s=V(e,n,s),e.rules=s}const r=t.filter(s=>s.name==="_all_fields");r&&r.length>0&&oe(e,r[0]),t.forEach(s=>{if(s.name!=="_all_fields"){const i=R.getComponentRefByCode(e,s.name);ue(e,i,s)}})},exports.validateDataModelFunc=function(e,t,n,r){if(n&&re(n.isStandard,n.event))return new Promise((l,f)=>{l(!0)});const s=e.entity.data,i={...e.entity.page,...s},o=e.rules,a=t.props.base?t.props.base.isEnableRequired:null;return a!=null&&(r=a),r==null&&(r=!1),function(l,f,m,c){return l?E.isWorkflowPage(c)?function(u,d,C){return new Promise((P,q)=>{const k=X.getAdditionalParamMap(d),v=d.entity.context,de=d.entity.task,ce=!0,me=d.subTablePageInfo;ee(u,d,C).then(x=>{if(x){let M,N,D,W,j=x;const J=d.workflowRules;if(J){if(!function(b,I){var z,Z,G,H;if(!b.actionPermissions)return!0;const $=Object.keys(b.actionPermissions);for(let U=0;U<$.length;U++){const y=$[U],S=b.actionPermissions[y];if(S&&S.notEmpty){if((z=b.hiddenNotValidatorCodes)!=null&&z.has(y))continue;let _=!1;if(I[y]?Array.isArray(I[y])&&I[y].length===0&&(_=!0):_=!0,_){const K=R.getComponentRefByCode(b,y);if(!K)return!0;const Q=K.getConfigure();return(Z=S.notEmptyCondition)!=null&&Z.parentCondition&&g.parseSubTablePermissionCondition(S.notEmptyCondition.parentCondition.replaceAll("${field[","${parent["),b.dataTypeMaps,I,{},(G=b.entity)==null?void 0:G.request,(H=b.entity)==null?void 0:H.task,b.contextParam)===!1?!0:(F.ElMessage({showClose:!0,message:g.getI18n().t("superPageRuntimeMessage.xxxNotEmpty",{label:Q.title?Q.title:y}),type:"warning"}),!1)}}}return!0}(d,u))return void P(!1);const h=!0,p=w(J),L=d.hiddenNotValidatorCodes;L&&L.size>0&&L.forEach(b=>{p.subRules&&delete p.subRules[b],p.rules&&delete p.rules[b]}),p.subRules&&(Object.keys(p.subRules).length>0?p.totalSubRules||(p.totalSubRules={}):delete p.subRules);const O=window.$vueApp.config.globalProperties.$formValidator(u,p,ce,k,de,v,me,h);j=O.msg,M=O.field,N=O.listCode,D=O.rowIndex,W=O.pageNum}else j=!0;if(j!==!0){if(F.ElMessage({showClose:!0,message:j+"",type:"warning"}),N){const h=R.getComponentRefByCode(d,N);if(h&&h.addRequiredClass){h.addRequiredClass(M,D,W);try{T.scrollIntoComponentWithCode(d,N),h.scrollToCell({fieldName:M,rowIndex:D,pageNum:W})}catch(p){console.error("滚动到验证失败的子表字段失败,可能是表格组件版本较低没有scrollToCell方法",p)}}}else{const h=R.getComponentRefByCode(d,M);if(h&&h.addRequiredClass){h.addRequiredClass();try{T.scrollIntoComponentWithCode(d,M)}catch(p){console.error("滚动失败",p)}}}P(!1)}else Object.keys(u).indexOf("validateErrorField")>=0&&delete u.validateErrorField,P(u)}else q(new Error(g.getI18n().t("superPageRuntimeMessage.formDataVerificationFailed")).message)}).catch(x=>{q(x)})})}(f,c,m):function(u,d,C){return new Promise((P,q)=>{ee(u,d,C).then(k=>{if(k){const v=JSON.parse(JSON.stringify(u));Object.keys(v).indexOf("validateErrorField")>=0&&delete v.validateErrorField,P(v)}else P(!1)}).catch(k=>{q(k)})})}(f,c,m):new Promise((u,d)=>{u(!0)})}(r,i,o,e)},exports.validator=ie;
|
|
@@ -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;
|