super-page-runtime 1.0.17 → 1.3.13
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/assets/chart-themes/theme1.d.ts +4 -0
- package/dist/es/assets/chart-themes/theme1.js +4 -0
- package/dist/es/assets/chart-themes/theme2.d.ts +4 -0
- package/dist/es/assets/chart-themes/theme2.js +4 -0
- package/dist/es/assets/chart-themes/theme3.d.ts +4 -0
- package/dist/es/assets/chart-themes/theme3.js +4 -0
- package/dist/es/assets/file.png.js +4 -0
- package/dist/es/assets/folder.png.js +4 -0
- package/dist/es/components/runtime/index.d.ts +5 -0
- package/dist/es/components/runtime/utils/api/api-util.d.ts +1 -0
- package/dist/es/components/runtime/utils/api/api-util.js +4 -0
- package/dist/es/components/runtime/utils/api/page-expose-util.d.ts +1 -0
- package/dist/es/components/runtime/utils/api/page-expose-util.js +159 -0
- package/dist/es/components/runtime/utils/assemblys-config.js +20 -0
- package/dist/es/components/runtime/utils/barcode-util.d.ts +8 -0
- package/dist/es/components/runtime/utils/barcode-util.js +12 -0
- package/dist/es/components/runtime/utils/charts/chart-columnline-util.js +140 -0
- package/dist/es/components/runtime/utils/charts/chart-gauge-util.js +37 -0
- package/dist/es/components/runtime/utils/charts/chart-pie-util.js +81 -0
- package/dist/es/components/runtime/utils/charts/chart-radar-util.js +55 -0
- package/dist/es/components/runtime/utils/charts/chart-scatter-util.js +46 -0
- package/dist/es/components/runtime/utils/charts/chart-util.d.ts +113 -0
- package/dist/es/components/runtime/utils/charts/chart-util.js +274 -0
- package/dist/es/components/runtime/utils/common-util.d.ts +33 -0
- package/dist/es/components/runtime/utils/common-util.js +120 -0
- package/dist/es/components/runtime/utils/eventBus.d.ts +7 -0
- package/dist/es/components/runtime/utils/eventBus.js +5 -0
- package/{lib/src → dist/es/components/runtime}/utils/events/event-util.d.ts +45 -1
- package/dist/es/components/runtime/utils/events/event-util.js +403 -0
- package/dist/es/components/runtime/utils/events/print-label.d.ts +5 -0
- package/dist/es/components/runtime/utils/events/print-label.js +100 -0
- package/{lib/src → dist/es/components/runtime}/utils/events/standard-event.d.ts +29 -3
- package/dist/es/components/runtime/utils/events/standard-event.js +971 -0
- package/dist/es/components/runtime/utils/events/validator-util.d.ts +25 -0
- package/dist/es/components/runtime/utils/events/validator-util.js +309 -0
- package/dist/es/components/runtime/utils/form/date-shortcuts.d.ts +7 -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/{lib/src → dist/es/components/runtime}/utils/global-refs.d.ts +6 -0
- package/dist/es/components/runtime/utils/global-refs.js +57 -0
- package/dist/es/components/runtime/utils/i18n-util.d.ts +1 -0
- package/dist/es/components/runtime/utils/i18n-util.js +14 -0
- package/{lib/src → dist/es/components/runtime}/utils/interfaces/page-design-types.d.ts +32 -6
- package/dist/es/components/runtime/utils/interfaces/page-design-types.js +4 -0
- package/dist/es/components/runtime/utils/page-helper-util.d.ts +174 -0
- package/dist/es/components/runtime/utils/page-helper-util.js +386 -0
- package/{lib/src → dist/es/components/runtime}/utils/page-init-util.d.ts +12 -2
- package/dist/es/components/runtime/utils/page-init-util.js +203 -0
- package/dist/es/components/runtime/utils/page-permission-util.d.ts +26 -0
- package/dist/es/components/runtime/utils/page-permission-util.js +30 -0
- package/dist/es/components/runtime/utils/page-store.d.ts +46 -0
- package/dist/es/components/runtime/utils/page-store.js +26 -0
- package/dist/es/components/runtime/utils/store-util.js +13 -0
- package/dist/es/components/runtime/utils/store.js +4 -0
- package/dist/es/components/runtime/utils/table-utils.d.ts +34 -0
- package/dist/es/components/runtime/utils/table-utils.js +80 -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-runtime.vue2.js +27 -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-runtime.vue2.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-runtime.vue2.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-runtime.vue2.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-runtime.vue2.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-runtime.vue2.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-breadcrumb.vue2.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-group.vue2.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-header.vue2.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-search.vue2.js +63 -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-runtime.vue2.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-runtime.vue2.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-runtime.vue2.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-runtime.vue2.js +35 -0
- package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.d.ts +121 -0
- package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +419 -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-item.vue2.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-column.vue2.js +4 -0
- package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue.js +45 -0
- package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue2.js +4 -0
- package/dist/es/components/runtime/views/assemblys/chart/table/table-pageination.vue.js +15 -0
- package/dist/es/components/runtime/views/assemblys/chart/table/table-pageination.vue2.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-runtime.vue2.js +255 -0
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.d.ts +28 -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-dialog.vue2.js +4 -0
- package/{lib → dist/es}/components/runtime/views/assemblys/common/remove-signer-dialog.vue.d.ts +5 -5
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.js +24 -0
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue2.js +4 -0
- package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.d.ts +31 -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-dialog.vue2.js +4 -0
- package/{lib → dist/es}/components/runtime/views/assemblys/common/task-informition-dialog.vue.d.ts +5 -5
- 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-dialog.vue2.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-runtime.vue2.js +29 -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-runtime.vue2.js +21 -0
- package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +18 -0
- package/dist/es/components/runtime/views/assemblys/container/fixed/FixedBox.vue.js +7 -0
- package/dist/es/components/runtime/views/assemblys/container/fixed/FixedBox.vue2.js +29 -0
- package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue.d.ts +94 -0
- package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue.js +7 -0
- package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.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-runtime.vue2.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-runtime.vue2.js +20 -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-runtime.vue2.js +14 -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-runtime.vue2.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-runtime.vue2.js +35 -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-runtime.vue2.js +69 -0
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +378 -0
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue2.js +4 -0
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +300 -0
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue2.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-runtime.vue2.js +82 -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-runtime.vue2.js +134 -0
- package/{lib → dist/es}/components/runtime/views/assemblys/error-render.vue.d.ts +4 -4
- package/dist/es/components/runtime/views/assemblys/error-render.vue.js +5 -0
- package/dist/es/components/runtime/views/assemblys/error-render.vue2.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-runtime.vue2.js +50 -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-element.vue2.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-runtime.vue2.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-runtime.vue2.js +90 -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-runtime.vue2.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-runtime.vue2.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-runtime.vue2.js +75 -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-runtime.vue2.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-runtime.vue2.js +82 -0
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +37 -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-runtime.vue2.js +32 -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-runtime.vue2.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-runtime.vue2.js +73 -0
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +102 -0
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +97 -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-runtime.vue2.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-runtime.vue2.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-runtime.vue2.js +44 -0
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +28 -0
- package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.d.ts +17 -0
- package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.js +83 -0
- package/dist/es/components/runtime/views/assemblys/home-chart-render.vue2.js +4 -0
- package/dist/es/components/runtime/views/assemblys/object-render.vue.d.ts +17 -0
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +129 -0
- package/dist/es/components/runtime/views/assemblys/object-render.vue2.js +4 -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-runtime.vue2.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-runtime.vue2.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-runtime.vue2.js +24 -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-runtime.vue2.js +18 -0
- package/dist/es/components/runtime/views/home-chart.vue.d.ts +23 -0
- package/dist/es/components/runtime/views/home-chart.vue.js +47 -0
- package/dist/es/components/runtime/views/home-chart.vue2.js +4 -0
- package/{lib/components/super-page-dialog → dist/es/components/runtime/views}/super-page-dialog.vue.d.ts +7 -3
- package/dist/es/components/runtime/views/super-page-dialog.vue.js +26 -0
- package/dist/es/components/runtime/views/super-page-dialog.vue3.js +5 -0
- package/{lib → dist/es}/components/runtime/views/super-page.vue.d.ts +43 -10
- package/dist/es/components/runtime/views/super-page.vue.js +7 -0
- package/dist/es/components/runtime/views/super-page.vue2.js +262 -0
- package/dist/es/i18n/langs/cn.js +4 -0
- package/dist/es/i18n/langs/en.js +4 -0
- package/dist/es/index.d.ts +16 -0
- package/dist/es/index.js +30 -0
- package/dist/es/style.css +633 -0
- package/package.json +74 -71
- package/lib/_virtual/_plugin-vue_export-helper.js +0 -9
- package/lib/components/index.d.ts +0 -5
- package/lib/components/runtime/index.d.ts +0 -3
- package/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue.d.ts +0 -24
- package/lib/components/runtime/views/assemblys/object-render.vue.d.ts +0 -17
- package/lib/components/super-page-dialog/index.d.ts +0 -3
- package/lib/components/wf-editor/index.d.ts +0 -3
- package/lib/components/wf-editor/wf-editor.vue.d.ts +0 -2
- package/lib/index.js +0 -8
- package/lib/runtime/index.js +0 -3
- package/lib/runtime/utils/assemblys-config.js +0 -258
- package/lib/runtime/views/assemblys/button/button/button-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/button/button/button-runtime.vue2.js +0 -54
- package/lib/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +0 -35
- package/lib/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +0 -110
- package/lib/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +0 -53
- package/lib/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +0 -42
- package/lib/runtime/views/assemblys/chart/pie/pie-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +0 -50
- package/lib/runtime/views/assemblys/chart/radar/radar-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +0 -50
- package/lib/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +0 -51
- package/lib/runtime/views/assemblys/common/export-form-report-dialog.vue.js +0 -141
- package/lib/runtime/views/assemblys/common/export-form-report-dialog.vue2.js +0 -3
- package/lib/runtime/views/assemblys/common/remove-signer-dialog.vue.js +0 -127
- package/lib/runtime/views/assemblys/common/remove-signer-dialog.vue2.js +0 -3
- package/lib/runtime/views/assemblys/common/task-informition-dialog.vue.js +0 -104
- package/lib/runtime/views/assemblys/common/task-informition-dialog.vue2.js +0 -3
- package/lib/runtime/views/assemblys/container/card/card-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/container/card/card-runtime.vue2.js +0 -72
- package/lib/runtime/views/assemblys/container/collapse/collapse-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +0 -73
- package/lib/runtime/views/assemblys/container/container/container-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/container/container/container-runtime.vue2.js +0 -78
- package/lib/runtime/views/assemblys/container/flex/flex-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +0 -42
- package/lib/runtime/views/assemblys/container/form/form-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/container/form/form-runtime.vue2.js +0 -43
- package/lib/runtime/views/assemblys/container/iframe/iframe-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +0 -29
- package/lib/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +0 -68
- package/lib/runtime/views/assemblys/container/tools/tools-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +0 -74
- package/lib/runtime/views/assemblys/data/table/main-table-runtime.vue.js +0 -640
- package/lib/runtime/views/assemblys/data/table/main-table-runtime.vue2.js +0 -3
- package/lib/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +0 -452
- package/lib/runtime/views/assemblys/data/table/sub-table-runtime.vue2.js +0 -3
- package/lib/runtime/views/assemblys/data/table/table-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/data/table/table-runtime.vue2.js +0 -82
- package/lib/runtime/views/assemblys/error-render.vue.js +0 -22
- package/lib/runtime/views/assemblys/error-render.vue2.js +0 -3
- package/lib/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +0 -156
- package/lib/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +0 -82
- package/lib/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +0 -59
- package/lib/runtime/views/assemblys/form/divider/divider-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +0 -40
- package/lib/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +0 -74
- package/lib/runtime/views/assemblys/form/input-number/input-number-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +0 -63
- package/lib/runtime/views/assemblys/form/input-text/inputtext-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +0 -127
- package/lib/runtime/views/assemblys/form/label/label-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/form/label/label-runtime.vue2.js +0 -133
- package/lib/runtime/views/assemblys/form/link/link-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/form/link/link-runtime.vue2.js +0 -77
- package/lib/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.js +0 -29
- package/lib/runtime/views/assemblys/form/radio/radio-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +0 -157
- package/lib/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +0 -174
- package/lib/runtime/views/assemblys/form/select/select-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/form/select/select-runtime.vue2.js +0 -201
- package/lib/runtime/views/assemblys/form/switch/switch-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +0 -63
- package/lib/runtime/views/assemblys/form/tag/tag-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +0 -63
- package/lib/runtime/views/assemblys/form/textarea/textarea-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +0 -65
- package/lib/runtime/views/assemblys/object-render.vue.js +0 -142
- package/lib/runtime/views/assemblys/object-render.vue2.js +0 -3
- package/lib/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +0 -61
- package/lib/runtime/views/super-page.vue.js +0 -479
- package/lib/runtime/views/super-page.vue2.js +0 -3
- package/lib/src/assets/chart-themes/theme1.js +0 -7
- package/lib/src/assets/chart-themes/theme2.js +0 -7
- package/lib/src/assets/chart-themes/theme3.js +0 -7
- package/lib/src/utils/api/api-util.d.ts +0 -11
- package/lib/src/utils/api/api-util.js +0 -128
- package/lib/src/utils/charts/chart-util.js +0 -15
- package/lib/src/utils/common-util.d.ts +0 -11
- package/lib/src/utils/common-util.js +0 -81
- package/lib/src/utils/events/event-util.js +0 -525
- package/lib/src/utils/events/standard-event.js +0 -1623
- package/lib/src/utils/events/validator-util.d.ts +0 -4
- package/lib/src/utils/events/validator-util.js +0 -389
- package/lib/src/utils/global-refs.js +0 -65
- package/lib/src/utils/interfaces/page-design-types.js +0 -9
- package/lib/src/utils/page-helper-util.d.ts +0 -87
- package/lib/src/utils/page-helper-util.js +0 -503
- package/lib/src/utils/page-init-util.js +0 -200
- package/lib/src/utils/store-util.js +0 -17
- package/lib/src/utils/store.js +0 -3
- package/lib/src/utils/table-utils.js +0 -23
- package/lib/super-page-dialog/index.js +0 -3
- package/lib/super-page-dialog/super-page-dialog.vue.js +0 -73
- package/lib/super-page-dialog/super-page-dialog.vue2.js +0 -3
- package/lib/wf-editor/index.js +0 -3
- package/lib/wf-editor/wf-editor.css +0 -4
- package/lib/wf-editor/wf-editor.vue.js +0 -15
- package/src/assets/base.css +0 -86
- package/src/assets/chart-themes/theme1.ts +0 -6
- package/src/assets/chart-themes/theme2.ts +0 -6
- package/src/assets/chart-themes/theme3.ts +0 -6
- package/src/assets/images/button/button-group.png +0 -0
- package/src/assets/images/button/button.png +0 -0
- package/src/assets/images/chart/chart-column.png +0 -0
- package/src/assets/images/chart/chart-gauge.png +0 -0
- package/src/assets/images/chart/chart-pie.png +0 -0
- package/src/assets/images/chart/chart-radar.png +0 -0
- package/src/assets/images/chart/chart-scatter.png +0 -0
- package/src/assets/images/container/container-card.png +0 -0
- package/src/assets/images/container/container-collapse.png +0 -0
- package/src/assets/images/container/container-container.png +0 -0
- package/src/assets/images/container/container-flex.png +0 -0
- package/src/assets/images/container/container-form.png +0 -0
- package/src/assets/images/container/container-iframe.png +0 -0
- package/src/assets/images/container/container-normal.png +0 -0
- package/src/assets/images/container/container-tabs.png +0 -0
- package/src/assets/images/container/container-tools.png +0 -0
- package/src/assets/images/data/data-process.png +0 -0
- package/src/assets/images/data/data-step.png +0 -0
- package/src/assets/images/data/data-table-column.png +0 -0
- package/src/assets/images/data/data-table.png +0 -0
- package/src/assets/images/data/data-timeline.png +0 -0
- package/src/assets/images/data/data-tree.png +0 -0
- package/src/assets/images/form/form-cascader.png +0 -0
- package/src/assets/images/form/form-check.png +0 -0
- package/src/assets/images/form/form-color.png +0 -0
- package/src/assets/images/form/form-count.png +0 -0
- package/src/assets/images/form/form-custom.png +0 -0
- package/src/assets/images/form/form-date.png +0 -0
- package/src/assets/images/form/form-dept.png +0 -0
- package/src/assets/images/form/form-divider.png +0 -0
- package/src/assets/images/form/form-file.png +0 -0
- package/src/assets/images/form/form-image-upload.png +0 -0
- package/src/assets/images/form/form-img.png +0 -0
- package/src/assets/images/form/form-input.png +0 -0
- package/src/assets/images/form/form-label.png +0 -0
- package/src/assets/images/form/form-link.png +0 -0
- package/src/assets/images/form/form-radio.png +0 -0
- package/src/assets/images/form/form-scan.png +0 -0
- package/src/assets/images/form/form-score.png +0 -0
- package/src/assets/images/form/form-select.png +0 -0
- package/src/assets/images/form/form-slider.png +0 -0
- package/src/assets/images/form/form-space.png +0 -0
- package/src/assets/images/form/form-switch.png +0 -0
- package/src/assets/images/form/form-text.png +0 -0
- package/src/assets/images/form/form-textarea.png +0 -0
- package/src/assets/images/form/form-transfer.png +0 -0
- package/src/assets/images/form/form-zoom.png +0 -0
- package/src/assets/images/group-button.png +0 -0
- package/src/assets/images/group-chart.png +0 -0
- package/src/assets/images/group-container.png +0 -0
- package/src/assets/images/group-data.png +0 -0
- package/src/assets/images/group-form.png +0 -0
- package/src/assets/images/group-workflow.png +0 -0
- package/src/assets/images/workflow/workflow-button.png +0 -0
- package/src/assets/images/workflow/workflow-history-texts.png +0 -0
- package/src/assets/images/workflow/workflow-history.png +0 -0
- package/src/assets/images/workflow/workflow-imagehistory.png +0 -0
- package/src/assets/images/workflow/workflow-texthistory .png +0 -0
- package/src/assets/logo.svg +0 -1
- package/src/assets/main.css +0 -1
- package/src/i18n/langs/cn.js +0 -52
- package/src/i18n/langs/en.js +0 -52
- package/src/stores/counter.ts +0 -12
- package/src/utils/api/api-util.ts +0 -176
- package/src/utils/charts/chart-util.ts +0 -41
- package/src/utils/common-util.ts +0 -96
- package/src/utils/container-style-util.ts +0 -237
- package/src/utils/eventBus.ts +0 -14
- package/src/utils/events/event-util.ts +0 -790
- package/src/utils/events/jump-page-util.ts +0 -0
- package/src/utils/events/standard-event.ts +0 -2075
- package/src/utils/events/validator-util.ts +0 -474
- package/src/utils/global-refs.ts +0 -160
- package/src/utils/interfaces/page-design-types.ts +0 -259
- package/src/utils/page-helper-util.ts +0 -850
- package/src/utils/page-init-util.ts +0 -291
- package/src/utils/page-permission-util.ts +0 -521
- package/src/utils/store-util.ts +0 -41
- package/src/utils/store.ts +0 -3
- package/src/utils/table-utils.ts +0 -31
- /package/{lib/src → dist/es/components/runtime}/utils/store-util.d.ts +0 -0
- /package/{lib/src → dist/es/components/runtime}/utils/store.d.ts +0 -0
- /package/{lib → dist/es}/favicon.ico +0 -0
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import { Component, PageContext } from '../../../../utils/interfaces/page-design-types';
|
|
2
|
+
|
|
3
|
+
type Condition = {
|
|
4
|
+
propValueType: string;
|
|
5
|
+
joinSign: string;
|
|
6
|
+
dataType: 'number' | 'date' | 'string' | 'boolean' | 'TEXT' | 'DATE' | 'TIME' | 'DOUBLE' | 'FLOAT' | 'INTEGER' | 'LONG';
|
|
7
|
+
rightBracket: string;
|
|
8
|
+
leftBracket: string;
|
|
9
|
+
propValue: string;
|
|
10
|
+
propName: string;
|
|
11
|
+
operator: 'GT' | 'LT' | 'GET' | 'LET' | 'NET' | 'CONTAIN' | 'NOT_CONTAIN' | 'IS_NULL' | 'IS_NOT_NULL';
|
|
12
|
+
variableIsNull?: string;
|
|
13
|
+
};
|
|
14
|
+
type Data = Record<string, any>;
|
|
15
|
+
export declare class ExpressionEvaluator {
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @param pageContext 页面上下文
|
|
19
|
+
* @param conditions 条件集合
|
|
20
|
+
* @param data 数据对象,一般是行数据
|
|
21
|
+
* @returns
|
|
22
|
+
*/
|
|
23
|
+
static evaluate(pageContext: PageContext, conditions: Condition[], data?: Data): boolean;
|
|
24
|
+
private static createExpression;
|
|
25
|
+
private static getComparisonExpression;
|
|
26
|
+
private static changeDataType;
|
|
27
|
+
private static parseValue;
|
|
28
|
+
private static evaluateExpression;
|
|
29
|
+
}
|
|
30
|
+
export declare function getSummaryTitleColumn(configure: Component): any;
|
|
31
|
+
export declare function getSummaryDataColumn(configure: Component, type: string): any;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @param summaryColumn configure.props.summaries.dataColumn中保存的对应属性的配置
|
|
35
|
+
* @param data 数组数据
|
|
36
|
+
* @param column el-table传递的column
|
|
37
|
+
* @param pageContext 页面上下文
|
|
38
|
+
* @returns
|
|
39
|
+
*/
|
|
40
|
+
export declare function summaryStatistics(summaryColumn: any, data: any, prop: string, pageContext: PageContext): string;
|
|
41
|
+
export declare function replacePlaceholders(template: string, data: {
|
|
42
|
+
[key: string]: any;
|
|
43
|
+
}): string;
|
|
44
|
+
export declare function getHeaderCellStyleUtil(data: any, runtimeStyle: any, props: any): any;
|
|
45
|
+
export declare function getRowStyleUtil(data: any, groupSummaryDataRowIndex: number[], props: any): any;
|
|
46
|
+
export declare function getCellStyleUtil(data: any, cellStyles: any, props: any): {};
|
|
47
|
+
export declare function rowDataToColumn(data: any, configure: Component, sourceTableColumnsConfig: any): any;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @param data 数据
|
|
51
|
+
* @param configure
|
|
52
|
+
* @returns
|
|
53
|
+
*/
|
|
54
|
+
export declare function colDataToRow(data: any, configure: Component): any;
|
|
55
|
+
export declare function getColumnToRowTableConfig(configure: Component): any;
|
|
56
|
+
export declare function getIndexColumn(): {
|
|
57
|
+
props: {
|
|
58
|
+
base: {
|
|
59
|
+
name: string;
|
|
60
|
+
prop: string;
|
|
61
|
+
columnWidth: number;
|
|
62
|
+
sortable: boolean;
|
|
63
|
+
visible: boolean;
|
|
64
|
+
displayOrder: number;
|
|
65
|
+
alignTitle: string;
|
|
66
|
+
alignContent: string;
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
events: any[];
|
|
70
|
+
style: {
|
|
71
|
+
titleFont: {};
|
|
72
|
+
contentFont: {};
|
|
73
|
+
width: {};
|
|
74
|
+
background: {};
|
|
75
|
+
tableCell: {
|
|
76
|
+
type: string;
|
|
77
|
+
model: string;
|
|
78
|
+
}[];
|
|
79
|
+
conentPadding: {};
|
|
80
|
+
tittlePadding: {};
|
|
81
|
+
border: {};
|
|
82
|
+
shadow: {};
|
|
83
|
+
tittleClass: string;
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
export declare function getNewColumnConfig(prop: string, name: string, displayOrder: number, dataType: string): {
|
|
87
|
+
uuid: number;
|
|
88
|
+
name: string;
|
|
89
|
+
props: {
|
|
90
|
+
base: {
|
|
91
|
+
prop: string;
|
|
92
|
+
name: string;
|
|
93
|
+
displayOrder: number;
|
|
94
|
+
sortable: boolean;
|
|
95
|
+
headerAlign: string;
|
|
96
|
+
align: string;
|
|
97
|
+
fixed: boolean;
|
|
98
|
+
visible: boolean;
|
|
99
|
+
dataType: string;
|
|
100
|
+
};
|
|
101
|
+
format: {};
|
|
102
|
+
size: {
|
|
103
|
+
pc: {};
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
style: {};
|
|
107
|
+
componentIndex: number;
|
|
108
|
+
runtime: {
|
|
109
|
+
common: {
|
|
110
|
+
class: string;
|
|
111
|
+
style: {
|
|
112
|
+
pc_style: {};
|
|
113
|
+
pc_class: string;
|
|
114
|
+
};
|
|
115
|
+
};
|
|
116
|
+
};
|
|
117
|
+
};
|
|
118
|
+
export declare function computeFormula(itemConfs: any, datas: any, entity: any): void;
|
|
119
|
+
export declare function formatColContent(row: any, format: any, column: any, pageContext: any, configure: any): any;
|
|
120
|
+
export declare function mergeRowByProperty(row: any, column: any, rowIndex: number, property: string, data: any): number[];
|
|
121
|
+
export {};
|
|
@@ -0,0 +1,419 @@
|
|
|
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) {
|
|
122
|
+
let n = "";
|
|
123
|
+
const a = e.summaryMode, s = t.map((e2) => Number(e2[r])).filter((e2) => !Number.isNaN(e2));
|
|
124
|
+
if (s.length > 0) if ("custom" === a) {
|
|
125
|
+
const a2 = getCustomFunc(o, e.customFunc);
|
|
126
|
+
if (a2) try {
|
|
127
|
+
const e2 = a2.apply(a2, [{ data: t, prop: r }]);
|
|
128
|
+
n = e2 ? ` ${e2}` : " N/A";
|
|
129
|
+
} catch (e2) {
|
|
130
|
+
console.error("自定义函数脚本错误:", t, e2);
|
|
131
|
+
}
|
|
132
|
+
else n = " N/A";
|
|
133
|
+
} else switch (a) {
|
|
134
|
+
case "sum":
|
|
135
|
+
n = ` ${s.reduce((e2, t2) => e2 + t2, 0)}`;
|
|
136
|
+
break;
|
|
137
|
+
case "avg":
|
|
138
|
+
n = " " + s.reduce((e2, t2) => e2 + t2, 0) / s.length;
|
|
139
|
+
break;
|
|
140
|
+
case "min":
|
|
141
|
+
n = ` ${Math.min(...s)}`;
|
|
142
|
+
break;
|
|
143
|
+
case "max":
|
|
144
|
+
n = ` ${Math.max(...s)}`;
|
|
145
|
+
break;
|
|
146
|
+
default:
|
|
147
|
+
n = " N/A";
|
|
148
|
+
}
|
|
149
|
+
else n = " N/A";
|
|
150
|
+
return n;
|
|
151
|
+
}
|
|
152
|
+
function replacePlaceholders(e, t) {
|
|
153
|
+
if (e) return e.replace(/\$\{row\.(\w+)\}/g, (e2, r) => Object.prototype.hasOwnProperty.call(t, r) ? t[r] : "");
|
|
154
|
+
}
|
|
155
|
+
function getHeaderCellStyleUtil(e, t, r) {
|
|
156
|
+
var _a;
|
|
157
|
+
const o = {};
|
|
158
|
+
e.column.property && ((_a = t.titleStyle) == null ? void 0 : _a.forEach((t2) => {
|
|
159
|
+
if (t2.field && t2.field.includes(e.column.property)) if (t2.scopeFunc) {
|
|
160
|
+
const n2 = getCustomFunc(r.pageContext, t2.scopeFunc);
|
|
161
|
+
if (n2) try {
|
|
162
|
+
false !== n2.apply(n2, [{ item: t2, data: e }]) && copyStyle(o, t2);
|
|
163
|
+
} catch (r2) {
|
|
164
|
+
console.error("自定义函数脚本错误:", t2, e, r2);
|
|
165
|
+
}
|
|
166
|
+
} else copyStyle(o, t2);
|
|
167
|
+
}));
|
|
168
|
+
const n = getCellStyleUtil(e, t.cellTitleStyle, r);
|
|
169
|
+
return n && Object.assign(o, n), o;
|
|
170
|
+
}
|
|
171
|
+
function getRowStyleUtil(e, t, r) {
|
|
172
|
+
const o = {};
|
|
173
|
+
if (r.configure.style.rowStyle) for (let t2 = 0; t2 < r.configure.style.rowStyle.length; t2++) {
|
|
174
|
+
const n = r.configure.style.rowStyle[t2];
|
|
175
|
+
if (n.scopeFunc) {
|
|
176
|
+
const t3 = getCustomFunc(r.pageContext, n.scopeFunc);
|
|
177
|
+
if (t3) try {
|
|
178
|
+
const r2 = t3.apply(t3, [{ data: e }]);
|
|
179
|
+
null != r2 && false !== r2 && copyStyle(o, n);
|
|
180
|
+
} catch (t4) {
|
|
181
|
+
console.error("自定义函数脚本错误:", e, t4);
|
|
182
|
+
}
|
|
183
|
+
} else if (n.matchingCondition) {
|
|
184
|
+
const t3 = ExpressionEvaluator.evaluate(r.pageContext, n.matchingCondition, e.row);
|
|
185
|
+
(t3 || void 0 === t3) && copyStyle(o, n);
|
|
186
|
+
} else copyStyle(o, n);
|
|
187
|
+
}
|
|
188
|
+
if (t && t.length > 0 && -1 !== t.indexOf(e.rowIndex)) {
|
|
189
|
+
const e2 = {};
|
|
190
|
+
if (r.configure.style.collectStyle && r.configure.style.collectStyle.length > 0) for (let t2 = 0; t2 < r.configure.style.collectStyle.length; t2++) {
|
|
191
|
+
copyStyle(e2, r.configure.style.collectStyle[t2]);
|
|
192
|
+
}
|
|
193
|
+
return 0 === Object.keys(e2).length && (e2["background-color"] = "var(--el-table-row-hover-bg-color)"), e2;
|
|
194
|
+
}
|
|
195
|
+
return o;
|
|
196
|
+
}
|
|
197
|
+
function getCellStyleUtil(e, t, r) {
|
|
198
|
+
const o = {};
|
|
199
|
+
if (t) for (let n = 0; n < t.length; n++) {
|
|
200
|
+
const a = t[n];
|
|
201
|
+
if (isSetStyle(a)) if (a.scopeFunc) {
|
|
202
|
+
const t2 = getCustomFunc(r.pageContext, a.scopeFunc);
|
|
203
|
+
if (t2) try {
|
|
204
|
+
false !== t2.apply(t2, [{ data: e }]) && copyStyle(o, a);
|
|
205
|
+
} catch (t3) {
|
|
206
|
+
console.error("自定义函数脚本错误:", e, t3);
|
|
207
|
+
}
|
|
208
|
+
} else if (a.matchingCondition) {
|
|
209
|
+
const t2 = ExpressionEvaluator.evaluate(r.pageContext, a.matchingCondition, e.row);
|
|
210
|
+
(t2 || void 0 === t2) && copyStyle(o, a);
|
|
211
|
+
} else copyStyle(o, a);
|
|
212
|
+
}
|
|
213
|
+
return o;
|
|
214
|
+
}
|
|
215
|
+
function isSetStyle(e) {
|
|
216
|
+
let t;
|
|
217
|
+
return e.customStyle && (t = JSON.parse(e.customStyle)), !!(e.style && Object.keys(e.style).length > 0 || t && Object.keys(t).length > 0);
|
|
218
|
+
}
|
|
219
|
+
function copyStyle(e, t) {
|
|
220
|
+
Object.assign(e, t.style), t.customStyle && Object.assign(e, JSON.parse(t.customStyle));
|
|
221
|
+
}
|
|
222
|
+
function rowDataToColumn(e, t, r) {
|
|
223
|
+
const o = t.props.dataOrigin.groupField, n = t.props.dataOrigin.rowToColumn.titleColumns, a = t.props.dataOrigin.rowToColumn.dataColumns, s = [], l = {};
|
|
224
|
+
if (o && o.length > 0) e.forEach((e2) => {
|
|
225
|
+
const t2 = o.map((t3) => e2[t3]).join("|");
|
|
226
|
+
if (!l[t2]) {
|
|
227
|
+
const r2 = {};
|
|
228
|
+
o.forEach((t3) => r2[t3] = e2[t3]), l[t2] = r2, s.push(r2);
|
|
229
|
+
}
|
|
230
|
+
a.forEach((r2) => {
|
|
231
|
+
const o2 = `${n.map((t3) => e2[t3]).join("")}${r2}`;
|
|
232
|
+
l[t2][o2] = e2[r2];
|
|
233
|
+
});
|
|
234
|
+
});
|
|
235
|
+
else {
|
|
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);
|
|
252
|
+
});
|
|
253
|
+
}
|
|
254
|
+
return s;
|
|
255
|
+
}
|
|
256
|
+
function colDataToRow(e, t) {
|
|
257
|
+
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;
|
|
258
|
+
if (0 === e.length) return e;
|
|
259
|
+
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) => {
|
|
260
|
+
e2[r2] = t2.prop;
|
|
261
|
+
}), e2), {});
|
|
262
|
+
return i.forEach((e2) => {
|
|
263
|
+
c.columns.forEach((t2) => {
|
|
264
|
+
const i2 = c.prop, p = {};
|
|
265
|
+
if (r.forEach((t3) => {
|
|
266
|
+
p[t3] = e2[t3];
|
|
267
|
+
}), p[i2] = e2[t2], n.length > 1) {
|
|
268
|
+
const r2 = s.find((e3) => e3.props.includes(t2));
|
|
269
|
+
r2 && r2.props.length > 1 && r2.props.forEach((r3) => {
|
|
270
|
+
r3 !== t2 && u[r3] && (p[u[r3]] = e2[r3]);
|
|
271
|
+
});
|
|
272
|
+
}
|
|
273
|
+
o.forEach((e3) => {
|
|
274
|
+
const r2 = a.filter((t3) => t3.relatedTitle === e3.prop);
|
|
275
|
+
let o2 = false;
|
|
276
|
+
r2 && r2.length > 0 && r2.forEach((r3) => {
|
|
277
|
+
if (r3.columns.includes(t2)) return p[e3.prop] = r3.label, void (o2 = true);
|
|
278
|
+
}), o2 || (p[e3.prop] = t2);
|
|
279
|
+
}), l.push(p);
|
|
280
|
+
});
|
|
281
|
+
}), l;
|
|
282
|
+
}
|
|
283
|
+
function getColumnToRowTableConfig(e) {
|
|
284
|
+
const t = e.items, r = e.props.dataOrigin.groupField, o = e.props.dataOrigin.columnToRow.titleColumns, n = e.props.dataOrigin.columnToRow.dataColumns, a = [];
|
|
285
|
+
r && r.length > 0 && r.forEach((e2) => {
|
|
286
|
+
if (t) {
|
|
287
|
+
const r2 = t.find((t2) => t2.props.base.prop === e2);
|
|
288
|
+
r2 && a.push(r2);
|
|
289
|
+
}
|
|
290
|
+
});
|
|
291
|
+
return [...o, ...n].forEach((e2) => {
|
|
292
|
+
if (t) {
|
|
293
|
+
const r2 = t.find((t2) => t2.props.base.prop === e2);
|
|
294
|
+
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: "" } } } });
|
|
295
|
+
}
|
|
296
|
+
}), a;
|
|
297
|
+
}
|
|
298
|
+
function groupBy(e, t) {
|
|
299
|
+
const r = {};
|
|
300
|
+
return e.forEach((e2) => {
|
|
301
|
+
const o = t.map((t2) => e2[t2]).join("|");
|
|
302
|
+
r[o] || (r[o] = { ...e2, records: [] }, t.forEach((t2, n) => {
|
|
303
|
+
r[o][t2] = e2[t2];
|
|
304
|
+
})), r[o].records.push(e2);
|
|
305
|
+
}), Object.values(r).map((e2) => ({ ...e2, records: void 0 }));
|
|
306
|
+
}
|
|
307
|
+
function getIndexColumn() {
|
|
308
|
+
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: "" } };
|
|
309
|
+
}
|
|
310
|
+
function getNewColumnConfig(e, t, r, o) {
|
|
311
|
+
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: "" } } } };
|
|
312
|
+
}
|
|
313
|
+
function computeFormula(itemConfs, datas, entity) {
|
|
314
|
+
Object.keys(itemConfs).forEach((key) => {
|
|
315
|
+
const paramNames = getParamNames(itemConfs[key]);
|
|
316
|
+
datas.forEach((data, index) => {
|
|
317
|
+
const totalValueMap = {};
|
|
318
|
+
for (const e of paramNames) if (e.startsWith("${min.")) totalValueMap[e] = getMinValue(datas, getFieldName(e));
|
|
319
|
+
else if (e.startsWith("${max.")) totalValueMap[e] = getMaxValue(datas, getFieldName(e));
|
|
320
|
+
else if (e.startsWith("${sum.")) totalValueMap[e] = getSumValue(datas, getFieldName(e));
|
|
321
|
+
else if (e.startsWith("${avg.")) totalValueMap[e] = getAvgValue(datas, getFieldName(e));
|
|
322
|
+
else if (e.startsWith("${add.")) {
|
|
323
|
+
const t = getFieldName(e);
|
|
324
|
+
let r = 0;
|
|
325
|
+
try {
|
|
326
|
+
r = Number(data[t]), datas.slice(0, index).forEach((e2) => {
|
|
327
|
+
r += Number(e2[t]);
|
|
328
|
+
});
|
|
329
|
+
} catch (e2) {
|
|
330
|
+
console.error("计算错误:", e2), r = 0;
|
|
331
|
+
}
|
|
332
|
+
totalValueMap[e] = r;
|
|
333
|
+
} 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
|
+
let expr = itemConfs[key];
|
|
335
|
+
Object.keys(totalValueMap).forEach((e) => {
|
|
336
|
+
expr.indexOf(e) > -1 && (expr = expr.replaceAll(e, totalValueMap[e]));
|
|
337
|
+
});
|
|
338
|
+
for (const e of paramNames) expr.indexOf(e) > -1 && (expr = expr.replaceAll(e, 0));
|
|
339
|
+
try {
|
|
340
|
+
data[key] = eval(expr);
|
|
341
|
+
} catch (e) {
|
|
342
|
+
console.error(itemConfs[key] + " 计算错误, 替换后表达式为:" + expr, e), data[key] = 0;
|
|
343
|
+
}
|
|
344
|
+
});
|
|
345
|
+
});
|
|
346
|
+
}
|
|
347
|
+
function getFieldName(e) {
|
|
348
|
+
return e.substring(6, e.length - 1);
|
|
349
|
+
}
|
|
350
|
+
function formatColContent(e, t, r, o, n) {
|
|
351
|
+
const a = e[r.props.base.prop];
|
|
352
|
+
switch (t.type) {
|
|
353
|
+
case "number":
|
|
354
|
+
return formatNumber(a, t);
|
|
355
|
+
case "currency":
|
|
356
|
+
return formatCurrency(a, t);
|
|
357
|
+
case "percent":
|
|
358
|
+
return formatPercent(a, t);
|
|
359
|
+
case "custom":
|
|
360
|
+
return formatCustomFunc(e, t, r, o, n);
|
|
361
|
+
default:
|
|
362
|
+
return a;
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
function formatNumber(e, t) {
|
|
366
|
+
let r = e;
|
|
367
|
+
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;
|
|
368
|
+
}
|
|
369
|
+
function formatCurrency(e, t) {
|
|
370
|
+
let r = e;
|
|
371
|
+
return r || (r = 0), t.decimalDigit && (r = Number(e).toFixed(t.decimalDigit)), t.symbol && (r = `${t.symbol} ${r}`), r;
|
|
372
|
+
}
|
|
373
|
+
function formatPercent(e, t) {
|
|
374
|
+
let r = e;
|
|
375
|
+
return r || (r = 0), t.decimalDigit && (r = Number(e).toFixed(t.decimalDigit)), r + " %";
|
|
376
|
+
}
|
|
377
|
+
function formatCustomFunc(e, t, r, o, n) {
|
|
378
|
+
const a = getCustomFunc(o, t.customFunc);
|
|
379
|
+
if (a) {
|
|
380
|
+
try {
|
|
381
|
+
return a.apply(a, [{ pageContext: o, configureObj: n, row: e, prop: r.props.base.prop }]);
|
|
382
|
+
} catch (t2) {
|
|
383
|
+
console.error("自定义函数脚本错误:", e, t2);
|
|
384
|
+
}
|
|
385
|
+
return "";
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
function mergeRowByProperty(e, t, r, o, n) {
|
|
389
|
+
const a = e[o];
|
|
390
|
+
let s = 1, l = true;
|
|
391
|
+
for (let e2 = r - 1; e2 >= 0; e2--) {
|
|
392
|
+
if (n[e2][o] === a) {
|
|
393
|
+
l = false;
|
|
394
|
+
break;
|
|
395
|
+
}
|
|
396
|
+
break;
|
|
397
|
+
}
|
|
398
|
+
if (!l) return [0, 0];
|
|
399
|
+
for (let e2 = r + 1; e2 < n.length && n[e2][o] === a; e2++) s++;
|
|
400
|
+
return [s, 1];
|
|
401
|
+
}
|
|
402
|
+
export {
|
|
403
|
+
ExpressionEvaluator,
|
|
404
|
+
colDataToRow,
|
|
405
|
+
computeFormula,
|
|
406
|
+
formatColContent,
|
|
407
|
+
getCellStyleUtil,
|
|
408
|
+
getColumnToRowTableConfig,
|
|
409
|
+
getHeaderCellStyleUtil,
|
|
410
|
+
getIndexColumn,
|
|
411
|
+
getNewColumnConfig,
|
|
412
|
+
getRowStyleUtil,
|
|
413
|
+
getSummaryDataColumn,
|
|
414
|
+
getSummaryTitleColumn,
|
|
415
|
+
mergeRowByProperty,
|
|
416
|
+
replacePlaceholders,
|
|
417
|
+
rowDataToColumn,
|
|
418
|
+
summaryStatistics
|
|
419
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { defineComponent as e, createBlock as o, openBlock 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) => (u(), o(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, createBlock as n, openBlock as u, withCtx as l, createElementBlock as t, createCommentVNode as r, Fragment as c, renderList 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 u(), n(s, { "header-align": "center" }, { header: l(() => [m(p(e2.groupColumn.titleText), 1)]), default: l(() => [e2.groupColumn.children && e2.groupColumn.children.length > 0 ? (u(true), t(c, { key: 0 }, g(e2.groupColumn.children, (o2, l2) => (u(), t(c, { key: l2 }, [o2.children && o2.children.length > 0 ? (u(), n(i, { key: l2, configure: e2.configure, pageContext: e2.pageContext, groupColumnItem: o2, columnsConfigKeyValues: e2.columnsConfigKeyValues }, null, 8, ["configure", "pageContext", "groupColumnItem", "columnsConfigKeyValues"])) : (u(), n(a, { key: 1, pageContext: e2.pageContext, configure: e2.configure, column: e2.columnsConfigKeyValues[o2.columnUuid] }, null, 8, ["pageContext", "configure", "column"]))], 64))), 128)) : r("", true)]), _: 1 });
|
|
7
|
+
} });
|
|
8
|
+
export {
|
|
9
|
+
f as default
|
|
10
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { defineComponent as o, ref as e, resolveComponent as t, createBlock as r, openBlock as p, withCtx as l, createElementBlock as s, Fragment as n, createTextVNode as a, toDisplayString as u, resolveDynamicComponent as i, createVNode as c, createCommentVNode as m, createElementVNode as f, normalizeClass 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
|
+
const k = { key: 0 }, w = { key: 1 }, h = { 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) {
|
|
18
|
+
const C2 = o2, j = e(false);
|
|
19
|
+
let v = null;
|
|
20
|
+
function O(o3, e2, t2, r2) {
|
|
21
|
+
}
|
|
22
|
+
function _(o3) {
|
|
23
|
+
const e2 = b(C2.pageContext, C2.configure, C2.column.linkPage, o3);
|
|
24
|
+
let t2 = false;
|
|
25
|
+
return e2 && (t2 = e2.show, v = e2.toPage), t2;
|
|
26
|
+
}
|
|
27
|
+
function P(o3) {
|
|
28
|
+
if (v) {
|
|
29
|
+
const e2 = C2.pageContext.code + "_", t2 = JSON.parse(JSON.stringify(v));
|
|
30
|
+
t2.base = { successOperation: "closeWindow" };
|
|
31
|
+
const r2 = { id: o3.id ? o3.id : o3.ID, selections: [o3] };
|
|
32
|
+
y.$emit(e2 + "open-dialog", { pageContext: C2.pageContext, configureObj: { props: t2 }, eventParams: r2 });
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
function T(o3, e2) {
|
|
36
|
+
return d(o3, e2, C2.column, C2.pageContext, C2.configure);
|
|
37
|
+
}
|
|
38
|
+
return C2.column.linkPage && C2.column.linkPage.length > 0 && (j.value = true), (e2, d2) => {
|
|
39
|
+
const y2 = t("el-table-column"), b2 = t("el-progress"), C3 = t("el-tag"), v2 = t("el-link");
|
|
40
|
+
return "$index" === o2.column.props.base.prop ? (p(), r(y2, { key: 0, label: o2.column.props.base.name, type: "index", align: "center", "header-align": "center", width: "80" }, null, 8, ["label"])) : (p(), r(y2, { key: 1, prop: o2.column.props.base.prop, width: o2.column.props.base.width ? o2.column.props.base.width : "", 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 ? (p(), s(n, { key: 0 }, [a(u(o2.column.props.format.status) + " ", 1), "customControl" === o2.column.props.format.type ? (p(), r(i(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 ? (p(), r(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 ? (p(), s(n, { key: 2 }, [o2.column.props.format.isTag ? (p(), s("span", k, [c(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(u(e3.row[o2.column.props.base.prop]), 1)]), _: 2 }, 1032, ["type", "effect", "hit", "size"])])) : (p(), s("span", w, ["pre" === o2.column.props.format.position ? (p(), s("i", { key: 0, class: g(o2.column.props.format.icon) }, null, 2)) : m("", true), f("span", null, u(e3.row[o2.column.props.base.prop]), 1), "suf" === o2.column.props.format.position ? (p(), s("i", { key: 1, class: g(o2.column.props.format.icon) }, null, 2)) : m("", true)]))], 64)) : (p(), s(n, { key: 3 }, [j.value && _(e3.row) ? (p(), r(v2, { key: 0, type: "primary", onClick: (o3) => P(e3.row) }, { default: l(() => [a(u(T(e3.row, o2.column.props.format)), 1)]), _: 2 }, 1032, ["onClick"])) : (p(), s("span", h, u(T(e3.row, o2.column.props.format)), 1))], 64))], 64)) : j.value && _(e3.row) ? (p(), r(v2, { key: 1, type: "primary", onClick: (o3) => P(e3.row) }, { default: l(() => [a(u(e3.row[o2.column.props.base.prop]), 1)]), _: 2 }, 1032, ["onClick"])) : (p(), s("span", x, u(e3.row[o2.column.props.base.prop]), 1))]), _: 1 }, 8, ["prop", "width", "label", "header-align", "align", "fixed"]));
|
|
41
|
+
};
|
|
42
|
+
} });
|
|
43
|
+
export {
|
|
44
|
+
C as default
|
|
45
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { defineComponent as e, ref as a, resolveComponent as t, createElementBlock as n, openBlock as p, createVNode as l } from "vue";
|
|
2
|
+
const u = { style: { padding: "5px", "text-align": "center" } }, g = e({ __name: "table-pageination", props: { configure: { type: Object, default: () => ({}) }, pageContext: { type: Object, default: () => ({}) }, column: { type: Object, default: () => ({}) }, total: { type: Number, default: 0 } }, emits: ["pageChange", "pageSizeChange"], setup(e2, { emit: g2 }) {
|
|
3
|
+
const i = e2, o = g2, r = a(1), s = a(i.configure.pageination.pageSize), c = (e3) => {
|
|
4
|
+
r.value = e3, o("pageChange", r.value, s.value);
|
|
5
|
+
}, v = (e3) => {
|
|
6
|
+
s.value = e3, o("pageSizeChange", r.value, s.value);
|
|
7
|
+
};
|
|
8
|
+
return (a2, g3) => {
|
|
9
|
+
const i2 = t("el-pagination");
|
|
10
|
+
return p(), n("div", u, [l(i2, { "current-page": r.value, "onUpdate:currentPage": g3[0] || (g3[0] = (e3) => r.value = e3), "page-size": s.value, "onUpdate:pageSize": g3[1] || (g3[1] = (e3) => s.value = e3), "page-sizes": [10, 30, 50, 100], size: "small", layout: "total, sizes, prev, pager, next, jumper", total: e2.total, onCurrentChange: c, onSizeChange: v }, null, 8, ["current-page", "page-size", "total"])]);
|
|
11
|
+
};
|
|
12
|
+
} });
|
|
13
|
+
export {
|
|
14
|
+
g as default
|
|
15
|
+
};
|