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,46 @@
|
|
|
1
|
+
import { defineComponent as e, ref as r, onMounted as o, watch as t, openBlock as a, createElementBlock as n, normalizeClass as u, unref as i, normalizeStyle as l, withDirectives as c, createVNode as s, vShow as p } from "vue";
|
|
2
|
+
import { getCustomTheme as f, initChartOption as g, monitorChartClickToVariable as m, clearChartSelected as h, exportCommonChart as d } from "../../../../utils/charts/chart-util.js";
|
|
3
|
+
import { updateChartOption as v } from "../../../../utils/charts/chart-pie-util.js";
|
|
4
|
+
import { doClickJumpPageEvent as x } from "../../../../utils/events/event-util.js";
|
|
5
|
+
import { getChartDatasFromPage as C, updateChartDatasources as R, monitorFieldChange as j } from "../../../../utils/page-helper-util.js";
|
|
6
|
+
import k from "../common/common-chart-header.vue.js";
|
|
7
|
+
import { use as y } from "echarts/core";
|
|
8
|
+
import { CanvasRenderer as b } from "echarts/renderers";
|
|
9
|
+
import { PieChart as D } from "echarts/charts";
|
|
10
|
+
import { GridComponent as I, LegendComponent as V, TitleComponent as _, TooltipComponent as w, ToolboxComponent as P } from "echarts/components";
|
|
11
|
+
import E from "vue-echarts";
|
|
12
|
+
const T = e({ __name: "pie-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: T2 }) {
|
|
13
|
+
y([b, D, I, V, _, w, P]);
|
|
14
|
+
const A = e2, H = r(null), O = r(), S = r(null), U = A.configure.props ? A.configure.props.enableDrill : null, z = A.configure.props ? A.configure.props.drillEndTrigger : null, F = A.configure.props ? A.configure.props.linkPage : null, N = A.configure.runtime ? A.configure.runtime : {}, q = N.style, B = N.class, G = N.dataConfig, J = N.headerInfo ? N.headerInfo : {}, K = N.chartOption, L = A.configure.props ? A.configure.props : {}, M = f(L.customTheme);
|
|
15
|
+
function Q(e3) {
|
|
16
|
+
"clearDrill" == z ? S.value && S.value.closeDrill && S.value.closeDrill(0) : "clickEvent" == z && W(e3);
|
|
17
|
+
}
|
|
18
|
+
function W(e3) {
|
|
19
|
+
F && F.jumpPageUrl && (e3.data, e3.dataIndex, e3.name, e3.seriesId, e3.seriesIndex, e3.seriesName, e3.seriesType, e3.value, x(A.pageContext, A.configure, void 0));
|
|
20
|
+
}
|
|
21
|
+
g(A.configure, K), o(() => {
|
|
22
|
+
const e3 = C(A.pageContext, A.configure);
|
|
23
|
+
e3 && $(e3), !U && A.configure.clickSet && O.value && m(A.pageContext, A.configure, O.value.chart), O.value && (U || F && F.jumpPageUrl) && O.value.chart.on("click", function(e4) {
|
|
24
|
+
U ? S.value && S.value.drill && S.value.drill(e4, A.configure.cacheDatas) : W(e4);
|
|
25
|
+
});
|
|
26
|
+
});
|
|
27
|
+
let X = J.groupValue;
|
|
28
|
+
function Y(e3) {
|
|
29
|
+
G && (true !== e3 && (G.autoRefresh = true), R(A.pageContext, [G], J.drillParams));
|
|
30
|
+
}
|
|
31
|
+
t(J, () => {
|
|
32
|
+
X != J.groupValue && (X = J.groupValue, G && (G.services[0].groupValue = J.groupValue), Y(false));
|
|
33
|
+
});
|
|
34
|
+
const Z = J.monitorFields;
|
|
35
|
+
function $(e3) {
|
|
36
|
+
e3 || (e3 = []), Array.isArray(e3) && (e3 = e3.length > 0 ? e3[0] : {}), e3 || (e3 = {}), e3.hasRender ? e3.hasRender = true : (e3.hasRender = true, G.autoRefresh || (X = e3.groupValue, X && "checkbox" !== J.groupComponent && (X = X.join(",")), J.groupValue = X), G.autoRefresh && U || h(A.pageContext, A.configure, O.value.chart), G.autoRefresh = false, v(A.pageContext, A.configure, K, e3), O.value && O.value.setOption(K, true));
|
|
37
|
+
}
|
|
38
|
+
return j(A.pageContext, Z, () => {
|
|
39
|
+
Y(true);
|
|
40
|
+
}), T2({ updateChartDatas: $, exportChart: function() {
|
|
41
|
+
return d(O.value, J);
|
|
42
|
+
} }), (r2, o2) => (a(), n("div", { style: l(i(q)), class: u([i(B), "amb-widget-chart amb-widget-flex amb-chart-container"]), ref_key: "thisRef", ref: H }, [c(s(k, { ref_key: "headerRef", ref: S, headerInfo: i(J), configure: e2.configure, pageContext: e2.pageContext, onDrillEnd: Q, class: "amb-chart-header" }, null, 8, ["headerInfo", "configure", "pageContext"]), [[p, i(J).showHeader || e2.pageContext.showHomepageSearch]]), s(i(E), { ref_key: "chartRef", ref: O, class: "amb-chart-content", theme: i(M), option: i(K), autoresize: "" }, null, 8, ["theme", "option"])], 6));
|
|
43
|
+
} });
|
|
44
|
+
export {
|
|
45
|
+
T as default
|
|
46
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { defineComponent as e, ref as r, onMounted as t, watch as o, openBlock as a, createElementBlock as n, normalizeClass as s, unref as u, normalizeStyle as i, withDirectives as c, createVNode as p, vShow as m } from "vue";
|
|
2
|
+
import { getCustomTheme as f, initChartOption as h, exportCommonChart as l } from "../../../../utils/charts/chart-util.js";
|
|
3
|
+
import { getChartDatasFromPage as g, updateChartDatasources as d, monitorFieldChange as x } from "../../../../utils/page-helper-util.js";
|
|
4
|
+
import { updateChartOption as C } from "../../../../utils/charts/chart-radar-util.js";
|
|
5
|
+
import v from "../common/common-chart-header.vue.js";
|
|
6
|
+
import { use as y } from "echarts/core";
|
|
7
|
+
import { CanvasRenderer as R } from "echarts/renderers";
|
|
8
|
+
import { RadarChart as b } from "echarts/charts";
|
|
9
|
+
import { GridComponent as V, TitleComponent as _, TooltipComponent as j, ToolboxComponent as w, LegendComponent as I } from "echarts/components";
|
|
10
|
+
import k from "vue-echarts";
|
|
11
|
+
const A = e({ __name: "radar-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: A2 }) {
|
|
12
|
+
y([R, b, V, _, j, w, I]);
|
|
13
|
+
const H = e2, O = r(null), z = r(), D = r(null), F = H.configure.runtime ? H.configure.runtime : {}, P = F.style, S = F.class, T = F.dataConfig, q = F.headerInfo ? F.headerInfo : {}, B = F.chartOption, E = H.configure.props ? H.configure.props : {}, G = f(E.customTheme);
|
|
14
|
+
h(H.configure, B), t(() => {
|
|
15
|
+
const e3 = g(H.pageContext, H.configure);
|
|
16
|
+
e3 && M(e3);
|
|
17
|
+
});
|
|
18
|
+
let J = q.groupValue;
|
|
19
|
+
function K() {
|
|
20
|
+
T && d(H.pageContext, [T], q.drillParams);
|
|
21
|
+
}
|
|
22
|
+
o(q, () => {
|
|
23
|
+
J != q.groupValue && (J = q.groupValue, T && (T.services[0].groupValue = q.groupValue), K());
|
|
24
|
+
});
|
|
25
|
+
const L = q.monitorFields;
|
|
26
|
+
function M(e3) {
|
|
27
|
+
e3 || (e3 = []), Array.isArray(e3) && (e3 = e3.length > 0 ? e3[0] : {}), e3 || (e3 = {}), e3.hasRender ? e3.hasRender = true : (e3.hasRender = true, C(H.pageContext, H.configure, B, e3), z.value && z.value.setOption(B, true));
|
|
28
|
+
}
|
|
29
|
+
return x(H.pageContext, L, K), A2({ updateChartDatas: M, exportChart: function() {
|
|
30
|
+
return l(z.value, q);
|
|
31
|
+
} }), (r2, t2) => (a(), n("div", { style: i(u(P)), class: s([u(S), "amb-widget-chart amb-widget-flex amb-chart-container"]), ref_key: "thisRef", ref: O }, [c(p(v, { ref_key: "headerRef", ref: D, headerInfo: u(q), configure: e2.configure, pageContext: e2.pageContext, class: "amb-chart-header" }, null, 8, ["headerInfo", "configure", "pageContext"]), [[m, u(q).showHeader || e2.pageContext.showHomepageSearch]]), p(u(k), { ref_key: "chartRef", ref: z, class: "amb-chart-content", theme: u(G), option: u(B), autoresize: "" }, null, 8, ["theme", "option"])], 6));
|
|
32
|
+
} });
|
|
33
|
+
export {
|
|
34
|
+
A as default
|
|
35
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { defineComponent as e, ref as r, onMounted as t, watch as o, openBlock as a, createElementBlock as n, normalizeClass as s, unref as c, normalizeStyle as u, withDirectives as i, createVNode as p, vShow as m } from "vue";
|
|
2
|
+
import { getCustomTheme as f, initChartOption as h, exportCommonChart as l } from "../../../../utils/charts/chart-util.js";
|
|
3
|
+
import { getChartDatasFromPage as g, updateChartDatasources as d, monitorFieldChange as x } from "../../../../utils/page-helper-util.js";
|
|
4
|
+
import { updateChartOption as C } from "../../../../utils/charts/chart-scatter-util.js";
|
|
5
|
+
import v from "../common/common-chart-header.vue.js";
|
|
6
|
+
import { use as y } from "echarts/core";
|
|
7
|
+
import { CanvasRenderer as R } from "echarts/renderers";
|
|
8
|
+
import { ScatterChart as b } from "echarts/charts";
|
|
9
|
+
import { GridComponent as V, LegendComponent as _, TitleComponent as j, TooltipComponent as w, ToolboxComponent as I, DataZoomComponent as k } from "echarts/components";
|
|
10
|
+
import A from "vue-echarts";
|
|
11
|
+
const H = e({ __name: "scatter-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: H2 }) {
|
|
12
|
+
y([R, b, V, _, j, w, I, k]);
|
|
13
|
+
const O = e2, z = r(null), D = r(), F = r(null), P = O.configure.runtime ? O.configure.runtime : {}, S = P.style, T = P.class, q = P.dataConfig, B = P.headerInfo ? P.headerInfo : {}, E = P.chartOption, G = O.configure.props ? O.configure.props : {}, J = f(G.customTheme);
|
|
14
|
+
h(O.configure, E), t(() => {
|
|
15
|
+
const e3 = g(O.pageContext, O.configure);
|
|
16
|
+
e3 && N(e3);
|
|
17
|
+
});
|
|
18
|
+
let K = B.groupValue;
|
|
19
|
+
function L() {
|
|
20
|
+
q && d(O.pageContext, [q], B.drillParams);
|
|
21
|
+
}
|
|
22
|
+
o(B, () => {
|
|
23
|
+
K != B.groupValue && (K = B.groupValue, q && (q.services[0].groupValue = B.groupValue), L());
|
|
24
|
+
});
|
|
25
|
+
const M = B.monitorFields;
|
|
26
|
+
function N(e3) {
|
|
27
|
+
e3 || (e3 = []), Array.isArray(e3) && (e3 = e3.length > 0 ? e3[0] : {}), e3 || (e3 = {}), e3.hasRender ? e3.hasRender = true : (e3.hasRender = true, C(O.pageContext, O.configure, E, e3), D.value && D.value.setOption(E, true));
|
|
28
|
+
}
|
|
29
|
+
return x(O.pageContext, M, L), H2({ updateChartDatas: N, exportChart: function() {
|
|
30
|
+
return l(D.value, B);
|
|
31
|
+
} }), (r2, t2) => (a(), n("div", { style: u(c(S)), class: s([c(T), "amb-widget-chart amb-widget-flex amb-chart-container"]), ref_key: "thisRef", ref: z }, [i(p(v, { ref_key: "headerRef", ref: F, headerInfo: c(B), configure: e2.configure, pageContext: e2.pageContext, class: "amb-chart-header" }, null, 8, ["headerInfo", "configure", "pageContext"]), [[m, c(B).showHeader || e2.pageContext.showHomepageSearch]]), p(c(A), { ref_key: "chartRef", ref: D, class: "amb-chart-content", theme: c(J), option: c(E), autoresize: "" }, null, 8, ["theme", "option"])], 6));
|
|
32
|
+
} });
|
|
33
|
+
export {
|
|
34
|
+
H as default
|
|
35
|
+
};
|
|
@@ -0,0 +1,430 @@
|
|
|
1
|
+
import { getParamNames, getValueFromVariable } from "../../../../utils/page-helper-util.js";
|
|
2
|
+
import { getCustomFunc } from "../../../../utils/events/event-util.js";
|
|
3
|
+
import { getMinValue, getMaxValue, getSumValue, getAvgValue } from "../../../../utils/charts/chart-util.js";
|
|
4
|
+
class ExpressionEvaluator {
|
|
5
|
+
static evaluate(e, t, r) {
|
|
6
|
+
if (t && t.length > 0) {
|
|
7
|
+
const e2 = t[t.length - 1];
|
|
8
|
+
e2.joinSign && (e2.joinSign = "");
|
|
9
|
+
}
|
|
10
|
+
const o = t.map((t2) => this.createExpression(e, t2, r)).join(" ");
|
|
11
|
+
return this.evaluateExpression(o);
|
|
12
|
+
}
|
|
13
|
+
static createExpression(e, t, r) {
|
|
14
|
+
const { propName: o, operator: n, propValue: a, leftBracket: s, rightBracket: l, joinSign: i, dataType: c } = t;
|
|
15
|
+
if (!o || "" === o) return "";
|
|
16
|
+
const u = getValueFromVariable(e.entity, o, r);
|
|
17
|
+
let p = `${s} ${this.getComparisonExpression(u, t, getValueFromVariable(e.entity, a, r))} ${l}`;
|
|
18
|
+
return i && ("and" === i || "AND" === i ? p += "&&" : "or" !== i && "OR" !== i || (p += "||")), p.trim();
|
|
19
|
+
}
|
|
20
|
+
static getComparisonExpression(e, t, r) {
|
|
21
|
+
const { dataType: o, variableIsNull: n } = t;
|
|
22
|
+
let a = t.operator;
|
|
23
|
+
a || (a = "EQ");
|
|
24
|
+
let s = this.parseValue(e, o);
|
|
25
|
+
const l = this.parseValue(r, o);
|
|
26
|
+
if (null == l && n) {
|
|
27
|
+
if (null == s && (s = "null"), "null" === n) return `${s} === null`;
|
|
28
|
+
if ("ignore" === n) return "1=1";
|
|
29
|
+
if ("notequal" === n) return "1!=1";
|
|
30
|
+
}
|
|
31
|
+
switch (a) {
|
|
32
|
+
case "EQ":
|
|
33
|
+
return `${s} === ${l}`;
|
|
34
|
+
case "GT":
|
|
35
|
+
return `${s} > ${l}`;
|
|
36
|
+
case "LT":
|
|
37
|
+
return `${s} < ${l}`;
|
|
38
|
+
case "GET":
|
|
39
|
+
return `${s} >= ${l}`;
|
|
40
|
+
case "LET":
|
|
41
|
+
return `${s} <= ${l}`;
|
|
42
|
+
case "NET":
|
|
43
|
+
return `${s} !== ${l}`;
|
|
44
|
+
case "CONTAIN":
|
|
45
|
+
return `${s}.includes(${l})`;
|
|
46
|
+
case "NOT_CONTAIN":
|
|
47
|
+
return `!${s}.includes(${l})`;
|
|
48
|
+
case "IS_NULL":
|
|
49
|
+
return `${s} === null`;
|
|
50
|
+
case "IS_NOT_NULL":
|
|
51
|
+
return `${s} !== null`;
|
|
52
|
+
case "IN":
|
|
53
|
+
if ("TEXT" === o) {
|
|
54
|
+
return `${l.split(",")}.includes(${s})`;
|
|
55
|
+
}
|
|
56
|
+
return `[${l}].includes(${s})`;
|
|
57
|
+
default:
|
|
58
|
+
throw new Error(`比较符号不匹配: ${a}`);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
static changeDataType(e) {
|
|
62
|
+
let t = e;
|
|
63
|
+
if (e) {
|
|
64
|
+
if ("TEXT" === e) t = "string";
|
|
65
|
+
else if ("DATE" === e || "TIME" === e) t = "date";
|
|
66
|
+
else if ("DOUBLE" === e || "FLOAT" === e || "INTEGER" === e || "LONG" === e) t = "number";
|
|
67
|
+
else if ("BOOLEAN" === e) return "boolean";
|
|
68
|
+
}
|
|
69
|
+
return t;
|
|
70
|
+
}
|
|
71
|
+
static parseValue(e, t) {
|
|
72
|
+
if (t = this.changeDataType(t), null == e) return null;
|
|
73
|
+
switch (t) {
|
|
74
|
+
case "number":
|
|
75
|
+
return getNumberValue(e);
|
|
76
|
+
case "date":
|
|
77
|
+
return new Date(e).getTime();
|
|
78
|
+
case "string":
|
|
79
|
+
default:
|
|
80
|
+
return `"${e}"`;
|
|
81
|
+
case "boolean":
|
|
82
|
+
return "true" === e || true === e || 1 === e;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
static evaluateExpression(expression) {
|
|
86
|
+
try {
|
|
87
|
+
return eval(expression);
|
|
88
|
+
} catch (e) {
|
|
89
|
+
return console.error("表达式错误:", expression, e), false;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
function getNumberValue(e) {
|
|
94
|
+
if (isNumber(e)) return Number(e);
|
|
95
|
+
if (e && e.indexOf(",") > 0) {
|
|
96
|
+
const t = e.split(","), r = [];
|
|
97
|
+
for (let e2 = 0; e2 < t.length; e2++) r.push(Number(t[e2]));
|
|
98
|
+
return r;
|
|
99
|
+
}
|
|
100
|
+
return e;
|
|
101
|
+
}
|
|
102
|
+
function isNumber(e) {
|
|
103
|
+
return "number" == typeof e && !isNaN(e);
|
|
104
|
+
}
|
|
105
|
+
function getSummaryTitleColumn(e) {
|
|
106
|
+
var _a;
|
|
107
|
+
const t = {};
|
|
108
|
+
return ((_a = e.props.summaries) == null ? void 0 : _a.titleColumn) && e.props.summaries.titleColumn.length > 0 && e.props.summaries.titleColumn.forEach((e2) => {
|
|
109
|
+
t[e2.prop] = e2;
|
|
110
|
+
}), t;
|
|
111
|
+
}
|
|
112
|
+
function getSummaryDataColumn(e, t) {
|
|
113
|
+
var _a;
|
|
114
|
+
const r = {};
|
|
115
|
+
return ((_a = e.props.summaries) == null ? void 0 : _a.dataColumn) && e.props.summaries.dataColumn.length > 0 && e.props.summaries.dataColumn.forEach((o) => {
|
|
116
|
+
var _a2;
|
|
117
|
+
const n = (_a2 = e.items) == null ? void 0 : _a2.find((e2) => o.prop === e2.props.base.prop);
|
|
118
|
+
n && ("table" === t && n.props.base.tableSummary || "group" === t && n.props.base.groupSummary) && (r[o.prop] = o);
|
|
119
|
+
}), r;
|
|
120
|
+
}
|
|
121
|
+
function summaryStatistics(e, t, r, o, n) {
|
|
122
|
+
let a = "";
|
|
123
|
+
const s = e.summaryMode, l = t.map((e2) => Number(e2[r])).filter((e2) => !Number.isNaN(e2));
|
|
124
|
+
if (l.length > 0) if ("custom" === s) {
|
|
125
|
+
const n2 = getCustomFunc(o, e.customFunc);
|
|
126
|
+
if (n2) try {
|
|
127
|
+
const e2 = n2.apply(n2, [{ data: t, prop: r }]);
|
|
128
|
+
a = e2 ? ` ${e2}` : " N/A";
|
|
129
|
+
} catch (e2) {
|
|
130
|
+
console.error("自定义函数脚本错误:", t, e2);
|
|
131
|
+
}
|
|
132
|
+
else a = " N/A";
|
|
133
|
+
} else switch (s) {
|
|
134
|
+
case "sum":
|
|
135
|
+
a = `${l.reduce((e2, t2) => e2 + t2, 0)}`;
|
|
136
|
+
break;
|
|
137
|
+
case "avg":
|
|
138
|
+
a = "" + l.reduce((e2, t2) => e2 + t2, 0) / l.length;
|
|
139
|
+
break;
|
|
140
|
+
case "min":
|
|
141
|
+
a = `${Math.min(...l)}`;
|
|
142
|
+
break;
|
|
143
|
+
case "max":
|
|
144
|
+
a = `${Math.max(...l)}`;
|
|
145
|
+
break;
|
|
146
|
+
default:
|
|
147
|
+
a = "N/A";
|
|
148
|
+
}
|
|
149
|
+
else a = "N/A";
|
|
150
|
+
if (r && n) {
|
|
151
|
+
const e2 = n.findIndex((e3) => e3.props.base.prop === r);
|
|
152
|
+
if (-1 !== e2 && n[e2].props.format && n[e2].props.format.type) {
|
|
153
|
+
const t2 = {};
|
|
154
|
+
t2[r] = a;
|
|
155
|
+
const s2 = formatColContent(t2, n[e2].props.format, n[e2], o, {});
|
|
156
|
+
Number.isNaN(s2) || (a = ` ${s2}`);
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
return a;
|
|
160
|
+
}
|
|
161
|
+
function replacePlaceholders(e, t) {
|
|
162
|
+
if (e) return e.replace(/\$\{row\.(\w+)\}/g, (e2, r) => Object.prototype.hasOwnProperty.call(t, r) ? t[r] : "");
|
|
163
|
+
}
|
|
164
|
+
function getHeaderCellStyleUtil(e, t, r) {
|
|
165
|
+
var _a;
|
|
166
|
+
const o = {};
|
|
167
|
+
e.column.property && ((_a = t.titleStyle) == null ? void 0 : _a.forEach((t2) => {
|
|
168
|
+
if (t2.field && t2.field.includes(e.column.property)) if (t2.scopeFunc) {
|
|
169
|
+
const n2 = getCustomFunc(r.pageContext, t2.scopeFunc);
|
|
170
|
+
if (n2) try {
|
|
171
|
+
false !== n2.apply(n2, [{ item: t2, data: e }]) && copyStyle(o, t2);
|
|
172
|
+
} catch (r2) {
|
|
173
|
+
console.error("自定义函数脚本错误:", t2, e, r2);
|
|
174
|
+
}
|
|
175
|
+
} else copyStyle(o, t2);
|
|
176
|
+
}));
|
|
177
|
+
const n = getCellStyleUtil(e, t.cellTitleStyle, r);
|
|
178
|
+
return n && Object.assign(o, n), o;
|
|
179
|
+
}
|
|
180
|
+
function getRowStyleUtil(e, t, r) {
|
|
181
|
+
const o = {};
|
|
182
|
+
if (r.configure.style.rowStyle) for (let t2 = 0; t2 < r.configure.style.rowStyle.length; t2++) {
|
|
183
|
+
const n = r.configure.style.rowStyle[t2];
|
|
184
|
+
if (n.scopeFunc) {
|
|
185
|
+
const t3 = getCustomFunc(r.pageContext, n.scopeFunc);
|
|
186
|
+
if (t3) try {
|
|
187
|
+
const r2 = t3.apply(t3, [{ data: e }]);
|
|
188
|
+
null != r2 && false !== r2 && copyStyle(o, n);
|
|
189
|
+
} catch (t4) {
|
|
190
|
+
console.error("自定义函数脚本错误:", e, t4);
|
|
191
|
+
}
|
|
192
|
+
} else if (n.matchingCondition) {
|
|
193
|
+
const t3 = ExpressionEvaluator.evaluate(r.pageContext, n.matchingCondition, e.row);
|
|
194
|
+
(t3 || void 0 === t3) && copyStyle(o, n);
|
|
195
|
+
} else copyStyle(o, n);
|
|
196
|
+
}
|
|
197
|
+
if (t && t.length > 0 && -1 !== t.indexOf(e.rowIndex)) {
|
|
198
|
+
const e2 = {};
|
|
199
|
+
if (r.configure.style.collectStyle && r.configure.style.collectStyle.length > 0) for (let t2 = 0; t2 < r.configure.style.collectStyle.length; t2++) {
|
|
200
|
+
copyStyle(e2, r.configure.style.collectStyle[t2]);
|
|
201
|
+
}
|
|
202
|
+
return 0 === Object.keys(e2).length && (e2["background-color"] = "var(--el-table-row-hover-bg-color)"), e2;
|
|
203
|
+
}
|
|
204
|
+
return o;
|
|
205
|
+
}
|
|
206
|
+
function getCellStyleUtil(e, t, r) {
|
|
207
|
+
const o = {};
|
|
208
|
+
if (t) for (let n = 0; n < t.length; n++) {
|
|
209
|
+
const a = t[n];
|
|
210
|
+
if (isSetStyle(a)) if (a.scopeFunc) {
|
|
211
|
+
const t2 = getCustomFunc(r.pageContext, a.scopeFunc);
|
|
212
|
+
if (t2) try {
|
|
213
|
+
false !== t2.apply(t2, [{ data: e }]) && copyStyle(o, a);
|
|
214
|
+
} catch (t3) {
|
|
215
|
+
console.error("自定义函数脚本错误:", e, t3);
|
|
216
|
+
}
|
|
217
|
+
} else if (a.matchingCondition) {
|
|
218
|
+
const t2 = ExpressionEvaluator.evaluate(r.pageContext, a.matchingCondition, e.row);
|
|
219
|
+
(t2 || void 0 === t2) && copyStyle(o, a);
|
|
220
|
+
} else copyStyle(o, a);
|
|
221
|
+
}
|
|
222
|
+
return o;
|
|
223
|
+
}
|
|
224
|
+
function isSetStyle(e) {
|
|
225
|
+
let t;
|
|
226
|
+
return e.customStyle && (t = JSON.parse(e.customStyle)), !!(e.style && Object.keys(e.style).length > 0 || t && Object.keys(t).length > 0);
|
|
227
|
+
}
|
|
228
|
+
function copyStyle(e, t) {
|
|
229
|
+
Object.assign(e, t.style), t.customStyle && Object.assign(e, JSON.parse(t.customStyle));
|
|
230
|
+
}
|
|
231
|
+
function rowDataToColumn(e, t, r) {
|
|
232
|
+
const o = t.props.dataOrigin.groupField, n = t.props.dataOrigin.rowToColumn.titleColumns, a = t.props.dataOrigin.rowToColumn.dataColumns, s = [], l = {};
|
|
233
|
+
if (o && o.length > 0) e.forEach((e2) => {
|
|
234
|
+
const t2 = o.map((t3) => e2[t3]).join("|");
|
|
235
|
+
if (!l[t2]) {
|
|
236
|
+
const r2 = {};
|
|
237
|
+
o.forEach((t3) => r2[t3] = e2[t3]), l[t2] = r2, s.push(r2);
|
|
238
|
+
}
|
|
239
|
+
a.forEach((r2) => {
|
|
240
|
+
const o2 = `${n.map((t3) => e2[t3]).join("")}${r2}`;
|
|
241
|
+
l[t2][o2] = e2[r2];
|
|
242
|
+
});
|
|
243
|
+
});
|
|
244
|
+
else {
|
|
245
|
+
const t2 = [];
|
|
246
|
+
e.forEach((e2) => {
|
|
247
|
+
n.forEach((r2) => {
|
|
248
|
+
e2[r2] && t2.push(e2[r2]);
|
|
249
|
+
});
|
|
250
|
+
}), a.forEach((t3) => {
|
|
251
|
+
const o2 = {}, a2 = r.find((e2) => {
|
|
252
|
+
var _a, _b;
|
|
253
|
+
return ((_b = (_a = e2.props) == null ? void 0 : _a.base) == null ? void 0 : _b.prop) === t3;
|
|
254
|
+
});
|
|
255
|
+
a2 && (o2.$GroupColumn = a2.props.base.name), e.forEach((e2) => {
|
|
256
|
+
n.forEach((r2) => {
|
|
257
|
+
const n2 = e2[r2];
|
|
258
|
+
if (!n2) return;
|
|
259
|
+
const a3 = e2[t3];
|
|
260
|
+
o2[n2] = a3;
|
|
261
|
+
});
|
|
262
|
+
}), s.push(o2);
|
|
263
|
+
});
|
|
264
|
+
}
|
|
265
|
+
return s;
|
|
266
|
+
}
|
|
267
|
+
function colDataToRow(e, t) {
|
|
268
|
+
const r = t.props.dataOrigin.groupField, o = t.props.dataOrigin.columnToRow.titleColumns, n = t.props.dataOrigin.columnToRow.dataColumns, a = t.props.dataOrigin.columnToRow.transColumns, s = t.props.dataOrigin.columnToRow.dataColumnsMapping;
|
|
269
|
+
if (0 === e.length) return e;
|
|
270
|
+
const l = [], i = groupBy(e, r), c = n.reduce((e2, t2) => t2.columns.length > e2.columns.length ? t2 : e2, n[0]), u = n.reduce((e2, t2) => (t2.columns.forEach((r2) => {
|
|
271
|
+
e2[r2] = t2.prop;
|
|
272
|
+
}), e2), {});
|
|
273
|
+
return i.forEach((e2) => {
|
|
274
|
+
c.columns.forEach((t2) => {
|
|
275
|
+
const i2 = c.prop, p = {};
|
|
276
|
+
if (r.forEach((t3) => {
|
|
277
|
+
p[t3] = e2[t3];
|
|
278
|
+
}), p[i2] = e2[t2], n.length > 1) {
|
|
279
|
+
const r2 = s.find((e3) => e3.props.includes(t2));
|
|
280
|
+
r2 && r2.props.length > 1 && r2.props.forEach((r3) => {
|
|
281
|
+
r3 !== t2 && u[r3] && (p[u[r3]] = e2[r3]);
|
|
282
|
+
});
|
|
283
|
+
}
|
|
284
|
+
o.forEach((e3) => {
|
|
285
|
+
const r2 = a.filter((t3) => t3.relatedTitle === e3.prop);
|
|
286
|
+
let o2 = false;
|
|
287
|
+
r2 && r2.length > 0 && r2.forEach((r3) => {
|
|
288
|
+
if (r3.columns.includes(t2)) return p[e3.prop] = r3.label, void (o2 = true);
|
|
289
|
+
}), o2 || (p[e3.prop] = t2);
|
|
290
|
+
}), l.push(p);
|
|
291
|
+
});
|
|
292
|
+
}), l;
|
|
293
|
+
}
|
|
294
|
+
function getColumnToRowTableConfig(e) {
|
|
295
|
+
const t = e.items, r = e.props.dataOrigin.groupField, o = e.props.dataOrigin.columnToRow.titleColumns, n = e.props.dataOrigin.columnToRow.dataColumns, a = [];
|
|
296
|
+
r && r.length > 0 && r.forEach((e2) => {
|
|
297
|
+
if (t) {
|
|
298
|
+
const r2 = t.find((t2) => t2.props.base.prop === e2);
|
|
299
|
+
r2 && a.push(r2);
|
|
300
|
+
}
|
|
301
|
+
});
|
|
302
|
+
return [...o, ...n].forEach((e2) => {
|
|
303
|
+
if (t) {
|
|
304
|
+
const r2 = t.find((t2) => t2.props.base.prop === e2);
|
|
305
|
+
r2 ? a.push(r2) : a.push({ uuid: (/* @__PURE__ */ new Date()).getTime(), name: "", props: { base: { prop: e2.prop, name: e2.title, sortable: true, headerAlign: "center", align: "center", fixed: false, visible: true, dataType: "string" }, format: {}, size: { pc: {} } }, style: {}, componentIndex: 0, runtime: { common: { class: "", style: { pc_style: {}, pc_class: "" } } } });
|
|
306
|
+
}
|
|
307
|
+
}), a;
|
|
308
|
+
}
|
|
309
|
+
function groupBy(e, t) {
|
|
310
|
+
const r = {};
|
|
311
|
+
return e.forEach((e2) => {
|
|
312
|
+
const o = t.map((t2) => e2[t2]).join("|");
|
|
313
|
+
r[o] || (r[o] = { ...e2, records: [] }, t.forEach((t2, n) => {
|
|
314
|
+
r[o][t2] = e2[t2];
|
|
315
|
+
})), r[o].records.push(e2);
|
|
316
|
+
}), Object.values(r).map((e2) => ({ ...e2, records: void 0 }));
|
|
317
|
+
}
|
|
318
|
+
function getIndexColumn() {
|
|
319
|
+
return { props: { base: { name: "序号", prop: "$index", columnWidth: 80, sortable: true, visible: true, displayOrder: 1, alignTitle: "center", alignContent: "center" } }, events: [], style: { titleFont: {}, contentFont: {}, width: {}, background: {}, tableCell: [{ type: "", model: "" }], conentPadding: {}, tittlePadding: {}, border: {}, shadow: {}, tittleClass: "" } };
|
|
320
|
+
}
|
|
321
|
+
function getNewColumnConfig(e, t, r, o) {
|
|
322
|
+
return { uuid: (/* @__PURE__ */ new Date()).getTime(), name: "", props: { base: { prop: e, name: t, displayOrder: r, sortable: true, headerAlign: "center", align: "center", fixed: false, visible: true, dataType: o }, format: {}, size: { pc: {} } }, style: {}, componentIndex: 0, runtime: { common: { class: "", style: { pc_style: {}, pc_class: "" } } } };
|
|
323
|
+
}
|
|
324
|
+
function computeFormula(itemConfs, datas, entity) {
|
|
325
|
+
Object.keys(itemConfs).forEach((key) => {
|
|
326
|
+
const paramNames = getParamNames(itemConfs[key]);
|
|
327
|
+
datas.forEach((data, index) => {
|
|
328
|
+
const totalValueMap = {};
|
|
329
|
+
for (const e of paramNames) if (e.startsWith("${min.")) totalValueMap[e] = getMinValue(datas, getFieldName(e));
|
|
330
|
+
else if (e.startsWith("${max.")) totalValueMap[e] = getMaxValue(datas, getFieldName(e));
|
|
331
|
+
else if (e.startsWith("${sum.")) totalValueMap[e] = getSumValue(datas, getFieldName(e));
|
|
332
|
+
else if (e.startsWith("${avg.")) totalValueMap[e] = getAvgValue(datas, getFieldName(e));
|
|
333
|
+
else if (e.startsWith("${add.")) {
|
|
334
|
+
const t = getFieldName(e);
|
|
335
|
+
let r = 0;
|
|
336
|
+
try {
|
|
337
|
+
r = Number(data[t]), datas.slice(0, index).forEach((e2) => {
|
|
338
|
+
r += Number(e2[t]);
|
|
339
|
+
});
|
|
340
|
+
} catch (e2) {
|
|
341
|
+
console.error("计算错误:", e2), r = 0;
|
|
342
|
+
}
|
|
343
|
+
totalValueMap[e] = r;
|
|
344
|
+
} else (e.startsWith("${page.") || e.startsWith("${data.") || e.startsWith("${row.") || e.startsWith("${request.") || e.startsWith("${context.") || e.startsWith("${system.") || e.startsWith("${fixed.")) && (totalValueMap[e] = getValueFromVariable(entity, e, data));
|
|
345
|
+
let expr = itemConfs[key];
|
|
346
|
+
Object.keys(totalValueMap).forEach((e) => {
|
|
347
|
+
expr.indexOf(e) > -1 && (expr = expr.replaceAll(e, totalValueMap[e]));
|
|
348
|
+
});
|
|
349
|
+
for (const e of paramNames) expr.indexOf(e) > -1 && (expr = expr.replaceAll(e, 0));
|
|
350
|
+
try {
|
|
351
|
+
data[key] = eval(expr);
|
|
352
|
+
} catch (e) {
|
|
353
|
+
console.error(itemConfs[key] + " 计算错误, 替换后表达式为:" + expr, e), data[key] = 0;
|
|
354
|
+
}
|
|
355
|
+
});
|
|
356
|
+
});
|
|
357
|
+
}
|
|
358
|
+
function getFieldName(e) {
|
|
359
|
+
return e.substring(6, e.length - 1);
|
|
360
|
+
}
|
|
361
|
+
function formatColContent(e, t, r, o, n) {
|
|
362
|
+
const a = e[r.props.base.prop];
|
|
363
|
+
switch (t.type) {
|
|
364
|
+
case "number":
|
|
365
|
+
return formatNumber(a, t);
|
|
366
|
+
case "currency":
|
|
367
|
+
return formatCurrency(a, t);
|
|
368
|
+
case "percent":
|
|
369
|
+
return formatPercent(a, t);
|
|
370
|
+
case "custom":
|
|
371
|
+
return formatCustomFunc(e, t, r, o, n);
|
|
372
|
+
default:
|
|
373
|
+
return a;
|
|
374
|
+
}
|
|
375
|
+
}
|
|
376
|
+
function formatNumber(e, t) {
|
|
377
|
+
let r = e;
|
|
378
|
+
return r || (r = 0), t.scientific && (r = Number(e).toExponential(t.scientificNum)), t.decimalDigit && (r = Number(e).toFixed(t.decimalDigit)), t.thousandsSeparator && (r = r.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",")), t.symbol && (r = `${t.symbol} ${r}`), r;
|
|
379
|
+
}
|
|
380
|
+
function formatCurrency(e, t) {
|
|
381
|
+
let r = e;
|
|
382
|
+
return r || (r = 0), t.decimalDigit && (r = Number(e).toFixed(t.decimalDigit)), t.symbol && (r = `${t.symbol} ${r}`), r;
|
|
383
|
+
}
|
|
384
|
+
function formatPercent(e, t) {
|
|
385
|
+
let r = e;
|
|
386
|
+
return r || (r = 0, e = 0), t.decimalDigit && (r = Number(e).toFixed(t.decimalDigit)), r + " %";
|
|
387
|
+
}
|
|
388
|
+
function formatCustomFunc(e, t, r, o, n) {
|
|
389
|
+
const a = getCustomFunc(o, t.customFunc);
|
|
390
|
+
if (a) {
|
|
391
|
+
try {
|
|
392
|
+
return a.apply(a, [{ pageContext: o, configureObj: n, row: e, prop: r.props.base.prop }]);
|
|
393
|
+
} catch (t2) {
|
|
394
|
+
console.error("自定义函数脚本错误:", e, t2);
|
|
395
|
+
}
|
|
396
|
+
return "";
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
function mergeRowByProperty(e, t, r, o, n) {
|
|
400
|
+
const a = e[o];
|
|
401
|
+
let s = 1, l = true;
|
|
402
|
+
for (let e2 = r - 1; e2 >= 0; e2--) {
|
|
403
|
+
if (n[e2][o] === a) {
|
|
404
|
+
l = false;
|
|
405
|
+
break;
|
|
406
|
+
}
|
|
407
|
+
break;
|
|
408
|
+
}
|
|
409
|
+
if (!l) return [0, 0];
|
|
410
|
+
for (let e2 = r + 1; e2 < n.length && n[e2][o] === a; e2++) s++;
|
|
411
|
+
return [s, 1];
|
|
412
|
+
}
|
|
413
|
+
export {
|
|
414
|
+
ExpressionEvaluator,
|
|
415
|
+
colDataToRow,
|
|
416
|
+
computeFormula,
|
|
417
|
+
formatColContent,
|
|
418
|
+
getCellStyleUtil,
|
|
419
|
+
getColumnToRowTableConfig,
|
|
420
|
+
getHeaderCellStyleUtil,
|
|
421
|
+
getIndexColumn,
|
|
422
|
+
getNewColumnConfig,
|
|
423
|
+
getRowStyleUtil,
|
|
424
|
+
getSummaryDataColumn,
|
|
425
|
+
getSummaryTitleColumn,
|
|
426
|
+
mergeRowByProperty,
|
|
427
|
+
replacePlaceholders,
|
|
428
|
+
rowDataToColumn,
|
|
429
|
+
summaryStatistics
|
|
430
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { defineComponent as e, openBlock as o, createBlock as u } from "vue";
|
|
2
|
+
import t from "./group-column.vue.js";
|
|
3
|
+
const n = e({ __name: "group-column-item", props: { configure: { type: Object, default: () => ({}) }, pageContext: { type: Object, default: () => ({}) }, groupColumnItem: { type: Object, default: () => ({}) }, columnsConfigKeyValues: { type: Object, default: () => ({}) } }, setup: (e2) => (n2, l) => (o(), u(t, { configure: e2.configure, pageContext: e2.pageContext, groupColumn: e2.groupColumnItem, columnsConfigKeyValues: e2.columnsConfigKeyValues }, null, 8, ["configure", "pageContext", "groupColumn", "columnsConfigKeyValues"])) });
|
|
4
|
+
export {
|
|
5
|
+
n as default
|
|
6
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { defineComponent as e, resolveComponent as o, openBlock as n, createBlock as u, withCtx as l, createElementBlock as t, Fragment as r, renderList as c, createCommentVNode as g, createTextVNode as m, toDisplayString as p } from "vue";
|
|
2
|
+
import a from "./normal-column.vue.js";
|
|
3
|
+
import i from "./group-column-item.vue.js";
|
|
4
|
+
const f = e({ __name: "group-column", props: { configure: { type: Object, default: () => ({}) }, pageContext: { type: Object, default: () => ({}) }, groupColumn: { type: Object, default: () => ({}) }, columnsConfigKeyValues: { type: Object, default: () => ({}) } }, setup: (e2) => (f2, C) => {
|
|
5
|
+
const s = o("el-table-column");
|
|
6
|
+
return n(), u(s, { "header-align": "center" }, { header: l(() => [m(p(e2.groupColumn.titleText), 1)]), default: l(() => [e2.groupColumn.children && e2.groupColumn.children.length > 0 ? (n(true), t(r, { key: 0 }, c(e2.groupColumn.children, (o2, l2) => (n(), t(r, { key: l2 }, [o2.children && o2.children.length > 0 ? (n(), u(i, { key: l2, configure: e2.configure, pageContext: e2.pageContext, groupColumnItem: o2, columnsConfigKeyValues: e2.columnsConfigKeyValues }, null, 8, ["configure", "pageContext", "groupColumnItem", "columnsConfigKeyValues"])) : (n(), u(a, { key: 1, pageContext: e2.pageContext, configure: e2.configure, column: e2.columnsConfigKeyValues[o2.columnUuid] }, null, 8, ["pageContext", "configure", "column"]))], 64))), 128)) : g("", true)]), _: 1 });
|
|
7
|
+
} });
|
|
8
|
+
export {
|
|
9
|
+
f as default
|
|
10
|
+
};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { defineComponent as o, ref as e, resolveComponent as t, openBlock as r, createBlock as p, withCtx as l, createElementBlock as s, Fragment as n, createTextVNode as a, toDisplayString as i, resolveDynamicComponent as u, createVNode as m, normalizeClass as c, createCommentVNode as f, createElementVNode as g } from "vue";
|
|
2
|
+
import "agilebuilder-ui/src/utils/common-util";
|
|
3
|
+
import "agilebuilder-ui/src/utils/util";
|
|
4
|
+
import { formatColContent as d } from "./chart-table-util.js";
|
|
5
|
+
import "agilebuilder-ui/src/utils/request";
|
|
6
|
+
import "element-plus";
|
|
7
|
+
import "agilebuilder-ui/src/utils/auth";
|
|
8
|
+
import "../../../../utils/global-refs.js";
|
|
9
|
+
import y from "../../../../utils/eventBus.js";
|
|
10
|
+
import "axios";
|
|
11
|
+
import "dayjs";
|
|
12
|
+
import "agilebuilder-ui/src/utils/calculator/calculator-util";
|
|
13
|
+
import "async-validator";
|
|
14
|
+
import { expressJump as b } from "../../../../utils/table-utils.js";
|
|
15
|
+
import "../../../../utils/events/print-label.js";
|
|
16
|
+
import "../../../../utils/page-store.js";
|
|
17
|
+
import "vue-i18n";
|
|
18
|
+
const k = { key: 0 }, h = { key: 1 }, w = { key: 1 }, x = { key: 2 }, C = o({ __name: "normal-column", props: { configure: { type: Object, default: () => ({}) }, pageContext: { type: Object, default: () => ({}) }, column: { type: Object, default: () => ({}) } }, setup(o2) {
|
|
19
|
+
const C2 = o2, j = e(false);
|
|
20
|
+
let v = null;
|
|
21
|
+
function O(o3, e2, t2, r2) {
|
|
22
|
+
}
|
|
23
|
+
function _(o3) {
|
|
24
|
+
const e2 = b(C2.pageContext, C2.configure, C2.column.linkPage, o3);
|
|
25
|
+
let t2 = false;
|
|
26
|
+
return e2 && (t2 = e2.show, v = e2.toPage), t2;
|
|
27
|
+
}
|
|
28
|
+
function P(o3) {
|
|
29
|
+
if (v) {
|
|
30
|
+
const e2 = C2.pageContext.code + "_", t2 = JSON.parse(JSON.stringify(v));
|
|
31
|
+
t2.base = { successOperation: "closeWindow" };
|
|
32
|
+
const r2 = { id: o3.id ? o3.id : o3.ID, selections: [o3] };
|
|
33
|
+
y.$emit(e2 + "open-dialog", { pageContext: C2.pageContext, configureObj: { props: t2 }, eventParams: r2 });
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
function T(o3, e2) {
|
|
37
|
+
return d(o3, e2, C2.column, C2.pageContext, C2.configure);
|
|
38
|
+
}
|
|
39
|
+
return C2.column.linkPage && C2.column.linkPage.length > 0 && (j.value = true), (e2, d2) => {
|
|
40
|
+
const y2 = t("el-table-column"), b2 = t("el-progress"), C3 = t("el-tag"), v2 = t("el-link");
|
|
41
|
+
return "$index" === o2.column.props.base.prop ? (r(), p(y2, { key: 0, label: o2.column.props.base.name, type: "index", align: "center", "header-align": "center", width: "80" }, null, 8, ["label"])) : (r(), p(y2, { key: 1, prop: o2.column.props.base.prop, width: o2.column.props.base.width ? o2.column.props.base.width : "", "min-width": o2.column.props.base.minWidth ? o2.column.props.base.minWidth : "", label: o2.column.props.base.name, "header-align": o2.column.props.base.headerAlign, align: o2.column.props.base.align, fixed: !!o2.column.props.base.fixed && o2.column.props.base.fixed, formatter: O }, { default: l((e3) => [o2.column.props.format && o2.column.props.format.type ? (r(), s(n, { key: 0 }, [a(i(o2.column.props.format.status) + " ", 1), "customControl" === o2.column.props.format.type ? (r(), p(u(o2.column.props.format.customControl), { key: 0, scope: e3, column: o2.column, configure: o2.configure, pageContext: o2.pageContext }, null, 8, ["scope", "column", "configure", "pageContext"])) : "progress" === o2.column.props.format.type ? (r(), p(b2, { key: 1, type: o2.column.props.format.progressType, percentage: e3.row[o2.column.props.base.prop], status: o2.column.props.format.status, "text-inside": o2.column.props.format.showText, "stroke-width": o2.column.props.format.strokeWidth, color: "custom" === o2.column.props.format.colorType ? o2.column.props.format.color : "" }, null, 8, ["type", "percentage", "status", "text-inside", "stroke-width", "color"])) : "icon" === o2.column.props.format.type ? (r(), s(n, { key: 2 }, [o2.column.props.format.isTag ? (r(), s("span", k, [m(C3, { type: o2.column.props.format.tagType, effect: o2.column.props.format.tagEffect, hit: o2.column.props.format.hit, size: o2.column.props.format.size }, { default: l(() => [a(i(e3.row[o2.column.props.base.prop]), 1)]), _: 2 }, 1032, ["type", "effect", "hit", "size"])])) : (r(), s("span", h, ["pre" === o2.column.props.format.position ? (r(), s("i", { key: 0, class: c(o2.column.props.format.icon) }, null, 2)) : f("", true), g("span", null, i(e3.row[o2.column.props.base.prop]), 1), "suf" === o2.column.props.format.position ? (r(), s("i", { key: 1, class: c(o2.column.props.format.icon) }, null, 2)) : f("", true)]))], 64)) : (r(), s(n, { key: 3 }, [j.value && _(e3.row) ? (r(), p(v2, { key: 0, type: "primary", onClick: (o3) => P(e3.row) }, { default: l(() => [a(i(T(e3.row, o2.column.props.format)), 1)]), _: 2 }, 1032, ["onClick"])) : (r(), s("span", w, i(T(e3.row, o2.column.props.format)), 1))], 64))], 64)) : j.value && _(e3.row) ? (r(), p(v2, { key: 1, type: "primary", onClick: (o3) => P(e3.row) }, { default: l(() => [a(i(e3.row[o2.column.props.base.prop]), 1)]), _: 2 }, 1032, ["onClick"])) : (r(), s("span", x, i(e3.row[o2.column.props.base.prop]), 1))]), _: 1 }, 8, ["prop", "width", "min-width", "label", "header-align", "align", "fixed"]));
|
|
42
|
+
};
|
|
43
|
+
} });
|
|
44
|
+
export {
|
|
45
|
+
C as default
|
|
46
|
+
};
|