cloud-web-corejs 1.0.276 → 1.0.277
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/package.json +28 -24
- package/src/App.vue +73 -71
- package/src/api/user.js +21 -0
- package/src/components/baseArea/index.vue +82 -27
- package/src/components/baseTabs/mixins.js +5 -1
- package/src/components/luckysheet/dialog.vue +1 -1
- package/src/components/micro-view-host/contract.js +66 -0
- package/src/components/micro-view-host/index.vue +148 -0
- package/src/components/table/tableForm.vue +16 -5
- package/src/components/table/tableFormMixin.js +35 -7
- package/src/components/vb-tabs/x-tabs.vue +167 -143
- package/src/components/wf/content.vue +14 -0
- package/src/components/wf/content2.vue +4 -2
- package/src/components/wf/wf.js +74 -23
- package/src/components/wf/wfActionDropdown.vue +85 -0
- package/src/components/wf/wfActionItems.js +136 -0
- package/src/components/wf/wfAutoConfirm.js +55 -0
- package/src/components/wf/wfButtonName.js +60 -0
- package/src/components/wf/wfUserRange.js +53 -0
- package/src/components/wf/wfUtil.js +373 -295
- package/src/components/xform/XFormTabContainer//346/226/260/345/242/236/351/241/265/347/255/276/346/250/241/345/274/217-/346/234/200/347/273/210/345/256/236/347/216/260.md +195 -0
- package/src/components/xform/docs/2026-07 table/344/270/216excelExport/344/277/256/345/244/215/345/217/212/345/257/274/345/207/272/344/274/230/345/214/226.md" +57 -0
- package/src/components/xform/docs/2026-07 /346/216/222/346/237/245/344/277/256/345/244/215/350/256/260/345/275/225.md" +73 -0
- package/src/components/xform/docs/autocomplete /350/207/252/345/212/250/345/256/214/346/210/220/347/273/204/344/273/266/350/257/264/346/230/216.md" +126 -0
- package/src/components/xform/docs//345/257/271/346/257/224/345/212/237/350/203/275/350/220/275/345/234/260/346/226/271/346/241/210.md +986 -0
- package/src/components/xform/docs//346/225/260/346/215/256/350/241/250/346/240/274/345/212/250/346/200/201/345/210/227 JSON /350/257/264/346/230/216.md" +657 -0
- package/src/components/xform/docs//346/240/221/350/241/250rowField/346/224/266/346/225/233-/350/220/275/345/234/260/346/226/207/346/241/243.md +1427 -0
- package/src/components/xform/form-designer/designer.js +2085 -2025
- package/src/components/xform/form-designer/form-widget/container-widget/containerMixin.js +9 -11
- package/src/components/xform/form-designer/form-widget/container-widget/data-table-mixin.js +76 -75
- package/src/components/xform/form-designer/form-widget/container-widget/data-table-widget.vue +10 -4
- package/src/components/xform/form-designer/form-widget/container-widget/detail-plain-widget.vue +76 -0
- package/src/components/xform/form-designer/form-widget/container-widget/detail-widget.vue +59 -5
- package/src/components/xform/form-designer/form-widget/dialog/fileReferenceDialog.vue +38 -17
- package/src/components/xform/form-designer/form-widget/dialog/formDialog.vue +138 -13
- package/src/components/xform/form-designer/form-widget/dialog/formFieldDialog.vue +1 -1
- package/src/components/xform/form-designer/form-widget/dialog/importDialogMixin.js +1774 -1772
- package/src/components/xform/form-designer/form-widget/dialog/searchFormDialog.vue +2 -3
- package/src/components/xform/form-designer/form-widget/dialog/vabSearchDialog.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/a-link-widget.vue +66 -53
- package/src/components/xform/form-designer/form-widget/field-widget/baseAttachment-widget.vue +287 -214
- package/src/components/xform/form-designer/form-widget/field-widget/button-widget.vue +76 -66
- package/src/components/xform/form-designer/form-widget/field-widget/cascader-widget.vue +208 -124
- package/src/components/xform/form-designer/form-widget/field-widget/census-widget.vue +3 -9
- package/src/components/xform/form-designer/form-widget/field-widget/copy_button-widget.vue +11 -2
- package/src/components/xform/form-designer/form-widget/field-widget/date-range-widget.vue +7 -6
- package/src/components/xform/form-designer/form-widget/field-widget/date-widget.vue +43 -19
- package/src/components/xform/form-designer/form-widget/field-widget/fieldMixin.js +680 -372
- package/src/components/xform/form-designer/form-widget/field-widget/form-item-wrapper.vue +879 -763
- package/src/components/xform/form-designer/form-widget/field-widget/mixins/date-limit-mixin.js +17 -2
- package/src/components/xform/form-designer/form-widget/field-widget/mixins/echart-bar-mixin.js +3 -9
- package/src/components/xform/form-designer/form-widget/field-widget/mixins/echart-category-mixin.js +3 -9
- package/src/components/xform/form-designer/form-widget/field-widget/mixins/echart-pie-mixin.js +3 -9
- package/src/components/xform/form-designer/form-widget/field-widget/mixins/relative-default-mixin.js +107 -0
- package/src/components/xform/form-designer/form-widget/field-widget/mixins/relativeDateUtil.js +321 -0
- package/src/components/xform/form-designer/form-widget/field-widget/mixins/time-limit-mixin.js +77 -0
- package/src/components/xform/form-designer/form-widget/field-widget/mixins/vabsearch-mixin.js +13 -0
- package/src/components/xform/form-designer/form-widget/field-widget/number-widget.vue +13 -8
- package/src/components/xform/form-designer/form-widget/field-widget/project-tag-widget.vue +4 -9
- package/src/components/xform/form-designer/form-widget/field-widget/save_submit_wf_button-widget.vue +3 -0
- package/src/components/xform/form-designer/form-widget/field-widget/select-export-item-button-widget.vue +120 -120
- package/src/components/xform/form-designer/form-widget/field-widget/static-content-wrapper.vue +4 -0
- package/src/components/xform/form-designer/form-widget/field-widget/status-widget.vue +11 -0
- package/src/components/xform/form-designer/form-widget/field-widget/switch-widget.vue +9 -1
- package/src/components/xform/form-designer/form-widget/field-widget/tempStorage-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/text-widget.vue +7 -3
- package/src/components/xform/form-designer/form-widget/field-widget/time-range-widget.vue +4 -2
- package/src/components/xform/form-designer/form-widget/field-widget/time-widget.vue +36 -5
- package/src/components/xform/form-designer/form-widget/field-widget/vabUpload-widget.vue +338 -374
- package/src/components/xform/form-designer/form-widget/index.vue +6 -1
- package/src/components/xform/form-designer/form-widget/indexMixin.js +29 -25
- package/src/components/xform/form-designer/index.vue +194 -191
- package/src/components/xform/form-designer/indexMixin.js +860 -847
- package/src/components/xform/form-designer/setting-panel/dataSource-setting.vue +397 -397
- package/src/components/xform/form-designer/setting-panel/form-dynamicField-setting.vue +602 -601
- package/src/components/xform/form-designer/setting-panel/form-setting.vue +1790 -1483
- package/src/components/xform/form-designer/setting-panel/index.vue +2 -7
- package/src/components/xform/form-designer/setting-panel/indexMixin.js +370 -335
- package/src/components/xform/form-designer/setting-panel/option-items-setting.vue +585 -544
- package/src/components/xform/form-designer/setting-panel/property-editor/a-link-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/a-text-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/alignType-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/buttonIcon-editor.vue +14 -15
- package/src/components/xform/form-designer/setting-panel/property-editor/censusClass-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/colorClass-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/commonAttributeEnabled-editor.vue +3 -3
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/columnRenderDialog.vue +124 -125
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/data-table-editor.vue +1151 -957
- package/src/components/xform/form-designer/setting-panel/property-editor/container-detail/detail-editor.vue +96 -74
- package/src/components/xform/form-designer/setting-panel/property-editor/container-detail-plain/detail-plain-editor.vue +75 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/container-grid/colHeight-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/container-grid/gutter-editor.vue +14 -13
- package/src/components/xform/form-designer/setting-panel/property-editor/container-grid-col/grid-col-height-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/container-grid-col/grid-col-offset-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/container-grid-col/grid-col-pull-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/container-grid-col/grid-col-push-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/container-grid-col/grid-col-span-editor.vue +4 -4
- package/src/components/xform/form-designer/setting-panel/property-editor/container-h5-card/h5-card-editor.vue +124 -124
- package/src/components/xform/form-designer/setting-panel/property-editor/container-list-h5/list-h5-editor.vue +26 -31
- package/src/components/xform/form-designer/setting-panel/property-editor/container-panel/height-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/container-panel/width-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/container-tab/tab-customClass-editor.vue +119 -119
- package/src/components/xform/form-designer/setting-panel/property-editor/container-tab/tabClass-editor.vue +45 -45
- package/src/components/xform/form-designer/setting-panel/property-editor/container-table/table-dynamicField-editor.vue +340 -342
- package/src/components/xform/form-designer/setting-panel/property-editor/container-table-cell/cellHeight-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/container-table-cell/cellWidth-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/container-tree/tree-customClass-editor.vue +2 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/container-tree-pane/tree-pane-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/container-vf-dialog/cancelButtonLabel-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/container-vf-dialog/okButtonLabel-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/container-vf-dialog/title-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/container-vf-dialog/width-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/containerClass-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/customClass-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/defaultValue-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/descriptionsItems-editor.vue +4 -4
- package/src/components/xform/form-designer/setting-panel/property-editor/downloadButtonFlag-editor.vue +3 -3
- package/src/components/xform/form-designer/setting-panel/property-editor/dropdownFlag-editor.vue +6 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/dsName-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/echartHeight-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/endPlaceholder-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-accessUrl/accessUrl-editor.vue +2 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/field-area-select/areaDataType-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-area-select/areaMinLevel-editor.vue +50 -50
- package/src/components/xform/form-designer/setting-panel/property-editor/field-area-select/areaName-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-autocomplete/autocomplete-vabSearchName-editor.vue +7 -7
- package/src/components/xform/form-designer/setting-panel/property-editor/field-button/addTableData-event-editor.vue +84 -85
- package/src/components/xform/form-designer/setting-panel/property-editor/field-button/button-type-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-button/clickBindActions.js +262 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-button/clickBindEvent-editor.vue +97 -88
- package/src/components/xform/form-designer/setting-panel/property-editor/field-button/form-host-event-editor.vue +188 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-button/icon-editor.vue +14 -15
- package/src/components/xform/form-designer/setting-panel/property-editor/field-button/search-dialog-event-editor.vue +27 -10
- package/src/components/xform/form-designer/setting-panel/property-editor/field-cascader/checkStrictly-editor.vue +11 -13
- package/src/components/xform/form-designer/setting-panel/property-editor/field-common/keyName-editor.vue +74 -67
- package/src/components/xform/form-designer/setting-panel/property-editor/field-date/date-dateLimit-editor.vue +27 -5
- package/src/components/xform/form-designer/setting-panel/property-editor/field-date/date-defaultValue-editor.vue +35 -18
- package/src/components/xform/form-designer/setting-panel/property-editor/field-date/date-format-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-date/date-type-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-date/date-valueFormat-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-date-range/date-range-defaultTime-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-date-range/date-range-defaultValue-editor.vue +35 -18
- package/src/components/xform/form-designer/setting-panel/property-editor/field-date-range/date-range-format-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-date-range/date-range-type-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-date-range/date-range-valueFormat-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-divider/contentPosition-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-dropdown-menu/dropdown-menu-editor.vue +59 -59
- package/src/components/xform/form-designer/setting-panel/property-editor/field-echart/echart-bar-editor.vue +11 -11
- package/src/components/xform/form-designer/setting-panel/property-editor/field-echart/echart-category-editor.vue +10 -10
- package/src/components/xform/form-designer/setting-panel/property-editor/field-echart/echart-pie-editor.vue +12 -12
- package/src/components/xform/form-designer/setting-panel/property-editor/field-file-upload/file-upload-fileTypes-editor.vue +44 -44
- package/src/components/xform/form-designer/setting-panel/property-editor/field-html-text/htmlContent-editor.vue +29 -29
- package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import-button-editor.vue +6 -6
- package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import2-button-editor.vue +4 -4
- package/src/components/xform/form-designer/setting-panel/property-editor/field-number/controlsPosition-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-picture-upload/picture-upload-fileTypes-editor.vue +44 -44
- package/src/components/xform/form-designer/setting-panel/property-editor/field-print-button/print-button-editor.vue +115 -115
- package/src/components/xform/form-designer/setting-panel/property-editor/field-print-button/print-detail-button-editor.vue +115 -115
- package/src/components/xform/form-designer/setting-panel/property-editor/field-rate/highThreshold-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-rate/lowThreshold-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-rate/rate-defaultValue-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-rate/rate-max-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-script/script-editor.vue +4 -4
- package/src/components/xform/form-designer/setting-panel/property-editor/field-script-input/script-input-editor.vue +4 -4
- package/src/components/xform/form-designer/setting-panel/property-editor/field-static-text/fontSize-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-static-text/textContent-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-status/field-status-editor.vue +3 -3
- package/src/components/xform/form-designer/setting-panel/property-editor/field-switch/activeText-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-switch/inactiveText-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-switch/switchWidth-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-table-export-button/select-export-button-editor.vue +2 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/field-table-export-button/select-export-item-button-editor.vue +74 -74
- package/src/components/xform/form-designer/setting-panel/property-editor/field-table-export-button/table-export-button-editor.vue +3 -3
- package/src/components/xform/form-designer/setting-panel/property-editor/field-time/time-defaultValue-editor.vue +34 -18
- package/src/components/xform/form-designer/setting-panel/property-editor/field-time/time-format-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-time/time-timeLimit-editor.vue +53 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-time-range/time-range-defaultValue-editor.vue +35 -18
- package/src/components/xform/form-designer/setting-panel/property-editor/field-time-range/time-range-format-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-vabSearch/vabSearchField-editor.vue +2 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/field-vabSearch/vabSearchName-editor.vue +2 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/field-vabUpload/field-vabUpload-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-vabUpload2/field-vabUpload2-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-vue-page/vue-page-editor.vue +2 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/fileMaxSize-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/fileTypesSelect.vue +176 -176
- package/src/components/xform/form-designer/setting-panel/property-editor/fixedQuery-editor.vue +39 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/formScriptEnabled-editor.vue +41 -6
- package/src/components/xform/form-designer/setting-panel/property-editor/formatType-editor.vue +2 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/formula-editor.vue +972 -972
- package/src/components/xform/form-designer/setting-panel/property-editor/iconClass-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/label-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/labelAlign-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/labelColor-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/labelIconPosition-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/labelWidth-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/limit-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/max-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/maxLength-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/min-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/minLength-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/multipleLimit-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/name-editor.vue +15 -4
- package/src/components/xform/form-designer/setting-panel/property-editor/oplog-editor.vue +3 -3
- package/src/components/xform/form-designer/setting-panel/property-editor/placeholder-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/precision-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/prefixIcon-editor.vue +14 -15
- package/src/components/xform/form-designer/setting-panel/property-editor/project-tag-editor.vue +6 -6
- package/src/components/xform/form-designer/setting-panel/property-editor/relative-default-block.vue +369 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/requiredHint-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/rows-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/space-editor-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/startPlaceholder-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/step-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/styleTableClass-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/styleTitClass-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/suffixIcon-editor.vue +14 -15
- package/src/components/xform/form-designer/setting-panel/property-editor/tempStorage-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/textFlag-editor.vue +2 -3
- package/src/components/xform/form-designer/setting-panel/property-editor/type-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/uploadTip-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/uploadURL-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/urlValueEnabled-editor.vue +91 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/validation-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/validationHint-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/widgetWidth-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/propertyRegister.js +374 -351
- package/src/components/xform/form-designer/toolbar-panel/index.vue +266 -103
- package/src/components/xform/form-designer/toolbar-panel/indexMixin.js +655 -589
- package/src/components/xform/form-designer/widget-panel/index.vue +391 -341
- package/src/components/xform/form-designer/widget-panel/indexMixin.js +351 -308
- package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +4642 -4028
- package/src/components/xform/form-render/container-item/containerItemMixin.js +76 -61
- package/src/components/xform/form-render/container-item/data-table-item.vue +24 -13
- package/src/components/xform/form-render/container-item/data-table-mixin.js +5927 -3400
- package/src/components/xform/form-render/container-item/detail-h5-item.vue +173 -173
- package/src/components/xform/form-render/container-item/detail-item.vue +446 -224
- package/src/components/xform/form-render/container-item/detail-plain-item.vue +92 -0
- package/src/components/xform/form-render/container-item/list-h5-item.vue +1186 -411
- package/src/components/xform/form-render/container-item/tab-item.vue +129 -125
- package/src/components/xform/form-render/container-item/table-item.vue +0 -3
- package/src/components/xform/form-render/container-item/table2-item.vue +18 -10
- package/src/components/xform/form-render/dynamicDialogRender.js +140 -99
- package/src/components/xform/form-render/index.vue +8 -8
- package/src/components/xform/form-render/indexMixin.js +5299 -3766
- package/src/components/xform/form-render/refMixin.js +14 -11
- package/src/components/xform/lang/en-US.js +473 -438
- package/src/components/xform/lang/en-US_extension.js +4 -0
- package/src/components/xform/lang/zh-CN.js +646 -620
- package/src/components/xform/mixins/defaultHandle.js +363 -26
- package/src/components/xform/mixins/scriptHttp.js +54 -51
- package/src/components/xform/utils/attachmentValueUtil.js +239 -0
- package/src/components/xform/utils/fixedQueryUtil.js +93 -0
- package/src/components/xform/utils/format.js +195 -169
- package/src/components/xform/utils/queryParamUtil.js +84 -0
- package/src/components/xform/utils/tableColumnHelper.js +7 -8
- package/src/components/xform/utils/util.js +1663 -1551
- package/src/components/xform/utils/validators.js +100 -48
- package/src/index.js +403 -89
- package/src/layout/components/AppMain.vue +147 -119
- package/src/layout/components/Sidebar/default.vue +109 -59
- package/src/layout/components/TagsView/index.vue +1 -1
- package/src/layout/components/extractedCode/queryDialog.vue +33 -26
- package/src/layout/components/extractedCode/viewDialog.vue +207 -193
- package/src/layout/components/langTool.vue +128 -123
- package/src/layout/defaultLayout.vue +170 -158
- package/src/mixins/wf/index.js +40 -38
- package/src/public-path.js +38 -0
- package/src/router/modules/system.js +4 -0
- package/src/store/config/index.js +945 -669
- package/src/utils/pdfUtil.js +428 -70
- package/src/views/bd/setting/bd_company_env/dialog.vue +1 -1
- package/src/views/bd/setting/formVersion/button.vue +5 -0
- package/src/views/bd/setting/formVersion/ftHistoryDialog.vue +21 -10
- package/src/views/bd/setting/formVersion/link.vue +5 -0
- package/src/views/bd/setting/form_script/edit.vue +1 -0
- package/src/views/bd/setting/form_script/edit1.vue +1 -0
- package/src/views/bd/setting/form_script/form_list.vue +1 -0
- package/src/views/bd/setting/form_script/list.vue +1 -0
- package/src/views/bd/setting/form_script/list1.vue +2 -0
- package/src/views/bd/setting/form_template/edit.vue +1 -0
- package/src/views/bd/setting/form_template/list.vue +2 -0
- package/src/views/bd/setting/form_template/mixins/edit.js +77 -74
- package/src/views/bd/setting/table_model/edit.vue +16 -29
- package/src/views/bd/setting/table_model/list.vue +1 -0
- package/src/views/bd/setting/table_model/mixins/edit.js +295 -149
- package/src/views/bd/setting/table_model/mixins/zdDialog.js +32 -0
- package/src/views/support/export_template/list.vue +1 -1
- package/src/views/user/company_info/edit.vue +149 -88
- package/src/views/user/form/form_template/dialog.vue +1 -1
- package/src/views/user/form/form_template/itemList.vue +1 -1
- package/src/views/user/form/form_template/list.vue +1 -1
- package/src/views/user/form/form_template_field/dialog.vue +1 -1
- package/src/views/user/form/form_type/dialog.vue +1 -1
- package/src/views/user/form/form_type/list.vue +1 -1
- package/src/views/user/form/report_requestaccess/dialog.vue +1 -1
- package/src/views/user/form/report_requestaccess/list.vue +1 -1
- package/src/views/user/form/vform/designer.vue +51 -22
- package/src/views/user/form/vform/render.vue +21 -23
- package/src/views/user/form/view/list.vue +134 -37
- package/src/views/user/wf/wfReport/index.vue +24 -1
- package/src/views/user/wf/wf_manage/list.vue +8 -4
- package/src/components/xform/form-designer/form-widget/dialog/formDrawer.vue +0 -209
- package/src/components/xform/form-designer/form-widget/dialog/importDialogMixin - /345/211/257/346/234/254.js" +0 -1639
- package/src/views/bd/setting/table_model/mixins/edit copy.js +0 -903
- package/src/views/user/menu/voc_list.vue +0 -686
|
@@ -5,11 +5,9 @@ modules = {
|
|
|
5
5
|
fieldKeyName() {
|
|
6
6
|
let o = this.widget.options.name;
|
|
7
7
|
return (
|
|
8
|
-
(this.widget.options.keyNameEnabled
|
|
9
|
-
&& this.widget.options.keyName)
|
|
10
|
-
|| o
|
|
8
|
+
(this.widget.options.keyNameEnabled && this.widget.options.keyName) || o
|
|
11
9
|
);
|
|
12
|
-
}
|
|
10
|
+
},
|
|
13
11
|
},
|
|
14
12
|
methods: {
|
|
15
13
|
appendTableRow(widget) {
|
|
@@ -30,7 +28,7 @@ modules = {
|
|
|
30
28
|
}
|
|
31
29
|
|
|
32
30
|
this.designer.emitHistoryChange();
|
|
33
|
-
this.designer.emitEvent(
|
|
31
|
+
this.designer.emitEvent("field-selected", this.widget);
|
|
34
32
|
},
|
|
35
33
|
|
|
36
34
|
onContainerDragUpdate() {
|
|
@@ -80,7 +78,7 @@ modules = {
|
|
|
80
78
|
if (!!this.parentWidget) {
|
|
81
79
|
nextSelected = this.parentWidget;
|
|
82
80
|
}
|
|
83
|
-
} else if (this.parentList.length ===
|
|
81
|
+
} else if (this.parentList.length === 1 + this.indexOfParentList) {
|
|
84
82
|
nextSelected = this.parentList[this.indexOfParentList - 1];
|
|
85
83
|
} else {
|
|
86
84
|
nextSelected = this.parentList[this.indexOfParentList + 1];
|
|
@@ -93,20 +91,20 @@ modules = {
|
|
|
93
91
|
//}
|
|
94
92
|
|
|
95
93
|
this.designer.emitHistoryChange();
|
|
96
|
-
})
|
|
94
|
+
});
|
|
97
95
|
}
|
|
98
96
|
},
|
|
99
97
|
|
|
100
|
-
setWidgetOption(optionName, optionValue) {
|
|
98
|
+
setWidgetOption(optionName, optionValue) {
|
|
99
|
+
//通用组件选项修改API
|
|
101
100
|
if (this.widget.options.hasOwnProperty(optionName)) {
|
|
102
101
|
this.widget.options[optionName] = optionValue;
|
|
103
102
|
}
|
|
104
103
|
},
|
|
105
104
|
getI18nLabel(label, path, param) {
|
|
106
105
|
return !this.designState && label ? this.$t2(label, path, param) : label;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
}
|
|
106
|
+
},
|
|
107
|
+
},
|
|
110
108
|
};
|
|
111
109
|
|
|
112
110
|
export default modules;
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import refMixinDesign from
|
|
2
|
-
import * as formatUtil from
|
|
3
|
-
import i18n from
|
|
4
|
-
import containerMixin from
|
|
5
|
-
import {columnFormatMap} from "../../../../../components/xform/utils/util";
|
|
1
|
+
import refMixinDesign from "../../../../../components/xform/form-designer/refMixinDesign";
|
|
2
|
+
import * as formatUtil from "../../../../../components/xform/utils/format.js";
|
|
3
|
+
import i18n from "../../../../../components/xform/utils/i18n";
|
|
4
|
+
import containerMixin from "../../../../../components/xform/form-designer/form-widget/container-widget/containerMixin";
|
|
5
|
+
import { columnFormatMap } from "../../../../../components/xform/utils/util";
|
|
6
6
|
|
|
7
7
|
let modules = {};
|
|
8
8
|
const baseRefUtil = {
|
|
9
9
|
refMixinDesign,
|
|
10
10
|
formatUtil,
|
|
11
11
|
i18n,
|
|
12
|
-
containerMixin
|
|
12
|
+
containerMixin,
|
|
13
13
|
};
|
|
14
14
|
|
|
15
15
|
modules = {
|
|
16
16
|
data() {
|
|
17
17
|
return {
|
|
18
18
|
gridOptions1: {
|
|
19
|
-
className:
|
|
19
|
+
className: "list-table",
|
|
20
20
|
resizable: true,
|
|
21
21
|
// showFooter: true,
|
|
22
22
|
stripe: true,
|
|
@@ -25,31 +25,35 @@ modules = {
|
|
|
25
25
|
highlightHoverRow: true,
|
|
26
26
|
columns: this.columns,
|
|
27
27
|
toolbarConfig: {
|
|
28
|
-
className:
|
|
28
|
+
className: "toolSet",
|
|
29
29
|
custom: {
|
|
30
|
-
icon:
|
|
31
|
-
}
|
|
30
|
+
icon: "el-icon-s-tools",
|
|
31
|
+
},
|
|
32
32
|
},
|
|
33
|
-
data: []
|
|
33
|
+
data: [],
|
|
34
34
|
},
|
|
35
35
|
formData: {
|
|
36
|
-
saleOrgName:
|
|
37
|
-
loginAccount:
|
|
38
|
-
mobile:
|
|
39
|
-
enabled: 1
|
|
40
|
-
}
|
|
36
|
+
saleOrgName: "",
|
|
37
|
+
loginAccount: "",
|
|
38
|
+
mobile: "",
|
|
39
|
+
enabled: 1,
|
|
40
|
+
},
|
|
41
41
|
};
|
|
42
42
|
},
|
|
43
|
-
componentName:
|
|
44
|
-
mixins: [
|
|
45
|
-
|
|
43
|
+
componentName: "ContainerWidget",
|
|
44
|
+
mixins: [
|
|
45
|
+
baseRefUtil.i18n,
|
|
46
|
+
baseRefUtil.containerMixin,
|
|
47
|
+
baseRefUtil.refMixinDesign,
|
|
48
|
+
],
|
|
49
|
+
inject: ["refList"],
|
|
46
50
|
|
|
47
51
|
props: {
|
|
48
52
|
widget: Object,
|
|
49
53
|
parentWidget: Object,
|
|
50
54
|
parentList: Array,
|
|
51
55
|
indexOfParentList: Number,
|
|
52
|
-
designer: Object
|
|
56
|
+
designer: Object,
|
|
53
57
|
},
|
|
54
58
|
computed: {
|
|
55
59
|
selected() {
|
|
@@ -57,16 +61,16 @@ modules = {
|
|
|
57
61
|
},
|
|
58
62
|
|
|
59
63
|
customClass() {
|
|
60
|
-
return this.widget.options.customClass ||
|
|
64
|
+
return this.widget.options.customClass || "";
|
|
61
65
|
},
|
|
62
66
|
columns() {
|
|
63
67
|
let tableColumns = this.widget.options.tableColumns;
|
|
64
68
|
let newColumns = [];
|
|
65
69
|
newColumns.push({
|
|
66
|
-
type:
|
|
70
|
+
type: "checkbox",
|
|
67
71
|
width: 48,
|
|
68
72
|
resizable: false,
|
|
69
|
-
fixed:
|
|
73
|
+
fixed: "left",
|
|
70
74
|
});
|
|
71
75
|
const createColumn = (t, isChild) => {
|
|
72
76
|
let col = {
|
|
@@ -74,16 +78,16 @@ modules = {
|
|
|
74
78
|
field: t.prop,
|
|
75
79
|
title: t.label,
|
|
76
80
|
sortable: t.sortable,
|
|
77
|
-
align: t.align ? t.align :
|
|
81
|
+
align: t.align ? t.align : "center",
|
|
78
82
|
formatter: this.formatterValue,
|
|
79
83
|
params: {
|
|
80
|
-
formatS: t.formatS
|
|
84
|
+
formatS: t.formatS,
|
|
81
85
|
},
|
|
82
|
-
visible: t.show
|
|
86
|
+
visible: t.show,
|
|
83
87
|
};
|
|
84
88
|
if (t.children && t.children.length) {
|
|
85
|
-
col.align =
|
|
86
|
-
let childColumns = t.children.map(child => {
|
|
89
|
+
col.align = "center";
|
|
90
|
+
let childColumns = t.children.map((child) => {
|
|
87
91
|
return createColumn(child, true);
|
|
88
92
|
});
|
|
89
93
|
col.children = childColumns;
|
|
@@ -108,7 +112,7 @@ modules = {
|
|
|
108
112
|
return col;
|
|
109
113
|
};
|
|
110
114
|
|
|
111
|
-
tableColumns.forEach(t => {
|
|
115
|
+
tableColumns.forEach((t) => {
|
|
112
116
|
/*let col = {
|
|
113
117
|
fixed: !!t.fixed && t.fixed,
|
|
114
118
|
field: t.prop,
|
|
@@ -131,10 +135,10 @@ modules = {
|
|
|
131
135
|
let tableColumns = this.widget.columns;
|
|
132
136
|
let newColumns = [];
|
|
133
137
|
newColumns.push({
|
|
134
|
-
type:
|
|
138
|
+
type: "checkbox",
|
|
135
139
|
width: 48,
|
|
136
140
|
resizable: false,
|
|
137
|
-
fixed:
|
|
141
|
+
fixed: "left",
|
|
138
142
|
});
|
|
139
143
|
tableColumns.forEach((item, index) => {
|
|
140
144
|
let t = item.options;
|
|
@@ -144,12 +148,12 @@ modules = {
|
|
|
144
148
|
title: t.label,
|
|
145
149
|
width: t.columnWidth,
|
|
146
150
|
sortable: !!t.name ? true : false,
|
|
147
|
-
align:
|
|
151
|
+
align: "center",
|
|
148
152
|
/*formatter: this.formatterValue,
|
|
149
153
|
params: {
|
|
150
154
|
formatS: t.formatS
|
|
151
155
|
},*/
|
|
152
|
-
visible: true
|
|
156
|
+
visible: true,
|
|
153
157
|
};
|
|
154
158
|
newColumns.push(col);
|
|
155
159
|
});
|
|
@@ -158,9 +162,9 @@ modules = {
|
|
|
158
162
|
gridOptions() {
|
|
159
163
|
return {
|
|
160
164
|
...this.gridOptions1,
|
|
161
|
-
columns: this.columns
|
|
165
|
+
columns: this.columns,
|
|
162
166
|
};
|
|
163
|
-
}
|
|
167
|
+
},
|
|
164
168
|
},
|
|
165
169
|
watch: {
|
|
166
170
|
//
|
|
@@ -195,85 +199,82 @@ modules = {
|
|
|
195
199
|
row.editWidget = fieldWidget;
|
|
196
200
|
}
|
|
197
201
|
})*/
|
|
198
|
-
this.handleTableColumnWidget(this.widget)
|
|
202
|
+
this.handleTableColumnWidget(this.widget);
|
|
199
203
|
},
|
|
200
204
|
handleTableColumnWidget(widget) {
|
|
201
205
|
//修复data-table旧数据表格列widget与editWidget为空的问题
|
|
202
|
-
if (
|
|
206
|
+
if (
|
|
207
|
+
!widget ||
|
|
208
|
+
widget.type != "data-table" ||
|
|
209
|
+
!widget.options.tableColumns
|
|
210
|
+
)
|
|
211
|
+
return;
|
|
203
212
|
let columnLoopDo = (t, e) => {
|
|
204
|
-
if(t.filterable===null || t.filterable===undefined)
|
|
213
|
+
if (t.filterable === null || t.filterable === undefined)
|
|
214
|
+
t.filterable = true;
|
|
205
215
|
if (t.children && t.children.length) {
|
|
206
216
|
for (let item of t.children) {
|
|
207
|
-
columnLoopDo(item)
|
|
217
|
+
columnLoopDo(item);
|
|
208
218
|
}
|
|
209
|
-
|
|
210
219
|
} else {
|
|
211
220
|
let type1 = columnFormatMap[t.formatS];
|
|
212
|
-
if(type1){
|
|
213
|
-
if(!t.widget){
|
|
221
|
+
if (type1) {
|
|
222
|
+
if (!t.widget) {
|
|
214
223
|
let fieldWidget = this.designer.getColumnWidget(t, false);
|
|
215
224
|
t.widget = fieldWidget;
|
|
216
225
|
}
|
|
217
|
-
if (t.widget) t.widget.columnType = t.formatS
|
|
226
|
+
if (t.widget) t.widget.columnType = t.formatS;
|
|
218
227
|
}
|
|
219
228
|
let type2 = columnFormatMap[t.editFormatS];
|
|
220
|
-
if(type2){
|
|
229
|
+
if (type2) {
|
|
221
230
|
if (!t.editWidget) {
|
|
222
231
|
let fieldWidget = this.designer.getColumnWidget(t, true);
|
|
223
232
|
t.editWidget = fieldWidget;
|
|
224
233
|
}
|
|
225
|
-
if (t.editWidget) t.editWidget.columnType = t.editFormatS
|
|
234
|
+
if (t.editWidget) t.editWidget.columnType = t.editFormatS;
|
|
226
235
|
}
|
|
227
236
|
}
|
|
228
|
-
}
|
|
237
|
+
};
|
|
229
238
|
|
|
230
239
|
for (let item of widget.options.tableColumns) {
|
|
231
|
-
columnLoopDo(item)
|
|
240
|
+
columnLoopDo(item);
|
|
232
241
|
}
|
|
233
242
|
/*widget.options.tableColumns.forEach(item => {
|
|
234
243
|
columnLoopDo(item)
|
|
235
244
|
})*/
|
|
236
245
|
},
|
|
237
|
-
resetEvent() {
|
|
238
|
-
},
|
|
239
|
-
|
|
240
|
-
},
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
importExcel() {
|
|
244
|
-
},
|
|
245
|
-
formatterValue: function ({
|
|
246
|
-
cellValue,
|
|
247
|
-
row,
|
|
248
|
-
column
|
|
249
|
-
}) {
|
|
250
|
-
if (!cellValue) return '';
|
|
246
|
+
resetEvent() {},
|
|
247
|
+
searchEvent() {},
|
|
248
|
+
openEditDialog() {},
|
|
249
|
+
importExcel() {},
|
|
250
|
+
formatterValue: function ({ cellValue, row, column }) {
|
|
251
|
+
if (!cellValue) return "";
|
|
251
252
|
|
|
252
253
|
if (column.params && column.params.formatS)
|
|
253
254
|
switch (column.params.formatS) {
|
|
254
|
-
case
|
|
255
|
+
case "d1":
|
|
255
256
|
return baseRefUtil.formatUtil.formatDate1(cellValue);
|
|
256
|
-
case
|
|
257
|
+
case "d2":
|
|
257
258
|
return baseRefUtil.formatUtil.formatDate2(cellValue);
|
|
258
|
-
case
|
|
259
|
+
case "d3":
|
|
259
260
|
return baseRefUtil.formatUtil.formatDate3(cellValue);
|
|
260
|
-
case
|
|
261
|
+
case "d4":
|
|
261
262
|
return baseRefUtil.formatUtil.formatDate4(cellValue);
|
|
262
|
-
case
|
|
263
|
+
case "d5":
|
|
263
264
|
return baseRefUtil.formatUtil.formatDate4(cellValue);
|
|
264
|
-
case
|
|
265
|
+
case "n1":
|
|
265
266
|
return baseRefUtil.formatUtil.formatNumber1(cellValue);
|
|
266
|
-
case
|
|
267
|
+
case "n2":
|
|
267
268
|
return baseRefUtil.formatUtil.formatNumber2(cellValue);
|
|
268
|
-
case
|
|
269
|
+
case "n3":
|
|
269
270
|
return baseRefUtil.formatUtil.formatNumber3(cellValue);
|
|
270
|
-
case
|
|
271
|
+
case "n4":
|
|
271
272
|
return baseRefUtil.formatUtil.formatNumber4(cellValue);
|
|
272
|
-
case
|
|
273
|
+
case "n5":
|
|
273
274
|
return baseRefUtil.formatUtil.formatNumber5(cellValue);
|
|
274
|
-
case
|
|
275
|
+
case "n6":
|
|
275
276
|
return baseRefUtil.formatUtil.formatNumber6(cellValue);
|
|
276
|
-
case
|
|
277
|
+
case "n7":
|
|
277
278
|
return baseRefUtil.formatUtil.formatNumber7(cellValue);
|
|
278
279
|
}
|
|
279
280
|
return cellValue;
|
|
@@ -283,8 +284,8 @@ modules = {
|
|
|
283
284
|
},
|
|
284
285
|
getI18nLabel(label, path, param) {
|
|
285
286
|
return !this.designState && label ? this.$t2(label, path, param) : label;
|
|
286
|
-
}
|
|
287
|
-
}
|
|
287
|
+
},
|
|
288
|
+
},
|
|
288
289
|
};
|
|
289
290
|
|
|
290
291
|
export default modules;
|
package/src/components/xform/form-designer/form-widget/container-widget/data-table-widget.vue
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
<template #form>
|
|
18
18
|
<template v-if="widget.options.isQueryTable">
|
|
19
19
|
<div class="clearfix screen-btns">
|
|
20
|
-
<div class="fl
|
|
20
|
+
<div class="fl button-drag-zone">
|
|
21
21
|
<!-- <vxe-button status="primary" class="button-sty" icon="el-icon-upload2"
|
|
22
22
|
v-if="widget.options.showExportBtn!==false">导出
|
|
23
23
|
</vxe-button>-->
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
<div class="fr">
|
|
66
66
|
<!-- <vxe-button icon="el-icon-view" class="button-sty" @click="searchEvent">显示总记录数</vxe-button> -->
|
|
67
67
|
<vxe-button icon="el-icon-brush" class="button-sty" @click="resetEvent" type="text" status="primary"
|
|
68
|
-
plain
|
|
68
|
+
plain>刷新
|
|
69
69
|
</vxe-button>
|
|
70
70
|
|
|
71
71
|
<vxe-button status="warning" icon="el-icon-search" class="button-sty" @click="searchEvent">搜索
|
|
@@ -247,9 +247,14 @@ div.table-container {
|
|
|
247
247
|
}
|
|
248
248
|
}
|
|
249
249
|
|
|
250
|
+
/* 按钮拖放区:宽度自适应,最多占满除右侧刷新/搜索按钮外的空间,超出后按钮换行 */
|
|
251
|
+
.screen-btns .fl.button-drag-zone {
|
|
252
|
+
max-width: calc(100% - 180px);
|
|
253
|
+
}
|
|
254
|
+
|
|
250
255
|
.sub-form-table {
|
|
251
256
|
min-height: 68px;
|
|
252
|
-
min-width:
|
|
257
|
+
min-width: 200px
|
|
253
258
|
}
|
|
254
259
|
|
|
255
260
|
.sub-form-table .sub-form-drag-drop-zone {
|
|
@@ -257,7 +262,8 @@ div.table-container {
|
|
|
257
262
|
}
|
|
258
263
|
|
|
259
264
|
.sub-form-table div.sub-form-table-column {
|
|
260
|
-
display: inline-block
|
|
265
|
+
display: inline-block;
|
|
266
|
+
vertical-align: top
|
|
261
267
|
}
|
|
262
268
|
|
|
263
269
|
</style>
|
package/src/components/xform/form-designer/form-widget/container-widget/detail-plain-widget.vue
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
/**
|
|
3
|
+
* 简洁详情模块(detail-plain)设计态:无标题栏、无按钮拖放区,仅 panes(详情tab)。
|
|
4
|
+
*/
|
|
5
|
+
-->
|
|
6
|
+
|
|
7
|
+
<template>
|
|
8
|
+
<container-wrapper :designer="designer" :widget="widget" :parent-widget="parentWidget" :parent-list="parentList"
|
|
9
|
+
:index-of-parent-list="indexOfParentList" :class="widget.options.isFullscreen ? 'full-height':''">
|
|
10
|
+
<div class="detail-wrap grid-container" :key="widget.id"
|
|
11
|
+
:class="{'selected': selected}" @click.stop="selectWidget(widget)">
|
|
12
|
+
<baseTabs style="height: auto;" :showNav="!widget.options.hideNav">
|
|
13
|
+
<detail-pane-widget v-for="(paneWidget, index) in widget.panes" :key="index" :widget="paneWidget"
|
|
14
|
+
:designer="designer" :parent-list="widget.panes"
|
|
15
|
+
:index-of-parent-list="index" :parent-widget="widget"
|
|
16
|
+
:col-height="widget.options.colHeight" tabRef="baseTabRef"
|
|
17
|
+
:tabPaneGrade="2"></detail-pane-widget>
|
|
18
|
+
</baseTabs>
|
|
19
|
+
</div>
|
|
20
|
+
</container-wrapper>
|
|
21
|
+
</template>
|
|
22
|
+
|
|
23
|
+
<script>
|
|
24
|
+
import i18n from "../../../../../components/xform/utils/i18n"
|
|
25
|
+
import detailPaneWidget from "../../../../../components/xform/form-designer/form-widget/container-widget/detail-pane-widget"
|
|
26
|
+
import containerMixin from "../../../../../components/xform/form-designer/form-widget/container-widget/containerMixin"
|
|
27
|
+
import ContainerWrapper from "../../../../../components/xform/form-designer/form-widget/container-widget/container-wrapper"
|
|
28
|
+
import refMixinDesign from "../../../../../components/xform/form-designer/refMixinDesign"
|
|
29
|
+
import FieldComponents from "../../../../../components/xform/form-designer/form-widget/field-widget";
|
|
30
|
+
|
|
31
|
+
export default {
|
|
32
|
+
name: "detail-plain-widget",
|
|
33
|
+
componentName: 'ContainerWidget',
|
|
34
|
+
mixins: [i18n, containerMixin, refMixinDesign],
|
|
35
|
+
inject: ['refList'],
|
|
36
|
+
components: {
|
|
37
|
+
ContainerWrapper,
|
|
38
|
+
detailPaneWidget,
|
|
39
|
+
...FieldComponents,
|
|
40
|
+
},
|
|
41
|
+
props: {
|
|
42
|
+
widget: Object,
|
|
43
|
+
parentWidget: Object,
|
|
44
|
+
parentList: Array,
|
|
45
|
+
indexOfParentList: Number,
|
|
46
|
+
designer: Object,
|
|
47
|
+
},
|
|
48
|
+
computed: {
|
|
49
|
+
selected() {
|
|
50
|
+
return this.widget.id === this.designer.selectedId
|
|
51
|
+
},
|
|
52
|
+
|
|
53
|
+
customClass() {
|
|
54
|
+
return this.widget.options.customClass || ''
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
created() {
|
|
58
|
+
this.initRefList()
|
|
59
|
+
},
|
|
60
|
+
}
|
|
61
|
+
</script>
|
|
62
|
+
|
|
63
|
+
<style lang="scss" scoped>
|
|
64
|
+
.grid-container {
|
|
65
|
+
min-height: 50px;
|
|
66
|
+
outline: 1px dashed #336699;
|
|
67
|
+
> div{height:100%;}
|
|
68
|
+
.form-widget-list {
|
|
69
|
+
height: 100%;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.grid-container.selected, .grid-cell.selected {
|
|
74
|
+
outline: 2px solid $--color-primary !important;
|
|
75
|
+
}
|
|
76
|
+
</style>
|
|
@@ -65,11 +65,57 @@
|
|
|
65
65
|
<el-button type="primary" class="button-sty" icon="el-icon-check">保存</el-button>
|
|
66
66
|
</div>-->
|
|
67
67
|
</div>
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
68
|
+
<!-- 正文区:通用容器列表。panes 里既可以直接挂 detail-pane(模块),也可以挂 tab 等
|
|
69
|
+
其它容器(标签承载)。设计期这里不套 baseTabs——draggable 会隔断 baseTabs.getTabs()
|
|
70
|
+
对 slot 子级的探测(见 baseTabs/mixins.js getTabs),导航拿不到 pane,索性不渲染,
|
|
71
|
+
左侧导航预览只在运行期有。 -->
|
|
72
|
+
<draggable
|
|
73
|
+
:list="widget.panes"
|
|
74
|
+
v-bind="{ group: 'dragGroup', ghostClass: 'ghost', animation: 200 }"
|
|
75
|
+
handle=".drag-handler"
|
|
76
|
+
@add="evt => onContainerDragAdd(evt, widget.panes)"
|
|
77
|
+
@update="onContainerDragUpdate"
|
|
78
|
+
:move="checkContainerMove"
|
|
79
|
+
>
|
|
80
|
+
<transition-group name="fade" tag="div" class="detail-pane-list">
|
|
81
|
+
<template v-for="(paneWidget, index) in widget.panes">
|
|
82
|
+
<!-- 模块:额外要 tabRef/tabPaneGrade,这两个 props 是 baseTabs 探测用的,只给 detail-pane -->
|
|
83
|
+
<detail-pane-widget
|
|
84
|
+
v-if="paneWidget.type === 'detail-pane'"
|
|
85
|
+
:key="paneWidget.id"
|
|
86
|
+
:widget="paneWidget"
|
|
87
|
+
:designer="designer"
|
|
88
|
+
:parent-list="widget.panes"
|
|
89
|
+
:index-of-parent-list="index"
|
|
90
|
+
:parent-widget="widget"
|
|
91
|
+
:col-height="widget.options.colHeight"
|
|
92
|
+
tabRef="baseTabRef"
|
|
93
|
+
:tabPaneGrade="2"
|
|
94
|
+
></detail-pane-widget>
|
|
95
|
+
<component
|
|
96
|
+
v-else-if="'container' === paneWidget.category"
|
|
97
|
+
:is="paneWidget.type + '-widget'"
|
|
98
|
+
:key="paneWidget.id"
|
|
99
|
+
:widget="paneWidget"
|
|
100
|
+
:designer="designer"
|
|
101
|
+
:parent-list="widget.panes"
|
|
102
|
+
:index-of-parent-list="index"
|
|
103
|
+
:parent-widget="widget"
|
|
104
|
+
></component>
|
|
105
|
+
<component
|
|
106
|
+
v-else
|
|
107
|
+
:is="paneWidget.type + '-widget'"
|
|
108
|
+
:key="paneWidget.id"
|
|
109
|
+
:field="paneWidget"
|
|
110
|
+
:designer="designer"
|
|
111
|
+
:parent-list="widget.panes"
|
|
112
|
+
:index-of-parent-list="index"
|
|
113
|
+
:parent-widget="widget"
|
|
114
|
+
:design-state="true"
|
|
115
|
+
></component>
|
|
116
|
+
</template>
|
|
117
|
+
</transition-group>
|
|
118
|
+
</draggable>
|
|
73
119
|
</div>
|
|
74
120
|
</container-wrapper>
|
|
75
121
|
</template>
|
|
@@ -140,6 +186,14 @@
|
|
|
140
186
|
height: 100%;
|
|
141
187
|
}
|
|
142
188
|
|
|
189
|
+
/* 正文区(panes)的拖放区。不能复用上面的 .form-widget-list——那条是 height:100% 且
|
|
190
|
+
min-height 被注释掉的,空态会塌成一条线,没有地方往里拖组件。
|
|
191
|
+
这里给足高度,保证空态也是个看得见、拖得进的落区。 */
|
|
192
|
+
.detail-pane-list {
|
|
193
|
+
min-height: 150px;
|
|
194
|
+
height: auto;
|
|
195
|
+
}
|
|
196
|
+
|
|
143
197
|
}
|
|
144
198
|
|
|
145
199
|
.grid-container.selected, .grid-cell.selected {
|
|
@@ -11,6 +11,18 @@
|
|
|
11
11
|
:_dataId.sync="dataId" :defaultShowWfContent="defaultShowWfContent" :_isOutLink="true"
|
|
12
12
|
:parent-target="_self"
|
|
13
13
|
@reload="$reloadHandle" v-bind="queryParam" v-on="listeners"></component>
|
|
14
|
+
<micro-view-host
|
|
15
|
+
v-else-if="showWfContent && remoteView"
|
|
16
|
+
:owner="remoteView.owner"
|
|
17
|
+
:target-path="remoteView.targetPath"
|
|
18
|
+
:biz-params="remoteView.bizParams"
|
|
19
|
+
:view-meta="remoteView.viewMeta"
|
|
20
|
+
:initial-out-param="outParam"
|
|
21
|
+
@reload="$reloadHandle"
|
|
22
|
+
@update-out-param="outParam = $event"
|
|
23
|
+
@bridge-emit="onBridgeEmit"
|
|
24
|
+
@close="showWfContent = false"
|
|
25
|
+
></micro-view-host>
|
|
14
26
|
</div>
|
|
15
27
|
<span slot="footer" class="dialog-footer" v-if="option.showFooter!==false" v-bind="option.footerConfig">
|
|
16
28
|
<el-button type="primary" plain class="button-sty" @click="close">
|
|
@@ -26,9 +38,9 @@
|
|
|
26
38
|
</template>
|
|
27
39
|
|
|
28
40
|
<script>
|
|
41
|
+
import { loadViewComponent } from "@base/utils/resolveViewComponent";
|
|
29
42
|
|
|
30
43
|
export default {
|
|
31
|
-
// name: "vabSearchDialog",
|
|
32
44
|
components: {},
|
|
33
45
|
props: {
|
|
34
46
|
visiable: Boolean,
|
|
@@ -63,6 +75,7 @@ export default {
|
|
|
63
75
|
|
|
64
76
|
showWfContent: true,
|
|
65
77
|
wfContent: null,
|
|
78
|
+
remoteView: null,
|
|
66
79
|
outParam: null,
|
|
67
80
|
// dataId: null,
|
|
68
81
|
defaultShowWfContent: null,
|
|
@@ -175,23 +188,29 @@ export default {
|
|
|
175
188
|
|
|
176
189
|
this.showWfContent = true;
|
|
177
190
|
|
|
178
|
-
let
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
191
|
+
let res = loadViewComponent(url);
|
|
192
|
+
this.remoteView =
|
|
193
|
+
res.kind === "remote"
|
|
194
|
+
? {
|
|
195
|
+
owner: res.owner,
|
|
196
|
+
targetPath: res.targetPath,
|
|
197
|
+
bizParams: this.queryParam,
|
|
198
|
+
viewMeta: {
|
|
199
|
+
visibleKey: "showWfContent",
|
|
200
|
+
defaultShowWfContent: this.defaultShowWfContent,
|
|
201
|
+
_isOutLink: true,
|
|
202
|
+
_dataId: this.dataId,
|
|
203
|
+
},
|
|
204
|
+
}
|
|
205
|
+
: null;
|
|
206
|
+
this.wfContent = res.component;
|
|
193
207
|
},
|
|
194
208
|
|
|
209
|
+
// remote 承载态下,把子应用桥接回来的任意事件按名字派回原 option.on 监听
|
|
210
|
+
onBridgeEmit(name, args) {
|
|
211
|
+
let fn = this.listeners && this.listeners[name];
|
|
212
|
+
if (typeof fn === "function") fn.apply(null, args || []);
|
|
213
|
+
},
|
|
195
214
|
|
|
196
215
|
reload(e, option) {
|
|
197
216
|
let updateParam = option?.updateParam || {};
|
|
@@ -277,6 +296,8 @@ export default {
|
|
|
277
296
|
outline: none;
|
|
278
297
|
|
|
279
298
|
&.detail-wrap .d-cont {
|
|
299
|
+
//height: calc(100vh - 150px);
|
|
300
|
+
|
|
280
301
|
.title .field-wrapper {
|
|
281
302
|
display: inline-block !important
|
|
282
303
|
}
|
|
@@ -291,7 +312,7 @@ export default {
|
|
|
291
312
|
height: calc(100vh - 110px);
|
|
292
313
|
|
|
293
314
|
&.nfootBtn {
|
|
294
|
-
height: calc(100vh - 58px)
|
|
315
|
+
height: calc(100vh - var(--xform-dialog-body-offset, 58px))
|
|
295
316
|
}
|
|
296
317
|
}
|
|
297
318
|
}
|