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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div id="containt">
|
|
3
|
-
<template v-if="layoutType
|
|
3
|
+
<template v-if="layoutType === 'PC'">
|
|
4
4
|
<x-tabs
|
|
5
5
|
ref="xTabs"
|
|
6
6
|
v-model="activeName"
|
|
@@ -59,16 +59,12 @@
|
|
|
59
59
|
:param="item.param"
|
|
60
60
|
v-if="item.showContent"
|
|
61
61
|
:parent-target="_self"
|
|
62
|
-
@reload="
|
|
63
|
-
(...args) => {
|
|
64
|
-
reloadAutoContent(...args);
|
|
65
|
-
}
|
|
66
|
-
"
|
|
62
|
+
@reload="(...args) => reloadAutoContent(...args)"
|
|
67
63
|
:openEditDialog="openEditDialog1"
|
|
68
64
|
></vFormRender>
|
|
69
65
|
</div>
|
|
70
66
|
</el-tab-pane>
|
|
71
|
-
<template #editTab="{ tab
|
|
67
|
+
<template #editTab="{ tab }">
|
|
72
68
|
<el-tab-pane
|
|
73
69
|
:key="tab.tabName"
|
|
74
70
|
:label="tab.data[tab.tabLabelField]"
|
|
@@ -82,19 +78,14 @@
|
|
|
82
78
|
:param="tab.param"
|
|
83
79
|
v-if="tab.showContent"
|
|
84
80
|
:parent-target="_self"
|
|
85
|
-
@reload="
|
|
86
|
-
(...args) => {
|
|
87
|
-
formData = {};
|
|
88
|
-
reloadTabContent(...args);
|
|
89
|
-
}
|
|
90
|
-
"
|
|
81
|
+
@reload="(...args) => onEditTabReload(tab, ...args)"
|
|
91
82
|
@openCopyEditTab="openCopyEditTab"
|
|
92
83
|
></vFormRender>
|
|
93
84
|
</el-tab-pane>
|
|
94
85
|
</template>
|
|
95
86
|
</x-tabs>
|
|
96
87
|
</template>
|
|
97
|
-
<template v-else-if="layoutType
|
|
88
|
+
<template v-else-if="layoutType === 'H5'">
|
|
98
89
|
<el-dialog
|
|
99
90
|
:title="$t1('明细详情')"
|
|
100
91
|
:modal-append-to-body="false"
|
|
@@ -191,7 +182,7 @@ export default {
|
|
|
191
182
|
},
|
|
192
183
|
methods: {
|
|
193
184
|
handleTabChange(tabName) {
|
|
194
|
-
if (tabName
|
|
185
|
+
if (tabName === "second") {
|
|
195
186
|
this.$refs.list.dataTableSearch();
|
|
196
187
|
} else if (tabName.startsWith("otherTab")) {
|
|
197
188
|
let refName = tabName.replace("otherTab", "list");
|
|
@@ -255,13 +246,15 @@ export default {
|
|
|
255
246
|
},
|
|
256
247
|
openOtherTab(row, param, option) {
|
|
257
248
|
let dataId = row && row.id ? row.id : null;
|
|
258
|
-
let formCode = option
|
|
259
|
-
let otherTab = this.otherTabList.find(
|
|
260
|
-
(item) => item.formCode == formCode
|
|
261
|
-
);
|
|
249
|
+
let formCode = option?.formCode;
|
|
262
250
|
let otherTabIndex = this.otherTabList.findIndex(
|
|
263
|
-
(item) => item.formCode
|
|
251
|
+
(item) => item.formCode === formCode
|
|
264
252
|
);
|
|
253
|
+
if (otherTabIndex < 0) {
|
|
254
|
+
this.$message.error(`未配置对应的关联页签: ${formCode}`);
|
|
255
|
+
return;
|
|
256
|
+
}
|
|
257
|
+
let otherTab = this.otherTabList[otherTabIndex];
|
|
265
258
|
this.activeName = `otherTab${otherTabIndex}`;
|
|
266
259
|
|
|
267
260
|
otherTab.dataId = dataId;
|
|
@@ -278,7 +271,7 @@ export default {
|
|
|
278
271
|
this.openOtherTab(row, param, option);
|
|
279
272
|
return;
|
|
280
273
|
}
|
|
281
|
-
if (this.layoutType
|
|
274
|
+
if (this.layoutType === "H5") {
|
|
282
275
|
this.openEditH5Dialog(row, param);
|
|
283
276
|
return;
|
|
284
277
|
}
|
|
@@ -299,26 +292,41 @@ export default {
|
|
|
299
292
|
|
|
300
293
|
let dataId = row && row.id ? row.id : null;
|
|
301
294
|
this.dataId = dataId;
|
|
295
|
+
let isAdd = !dataId;
|
|
302
296
|
let formCode = null;
|
|
303
|
-
if (
|
|
297
|
+
if (isAdd) {
|
|
304
298
|
formCode = option?.formCode || this.addFormCode;
|
|
305
299
|
} else {
|
|
306
300
|
formCode = option?.formCode || this.formCode2;
|
|
307
301
|
}
|
|
308
|
-
|
|
309
|
-
|
|
302
|
+
// 新增页签门控:需先启用「列表启用详情多标签」,再叠加 addTabEnabled、新增、配了标题字段
|
|
303
|
+
let addTab =
|
|
304
|
+
multiTabEnabled && formConfig.addTabEnabled && isAdd && tabLabelField;
|
|
305
|
+
if ((multiTabEnabled && dataId) || addTab) {
|
|
306
|
+
// 归一:新增/编辑都走 openEditTab
|
|
307
|
+
// 新增合成唯一 id,让去重(paneKeyName='id')/tabName/paneName 三者对齐
|
|
308
|
+
let key = isAdd
|
|
309
|
+
? "add_" + Date.now() + "_" + Math.random().toString(36).slice(2, 6)
|
|
310
|
+
: dataId;
|
|
311
|
+
let openRow = isAdd
|
|
312
|
+
? { ...row, id: key, [tabLabelField]: "新增" }
|
|
313
|
+
: row;
|
|
314
|
+
this.$refs.xTabs.openEditTab(openRow, param, {
|
|
310
315
|
tabParam: {
|
|
311
316
|
formCode,
|
|
312
317
|
tabLabelField,
|
|
313
|
-
tabName:
|
|
314
|
-
|
|
318
|
+
tabName: String(key), // el-tabs 的 name 需为 String,dataId 可能是 Number
|
|
319
|
+
isAdd,
|
|
320
|
+
// 新增时 dataId 必须为 null,避免 vFormRender 把合成 id 当真实单号去 getOne
|
|
321
|
+
...(isAdd ? { dataId: null } : {}),
|
|
322
|
+
// 翻单快照:新增也带(navIndex=-1),保存后把新单插入序列首位
|
|
315
323
|
navRows: option?.navRows || null,
|
|
316
324
|
navIndex: option?.navIndex ?? -1,
|
|
317
325
|
},
|
|
318
326
|
});
|
|
319
327
|
} else {
|
|
320
328
|
this.formCode1 = formCode;
|
|
321
|
-
this.activeName = option
|
|
329
|
+
this.activeName = option?.activeName || "first";
|
|
322
330
|
this.showEdit = false;
|
|
323
331
|
this.showEditDialog = true;
|
|
324
332
|
this.param = param;
|
|
@@ -366,6 +374,86 @@ export default {
|
|
|
366
374
|
}
|
|
367
375
|
return reloadTask;
|
|
368
376
|
},
|
|
377
|
+
reload2() {
|
|
378
|
+
this.formData = {};
|
|
379
|
+
this.$reloadHandle(...arguments);
|
|
380
|
+
},
|
|
381
|
+
// 逐级解析真实表单的 formDataModel(target 可能是包裹组件,真实表单在内层 vFormRef 上)
|
|
382
|
+
resolveFormModel(target) {
|
|
383
|
+
return (
|
|
384
|
+
(target && target.formDataModel) ||
|
|
385
|
+
(target && target.$refs && target.$refs.vFormRef
|
|
386
|
+
? target.$refs.vFormRef.formDataModel
|
|
387
|
+
: null) ||
|
|
388
|
+
(target && target.getFormRef && target.getFormRef()
|
|
389
|
+
? target.getFormRef().formDataModel
|
|
390
|
+
: null) ||
|
|
391
|
+
{}
|
|
392
|
+
);
|
|
393
|
+
},
|
|
394
|
+
// 应用保存结果到页签「元数据」:升级编辑态 + 同步标题。不含内容重渲染。
|
|
395
|
+
applyTabSaveResult(tab, dataId, formCode, formModel) {
|
|
396
|
+
// ① 首次新增保存:就地升级本页签为编辑态
|
|
397
|
+
if (tab.isAdd && dataId) {
|
|
398
|
+
tab.data.id = dataId; // 从列表再打开同单号可复用本页签
|
|
399
|
+
tab.dataId = dataId; // 表单不 watch dataId,此处不会触发内容重载
|
|
400
|
+
tab.isAdd = false;
|
|
401
|
+
if (formCode) tab.formCode = formCode;
|
|
402
|
+
// 新增保存:把新单插入翻单序列首位(新数组,不改动列表原 fullData 引用)
|
|
403
|
+
if (Array.isArray(tab.navRows)) {
|
|
404
|
+
tab.navRows = [tab.data, ...tab.navRows];
|
|
405
|
+
tab.navIndex = 0;
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
// ② 同步标题为「标签名称字段」最新值;无值则保持原标题,不回退用单号
|
|
409
|
+
let labelField = tab.tabLabelField;
|
|
410
|
+
let labelVal =
|
|
411
|
+
labelField != null &&
|
|
412
|
+
formModel &&
|
|
413
|
+
formModel[labelField] != null &&
|
|
414
|
+
formModel[labelField] !== ""
|
|
415
|
+
? formModel[labelField]
|
|
416
|
+
: null;
|
|
417
|
+
if (labelVal != null) {
|
|
418
|
+
this.$set(tab.data, labelField, labelVal);
|
|
419
|
+
}
|
|
420
|
+
},
|
|
421
|
+
onEditTabReload(tab, target, param) {
|
|
422
|
+
// 动态页签(新增/编辑)表单保存后回调,tab 直接在作用域内
|
|
423
|
+
this.formData = {};
|
|
424
|
+
let dataId =
|
|
425
|
+
param != null && param.updateParam != null
|
|
426
|
+
? param.updateParam.dataId
|
|
427
|
+
: null;
|
|
428
|
+
let formCode =
|
|
429
|
+
param != null && param.updateParam != null
|
|
430
|
+
? param.updateParam.formCode
|
|
431
|
+
: null;
|
|
432
|
+
this.applyTabSaveResult(tab, dataId, formCode, this.resolveFormModel(target));
|
|
433
|
+
return this.$refs.xTabs.reloadTabContent(target, param, tab); // 重载编辑态(内容重渲染)
|
|
434
|
+
},
|
|
435
|
+
// 供「保存并提交」路径调用:只升级当前活动新增页签的元数据,不重渲染详情内容。
|
|
436
|
+
// 目的:保存成功即升级为编辑态(防止提交失败/取消后重复入库),且不多刷一次详情。
|
|
437
|
+
promoteActiveAddTab(dataId, formCode, target) {
|
|
438
|
+
// 常规「first」页签新增(addTabEnabled 关时新增走此)保存后:升级 dataId 为编辑态,
|
|
439
|
+
// 并把新单插入翻单序列首位,使提交后「刷新当前页签」能显示详情。
|
|
440
|
+
if (this.activeName === "first") {
|
|
441
|
+
if (dataId) {
|
|
442
|
+
this.dataId = dataId;
|
|
443
|
+
if (formCode) this.formCode1 = formCode;
|
|
444
|
+
if (Array.isArray(this.firstNavRows) && this.firstNavIndex === -1) {
|
|
445
|
+
this.firstNavRows = [{ id: dataId }, ...this.firstNavRows];
|
|
446
|
+
this.firstNavIndex = 0;
|
|
447
|
+
}
|
|
448
|
+
}
|
|
449
|
+
return;
|
|
450
|
+
}
|
|
451
|
+
let xTabs = this.$refs.xTabs;
|
|
452
|
+
if (!xTabs) return;
|
|
453
|
+
let tab = xTabs.tabs.find((t) => t.tabName === xTabs.activeName);
|
|
454
|
+
if (!tab) return;
|
|
455
|
+
this.applyTabSaveResult(tab, dataId, formCode, this.resolveFormModel(target));
|
|
456
|
+
},
|
|
369
457
|
// ===== 上一单/下一单:宿主 API,供详情表单 detail-item 的按钮区调用 =====
|
|
370
458
|
// 返回当前活动详情的翻单快照 {rows, index} —— 兼容多标签页签与常规「first」页签;无快照返回 null。
|
|
371
459
|
getActiveBillNavState() {
|
|
@@ -384,7 +472,12 @@ export default {
|
|
|
384
472
|
// 多标签动态编辑页签
|
|
385
473
|
let xTabs = this.$refs.xTabs;
|
|
386
474
|
let tab = xTabs && xTabs.tabs.find((t) => t.tabName === activeName);
|
|
387
|
-
if (
|
|
475
|
+
if (
|
|
476
|
+
tab &&
|
|
477
|
+
!tab.isAdd &&
|
|
478
|
+
Array.isArray(tab.navRows) &&
|
|
479
|
+
tab.navRows.length > 0
|
|
480
|
+
) {
|
|
388
481
|
return { rows: tab.navRows, index: tab.navIndex ?? -1, tab };
|
|
389
482
|
}
|
|
390
483
|
return null;
|
|
@@ -412,13 +505,9 @@ export default {
|
|
|
412
505
|
this.$openEditView("showEdit"); // toggle 重挂载 → 按新 dataId getOne
|
|
413
506
|
}
|
|
414
507
|
},
|
|
415
|
-
reload2() {
|
|
416
|
-
this.formData = {};
|
|
417
|
-
this.$reloadHandle(...arguments);
|
|
418
|
-
},
|
|
419
508
|
initOtherTabList() {
|
|
420
509
|
if (!this.formJson.formConfig.otherTabEnabled) return;
|
|
421
|
-
this.otherTabList = this.formJson.formConfig.otherTabList
|
|
510
|
+
this.otherTabList = (this.formJson.formConfig.otherTabList || [])
|
|
422
511
|
.filter((item) => !!item.formCode && !!item.label)
|
|
423
512
|
.map((item) => {
|
|
424
513
|
return {
|
|
@@ -438,15 +527,23 @@ export default {
|
|
|
438
527
|
}
|
|
439
528
|
|
|
440
529
|
if (!tab) {
|
|
530
|
+
// 未显式传 tab 时按当前激活页签名(otherTab{N})定位到 otherTabList 对应项
|
|
441
531
|
let activeName = this.activeName;
|
|
442
|
-
|
|
532
|
+
if (activeName && activeName.startsWith("otherTab")) {
|
|
533
|
+
let num = Number(activeName.substring("otherTab".length));
|
|
534
|
+
tab = this.otherTabList[num] || null;
|
|
535
|
+
}
|
|
443
536
|
}
|
|
444
537
|
if (tab) {
|
|
445
538
|
tab.showContent = false;
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
539
|
+
return new Promise((resolve) => {
|
|
540
|
+
setTimeout(() => {
|
|
541
|
+
tab.showContent = true;
|
|
542
|
+
this.$nextTick(resolve);
|
|
543
|
+
}, 200);
|
|
544
|
+
});
|
|
449
545
|
}
|
|
546
|
+
return Promise.resolve();
|
|
450
547
|
},
|
|
451
548
|
},
|
|
452
549
|
};
|
|
@@ -526,8 +526,31 @@ export default {
|
|
|
526
526
|
}
|
|
527
527
|
}
|
|
528
528
|
.filter-btns {
|
|
529
|
+
display: flex;
|
|
530
|
+
align-items: center;
|
|
531
|
+
flex-wrap: nowrap;
|
|
532
|
+
gap: 8px;
|
|
529
533
|
.f-btn {
|
|
530
|
-
margin-right:
|
|
534
|
+
margin-right: 0;
|
|
535
|
+
}
|
|
536
|
+
// 内联的 128px !important 无法被覆盖,但 flex-shrink 依然生效,
|
|
537
|
+
// 让各查询项按比例收缩,保证刷新/搜索按钮不换行掉下去
|
|
538
|
+
::v-deep .el-select,
|
|
539
|
+
::v-deep .el-input,
|
|
540
|
+
::v-deep .el-date-editor {
|
|
541
|
+
flex: 0 1 auto;
|
|
542
|
+
min-width: 76px;
|
|
543
|
+
}
|
|
544
|
+
.button-sty {
|
|
545
|
+
display: flex;
|
|
546
|
+
align-items: center;
|
|
547
|
+
gap: 4px;
|
|
548
|
+
min-width: 0;
|
|
549
|
+
margin: 0;
|
|
550
|
+
}
|
|
551
|
+
> .el-button {
|
|
552
|
+
flex: none;
|
|
553
|
+
white-space: nowrap;
|
|
531
554
|
}
|
|
532
555
|
}
|
|
533
556
|
.sum-statistics {
|
|
@@ -222,7 +222,7 @@
|
|
|
222
222
|
type="primary"
|
|
223
223
|
class="button-sty"
|
|
224
224
|
@click="openCurrentTaskUserDialog"
|
|
225
|
-
>{{ $t1("
|
|
225
|
+
>{{ $t1("处理任务用户") }}
|
|
226
226
|
</el-button>
|
|
227
227
|
</div>
|
|
228
228
|
<div class="fr">
|
|
@@ -345,7 +345,7 @@
|
|
|
345
345
|
:multi="false"
|
|
346
346
|
></wfObjConfigDialog>
|
|
347
347
|
<el-dialog
|
|
348
|
-
:title="$t1('
|
|
348
|
+
:title="$t1('处理任务用户')"
|
|
349
349
|
:append-to-body="true"
|
|
350
350
|
:modal-append-to-body="true"
|
|
351
351
|
:close-on-click-modal="false"
|
|
@@ -687,7 +687,11 @@ export default {
|
|
|
687
687
|
owner: res.owner,
|
|
688
688
|
targetPath: res.targetPath,
|
|
689
689
|
bizParams: this.param,
|
|
690
|
-
viewMeta: {
|
|
690
|
+
viewMeta: {
|
|
691
|
+
visibleKey: "showWfContent",
|
|
692
|
+
defaultShowWfContent: true,
|
|
693
|
+
viewType: 1,
|
|
694
|
+
},
|
|
691
695
|
}
|
|
692
696
|
: null;
|
|
693
697
|
this.wfContent = res.component;
|
|
@@ -1083,7 +1087,7 @@ export default {
|
|
|
1083
1087
|
this.$message.error(this.$t1("请选择删除用户"));
|
|
1084
1088
|
return;
|
|
1085
1089
|
}
|
|
1086
|
-
this.$baseConfirm(this.$t1("
|
|
1090
|
+
this.$baseConfirm(this.$t1("您确定要处理任务用户吗?")).then(() => {
|
|
1087
1091
|
this.$http({
|
|
1088
1092
|
url: USER_PREFIX + "/wf_info/updateCurrentTaskUsers",
|
|
1089
1093
|
method: "post",
|
|
@@ -1,209 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<el-drawer v-bind="dialogConfig" @close="close" :visible.sync="showDialog">
|
|
3
|
-
<div class="cont" v-bind="bodyConfig" id="containt">
|
|
4
|
-
<v-form-render :form-json.sync="formJson" :form-data="formData" :option-data="optionData" ref="vFormRef"
|
|
5
|
-
:reportTemplate.sync="formTemplate" :conditionParam.sync="conditionParam"
|
|
6
|
-
:formInsData.sync="formInsData" v-if="showRender" visible-key="showRender" :parent-target="_self"
|
|
7
|
-
@reload="reload" :param="dialogParam"
|
|
8
|
-
class="data-table_height"/>
|
|
9
|
-
</div>
|
|
10
|
-
<span class="dialog-footer" v-if="option.showFooter!==false" v-bind="option.footerConfig">
|
|
11
|
-
<el-button type="primary" plain class="button-sty" @click="close">
|
|
12
|
-
<i class="el-icon-close el-icon"></i>
|
|
13
|
-
{{ $t2('取 消', 'system.button.cancel2') }}
|
|
14
|
-
</el-button>
|
|
15
|
-
<el-button type="primary" @click="dialogSubmit" class="button-sty">
|
|
16
|
-
<i class="el-icon-check el-icon"></i>
|
|
17
|
-
{{ $t2('确 定', 'system.button.confirm2') }}
|
|
18
|
-
</el-button>
|
|
19
|
-
</span>
|
|
20
|
-
</el-drawer>
|
|
21
|
-
</template>
|
|
22
|
-
|
|
23
|
-
<script>
|
|
24
|
-
import VFormRender from "../../../../../components/xform/form-render/index.vue";
|
|
25
|
-
|
|
26
|
-
export default {
|
|
27
|
-
// name: "vabSearchDialog",
|
|
28
|
-
components: {VFormRender},
|
|
29
|
-
props: {
|
|
30
|
-
visiable: Boolean,
|
|
31
|
-
option: Object
|
|
32
|
-
},
|
|
33
|
-
mixins: [],
|
|
34
|
-
inject: ["getFormConfig"],
|
|
35
|
-
mounted() {
|
|
36
|
-
|
|
37
|
-
},
|
|
38
|
-
data() {
|
|
39
|
-
var that = this;
|
|
40
|
-
return {
|
|
41
|
-
showFormField: "_tt",
|
|
42
|
-
showDialog: true,
|
|
43
|
-
falseValue: false,
|
|
44
|
-
selectMulti: true,
|
|
45
|
-
|
|
46
|
-
formJson: {},
|
|
47
|
-
formData: {},
|
|
48
|
-
optionData: {},
|
|
49
|
-
showRender: false,
|
|
50
|
-
formTemplate: {},
|
|
51
|
-
/* formCode: null,*/
|
|
52
|
-
layoutType: null,
|
|
53
|
-
conditionParam: null,
|
|
54
|
-
formInsData: null,
|
|
55
|
-
$grid: null,
|
|
56
|
-
currentLayoutType: null
|
|
57
|
-
};
|
|
58
|
-
},
|
|
59
|
-
computed: {
|
|
60
|
-
formCode() {
|
|
61
|
-
return this.option.formCode;
|
|
62
|
-
},
|
|
63
|
-
dialogParam() {
|
|
64
|
-
return this.option?.param;
|
|
65
|
-
},
|
|
66
|
-
dialogConfig() {
|
|
67
|
-
let customClass = "dialog-style list-dialog dialog-checkbox pd_0";
|
|
68
|
-
if (this.option.dialogConfig?.customClass) {
|
|
69
|
-
customClass = customClass + " " + this.option.dialogConfig.customClass
|
|
70
|
-
}
|
|
71
|
-
let config = {
|
|
72
|
-
title: this.formTemplate.formName,
|
|
73
|
-
appendToBody: false,
|
|
74
|
-
// modalAppendToBody: true,
|
|
75
|
-
// closeOnClickModal: false,
|
|
76
|
-
modal: false,
|
|
77
|
-
destroyOnClose:true,
|
|
78
|
-
// width: "1200px",
|
|
79
|
-
// fullscreen: this.option.fullscreen,
|
|
80
|
-
size:"80%",
|
|
81
|
-
direction:"btt"
|
|
82
|
-
};
|
|
83
|
-
config = Object.assign({}, config, this.option.dialogConfig, {customClass});
|
|
84
|
-
config.title = this.$t1(config.title);
|
|
85
|
-
return config;
|
|
86
|
-
},
|
|
87
|
-
bodyConfig() {
|
|
88
|
-
let config = {};
|
|
89
|
-
let classStr = this.currentLayoutType
|
|
90
|
-
if (this.option.bodyConfig?.class) {
|
|
91
|
-
classStr = classStr + " " + this.option.bodyConfig.class;
|
|
92
|
-
}
|
|
93
|
-
if (this.option.showFooter == false) {
|
|
94
|
-
classStr = classStr + " nfootBtn";
|
|
95
|
-
}
|
|
96
|
-
config = Object.assign({}, config, this.option.bodyConfig, {class: classStr});
|
|
97
|
-
return config;
|
|
98
|
-
}
|
|
99
|
-
},
|
|
100
|
-
created() {
|
|
101
|
-
let currentFormConfig = this.getFormConfig();
|
|
102
|
-
this.currentLayoutType = currentFormConfig.layoutType
|
|
103
|
-
|
|
104
|
-
this.selectMulti = this.option.multiple ?? true;
|
|
105
|
-
this.getReportTemplate();
|
|
106
|
-
},
|
|
107
|
-
methods: {
|
|
108
|
-
reload(){
|
|
109
|
-
this.showRender = false;
|
|
110
|
-
this.getReportTemplate();
|
|
111
|
-
},
|
|
112
|
-
async getReportTemplate() {
|
|
113
|
-
let param = {
|
|
114
|
-
objTypeCode: this.$attrs.objTypeCode,
|
|
115
|
-
objId: this.$attrs.objId,
|
|
116
|
-
taskId: this.$attrs.taskId
|
|
117
|
-
};
|
|
118
|
-
this.conditionParam = param;
|
|
119
|
-
let url, data;
|
|
120
|
-
url = USER_PREFIX + `/formTemplate/getByFormCode`;
|
|
121
|
-
data = {stringOne: this.formCode}
|
|
122
|
-
|
|
123
|
-
let that = this;
|
|
124
|
-
this.$http({
|
|
125
|
-
url: url,
|
|
126
|
-
method: `post`,
|
|
127
|
-
data: data,
|
|
128
|
-
isLoading: true,
|
|
129
|
-
loadingTarget: document.body,
|
|
130
|
-
modalStrictly: true,
|
|
131
|
-
success: res => {
|
|
132
|
-
let formTemplate = res.objx || {};
|
|
133
|
-
this.formTemplate = formTemplate;
|
|
134
|
-
this.formJson = formTemplate.formViewContent ? JSON.parse(formTemplate.formViewContent) : {};
|
|
135
|
-
this.layoutType = this.formJson.formConfig.layoutType
|
|
136
|
-
let formConfig = this.formJson.formConfig;
|
|
137
|
-
if (formConfig.searchDialogUniqueField) {
|
|
138
|
-
this.fieldKey = formConfig.searchDialogUniqueField;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
this.showRender = true;
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
}
|
|
145
|
-
});
|
|
146
|
-
},
|
|
147
|
-
close() {
|
|
148
|
-
let formRef = this.$refs.vFormRef;
|
|
149
|
-
this.showDialog = false;
|
|
150
|
-
this.$emit('update:visiable', false);
|
|
151
|
-
this.option.close && this.option.close(formRef, this);
|
|
152
|
-
},
|
|
153
|
-
dialogSubmit() {
|
|
154
|
-
let formRef = this.$refs.vFormRef;
|
|
155
|
-
if (this.option.confirm) {
|
|
156
|
-
if (this.option.confirm(formRef, this) !== false) {
|
|
157
|
-
this.close();
|
|
158
|
-
}
|
|
159
|
-
} else {
|
|
160
|
-
this.close();
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
</script>
|
|
166
|
-
|
|
167
|
-
<style lang="scss" scoped>
|
|
168
|
-
::v-deep .H5 .h5-fixed-bottom-btns {
|
|
169
|
-
bottom: 95px;
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
.list-dialog {
|
|
173
|
-
.el-dialog__body {
|
|
174
|
-
height: calc(100% - 42px);
|
|
175
|
-
|
|
176
|
-
.cont {
|
|
177
|
-
height: calc(100vh - 210px);
|
|
178
|
-
|
|
179
|
-
&.nfootBtn {
|
|
180
|
-
height: calc(100vh - 158px)
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
&#containt {
|
|
184
|
-
padding: 0;
|
|
185
|
-
|
|
186
|
-
::v-deep .grid-container {
|
|
187
|
-
outline: none;
|
|
188
|
-
|
|
189
|
-
&.detail-wrap .d-cont {
|
|
190
|
-
.title .field-wrapper {
|
|
191
|
-
display: inline-block !important
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
&.is-fullscreen .el-dialog__body {
|
|
200
|
-
.cont {
|
|
201
|
-
height: calc(100vh - 110px);
|
|
202
|
-
|
|
203
|
-
&.nfootBtn {
|
|
204
|
-
height: calc(100vh - 58px)
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
</style>
|