super-page-runtime 2.3.22-tmp2 → 2.3.22-tmp4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/_virtual/_plugin-vue_export-helper.mjs +4 -4
- package/dist/es/components/runtime/utils/ai-chat-util.mjs +12 -12
- package/dist/es/components/runtime/utils/anchor-util.mjs +49 -49
- package/dist/es/components/runtime/utils/api/page-expose-util.mjs +142 -147
- package/dist/es/components/runtime/utils/assemblys-config.mjs +12 -13
- package/dist/es/components/runtime/utils/barcode-util.mjs +9 -9
- package/dist/es/components/runtime/utils/charts/chart-columnline-util.mjs +122 -121
- package/dist/es/components/runtime/utils/charts/chart-gauge-util.mjs +32 -32
- package/dist/es/components/runtime/utils/charts/chart-pie-util.mjs +71 -70
- package/dist/es/components/runtime/utils/charts/chart-radar-util.mjs +48 -48
- package/dist/es/components/runtime/utils/charts/chart-scatter-util.mjs +38 -38
- package/dist/es/components/runtime/utils/charts/chart-util.mjs +220 -223
- package/dist/es/components/runtime/utils/common-util.mjs +91 -94
- package/dist/es/components/runtime/utils/eventBus.mjs +3 -3
- package/dist/es/components/runtime/utils/events/event-util.mjs +341 -356
- package/dist/es/components/runtime/utils/events/print-label.mjs +75 -75
- package/dist/es/components/runtime/utils/events/standard-event.mjs +957 -1012
- package/dist/es/components/runtime/utils/events/validator-util.mjs +251 -269
- package/dist/es/components/runtime/utils/form/date-shortcuts.mjs +26 -26
- package/dist/es/components/runtime/utils/form/scan-util.mjs +51 -56
- package/dist/es/components/runtime/utils/global-refs.mjs +52 -53
- package/dist/es/components/runtime/utils/i18n-util.mjs +11 -11
- package/dist/es/components/runtime/utils/interfaces/page-design-types.mjs +2 -2
- package/dist/es/components/runtime/utils/page-helper-util.mjs +246 -255
- package/dist/es/components/runtime/utils/page-init-util.mjs +204 -222
- package/dist/es/components/runtime/utils/page-permission-util.mjs +20 -21
- package/dist/es/components/runtime/utils/page-store.mjs +38 -38
- package/dist/es/components/runtime/utils/store-util.mjs +9 -9
- package/dist/es/components/runtime/utils/table-utils.mjs +69 -74
- package/dist/es/components/runtime/utils/tree-utils.mjs +43 -53
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.mjs +22 -22
- package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.mjs +4 -4
- package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.mjs +16 -16
- package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.mjs +32 -32
- package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.mjs +4 -4
- package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.mjs +15 -16
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.mjs +4 -4
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.mjs +44 -44
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue.mjs +10 -10
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue2.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.mjs +9 -9
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue2.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.mjs +46 -47
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue2.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue.mjs +4 -4
- package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.mjs +39 -46
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.mjs +4 -4
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.mjs +28 -28
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue.mjs +4 -4
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.mjs +37 -37
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue.mjs +4 -4
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.mjs +28 -28
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.mjs +4 -4
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.mjs +28 -28
- package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.mjs +220 -231
- package/dist/es/components/runtime/views/assemblys/chart/table/group-column-item.vue.mjs +4 -4
- package/dist/es/components/runtime/views/assemblys/chart/table/group-column-item.vue2.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/group-column.vue.mjs +7 -7
- package/dist/es/components/runtime/views/assemblys/chart/table/group-column.vue2.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue.mjs +24 -33
- package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue2.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/table-pageination.vue.mjs +10 -10
- package/dist/es/components/runtime/views/assemblys/chart/table/table-pageination.vue2.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.mjs +208 -215
- package/dist/es/components/runtime/views/assemblys/common/event-call-component.vue.mjs +14 -14
- package/dist/es/components/runtime/views/assemblys/common/event-call-component.vue2.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.mjs +28 -29
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue2.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/common/file-task-notice.vue.mjs +24 -26
- package/dist/es/components/runtime/views/assemblys/common/file-task-notice.vue2.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/common/format-file-task-notice-message.vue.mjs +13 -22
- package/dist/es/components/runtime/views/assemblys/common/format-file-task-notice-message.vue2.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.mjs +13 -12
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue2.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-table.vue.mjs +16 -17
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-table.vue2.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/common/remove-transactor-dialog.vue.mjs +14 -13
- package/dist/es/components/runtime/views/assemblys/common/remove-transactor-dialog.vue2.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.mjs +23 -23
- package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue2.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.mjs +13 -13
- package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue2.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue.mjs +4 -4
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.mjs +24 -24
- package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.mjs +15 -16
- package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.mjs +12 -13
- package/dist/es/components/runtime/views/assemblys/container/fixed/FixedBox.vue.mjs +4 -4
- package/dist/es/components/runtime/views/assemblys/container/fixed/FixedBox.vue2.mjs +21 -21
- package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue.mjs +4 -4
- package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.mjs +58 -58
- package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.mjs +18 -18
- package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.mjs +15 -15
- package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.mjs +9 -10
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.mjs +3 -3
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.mjs +79 -79
- package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.mjs +39 -40
- package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.mjs +55 -55
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.mjs +289 -309
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue2.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.mjs +254 -261
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue2.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.mjs +64 -66
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue.mjs +4 -4
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.mjs +109 -111
- package/dist/es/components/runtime/views/assemblys/error-render.vue.mjs +3 -3
- package/dist/es/components/runtime/views/assemblys/error-render.vue2.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.mjs +49 -50
- package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.mjs +31 -33
- package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue2.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.mjs +56 -56
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.mjs +80 -80
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.mjs +45 -45
- package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.mjs +19 -19
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.mjs +60 -60
- package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.mjs +23 -23
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.mjs +67 -68
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue.mjs +4 -4
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.mjs +32 -33
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.mjs +25 -25
- package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.mjs +3 -3
- package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.mjs +11 -11
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.mjs +64 -64
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.mjs +4 -4
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.mjs +154 -158
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.mjs +105 -111
- package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.mjs +12 -12
- package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.mjs +30 -30
- package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.mjs +36 -37
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.mjs +23 -23
- package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.mjs +62 -73
- package/dist/es/components/runtime/views/assemblys/home-chart-render.vue2.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/object-render.vue.mjs +113 -124
- package/dist/es/components/runtime/views/assemblys/object-render.vue2.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/page-bottom.vue.mjs +4 -4
- package/dist/es/components/runtime/views/assemblys/page-bottom.vue2.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue2.mjs +21 -21
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue.mjs +3 -3
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue2.mjs +19 -19
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue.mjs +3 -3
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue2.mjs +29 -29
- package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue2.mjs +16 -16
- package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue2.mjs +18 -18
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.mjs +20 -21
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue2.mjs +15 -15
- package/dist/es/components/runtime/views/home-chart.vue.mjs +38 -39
- package/dist/es/components/runtime/views/home-chart.vue2.mjs +2 -2
- package/dist/es/components/runtime/views/super-page-dialog.vue.mjs +18 -18
- package/dist/es/components/runtime/views/super-page-dialog.vue3.mjs +2 -2
- package/dist/es/components/runtime/views/super-page.vue.mjs +4 -4
- package/dist/es/components/runtime/views/super-page.vue2.mjs +234 -237
- package/dist/es/index.mjs +27 -27
- package/dist/es/style.css +1 -996
- package/package.json +76 -76
- package/dist/es/components/runtime/utils/api/api-util.mjs +0 -4
- package/dist/lib/_virtual/_plugin-vue_export-helper.cjs +0 -6
- package/dist/lib/assets/chart-themes/bar-theme.cjs +0 -2
- package/dist/lib/assets/chart-themes/bar-theme.d.ts +0 -6
- package/dist/lib/assets/chart-themes/gauge-theme.cjs +0 -2
- package/dist/lib/assets/chart-themes/gauge-theme.d.ts +0 -6
- package/dist/lib/assets/chart-themes/pie-theme.cjs +0 -2
- package/dist/lib/assets/chart-themes/pie-theme.d.ts +0 -6
- package/dist/lib/assets/chart-themes/radar-theme.cjs +0 -2
- package/dist/lib/assets/chart-themes/radar-theme.d.ts +0 -6
- package/dist/lib/assets/chart-themes/scatter-theme.cjs +0 -2
- package/dist/lib/assets/chart-themes/scatter-theme.d.ts +0 -6
- package/dist/lib/assets/file.png.cjs +0 -2
- package/dist/lib/assets/folder.png.cjs +0 -2
- package/dist/lib/components/runtime/index.d.ts +0 -5
- package/dist/lib/components/runtime/utils/ai-chat-util.cjs +0 -13
- package/dist/lib/components/runtime/utils/anchor-util.cjs +0 -62
- package/dist/lib/components/runtime/utils/anchor-util.d.ts +0 -13
- package/dist/lib/components/runtime/utils/api/api-util.cjs +0 -3
- package/dist/lib/components/runtime/utils/api/api-util.d.ts +0 -1
- package/dist/lib/components/runtime/utils/api/page-expose-util.cjs +0 -169
- package/dist/lib/components/runtime/utils/api/page-expose-util.d.ts +0 -1
- package/dist/lib/components/runtime/utils/assemblys-config.cjs +0 -16
- package/dist/lib/components/runtime/utils/barcode-util.cjs +0 -10
- package/dist/lib/components/runtime/utils/barcode-util.d.ts +0 -8
- package/dist/lib/components/runtime/utils/charts/chart-columnline-util.cjs +0 -137
- package/dist/lib/components/runtime/utils/charts/chart-gauge-util.cjs +0 -34
- package/dist/lib/components/runtime/utils/charts/chart-pie-util.cjs +0 -78
- package/dist/lib/components/runtime/utils/charts/chart-radar-util.cjs +0 -52
- package/dist/lib/components/runtime/utils/charts/chart-scatter-util.cjs +0 -43
- package/dist/lib/components/runtime/utils/charts/chart-util.cjs +0 -244
- package/dist/lib/components/runtime/utils/charts/chart-util.d.ts +0 -115
- package/dist/lib/components/runtime/utils/common-util.cjs +0 -91
- package/dist/lib/components/runtime/utils/common-util.d.ts +0 -33
- package/dist/lib/components/runtime/utils/eventBus.cjs +0 -3
- package/dist/lib/components/runtime/utils/eventBus.d.ts +0 -7
- package/dist/lib/components/runtime/utils/events/event-util.cjs +0 -345
- package/dist/lib/components/runtime/utils/events/event-util.d.ts +0 -92
- package/dist/lib/components/runtime/utils/events/print-label.cjs +0 -97
- package/dist/lib/components/runtime/utils/events/print-label.d.ts +0 -5
- package/dist/lib/components/runtime/utils/events/standard-event.cjs +0 -1101
- package/dist/lib/components/runtime/utils/events/standard-event.d.ts +0 -99
- package/dist/lib/components/runtime/utils/events/validator-util.cjs +0 -296
- package/dist/lib/components/runtime/utils/events/validator-util.d.ts +0 -25
- package/dist/lib/components/runtime/utils/form/date-shortcuts.cjs +0 -34
- package/dist/lib/components/runtime/utils/form/date-shortcuts.d.ts +0 -7
- package/dist/lib/components/runtime/utils/form/scan-util.cjs +0 -90
- package/dist/lib/components/runtime/utils/global-refs.cjs +0 -42
- package/dist/lib/components/runtime/utils/global-refs.d.ts +0 -65
- package/dist/lib/components/runtime/utils/i18n-util.cjs +0 -11
- package/dist/lib/components/runtime/utils/i18n-util.d.ts +0 -1
- package/dist/lib/components/runtime/utils/interfaces/page-design-types.cjs +0 -4
- package/dist/lib/components/runtime/utils/interfaces/page-design-types.d.ts +0 -247
- package/dist/lib/components/runtime/utils/page-helper-util.cjs +0 -354
- package/dist/lib/components/runtime/utils/page-helper-util.d.ts +0 -174
- package/dist/lib/components/runtime/utils/page-init-util.cjs +0 -244
- package/dist/lib/components/runtime/utils/page-init-util.d.ts +0 -49
- package/dist/lib/components/runtime/utils/page-permission-util.cjs +0 -26
- package/dist/lib/components/runtime/utils/page-permission-util.d.ts +0 -26
- package/dist/lib/components/runtime/utils/page-store.cjs +0 -50
- package/dist/lib/components/runtime/utils/page-store.d.ts +0 -58
- package/dist/lib/components/runtime/utils/store-util.cjs +0 -11
- package/dist/lib/components/runtime/utils/store-util.d.ts +0 -15
- package/dist/lib/components/runtime/utils/store.cjs +0 -3
- package/dist/lib/components/runtime/utils/store.d.ts +0 -2
- package/dist/lib/components/runtime/utils/table-utils.cjs +0 -68
- package/dist/lib/components/runtime/utils/table-utils.d.ts +0 -36
- package/dist/lib/components/runtime/utils/tree-utils.cjs +0 -54
- package/dist/lib/components/runtime/views/assemblys/button/button/button-runtime.vue.cjs +0 -3
- package/dist/lib/components/runtime/views/assemblys/button/button/button-runtime.vue2.cjs +0 -24
- package/dist/lib/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.cjs +0 -5
- package/dist/lib/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.cjs +0 -17
- package/dist/lib/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue.cjs +0 -3
- package/dist/lib/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.cjs +0 -35
- package/dist/lib/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue.cjs +0 -3
- package/dist/lib/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.cjs +0 -3
- package/dist/lib/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue.cjs +0 -3
- package/dist/lib/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.cjs +0 -17
- package/dist/lib/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.cjs +0 -5
- package/dist/lib/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.cjs +0 -41
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue.cjs +0 -11
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue2.cjs +0 -3
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.cjs +0 -11
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue2.cjs +0 -3
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header.vue.cjs +0 -53
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header.vue2.cjs +0 -3
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-homepage-search.vue.cjs +0 -5
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.cjs +0 -48
- package/dist/lib/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.cjs +0 -5
- package/dist/lib/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.cjs +0 -24
- package/dist/lib/components/runtime/views/assemblys/chart/pie/pie-runtime.vue.cjs +0 -5
- package/dist/lib/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.cjs +0 -34
- package/dist/lib/components/runtime/views/assemblys/chart/radar/radar-runtime.vue.cjs +0 -5
- package/dist/lib/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.cjs +0 -24
- package/dist/lib/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.cjs +0 -5
- package/dist/lib/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.cjs +0 -24
- package/dist/lib/components/runtime/views/assemblys/chart/table/chart-table-util.cjs +0 -402
- package/dist/lib/components/runtime/views/assemblys/chart/table/chart-table-util.d.ts +0 -121
- package/dist/lib/components/runtime/views/assemblys/chart/table/group-column-item.vue.cjs +0 -3
- package/dist/lib/components/runtime/views/assemblys/chart/table/group-column-item.vue2.cjs +0 -3
- package/dist/lib/components/runtime/views/assemblys/chart/table/group-column.vue.cjs +0 -6
- package/dist/lib/components/runtime/views/assemblys/chart/table/group-column.vue2.cjs +0 -3
- package/dist/lib/components/runtime/views/assemblys/chart/table/normal-column.vue.cjs +0 -36
- package/dist/lib/components/runtime/views/assemblys/chart/table/normal-column.vue2.cjs +0 -3
- package/dist/lib/components/runtime/views/assemblys/chart/table/table-pageination.vue.cjs +0 -13
- package/dist/lib/components/runtime/views/assemblys/chart/table/table-pageination.vue2.cjs +0 -3
- package/dist/lib/components/runtime/views/assemblys/chart/table/table-runtime.vue.cjs +0 -3
- package/dist/lib/components/runtime/views/assemblys/chart/table/table-runtime.vue2.cjs +0 -249
- package/dist/lib/components/runtime/views/assemblys/common/event-call-component.vue.cjs +0 -16
- package/dist/lib/components/runtime/views/assemblys/common/event-call-component.vue.d.ts +0 -5
- package/dist/lib/components/runtime/views/assemblys/common/event-call-component.vue2.cjs +0 -3
- package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue.cjs +0 -32
- package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue.d.ts +0 -28
- package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue2.cjs +0 -3
- package/dist/lib/components/runtime/views/assemblys/common/file-task-notice.vue.cjs +0 -32
- package/dist/lib/components/runtime/views/assemblys/common/file-task-notice.vue.d.ts +0 -27
- package/dist/lib/components/runtime/views/assemblys/common/file-task-notice.vue2.cjs +0 -3
- package/dist/lib/components/runtime/views/assemblys/common/format-file-task-notice-message.vue.cjs +0 -19
- package/dist/lib/components/runtime/views/assemblys/common/format-file-task-notice-message.vue.d.ts +0 -59
- package/dist/lib/components/runtime/views/assemblys/common/format-file-task-notice-message.vue2.cjs +0 -3
- package/dist/lib/components/runtime/views/assemblys/common/remove-signer-dialog.vue.cjs +0 -12
- package/dist/lib/components/runtime/views/assemblys/common/remove-signer-dialog.vue.d.ts +0 -35
- package/dist/lib/components/runtime/views/assemblys/common/remove-signer-dialog.vue2.cjs +0 -3
- package/dist/lib/components/runtime/views/assemblys/common/remove-signer-table.vue.cjs +0 -21
- package/dist/lib/components/runtime/views/assemblys/common/remove-signer-table.vue.d.ts +0 -26
- package/dist/lib/components/runtime/views/assemblys/common/remove-signer-table.vue2.cjs +0 -3
- package/dist/lib/components/runtime/views/assemblys/common/remove-transactor-dialog.vue.cjs +0 -13
- package/dist/lib/components/runtime/views/assemblys/common/remove-transactor-dialog.vue.d.ts +0 -35
- package/dist/lib/components/runtime/views/assemblys/common/remove-transactor-dialog.vue2.cjs +0 -3
- package/dist/lib/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.cjs +0 -30
- package/dist/lib/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.d.ts +0 -31
- package/dist/lib/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue2.cjs +0 -3
- package/dist/lib/components/runtime/views/assemblys/common/task-informition-dialog.vue.cjs +0 -15
- package/dist/lib/components/runtime/views/assemblys/common/task-informition-dialog.vue.d.ts +0 -26
- package/dist/lib/components/runtime/views/assemblys/common/task-informition-dialog.vue2.cjs +0 -3
- package/dist/lib/components/runtime/views/assemblys/container/card/card-runtime.vue.cjs +0 -5
- package/dist/lib/components/runtime/views/assemblys/container/card/card-runtime.vue2.cjs +0 -21
- package/dist/lib/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue.cjs +0 -3
- package/dist/lib/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.cjs +0 -17
- package/dist/lib/components/runtime/views/assemblys/container/container/container-runtime.vue.cjs +0 -3
- package/dist/lib/components/runtime/views/assemblys/container/container/container-runtime.vue2.cjs +0 -15
- package/dist/lib/components/runtime/views/assemblys/container/fixed/FixedBox.vue.cjs +0 -5
- package/dist/lib/components/runtime/views/assemblys/container/fixed/FixedBox.vue2.cjs +0 -27
- package/dist/lib/components/runtime/views/assemblys/container/fixed/YxAffix.vue.cjs +0 -5
- package/dist/lib/components/runtime/views/assemblys/container/fixed/YxAffix.vue.d.ts +0 -94
- package/dist/lib/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.cjs +0 -79
- package/dist/lib/components/runtime/views/assemblys/container/flex/flex-runtime.vue.cjs +0 -3
- package/dist/lib/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.cjs +0 -20
- package/dist/lib/components/runtime/views/assemblys/container/form/form-runtime.vue.cjs +0 -3
- package/dist/lib/components/runtime/views/assemblys/container/form/form-runtime.vue2.cjs +0 -15
- package/dist/lib/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue.cjs +0 -3
- package/dist/lib/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.cjs +0 -12
- package/dist/lib/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.cjs +0 -5
- package/dist/lib/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.cjs +0 -88
- package/dist/lib/components/runtime/views/assemblys/container/tools/tools-runtime.vue.cjs +0 -5
- package/dist/lib/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.cjs +0 -43
- package/dist/lib/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue.cjs +0 -3
- package/dist/lib/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.cjs +0 -59
- package/dist/lib/components/runtime/views/assemblys/data/table/main-table-runtime.vue.cjs +0 -382
- package/dist/lib/components/runtime/views/assemblys/data/table/main-table-runtime.vue2.cjs +0 -3
- package/dist/lib/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.cjs +0 -322
- package/dist/lib/components/runtime/views/assemblys/data/table/sub-table-runtime.vue2.cjs +0 -3
- package/dist/lib/components/runtime/views/assemblys/data/table/table-runtime.vue.cjs +0 -3
- package/dist/lib/components/runtime/views/assemblys/data/table/table-runtime.vue2.cjs +0 -81
- package/dist/lib/components/runtime/views/assemblys/data/tree/tree-runtime.vue.cjs +0 -5
- package/dist/lib/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.cjs +0 -124
- package/dist/lib/components/runtime/views/assemblys/error-render.vue.cjs +0 -3
- package/dist/lib/components/runtime/views/assemblys/error-render.vue.d.ts +0 -22
- package/dist/lib/components/runtime/views/assemblys/error-render.vue2.cjs +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue.cjs +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.cjs +0 -57
- package/dist/lib/components/runtime/views/assemblys/form/common/title-suffix-element.vue.cjs +0 -35
- package/dist/lib/components/runtime/views/assemblys/form/common/title-suffix-element.vue2.cjs +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/custom/custom-runtime.vue.cjs +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.cjs +0 -57
- package/dist/lib/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue.cjs +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.cjs +0 -91
- package/dist/lib/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue.cjs +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.cjs +0 -47
- package/dist/lib/components/runtime/views/assemblys/form/divider/divider-runtime.vue.cjs +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.cjs +0 -20
- package/dist/lib/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue.cjs +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.cjs +0 -65
- package/dist/lib/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue.cjs +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.cjs +0 -20
- package/dist/lib/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue.cjs +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.cjs +0 -70
- package/dist/lib/components/runtime/views/assemblys/form/label/label-runtime.vue.cjs +0 -5
- package/dist/lib/components/runtime/views/assemblys/form/label/label-runtime.vue2.cjs +0 -31
- package/dist/lib/components/runtime/views/assemblys/form/link/link-runtime.vue.cjs +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/link/link-runtime.vue2.cjs +0 -26
- package/dist/lib/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.cjs +0 -5
- package/dist/lib/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.cjs +0 -13
- package/dist/lib/components/runtime/views/assemblys/form/radio/radio-runtime.vue.cjs +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.cjs +0 -75
- package/dist/lib/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.cjs +0 -5
- package/dist/lib/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.cjs +0 -188
- package/dist/lib/components/runtime/views/assemblys/form/select/select-runtime.vue.cjs +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/select/select-runtime.vue2.cjs +0 -130
- package/dist/lib/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue.cjs +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.cjs +0 -11
- package/dist/lib/components/runtime/views/assemblys/form/switch/switch-runtime.vue.cjs +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.cjs +0 -29
- package/dist/lib/components/runtime/views/assemblys/form/tag/tag-runtime.vue.cjs +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.cjs +0 -38
- package/dist/lib/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue.cjs +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.cjs +0 -20
- package/dist/lib/components/runtime/views/assemblys/home-chart-render.vue.cjs +0 -73
- package/dist/lib/components/runtime/views/assemblys/home-chart-render.vue.d.ts +0 -17
- package/dist/lib/components/runtime/views/assemblys/home-chart-render.vue2.cjs +0 -3
- package/dist/lib/components/runtime/views/assemblys/object-render.vue.cjs +0 -132
- package/dist/lib/components/runtime/views/assemblys/object-render.vue.d.ts +0 -17
- package/dist/lib/components/runtime/views/assemblys/object-render.vue2.cjs +0 -3
- package/dist/lib/components/runtime/views/assemblys/page-bottom.vue.cjs +0 -3
- package/dist/lib/components/runtime/views/assemblys/page-bottom.vue.d.ts +0 -14
- package/dist/lib/components/runtime/views/assemblys/page-bottom.vue2.cjs +0 -3
- package/dist/lib/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue.cjs +0 -5
- package/dist/lib/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue.d.ts +0 -14
- package/dist/lib/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue2.cjs +0 -23
- package/dist/lib/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue.cjs +0 -5
- package/dist/lib/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue2.cjs +0 -23
- package/dist/lib/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue.cjs +0 -5
- package/dist/lib/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue2.cjs +0 -34
- package/dist/lib/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue.cjs +0 -3
- package/dist/lib/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue2.cjs +0 -17
- package/dist/lib/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue.cjs +0 -3
- package/dist/lib/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue2.cjs +0 -20
- package/dist/lib/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.cjs +0 -5
- package/dist/lib/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.cjs +0 -19
- package/dist/lib/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue.cjs +0 -3
- package/dist/lib/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue2.cjs +0 -14
- package/dist/lib/components/runtime/views/home-chart.vue.cjs +0 -38
- package/dist/lib/components/runtime/views/home-chart.vue.d.ts +0 -23
- package/dist/lib/components/runtime/views/home-chart.vue2.cjs +0 -3
- package/dist/lib/components/runtime/views/super-page-dialog.vue.cjs +0 -23
- package/dist/lib/components/runtime/views/super-page-dialog.vue.d.ts +0 -40
- package/dist/lib/components/runtime/views/super-page-dialog.vue3.cjs +0 -3
- package/dist/lib/components/runtime/views/super-page.vue.cjs +0 -5
- package/dist/lib/components/runtime/views/super-page.vue.d.ts +0 -135
- package/dist/lib/components/runtime/views/super-page.vue2.cjs +0 -264
- package/dist/lib/favicon.ico +0 -0
- package/dist/lib/i18n/langs/cn.cjs +0 -2
- package/dist/lib/i18n/langs/en.cjs +0 -2
- package/dist/lib/index.cjs +0 -6
- package/dist/lib/index.d.ts +0 -16
- package/dist/lib/style.css +0 -996
- package/dist/umd/favicon.ico +0 -0
- package/dist/umd/index.full.min.js +0 -7429
- package/dist/umd/style.css +0 -996
|
@@ -2,74 +2,71 @@ import { getParamNames, getValueFromVariable } from "../../../../utils/page-help
|
|
|
2
2
|
import { getCustomFunc } from "../../../../utils/events/event-util.mjs";
|
|
3
3
|
import { getMinValue, getMaxValue, getSumValue, getAvgValue } from "../../../../utils/charts/chart-util.mjs";
|
|
4
4
|
class ExpressionEvaluator {
|
|
5
|
-
static evaluate(e, t,
|
|
5
|
+
static evaluate(e, t, o) {
|
|
6
6
|
if (t && t.length > 0) {
|
|
7
|
-
const
|
|
8
|
-
|
|
7
|
+
const a = t[t.length - 1];
|
|
8
|
+
a.joinSign && (a.joinSign = "");
|
|
9
9
|
}
|
|
10
|
-
const
|
|
11
|
-
return this.evaluateExpression(
|
|
10
|
+
const r = t.map((a) => this.createExpression(e, a, o)).join(" ");
|
|
11
|
+
return this.evaluateExpression(r);
|
|
12
12
|
}
|
|
13
|
-
static createExpression(e, t,
|
|
14
|
-
const { propName:
|
|
15
|
-
if (!
|
|
16
|
-
const
|
|
17
|
-
let p = `${s} ${this.getComparisonExpression(
|
|
18
|
-
return
|
|
13
|
+
static createExpression(e, t, o) {
|
|
14
|
+
const { propName: r, propValue: a, leftBracket: s, rightBracket: n, joinSign: l } = t;
|
|
15
|
+
if (!r || r === "") return "";
|
|
16
|
+
const i = getValueFromVariable(e.entity, r, o);
|
|
17
|
+
let p = `${s} ${this.getComparisonExpression(i, t, getValueFromVariable(e.entity, a, o))} ${n}`;
|
|
18
|
+
return l && (l === "and" || l === "AND" ? p += "&&" : l !== "or" && l !== "OR" || (p += "||")), p.trim();
|
|
19
19
|
}
|
|
20
|
-
static getComparisonExpression(e, t,
|
|
21
|
-
const { dataType:
|
|
22
|
-
let
|
|
23
|
-
|
|
24
|
-
let
|
|
25
|
-
const l = this.parseValue(
|
|
26
|
-
if (
|
|
27
|
-
if (
|
|
28
|
-
if ("ignore"
|
|
29
|
-
if ("notequal"
|
|
20
|
+
static getComparisonExpression(e, t, o) {
|
|
21
|
+
const { dataType: r, variableIsNull: a } = t;
|
|
22
|
+
let s = t.operator;
|
|
23
|
+
s || (s = "EQ");
|
|
24
|
+
let n = this.parseValue(e, r);
|
|
25
|
+
const l = this.parseValue(o, r);
|
|
26
|
+
if (l == null && a) {
|
|
27
|
+
if (n == null && (n = "null"), a === "null") return `${n} === null`;
|
|
28
|
+
if (a === "ignore") return "1=1";
|
|
29
|
+
if (a === "notequal") return "1!=1";
|
|
30
30
|
}
|
|
31
|
-
switch (
|
|
31
|
+
switch (s) {
|
|
32
32
|
case "EQ":
|
|
33
|
-
return `${
|
|
33
|
+
return `${n} === ${l}`;
|
|
34
34
|
case "GT":
|
|
35
|
-
return `${
|
|
35
|
+
return `${n} > ${l}`;
|
|
36
36
|
case "LT":
|
|
37
|
-
return `${
|
|
37
|
+
return `${n} < ${l}`;
|
|
38
38
|
case "GET":
|
|
39
|
-
return `${
|
|
39
|
+
return `${n} >= ${l}`;
|
|
40
40
|
case "LET":
|
|
41
|
-
return `${
|
|
41
|
+
return `${n} <= ${l}`;
|
|
42
42
|
case "NET":
|
|
43
|
-
return `${
|
|
43
|
+
return `${n} !== ${l}`;
|
|
44
44
|
case "CONTAIN":
|
|
45
|
-
return `${
|
|
45
|
+
return `${n}.includes(${l})`;
|
|
46
46
|
case "NOT_CONTAIN":
|
|
47
|
-
return `!${
|
|
47
|
+
return `!${n}.includes(${l})`;
|
|
48
48
|
case "IS_NULL":
|
|
49
|
-
return `${
|
|
49
|
+
return `${n} === null`;
|
|
50
50
|
case "IS_NOT_NULL":
|
|
51
|
-
return `${
|
|
51
|
+
return `${n} !== null`;
|
|
52
52
|
case "IN":
|
|
53
|
-
|
|
54
|
-
return `${l.split(",")}.includes(${s})`;
|
|
55
|
-
}
|
|
56
|
-
return `[${l}].includes(${s})`;
|
|
53
|
+
return r === "TEXT" ? `${l.split(",")}.includes(${n})` : `[${l}].includes(${n})`;
|
|
57
54
|
default:
|
|
58
|
-
throw new Error(`比较符号不匹配: ${
|
|
55
|
+
throw new Error(`比较符号不匹配: ${s}`);
|
|
59
56
|
}
|
|
60
57
|
}
|
|
61
58
|
static changeDataType(e) {
|
|
62
59
|
let t = e;
|
|
63
60
|
if (e) {
|
|
64
|
-
if ("TEXT"
|
|
65
|
-
else if ("DATE"
|
|
66
|
-
else if ("DOUBLE"
|
|
67
|
-
else if ("BOOLEAN"
|
|
61
|
+
if (e === "TEXT") t = "string";
|
|
62
|
+
else if (e === "DATE" || e === "TIME") t = "date";
|
|
63
|
+
else if (e === "DOUBLE" || e === "FLOAT" || e === "INTEGER" || e === "LONG") t = "number";
|
|
64
|
+
else if (e === "BOOLEAN") return "boolean";
|
|
68
65
|
}
|
|
69
66
|
return t;
|
|
70
67
|
}
|
|
71
68
|
static parseValue(e, t) {
|
|
72
|
-
if (t = this.changeDataType(t),
|
|
69
|
+
if (t = this.changeDataType(t), e == null) return null;
|
|
73
70
|
switch (t) {
|
|
74
71
|
case "number":
|
|
75
72
|
return getNumberValue(e);
|
|
@@ -79,138 +76,137 @@ class ExpressionEvaluator {
|
|
|
79
76
|
default:
|
|
80
77
|
return `"${e}"`;
|
|
81
78
|
case "boolean":
|
|
82
|
-
return "true"
|
|
79
|
+
return e === "true" || e === !0 || e === 1;
|
|
83
80
|
}
|
|
84
81
|
}
|
|
85
82
|
static evaluateExpression(expression) {
|
|
86
83
|
try {
|
|
87
84
|
return eval(expression);
|
|
88
85
|
} catch (e) {
|
|
89
|
-
return console.error("表达式错误:", expression, e),
|
|
86
|
+
return console.error("表达式错误:", expression, e), !1;
|
|
90
87
|
}
|
|
91
88
|
}
|
|
92
89
|
}
|
|
93
90
|
function getNumberValue(e) {
|
|
94
91
|
if (isNumber(e)) return Number(e);
|
|
95
92
|
if (e && e.indexOf(",") > 0) {
|
|
96
|
-
const t = e.split(","),
|
|
97
|
-
for (let
|
|
98
|
-
return
|
|
93
|
+
const t = e.split(","), o = [];
|
|
94
|
+
for (let r = 0; r < t.length; r++) o.push(Number(t[r]));
|
|
95
|
+
return o;
|
|
99
96
|
}
|
|
100
97
|
return e;
|
|
101
98
|
}
|
|
102
99
|
function isNumber(e) {
|
|
103
|
-
return "number"
|
|
100
|
+
return typeof e == "number" && !isNaN(e);
|
|
104
101
|
}
|
|
105
102
|
function getSummaryTitleColumn(e) {
|
|
106
|
-
var
|
|
103
|
+
var o;
|
|
107
104
|
const t = {};
|
|
108
|
-
return (
|
|
109
|
-
t[
|
|
105
|
+
return (o = e.props.summaries) != null && o.titleColumn && e.props.summaries.titleColumn.length > 0 && e.props.summaries.titleColumn.forEach((r) => {
|
|
106
|
+
t[r.prop] = r;
|
|
110
107
|
}), t;
|
|
111
108
|
}
|
|
112
109
|
function getSummaryDataColumn(e, t) {
|
|
113
|
-
var
|
|
114
|
-
const
|
|
115
|
-
return (
|
|
116
|
-
var
|
|
117
|
-
const
|
|
118
|
-
|
|
119
|
-
}),
|
|
110
|
+
var r;
|
|
111
|
+
const o = {};
|
|
112
|
+
return (r = e.props.summaries) != null && r.dataColumn && e.props.summaries.dataColumn.length > 0 && e.props.summaries.dataColumn.forEach((a) => {
|
|
113
|
+
var n;
|
|
114
|
+
const s = (n = e.items) == null ? void 0 : n.find((l) => a.prop === l.props.base.prop);
|
|
115
|
+
s && (t === "table" && s.props.base.tableSummary || t === "group" && s.props.base.groupSummary) && (o[a.prop] = a);
|
|
116
|
+
}), o;
|
|
120
117
|
}
|
|
121
|
-
function summaryStatistics(e, t,
|
|
122
|
-
let
|
|
123
|
-
const
|
|
124
|
-
if (
|
|
125
|
-
const
|
|
126
|
-
if (
|
|
127
|
-
const
|
|
128
|
-
|
|
129
|
-
} catch (
|
|
130
|
-
console.error("自定义函数脚本错误:", t,
|
|
118
|
+
function summaryStatistics(e, t, o, r) {
|
|
119
|
+
let a = "";
|
|
120
|
+
const s = e.summaryMode, n = t.map((l) => Number(l[o])).filter((l) => !Number.isNaN(l));
|
|
121
|
+
if (n.length > 0) if (s === "custom") {
|
|
122
|
+
const l = getCustomFunc(r, e.customFunc);
|
|
123
|
+
if (l) try {
|
|
124
|
+
const i = l.apply(l, [{ data: t, prop: o }]);
|
|
125
|
+
a = i ? ` ${i}` : " N/A";
|
|
126
|
+
} catch (i) {
|
|
127
|
+
console.error("自定义函数脚本错误:", t, i);
|
|
131
128
|
}
|
|
132
|
-
else
|
|
133
|
-
} else switch (
|
|
129
|
+
else a = " N/A";
|
|
130
|
+
} else switch (s) {
|
|
134
131
|
case "sum":
|
|
135
|
-
|
|
132
|
+
a = ` ${n.reduce((l, i) => l + i, 0)}`;
|
|
136
133
|
break;
|
|
137
134
|
case "avg":
|
|
138
|
-
|
|
135
|
+
a = " " + n.reduce((l, i) => l + i, 0) / n.length;
|
|
139
136
|
break;
|
|
140
137
|
case "min":
|
|
141
|
-
|
|
138
|
+
a = ` ${Math.min(...n)}`;
|
|
142
139
|
break;
|
|
143
140
|
case "max":
|
|
144
|
-
|
|
141
|
+
a = ` ${Math.max(...n)}`;
|
|
145
142
|
break;
|
|
146
143
|
default:
|
|
147
|
-
|
|
144
|
+
a = " N/A";
|
|
148
145
|
}
|
|
149
|
-
else
|
|
150
|
-
return
|
|
146
|
+
else a = " N/A";
|
|
147
|
+
return a;
|
|
151
148
|
}
|
|
152
149
|
function replacePlaceholders(e, t) {
|
|
153
|
-
if (e) return e.replace(/\$\{row\.(\w+)\}/g, (
|
|
150
|
+
if (e) return e.replace(/\$\{row\.(\w+)\}/g, (o, r) => Object.prototype.hasOwnProperty.call(t, r) ? t[r] : "");
|
|
154
151
|
}
|
|
155
|
-
function getHeaderCellStyleUtil(e, t,
|
|
156
|
-
var
|
|
157
|
-
const
|
|
158
|
-
e.column.property && ((
|
|
159
|
-
if (
|
|
160
|
-
const
|
|
161
|
-
if (
|
|
162
|
-
|
|
163
|
-
} catch (
|
|
164
|
-
console.error("自定义函数脚本错误:",
|
|
152
|
+
function getHeaderCellStyleUtil(e, t, o) {
|
|
153
|
+
var s;
|
|
154
|
+
const r = {};
|
|
155
|
+
e.column.property && ((s = t.titleStyle) == null || s.forEach((n) => {
|
|
156
|
+
if (n.field && n.field.includes(e.column.property)) if (n.scopeFunc) {
|
|
157
|
+
const l = getCustomFunc(o.pageContext, n.scopeFunc);
|
|
158
|
+
if (l) try {
|
|
159
|
+
l.apply(l, [{ item: n, data: e }]) !== !1 && copyStyle(r, n);
|
|
160
|
+
} catch (i) {
|
|
161
|
+
console.error("自定义函数脚本错误:", n, e, i);
|
|
165
162
|
}
|
|
166
|
-
} else copyStyle(
|
|
163
|
+
} else copyStyle(r, n);
|
|
167
164
|
}));
|
|
168
|
-
const
|
|
169
|
-
return
|
|
165
|
+
const a = getCellStyleUtil(e, t.cellTitleStyle, o);
|
|
166
|
+
return a && Object.assign(r, a), r;
|
|
170
167
|
}
|
|
171
|
-
function getRowStyleUtil(e, t,
|
|
172
|
-
const
|
|
173
|
-
if (
|
|
174
|
-
const
|
|
175
|
-
if (
|
|
176
|
-
const
|
|
177
|
-
if (
|
|
178
|
-
const
|
|
179
|
-
|
|
180
|
-
} catch (
|
|
181
|
-
console.error("自定义函数脚本错误:", e,
|
|
168
|
+
function getRowStyleUtil(e, t, o) {
|
|
169
|
+
const r = {};
|
|
170
|
+
if (o.configure.style.rowStyle) for (let a = 0; a < o.configure.style.rowStyle.length; a++) {
|
|
171
|
+
const s = o.configure.style.rowStyle[a];
|
|
172
|
+
if (s.scopeFunc) {
|
|
173
|
+
const n = getCustomFunc(o.pageContext, s.scopeFunc);
|
|
174
|
+
if (n) try {
|
|
175
|
+
const l = n.apply(n, [{ data: e }]);
|
|
176
|
+
l != null && l !== !1 && copyStyle(r, s);
|
|
177
|
+
} catch (l) {
|
|
178
|
+
console.error("自定义函数脚本错误:", e, l);
|
|
182
179
|
}
|
|
183
|
-
} else if (
|
|
184
|
-
const
|
|
185
|
-
(
|
|
186
|
-
} else copyStyle(
|
|
180
|
+
} else if (s.matchingCondition) {
|
|
181
|
+
const n = ExpressionEvaluator.evaluate(o.pageContext, s.matchingCondition, e.row);
|
|
182
|
+
(n || n === void 0) && copyStyle(r, s);
|
|
183
|
+
} else copyStyle(r, s);
|
|
187
184
|
}
|
|
188
|
-
if (t && t.length > 0 &&
|
|
189
|
-
const
|
|
190
|
-
if (
|
|
191
|
-
copyStyle(
|
|
192
|
-
|
|
193
|
-
return 0 === Object.keys(e2).length && (e2["background-color"] = "var(--el-table-row-hover-bg-color)"), e2;
|
|
185
|
+
if (t && t.length > 0 && t.indexOf(e.rowIndex) !== -1) {
|
|
186
|
+
const a = {};
|
|
187
|
+
if (o.configure.style.collectStyle && o.configure.style.collectStyle.length > 0) for (let s = 0; s < o.configure.style.collectStyle.length; s++)
|
|
188
|
+
copyStyle(a, o.configure.style.collectStyle[s]);
|
|
189
|
+
return Object.keys(a).length === 0 && (a["background-color"] = "var(--el-table-row-hover-bg-color)"), a;
|
|
194
190
|
}
|
|
195
|
-
return
|
|
191
|
+
return r;
|
|
196
192
|
}
|
|
197
|
-
function getCellStyleUtil(e, t,
|
|
198
|
-
const
|
|
199
|
-
if (t) for (let
|
|
200
|
-
const
|
|
201
|
-
if (isSetStyle(
|
|
202
|
-
const
|
|
203
|
-
if (
|
|
204
|
-
|
|
205
|
-
} catch (
|
|
206
|
-
console.error("自定义函数脚本错误:", e,
|
|
193
|
+
function getCellStyleUtil(e, t, o) {
|
|
194
|
+
const r = {};
|
|
195
|
+
if (t) for (let a = 0; a < t.length; a++) {
|
|
196
|
+
const s = t[a];
|
|
197
|
+
if (isSetStyle(s)) if (s.scopeFunc) {
|
|
198
|
+
const n = getCustomFunc(o.pageContext, s.scopeFunc);
|
|
199
|
+
if (n) try {
|
|
200
|
+
n.apply(n, [{ data: e }]) !== !1 && copyStyle(r, s);
|
|
201
|
+
} catch (l) {
|
|
202
|
+
console.error("自定义函数脚本错误:", e, l);
|
|
207
203
|
}
|
|
208
|
-
} else if (
|
|
209
|
-
const
|
|
210
|
-
(
|
|
211
|
-
} else copyStyle(
|
|
204
|
+
} else if (s.matchingCondition) {
|
|
205
|
+
const n = ExpressionEvaluator.evaluate(o.pageContext, s.matchingCondition, e.row);
|
|
206
|
+
(n || n === void 0) && copyStyle(r, s);
|
|
207
|
+
} else copyStyle(r, s);
|
|
212
208
|
}
|
|
213
|
-
return
|
|
209
|
+
return r;
|
|
214
210
|
}
|
|
215
211
|
function isSetStyle(e) {
|
|
216
212
|
let t;
|
|
@@ -219,96 +215,89 @@ function isSetStyle(e) {
|
|
|
219
215
|
function copyStyle(e, t) {
|
|
220
216
|
Object.assign(e, t.style), t.customStyle && Object.assign(e, JSON.parse(t.customStyle));
|
|
221
217
|
}
|
|
222
|
-
function rowDataToColumn(e, t,
|
|
223
|
-
const
|
|
224
|
-
|
|
225
|
-
const
|
|
226
|
-
if (!l[
|
|
227
|
-
const
|
|
228
|
-
|
|
218
|
+
function rowDataToColumn(e, t, o) {
|
|
219
|
+
const r = t.props.dataOrigin.groupField, a = t.props.dataOrigin.rowToColumn.titleColumns, s = t.props.dataOrigin.rowToColumn.dataColumns, n = [], l = {};
|
|
220
|
+
return r && r.length > 0 ? e.forEach((i) => {
|
|
221
|
+
const p = r.map((m) => i[m]).join("|");
|
|
222
|
+
if (!l[p]) {
|
|
223
|
+
const m = {};
|
|
224
|
+
r.forEach((c) => m[c] = i[c]), l[p] = m, n.push(m);
|
|
229
225
|
}
|
|
230
|
-
|
|
231
|
-
const
|
|
232
|
-
l[
|
|
226
|
+
s.forEach((m) => {
|
|
227
|
+
const c = `${a.map((u) => i[u]).join("")}${m}`;
|
|
228
|
+
l[p][c] = i[m];
|
|
233
229
|
});
|
|
234
|
-
})
|
|
235
|
-
|
|
236
|
-
const t2 = [];
|
|
237
|
-
e.forEach((e2) => {
|
|
238
|
-
n.forEach((r2) => {
|
|
239
|
-
e2[r2] && t2.push(e2[r2]);
|
|
240
|
-
});
|
|
241
|
-
}), a.forEach((t3) => {
|
|
242
|
-
const o2 = {}, a2 = r.find((e2) => {
|
|
243
|
-
var _a, _b;
|
|
244
|
-
return ((_b = (_a = e2.props) == null ? void 0 : _a.base) == null ? void 0 : _b.prop) === t3;
|
|
245
|
-
});
|
|
246
|
-
a2 && (o2.$GroupColumn = a2.props.base.name), e.forEach((e2) => {
|
|
247
|
-
n.forEach((r2) => {
|
|
248
|
-
const n2 = e2[r2], a3 = e2[t3];
|
|
249
|
-
o2[n2] = a3;
|
|
250
|
-
});
|
|
251
|
-
}), s.push(o2);
|
|
230
|
+
}) : (e.forEach((i) => {
|
|
231
|
+
a.forEach((p) => {
|
|
252
232
|
});
|
|
253
|
-
}
|
|
254
|
-
|
|
233
|
+
}), s.forEach((i) => {
|
|
234
|
+
const p = {}, m = o.find((c) => {
|
|
235
|
+
var u, d;
|
|
236
|
+
return ((d = (u = c.props) == null ? void 0 : u.base) == null ? void 0 : d.prop) === i;
|
|
237
|
+
});
|
|
238
|
+
m && (p.$GroupColumn = m.props.base.name), e.forEach((c) => {
|
|
239
|
+
a.forEach((u) => {
|
|
240
|
+
const d = c[u], y = c[i];
|
|
241
|
+
p[d] = y;
|
|
242
|
+
});
|
|
243
|
+
}), n.push(p);
|
|
244
|
+
})), n;
|
|
255
245
|
}
|
|
256
246
|
function colDataToRow(e, t) {
|
|
257
|
-
const
|
|
258
|
-
if (
|
|
259
|
-
const l = [], i = groupBy(e,
|
|
260
|
-
|
|
261
|
-
}),
|
|
262
|
-
return i.forEach((
|
|
263
|
-
|
|
264
|
-
const
|
|
265
|
-
if (
|
|
266
|
-
|
|
267
|
-
}),
|
|
268
|
-
const
|
|
269
|
-
|
|
270
|
-
|
|
247
|
+
const o = t.props.dataOrigin.groupField, r = t.props.dataOrigin.columnToRow.titleColumns, a = t.props.dataOrigin.columnToRow.dataColumns, s = t.props.dataOrigin.columnToRow.transColumns, n = t.props.dataOrigin.columnToRow.dataColumnsMapping;
|
|
248
|
+
if (e.length === 0) return e;
|
|
249
|
+
const l = [], i = groupBy(e, o), p = a.reduce((c, u) => u.columns.length > c.columns.length ? u : c, a[0]), m = a.reduce((c, u) => (u.columns.forEach((d) => {
|
|
250
|
+
c[d] = u.prop;
|
|
251
|
+
}), c), {});
|
|
252
|
+
return i.forEach((c) => {
|
|
253
|
+
p.columns.forEach((u) => {
|
|
254
|
+
const d = p.prop, y = {};
|
|
255
|
+
if (o.forEach((f) => {
|
|
256
|
+
y[f] = c[f];
|
|
257
|
+
}), y[d] = c[u], a.length > 1) {
|
|
258
|
+
const f = n.find((g) => g.props.includes(u));
|
|
259
|
+
f && f.props.length > 1 && f.props.forEach((g) => {
|
|
260
|
+
g !== u && m[g] && (y[m[g]] = c[g]);
|
|
271
261
|
});
|
|
272
262
|
}
|
|
273
|
-
|
|
274
|
-
const
|
|
275
|
-
let
|
|
276
|
-
|
|
277
|
-
if (
|
|
278
|
-
}),
|
|
279
|
-
}), l.push(
|
|
263
|
+
r.forEach((f) => {
|
|
264
|
+
const g = s.filter((h) => h.relatedTitle === f.prop);
|
|
265
|
+
let b = !1;
|
|
266
|
+
g && g.length > 0 && g.forEach((h) => {
|
|
267
|
+
if (h.columns.includes(u)) return y[f.prop] = h.label, void (b = !0);
|
|
268
|
+
}), b || (y[f.prop] = u);
|
|
269
|
+
}), l.push(y);
|
|
280
270
|
});
|
|
281
271
|
}), l;
|
|
282
272
|
}
|
|
283
273
|
function getColumnToRowTableConfig(e) {
|
|
284
|
-
const t = e.items,
|
|
285
|
-
|
|
274
|
+
const t = e.items, o = e.props.dataOrigin.groupField, r = e.props.dataOrigin.columnToRow.titleColumns, a = e.props.dataOrigin.columnToRow.dataColumns, s = [];
|
|
275
|
+
return o && o.length > 0 && o.forEach((n) => {
|
|
286
276
|
if (t) {
|
|
287
|
-
const
|
|
288
|
-
|
|
277
|
+
const l = t.find((i) => i.props.base.prop === n);
|
|
278
|
+
l && s.push(l);
|
|
289
279
|
}
|
|
290
|
-
})
|
|
291
|
-
return [...o, ...n].forEach((e2) => {
|
|
280
|
+
}), [...r, ...a].forEach((n) => {
|
|
292
281
|
if (t) {
|
|
293
|
-
const
|
|
294
|
-
|
|
282
|
+
const l = t.find((i) => i.props.base.prop === n);
|
|
283
|
+
l ? s.push(l) : s.push({ uuid: (/* @__PURE__ */ new Date()).getTime(), name: "", props: { base: { prop: n.prop, name: n.title, sortable: !0, headerAlign: "center", align: "center", fixed: !1, visible: !0, dataType: "string" }, format: {}, size: { pc: {} } }, style: {}, componentIndex: 0, runtime: { common: { class: "", style: { pc_style: {}, pc_class: "" } } } });
|
|
295
284
|
}
|
|
296
|
-
}),
|
|
285
|
+
}), s;
|
|
297
286
|
}
|
|
298
287
|
function groupBy(e, t) {
|
|
299
|
-
const
|
|
300
|
-
return e.forEach((
|
|
301
|
-
const
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
})),
|
|
305
|
-
}), Object.values(
|
|
288
|
+
const o = {};
|
|
289
|
+
return e.forEach((r) => {
|
|
290
|
+
const a = t.map((s) => r[s]).join("|");
|
|
291
|
+
o[a] || (o[a] = { ...r, records: [] }, t.forEach((s, n) => {
|
|
292
|
+
o[a][s] = r[s];
|
|
293
|
+
})), o[a].records.push(r);
|
|
294
|
+
}), Object.values(o).map((r) => ({ ...r, records: void 0 }));
|
|
306
295
|
}
|
|
307
296
|
function getIndexColumn() {
|
|
308
|
-
return { props: { base: { name: "序号", prop: "$index", columnWidth: 80, sortable:
|
|
297
|
+
return { props: { base: { name: "序号", prop: "$index", columnWidth: 80, sortable: !0, visible: !0, displayOrder: 1, alignTitle: "center", alignContent: "center" } }, events: [], style: { titleFont: {}, contentFont: {}, width: {}, background: {}, tableCell: [{ type: "", model: "" }], conentPadding: {}, tittlePadding: {}, border: {}, shadow: {}, tittleClass: "" } };
|
|
309
298
|
}
|
|
310
|
-
function getNewColumnConfig(e, t,
|
|
311
|
-
return { uuid: (/* @__PURE__ */ new Date()).getTime(), name: "", props: { base: { prop: e, name: t, displayOrder:
|
|
299
|
+
function getNewColumnConfig(e, t, o, r) {
|
|
300
|
+
return { uuid: (/* @__PURE__ */ new Date()).getTime(), name: "", props: { base: { prop: e, name: t, displayOrder: o, sortable: !0, headerAlign: "center", align: "center", fixed: !1, visible: !0, dataType: r }, format: {}, size: { pc: {} } }, style: {}, componentIndex: 0, runtime: { common: { class: "", style: { pc_style: {}, pc_class: "" } } } };
|
|
312
301
|
}
|
|
313
302
|
function computeFormula(itemConfs, datas, entity) {
|
|
314
303
|
Object.keys(itemConfs).forEach((key) => {
|
|
@@ -321,15 +310,15 @@ function computeFormula(itemConfs, datas, entity) {
|
|
|
321
310
|
else if (e.startsWith("${avg.")) totalValueMap[e] = getAvgValue(datas, getFieldName(e));
|
|
322
311
|
else if (e.startsWith("${add.")) {
|
|
323
312
|
const t = getFieldName(e);
|
|
324
|
-
let
|
|
313
|
+
let o = 0;
|
|
325
314
|
try {
|
|
326
|
-
|
|
327
|
-
|
|
315
|
+
o = Number(data[t]), datas.slice(0, index).forEach((r) => {
|
|
316
|
+
o += Number(r[t]);
|
|
328
317
|
});
|
|
329
|
-
} catch (
|
|
330
|
-
console.error("计算错误:",
|
|
318
|
+
} catch (r) {
|
|
319
|
+
console.error("计算错误:", r), o = 0;
|
|
331
320
|
}
|
|
332
|
-
totalValueMap[e] =
|
|
321
|
+
totalValueMap[e] = o;
|
|
333
322
|
} 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));
|
|
334
323
|
let expr = itemConfs[key];
|
|
335
324
|
Object.keys(totalValueMap).forEach((e) => {
|
|
@@ -347,57 +336,57 @@ function computeFormula(itemConfs, datas, entity) {
|
|
|
347
336
|
function getFieldName(e) {
|
|
348
337
|
return e.substring(6, e.length - 1);
|
|
349
338
|
}
|
|
350
|
-
function formatColContent(e, t,
|
|
351
|
-
const
|
|
339
|
+
function formatColContent(e, t, o, r, a) {
|
|
340
|
+
const s = e[o.props.base.prop];
|
|
352
341
|
switch (t.type) {
|
|
353
342
|
case "number":
|
|
354
|
-
return formatNumber(
|
|
343
|
+
return formatNumber(s, t);
|
|
355
344
|
case "currency":
|
|
356
|
-
return formatCurrency(
|
|
345
|
+
return formatCurrency(s, t);
|
|
357
346
|
case "percent":
|
|
358
|
-
return formatPercent(
|
|
347
|
+
return formatPercent(s, t);
|
|
359
348
|
case "custom":
|
|
360
|
-
return formatCustomFunc(e, t,
|
|
349
|
+
return formatCustomFunc(e, t, o, r, a);
|
|
361
350
|
default:
|
|
362
|
-
return
|
|
351
|
+
return s;
|
|
363
352
|
}
|
|
364
353
|
}
|
|
365
354
|
function formatNumber(e, t) {
|
|
366
|
-
let
|
|
367
|
-
return
|
|
355
|
+
let o = e;
|
|
356
|
+
return o || (o = 0), t.scientific && (o = Number(e).toExponential(t.scientificNum)), t.decimalDigit && (o = Number(e).toFixed(t.decimalDigit)), t.thousandsSeparator && (o = o.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",")), t.symbol && (o = `${t.symbol} ${o}`), o;
|
|
368
357
|
}
|
|
369
358
|
function formatCurrency(e, t) {
|
|
370
|
-
let
|
|
371
|
-
return
|
|
359
|
+
let o = e;
|
|
360
|
+
return o || (o = 0), t.decimalDigit && (o = Number(e).toFixed(t.decimalDigit)), t.symbol && (o = `${t.symbol} ${o}`), o;
|
|
372
361
|
}
|
|
373
362
|
function formatPercent(e, t) {
|
|
374
|
-
let
|
|
375
|
-
return
|
|
363
|
+
let o = e;
|
|
364
|
+
return o || (o = 0), t.decimalDigit && (o = Number(e).toFixed(t.decimalDigit)), o + " %";
|
|
376
365
|
}
|
|
377
|
-
function formatCustomFunc(e, t,
|
|
378
|
-
const
|
|
379
|
-
if (
|
|
366
|
+
function formatCustomFunc(e, t, o, r, a) {
|
|
367
|
+
const s = getCustomFunc(r, t.customFunc);
|
|
368
|
+
if (s) {
|
|
380
369
|
try {
|
|
381
|
-
return
|
|
382
|
-
} catch (
|
|
383
|
-
console.error("自定义函数脚本错误:", e,
|
|
370
|
+
return s.apply(s, [{ pageContext: r, configureObj: a, row: e, prop: o.props.base.prop }]);
|
|
371
|
+
} catch (n) {
|
|
372
|
+
console.error("自定义函数脚本错误:", e, n);
|
|
384
373
|
}
|
|
385
374
|
return "";
|
|
386
375
|
}
|
|
387
376
|
}
|
|
388
|
-
function mergeRowByProperty(e, t,
|
|
389
|
-
const
|
|
390
|
-
let
|
|
391
|
-
for (let
|
|
392
|
-
if (
|
|
393
|
-
l =
|
|
377
|
+
function mergeRowByProperty(e, t, o, r, a) {
|
|
378
|
+
const s = e[r];
|
|
379
|
+
let n = 1, l = !0;
|
|
380
|
+
for (let i = o - 1; i >= 0; i--) {
|
|
381
|
+
if (a[i][r] === s) {
|
|
382
|
+
l = !1;
|
|
394
383
|
break;
|
|
395
384
|
}
|
|
396
385
|
break;
|
|
397
386
|
}
|
|
398
387
|
if (!l) return [0, 0];
|
|
399
|
-
for (let
|
|
400
|
-
return [
|
|
388
|
+
for (let i = o + 1; i < a.length && a[i][r] === s; i++) n++;
|
|
389
|
+
return [n, 1];
|
|
401
390
|
}
|
|
402
391
|
export {
|
|
403
392
|
ExpressionEvaluator,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as o, createBlock as t, openBlock as n } from "vue";
|
|
2
|
+
import u from "./group-column.vue.mjs";
|
|
3
|
+
const c = o({ __name: "group-column-item", props: { configure: { type: Object, default: () => ({}) }, pageContext: { type: Object, default: () => ({}) }, groupColumnItem: { type: Object, default: () => ({}) }, columnsConfigKeyValues: { type: Object, default: () => ({}) } }, setup: (e) => (l, p) => (n(), t(u, { configure: e.configure, pageContext: e.pageContext, groupColumn: e.groupColumnItem, columnsConfigKeyValues: e.columnsConfigKeyValues }, null, 8, ["configure", "pageContext", "groupColumn", "columnsConfigKeyValues"])) });
|
|
4
4
|
export {
|
|
5
|
-
|
|
5
|
+
c as default
|
|
6
6
|
};
|