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
|
@@ -0,0 +1,239 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 附件字段值归一工具。
|
|
3
|
+
*
|
|
4
|
+
* 附件组件(baseUpload / base-attachment)只认「附件对象」这一种形态:
|
|
5
|
+
* { domain, url, thumbnail, medium, large, source, name, extension, ... },
|
|
6
|
+
* 其中 domain 与路径是分开的两个字段,渲染时靠 domain + url 拼接。
|
|
7
|
+
* 外部(接口返回、setValue 脚本、字段默认值)常常直接给一个完整 URL 字符串或
|
|
8
|
+
* URL 数组,两个组件对这种值的容忍度不一致(vabUpload 丢裸字符串、baseAttachment
|
|
9
|
+
* 裂数组内的字符串),故在字段层统一归一:进来的一律转成附件对象数组,出去的按
|
|
10
|
+
* 字段配置决定是对象数组还是 URL 字符串。
|
|
11
|
+
*/
|
|
12
|
+
import Vue from "vue";
|
|
13
|
+
|
|
14
|
+
/* 顶层字符串支持逗号/换行分隔多个 URL */
|
|
15
|
+
const URL_SEPARATOR_REG = /[,\n\r]+/;
|
|
16
|
+
/* 协议(或协议相对) + 域名 */
|
|
17
|
+
const DOMAIN_REG = /^((?:https?:)?\/\/[^/]+)/i;
|
|
18
|
+
|
|
19
|
+
function isPlainObject(val) {
|
|
20
|
+
return Object.prototype.toString.call(val) === "[object Object]";
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/* $commonFileUtil 挂在 Vue.prototype 上(src/utils/vab.js),这里延迟取,
|
|
24
|
+
避免 util 直接 import vab.js(它会拉起 request/store/element-ui 全家桶)。 */
|
|
25
|
+
function getFileUtil() {
|
|
26
|
+
let fileUtil = Vue.prototype.$commonFileUtil;
|
|
27
|
+
if (!fileUtil && typeof window !== "undefined" && window.$vueRoot) {
|
|
28
|
+
fileUtil = window.$vueRoot.$commonFileUtil;
|
|
29
|
+
}
|
|
30
|
+
return fileUtil || null;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/* 图片判定必须复用 $commonFileUtil,另造一套白名单会和渲染层
|
|
34
|
+
getShowUrl 的判定打架(它的白名单不含 svg/tif) */
|
|
35
|
+
function isPictureFile(purePath) {
|
|
36
|
+
let fileUtil = getFileUtil();
|
|
37
|
+
return fileUtil ? !!fileUtil.isPictureFile(purePath) : false;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
function getExtension(fileName) {
|
|
41
|
+
let i = fileName.lastIndexOf(".");
|
|
42
|
+
return i < 0 ? "" : fileName.substring(i + 1).toLowerCase();
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* 解析一个 URL(绝对/协议相对/相对路径)为附件对象。
|
|
47
|
+
* 非法输入返回 null(不抛异常),调用方无需 try/catch。
|
|
48
|
+
*
|
|
49
|
+
* @param {String} fileUrl
|
|
50
|
+
* @returns {Object|null} { domain, url, thumbnail, medium, large, source, name, extension }
|
|
51
|
+
*/
|
|
52
|
+
export function parseFileUrl(fileUrl) {
|
|
53
|
+
if (typeof fileUrl !== "string") {
|
|
54
|
+
if (fileUrl !== null && fileUrl !== undefined) {
|
|
55
|
+
console.warn("[attachmentValueUtil] 附件 URL 必须是字符串:", fileUrl);
|
|
56
|
+
}
|
|
57
|
+
return null;
|
|
58
|
+
}
|
|
59
|
+
let value = fileUrl.trim();
|
|
60
|
+
if (!value) return null;
|
|
61
|
+
|
|
62
|
+
let domain = "";
|
|
63
|
+
let url = value;
|
|
64
|
+
let domainMatch = value.match(DOMAIN_REG);
|
|
65
|
+
if (domainMatch) {
|
|
66
|
+
domain = domainMatch[0];
|
|
67
|
+
url = value.substring(domain.length);
|
|
68
|
+
if (!url || url === "/") {
|
|
69
|
+
console.warn("[attachmentValueUtil] URL 缺少文件路径部分:", fileUrl);
|
|
70
|
+
return null;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/* 后缀与文件名要按剥掉 query/hash 的纯路径算(a.png?sign=xx 否则会被当成
|
|
75
|
+
非图片),但 url/medium 等字段必须保留含 query 的原始路径——签名 URL 依赖它 */
|
|
76
|
+
let purePath = url.split(/[?#]/)[0];
|
|
77
|
+
let i = purePath.lastIndexOf("/");
|
|
78
|
+
let fileName = i >= 0 ? purePath.substring(i + 1) : purePath;
|
|
79
|
+
if (!fileName) {
|
|
80
|
+
console.warn("[attachmentValueUtil] 无法从 URL 中提取文件名:", fileUrl);
|
|
81
|
+
return null;
|
|
82
|
+
}
|
|
83
|
+
try {
|
|
84
|
+
fileName = decodeURIComponent(fileName);
|
|
85
|
+
} catch (e) {
|
|
86
|
+
/* 非法转义序列,保留原文件名 */
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
let extension = getExtension(fileName);
|
|
90
|
+
/* 非图片不填缩略图字段,与 obsUpload 的既有做法一致;渲染层拿不到 medium
|
|
91
|
+
会退回 url 并显示文件类型图标 */
|
|
92
|
+
let picture = isPictureFile(purePath);
|
|
93
|
+
|
|
94
|
+
return {
|
|
95
|
+
domain,
|
|
96
|
+
url,
|
|
97
|
+
thumbnail: picture ? url : null,
|
|
98
|
+
medium: picture ? url : null,
|
|
99
|
+
large: picture ? url : null,
|
|
100
|
+
source: picture ? url : null,
|
|
101
|
+
name: fileName,
|
|
102
|
+
extension,
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* 把任意形态的附件字段值归一成附件对象数组。
|
|
108
|
+
* 支持:null / 字符串 / 逗号或换行分隔的字符串 / 字符串数组 / 对象 / 对象数组 / 混合数组。
|
|
109
|
+
* 已经是对象的原样保留——重新解析会丢掉后端字段(id、fileSize、createDate、attachCode 等)。
|
|
110
|
+
*
|
|
111
|
+
* @param {*} val
|
|
112
|
+
* @returns {Array<Object>}
|
|
113
|
+
*/
|
|
114
|
+
export function normalizeAttachmentValue(val) {
|
|
115
|
+
if (val === null || val === undefined || val === "") return [];
|
|
116
|
+
|
|
117
|
+
let list;
|
|
118
|
+
if (Array.isArray(val)) {
|
|
119
|
+
/* 已经全是附件对象(无需转换)时必须原样返回,不能新建数组:调用方会把它写回
|
|
120
|
+
表单模型,而 fieldMixin.initValueWatchEvent 监听模型值——换一个新数组就等于
|
|
121
|
+
模型值"变了",会被灌回 fieldModel 再触发一轮回写,无限循环(查询列表里每行
|
|
122
|
+
一个附件单元格,一查询整页卡死)。空数组同理。 */
|
|
123
|
+
if (val.every(isPlainObject)) return val;
|
|
124
|
+
list = val;
|
|
125
|
+
} else if (isPlainObject(val)) {
|
|
126
|
+
return Object.keys(val).length ? [val] : [];
|
|
127
|
+
} else if (typeof val === "string") {
|
|
128
|
+
list = val.split(URL_SEPARATOR_REG);
|
|
129
|
+
} else {
|
|
130
|
+
console.warn("[attachmentValueUtil] 无法识别的附件值:", val);
|
|
131
|
+
return [];
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
let rows = [];
|
|
135
|
+
list.forEach((item) => {
|
|
136
|
+
if (!item) return;
|
|
137
|
+
if (isPlainObject(item)) {
|
|
138
|
+
rows.push(item);
|
|
139
|
+
return;
|
|
140
|
+
}
|
|
141
|
+
let row = parseFileUrl(item);
|
|
142
|
+
if (row) rows.push(row);
|
|
143
|
+
});
|
|
144
|
+
return rows;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* 附件对象数组 → URL 字符串。拼接规则与 baseUpload 的 dataType 分支一致。
|
|
149
|
+
*
|
|
150
|
+
* @param {Array} rows
|
|
151
|
+
* @param {Object} opts { field: "url"(原文件)|"large"|"medium"|"thumbnail", multi: Boolean }
|
|
152
|
+
* @returns {String|null|Array<String>} multi 为 false 返回单个字符串,否则返回字符串数组
|
|
153
|
+
*/
|
|
154
|
+
export function toUrlValue(rows, opts) {
|
|
155
|
+
let options = opts || {};
|
|
156
|
+
/* 取值字段为空(非图片没有大中小图、旧配置没维护过)时一律退回 url */
|
|
157
|
+
let field = options.field || "url";
|
|
158
|
+
/* 入参兜底:模型值可能是字符串(单值 URL 模式),不能直接 .map */
|
|
159
|
+
let list = Array.isArray(rows) ? rows : rows ? [rows] : [];
|
|
160
|
+
let urls = list
|
|
161
|
+
.map((row) => {
|
|
162
|
+
if (!row) return null;
|
|
163
|
+
if (typeof row === "string") return row;
|
|
164
|
+
if (!isPlainObject(row)) return null;
|
|
165
|
+
return (row.domain || "") + (row[field] || row.url || "");
|
|
166
|
+
})
|
|
167
|
+
.filter((url) => !!url);
|
|
168
|
+
if (options.multi === false) {
|
|
169
|
+
return urls.length ? urls[0] : null;
|
|
170
|
+
}
|
|
171
|
+
return urls;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* 附件字段是否按多值处理。沿用组件既有约定:限制数量为 1 即单值。
|
|
176
|
+
*/
|
|
177
|
+
export function isUrlValueMulti(fieldOptions) {
|
|
178
|
+
return !(fieldOptions && Number(fieldOptions.limit) === 1);
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
/**
|
|
182
|
+
* 内部值(附件对象数组) → 落到表单模型的值。
|
|
183
|
+
* 未开启 urlValueEnabled 时保持附件对象数组,开启后转成 URL 字符串(单值)或字符串数组。
|
|
184
|
+
*/
|
|
185
|
+
export function toModelValue(rows, fieldOptions) {
|
|
186
|
+
if (!fieldOptions || !fieldOptions.urlValueEnabled) return rows;
|
|
187
|
+
return toUrlValue(rows, {
|
|
188
|
+
field: fieldOptions.urlValueField || "url",
|
|
189
|
+
multi: isUrlValueMulti(fieldOptions),
|
|
190
|
+
});
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
/**
|
|
194
|
+
* 两个「落到表单模型的值」是否等价。URL 模式下模型值是 String | Array<String> | null,
|
|
195
|
+
* 而 toModelValue 每次都产出新数组——不比一下就回写,会和 fieldMixin 的
|
|
196
|
+
* initValueWatchEvent(模型一变就把模型值灌回 fieldModel)形成死循环。
|
|
197
|
+
*/
|
|
198
|
+
export function isSameModelValue(a, b) {
|
|
199
|
+
if (a === b) return true;
|
|
200
|
+
if (Array.isArray(a) && Array.isArray(b)) {
|
|
201
|
+
if (a.length !== b.length) return false;
|
|
202
|
+
return a.every((item, index) => item === b[index]);
|
|
203
|
+
}
|
|
204
|
+
return false;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
/**
|
|
208
|
+
* 数据表的附件列是否开了「值存为URL」。列的组件 schema 挂在 widget(显示态) /
|
|
209
|
+
* editWidget(编辑态) 上,两者同属一列,任一开启即按普通列处理——它的值是 URL
|
|
210
|
+
* 字符串,存在明细表自己的列上,不走 attachmentType 独立附件通道。
|
|
211
|
+
*/
|
|
212
|
+
export function isUrlValueColumn(column) {
|
|
213
|
+
if (!column) return false;
|
|
214
|
+
let options = column.editWidget && column.editWidget.options;
|
|
215
|
+
if (!options) {
|
|
216
|
+
options = column.widget && column.widget.options;
|
|
217
|
+
}
|
|
218
|
+
return !!(options && options.urlValueEnabled);
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
/**
|
|
222
|
+
* 归一前后是否等价。用于避免在 created 里无谓地重新赋值 fieldModel——
|
|
223
|
+
* 换一个新数组会让 watcher 白触发一次 onChange。
|
|
224
|
+
*/
|
|
225
|
+
export function isSameAttachmentRows(rows, val) {
|
|
226
|
+
if (!Array.isArray(val) || rows.length !== val.length) return false;
|
|
227
|
+
return rows.every((row, index) => row === val[index]);
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
export default {
|
|
231
|
+
parseFileUrl,
|
|
232
|
+
normalizeAttachmentValue,
|
|
233
|
+
toUrlValue,
|
|
234
|
+
isUrlValueMulti,
|
|
235
|
+
toModelValue,
|
|
236
|
+
isSameModelValue,
|
|
237
|
+
isUrlValueColumn,
|
|
238
|
+
isSameAttachmentRows,
|
|
239
|
+
};
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 「固定查询条件」判定工具。
|
|
3
|
+
*
|
|
4
|
+
* 数据表格查询区的字段值存在整张表单的 formModel 上,三条通道会把它清掉:
|
|
5
|
+
* 1. 刷新按钮 → resetForm 逐个 setValue(null)
|
|
6
|
+
* 2. 「查询条件设置」的「确定」→ tableFormMixin.dialogPrimary 按列写默认值
|
|
7
|
+
* 3. 「查询条件设置」的「还原」→ 走的就是 dialogPrimary
|
|
8
|
+
* 字段勾上 options.fixedQuery 之后,这三条通道一律跳过它,值保持原样
|
|
9
|
+
* (值本身仍由树点选/脚本 setValue 等业务通道注入,本开关只管「不被清掉」)。
|
|
10
|
+
*
|
|
11
|
+
* 组装 searchColumns 时(见 container-item/data-table-mixin.js)由 fixedQuery
|
|
12
|
+
* 派生出两个列级标记:
|
|
13
|
+
* - lockValue:公共表格层(components/table)据此跳过写值,语义是「值锁定」
|
|
14
|
+
* - fixed:复用公共层已有语义,让个性化 json 回灌时不挪位置、不改常用
|
|
15
|
+
* 两者必须分开:手写页面的固定列(如 branchSearchPage 的分支)只打 fixed,
|
|
16
|
+
* 它**依赖** dialogPrimary 按 defaultValue 回填,不能被 lockValue 一起跳过。
|
|
17
|
+
*/
|
|
18
|
+
|
|
19
|
+
/* 能承载子组件的字段名,覆盖各类容器(含 vf-dialog/vf-drawer,loopHandleWidget 不进这两个) */
|
|
20
|
+
const CHILD_KEYS = [
|
|
21
|
+
"widgetList",
|
|
22
|
+
"cols",
|
|
23
|
+
"rows",
|
|
24
|
+
"tabs",
|
|
25
|
+
"panes",
|
|
26
|
+
"buttons",
|
|
27
|
+
"buttonWidgetList",
|
|
28
|
+
"leftWidgetList",
|
|
29
|
+
];
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* 深度遍历组件树节点(含 rows 这类只有 cols 的中间层对象)。
|
|
33
|
+
* @param {Object} node 起始节点
|
|
34
|
+
* @param {Function} callback 每个节点回调
|
|
35
|
+
*/
|
|
36
|
+
function walkWidget(node, callback) {
|
|
37
|
+
if (!node || typeof node !== "object") return;
|
|
38
|
+
callback(node);
|
|
39
|
+
CHILD_KEYS.forEach((key) => {
|
|
40
|
+
let children = node[key];
|
|
41
|
+
if (Array.isArray(children)) {
|
|
42
|
+
children.forEach((child) => walkWidget(child, callback));
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* 该字段是否勾选了「固定查询条件」。
|
|
49
|
+
* @param {Object} widget 字段组件 schema
|
|
50
|
+
* @returns {Boolean}
|
|
51
|
+
*/
|
|
52
|
+
export function isFixedQueryWidget(widget) {
|
|
53
|
+
return !!(widget && widget.options && widget.options.fixedQuery);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* 该列是否为「值锁定」列(公共表格层的口径,见文件头注释)。
|
|
58
|
+
* @param {Object} column searchColumns 的列配置
|
|
59
|
+
* @returns {Boolean}
|
|
60
|
+
*/
|
|
61
|
+
export function isLockedSearchColumn(column) {
|
|
62
|
+
return !!(column && column.lockValue);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* 组件是否位于某个数据表格的查询区(data-table 的 widgetList 分支,不含 buttons、
|
|
67
|
+
* 不含表格列组件)。属性面板据此决定要不要显示「固定查询条件」开关。
|
|
68
|
+
* @param {Array} widgetList 表单顶层组件列表(designer.widgetList)
|
|
69
|
+
* @param {Object} widget 待判定的字段组件
|
|
70
|
+
* @returns {Boolean}
|
|
71
|
+
*/
|
|
72
|
+
export function isQueryAreaWidget(widgetList, widget) {
|
|
73
|
+
if (!widget || !widget.id || !Array.isArray(widgetList)) return false;
|
|
74
|
+
let inQueryArea = false;
|
|
75
|
+
widgetList.forEach((item) => {
|
|
76
|
+
walkWidget(item, (node) => {
|
|
77
|
+
if (inQueryArea) return;
|
|
78
|
+
if (
|
|
79
|
+
node.category !== "container"
|
|
80
|
+
|| node.type !== "data-table"
|
|
81
|
+
|| !Array.isArray(node.widgetList)
|
|
82
|
+
) {
|
|
83
|
+
return;
|
|
84
|
+
}
|
|
85
|
+
node.widgetList.forEach((child) => {
|
|
86
|
+
walkWidget(child, (sub) => {
|
|
87
|
+
if (sub.id === widget.id) inQueryArea = true;
|
|
88
|
+
});
|
|
89
|
+
});
|
|
90
|
+
});
|
|
91
|
+
});
|
|
92
|
+
return inQueryArea;
|
|
93
|
+
}
|