super-page-runtime 1.0.17 → 2.0.1
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/assets/chart-themes/theme1.d.ts +4 -0
- package/{lib/src → dist/es}/assets/chart-themes/theme1.js +3 -2
- package/dist/es/assets/chart-themes/theme2.d.ts +4 -0
- package/{lib/src → dist/es}/assets/chart-themes/theme2.js +3 -2
- package/dist/es/assets/chart-themes/theme3.d.ts +4 -0
- package/{lib/src → dist/es}/assets/chart-themes/theme3.js +3 -2
- package/dist/es/components/runtime/index.d.ts +4 -0
- package/{lib/src → dist/es/components/runtime}/utils/api/api-util.js +15 -15
- package/dist/es/components/runtime/utils/assemblys-config.js +257 -0
- package/dist/es/components/runtime/utils/charts/chart-util.d.ts +11 -0
- package/dist/es/components/runtime/utils/charts/chart-util.js +28 -0
- package/{lib/src → dist/es/components/runtime}/utils/common-util.d.ts +5 -0
- package/{lib/src → dist/es/components/runtime}/utils/common-util.js +25 -12
- package/dist/es/components/runtime/utils/eventBus.d.ts +7 -0
- package/dist/es/components/runtime/utils/eventBus.js +11 -0
- package/{lib/src → dist/es/components/runtime}/utils/events/event-util.d.ts +1 -1
- package/{lib/src → dist/es/components/runtime}/utils/events/event-util.js +41 -40
- package/{lib/src → dist/es/components/runtime}/utils/events/standard-event.js +149 -148
- package/{lib/src → dist/es/components/runtime}/utils/events/validator-util.js +23 -23
- package/{lib/src → dist/es/components/runtime}/utils/global-refs.js +8 -8
- package/{lib/src → dist/es/components/runtime}/utils/interfaces/page-design-types.d.ts +2 -0
- package/{lib/src → dist/es/components/runtime}/utils/interfaces/page-design-types.js +3 -3
- package/{lib/src → dist/es/components/runtime}/utils/page-helper-util.d.ts +19 -0
- package/{lib/src → dist/es/components/runtime}/utils/page-helper-util.js +135 -19
- package/{lib/src → dist/es/components/runtime}/utils/page-init-util.js +18 -18
- package/dist/es/components/runtime/utils/page-permission-util.d.ts +26 -0
- package/dist/es/components/runtime/utils/page-permission-util.js +525 -0
- package/{lib/src → dist/es/components/runtime}/utils/store-util.js +5 -5
- package/{lib/src → dist/es/components/runtime}/utils/store.js +3 -2
- package/{lib/src → dist/es/components/runtime}/utils/table-utils.js +10 -9
- 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 +55 -0
- package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +36 -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 +111 -0
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +249 -0
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +62 -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 +57 -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/gauge/gauge-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +50 -0
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +51 -0
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +51 -0
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +52 -0
- package/{lib → dist/es/components}/runtime/views/assemblys/common/export-form-report-dialog.vue.js +34 -27
- 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.js +33 -32
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue2.js +4 -0
- package/{lib → dist/es/components}/runtime/views/assemblys/common/task-informition-dialog.vue.js +30 -29
- 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 +4 -0
- package/{lib → dist/es/components}/runtime/views/assemblys/container/card/card-runtime.vue2.js +24 -23
- 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 +75 -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 +80 -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 +44 -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 +45 -0
- package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue.js +4 -0
- package/{lib → dist/es/components}/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +10 -8
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +70 -0
- package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue.js +4 -0
- package/{lib → dist/es/components}/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +17 -15
- package/{lib → dist/es/components}/runtime/views/assemblys/data/table/main-table-runtime.vue.js +66 -63
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue2.js +4 -0
- package/{lib → dist/es/components}/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +40 -38
- 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/{lib → dist/es/components}/runtime/views/assemblys/data/table/table-runtime.vue2.js +17 -11
- package/dist/es/components/runtime/views/assemblys/error-render.vue.js +23 -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/{lib → dist/es/components}/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +36 -35
- 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 +83 -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 +64 -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 +41 -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 +64 -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 +128 -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 +128 -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 +78 -0
- package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.js +30 -0
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue.js +4 -0
- package/{lib → dist/es/components}/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +37 -36
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.js +4 -0
- package/{lib → dist/es/components}/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +37 -48
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue.js +4 -0
- package/{lib → dist/es/components}/runtime/views/assemblys/form/select/select-runtime.vue2.js +54 -53
- 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 +64 -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 +64 -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 +66 -0
- package/{lib → dist/es}/components/runtime/views/assemblys/object-render.vue.d.ts +1 -1
- package/{lib → dist/es/components}/runtime/views/assemblys/object-render.vue.js +35 -34
- package/dist/es/components/runtime/views/assemblys/object-render.vue2.js +4 -0
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +4 -0
- package/{lib → dist/es/components}/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +17 -16
- package/{lib/super-page-dialog → dist/es/components/runtime/views}/super-page-dialog.vue.js +19 -17
- package/dist/es/components/runtime/views/super-page-dialog.vue2.js +4 -0
- package/{lib → dist/es}/components/runtime/views/super-page.vue.d.ts +1 -1
- package/{lib → dist/es/components}/runtime/views/super-page.vue.js +129 -112
- package/dist/es/components/runtime/views/super-page.vue2.js +4 -0
- package/dist/es/index.d.ts +8 -0
- package/dist/es/index.js +15 -0
- package/package.json +70 -71
- package/src/index.ts +15 -0
- 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/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.vue2.js +0 -3
- package/lib/runtime/views/assemblys/common/remove-signer-dialog.vue2.js +0 -3
- 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/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/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/data/table/main-table-runtime.vue2.js +0 -3
- 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/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/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/rich-text/richtext-runtime.vue.js +0 -3
- package/lib/runtime/views/assemblys/form/select/select-runtime.vue.js +0 -3
- 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.vue2.js +0 -3
- package/lib/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +0 -3
- package/lib/runtime/views/super-page.vue2.js +0 -3
- package/lib/src/utils/charts/chart-util.js +0 -15
- package/lib/super-page-dialog/index.js +0 -3
- 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/api/api-util.d.ts +0 -0
- /package/{lib/src → dist/es/components/runtime}/utils/events/standard-event.d.ts +0 -0
- /package/{lib/src → dist/es/components/runtime}/utils/events/validator-util.d.ts +0 -0
- /package/{lib/src → dist/es/components/runtime}/utils/global-refs.d.ts +0 -0
- /package/{lib/src → dist/es/components/runtime}/utils/page-init-util.d.ts +0 -0
- /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}/components/runtime/views/assemblys/common/export-form-report-dialog.vue.d.ts +0 -0
- /package/{lib → dist/es}/components/runtime/views/assemblys/common/remove-signer-dialog.vue.d.ts +0 -0
- /package/{lib → dist/es}/components/runtime/views/assemblys/common/task-informition-dialog.vue.d.ts +0 -0
- /package/{lib → dist/es}/components/runtime/views/assemblys/error-render.vue.d.ts +0 -0
- /package/{lib/components/super-page-dialog → dist/es/components/runtime/views}/super-page-dialog.vue.d.ts +0 -0
- /package/{lib → dist/es}/favicon.ico +0 -0
package/{lib → dist/es/components}/runtime/views/assemblys/data/table/main-table-runtime.vue.js
RENAMED
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { defineComponent, ref, onMounted, watch, onUnmounted, resolveComponent, openBlock, createElementBlock, createVNode, unref } from "vue";
|
|
2
|
+
import "agilebuilder-ui";
|
|
3
|
+
import { setTableEvents, getEventFuncByType, canExecuteButton, doAfterClickEvent, doBeforeClickEvent, getHandleEvent, gridSelectRecord, gridSelectAllRecords, gridSelectionChange, cellClick, cellDblClick, rowClick, rowDblClick, headerClick } from "../../../../utils/events/event-util.js";
|
|
4
|
+
import { getListCode, getRealRestApiPath } from "../../../../utils/common-util.js";
|
|
5
|
+
import { getSaveFormRequest, standardEvents } from "../../../../utils/events/standard-event.js";
|
|
6
|
+
import { isPromise } from "agilebuilder-ui/src/utils/common-util";
|
|
7
|
+
import { getDataTypeMap, popupToPage } from "../../../../utils/table-utils.js";
|
|
8
|
+
import eventBus from "../../../../utils/eventBus.js";
|
|
9
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
9
10
|
__name: "main-table-runtime",
|
|
10
11
|
props: {
|
|
11
12
|
pageContext: {},
|
|
@@ -21,24 +22,24 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
21
22
|
const system = pageContext.entity.system;
|
|
22
23
|
const tableName = pageContext.tableName;
|
|
23
24
|
const baseURL = window["$vueApp"].config.globalProperties.baseURL;
|
|
24
|
-
const operationButtonObj =
|
|
25
|
-
const eventName =
|
|
26
|
-
const listOptions =
|
|
25
|
+
const operationButtonObj = ref(null);
|
|
26
|
+
const eventName = ref(null);
|
|
27
|
+
const listOptions = ref({});
|
|
27
28
|
listOptions.value = getOptions();
|
|
28
|
-
const gridRef =
|
|
29
|
+
const gridRef = ref(null);
|
|
29
30
|
const urlToListData = getUrlToListData(system);
|
|
30
|
-
const listCode =
|
|
31
|
+
const listCode = getListCode(pageContext.code, pageContext.version, configure.uuid);
|
|
31
32
|
const myPageCode = pageContext.code;
|
|
32
33
|
const eventPageInfo = myPageCode + "_" + listCode;
|
|
33
|
-
const selections =
|
|
34
|
+
const selections = ref([]);
|
|
34
35
|
const listToolbarFormData = pageContext.entity.page;
|
|
35
|
-
const searchFormInfo =
|
|
36
|
+
const searchFormInfo = ref({ data: [] });
|
|
36
37
|
const superGridItems = pageContext.superGridItems;
|
|
37
38
|
const superGridSetting = superGridItems ? superGridItems[configure.uuid] : null;
|
|
38
39
|
console.log("superGridSetting1111===", superGridItems, superGridSetting);
|
|
39
|
-
|
|
40
|
+
onMounted(() => {
|
|
40
41
|
window.addEventListener("message", recieveMessage);
|
|
41
|
-
|
|
42
|
+
eventBus.$on(
|
|
42
43
|
eventPageInfo + "-close-component-page-dialog",
|
|
43
44
|
function({ jumpInfo, popEntity, popPageCode }) {
|
|
44
45
|
gridRef.value.closePageDialog({
|
|
@@ -48,38 +49,38 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
48
49
|
});
|
|
49
50
|
}
|
|
50
51
|
);
|
|
51
|
-
|
|
52
|
-
|
|
52
|
+
eventBus.$on(eventPageInfo + "_close-dialog-get-entity", () => {
|
|
53
|
+
eventBus.$emit(eventPageInfo + "_close-super-dialog");
|
|
53
54
|
});
|
|
54
55
|
});
|
|
55
|
-
|
|
56
|
+
watch(
|
|
56
57
|
() => props.pageContext.searchFormData,
|
|
57
58
|
(searchFormData) => {
|
|
58
59
|
searchFormInfo.value.data = searchFormData;
|
|
59
60
|
}
|
|
60
61
|
);
|
|
61
|
-
|
|
62
|
+
watch(
|
|
62
63
|
() => props.pageContext.entity.data,
|
|
63
64
|
(searchFormData) => {
|
|
64
65
|
searchGridData(props.pageContext.entity.data);
|
|
65
66
|
}
|
|
66
67
|
);
|
|
67
|
-
|
|
68
|
+
watch(
|
|
68
69
|
() => props.pageContext.entity.page,
|
|
69
70
|
(searchFormData) => {
|
|
70
71
|
searchGridData(props.pageContext.entity.page);
|
|
71
72
|
}
|
|
72
73
|
);
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
74
|
+
onUnmounted(() => {
|
|
75
|
+
eventBus.$off(eventPageInfo + "-close-component-page-dialog");
|
|
76
|
+
eventBus.$off(eventPageInfo + "_close-dialog-get-entity");
|
|
76
77
|
});
|
|
77
78
|
function getUrlToListData(system2) {
|
|
78
79
|
let urlToListData2;
|
|
79
80
|
if (!pageContext.isTest) {
|
|
80
81
|
urlToListData2 = baseURL + "/dsc/commons/list";
|
|
81
82
|
if (urlToListData2) {
|
|
82
|
-
urlToListData2 =
|
|
83
|
+
urlToListData2 = getRealRestApiPath(urlToListData2, system2);
|
|
83
84
|
}
|
|
84
85
|
}
|
|
85
86
|
return urlToListData2;
|
|
@@ -152,7 +153,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
152
153
|
if (!system || !tableName) {
|
|
153
154
|
return;
|
|
154
155
|
}
|
|
155
|
-
|
|
156
|
+
getDataTypeMap(system, tableName).then((result) => {
|
|
156
157
|
pageContext["dataTypeMaps"][tableName] = result["dataTypeMap"];
|
|
157
158
|
setOperationButtons(options);
|
|
158
159
|
});
|
|
@@ -217,11 +218,11 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
217
218
|
}
|
|
218
219
|
function setGridEvents(options) {
|
|
219
220
|
const tableEvents = configure.events;
|
|
220
|
-
|
|
221
|
+
setTableEvents(options, tableEvents, pageContext, configure);
|
|
221
222
|
const customEvents = pageContext.customEvents;
|
|
222
223
|
if (customEvents) {
|
|
223
224
|
options.eventCallBack = customEvents;
|
|
224
|
-
const rowStyleEvent =
|
|
225
|
+
const rowStyleEvent = getEventFuncByType(pageContext, tableEvents, "rowStyle");
|
|
225
226
|
if (rowStyleEvent) {
|
|
226
227
|
options.rowStyleRender = rowStyleEvent;
|
|
227
228
|
}
|
|
@@ -234,7 +235,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
234
235
|
const buttonConfigure = operationButtonObj.value[eventName.value];
|
|
235
236
|
listOptions.value["lineEditOptions"]["beforeSave"] = beforeSaveRow;
|
|
236
237
|
pageContext.editData = row;
|
|
237
|
-
|
|
238
|
+
canExecuteButton({ pageContext, configureObj: buttonConfigure }).then((result) => {
|
|
238
239
|
if (result["canExecute"] === true) {
|
|
239
240
|
listOptions.value["lineEditOptions"]["saveRow"] = saveLineEditRow;
|
|
240
241
|
gridRef.value.saveRow(rowIndex, listCode).then(() => {
|
|
@@ -245,7 +246,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
245
246
|
column,
|
|
246
247
|
rowIndex
|
|
247
248
|
};
|
|
248
|
-
|
|
249
|
+
doAfterClickEvent(pageContext, buttonConfigure, otherParams);
|
|
249
250
|
});
|
|
250
251
|
}
|
|
251
252
|
}).finally(() => {
|
|
@@ -282,12 +283,12 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
282
283
|
row,
|
|
283
284
|
columns
|
|
284
285
|
};
|
|
285
|
-
return
|
|
286
|
+
return doBeforeClickEvent(pageContext, buttonConfigure, otherParams);
|
|
286
287
|
}
|
|
287
288
|
function saveLineEditRow(row, columns, dataTypeMap, dynamicColumnInfo, additionalParamMap, mainDefaultValueColumns) {
|
|
288
289
|
const buttonConfigure = operationButtonObj.value[eventName.value];
|
|
289
290
|
return new Promise((resolve, reject) => {
|
|
290
|
-
|
|
291
|
+
getSaveFormRequest(
|
|
291
292
|
pageContext,
|
|
292
293
|
buttonConfigure,
|
|
293
294
|
"/dsc/commons",
|
|
@@ -317,11 +318,11 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
317
318
|
column,
|
|
318
319
|
rowIndex
|
|
319
320
|
};
|
|
320
|
-
const beforeClickResult =
|
|
321
|
+
const beforeClickResult = doBeforeClickEvent(pageContext, buttonConfigure, otherParams);
|
|
321
322
|
if (!beforeClickResult) {
|
|
322
323
|
return;
|
|
323
324
|
}
|
|
324
|
-
if (
|
|
325
|
+
if (isPromise(beforeClickResult)) {
|
|
325
326
|
beforeClickResult.then((result) => {
|
|
326
327
|
if (result) {
|
|
327
328
|
gridRef.value.restoreRow(rowIndex, listCode);
|
|
@@ -337,7 +338,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
337
338
|
column,
|
|
338
339
|
rowIndex
|
|
339
340
|
};
|
|
340
|
-
|
|
341
|
+
doAfterClickEvent(pageContext, configure, afterOtherParams);
|
|
341
342
|
}
|
|
342
343
|
function editRow(originalValue, formatValue, row, column, rowIndex) {
|
|
343
344
|
const buttonConfigure = operationButtonObj.value[eventName.value];
|
|
@@ -348,11 +349,11 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
348
349
|
column,
|
|
349
350
|
rowIndex
|
|
350
351
|
};
|
|
351
|
-
const beforeClickResult =
|
|
352
|
+
const beforeClickResult = doBeforeClickEvent(pageContext, buttonConfigure, otherParams);
|
|
352
353
|
if (!beforeClickResult) {
|
|
353
354
|
return;
|
|
354
355
|
}
|
|
355
|
-
if (
|
|
356
|
+
if (isPromise(beforeClickResult)) {
|
|
356
357
|
beforeClickResult.then((result) => {
|
|
357
358
|
if (result) {
|
|
358
359
|
editRowReal(originalValue, formatValue, row, column, rowIndex, buttonConfigure);
|
|
@@ -364,7 +365,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
364
365
|
}
|
|
365
366
|
function editRowReal(originalValue, formatValue, row, column, rowIndex, buttonConfigure) {
|
|
366
367
|
pageContext.editData = row;
|
|
367
|
-
|
|
368
|
+
canExecuteButton({ pageContext, configureObj: buttonConfigure }).then((result) => {
|
|
368
369
|
if (result["canExecute"] === true) {
|
|
369
370
|
gridRef.value.editRow(rowIndex, listCode);
|
|
370
371
|
const afterOtherParams = {
|
|
@@ -374,7 +375,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
374
375
|
column,
|
|
375
376
|
rowIndex
|
|
376
377
|
};
|
|
377
|
-
|
|
378
|
+
doAfterClickEvent(pageContext, configure, afterOtherParams);
|
|
378
379
|
}
|
|
379
380
|
}).finally(() => {
|
|
380
381
|
pageContext.editData = null;
|
|
@@ -389,11 +390,11 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
389
390
|
column,
|
|
390
391
|
rowIndex
|
|
391
392
|
};
|
|
392
|
-
const beforeClickResult =
|
|
393
|
+
const beforeClickResult = doBeforeClickEvent(pageContext, buttonConfigure, otherParams);
|
|
393
394
|
if (!beforeClickResult) {
|
|
394
395
|
return;
|
|
395
396
|
}
|
|
396
|
-
if (
|
|
397
|
+
if (isPromise(beforeClickResult)) {
|
|
397
398
|
beforeClickResult.then((result) => {
|
|
398
399
|
if (result) {
|
|
399
400
|
deleteRowReal(originalValue, formatValue, row, column, rowIndex, buttonConfigure);
|
|
@@ -406,7 +407,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
406
407
|
function deleteRowReal(originalValue, formatValue, row, column, rowIndex, buttonConfigure) {
|
|
407
408
|
if (row.id || row.ID) {
|
|
408
409
|
pageContext.editData = row;
|
|
409
|
-
|
|
410
|
+
canExecuteButton({ pageContext, configureObj: buttonConfigure }).then((result) => {
|
|
410
411
|
if (result["canExecute"] === true) {
|
|
411
412
|
const ids = [];
|
|
412
413
|
if (row.id) {
|
|
@@ -414,7 +415,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
414
415
|
} else {
|
|
415
416
|
ids.push(row.ID);
|
|
416
417
|
}
|
|
417
|
-
|
|
418
|
+
standardEvents.delete({
|
|
418
419
|
pageContext,
|
|
419
420
|
configureObj: buttonConfigure,
|
|
420
421
|
ids,
|
|
@@ -433,7 +434,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
433
434
|
column,
|
|
434
435
|
rowIndex
|
|
435
436
|
};
|
|
436
|
-
|
|
437
|
+
doAfterClickEvent(pageContext, configure, afterOtherParams);
|
|
437
438
|
}
|
|
438
439
|
}
|
|
439
440
|
function searchGridData(data) {
|
|
@@ -501,7 +502,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
501
502
|
button
|
|
502
503
|
};
|
|
503
504
|
const buttonConfigure = operationButtonObj.value[eventName.value];
|
|
504
|
-
|
|
505
|
+
getHandleEvent(null, pageContext, buttonConfigure, "click", otherParams);
|
|
505
506
|
}
|
|
506
507
|
function recieveMessage(event) {
|
|
507
508
|
if (event.data === "close_open_win") {
|
|
@@ -514,20 +515,20 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
514
515
|
selection,
|
|
515
516
|
row
|
|
516
517
|
};
|
|
517
|
-
|
|
518
|
+
gridSelectRecord(pageContext, configure, params);
|
|
518
519
|
}
|
|
519
520
|
function selectAll(selection) {
|
|
520
521
|
selections.value = selection;
|
|
521
522
|
const params = {
|
|
522
523
|
selection
|
|
523
524
|
};
|
|
524
|
-
|
|
525
|
+
gridSelectAllRecords(pageContext, configure, params);
|
|
525
526
|
}
|
|
526
527
|
function selectionChange(newSelection) {
|
|
527
528
|
const params = {
|
|
528
529
|
newSelection
|
|
529
530
|
};
|
|
530
|
-
|
|
531
|
+
gridSelectionChange(pageContext, configure, params);
|
|
531
532
|
}
|
|
532
533
|
function cellClickEvent(row, column, cell, event) {
|
|
533
534
|
const params = {
|
|
@@ -536,7 +537,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
536
537
|
cell,
|
|
537
538
|
event
|
|
538
539
|
};
|
|
539
|
-
|
|
540
|
+
cellClick(pageContext, configure, params);
|
|
540
541
|
}
|
|
541
542
|
function cellDblClickEvent(row, column, cell, event) {
|
|
542
543
|
const params = {
|
|
@@ -545,7 +546,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
545
546
|
cell,
|
|
546
547
|
event
|
|
547
548
|
};
|
|
548
|
-
|
|
549
|
+
cellDblClick(pageContext, configure, params);
|
|
549
550
|
}
|
|
550
551
|
function rowClickEvent(row, column, event) {
|
|
551
552
|
const params = {
|
|
@@ -553,7 +554,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
553
554
|
column,
|
|
554
555
|
event
|
|
555
556
|
};
|
|
556
|
-
|
|
557
|
+
rowClick(pageContext, configure, params);
|
|
557
558
|
}
|
|
558
559
|
function rowDblClickEvent(row, column, event) {
|
|
559
560
|
const params = {
|
|
@@ -561,14 +562,14 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
561
562
|
column,
|
|
562
563
|
event
|
|
563
564
|
};
|
|
564
|
-
|
|
565
|
+
rowDblClick(pageContext, configure, params);
|
|
565
566
|
}
|
|
566
567
|
function headerClickEvent(column, event) {
|
|
567
568
|
const params = {
|
|
568
569
|
column,
|
|
569
570
|
event
|
|
570
571
|
};
|
|
571
|
-
|
|
572
|
+
headerClick(pageContext, configure, params);
|
|
572
573
|
}
|
|
573
574
|
function validatorSunTableListData() {
|
|
574
575
|
return gridRef.value.validatorSunTableListData();
|
|
@@ -611,17 +612,17 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
611
612
|
validatorSunTableListData
|
|
612
613
|
});
|
|
613
614
|
return (_ctx, _cache) => {
|
|
614
|
-
const _component_super_grid =
|
|
615
|
-
return
|
|
616
|
-
|
|
615
|
+
const _component_super_grid = resolveComponent("super-grid");
|
|
616
|
+
return openBlock(), createElementBlock("div", null, [
|
|
617
|
+
createVNode(_component_super_grid, {
|
|
617
618
|
ref_key: "gridRef",
|
|
618
619
|
ref: gridRef,
|
|
619
|
-
url:
|
|
620
|
+
url: unref(urlToListData),
|
|
620
621
|
options: listOptions.value,
|
|
621
|
-
code:
|
|
622
|
-
settings:
|
|
622
|
+
code: unref(superGridSetting) ? null : unref(listCode),
|
|
623
|
+
settings: unref(superGridSetting),
|
|
623
624
|
"search-form-info": searchFormInfo.value,
|
|
624
|
-
"list-toolbar-form-data":
|
|
625
|
+
"list-toolbar-form-data": unref(listToolbarFormData),
|
|
625
626
|
onSelect: select,
|
|
626
627
|
onSelectAll: selectAll,
|
|
627
628
|
onSelectionChange: selectionChange,
|
|
@@ -631,10 +632,12 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
631
632
|
onRowDblclick: rowDblClickEvent,
|
|
632
633
|
onHeaderClick: headerClickEvent,
|
|
633
634
|
onRefresh: clearSelections,
|
|
634
|
-
onNewOpenGridDialog:
|
|
635
|
+
onNewOpenGridDialog: unref(popupToPage)
|
|
635
636
|
}, null, 8, ["url", "options", "code", "settings", "search-form-info", "list-toolbar-form-data", "onNewOpenGridDialog"])
|
|
636
637
|
]);
|
|
637
638
|
};
|
|
638
639
|
}
|
|
639
640
|
});
|
|
640
|
-
|
|
641
|
+
export {
|
|
642
|
+
_sfc_main as default
|
|
643
|
+
};
|
package/{lib → dist/es/components}/runtime/views/assemblys/data/table/sub-table-runtime.vue.js
RENAMED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
const _sfc_main = /* @__PURE__ */
|
|
1
|
+
import { defineComponent, ref, resolveComponent, openBlock, createElementBlock, createBlock, unref, createCommentVNode } from "vue";
|
|
2
|
+
import { setTableEvents, gridSelectRecord, gridSelectAllRecords, gridSelectionChange, cellClick, cellDblClick, rowClick, rowDblClick, headerClick } from "../../../../utils/events/event-util.js";
|
|
3
|
+
import { setVariableValue, getVariableValue } from "../../../../utils/page-helper-util.js";
|
|
4
|
+
import { getFormModelFields } from "../../../../utils/page-init-util.js";
|
|
5
|
+
import eventBus from "../../../../utils/eventBus.js";
|
|
6
|
+
import { popupToPage } from "../../../../utils/table-utils.js";
|
|
7
|
+
import { getListCode } from "../../../../utils/common-util.js";
|
|
8
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
9
9
|
__name: "sub-table-runtime",
|
|
10
10
|
props: {
|
|
11
11
|
pageContext: {},
|
|
@@ -19,8 +19,8 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
19
19
|
const prop = configure.props && configure.props.base ? configure.props.base.prop : null;
|
|
20
20
|
const additionalParamMap = pageContext.entity.request;
|
|
21
21
|
configure.events;
|
|
22
|
-
|
|
23
|
-
const selections =
|
|
22
|
+
ref({});
|
|
23
|
+
const selections = ref([]);
|
|
24
24
|
const superGridItems = pageContext.superGridItems;
|
|
25
25
|
const superGridSetting = superGridItems ? superGridItems[configure.uuid] : null;
|
|
26
26
|
console.log("superGridSetting===", superGridItems, superGridSetting);
|
|
@@ -28,10 +28,10 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
28
28
|
const runtimeStyle = runtimeInfo.style;
|
|
29
29
|
const runtimeClass = runtimeInfo.class;
|
|
30
30
|
const entity = props.pageContext.entity ? props.pageContext.entity : {};
|
|
31
|
-
let dynamicFields =
|
|
32
|
-
const listViewShowFlag =
|
|
31
|
+
let dynamicFields = getFormModelFields(props.pageContext, props.configure);
|
|
32
|
+
const listViewShowFlag = ref(false);
|
|
33
33
|
const baseURL = window["$vueApp"].config.globalProperties.baseURL;
|
|
34
|
-
const listViewOptions =
|
|
34
|
+
const listViewOptions = ref({
|
|
35
35
|
subTableData: null,
|
|
36
36
|
extraParam: {},
|
|
37
37
|
operations: {},
|
|
@@ -55,8 +55,8 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
55
55
|
} else {
|
|
56
56
|
listViewOptions.value.showPageArea = true;
|
|
57
57
|
}
|
|
58
|
-
const gridRef =
|
|
59
|
-
const listCode =
|
|
58
|
+
const gridRef = ref(null);
|
|
59
|
+
const listCode = getListCode(pageContext.code, pageContext.version, configure.uuid);
|
|
60
60
|
function currencyListViewSetting(canRrefreshSubtableData) {
|
|
61
61
|
if (canRrefreshSubtableData === void 0) {
|
|
62
62
|
canRrefreshSubtableData = judgeInitializationSubTable();
|
|
@@ -112,7 +112,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
112
112
|
return pageContext.entity.data;
|
|
113
113
|
}
|
|
114
114
|
function getGridData() {
|
|
115
|
-
return
|
|
115
|
+
return getVariableValue(entity, dynamicFields);
|
|
116
116
|
}
|
|
117
117
|
function changeInitializationSubTable(canRrefreshSubtableData) {
|
|
118
118
|
currencyListViewSetting(canRrefreshSubtableData);
|
|
@@ -133,7 +133,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
133
133
|
function setGridDataEventOptions() {
|
|
134
134
|
setSubTableValidateInfo();
|
|
135
135
|
const tableEvents2 = configure.events;
|
|
136
|
-
|
|
136
|
+
setTableEvents(listViewOptions.value, tableEvents2, pageContext, configure);
|
|
137
137
|
const customEvents = pageContext.customEvents;
|
|
138
138
|
if (customEvents) {
|
|
139
139
|
listViewOptions.value["eventCallBack"] = customEvents;
|
|
@@ -282,7 +282,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
282
282
|
gridRef.value.deleteRow(rowIndex, listCode, false);
|
|
283
283
|
}
|
|
284
284
|
function changeGridData(gridData) {
|
|
285
|
-
|
|
285
|
+
setVariableValue(entity, dynamicFields, gridData);
|
|
286
286
|
}
|
|
287
287
|
function changeRowsPerpage(pageSize) {
|
|
288
288
|
console.log("表单组件--Item--changeRowsPerpage==pageSize=", pageSize);
|
|
@@ -302,7 +302,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
302
302
|
function fnProhibitToEdit(data) {
|
|
303
303
|
const myPageCode = pageContext.code;
|
|
304
304
|
const eventPageInfo = myPageCode + "_";
|
|
305
|
-
|
|
305
|
+
eventBus.$emit(eventPageInfo + "prohibit-edit", data);
|
|
306
306
|
}
|
|
307
307
|
function refresMainTableFields(entity2) {
|
|
308
308
|
const dataModel2 = pageContext.entity.data;
|
|
@@ -318,20 +318,20 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
318
318
|
selection,
|
|
319
319
|
row
|
|
320
320
|
};
|
|
321
|
-
|
|
321
|
+
gridSelectRecord(pageContext, configure, params);
|
|
322
322
|
}
|
|
323
323
|
function selectAll(selection) {
|
|
324
324
|
selections.value = selection;
|
|
325
325
|
const params = {
|
|
326
326
|
selection
|
|
327
327
|
};
|
|
328
|
-
|
|
328
|
+
gridSelectAllRecords(pageContext, configure, params);
|
|
329
329
|
}
|
|
330
330
|
function selectionChange(newSelection) {
|
|
331
331
|
const params = {
|
|
332
332
|
newSelection
|
|
333
333
|
};
|
|
334
|
-
|
|
334
|
+
gridSelectionChange(pageContext, configure, params);
|
|
335
335
|
}
|
|
336
336
|
function cellClickEvent(row, column, cell, event) {
|
|
337
337
|
const params = {
|
|
@@ -340,7 +340,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
340
340
|
cell,
|
|
341
341
|
event
|
|
342
342
|
};
|
|
343
|
-
|
|
343
|
+
cellClick(pageContext, configure, params);
|
|
344
344
|
}
|
|
345
345
|
function cellDblClickEvent(row, column, cell, event) {
|
|
346
346
|
const params = {
|
|
@@ -349,7 +349,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
349
349
|
cell,
|
|
350
350
|
event
|
|
351
351
|
};
|
|
352
|
-
|
|
352
|
+
cellDblClick(pageContext, configure, params);
|
|
353
353
|
}
|
|
354
354
|
function rowClickEvent(row, column, event) {
|
|
355
355
|
const params = {
|
|
@@ -357,7 +357,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
357
357
|
column,
|
|
358
358
|
event
|
|
359
359
|
};
|
|
360
|
-
|
|
360
|
+
rowClick(pageContext, configure, params);
|
|
361
361
|
}
|
|
362
362
|
function rowDblClickEvent(row, column, event) {
|
|
363
363
|
const params = {
|
|
@@ -365,14 +365,14 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
365
365
|
column,
|
|
366
366
|
event
|
|
367
367
|
};
|
|
368
|
-
|
|
368
|
+
rowDblClick(pageContext, configure, params);
|
|
369
369
|
}
|
|
370
370
|
function headerClickEvent(column, event) {
|
|
371
371
|
const params = {
|
|
372
372
|
column,
|
|
373
373
|
event
|
|
374
374
|
};
|
|
375
|
-
|
|
375
|
+
headerClick(pageContext, configure, params);
|
|
376
376
|
}
|
|
377
377
|
function changeFormData(formData) {
|
|
378
378
|
pageContext.entity.data = formData;
|
|
@@ -402,10 +402,10 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
402
402
|
return configure;
|
|
403
403
|
}
|
|
404
404
|
function getValue() {
|
|
405
|
-
return
|
|
405
|
+
return getVariableValue(entity, dynamicFields);
|
|
406
406
|
}
|
|
407
407
|
function setValue(value) {
|
|
408
|
-
return
|
|
408
|
+
return setVariableValue(entity, dynamicFields, value);
|
|
409
409
|
}
|
|
410
410
|
__expose({
|
|
411
411
|
createRow,
|
|
@@ -418,16 +418,16 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
418
418
|
setValue
|
|
419
419
|
});
|
|
420
420
|
return (_ctx, _cache) => {
|
|
421
|
-
const _component_super_grid =
|
|
422
|
-
return
|
|
423
|
-
listViewShowFlag.value ? (
|
|
421
|
+
const _component_super_grid = resolveComponent("super-grid");
|
|
422
|
+
return openBlock(), createElementBlock("div", null, [
|
|
423
|
+
listViewShowFlag.value ? (openBlock(), createBlock(_component_super_grid, {
|
|
424
424
|
key: 0,
|
|
425
425
|
ref_key: "gridRef",
|
|
426
426
|
ref: gridRef,
|
|
427
|
-
url:
|
|
427
|
+
url: unref(baseURL) + "/common/super-forms/sub-table",
|
|
428
428
|
options: listViewOptions.value,
|
|
429
|
-
code:
|
|
430
|
-
settings:
|
|
429
|
+
code: unref(superGridSetting) ? null : unref(listCode),
|
|
430
|
+
settings: unref(superGridSetting),
|
|
431
431
|
onSelect: select,
|
|
432
432
|
onSelectAll: selectAll,
|
|
433
433
|
onSelectionChange: selectionChange,
|
|
@@ -442,11 +442,13 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
442
442
|
onRefresMainTableFields: refresMainTableFields,
|
|
443
443
|
onSetSelectOptions: setSelectOptions,
|
|
444
444
|
onChangeRowsPerPage: changeRowsPerpage,
|
|
445
|
-
onNewOpenGridDialog:
|
|
445
|
+
onNewOpenGridDialog: unref(popupToPage),
|
|
446
446
|
onChangeFormData: changeFormData
|
|
447
|
-
}, null, 8, ["url", "options", "code", "settings", "onNewOpenGridDialog"])) :
|
|
447
|
+
}, null, 8, ["url", "options", "code", "settings", "onNewOpenGridDialog"])) : createCommentVNode("", true)
|
|
448
448
|
]);
|
|
449
449
|
};
|
|
450
450
|
}
|
|
451
451
|
});
|
|
452
|
-
|
|
452
|
+
export {
|
|
453
|
+
_sfc_main as default
|
|
454
|
+
};
|
|
@@ -1,8 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { defineComponent, ref, openBlock, createElementBlock, unref, createBlock } from "vue";
|
|
2
|
+
import "agilebuilder-ui";
|
|
3
|
+
import "agilebuilder-ui/src/utils/request";
|
|
4
|
+
import "dayjs";
|
|
5
|
+
import "agilebuilder-ui/src/utils/calculator/calculator-util";
|
|
6
|
+
import "../../../../utils/global-refs.js";
|
|
7
|
+
import _sfc_main$1 from "./sub-table-runtime.vue.js";
|
|
8
|
+
import _sfc_main$2 from "./main-table-runtime.vue.js";
|
|
9
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
10
|
__name: "table-runtime",
|
|
7
11
|
props: {
|
|
8
12
|
pageContext: {},
|
|
@@ -11,7 +15,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
11
15
|
setup(__props, { expose: __expose }) {
|
|
12
16
|
const props = __props;
|
|
13
17
|
const pageType = props.pageContext.pageType;
|
|
14
|
-
const tableConfigure =
|
|
18
|
+
const tableConfigure = ref(null);
|
|
15
19
|
const tableUuid = props.configure.uuid;
|
|
16
20
|
const superGridItems = props.pageContext.superGridItems;
|
|
17
21
|
const superGridSetting = superGridItems ? superGridItems[tableUuid] : null;
|
|
@@ -19,7 +23,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
19
23
|
const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
|
|
20
24
|
runtimeInfo.style;
|
|
21
25
|
runtimeInfo.class;
|
|
22
|
-
const gridRef =
|
|
26
|
+
const gridRef = ref(null);
|
|
23
27
|
function validatorSunTableListData() {
|
|
24
28
|
if (pageType && pageType === "form") {
|
|
25
29
|
return gridRef.value.validatorSunTableListData();
|
|
@@ -61,14 +65,14 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
61
65
|
validatorSunTableListData
|
|
62
66
|
});
|
|
63
67
|
return (_ctx, _cache) => {
|
|
64
|
-
return
|
|
65
|
-
|
|
68
|
+
return openBlock(), createElementBlock("div", null, [
|
|
69
|
+
unref(pageType) && unref(pageType) === "form" ? (openBlock(), createBlock(_sfc_main$1, {
|
|
66
70
|
key: 0,
|
|
67
71
|
ref_key: "gridRef",
|
|
68
72
|
ref: gridRef,
|
|
69
73
|
pageContext: _ctx.pageContext,
|
|
70
74
|
configure: _ctx.configure
|
|
71
|
-
}, null, 8, ["pageContext", "configure"])) : (
|
|
75
|
+
}, null, 8, ["pageContext", "configure"])) : (openBlock(), createBlock(_sfc_main$2, {
|
|
72
76
|
key: 1,
|
|
73
77
|
ref_key: "gridRef",
|
|
74
78
|
ref: gridRef,
|
|
@@ -79,4 +83,6 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
79
83
|
};
|
|
80
84
|
}
|
|
81
85
|
});
|
|
82
|
-
|
|
86
|
+
export {
|
|
87
|
+
_sfc_main as default
|
|
88
|
+
};
|