super-page-runtime 2.3.48-cdnTmp2 → 2.3.48-tmp1
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.js +8 -0
- package/dist/es/components/runtime/utils/ai-chat-util.js +16 -0
- package/dist/es/components/runtime/utils/anchor-util.js +84 -0
- package/dist/es/components/runtime/utils/api/api-util.d.ts +1 -1
- package/dist/es/components/runtime/utils/api/api-util.js +7 -0
- package/dist/es/components/runtime/utils/api/page-expose-util.js +202 -0
- package/dist/es/components/runtime/utils/assemblys-config.js +20 -0
- package/dist/es/components/runtime/utils/barcode-util.js +12 -0
- package/dist/es/components/runtime/utils/charts/chart-columnline-util.js +168 -0
- package/dist/es/components/runtime/utils/charts/chart-gauge-util.js +38 -0
- package/dist/es/components/runtime/utils/charts/chart-pie-util.js +82 -0
- package/dist/es/components/runtime/utils/charts/chart-radar-util.js +56 -0
- package/dist/es/components/runtime/utils/charts/chart-scatter-util.js +47 -0
- package/dist/es/components/runtime/utils/charts/chart-util.js +288 -0
- package/dist/es/components/runtime/utils/common-util.js +120 -0
- package/dist/es/components/runtime/utils/eventBus.js +8 -0
- package/dist/es/components/runtime/utils/events/data-backfill-util.js +39 -0
- package/dist/es/components/runtime/utils/events/event-util.js +447 -0
- package/dist/es/components/runtime/utils/events/print-label.js +100 -0
- package/dist/es/components/runtime/utils/events/standard-event.js +1226 -0
- package/dist/es/components/runtime/utils/events/validator-util.js +485 -0
- package/dist/es/components/runtime/utils/form/date-shortcuts.js +36 -0
- package/dist/es/components/runtime/utils/form/scan-util.js +93 -0
- package/dist/es/components/runtime/utils/global-refs.js +57 -0
- package/dist/es/components/runtime/utils/i18n-util.js +18 -0
- package/dist/es/components/runtime/utils/interfaces/page-design-types.js +4 -0
- package/dist/es/components/runtime/utils/page-helper-util.js +391 -0
- package/dist/es/components/runtime/utils/page-init-util.js +297 -0
- package/dist/es/components/runtime/utils/{page-permission-util.mjs → page-permission-util.js} +21 -20
- package/dist/es/components/runtime/utils/page-store.js +53 -0
- package/dist/es/components/runtime/utils/store-util.js +13 -0
- package/dist/es/components/runtime/utils/table-utils.js +89 -0
- package/dist/es/components/runtime/utils/tree-utils.js +73 -0
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime2.vue.js +29 -0
- package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.js +7 -0
- package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime2.vue.js +21 -0
- package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime2.vue.js +41 -0
- package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime2.vue.js +6 -0
- package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime2.vue.js +21 -0
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.js +7 -0
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime2.vue.js +53 -0
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue.js +14 -0
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb2.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +13 -0
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group2.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +60 -0
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header2.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue.js +7 -0
- package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search2.vue.js +64 -0
- package/dist/es/components/runtime/views/assemblys/chart/common/home-chart-condition-render.vue.js +94 -0
- package/dist/es/components/runtime/views/assemblys/chart/common/home-chart-condition-render2.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.js +7 -0
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime2.vue.js +35 -0
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue.js +7 -0
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime2.vue.js +46 -0
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue.js +7 -0
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime2.vue.js +35 -0
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.js +7 -0
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime2.vue.js +35 -0
- package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +430 -0
- package/dist/es/components/runtime/views/assemblys/chart/table/group-column-item.vue.js +6 -0
- package/dist/es/components/runtime/views/assemblys/chart/table/group-column-item2.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/chart/table/group-column.vue.js +10 -0
- package/dist/es/components/runtime/views/assemblys/chart/table/group-column2.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue.js +46 -0
- package/dist/es/components/runtime/views/assemblys/chart/table/normal-column2.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/chart/table/table-pageination.vue.js +17 -0
- package/dist/es/components/runtime/views/assemblys/chart/table/table-pageination2.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime2.vue.js +268 -0
- package/dist/es/components/runtime/views/assemblys/common/event-call-component.vue.js +20 -0
- package/dist/es/components/runtime/views/assemblys/common/event-call-component2.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +36 -0
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog2.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/common/file-task-notice.vue.js +35 -0
- package/dist/es/components/runtime/views/assemblys/common/file-task-notice2.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/common/format-file-task-notice-message.vue.js +32 -0
- package/dist/es/components/runtime/views/assemblys/common/format-file-task-notice-message2.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.js +17 -0
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog2.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-table.vue.js +23 -0
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-table2.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/common/remove-transactor-dialog.vue.js +18 -0
- package/dist/es/components/runtime/views/assemblys/common/remove-transactor-dialog2.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.js +35 -0
- package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog2.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +19 -0
- package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog2.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue.js +7 -0
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime2.vue.js +35 -0
- package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime2.vue.js +21 -0
- package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue.js +7 -0
- package/dist/es/components/runtime/views/assemblys/container/container/container-runtime2.vue.js +27 -0
- package/dist/es/components/runtime/views/assemblys/container/fixed/FixedBox.vue.js +7 -0
- package/dist/es/components/runtime/views/assemblys/container/fixed/FixedBox2.vue.js +29 -0
- package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue.js +7 -0
- package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix2.vue.js +81 -0
- package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime2.vue.js +25 -0
- package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/container/form/form-runtime2.vue.js +25 -0
- package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime2.vue.js +46 -0
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +7 -0
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime2.vue.js +96 -0
- package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue.js +7 -0
- package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime2.vue.js +47 -0
- package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime2.vue.js +69 -0
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +383 -0
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime2.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +339 -0
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime2.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime2.vue.js +90 -0
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue.js +7 -0
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime2.vue.js +135 -0
- package/dist/es/components/runtime/views/assemblys/error-render.vue.js +5 -0
- package/dist/es/components/runtime/views/assemblys/error-render2.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime2.vue.js +66 -0
- package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +38 -0
- package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element2.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime2.vue.js +69 -0
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime2.vue.js +102 -0
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime2.vue.js +55 -0
- package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime2.vue.js +24 -0
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime2.vue.js +115 -0
- package/dist/es/components/runtime/views/assemblys/form/image-upload/imageupload-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/form/image-upload/imageupload-runtime2.vue.js +91 -0
- package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime2.vue.js +28 -0
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime2.vue.js +81 -0
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue.js +7 -0
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime2.vue.js +38 -0
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime2.vue.js +43 -0
- package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.js +7 -0
- package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime2.vue.js +16 -0
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime2.vue.js +84 -0
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.js +8 -0
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime2.vue.js +218 -0
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue.js +7 -0
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime2.vue.js +156 -0
- package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime2.vue.js +16 -0
- package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime2.vue.js +36 -0
- package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime2.vue.js +44 -0
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue.js +7 -0
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime2.vue.js +28 -0
- package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.js +83 -0
- package/dist/es/components/runtime/views/assemblys/home-chart-render2.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +166 -0
- package/dist/es/components/runtime/views/assemblys/object-render2.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/page-bottom.vue.js +9 -0
- package/dist/es/components/runtime/views/assemblys/page-bottom2.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue.js +7 -0
- package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box2.vue.js +56 -0
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue.js +7 -0
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog2.vue.js +29 -0
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue.js +7 -0
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime2.vue.js +45 -0
- package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime2.vue.js +20 -0
- package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime2.vue.js +23 -0
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +7 -0
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime2.vue.js +32 -0
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime2.vue.js +27 -0
- package/dist/es/components/runtime/views/home-chart.vue.js +47 -0
- package/dist/es/components/runtime/views/home-chart2.vue.js +4 -0
- package/dist/es/components/runtime/views/super-page-dialog.vue.js +30 -0
- package/dist/es/components/runtime/views/super-page-dialog3.vue.js +5 -0
- package/dist/es/components/runtime/views/super-page.vue.js +7 -0
- package/dist/es/components/runtime/views/super-page2.vue.js +311 -0
- package/dist/es/index.js +32 -0
- package/dist/es/style.css +1052 -1
- package/package.json +11 -13
- package/dist/es/_virtual/_plugin-vue_export-helper.mjs +0 -8
- package/dist/es/components/runtime/utils/ai-chat-util.mjs +0 -16
- package/dist/es/components/runtime/utils/anchor-util.mjs +0 -83
- package/dist/es/components/runtime/utils/api/api-util.mjs +0 -12
- package/dist/es/components/runtime/utils/api/page-expose-util.mjs +0 -196
- package/dist/es/components/runtime/utils/assemblys-config.mjs +0 -19
- package/dist/es/components/runtime/utils/barcode-util.mjs +0 -12
- package/dist/es/components/runtime/utils/charts/chart-columnline-util.mjs +0 -169
- package/dist/es/components/runtime/utils/charts/chart-gauge-util.mjs +0 -38
- package/dist/es/components/runtime/utils/charts/chart-pie-util.mjs +0 -83
- package/dist/es/components/runtime/utils/charts/chart-radar-util.mjs +0 -56
- package/dist/es/components/runtime/utils/charts/chart-scatter-util.mjs +0 -47
- package/dist/es/components/runtime/utils/charts/chart-util.mjs +0 -285
- package/dist/es/components/runtime/utils/common-util.mjs +0 -116
- package/dist/es/components/runtime/utils/eventBus.mjs +0 -8
- package/dist/es/components/runtime/utils/events/data-backfill-util.mjs +0 -38
- package/dist/es/components/runtime/utils/events/event-util.mjs +0 -429
- package/dist/es/components/runtime/utils/events/print-label.mjs +0 -100
- package/dist/es/components/runtime/utils/events/standard-event.mjs +0 -1170
- package/dist/es/components/runtime/utils/events/validator-util.mjs +0 -462
- package/dist/es/components/runtime/utils/form/date-shortcuts.mjs +0 -36
- package/dist/es/components/runtime/utils/form/scan-util.mjs +0 -88
- package/dist/es/components/runtime/utils/global-refs.mjs +0 -57
- package/dist/es/components/runtime/utils/i18n-util.mjs +0 -14
- package/dist/es/components/runtime/utils/interfaces/page-design-types.mjs +0 -4
- package/dist/es/components/runtime/utils/page-helper-util.mjs +0 -381
- package/dist/es/components/runtime/utils/page-init-util.mjs +0 -281
- package/dist/es/components/runtime/utils/page-store.mjs +0 -53
- package/dist/es/components/runtime/utils/store-util.mjs +0 -13
- package/dist/es/components/runtime/utils/table-utils.mjs +0 -84
- package/dist/es/components/runtime/utils/tree-utils.mjs +0 -68
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue.mjs +0 -4
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime2.vue.mjs +0 -29
- package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.mjs +0 -7
- package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime2.vue.mjs +0 -21
- package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue.mjs +0 -4
- package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime2.vue.mjs +0 -41
- package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue.mjs +0 -4
- package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime2.vue.mjs +0 -6
- package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue.mjs +0 -4
- package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime2.vue.mjs +0 -21
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.mjs +0 -7
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime2.vue.mjs +0 -53
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue.mjs +0 -14
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb2.vue.mjs +0 -4
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.mjs +0 -13
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group2.vue.mjs +0 -4
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.mjs +0 -59
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header2.vue.mjs +0 -4
- package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue.mjs +0 -7
- package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search2.vue.mjs +0 -59
- package/dist/es/components/runtime/views/assemblys/chart/common/home-chart-condition-render.vue.mjs +0 -93
- package/dist/es/components/runtime/views/assemblys/chart/common/home-chart-condition-render2.vue.mjs +0 -4
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.mjs +0 -7
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime2.vue.mjs +0 -35
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue.mjs +0 -7
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime2.vue.mjs +0 -46
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue.mjs +0 -7
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime2.vue.mjs +0 -35
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.mjs +0 -7
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime2.vue.mjs +0 -35
- package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.mjs +0 -425
- package/dist/es/components/runtime/views/assemblys/chart/table/group-column-item.vue.mjs +0 -6
- package/dist/es/components/runtime/views/assemblys/chart/table/group-column-item2.vue.mjs +0 -4
- package/dist/es/components/runtime/views/assemblys/chart/table/group-column.vue.mjs +0 -10
- package/dist/es/components/runtime/views/assemblys/chart/table/group-column2.vue.mjs +0 -4
- package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue.mjs +0 -42
- package/dist/es/components/runtime/views/assemblys/chart/table/normal-column2.vue.mjs +0 -4
- package/dist/es/components/runtime/views/assemblys/chart/table/table-pageination.vue.mjs +0 -17
- package/dist/es/components/runtime/views/assemblys/chart/table/table-pageination2.vue.mjs +0 -4
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue.mjs +0 -4
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime2.vue.mjs +0 -261
- package/dist/es/components/runtime/views/assemblys/common/event-call-component.vue.mjs +0 -20
- package/dist/es/components/runtime/views/assemblys/common/event-call-component2.vue.mjs +0 -4
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.mjs +0 -35
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog2.vue.mjs +0 -4
- package/dist/es/components/runtime/views/assemblys/common/file-task-notice.vue.mjs +0 -34
- package/dist/es/components/runtime/views/assemblys/common/file-task-notice2.vue.mjs +0 -4
- package/dist/es/components/runtime/views/assemblys/common/format-file-task-notice-message.vue.mjs +0 -27
- package/dist/es/components/runtime/views/assemblys/common/format-file-task-notice-message2.vue.mjs +0 -4
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.mjs +0 -17
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog2.vue.mjs +0 -4
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-table.vue.mjs +0 -22
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-table2.vue.mjs +0 -4
- package/dist/es/components/runtime/views/assemblys/common/remove-transactor-dialog.vue.mjs +0 -18
- package/dist/es/components/runtime/views/assemblys/common/remove-transactor-dialog2.vue.mjs +0 -4
- package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.mjs +0 -35
- package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog2.vue.mjs +0 -4
- package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.mjs +0 -19
- package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog2.vue.mjs +0 -4
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue.mjs +0 -7
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime2.vue.mjs +0 -35
- package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue.mjs +0 -4
- package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime2.vue.mjs +0 -21
- package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue.mjs +0 -7
- package/dist/es/components/runtime/views/assemblys/container/container/container-runtime2.vue.mjs +0 -27
- package/dist/es/components/runtime/views/assemblys/container/fixed/FixedBox.vue.mjs +0 -7
- package/dist/es/components/runtime/views/assemblys/container/fixed/FixedBox2.vue.mjs +0 -29
- package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue.mjs +0 -7
- package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix2.vue.mjs +0 -81
- package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue.mjs +0 -4
- package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime2.vue.mjs +0 -25
- package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue.mjs +0 -4
- package/dist/es/components/runtime/views/assemblys/container/form/form-runtime2.vue.mjs +0 -25
- package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue.mjs +0 -4
- package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime2.vue.mjs +0 -43
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.mjs +0 -7
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime2.vue.mjs +0 -96
- package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue.mjs +0 -7
- package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime2.vue.mjs +0 -47
- package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue.mjs +0 -4
- package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime2.vue.mjs +0 -69
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.mjs +0 -362
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime2.vue.mjs +0 -4
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.mjs +0 -329
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime2.vue.mjs +0 -4
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue.mjs +0 -4
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime2.vue.mjs +0 -90
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue.mjs +0 -7
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime2.vue.mjs +0 -133
- package/dist/es/components/runtime/views/assemblys/error-render.vue.mjs +0 -5
- package/dist/es/components/runtime/views/assemblys/error-render2.vue.mjs +0 -4
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue.mjs +0 -4
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime2.vue.mjs +0 -65
- package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.mjs +0 -36
- package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element2.vue.mjs +0 -4
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue.mjs +0 -4
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime2.vue.mjs +0 -69
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue.mjs +0 -4
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime2.vue.mjs +0 -102
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue.mjs +0 -4
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime2.vue.mjs +0 -55
- package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue.mjs +0 -4
- package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime2.vue.mjs +0 -24
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue.mjs +0 -4
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime2.vue.mjs +0 -111
- package/dist/es/components/runtime/views/assemblys/form/image-upload/imageupload-runtime.vue.mjs +0 -4
- package/dist/es/components/runtime/views/assemblys/form/image-upload/imageupload-runtime2.vue.mjs +0 -88
- package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue.mjs +0 -4
- package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime2.vue.mjs +0 -28
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue.mjs +0 -4
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime2.vue.mjs +0 -79
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue.mjs +0 -7
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime2.vue.mjs +0 -37
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue.mjs +0 -4
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime2.vue.mjs +0 -42
- package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.mjs +0 -7
- package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime2.vue.mjs +0 -16
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue.mjs +0 -4
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime2.vue.mjs +0 -84
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.mjs +0 -8
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime2.vue.mjs +0 -215
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue.mjs +0 -7
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime2.vue.mjs +0 -150
- package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue.mjs +0 -4
- package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime2.vue.mjs +0 -16
- package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue.mjs +0 -4
- package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime2.vue.mjs +0 -36
- package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue.mjs +0 -4
- package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime2.vue.mjs +0 -43
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue.mjs +0 -7
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime2.vue.mjs +0 -28
- package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.mjs +0 -83
- package/dist/es/components/runtime/views/assemblys/home-chart-render2.vue.mjs +0 -4
- package/dist/es/components/runtime/views/assemblys/object-render.vue.mjs +0 -163
- package/dist/es/components/runtime/views/assemblys/object-render2.vue.mjs +0 -4
- package/dist/es/components/runtime/views/assemblys/page-bottom.vue.mjs +0 -9
- package/dist/es/components/runtime/views/assemblys/page-bottom2.vue.mjs +0 -4
- package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue.mjs +0 -7
- package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box2.vue.mjs +0 -56
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue.mjs +0 -7
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog2.vue.mjs +0 -29
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue.mjs +0 -7
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime2.vue.mjs +0 -45
- package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue.mjs +0 -4
- package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime2.vue.mjs +0 -20
- package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue.mjs +0 -4
- package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime2.vue.mjs +0 -23
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.mjs +0 -7
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime2.vue.mjs +0 -30
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue.mjs +0 -4
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime2.vue.mjs +0 -27
- package/dist/es/components/runtime/views/home-chart.vue.mjs +0 -46
- package/dist/es/components/runtime/views/home-chart2.vue.mjs +0 -4
- package/dist/es/components/runtime/views/super-page-dialog.vue.mjs +0 -30
- package/dist/es/components/runtime/views/super-page-dialog3.vue.mjs +0 -5
- package/dist/es/components/runtime/views/super-page.vue.mjs +0 -7
- package/dist/es/components/runtime/views/super-page2.vue.mjs +0 -307
- package/dist/es/index.mjs +0 -32
- /package/dist/es/assets/chart-themes/{bar-theme.mjs → bar-theme.js} +0 -0
- /package/dist/es/assets/chart-themes/{gauge-theme.mjs → gauge-theme.js} +0 -0
- /package/dist/es/assets/chart-themes/{pie-theme.mjs → pie-theme.js} +0 -0
- /package/dist/es/assets/chart-themes/{radar-theme.mjs → radar-theme.js} +0 -0
- /package/dist/es/assets/chart-themes/{scatter-theme.mjs → scatter-theme.js} +0 -0
- /package/dist/es/assets/{file.png.mjs → file.png.js} +0 -0
- /package/dist/es/assets/{folder.png.mjs → folder.png.js} +0 -0
- /package/dist/es/components/runtime/utils/{store.mjs → store.js} +0 -0
- /package/dist/es/i18n/langs/{cn.mjs → cn.js} +0 -0
- /package/dist/es/i18n/langs/{en.mjs → en.js} +0 -0
|
@@ -0,0 +1,297 @@
|
|
|
1
|
+
import e from "agilebuilder-ui/src/utils/request";
|
|
2
|
+
import { getAdditionalParamMap as t } from "./events/standard-event.js";
|
|
3
|
+
import { PageDimensions as n } from "./interfaces/page-design-types.js";
|
|
4
|
+
import { getFormPropName as i, getVariableValue as r, formatVariableValue as s, setVariableValue as o } from "./page-helper-util.js";
|
|
5
|
+
import { getSessionCache as a } from "agilebuilder-ui/src/utils/auth";
|
|
6
|
+
import { functions as l } from "./api/page-expose-util.js";
|
|
7
|
+
import { isWorkflowPage as u, deepCopy as p } from "./common-util.js";
|
|
8
|
+
import { packageCustomValidator as d } from "./events/validator-util.js";
|
|
9
|
+
import { isMobileBrowser as c } from "agilebuilder-ui/src/utils/common-util";
|
|
10
|
+
function f(t2) {
|
|
11
|
+
return new Promise((n2, i2) => {
|
|
12
|
+
(function(t3) {
|
|
13
|
+
return e.get(window.$vueApp.config.globalProperties.baseAPI + "/component/super-page-design/runtime/" + t3);
|
|
14
|
+
})(t2).then((e2) => {
|
|
15
|
+
e2 ? y().then((t3) => {
|
|
16
|
+
t3 && (e2.systemParam = h(t3)), g(e2.listViewTableName, e2.listViewTablePublishVersion).then((t4) => {
|
|
17
|
+
t4 ? (e2.contextParam = h(t4.contextParam), e2.branchFieldAuth = t4.branchFieldAuth, e2.isWorkflowEntity = t4.isWorkflowEntity, e2.dataTypeMaps = t4.dataTypeMaps, n2(e2)) : n2(null);
|
|
18
|
+
});
|
|
19
|
+
}).catch(() => {
|
|
20
|
+
n2(e2);
|
|
21
|
+
}) : n2(null);
|
|
22
|
+
});
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
function m(e2, t2) {
|
|
26
|
+
return new Promise((n2, i2) => {
|
|
27
|
+
e2 ? y().then((r2) => {
|
|
28
|
+
r2 && (e2.systemParam = h(r2)), e2.tableRuntimes && Object.keys(e2.tableRuntimes).length > 0 ? R(e2, t2, e2.systemVersion).then((t3) => {
|
|
29
|
+
e2.contextParam = h(t3.contextParam), e2.branchFieldAuth = t3.branchFieldAuth, e2.isWorkflowEntity = t3.isWorkflowEntity, e2.dataTypeMaps = t3.dataTypeMaps, e2.superGridItems = t3.superGrids, n2(e2);
|
|
30
|
+
}).catch((e3) => {
|
|
31
|
+
i2(e3);
|
|
32
|
+
}) : g("", "").then((t3) => {
|
|
33
|
+
t3 ? (e2.contextParam = h(t3.contextParam), e2.branchFieldAuth = t3.branchFieldAuth, e2.isWorkflowEntity = t3.isWorkflowEntity, e2.dataTypeMaps = t3.dataTypeMaps, n2(e2)) : n2(null);
|
|
34
|
+
}).catch((e3) => {
|
|
35
|
+
i2(e3);
|
|
36
|
+
});
|
|
37
|
+
}) : n2(null);
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
function g(t2, n2) {
|
|
41
|
+
let i2 = "";
|
|
42
|
+
return t2 && n2 && (i2 = "?listViewTableName=" + t2 + "&listViewTablePublishVersion=" + n2), e.get(window.$vueApp.config.globalProperties.baseAPI + "/component/super-page-design/runtime-param" + i2);
|
|
43
|
+
}
|
|
44
|
+
function y() {
|
|
45
|
+
return e.get(window.$vueApp.config.globalProperties.baseAPI + "/component/super-page-design/system-param");
|
|
46
|
+
}
|
|
47
|
+
function b(e2) {
|
|
48
|
+
var _a, _b, _c;
|
|
49
|
+
if (null == e2) return null;
|
|
50
|
+
const t2 = { uuid: e2.uuid, name: e2.name, label: e2.label, code: e2.code, version: e2.version, dimensions: e2.dimensions, systemCode: e2.systemCode, systemVersion: e2.systemVersion, backendUrl: e2.backendUrl, rules: {}, tableUuids: e2.tableUuids, listCodesMap: e2.listCodesMap, listCodesInitSearchForm: e2.listCodesInitSearchForm, formNoRuleCode: e2.props ? e2.props.formNoRuleCode : null, judgeHeavyList: w(e2), pageType: e2.pageType, beanName: e2.props ? e2.props.beanName : null, importBeanName: e2.props ? e2.props.importBeanName : null, subTablePageInfo: e2.subTablePageInfo, workflowCode: e2.workflowCode, workflowVersion: e2.workflowVersion, refercePropMap: (_a = e2.runtime) == null ? void 0 : _a.refercePropMap, subTableWatchProps: e2.subTableWatchProps, dataTypeMaps: e2.dataTypeMaps, allChartUuids: e2.allChartUuids, branchFieldAuth: e2.branchFieldAuth, isWorkflowEntityOrg: e2.isWorkflowEntityOrg, entity: { data: {}, task: {}, request: {}, page: {}, context: e2.contextParam, system: e2.systemParam }, propTitleMap: {} };
|
|
51
|
+
if (e2.props && e2.props.notIdInitializationList) {
|
|
52
|
+
let n2 = e2.props.notIdInitializationList;
|
|
53
|
+
"string" == typeof n2 && (n2 = JSON.parse(n2)), n2.length > 0 && (t2.notIdInitializationList = n2);
|
|
54
|
+
}
|
|
55
|
+
if (e2.variables) {
|
|
56
|
+
const n2 = t2.entity.page;
|
|
57
|
+
for (const t3 of e2.variables) t3.name && (t3.isArrayElement ? n2[t3.name] = [] : t3.defaultValue ? n2[t3.name] = t3.defaultValue : n2[t3.name] = void 0);
|
|
58
|
+
}
|
|
59
|
+
return function(e3) {
|
|
60
|
+
if (c()) {
|
|
61
|
+
e3.entity.page._isMobile = "true";
|
|
62
|
+
const t3 = navigator ? navigator.userAgent : null;
|
|
63
|
+
t3 ? t3.indexOf("Html5Plus") > 0 ? (e3.entity.page._isMobileApp = "true", e3.entity.page._isMobileBrowser = "false") : (e3.entity.page._isMobileApp = "false", e3.entity.page._isMobileBrowser = "true") : (e3.entity.page._isMobileApp = "false", e3.entity.page._isMobileBrowser = "false");
|
|
64
|
+
} else e3.entity.page._isMobile = "false";
|
|
65
|
+
}(t2), Object.assign(t2, e2), t2.isWorkflowEntity = void 0 !== ((_b = e2.props) == null ? void 0 : _b.activeWorkflow) ? (_c = e2.props) == null ? void 0 : _c.activeWorkflow : e2.isWorkflowEntity, t2.dimensions = function() {
|
|
66
|
+
const e3 = window.outerWidth;
|
|
67
|
+
if (!e3) return n.PC;
|
|
68
|
+
return e3 > 768 ? n.PC : e3 > 414 ? n.IPAD : n.PHONE;
|
|
69
|
+
}(), t2.events = e2.runtime && e2.runtime.events ? e2.runtime.events : [], t2;
|
|
70
|
+
}
|
|
71
|
+
function h(e2) {
|
|
72
|
+
try {
|
|
73
|
+
const t2 = function(e3) {
|
|
74
|
+
if (!e3) return e3;
|
|
75
|
+
try {
|
|
76
|
+
const t3 = window.CryptoJS.enc.Latin1.parse("qwertyuasdfgh456"), n2 = window.CryptoJS.enc.Latin1.parse("1234567812345678");
|
|
77
|
+
return window.CryptoJS.AES.decrypt(e3, t3, { iv: n2, mode: window.CryptoJS.mode.CBC, padding: window.CryptoJS.pad.ZeroPadding }).toString(CryptoJS.enc.Utf8);
|
|
78
|
+
} catch (t3) {
|
|
79
|
+
return e3;
|
|
80
|
+
}
|
|
81
|
+
}(e2);
|
|
82
|
+
if (!t2) return {};
|
|
83
|
+
return JSON.parse(t2);
|
|
84
|
+
} catch (t2) {
|
|
85
|
+
return e2;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
function w(e2) {
|
|
89
|
+
try {
|
|
90
|
+
return e2.props && e2.props.judgeHeavyList.length > 0 ? (e2.props.judgeHeavyList.forEach((e3) => {
|
|
91
|
+
e3.duplicateFieldList && e3.duplicateFieldList.length > 0 && (e3.duplicateFieldList = e3.duplicateFieldList.map((e4) => "string" == typeof e4 ? { propDbName: e4 } : e4));
|
|
92
|
+
}), e2.props.judgeHeavyList) : null;
|
|
93
|
+
} catch (e3) {
|
|
94
|
+
console.error("getJudgeHeavyList error:", e3);
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
function P(e2) {
|
|
98
|
+
let t2 = decodeURI(window.location.href);
|
|
99
|
+
try {
|
|
100
|
+
window.top && !Array.isArray(window.top) && (t2 = decodeURI(window.top.location.href));
|
|
101
|
+
} catch (e3) {
|
|
102
|
+
}
|
|
103
|
+
if (t2 && t2.includes("?")) {
|
|
104
|
+
t2 = t2.substring(t2.lastIndexOf("?") + 1);
|
|
105
|
+
const n2 = t2.split("&");
|
|
106
|
+
for (const t3 of n2) {
|
|
107
|
+
const n3 = t3.split("=");
|
|
108
|
+
let i2 = n3[0];
|
|
109
|
+
if (i2) {
|
|
110
|
+
const t4 = n3.length > 1 ? n3[1] : "";
|
|
111
|
+
i2.indexOf("ai__") >= 0 && (i2 = i2.substring(i2.indexOf("ai__") + 4)), e2[i2] = t4;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
e2._t_;
|
|
116
|
+
}
|
|
117
|
+
function E(e2, t2, n2) {
|
|
118
|
+
if (e2) {
|
|
119
|
+
Object.assign(t2, e2);
|
|
120
|
+
const i2 = e2.paramStoreId;
|
|
121
|
+
n2 && (e2.dialogParamStoreId = i2), k(i2, t2), delete e2.paramStoreId, e2.jumpMode && (t2.jumpMode = e2.jumpMode);
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
function v(e2, t2) {
|
|
125
|
+
if (e2 && (e2.params && Object.assign(t2, e2.params), e2.query, e2.query)) {
|
|
126
|
+
Object.assign(t2, e2.query);
|
|
127
|
+
k(e2.query.paramStoreId, t2);
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
function k(e2, t2) {
|
|
131
|
+
if (e2) {
|
|
132
|
+
const n2 = a(e2);
|
|
133
|
+
if (n2) {
|
|
134
|
+
const e3 = JSON.parse(n2);
|
|
135
|
+
e3.jumpFrom && (window.jumpFrom = e3.jumpFrom), Object.assign(t2, e3);
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
const A = "__paramStoreIdRegistry__";
|
|
140
|
+
function C(e2) {
|
|
141
|
+
if (!e2) return;
|
|
142
|
+
let t2 = [];
|
|
143
|
+
try {
|
|
144
|
+
const e3 = sessionStorage.getItem(A);
|
|
145
|
+
t2 = e3 ? JSON.parse(e3) : [];
|
|
146
|
+
} catch (e3) {
|
|
147
|
+
t2 = [];
|
|
148
|
+
}
|
|
149
|
+
for (Array.isArray(t2) || (t2 = []), t2 = t2.filter((t3) => t3 !== e2), t2.push(e2); t2.length > 20; ) {
|
|
150
|
+
const n2 = t2.shift();
|
|
151
|
+
n2 && n2 !== e2 && sessionStorage.removeItem(n2);
|
|
152
|
+
}
|
|
153
|
+
sessionStorage.setItem(A, JSON.stringify(t2));
|
|
154
|
+
}
|
|
155
|
+
function I(e2, t2) {
|
|
156
|
+
let n2, i2 = t2;
|
|
157
|
+
t2 || (n2 = e2.props.base ? e2.props.base : {}, i2 = n2.prop);
|
|
158
|
+
let r2 = null;
|
|
159
|
+
return t2 && !t2.startsWith("${") ? r2 = ["data", t2] : !e2 || i2 && i2.startsWith("${") ? i2.startsWith("${") ? (i2 = i2.substring(2, i2.length - 1), r2 = i2.split("."), e2 && r2.length < 2 && (r2 = [e2.uuid])) : e2 && (r2 = ["page", e2.uuid]) : r2 = ["page", e2.uuid], r2 || e2 ? r2 : ["temp"];
|
|
160
|
+
}
|
|
161
|
+
function M(e2, t2, n2) {
|
|
162
|
+
var _a, _b;
|
|
163
|
+
const i2 = I(t2, n2), s2 = e2.entity;
|
|
164
|
+
if (null == s2.data.ID && null == s2.data.id) {
|
|
165
|
+
let n3, o2, a2 = false;
|
|
166
|
+
t2 && (n3 = t2.props.base ? t2.props.base : {}, o2 = t2.name, a2 = n3.multiple);
|
|
167
|
+
const l2 = r(s2, i2);
|
|
168
|
+
if (null == l2) {
|
|
169
|
+
const r2 = n3 ? n3.defaultValue : null, l3 = Boolean((_a = t2 == null ? void 0 : t2.runtime) == null ? void 0 : _a.arrayValue);
|
|
170
|
+
if (r2) try {
|
|
171
|
+
const t3 = S(e2, r2, o2, a2);
|
|
172
|
+
if (j(t3)) O(s2, i2, t3, l3);
|
|
173
|
+
else if (((_b = n3.moreDefaultValue) == null ? void 0 : _b.length) > 0) {
|
|
174
|
+
const t4 = n3.moreDefaultValue;
|
|
175
|
+
for (let n4 = 0; n4 < t4.length; n4++) {
|
|
176
|
+
const r3 = S(e2, t4[n4], o2, a2);
|
|
177
|
+
if (j(r3)) {
|
|
178
|
+
O(s2, i2, r3, l3);
|
|
179
|
+
break;
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
} catch (e3) {
|
|
184
|
+
console.error("设置默认值出错:", i2, e3);
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
return i2;
|
|
189
|
+
}
|
|
190
|
+
function j(e2) {
|
|
191
|
+
return null != e2 && "" !== e2;
|
|
192
|
+
}
|
|
193
|
+
function O(e2, t2, n2, i2) {
|
|
194
|
+
!Array.isArray(n2) || i2 ? o(e2, t2, n2) : o(e2, t2, n2.join(","));
|
|
195
|
+
}
|
|
196
|
+
function S(e2, t2, n2, i2) {
|
|
197
|
+
let r2;
|
|
198
|
+
if (t2 && (r2 = s(e2, t2), null != r2 && null != r2 && n2)) {
|
|
199
|
+
let e3 = false;
|
|
200
|
+
"checkbox" == n2 ? e3 = true : "select" == n2 && (e3 = i2), e3 && (r2 = (r2 + "").split(","));
|
|
201
|
+
}
|
|
202
|
+
return r2;
|
|
203
|
+
}
|
|
204
|
+
function T(e2, t2) {
|
|
205
|
+
var _a, _b;
|
|
206
|
+
if (false === ((_b = (_a = e2.props) == null ? void 0 : _a.base) == null ? void 0 : _b.isPermission)) return "true";
|
|
207
|
+
const n2 = [];
|
|
208
|
+
if (e2.functionCodes && e2.functionCodes.length > 0) {
|
|
209
|
+
const i2 = e2.sourceTypes ? e2.sourceTypes : [], r2 = e2.functionCodes;
|
|
210
|
+
for (let e3 = 0; e3 < r2.length; e3++) {
|
|
211
|
+
const s2 = r2[e3], o2 = e3 < i2.length ? i2[e3] : "";
|
|
212
|
+
let a2 = "";
|
|
213
|
+
if ("service" == o2) a2 = s2;
|
|
214
|
+
else if ("standard" === o2) a2 = t2.code + "." + s2;
|
|
215
|
+
else {
|
|
216
|
+
a2 = "custom" === _(s2, t2).type ? s2 : t2.code + "." + s2;
|
|
217
|
+
}
|
|
218
|
+
n2.includes(a2) || n2.push(a2);
|
|
219
|
+
}
|
|
220
|
+
} else if (e2.autoPermissions) for (const i2 of e2.autoPermissions) n2.push(t2.code + "." + i2.simpleCode);
|
|
221
|
+
return n2.join(",");
|
|
222
|
+
}
|
|
223
|
+
function _(e2, t2) {
|
|
224
|
+
const n2 = t2.pagePermissions;
|
|
225
|
+
if (n2 && n2.length > 0) {
|
|
226
|
+
for (let t3 = 0; t3 < n2.length; t3++) if (n2[t3].simpleCode === e2) return n2[t3];
|
|
227
|
+
}
|
|
228
|
+
return null;
|
|
229
|
+
}
|
|
230
|
+
function R(n2, i2, r2) {
|
|
231
|
+
const s2 = n2.tableRuntimes, o2 = t(i2);
|
|
232
|
+
let a2;
|
|
233
|
+
const l2 = n2.code;
|
|
234
|
+
return o2 && Object.keys(o2) > 0 && (a2 = JSON.stringify(o2)), e.post(window.$vueApp.config.globalProperties.baseAPI + "/component/super-page-design/super-grids", { tableRuntimes: s2, additionalParamMapJson: a2, pageCode: l2, publishVersion: r2, pageType: n2.pageType });
|
|
235
|
+
}
|
|
236
|
+
const x = ["button-detail", "print-label"];
|
|
237
|
+
function F(e2, t2, n2) {
|
|
238
|
+
var _a, _b;
|
|
239
|
+
const r2 = t2.props && t2.props.base ? t2.props.base.prop : null, s2 = u(e2);
|
|
240
|
+
let o2 = false;
|
|
241
|
+
if (s2 && x.indexOf(t2.name) < 0 && e2.fieldPermissionMap) {
|
|
242
|
+
const n3 = e2.fieldPermissionMap.get("all_fields");
|
|
243
|
+
false === (n3 == null ? void 0 : n3.canEdit) && ((_a = t2.runtime) == null ? void 0 : _a.props) && (t2.runtime.props.state = "disabled", o2 = true);
|
|
244
|
+
}
|
|
245
|
+
if (r2) {
|
|
246
|
+
const a2 = i(r2);
|
|
247
|
+
if (e2.rules || (e2.rules = {}), t2.props.rules && t2.props.rules.length > 0 && (e2.rules[a2] || (e2.rules[a2] = []), t2.props.rules.forEach((e3) => {
|
|
248
|
+
d(e3), !n2 && e3 && e3.required && (e3.required = false);
|
|
249
|
+
}), e2.rules[a2] = t2.props.rules), s2 && !o2 && "button-detail" !== t2.name && e2.fieldPermissionMap) {
|
|
250
|
+
const i2 = e2.fieldPermissionMap.get(a2);
|
|
251
|
+
if (!n2 && e2.workflowRules && (e2.workflowRules[a2] || e2.workflowRules.rules && e2.workflowRules.rules[a2])) {
|
|
252
|
+
let t3 = e2.workflowRules[a2];
|
|
253
|
+
if (!t3 && e2.workflowRules.rules && (t3 = e2.workflowRules.rules[a2]), t3 && Array.isArray(t3) && t3.length > 0) for (let e3 = 0; e3 < t3.length; e3++) {
|
|
254
|
+
const n3 = t3[e3];
|
|
255
|
+
if (n3 && n3.required) {
|
|
256
|
+
n3.required = false;
|
|
257
|
+
break;
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
else t3 && t3.required && (t3.required = false);
|
|
261
|
+
}
|
|
262
|
+
t2.runtime.props || (t2.runtime.props = {}), i2 ? (!n2 && i2.canEdit && (i2.canEdit = false), false === i2.canEdit ? t2.runtime.props.state = "disabled" : i2.canEdit && (t2.runtime.props.state = "", t2.runtime.props.required = true)) : t2.runtime.props.state = "";
|
|
263
|
+
}
|
|
264
|
+
((_b = t2.props) == null ? void 0 : _b.customRuleEvents) && (e2.customRuleEvents || (e2.customRuleEvents = []), e2.customRuleEvents.push({ prop: a2, events: t2.props.customRuleEvents }));
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
function V(e2, t2) {
|
|
268
|
+
if (e2.initInfo) {
|
|
269
|
+
["dynamicControlFormEdit", "disableElement", "enableElement", "hideElement", "showElement"].forEach((n2) => {
|
|
270
|
+
const i2 = e2.initInfo[n2];
|
|
271
|
+
if (i2) if ("dynamicControlFormEdit" === n2) {
|
|
272
|
+
let n3 = i2.filter((e3) => "_all_fields" === e3.name || e3.name === t2);
|
|
273
|
+
if (n3 && n3.length > 0 && (n3 = n3.filter((e3) => "_all_fields" === e3.name), n3 && n3.length > 0)) {
|
|
274
|
+
const e3 = p(n3[0]);
|
|
275
|
+
e3.name = t2, n3 = [e3];
|
|
276
|
+
}
|
|
277
|
+
l.dynamicControlFormEdit(e2, n3, false);
|
|
278
|
+
} else "disableElement" === n2 ? i2.indexOf(t2) >= 0 && l.disableElement(e2, [t2], false) : "enableElement" === n2 ? i2.indexOf(t2) >= 0 && l.enableElement(e2, [t2], false) : "hideElement" === n2 ? i2.indexOf(t2) >= 0 && l.hideElement(e2, [t2], false) : "showElement" === n2 && i2.indexOf(t2) >= 0 && l.showElement(e2, [t2], false);
|
|
279
|
+
});
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
export {
|
|
283
|
+
V as controlObjectRenderState,
|
|
284
|
+
b as convertToPageContext,
|
|
285
|
+
S as getDefaultValue,
|
|
286
|
+
M as getFormModelFields,
|
|
287
|
+
I as getModelFields,
|
|
288
|
+
T as getPermissionCodes,
|
|
289
|
+
P as packageAdditionalMapWithLocationSearch,
|
|
290
|
+
E as packageAdditionalMapWithPageRequest,
|
|
291
|
+
v as packageAdditionalMapWithRoute,
|
|
292
|
+
F as packageFormRules,
|
|
293
|
+
f as queryPageDesignByCode,
|
|
294
|
+
m as queryPageDesignWhenPreview,
|
|
295
|
+
R as queryPageSuperGrids,
|
|
296
|
+
C as registerParamStoreId
|
|
297
|
+
};
|
package/dist/es/components/runtime/utils/{page-permission-util.mjs → page-permission-util.js}
RENAMED
|
@@ -1,29 +1,30 @@
|
|
|
1
|
-
var
|
|
2
|
-
const
|
|
3
|
-
function
|
|
4
|
-
return
|
|
1
|
+
var o = ((o2) => (o2.AUTHENTICATED = "AUTHENTICATED", o2.ANONYMOUS = "ANONYMOUS", o2.AUTHORIZED = "AUTHORIZED", o2))(o || {});
|
|
2
|
+
const e = { page: { label: "页面", functions: [{ label: "页面", path: "temp" }] }, gets: { group: "表单标准功能", label: "获取表单数据", functions: [{ funcType: "AUTHENTICATED", path: "/commons/gets$POST" }] }, workflowGets: { group: "标准流程", label: "获取表单及流程数据", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/gets$POST" }] }, save: { group: "表单标准功能", label: "暂存", functions: [{ code: "create", label: "暂存", path: "/commons$POST" }, { code: "update", label: "修改", path: "/commons$POST" }] }, submit: { group: "表单标准功能", label: "提交", functions: [{ path: "/commons/submits$POST" }] }, exportForm: { group: "表单标准功能", label: "导出报告", functions: [{ path: "/commons/export-reports$POST" }] }, exportPDF: { group: "表单标准功能", label: "导出PDF", functions: [{ path: "/commons/exportPDF$POST" }] }, agree: { group: "表单标准功能", label: "同意", functions: [{ path: "/commons/approves$POST" }] }, disagree: { group: "表单标准功能", label: "不同意", functions: [{ path: "/commons/refuses$POST" }] }, back: { group: "表单标准功能", label: "返回", functions: [] }, workflowSave: { group: "流程表单功能", label: "暂存", functions: [{ label: "暂存", code: "save", funcType: "AUTHENTICATED", path: "/workflow-commons$POST" }, { label: "修改", code: "update", funcType: "AUTHENTICATED", path: "/workflow-commons$PUT" }] }, workflowStart: { group: "流程表单功能", label: "起草", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/start$POST" }] }, submitProcess: { group: "流程表单功能", label: "提交流程", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/submit$POST" }] }, submitTask: { group: "流程表单功能", label: "提交任务", functions: [{ funcType: "AUTHENTICATED", code: "completeTask.submit", path: "/workflow-commons/complete-tasks$POST" }] }, approve: { group: "流程表单功能", label: "同意", functions: [{ funcType: "AUTHENTICATED", code: "completeTask.approve", path: "/workflow-commons/complete-tasks$POST" }] }, refuse: { group: "流程表单功能", label: "不同意", functions: [{ funcType: "AUTHENTICATED", code: "completeTask.refuse", path: "/workflow-commons/complete-tasks$POST" }] }, assign: { group: "流程表单功能", label: "指派", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/assigns$POST" }] }, drawTask: { group: "流程表单功能", label: "领取", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/draw-tasks$POST" }] }, abandonReceive: { group: "流程表单功能", label: "放弃领取", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/abandon-receives$POST" }] }, readed: { group: "流程表单功能", label: "已阅", functions: [{ funcType: "AUTHENTICATED", code: "completeTask.readed", path: "/workflow-commons/complete-tasks$POST" }] }, agreement: { group: "流程表单功能", label: "赞成", functions: [{ funcType: "AUTHENTICATED", code: "completeTask.agreement", path: "/workflow-commons/complete-tasks$POST" }] }, oppose: { group: "流程表单功能", label: "反对", functions: [{ funcType: "AUTHENTICATED", code: "completeTask.oppose", path: "/workflow-commons/complete-tasks$POST" }] }, kiken: { group: "流程表单功能", label: "弃权", functions: [{ funcType: "AUTHENTICATED", code: "completeTask.kiken", path: "/workflow-commons/complete-tasks$POST" }] }, addSigner: { group: "流程表单功能", label: "加签", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/add-signers$POST" }] }, removeSigner: { group: "流程表单功能", label: "减签", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/remove-signers$POST" }, { code: "getRemoveSigners", label: "获取可减签人员", funcType: "AUTHENTICATED", path: "/workflow-commons/get-remove-signers$POST" }] }, copyTask: { group: "流程表单功能", label: "抄送", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/copies$POST" }] }, retrieveTask: { group: "流程表单功能", label: "取回", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/retrieves$POST" }] }, returnToPreviousTask: { group: "流程表单功能", label: "驳回", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/return-to-previous-tasks$POST" }] }, returnTaskTo: { group: "流程表单功能", label: "退回", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/returnTaskTo$POST" }, { code: "returnableTaskInformation", label: "获取可退回环节信息", funcType: "AUTHENTICATED", path: "/workflow-commons/returnable-task/{taskId}$POST" }] }, endInstance: { group: "流程表单功能", label: "强制结束", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/end-instance$POST" }] }, extractWorkflow: { group: "流程表单功能", label: "抽单", functions: [{ label: "发起抽单", code: "initiateExtract", funcType: "AUTHENTICATED", path: "/workflow-commons/initiate-extract$POST" }] }, cancelExtractWorkflow: { group: "流程表单功能", label: "取消抽单", functions: [{ label: "取消抽单", code: "cancelExtract", funcType: "AUTHENTICATED", path: "/workflow-commons/cancel-extract$POST" }] }, approveExtractWorkflow: { group: "流程表单功能", label: "同意抽单", functions: [{ label: "同意抽单", code: "approveExtract", funcType: "AUTHENTICATED", path: "/workflow-commons/approve-extract$POST" }] }, refuseExtractWorkflow: { group: "流程表单功能", label: "不同意抽单", functions: [{ label: "不同意抽单", code: "refuseExtract", funcType: "AUTHENTICATED", path: "/workflow-commons/refuse-extract$POST" }] }, listData: { group: "列表功能", label: "列表数据", functions: [{ funcType: "AUTHENTICATED", path: "/commons/list$POST" }] }, listSubData: { group: "列表功能", label: "列表子级", functions: [{ funcType: "AUTHENTICATED", path: "/commons/list-subs$POST" }] }, saveList: { group: "列表功能", label: "暂存", props: { base: { type: "info", plain: true } }, functions: [{ code: "create", label: "暂存", path: "/commons$POST" }, { funcType: "AUTHENTICATED", code: "update", label: "修改", path: "/commons$POST" }] }, delete: { group: "列表功能", label: "删除", props: { base: { type: "danger", plain: true } }, functions: [{ path: "/commons/{tableName}$DELETE" }] }, submitList: { group: "列表功能", label: "提交", props: { base: { type: "primary" } }, functions: [{ path: "/commons/batch-submits$POST" }] }, agreeList: { group: "列表功能", label: "同意", props: { base: { type: "success", plain: true } }, functions: [{ path: "/commons/batch-approves$POST" }] }, disagreeList: { group: "列表功能", label: "不同意", props: { base: { type: "danger", plain: true } }, functions: [{ path: "/commons/batch-refuses$POST" }] }, import: { group: "列表功能", label: "导入", props: { base: { type: "primary", plain: true } }, functions: [{ path: "/commons/import-data$POST" }] }, export: { group: "列表功能", label: "导出", props: { base: { type: "success", plain: true } }, functions: [{ path: "/commons/export-list-data$POST" }] }, search: { group: "列表功能", label: "查询", functions: [] }, showMobileSearch: { group: "列表功能", label: "显示移动端查询区域", functions: [] }, downloadTemplate: { group: "列表功能", label: "下载导入模板", functions: [{ path: "/commons/download-files$GET" }] }, lineEditCreate: { group: "列表行编辑功能", label: "新建", props: { base: { type: "primary" } }, functions: [{ code: "create", label: "暂存", path: "/commons$POST" }] }, lineEditSave: { group: "列表行编辑功能", label: "保存", props: { base: { type: "success", text: true } }, functions: [{ code: "create", label: "保存", path: "/commons$POST" }, { code: "update", label: "修改", path: "/commons$POST" }] }, lineEditDelete: { group: "列表行编辑功能", label: "删除", props: { base: { type: "danger", text: true } }, functions: [{ code: "delete", path: "/commons/{tableName}$DELETE" }] }, lineEditUpdate: { group: "列表行编辑功能", label: "修改", props: { base: { type: "primary", text: true } }, functions: [{ code: "update", label: "修改", path: "/commons$POST" }] }, restoreEdit: { group: "列表行编辑功能", label: "取消", props: { base: { type: "info", text: true } }, functions: [] }, addTransactor: { group: "流程表单功能", label: "增加办理人", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/add-transactors$POST" }] }, removeTransactor: { group: "流程表单功能", label: "减少办理人", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/remove-transactors$POST" }, { code: "getRemoveTransactors", label: "获取可减少办理人员", funcType: "AUTHENTICATED", path: "/workflow-commons/get-remove-transactors$POST" }] } }, t = {};
|
|
3
|
+
function a(o2) {
|
|
4
|
+
return o2 ? e[o2] : void 0;
|
|
5
5
|
}
|
|
6
|
-
function
|
|
7
|
-
if (!
|
|
8
|
-
let
|
|
9
|
-
if (
|
|
10
|
-
for (const
|
|
11
|
-
const
|
|
12
|
-
if (
|
|
13
|
-
for (const
|
|
14
|
-
if (
|
|
15
|
-
|
|
6
|
+
function n(o2) {
|
|
7
|
+
if (!o2) return;
|
|
8
|
+
let a2 = t[o2];
|
|
9
|
+
if (null == a2) {
|
|
10
|
+
for (const t2 in e) {
|
|
11
|
+
const n2 = e[t2].functions;
|
|
12
|
+
if (n2) {
|
|
13
|
+
for (const e2 of n2) {
|
|
14
|
+
if (o2 === (e2.code ? e2.code : t2)) {
|
|
15
|
+
a2 = e2;
|
|
16
16
|
break;
|
|
17
17
|
}
|
|
18
|
-
|
|
18
|
+
}
|
|
19
|
+
if (a2) break;
|
|
19
20
|
}
|
|
20
21
|
}
|
|
21
|
-
|
|
22
|
+
t[o2] = a2 || "";
|
|
22
23
|
}
|
|
23
|
-
return
|
|
24
|
+
return a2 || void 0;
|
|
24
25
|
}
|
|
25
26
|
export {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
o as FuncType,
|
|
28
|
+
n as getFunctionInfo,
|
|
29
|
+
a as getStandPermissionInfo
|
|
29
30
|
};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { ref as e, nextTick as o } from "vue";
|
|
2
|
+
import { defineStore as t } from "pinia";
|
|
3
|
+
import n from "./eventBus.js";
|
|
4
|
+
const u = t("pageContextUtil", () => {
|
|
5
|
+
const t2 = e({ systemCode: "", systemVersion: -1 }), u2 = e(false), a = e(false), i = e(false), l = e([]), r = e(0), s = e(0);
|
|
6
|
+
let v = null, c = -1, d = -1, m = 0;
|
|
7
|
+
function p() {
|
|
8
|
+
v && clearTimeout(v), v = setTimeout(() => {
|
|
9
|
+
o(() => {
|
|
10
|
+
!function() {
|
|
11
|
+
const e2 = r.value, o2 = s.value;
|
|
12
|
+
if (m++, m >= 100) return void (e2 > 0 && e2 === o2 && f(true));
|
|
13
|
+
if (e2 > 0 && e2 === o2) {
|
|
14
|
+
if (e2 === c && o2 === d && !u2.value) return void f(true);
|
|
15
|
+
c = e2, d = o2, p();
|
|
16
|
+
} else c = -1, d = -1, p();
|
|
17
|
+
}();
|
|
18
|
+
});
|
|
19
|
+
}, 100);
|
|
20
|
+
}
|
|
21
|
+
function f(e2) {
|
|
22
|
+
u2.value = e2, C();
|
|
23
|
+
}
|
|
24
|
+
function C() {
|
|
25
|
+
!u2.value || !a.value && "list" !== t2.value.pageType || i.value || (n.$emit("pageLoaded"), i.value = true);
|
|
26
|
+
}
|
|
27
|
+
return { pageContext: t2, setPageContext: function(e2) {
|
|
28
|
+
t2.value = e2;
|
|
29
|
+
}, countComponentsTotalNmber: function() {
|
|
30
|
+
r.value++, u2.value = false, i.value = false;
|
|
31
|
+
}, countComponentsLoadedNumber: function() {
|
|
32
|
+
s.value++, p();
|
|
33
|
+
}, componentsTotalNmber: r, componentsLoadedNumber: s, setPageComponentsLoaded: f, setFormPageDataLoadState: function(e2) {
|
|
34
|
+
a.value = e2, C();
|
|
35
|
+
}, formPageDataLoaded: a, pageComponentsLoaded: u2, restorePageLoadState: function() {
|
|
36
|
+
u2.value = false, a.value = false, i.value = false;
|
|
37
|
+
}, pageLoaded: i, getPageLoaded: function() {
|
|
38
|
+
return i.value;
|
|
39
|
+
}, setPageLoaded: function(e2) {
|
|
40
|
+
i.value = e2;
|
|
41
|
+
}, setAutoAnchorComponentConditions: function(e2, o2) {
|
|
42
|
+
l.value.push({ uuid: e2, conditions: o2 });
|
|
43
|
+
}, getAutoAnchorComponentConditions: function() {
|
|
44
|
+
return l.value;
|
|
45
|
+
}, resetAutoAnchorComponentConditions: function() {
|
|
46
|
+
l.value = [];
|
|
47
|
+
}, resetComponentCounters: function() {
|
|
48
|
+
r.value = 0, s.value = 0, u2.value = false, i.value = false, c = -1, d = -1, m = 0, v && (clearTimeout(v), v = null);
|
|
49
|
+
} };
|
|
50
|
+
});
|
|
51
|
+
export {
|
|
52
|
+
u as usePageContextStore
|
|
53
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import t from "./store.js";
|
|
2
|
+
function o(o2, n, r, s) {
|
|
3
|
+
const c = e(o2, n);
|
|
4
|
+
let f = t.get(c);
|
|
5
|
+
f || (f = {}, t.set(c, f)), f[r] = s;
|
|
6
|
+
}
|
|
7
|
+
function e(t2, o2) {
|
|
8
|
+
return t2 + ":" + o2;
|
|
9
|
+
}
|
|
10
|
+
export {
|
|
11
|
+
e as getPageStoreKey,
|
|
12
|
+
o as setStoreInfo
|
|
13
|
+
};
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { getBaseUrl as t } from "./common-util.js";
|
|
2
|
+
import e from "agilebuilder-ui/src/utils/request";
|
|
3
|
+
import o from "./eventBus.js";
|
|
4
|
+
import { getPermissionCodes as n } from "./page-init-util.js";
|
|
5
|
+
import { getCustomFunc as i } from "./events/event-util.js";
|
|
6
|
+
import { $t as s } from "./i18n-util.js";
|
|
7
|
+
import { ExpressionEvaluator as r } from "../views/assemblys/chart/table/chart-table-util.js";
|
|
8
|
+
import { getFormPropName as u } from "./page-helper-util.js";
|
|
9
|
+
function a(t2) {
|
|
10
|
+
const e2 = t2.pageContext && t2.pageContext.code;
|
|
11
|
+
o.$emit(e2 + "_open-dialog", t2);
|
|
12
|
+
}
|
|
13
|
+
function p(t2, e2) {
|
|
14
|
+
const o2 = t2.tableName;
|
|
15
|
+
if (!e2 && o2) return o2;
|
|
16
|
+
let n2;
|
|
17
|
+
return t2.tableRuntimes && e2 && t2.tableRuntimes[e2] && (n2 = JSON.parse(t2.tableRuntimes[e2].configure)), n2 && n2.props && n2.props.dataOrigin ? n2.props.dataOrigin.tableName : null;
|
|
18
|
+
}
|
|
19
|
+
function l(t2, e2, o2, i2) {
|
|
20
|
+
const r2 = !(!e2.props || !e2.props.base) && e2.props.base.showOperation, u2 = e2.btnList;
|
|
21
|
+
e2.btnList, r2 && u2 && u2.forEach((e3) => {
|
|
22
|
+
const r3 = {}, u3 = Object.assign({}, e3.props.base);
|
|
23
|
+
if ("custom" === e3.name ? u3.customControl = u3.name : u3.elementType = "el-button", void 0 === e3.isPermission || e3.isPermission + "" == "true") {
|
|
24
|
+
const o3 = n(e3, t2);
|
|
25
|
+
o3 && (u3.permission = o3);
|
|
26
|
+
}
|
|
27
|
+
if (u3.label = s(u3.title), u3.sourceButton = { uuid: e3.uuid }, r3.props = u3, void 0 !== i2) {
|
|
28
|
+
const t3 = i2(e3);
|
|
29
|
+
r3.onClick = (t3 == null ? void 0 : t3.onClick) ?? t3, r3.eventName = t3 == null ? void 0 : t3.eventName;
|
|
30
|
+
}
|
|
31
|
+
o2.push(r3);
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
function c(t2, e2, o2, n2) {
|
|
35
|
+
let s2;
|
|
36
|
+
const u2 = o2 == null ? void 0 : o2.some((o3) => {
|
|
37
|
+
let u3 = false;
|
|
38
|
+
if (o3.scopeFunc) {
|
|
39
|
+
const s3 = i(t2, o3.scopeFunc);
|
|
40
|
+
if (s3) {
|
|
41
|
+
s3.apply(s3, [{ pageContext: t2, configureObj: e2, row: n2 }]) && (u3 = true);
|
|
42
|
+
}
|
|
43
|
+
} else if (o3.showCondition && o3.showCondition.length > 0) {
|
|
44
|
+
r.evaluate(t2, o3.showCondition, n2) && (u3 = true);
|
|
45
|
+
} else u3 = true;
|
|
46
|
+
if (u3) return s2 = o3, true;
|
|
47
|
+
});
|
|
48
|
+
return { show: u2, toPage: s2 };
|
|
49
|
+
}
|
|
50
|
+
function m(t2, e2) {
|
|
51
|
+
var _a;
|
|
52
|
+
const o2 = t2.tableName;
|
|
53
|
+
let n2 = "";
|
|
54
|
+
const i2 = (_a = e2 == null ? void 0 : e2.props) == null ? void 0 : _a.base;
|
|
55
|
+
if (i2 && i2.prop) {
|
|
56
|
+
const t3 = i2.prop;
|
|
57
|
+
n2 = u(t3);
|
|
58
|
+
}
|
|
59
|
+
return f(t2, o2, n2);
|
|
60
|
+
}
|
|
61
|
+
function f(t2, e2, o2) {
|
|
62
|
+
if (!o2 || !e2) return true;
|
|
63
|
+
const n2 = t2.branchFieldAuth;
|
|
64
|
+
if (n2) {
|
|
65
|
+
const t3 = n2.hasAuthFields;
|
|
66
|
+
if (t3 && t3[e2] && t3[e2].indexOf(o2) >= 0) return true;
|
|
67
|
+
const i2 = n2.allAuthFields;
|
|
68
|
+
if (i2 && i2[e2] && i2[e2].indexOf(o2) >= 0) return false;
|
|
69
|
+
}
|
|
70
|
+
return true;
|
|
71
|
+
}
|
|
72
|
+
function b(o2, n2, i2) {
|
|
73
|
+
const s2 = t(o2, i2);
|
|
74
|
+
return e.get(s2 + "/common/last-unread-file-task/" + n2);
|
|
75
|
+
}
|
|
76
|
+
function d(o2, n2, i2) {
|
|
77
|
+
const s2 = t(o2, i2);
|
|
78
|
+
return e.put(s2 + "/common/file-task-read/" + n2);
|
|
79
|
+
}
|
|
80
|
+
export {
|
|
81
|
+
c as expressJump,
|
|
82
|
+
b as getCurrentUserFileTasks,
|
|
83
|
+
l as getOperationButtons,
|
|
84
|
+
p as getTableNameByTableUuid,
|
|
85
|
+
m as isHasFieldAuth,
|
|
86
|
+
f as isHasFieldPermissionAuth,
|
|
87
|
+
a as popupToPage,
|
|
88
|
+
d as setFileTaskRead
|
|
89
|
+
};
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { getBaseUrl as e, getRealRestApiPath as t } from "./common-util.js";
|
|
2
|
+
import a from "agilebuilder-ui/src/utils/request";
|
|
3
|
+
import "./eventBus.js";
|
|
4
|
+
import { getPermissionCodes as o } from "./page-init-util.js";
|
|
5
|
+
import "agilebuilder-ui/src/utils/common-util";
|
|
6
|
+
import "agilebuilder-ui/src/utils/util";
|
|
7
|
+
import "element-plus";
|
|
8
|
+
import "agilebuilder-ui/src/utils/auth";
|
|
9
|
+
import "./global-refs.js";
|
|
10
|
+
import "axios";
|
|
11
|
+
import "dayjs";
|
|
12
|
+
import "agilebuilder-ui/src/utils/calculator/calculator-util";
|
|
13
|
+
import "vue";
|
|
14
|
+
import "./events/print-label.js";
|
|
15
|
+
import "./page-store.js";
|
|
16
|
+
import "agilebuilder-ui/src/utils/i18n-util";
|
|
17
|
+
import "vue-i18n";
|
|
18
|
+
import "async-validator";
|
|
19
|
+
function i(i2, r2, s2, n2, p2) {
|
|
20
|
+
return new Promise((s3, n3) => {
|
|
21
|
+
var _a, _b;
|
|
22
|
+
if (r2 && ((_a = r2.props.dataOrigin) == null ? void 0 : _a.optionValueSetType)) if ("beanName" === ((_b = r2.props.dataOrigin) == null ? void 0 : _b.optionValueSetType)) {
|
|
23
|
+
const n4 = i2.backendUrl, m = i2.systemCode, l = o(r2, i2);
|
|
24
|
+
let d = e(n4, i2.isTest) + "/dsc/commons/load-tree-node";
|
|
25
|
+
d = t(d, m, n4, i2.isTest);
|
|
26
|
+
const u = { pageCode: i2.code, pageVersion: i2.version, tableName: i2.tableName, systemCode: m, functionCode: l, beanName: i2.beanName };
|
|
27
|
+
r2.props.dataOrigin.beanName && (u.beanName = r2.props.dataOrigin.beanName), p2 && Object.assign(u, p2), a.post(d, u).then((e2) => {
|
|
28
|
+
s3(e2);
|
|
29
|
+
});
|
|
30
|
+
} else {
|
|
31
|
+
const e2 = (r2.runtime ? r2.runtime : {}).props;
|
|
32
|
+
e2 && e2.staticData ? s3(e2.staticData) : s3([]);
|
|
33
|
+
}
|
|
34
|
+
else s3([]);
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
const r = (t2, o2, i2) => new Promise((r2, s2) => {
|
|
38
|
+
var _a;
|
|
39
|
+
if ("beanName" === ((_a = o2.props.dataOrigin) == null ? void 0 : _a.optionValueSetType)) {
|
|
40
|
+
const s3 = i2.backendUrl, n2 = e(s3, i2.isTest) + "/dsc/commons/tree-node", m = p(false, t2, o2, i2);
|
|
41
|
+
a.delete(n2, { data: m }).then((e2) => {
|
|
42
|
+
r2(e2);
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
}), s = (t2, o2, i2) => new Promise((r2, s2) => {
|
|
46
|
+
var _a;
|
|
47
|
+
if ("beanName" === ((_a = o2.props.dataOrigin) == null ? void 0 : _a.optionValueSetType)) {
|
|
48
|
+
const s3 = i2.backendUrl, n2 = e(s3, i2.isTest) + "/dsc/commons/tree-node", m = p(true, t2, o2, i2);
|
|
49
|
+
a.post(n2, m).then((e2) => {
|
|
50
|
+
r2(e2);
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
}), n = (t2, o2, i2) => new Promise((r2, s2) => {
|
|
54
|
+
var _a;
|
|
55
|
+
if ("beanName" === ((_a = o2.props.dataOrigin) == null ? void 0 : _a.optionValueSetType)) {
|
|
56
|
+
const s3 = i2.backendUrl, n2 = e(s3, i2.isTest) + "/dsc/commons/tree-node";
|
|
57
|
+
a.put(n2, p(false, t2, o2, i2)).then((e2) => {
|
|
58
|
+
r2(e2);
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
function p(e2, t2, a2, o2) {
|
|
63
|
+
const i2 = JSON.parse(JSON.stringify(t2.data));
|
|
64
|
+
e2 && (i2.nodeId = null);
|
|
65
|
+
const r2 = { pageCode: o2.code, pageVersion: o2.version, systemCode: o2.systemCode, beanName: o2.beanName, tableName: a2.props.base.treeTableName, treeLabelProp: a2.props.base.treeLabelProp, treeParentIdProp: a2.props.base.treeParentIdProp, currentNode: i2, parentNode: null };
|
|
66
|
+
return a2.props.dataOrigin.beanName && (r2.beanName = a2.props.dataOrigin.beanName), t2.parent && t2.parent.level > 0 && (r2.parentNode = t2.parent.data), r2;
|
|
67
|
+
}
|
|
68
|
+
export {
|
|
69
|
+
s as createTreeNode,
|
|
70
|
+
r as deleteNode,
|
|
71
|
+
i as getMenuTreeData,
|
|
72
|
+
n as updateTreeNode
|
|
73
|
+
};
|