super-page-runtime 1.0.16 → 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 -67
- package/src/index.ts +15 -0
- package/.eslintrc.cjs +0 -26
- package/.prettierrc.json +0 -8
- package/App.vue +0 -9
- package/components/index.ts +0 -17
- package/components/runtime/index.ts +0 -2
- package/components/runtime/utils/assemblys-config.js +0 -294
- package/components/runtime/views/assemblys/button/button/button-runtime.vue +0 -49
- package/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue +0 -26
- package/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue +0 -93
- package/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue +0 -59
- package/components/runtime/views/assemblys/chart/common/common-attr-assistant.vue +0 -32
- package/components/runtime/views/assemblys/chart/common/common-attr-base.vue +0 -60
- package/components/runtime/views/assemblys/chart/common/common-attr-drill.vue +0 -39
- package/components/runtime/views/assemblys/chart/common/common-attr-groupby.vue +0 -104
- package/components/runtime/views/assemblys/chart/common/common-attr-serieslist.vue +0 -145
- package/components/runtime/views/assemblys/chart/common/common-attr-sortby.vue +0 -119
- package/components/runtime/views/assemblys/chart/common/common-style-custom.vue +0 -28
- package/components/runtime/views/assemblys/chart/common/common-style-datazoom.vue +0 -45
- package/components/runtime/views/assemblys/chart/common/common-style-font-subtitle.vue +0 -78
- package/components/runtime/views/assemblys/chart/common/common-style-font-title.vue +0 -56
- package/components/runtime/views/assemblys/chart/common/common-style-grid.vue +0 -70
- package/components/runtime/views/assemblys/chart/common/common-style-legend.vue +0 -70
- package/components/runtime/views/assemblys/chart/common/common-style-tooltip.vue +0 -140
- package/components/runtime/views/assemblys/chart/common/common-style-xaxis.vue +0 -58
- package/components/runtime/views/assemblys/chart/common/common-style-yaxis.vue +0 -125
- package/components/runtime/views/assemblys/chart/common-series/common-attr-dataset.vue +0 -67
- package/components/runtime/views/assemblys/chart/common-series/common-attr-dynamic.vue +0 -57
- package/components/runtime/views/assemblys/chart/common-series/common-attr-testdatas.vue +0 -23
- package/components/runtime/views/assemblys/chart/common-series/common-style-label.vue +0 -209
- package/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue +0 -46
- package/components/runtime/views/assemblys/chart/pie/pie-runtime.vue +0 -56
- package/components/runtime/views/assemblys/chart/radar/radar-runtime.vue +0 -55
- package/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue +0 -57
- package/components/runtime/views/assemblys/common/common-attr-cursor.vue +0 -23
- package/components/runtime/views/assemblys/common/common-attr-size.vue +0 -54
- package/components/runtime/views/assemblys/common/common-select-table.vue +0 -287
- package/components/runtime/views/assemblys/common/common-style-background.vue +0 -46
- package/components/runtime/views/assemblys/common/common-style-border.vue +0 -37
- package/components/runtime/views/assemblys/common/common-style-custom.vue +0 -35
- package/components/runtime/views/assemblys/common/common-style-font-head.vue +0 -53
- package/components/runtime/views/assemblys/common/common-style-font.vue +0 -53
- package/components/runtime/views/assemblys/common/common-style-margin.vue +0 -34
- package/components/runtime/views/assemblys/common/common-style-padding.vue +0 -34
- package/components/runtime/views/assemblys/common/common-style-position.vue +0 -39
- package/components/runtime/views/assemblys/common/common-style-shadow.vue +0 -37
- package/components/runtime/views/assemblys/common/export-form-report-dialog.vue +0 -108
- package/components/runtime/views/assemblys/common/remove-signer-dialog.vue +0 -99
- package/components/runtime/views/assemblys/common/task-informition-dialog.vue +0 -69
- package/components/runtime/views/assemblys/common-attr-events.vue +0 -46
- package/components/runtime/views/assemblys/container/card/card-runtime.vue +0 -59
- package/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue +0 -59
- package/components/runtime/views/assemblys/container/container/container-runtime.vue +0 -41
- package/components/runtime/views/assemblys/container/flex/flex-runtime.vue +0 -35
- package/components/runtime/views/assemblys/container/form/form-runtime.vue +0 -37
- package/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue +0 -32
- package/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue +0 -54
- package/components/runtime/views/assemblys/container/tools/tools-runtime.vue +0 -99
- package/components/runtime/views/assemblys/data/bar-code/barcode-attr-base.vue +0 -117
- package/components/runtime/views/assemblys/data/bar-code/barcode-attr-event.vue +0 -14
- package/components/runtime/views/assemblys/data/bar-code/barcode-attr-style.vue +0 -25
- package/components/runtime/views/assemblys/data/bar-code/barcode-attr.vue +0 -28
- package/components/runtime/views/assemblys/data/bar-code/barcode-design.vue +0 -103
- package/components/runtime/views/assemblys/data/component/attr-header.vue +0 -69
- package/components/runtime/views/assemblys/data/component/attr-style.vue +0 -64
- package/components/runtime/views/assemblys/data/component/column-config.vue +0 -171
- package/components/runtime/views/assemblys/data/component/combinedHeader.vue +0 -96
- package/components/runtime/views/assemblys/data/component/composite-header.vue +0 -257
- package/components/runtime/views/assemblys/data/component/configuration-value.vue +0 -206
- package/components/runtime/views/assemblys/data/component/data-origin-tree.vue +0 -117
- package/components/runtime/views/assemblys/data/component/data-origin.vue +0 -260
- package/components/runtime/views/assemblys/data/component/formatting.vue +0 -200
- package/components/runtime/views/assemblys/data/component/in-parameter.vue +0 -56
- package/components/runtime/views/assemblys/data/component/querySetting.vue +0 -52
- package/components/runtime/views/assemblys/data/component/return-set-table.vue +0 -91
- package/components/runtime/views/assemblys/data/component/row-backgroud-color.vue +0 -58
- package/components/runtime/views/assemblys/data/component/select-data-table.vue +0 -86
- package/components/runtime/views/assemblys/data/table/main-table-runtime.vue +0 -858
- package/components/runtime/views/assemblys/data/table/sub-table-runtime.vue +0 -625
- package/components/runtime/views/assemblys/data/table/table-runtime.vue +0 -93
- package/components/runtime/views/assemblys/data/tree/tree-attr-base.vue +0 -137
- package/components/runtime/views/assemblys/data/tree/tree-attr-event.vue +0 -14
- package/components/runtime/views/assemblys/data/tree/tree-attr-style.vue +0 -55
- package/components/runtime/views/assemblys/data/tree/tree-attr.vue +0 -28
- package/components/runtime/views/assemblys/data/tree/tree-design.vue +0 -125
- package/components/runtime/views/assemblys/error-attr.vue +0 -15
- package/components/runtime/views/assemblys/error-render.vue +0 -17
- package/components/runtime/views/assemblys/form/cascader/cascader-design.vue +0 -288
- package/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue +0 -198
- package/components/runtime/views/assemblys/form/colors/colors-design.vue +0 -16
- package/components/runtime/views/assemblys/form/common/analytic-rule.vue +0 -148
- package/components/runtime/views/assemblys/form/common/attr-event.vue +0 -82
- package/components/runtime/views/assemblys/form/common/attr-header.vue +0 -54
- package/components/runtime/views/assemblys/form/common/attr-style.vue +0 -44
- package/components/runtime/views/assemblys/form/common/bar-code-rule.vue +0 -104
- package/components/runtime/views/assemblys/form/common/condition.vue +0 -147
- package/components/runtime/views/assemblys/form/common/data-origin.vue +0 -81
- package/components/runtime/views/assemblys/form/common/data-orign-in-parameter.vue +0 -64
- package/components/runtime/views/assemblys/form/common/dataorigin-input-table.vue +0 -106
- package/components/runtime/views/assemblys/form/common/default-value-setting.vue +0 -362
- package/components/runtime/views/assemblys/form/common/dimension-input.vue +0 -68
- package/components/runtime/views/assemblys/form/common/dynamic-data-source-setting.vue +0 -115
- package/components/runtime/views/assemblys/form/common/formatting-label.vue +0 -81
- package/components/runtime/views/assemblys/form/common/grid-num-select.vue +0 -43
- package/components/runtime/views/assemblys/form/common/icon-set-dialog.vue +0 -144
- package/components/runtime/views/assemblys/form/common/linkage.vue +0 -21
- package/components/runtime/views/assemblys/form/common/overall-height.vue +0 -20
- package/components/runtime/views/assemblys/form/common/overall-width.vue +0 -48
- package/components/runtime/views/assemblys/form/common/pre-suffix.vue +0 -33
- package/components/runtime/views/assemblys/form/common/rich-text.vue +0 -100
- package/components/runtime/views/assemblys/form/common/row-ul-li.vue +0 -55
- package/components/runtime/views/assemblys/form/common/setoption-table.vue +0 -86
- package/components/runtime/views/assemblys/form/common/size-input.vue +0 -65
- package/components/runtime/views/assemblys/form/common/suffixmodule.vue +0 -82
- package/components/runtime/views/assemblys/form/common/title.vue +0 -20
- package/components/runtime/views/assemblys/form/common/uploading.vue +0 -34
- package/components/runtime/views/assemblys/form/common/verification.vue +0 -79
- package/components/runtime/views/assemblys/form/common/voluntarily.vue +0 -27
- package/components/runtime/views/assemblys/form/custom/custom-attr-base.vue +0 -81
- package/components/runtime/views/assemblys/form/custom/custom-attr-event.vue +0 -14
- package/components/runtime/views/assemblys/form/custom/custom-attr-style.vue +0 -14
- package/components/runtime/views/assemblys/form/custom/custom-attr.vue +0 -28
- package/components/runtime/views/assemblys/form/custom/custom-design.vue +0 -57
- package/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue +0 -80
- package/components/runtime/views/assemblys/form/datetime/datetime-design.vue +0 -19
- package/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue +0 -60
- package/components/runtime/views/assemblys/form/divider/divider-runtime.vue +0 -44
- package/components/runtime/views/assemblys/form/file-picture/picture-design.vue +0 -80
- package/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue +0 -79
- package/components/runtime/views/assemblys/form/image-thumbnail/imagethumbnail-attr-base.vue +0 -142
- package/components/runtime/views/assemblys/form/image-thumbnail/imagethumbnail-attr-event.vue +0 -14
- package/components/runtime/views/assemblys/form/image-thumbnail/imagethumbnail-attr-style.vue +0 -14
- package/components/runtime/views/assemblys/form/image-thumbnail/imagethumbnail-attr.vue +0 -28
- package/components/runtime/views/assemblys/form/image-thumbnail/imagethumbnail-design.vue +0 -104
- package/components/runtime/views/assemblys/form/image-upload/imageupload-attr-base.vue +0 -75
- package/components/runtime/views/assemblys/form/image-upload/imageupload-attr-event.vue +0 -13
- package/components/runtime/views/assemblys/form/image-upload/imageupload-attr-style.vue +0 -14
- package/components/runtime/views/assemblys/form/image-upload/imageupload-attr.vue +0 -28
- package/components/runtime/views/assemblys/form/image-upload/imageupload-design.vue +0 -76
- package/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue +0 -62
- package/components/runtime/views/assemblys/form/input-show/input-show-attr-base.vue +0 -68
- package/components/runtime/views/assemblys/form/input-show/input-show-attr-event.vue +0 -14
- package/components/runtime/views/assemblys/form/input-show/input-show-attr-style.vue +0 -70
- package/components/runtime/views/assemblys/form/input-show/input-show-attr.vue +0 -28
- package/components/runtime/views/assemblys/form/input-show/input-show-design.vue +0 -155
- package/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue +0 -142
- package/components/runtime/views/assemblys/form/label/label-runtime.vue +0 -143
- package/components/runtime/views/assemblys/form/link/link-runtime.vue +0 -70
- package/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue +0 -24
- package/components/runtime/views/assemblys/form/radio/radio-runtime.vue +0 -203
- package/components/runtime/views/assemblys/form/rate/rate-design.vue +0 -16
- package/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue +0 -169
- package/components/runtime/views/assemblys/form/select/select-runtime.vue +0 -247
- package/components/runtime/views/assemblys/form/slider/slider-design.vue +0 -16
- package/components/runtime/views/assemblys/form/switch/switch-runtime.vue +0 -63
- package/components/runtime/views/assemblys/form/tag/tag-runtime.vue +0 -65
- package/components/runtime/views/assemblys/form/text/text-design.vue +0 -19
- package/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue +0 -63
- package/components/runtime/views/assemblys/form/transfer/transfer-design.vue +0 -32
- package/components/runtime/views/assemblys/object-render.vue +0 -176
- package/components/runtime/views/assemblys/page/page-attr-base-20240429-1.vue +0 -179
- package/components/runtime/views/assemblys/page/page-attr-base.vue +0 -259
- package/components/runtime/views/assemblys/page/page-attr-events.vue +0 -50
- package/components/runtime/views/assemblys/page/page-attr-style.vue +0 -25
- package/components/runtime/views/assemblys/page/page-attr.vue +0 -84
- package/components/runtime/views/assemblys/page/variable-dialog.vue +0 -242
- package/components/runtime/views/assemblys/workflow/component/combination.vue +0 -206
- package/components/runtime/views/assemblys/workflow/component/condition-dialog.vue +0 -99
- package/components/runtime/views/assemblys/workflow/component/event-dialog.vue +0 -278
- package/components/runtime/views/assemblys/workflow/component/journal-set-dialog.vue +0 -174
- package/components/runtime/views/assemblys/workflow/component/logical-setup-dialog.vue +0 -155
- package/components/runtime/views/assemblys/workflow/component/rule-dialog.vue +0 -47
- package/components/runtime/views/assemblys/workflow/component/set-dialog.vue +0 -130
- package/components/runtime/views/assemblys/workflow/component/task-trigger-dialog.vue +0 -96
- package/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-attr-base.vue +0 -43
- package/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-attr-event.vue +0 -14
- package/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-attr-style.vue +0 -27
- package/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-attr.vue +0 -28
- package/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-design.vue +0 -17
- package/components/runtime/views/assemblys/workflow/text-history/texthistory-attr-base.vue +0 -60
- package/components/runtime/views/assemblys/workflow/text-history/texthistory-attr-event.vue +0 -14
- package/components/runtime/views/assemblys/workflow/text-history/texthistory-attr-style.vue +0 -27
- package/components/runtime/views/assemblys/workflow/text-history/texthistory-attr.vue +0 -28
- package/components/runtime/views/assemblys/workflow/text-history/texthistory-design.vue +0 -17
- package/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue +0 -64
- package/components/runtime/views/render/page-view.vue +0 -80
- package/components/runtime/views/super-page copy.vue +0 -61
- package/components/runtime/views/super-page.vue +0 -667
- package/components/super-page-dialog/index.ts +0 -2
- package/components/super-page-dialog/super-page-dialog.vue +0 -267
- package/components/wf-editor/index.ts +0 -2
- package/components/wf-editor/wf-editor.vue +0 -15
- package/cypress/e2e/example.cy.ts +0 -8
- package/cypress/e2e/tsconfig.json +0 -10
- package/cypress/fixtures/example.json +0 -5
- package/cypress/support/commands.ts +0 -39
- package/cypress/support/e2e.ts +0 -20
- package/cypress.config.ts +0 -8
- package/env.d.ts +0 -1
- package/index.html +0 -13
- 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/main.ts +0 -11
- package/package-ws.json +0 -70
- package/public/favicon.ico +0 -0
- 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/tsconfig copy.json +0 -17
- package/tsconfig.app copy.json +0 -14
- package/tsconfig.app.json +0 -14
- package/tsconfig.json +0 -17
- package/tsconfig.node copy.json +0 -19
- package/tsconfig.node.json +0 -19
- package/tsconfig.vitest copy.json +0 -11
- package/tsconfig.vitest.json +0 -11
- package/vite.config copy.ts +0 -109
- package/vite.config.ts +0 -86
- package/vitest.config.ts +0 -14
- /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
|
+
};
|