cloud-web-corejs 1.1.0-dev.6 → 1.1.0-dev.60
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/README.md +38 -0
- package/bin/core-resources.js +16 -0
- package/bin/create-child-app.js +34 -0
- package/docs/child-app/README.md +95 -0
- package/docs/child-app/activiti-resources.md +63 -0
- package/docs/child-app/generate-prompt.md +55 -0
- package/docs/child-app/luckysheet-resources.md +80 -0
- package/docs/child-app/public-resources-plan.md +288 -0
- package/docs/child-app/resources-implementation.md +101 -0
- package/docs/child-app/tinymce-resources.md +88 -0
- package/docs/child-app/validation.md +34 -0
- package/docs/qiankun/346/216/245/345/205/245/345/215/217/350/256/256.md +298 -0
- package/docs/qiankun/350/257/246/346/203/205/346/211/277/350/275/275/345/255/220/345/272/224/347/224/250/345/257/271/346/216/245/346/270/205/345/215/225.md +111 -0
- package/package.json +29 -4
- package/resource-tools/index.js +126 -0
- package/src/app-bootstrap.js +531 -0
- package/src/app-bootstrap.sync.js +502 -0
- package/src/boot-assets.legacy.js +13 -0
- package/src/boot-assets.next.js +7 -0
- package/src/components/Qrcode/fileParse.vue +11 -0
- package/src/components/Tinymce/dynamicLoadScript.js +51 -59
- package/src/components/Tinymce/index.vue +382 -336
- package/src/components/Tinymce/mce-chrome.scss +150 -0
- package/src/components/VabUpload/image-viewer.vue +18 -10
- package/src/components/VabUpload/index.js +11 -4
- package/src/components/VabUpload/index.vue +1 -1
- package/src/components/VabUpload/mixins/fileLibraryDialog.js +2 -0
- package/src/components/VabUpload/mixins.js +72 -40
- package/src/components/VabUpload/partUploadConfig.js +95 -0
- package/src/components/VabUpload/privateProfileDialogMixins.js +2 -0
- package/src/components/VabUpload/style.scss +282 -0
- package/src/components/VabUpload/view.vue +19 -18
- package/src/components/baseArea/index.vue +2 -2
- package/src/components/baseInputExport/mixins.js +1 -6
- package/src/components/bizTab/BizTabListPage.vue +66 -33
- package/src/components/bizTab/README.md +3 -1
- package/src/components/bizTab/bizBillDetailMixin.js +2 -0
- package/src/components/code-editor/ace-chrome.scss +17 -0
- package/src/components/code-editor/index.vue +361 -340
- package/src/components/errorMsg/index.vue +142 -13
- package/src/components/errorMsg/mixins.js +53 -0
- package/src/components/excelExport/conditionExportConfig.js +112 -0
- package/src/components/excelExport/exportColumnMemory.js +118 -0
- package/src/components/excelExport/exportFieldDialog.vue +50 -38
- package/src/components/excelExport/exportType.js +8 -0
- package/src/components/excelExport/index.js +30 -13
- package/src/components/excelExport/index.vue +7 -1
- package/src/components/excelExport/mixins.js +782 -293
- package/src/components/excelImport/index.vue +156 -156
- package/src/components/excelImport/mixins.js +888 -834
- package/src/components/fileLibrary/mixins/indexMixins.js +2 -0
- package/src/components/fileLibrary/style.scss +579 -0
- package/src/components/formDialog/index.vue +11 -8
- package/src/components/hiprint/style.scss +188 -0
- package/src/components/hiprint/view/json-view.vue +4 -4
- package/src/components/jdPrint/mixins.js +2 -0
- package/src/components/jsonImport/index.vue +1 -1
- package/src/components/jsonImport/mixins.js +6 -10
- package/src/components/langImport/index.vue +1 -1
- package/src/components/langImport/mixins.js +6 -10
- package/src/components/luckysheet/loadResources.js +64 -0
- package/src/components/luckysheet/view.vue +239 -210
- package/src/components/mobile/buttonGroup/index.vue +1 -1
- package/src/components/mobile/wf/addTaskUserdialog.vue +100 -80
- package/src/components/mobile/wf/content.vue +1734 -1662
- package/src/components/mobile/wf/deleteTaskUserDialog.vue +73 -54
- package/src/components/mobile/wf/selectUserDialog.vue +118 -0
- package/src/components/mobile/wf/setCandidateDialog.vue +69 -48
- package/src/components/mobile/wf/urgingDialog.vue +75 -52
- package/src/components/mobile/wf/wfModifyDialog.vue +4 -0
- package/src/components/obsUpload/index.js +4 -1
- package/src/components/obsUpload/index.vue +1 -1
- package/src/components/obsUpload/mixins.js +45 -15
- package/src/components/onlineTalk/index.vue +4 -4
- package/src/components/onlineTalk/mixins.js +21 -7
- package/src/components/table/index.js +96 -81
- package/src/components/table/plugins/cell-area/index.js +10 -3
- package/src/components/table/style.scss +1399 -0
- package/src/components/table/vxeFilter/mixin.js +28 -18
- package/src/components/wf/content.vue +3 -2
- package/src/components/wf/content2.vue +1 -1
- package/src/components/wf/style.scss +265 -0
- package/src/components/wf/wf.js +7 -0
- package/src/components/wf/wfActionItems.js +3 -0
- package/src/components/wf/wfStartDialog.vue +1 -0
- package/src/components/wf/wfTransferEnabled.js +54 -0
- package/src/components/wf/wfUtil.js +47 -29
- package/src/components/wf/wfVisibility.js +6 -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" +64 -57
- package/src/components/xform/docs/2026-08 xform H5 P0 /345/256/236/347/216/260/350/247/204/346/240/274.md" +1 -1
- package/src/components/xform/docs/2026-08 xform /347/247/273/345/212/250/347/253/257/345/270/203/345/261/200/345/257/271/351/275/220 bill_setting /346/226/271/346/241/210.md" +1 -1
- package/src/components/xform/docs/2026-09 /345/212/250/346/200/201/345/255/227/346/256/265/350/247/204/345/210/231/344/270/216/346/265/201/347/250/213/346/216/247/345/210/266/346/211/247/350/241/214/351/241/272/345/272/217/350/220/275/345/234/260/346/226/271/346/241/210.md" +409 -0
- package/src/components/xform/docs/2026-09 /346/235/241/344/273/266/345/257/274/345/207/272/345/244/247/346/225/260/346/215/256/351/207/217/345/264/251/346/272/203/346/216/222/346/237/245.md" +389 -0
- package/src/components/xform/docs/2026-09 /346/265/217/350/247/210/345/231/250/345/264/251/346/272/203/346/262/273/347/220/206P0/344/273/243/347/240/201/350/257/204/345/256/241.md" +255 -0
- package/src/components/xform/docs/2026-09 /346/265/217/350/247/210/345/231/250/345/264/251/346/272/203/346/262/273/347/220/206P0/346/265/213/350/257/225/351/252/214/350/257/201/345/256/236/346/226/275/346/226/207/346/241/243.md" +595 -0
- package/src/components/xform/docs/2026-09 /347/274/226/350/276/221/350/241/250/350/241/214/345/206/205/344/277/235/345/255/230/346/240/241/351/252/214/350/214/203/345/233/264/344/270/216/345/210/227/345/277/205/345/241/253/350/247/243/346/236/220/344/277/256/345/244/215.md" +233 -0
- package/src/components/xform/docs/2026-09 /350/241/250/345/215/225/345/257/274/345/205/245/351/200/232/351/201/223/346/242/263/347/220/206/344/270/216/350/220/275/345/234/260/346/226/271/346/241/210.md" +745 -0
- package/src/components/xform/docs//346/265/217/350/247/210/345/231/250/345/264/251/346/272/203/346/262/273/347/220/206/344/270/216/344/277/256/345/244/215/350/220/275/345/234/260/346/226/271/346/241/210.md +324 -0
- package/src/components/xform/form-designer/designer.js +2133 -2100
- package/src/components/xform/form-designer/form-widget/container-widget/data-table-mixin.js +7 -0
- package/src/components/xform/form-designer/form-widget/container-widget/data-table-widget.vue +4 -2
- package/src/components/xform/form-designer/form-widget/container-widget/detail-h5-widget.vue +243 -227
- package/src/components/xform/form-designer/form-widget/container-widget/h5-card-pane-widget.vue +228 -207
- package/src/components/xform/form-designer/form-widget/container-widget/h5-card-widget.vue +165 -136
- package/src/components/xform/form-designer/form-widget/dialog/formDialog.vue +30 -4
- package/src/components/xform/form-designer/form-widget/dialog/importDialog.vue +190 -185
- package/src/components/xform/form-designer/form-widget/dialog/importDialogMixin.js +2657 -1774
- package/src/components/xform/form-designer/form-widget/dialog/searchFormDialog.vue +27 -4
- package/src/components/xform/form-designer/form-widget/field-widget/a-link-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/a-text-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/area-select-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/autocomplete-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/baseAttachment-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/button-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/cascader-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/census-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/checkbox-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/color-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/copy_button-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/date-range-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/date-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/descriptions-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/divider-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/download-button-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/dropdown-item-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/dropdown-widget.vue +35 -4
- package/src/components/xform/form-designer/form-widget/field-widget/echart-bar-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/echart-category-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/echart-pie-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/fieldMixin.js +64 -10
- package/src/components/xform/form-designer/form-widget/field-widget/file-upload-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/form-item-wrapper.vue +14 -4
- package/src/components/xform/form-designer/form-widget/field-widget/html-text-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/import-button-widget.vue +19 -6
- package/src/components/xform/form-designer/form-widget/field-widget/import2-button-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/index.js +10 -1
- package/src/components/xform/form-designer/form-widget/field-widget/input-batch-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/input-widget.vue +29 -3
- package/src/components/xform/form-designer/form-widget/field-widget/multiSearch-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/news-list-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/number-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/oplog-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/picture-upload-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/print-button-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/print-detail-button-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/project-tag-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/radio-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/rate-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/rich-editor-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/row-col-select-widget.vue +64 -0
- package/src/components/xform/form-designer/form-widget/field-widget/save_submit_wf_button-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/script-input-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/search_button-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/select-export-button-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/select-export-item-button-widget.vue +6 -2
- package/src/components/xform/form-designer/form-widget/field-widget/select-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/singerSearch-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/singleUpload-widget.vue +145 -145
- package/src/components/xform/form-designer/form-widget/field-widget/slider-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/static-content-wrapper.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/static-text-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/status-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/switch-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/table-export-button-widget.vue +3 -2
- 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 +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/textarea-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/time-range-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/time-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/title-head-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/vabSearch-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/vabUpload-widget.vue +3 -3
- package/src/components/xform/form-designer/form-widget/field-widget/vabUpload2-widget.vue +25 -1
- package/src/components/xform/form-designer/form-widget/field-widget/vue-page-widget.vue +1 -1
- package/src/components/xform/form-designer/indexMixin.js +27 -0
- package/src/components/xform/form-designer/setting-panel/form-dynamicField-setting.vue +687 -602
- package/src/components/xform/form-designer/setting-panel/form-setting.vue +269 -36
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/data-table-editor.vue +335 -12
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/table-column-dialog.vue +23 -7
- package/src/components/xform/form-designer/setting-panel/property-editor/container-detail/detail-temp-edito.vue +13 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/container-list-h5/list-h5-editor.vue +846 -860
- package/src/components/xform/form-designer/setting-panel/property-editor/container-tab/tab-lazyRender-editor.vue +27 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onTabChange-editor.vue +28 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onTabClick-editor.vue +28 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import-button-editor.vue +62 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import2-button-editor.vue +142 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/field-table-export-button/empty-number-input.vue +51 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-table-export-button/select-export-item-button-editor.vue +27 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/field-table-export-button/table-export-button-editor.vue +33 -3
- package/src/components/xform/form-designer/setting-panel/property-editor/project-tag-editor.vue +2 -4
- package/src/components/xform/form-designer/setting-panel/property-editor/suffixIconClickable-editor.vue +23 -0
- package/src/components/xform/form-designer/setting-panel/propertyRegister.js +18 -4
- package/src/components/xform/form-designer/toolbar-panel/index.vue +884 -874
- package/src/components/xform/form-designer/toolbar-panel/indexMixin.js +13 -0
- package/src/components/xform/form-designer/widget-panel/index.vue +11 -7
- package/src/components/xform/form-designer/widget-panel/indexMixin.js +15 -2
- package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +152 -9
- package/src/components/xform/form-render/container-item/containerItemMixin.js +93 -8
- package/src/components/xform/form-render/container-item/data-table-item.vue +352 -347
- package/src/components/xform/form-render/container-item/data-table-mixin.js +7261 -5985
- package/src/components/xform/form-render/container-item/detail-h5-item.vue +48 -19
- package/src/components/xform/form-render/container-item/detail-item.vue +350 -446
- package/src/components/xform/form-render/container-item/dynamicFieldMixin.js +55 -1
- package/src/components/xform/form-render/container-item/list-h5-item.vue +261 -178
- package/src/components/xform/form-render/container-item/panel-item.vue +1 -1
- package/src/components/xform/form-render/container-item/tab-item.vue +177 -129
- package/src/components/xform/form-render/fieldControlEngine.js +218 -0
- package/src/components/xform/form-render/fieldControlMixin.js +536 -0
- package/src/components/xform/form-render/index.vue +164 -153
- package/src/components/xform/form-render/indexMixin.js +5443 -5311
- package/src/components/xform/form-render/pageDialogScope.js +54 -0
- package/src/components/xform/icon-picker/index.vue +1 -1
- package/src/components/xform/lang/en-US.js +8 -0
- package/src/components/xform/lang/zh-CN.js +9 -0
- package/src/components/xform/mixins/businessLock.js +59 -0
- package/src/components/xform/mixins/defaultHandle.js +713 -707
- package/src/components/xform/mixins/scriptHttp.js +42 -21
- package/src/components/xform/mixins/wfStart.js +105 -0
- package/src/components/xform/mixins/wfVisibility.js +33 -0
- package/src/components/xform/styles/census.scss +288 -0
- package/src/components/xform/styles/containers.scss +215 -0
- package/src/components/xform/styles/designer.scss +904 -0
- package/src/components/xform/styles/detail-temp.scss +71 -0
- package/src/components/xform/styles/h5-designer.scss +191 -0
- package/src/components/xform/styles/h5-runtime.scss +520 -0
- package/src/components/xform/styles/h5.scss +836 -516
- package/src/components/xform/styles/skins.scss +398 -0
- package/src/components/xform/styles/table-layout.scss +91 -0
- package/src/components/xform/styles/titles.scss +255 -0
- package/src/components/xform/utils/dynamicSchemaUtil.js +385 -361
- package/src/components/xform/utils/fixedQueryUtil.js +29 -4
- package/src/components/xform/utils/serviceNameCache.js +69 -0
- package/src/components/xform/utils/tableColumnHelper.js +46 -4
- package/src/components/xform/utils/util.js +1776 -1708
- package/src/core-resources/css/h5.scss +548 -0
- package/src/core-resources/css/iconfont.css +1447 -0
- package/src/core-resources/font/iconfont.ttf +0 -0
- package/src/core-resources/font/iconfont.woff +0 -0
- package/src/core-resources/font/iconfont.woff2 +0 -0
- package/src/core-resources/images/default-header.png +0 -0
- package/src/core-resources/images/ico-default_wenjian.svg +1 -0
- package/src/core-resources/images/ico-excel.svg +1 -0
- package/src/core-resources/images/ico-ftl.svg +7 -0
- package/src/core-resources/images/ico-html.svg +1 -0
- package/src/core-resources/images/ico-java.svg +1 -0
- package/src/core-resources/images/ico-music.svg +1 -0
- package/src/core-resources/images/ico-pdf.svg +1 -0
- package/src/core-resources/images/ico-photo.svg +1 -0
- package/src/core-resources/images/ico-ppt.svg +1 -0
- package/src/core-resources/images/ico-psd.svg +1 -0
- package/src/core-resources/images/ico-service.png +0 -0
- package/src/core-resources/images/ico-txt.svg +1 -0
- package/src/core-resources/images/ico-video.svg +1 -0
- package/src/core-resources/images/ico-vue.svg +8 -0
- package/src/core-resources/images/ico-wenjianjia.svg +1 -0
- package/src/core-resources/images/ico-wrod.svg +1 -0
- package/src/core-resources/images/ico-xml.svg +1 -0
- package/src/core-resources/images/ico-yasuobao.svg +1 -0
- package/src/core-resources/images/icon-error.png +0 -0
- package/src/core-resources/images/icon-tips.png +0 -0
- package/src/core-resources/images/nodata.png +0 -0
- package/src/core-resources/images/nodata2.png +0 -0
- package/src/directive/append-to-body/index.js +48 -0
- package/src/directive/el-dialog-center/index.js +3 -2
- package/src/directive/el-drag-dialog/drag.js +33 -4
- package/src/icons/index.js +9 -0
- package/src/icons/svg/404.svg +1 -0
- package/src/icons/svg/alert.svg +1 -0
- package/src/icons/svg/bug.svg +1 -0
- package/src/icons/svg/button.svg +1 -0
- package/src/icons/svg/card.svg +1 -0
- package/src/icons/svg/cascader-field.svg +1 -0
- package/src/icons/svg/census.svg +1 -0
- package/src/icons/svg/chart.svg +1 -0
- package/src/icons/svg/checkbox-field.svg +1 -0
- package/src/icons/svg/clipboard.svg +1 -0
- package/src/icons/svg/color-field.svg +1 -0
- package/src/icons/svg/component.svg +1 -0
- package/src/icons/svg/custom-component.svg +1 -0
- package/src/icons/svg/dashboard.svg +1 -0
- package/src/icons/svg/data-table.svg +1 -0
- package/src/icons/svg/date-field.svg +1 -0
- package/src/icons/svg/date-range-field.svg +1 -0
- package/src/icons/svg/descriptions.svg +1 -0
- package/src/icons/svg/divider.svg +1 -0
- package/src/icons/svg/document.svg +1 -0
- package/src/icons/svg/documentation.svg +1 -0
- package/src/icons/svg/drag.svg +1 -0
- package/src/icons/svg/echart-category.svg +1 -0
- package/src/icons/svg/echart-pie.svg +1 -0
- package/src/icons/svg/echart.svg +1 -0
- package/src/icons/svg/edit.svg +1 -0
- package/src/icons/svg/education.svg +1 -0
- package/src/icons/svg/email.svg +1 -0
- package/src/icons/svg/example.svg +1 -0
- package/src/icons/svg/excel.svg +1 -0
- package/src/icons/svg/exit-fullscreen.svg +1 -0
- package/src/icons/svg/eye-open.svg +1 -0
- package/src/icons/svg/eye.svg +1 -0
- package/src/icons/svg/file-upload-field.svg +1 -0
- package/src/icons/svg/form.svg +1 -0
- package/src/icons/svg/fullscreen.svg +1 -0
- package/src/icons/svg/github.svg +1 -0
- package/src/icons/svg/grid.svg +1 -0
- package/src/icons/svg/guide.svg +1 -0
- package/src/icons/svg/html-text.svg +1 -0
- package/src/icons/svg/ico-more.svg +1 -0
- package/src/icons/svg/ico-wenjianjia.svg +1 -0
- package/src/icons/svg/icon.svg +1 -0
- package/src/icons/svg/input-batch.svg +1 -0
- package/src/icons/svg/international.svg +1 -0
- package/src/icons/svg/language.svg +1 -0
- package/src/icons/svg/link.svg +1 -0
- package/src/icons/svg/list-export.svg +1 -0
- package/src/icons/svg/list.svg +1 -0
- package/src/icons/svg/lock.svg +1 -0
- package/src/icons/svg/message.svg +1 -0
- package/src/icons/svg/money.svg +1 -0
- package/src/icons/svg/nested.svg +1 -0
- package/src/icons/svg/news-list.svg +1 -0
- package/src/icons/svg/node-tree.svg +1 -0
- package/src/icons/svg/number-field.svg +1 -0
- package/src/icons/svg/password.svg +1 -0
- package/src/icons/svg/pdf.svg +1 -0
- package/src/icons/svg/people.svg +1 -0
- package/src/icons/svg/peoples.svg +1 -0
- package/src/icons/svg/picture-upload-field.svg +1 -0
- package/src/icons/svg/qq.svg +1 -0
- package/src/icons/svg/query.svg +1 -0
- package/src/icons/svg/radio-field.svg +1 -0
- package/src/icons/svg/rate-field.svg +1 -0
- package/src/icons/svg/redo.svg +1 -0
- package/src/icons/svg/rich-editor-field.svg +1 -0
- package/src/icons/svg/search.svg +1 -0
- package/src/icons/svg/searchbox.svg +1 -0
- package/src/icons/svg/section.svg +1 -0
- package/src/icons/svg/select-field.svg +1 -0
- package/src/icons/svg/shopping.svg +1 -0
- package/src/icons/svg/size.svg +1 -0
- package/src/icons/svg/skill.svg +1 -0
- package/src/icons/svg/slider-field.svg +1 -0
- package/src/icons/svg/slot-component.svg +1 -0
- package/src/icons/svg/slot-field.svg +1 -0
- package/src/icons/svg/star.svg +1 -0
- package/src/icons/svg/static-text.svg +1 -0
- package/src/icons/svg/status.svg +1 -0
- package/src/icons/svg/sub-form.svg +1 -0
- package/src/icons/svg/switch-field.svg +1 -0
- package/src/icons/svg/tab.svg +1 -0
- package/src/icons/svg/table.svg +1 -0
- package/src/icons/svg/text-field.svg +1 -0
- package/src/icons/svg/text.svg +1 -0
- package/src/icons/svg/textarea-field.svg +1 -0
- package/src/icons/svg/theme.svg +1 -0
- package/src/icons/svg/time-field.svg +1 -0
- package/src/icons/svg/time-range-field.svg +1 -0
- package/src/icons/svg/tips-text.svg +1 -0
- package/src/icons/svg/title-head.svg +1 -0
- package/src/icons/svg/tree-pane.svg +1 -0
- package/src/icons/svg/tree-table.svg +1 -0
- package/src/icons/svg/tree.svg +1 -0
- package/src/icons/svg/undo.svg +1 -0
- package/src/icons/svg/uploadbox.svg +1 -0
- package/src/icons/svg/user.svg +1 -0
- package/src/icons/svg/vf-box.svg +1 -0
- package/src/icons/svg/vf-dialog.svg +1 -0
- package/src/icons/svg/vf-drawer.svg +1 -0
- package/src/icons/svg/vue-sfc.svg +1 -0
- package/src/icons/svg/wechat.svg +1 -0
- package/src/icons/svg/zip.svg +1 -0
- package/src/index.js +2 -510
- package/src/index.next.js +5 -0
- package/src/index.sync.js +5 -0
- package/src/layout/components/Sidebar/default.vue +1656 -1655
- package/src/layout/components/TagsView/index.vue +330 -323
- package/src/layout/components/TagsView/style.scss +92 -0
- package/src/layout/defaultLayout.vue +2 -2
- package/src/router/index.js +43 -48
- package/src/router/modules/customer.js +12 -0
- package/src/store/modules/settings.js +1 -1
- package/src/store/modules/tagsView.js +241 -217
- package/src/store/modules/user.js +16 -12
- package/src/styles/btn.scss +315 -0
- package/src/styles/dialog.scss +1710 -0
- package/src/styles/element-ui.scss +1076 -0
- package/src/styles/element-variables.scss +31 -0
- package/src/styles/global.scss +115 -0
- package/src/styles/index.scss +245 -0
- package/src/styles/layout-skins.scss +840 -0
- package/src/styles/legacy-base.scss +19 -0
- package/src/styles/menu-icons.scss +75 -0
- package/src/styles/mixin.scss +80 -0
- package/src/styles/nprogress.scss +14 -0
- package/src/styles/page-shell.scss +723 -0
- package/src/styles/sidebar.scss +296 -0
- package/src/styles/split-handle.scss +52 -0
- package/src/styles/theme-variables.scss +7 -0
- package/src/styles/transition.scss +48 -0
- package/src/styles/utilities.scss +253 -0
- package/src/styles/variables.scss +72 -0
- package/src/utils/baseDictsCache.js +197 -0
- package/src/utils/chunkLoadError.js +24 -0
- package/src/utils/featureResources.js +57 -0
- package/src/utils/importLimit.js +72 -0
- package/src/utils/pdfUtil.js +6 -1
- package/src/utils/request.js +142 -7
- package/src/utils/resolveViewComponent.js +45 -90
- package/src/utils/runtimeRecovery.js +105 -0
- package/src/utils/swiperLoader.js +20 -0
- package/src/utils/vab.js +1334 -1283
- package/src/utils/xlsxLoader.js +29 -0
- package/src/views/bd/setting/formVersion/compareContMixin.scss +1 -1
- package/src/views/bd/setting/form_template/edit.vue +378 -356
- package/src/views/bd/setting/form_template/formDesignerDialog.vue +6 -0
- package/src/views/bd/setting/form_template/formTemplateType.js +43 -0
- package/src/views/bd/setting/form_template/list.vue +304 -303
- package/src/views/bd/setting/form_template/mixins/edit.js +344 -280
- package/src/views/bd/setting/form_template/mixins/list.js +749 -721
- package/src/views/bd/setting/form_template/mixins/list2.js +412 -411
- package/src/views/bd/setting/form_template/mixins/wf_list.js +431 -430
- package/src/views/mobile/user/area/dialog.vue +1 -1
- package/src/views/mobile/user/user/dialog.vue +1 -1
- package/src/views/user/bill_setting/mixins/wf.js +8 -0
- package/src/views/user/bill_setting/render.vue +1 -1
- package/src/views/user/commMenu/index.vue +3 -1
- package/src/views/user/commMenu/style.scss +123 -0
- package/src/views/user/common_attribute/edit.vue +2 -0
- package/src/views/user/common_attribute/itemEdit.vue +2 -0
- package/src/views/user/file_view_ins/list.vue +970 -970
- package/src/views/user/form/form_template/list.vue +527 -506
- package/src/views/user/form/vform/designer.vue +823 -821
- package/src/views/user/form/view/list.vue +24 -1
- package/src/views/user/home/default.vue +1124 -1117
- package/src/views/user/home/default2.vue +12 -8
- package/src/views/user/home/index.vue +102 -102
- package/src/views/user/home/wjl/content.vue +1581 -1569
- package/src/views/user/intf_permission/edit.vue +230 -0
- package/src/views/user/intf_permission/list.vue +196 -0
- package/src/views/user/menuFallback/index.vue +23 -0
- package/src/views/user/notify_message/dialog.vue +139 -139
- package/src/views/user/outLink/form_view.vue +202 -202
- package/src/views/user/outLink/index.vue +110 -110
- package/src/views/user/role/edit.vue +4 -0
- package/src/views/user/role/role-box.scss +83 -0
- package/src/views/user/role/voc_edit.vue +4 -0
- package/src/views/user/user/list.vue +28 -6
- package/src/views/user/wf/iframe/index.vue +51 -51
- package/src/views/user/wf/iframe/index2.vue +64 -64
- package/src/views/user/wf/wf_diy_attribute/edit.vue +1 -1
- package/src/views/user/wf/wf_manage/list2.vue +871 -871
- package/src/views/user/wf/wf_manage/wfContentDialog.vue +177 -126
- package/src/views/user/wf/wf_obj_config/activiti_wf.vue +134 -133
- package/src/views/user/wf/wf_obj_config/importItemDialog.vue +1 -1
- package/src/views/user/wf/wf_obj_config/list.vue +747 -746
- package/src/views/user/wf/wf_obj_config/list_form.vue +374 -373
- package/templates/child-app/.env +3 -0
- package/templates/child-app/README.md +49 -0
- package/templates/child-app/app.config.js +6 -0
- package/templates/child-app/babel.config.js +1 -0
- package/templates/child-app/core-resources.config.js +15 -0
- package/templates/child-app/gitignore +7 -0
- package/templates/child-app/package.json +34 -0
- package/templates/child-app/public/index.html +12 -0
- package/templates/child-app/src/assets/401_images/401.gif +0 -0
- package/templates/child-app/src/assets/404_images/404.png +0 -0
- package/templates/child-app/src/assets/404_images/404_cloud.png +0 -0
- package/templates/child-app/src/assets/logo.png +0 -0
- package/templates/child-app/src/corejsConfig.js +2 -0
- package/templates/child-app/src/icons/index.js +2 -0
- package/templates/child-app/src/icons/svg/child-demo.svg +1 -0
- package/templates/child-app/src/layout/index.vue +4 -0
- package/templates/child-app/src/main.js +5 -0
- package/templates/child-app/src/prefixConfig.js +13 -0
- package/templates/child-app/src/resources/css/login.scss +29 -0
- package/templates/child-app/src/resources/images/bg-login5.jpg +0 -0
- package/templates/child-app/src/resources/images/home-img.png +0 -0
- package/templates/child-app/src/router/modules/customer.js +3 -0
- package/templates/child-app/src/settings.js +24 -0
- package/templates/child-app/src/styles/app.scss +2 -0
- package/templates/child-app/src/views/demo/detail.vue +19 -0
- package/templates/child-app/src/views/demo/list.vue +38 -0
- package/templates/child-app/src/views/user/login/index.vue +18 -0
- package/templates/child-app/vue.config.js +107 -0
- package/src/components/xform/form-render/container-item/dynamicFieldEngine.js +0 -285
- package/src/components/xform/form-render/formDynamicFieldMixin.js +0 -131
- package/src/views/demo/bizTab/bill/billConfig.js +0 -41
- package/src/views/demo/bizTab/bill/detail.vue +0 -436
- package/src/views/demo/bizTab/bill/list.vue +0 -288
- package/src/views/demo/bizTab/bill/productDialog.vue +0 -176
- package/src/views/demo/bizTab/simple/billApi.js +0 -123
- package/src/views/demo/bizTab/simple/detail.vue +0 -407
- package/src/views/demo/bizTab/simple/list.vue +0 -217
- package/src/views/demo/bizTab/standalone/index.vue +0 -121
- package/src/views/demo/bizTab/wf/billConfig.js +0 -44
- package/src/views/demo/bizTab/wf/detail.vue +0 -661
- package/src/views/demo/bizTab/wf/list.vue +0 -242
- package/src/views/user/outLink/cc_form_view.vue +0 -188
- /package/src/{resources → core-resources}/js/base/common.js +0 -0
|
@@ -6,20 +6,30 @@
|
|
|
6
6
|
v-if="showWrap"
|
|
7
7
|
:close-on-click-modal="false"
|
|
8
8
|
width="501px"
|
|
9
|
-
custom-class="dialog-style tips-dialog error"
|
|
9
|
+
:custom-class="structuredDetail ? `dialog-style tips-dialog error error-message-dialog${showTextFlag ? ' is-detail' : ''}` : 'dialog-style tips-dialog error'"
|
|
10
10
|
:append-to-body="true"
|
|
11
11
|
:modal="false"
|
|
12
12
|
@close="closeDialog"
|
|
13
13
|
v-el-drag-dialog
|
|
14
14
|
>
|
|
15
15
|
<div class="cont">
|
|
16
|
-
<p
|
|
17
|
-
<p v-if="rmid">Error({{ rmid }}):</p>
|
|
16
|
+
<p>{{ errorTitle }}</p>
|
|
18
17
|
<template v-if="!showTextFlag">
|
|
19
18
|
<p v-html="text1"></p>
|
|
20
19
|
</template>
|
|
21
|
-
<
|
|
22
|
-
|
|
20
|
+
<div v-if="showTextFlag && structuredDetail" class="error-detail-list">
|
|
21
|
+
<div
|
|
22
|
+
v-for="(item, index) in detailItems"
|
|
23
|
+
:key="index"
|
|
24
|
+
class="error-detail-row"
|
|
25
|
+
:class="{ 'is-summary': item.isSummary, 'is-section': item.isSection, 'is-cause': item.isCause }"
|
|
26
|
+
>
|
|
27
|
+
<span v-if="item.label" class="error-detail-label">{{ item.label }}</span>
|
|
28
|
+
<span v-if="item.value" class="error-detail-value">{{ item.value }}</span>
|
|
29
|
+
</div>
|
|
30
|
+
</div>
|
|
31
|
+
<p v-else-if="showTextFlag" class="error-detail-plain" v-html="text2"></p>
|
|
32
|
+
<a class="error-detail-toggle" href="javascript:void(0);" @click="showTextFlag = !showTextFlag">{{
|
|
23
33
|
!showTextFlag
|
|
24
34
|
? $t2("详情", "components.errorMsg.detail")
|
|
25
35
|
: $t2("收起", "components.errorMsg.collapse")
|
|
@@ -39,22 +49,27 @@
|
|
|
39
49
|
</el-dialog>
|
|
40
50
|
</div>
|
|
41
51
|
<div v-else-if="showWrap">
|
|
42
|
-
<div class="pop-tipsBox error" :style="'display: block;z-index:' + zIndex">
|
|
52
|
+
<div class="pop-tipsBox error h5-pop-tips" :style="'display: block;z-index:' + zIndex">
|
|
43
53
|
<div>
|
|
44
54
|
<i class="icon"></i>
|
|
45
55
|
<div class="cont">
|
|
46
56
|
<p class="name">{{ title }}</p>
|
|
47
|
-
<p class="txt"
|
|
48
|
-
<p class="txt" v-if="rmid">Error({{ rmid }}):</p>
|
|
57
|
+
<p class="txt">{{ errorTitle }}</p>
|
|
49
58
|
<template v-if="!showTextFlag">
|
|
50
59
|
<p class="txt">{{ text1 }}</p>
|
|
51
60
|
</template>
|
|
52
|
-
<
|
|
53
|
-
|
|
61
|
+
<div v-if="showTextFlag && structuredDetail" class="error-detail-list">
|
|
62
|
+
<div v-for="(item, index) in detailItems" :key="index" class="error-detail-row" :class="{ 'is-summary': item.isSummary, 'is-section': item.isSection, 'is-cause': item.isCause }">
|
|
63
|
+
<span v-if="item.label" class="error-detail-label">{{ item.label }}</span>
|
|
64
|
+
<span v-if="item.value" class="error-detail-value">{{ item.value }}</span>
|
|
65
|
+
</div>
|
|
66
|
+
</div>
|
|
67
|
+
<p class="txt" v-else-if="showTextFlag" v-html="text2"></p>
|
|
68
|
+
<el-link @click="showTextFlag = !showTextFlag" class="link-underline" :underline="false" type="primary">{{
|
|
54
69
|
!showTextFlag
|
|
55
70
|
? $t2("详情", "components.errorMsg.detail")
|
|
56
71
|
: $t2("收起", "components.errorMsg.collapse")
|
|
57
|
-
}}</
|
|
72
|
+
}}</el-link>
|
|
58
73
|
</div>
|
|
59
74
|
<div class="btns">
|
|
60
75
|
<el-button type="primary" class="btn" @click="closeDialog">{{
|
|
@@ -70,9 +85,123 @@
|
|
|
70
85
|
import { mixins } from "./mixins";
|
|
71
86
|
|
|
72
87
|
export default {
|
|
73
|
-
|
|
88
|
+
name: "ErrorMessage",
|
|
74
89
|
mixins: [mixins],
|
|
75
90
|
};
|
|
76
91
|
</script>
|
|
77
92
|
|
|
78
|
-
<style
|
|
93
|
+
<style lang="scss">
|
|
94
|
+
.error-message-dialog {
|
|
95
|
+
.el-dialog__body .cont {
|
|
96
|
+
padding: 18px 20px 16px;
|
|
97
|
+
max-height: min(520px, calc(100vh - 190px));
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
&.is-detail .el-dialog__body:after {
|
|
101
|
+
display: none;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.error-detail-list {
|
|
106
|
+
overflow: hidden;
|
|
107
|
+
border: 1px solid #dfe6f1;
|
|
108
|
+
border-radius: 6px;
|
|
109
|
+
background: rgba(255, 255, 255, 0.86);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.error-detail-row {
|
|
113
|
+
display: grid;
|
|
114
|
+
grid-template-columns: 82px minmax(0, 1fr);
|
|
115
|
+
gap: 12px;
|
|
116
|
+
padding: 7px 12px;
|
|
117
|
+
border-bottom: 1px solid #edf0f5;
|
|
118
|
+
line-height: 1.55;
|
|
119
|
+
word-break: break-word;
|
|
120
|
+
|
|
121
|
+
&:last-child {
|
|
122
|
+
border-bottom: 0;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
&.is-summary,
|
|
126
|
+
&.is-section {
|
|
127
|
+
display: block;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
&.is-summary {
|
|
131
|
+
padding: 10px 12px;
|
|
132
|
+
background: #edf4ff;
|
|
133
|
+
color: #315f91;
|
|
134
|
+
font-weight: 600;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
&.is-section {
|
|
138
|
+
padding: 9px 12px 5px;
|
|
139
|
+
border-bottom: 0;
|
|
140
|
+
color: #303133;
|
|
141
|
+
font-weight: 600;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
&.is-cause {
|
|
145
|
+
position: relative;
|
|
146
|
+
display: block;
|
|
147
|
+
padding: 4px 12px 4px 30px;
|
|
148
|
+
border-bottom: 0;
|
|
149
|
+
|
|
150
|
+
&:before {
|
|
151
|
+
content: "";
|
|
152
|
+
position: absolute;
|
|
153
|
+
top: 13px;
|
|
154
|
+
left: 17px;
|
|
155
|
+
width: 4px;
|
|
156
|
+
height: 4px;
|
|
157
|
+
border-radius: 50%;
|
|
158
|
+
background: #8ca5c2;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.error-detail-label {
|
|
162
|
+
margin-right: 4px;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.error-detail-label {
|
|
168
|
+
color: #606266;
|
|
169
|
+
font-weight: 600;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.error-detail-value {
|
|
173
|
+
min-width: 0;
|
|
174
|
+
color: #606266;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
.error-detail-toggle {
|
|
178
|
+
display: inline-block;
|
|
179
|
+
margin-top: 12px;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
.error-detail-plain {
|
|
183
|
+
line-height: 1.65;
|
|
184
|
+
word-break: break-word;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.pop-tipsBox.error .error-detail-list {
|
|
188
|
+
max-height: 42vh;
|
|
189
|
+
overflow: auto;
|
|
190
|
+
text-align: left;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
@media (max-width: 640px) {
|
|
194
|
+
.error-detail-row {
|
|
195
|
+
display: block;
|
|
196
|
+
|
|
197
|
+
.error-detail-label {
|
|
198
|
+
display: block;
|
|
199
|
+
margin-bottom: 2px;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
&.is-cause .error-detail-label {
|
|
203
|
+
display: inline;
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
</style>
|
|
@@ -14,6 +14,9 @@ tmixins = {
|
|
|
14
14
|
},
|
|
15
15
|
objx: Object,
|
|
16
16
|
_errorMsg: null,
|
|
17
|
+
errorLabel: {
|
|
18
|
+
default: "",
|
|
19
|
+
},
|
|
17
20
|
},
|
|
18
21
|
created() {
|
|
19
22
|
if (this.$baseEventBus.isMobile) {
|
|
@@ -26,11 +29,25 @@ tmixins = {
|
|
|
26
29
|
title: this.$t2("提示", "components.errorMsg.title"),
|
|
27
30
|
text1: "",
|
|
28
31
|
text2: "",
|
|
32
|
+
detailItems: [],
|
|
33
|
+
structuredDetail: false,
|
|
29
34
|
showWrap: false,
|
|
30
35
|
showTextFlag: false,
|
|
36
|
+
displayErrorLabel: "",
|
|
31
37
|
zIndex: null,
|
|
32
38
|
};
|
|
33
39
|
},
|
|
40
|
+
computed: {
|
|
41
|
+
errorTitle() {
|
|
42
|
+
if (this.rmid) return `Error(${this.rmid}):`;
|
|
43
|
+
if (!this.displayErrorLabel) return "Error:";
|
|
44
|
+
if (this.isNetworkErrorLabel) return `${this.displayErrorLabel}:`;
|
|
45
|
+
return `Error(${this.displayErrorLabel}):`;
|
|
46
|
+
},
|
|
47
|
+
isNetworkErrorLabel() {
|
|
48
|
+
return /^network error$/i.test(String(this.displayErrorLabel).trim());
|
|
49
|
+
},
|
|
50
|
+
},
|
|
34
51
|
beforeDestroy() {
|
|
35
52
|
this.removeEnterEvent();
|
|
36
53
|
},
|
|
@@ -56,6 +73,31 @@ tmixins = {
|
|
|
56
73
|
if (!text) return text;
|
|
57
74
|
return text.replace(/(\r\n|\n|\r)/gm, "<br />");
|
|
58
75
|
},
|
|
76
|
+
getHttpStatusCode(detailItems) {
|
|
77
|
+
const item = (detailItems || []).find((row) => row.label === "状态码");
|
|
78
|
+
const value = item && String(item.value).trim();
|
|
79
|
+
return /^\d{3}$/.test(value) ? value : "";
|
|
80
|
+
},
|
|
81
|
+
getDetailItems(text) {
|
|
82
|
+
let inCauseSection = false;
|
|
83
|
+
return String(text || "")
|
|
84
|
+
.split(/\r\n|\n|\r/)
|
|
85
|
+
.filter((line) => line.trim())
|
|
86
|
+
.map((line, index) => {
|
|
87
|
+
const separatorIndex = line.search(/[::]/);
|
|
88
|
+
const label = separatorIndex >= 0 ? line.slice(0, separatorIndex) : "";
|
|
89
|
+
const value = separatorIndex >= 0 ? line.slice(separatorIndex + 1).trim() : line;
|
|
90
|
+
const isSection = label === "可能原因";
|
|
91
|
+
if (isSection) inCauseSection = true;
|
|
92
|
+
return {
|
|
93
|
+
label,
|
|
94
|
+
value,
|
|
95
|
+
isSection,
|
|
96
|
+
isSummary: index === 0 && separatorIndex < 0,
|
|
97
|
+
isCause: inCauseSection && !isSection,
|
|
98
|
+
};
|
|
99
|
+
});
|
|
100
|
+
},
|
|
59
101
|
showMsgBox: function () {
|
|
60
102
|
this.removeEnterEvent();
|
|
61
103
|
this.addEnterEvent();
|
|
@@ -79,10 +121,21 @@ tmixins = {
|
|
|
79
121
|
);
|
|
80
122
|
if (this._errorMsg) {
|
|
81
123
|
this.text2 = this.getShowText(this._errorMsg);
|
|
124
|
+
this.structuredDetail = /(^|\n)状态码[::]/.test(this._errorMsg);
|
|
125
|
+
this.detailItems = this.structuredDetail
|
|
126
|
+
? this.getDetailItems(this._errorMsg)
|
|
127
|
+
: [];
|
|
82
128
|
} else {
|
|
83
129
|
this.text2 = this.getShowText(content);
|
|
130
|
+
this.structuredDetail = false;
|
|
131
|
+
this.detailItems = [];
|
|
84
132
|
}
|
|
133
|
+
} else {
|
|
134
|
+
this.detailItems = [];
|
|
135
|
+
this.structuredDetail = false;
|
|
85
136
|
}
|
|
137
|
+
this.displayErrorLabel =
|
|
138
|
+
this.errorLabel || this.getHttpStatusCode(this.detailItems) || "";
|
|
86
139
|
this.showTextFlag = false;
|
|
87
140
|
this.showWrap = true;
|
|
88
141
|
this.promise = new Promise((resolve, reject) => {
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { getLogicParamValue } from "@base/api/user";
|
|
2
|
+
|
|
3
|
+
export const CONDITION_EXPORT_PARAM_CODE = "conditionExportParams";
|
|
4
|
+
export const CONDITION_EXPORT_SEARCH_COUNT_CODE
|
|
5
|
+
= "conditionExportSearchCount";
|
|
6
|
+
|
|
7
|
+
export const DEFAULT_CONDITION_EXPORT_CONFIG = Object.freeze({
|
|
8
|
+
maxQueryTotal: 300000,
|
|
9
|
+
pageSize: 1000,
|
|
10
|
+
limitFileSize: 100000,
|
|
11
|
+
searchCount: true,
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
function parsePositiveInteger(value, fallback) {
|
|
15
|
+
let text = String(value == null ? "" : value).trim();
|
|
16
|
+
if (!/^\d+$/.test(text)) return fallback;
|
|
17
|
+
let result = Number(text);
|
|
18
|
+
if (!Number.isSafeInteger(result) || result <= 0) return fallback;
|
|
19
|
+
return result;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* 解析「最大查询总数;每页查询数量;单文件最大数据量」。每一项独立回落默认值,
|
|
24
|
+
* 避免一项填错导致另外两项已生效的配置也被丢弃。
|
|
25
|
+
*/
|
|
26
|
+
export function parseConditionExportParams(rawValue) {
|
|
27
|
+
let values = typeof rawValue === "string" ? rawValue.split(";") : [];
|
|
28
|
+
return {
|
|
29
|
+
maxQueryTotal: parsePositiveInteger(
|
|
30
|
+
values[0],
|
|
31
|
+
DEFAULT_CONDITION_EXPORT_CONFIG.maxQueryTotal
|
|
32
|
+
),
|
|
33
|
+
pageSize: parsePositiveInteger(
|
|
34
|
+
values[1],
|
|
35
|
+
DEFAULT_CONDITION_EXPORT_CONFIG.pageSize
|
|
36
|
+
),
|
|
37
|
+
limitFileSize: parsePositiveInteger(
|
|
38
|
+
values[2],
|
|
39
|
+
DEFAULT_CONDITION_EXPORT_CONFIG.limitFileSize
|
|
40
|
+
),
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export function parseConditionExportSearchCount(rawValue, fallback = true) {
|
|
45
|
+
if (typeof rawValue === "boolean") return rawValue;
|
|
46
|
+
if (typeof rawValue !== "string") return fallback;
|
|
47
|
+
let value = rawValue.trim().toLowerCase();
|
|
48
|
+
if (value === "true") return true;
|
|
49
|
+
if (value === "false") return false;
|
|
50
|
+
return fallback;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
function readLogicParam(paramCode) {
|
|
54
|
+
return getLogicParamValue({
|
|
55
|
+
data: { paramCode },
|
|
56
|
+
modal: false,
|
|
57
|
+
failMsg: false,
|
|
58
|
+
errorMsg: false,
|
|
59
|
+
})
|
|
60
|
+
.then((res) => (res && res.type === "success" ? res.objx : ""))
|
|
61
|
+
.catch(() => "");
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/** 读取两条全局逻辑参数;接口异常时静默使用内置默认值。 */
|
|
65
|
+
export function loadConditionExportConfig() {
|
|
66
|
+
return Promise.all([
|
|
67
|
+
readLogicParam(CONDITION_EXPORT_PARAM_CODE),
|
|
68
|
+
readLogicParam(CONDITION_EXPORT_SEARCH_COUNT_CODE),
|
|
69
|
+
]).then(([paramsRaw, searchCountRaw]) => ({
|
|
70
|
+
...parseConditionExportParams(paramsRaw),
|
|
71
|
+
searchCount: parseConditionExportSearchCount(searchCountRaw, true),
|
|
72
|
+
}));
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* 从导出按钮 options 取出条件导出的三项覆盖值。空值转成 null,交给
|
|
77
|
+
* resolveConditionExportConfig 回落到全局逻辑参数。
|
|
78
|
+
*/
|
|
79
|
+
export function pickConditionExportOverrides(fieldOptions = {}) {
|
|
80
|
+
return {
|
|
81
|
+
pageSize: fieldOptions.exportPageSize || null,
|
|
82
|
+
maxQueryTotal: fieldOptions.maxQueryTotal || null,
|
|
83
|
+
limitFileSize: fieldOptions.limitFileSize || null,
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* 单次导出参数优先于全局逻辑参数。按钮参数与脚本参数在进入导出器前已经合并,且脚本
|
|
89
|
+
* 位于展开表达式右侧,所以这里读取到的 option 天然满足「脚本 > 按钮 > 全局」。
|
|
90
|
+
*/
|
|
91
|
+
export function resolveConditionExportConfig(globalConfig, option = {}) {
|
|
92
|
+
let base = globalConfig || DEFAULT_CONDITION_EXPORT_CONFIG;
|
|
93
|
+
let searchCountOverride
|
|
94
|
+
= option.conditionExportSearchCount !== undefined
|
|
95
|
+
? option.conditionExportSearchCount
|
|
96
|
+
: option.searchCount;
|
|
97
|
+
return {
|
|
98
|
+
maxQueryTotal: parsePositiveInteger(
|
|
99
|
+
option.maxQueryTotal,
|
|
100
|
+
base.maxQueryTotal
|
|
101
|
+
),
|
|
102
|
+
pageSize: parsePositiveInteger(option.pageSize, base.pageSize),
|
|
103
|
+
limitFileSize: parsePositiveInteger(
|
|
104
|
+
option.limitFileSize,
|
|
105
|
+
base.limitFileSize
|
|
106
|
+
),
|
|
107
|
+
searchCount: parseConditionExportSearchCount(
|
|
108
|
+
searchCountOverride,
|
|
109
|
+
base.searchCount
|
|
110
|
+
),
|
|
111
|
+
};
|
|
112
|
+
}
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 导出字段勾选记忆的读写口径。
|
|
3
|
+
*
|
|
4
|
+
* 记忆存在表格的运行时状态里(随 addTableJson 落到服务端那条表格记录),历史上只有两条:
|
|
5
|
+
* - `exportColumns` 主表导出,一张表只有一套表格列,整体重写即可;
|
|
6
|
+
* - `exportItemColumns` 明细导出,**整张表共用一条扁平的 field→export 表**。
|
|
7
|
+
*
|
|
8
|
+
* 后者在"同一张表挂多个明细导出按钮、各配各的列"的用法下会串台:按钮 A 与按钮 B 只要
|
|
9
|
+
* 字段名有交集(order_no / create_date 这类基础字段几乎必然交集),A 的勾选就会被 B 覆盖。
|
|
10
|
+
* 且同一按钮内部若配了两条同字段的列(如「服务单价」「网点服务费」都取 site_amount),
|
|
11
|
+
* 保存时后者会覆盖前者,前者的勾选态永远存不下来。
|
|
12
|
+
*
|
|
13
|
+
* 现在改为按按钮分组存放:`exportItemColumnsMap = { [按钮名]: [{field, export}] }`,
|
|
14
|
+
* 组内条目**按该按钮的导出列顺序排列**,读取时同名字段按出现次序一一对应,重复字段互不干扰。
|
|
15
|
+
*
|
|
16
|
+
* 兼容:
|
|
17
|
+
* - 旧记录里的扁平 `exportItemColumns` 仍然读,作为"该按钮还没有自己那组"时的回落;
|
|
18
|
+
* 回落匹配退化为首个同名条目(扁平表是跨按钮合并出来的,顺序本就没有意义)。
|
|
19
|
+
* - 拿不到按钮名时(自定义脚本直接调 $excelExport)行为与改造前完全一致:读写扁平表。
|
|
20
|
+
*/
|
|
21
|
+
|
|
22
|
+
/** 表格状态里存放按钮分组记忆的键名。 */
|
|
23
|
+
export const ITEM_MEMORY_MAP_KEY = "exportItemColumnsMap";
|
|
24
|
+
/** 表格状态里存放扁平(跨按钮共用)记忆的键名,仅作回落。 */
|
|
25
|
+
export const ITEM_MEMORY_FLAT_KEY = "exportItemColumns";
|
|
26
|
+
/** 表格状态里存放主表导出记忆的键名。 */
|
|
27
|
+
export const MAIN_MEMORY_KEY = "exportColumns";
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* 把记忆条目整理成"字段 → 勾选态队列",供按序取用。
|
|
31
|
+
* @param {Array} entries 记忆条目 `[{field, export}]`。
|
|
32
|
+
* @param {Boolean} ordered 同名字段是否按出现次序一一对应;false 时恒取首个。
|
|
33
|
+
* @returns {{next: function(String): (Boolean|undefined)}} 读取器;
|
|
34
|
+
* `next(field)` 返回 true/false 表示记过,undefined 表示没记过(调用方按"新增列"处理)。
|
|
35
|
+
*/
|
|
36
|
+
export function createMemoryReader(entries, ordered = true) {
|
|
37
|
+
let queues = new Map();
|
|
38
|
+
(entries || []).forEach((item) => {
|
|
39
|
+
if (!item || !item.field) return;
|
|
40
|
+
if (!queues.has(item.field)) queues.set(item.field, []);
|
|
41
|
+
queues.get(item.field).push(!!item.export);
|
|
42
|
+
});
|
|
43
|
+
let cursors = new Map();
|
|
44
|
+
return {
|
|
45
|
+
next(field) {
|
|
46
|
+
let queue = queues.get(field);
|
|
47
|
+
if (!queue || !queue.length) return undefined;
|
|
48
|
+
if (!ordered) return queue[0];
|
|
49
|
+
let index = cursors.get(field) || 0;
|
|
50
|
+
// 记忆条目比当前同名列少(后来又加了一条同字段的列):多出来的按"没记过"处理
|
|
51
|
+
if (index >= queue.length) return undefined;
|
|
52
|
+
cursors.set(field, index + 1);
|
|
53
|
+
return queue[index];
|
|
54
|
+
},
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* 取本次明细导出该用的勾选记忆。
|
|
60
|
+
* @param {Object} $vxeTableUtil 表格状态工具($grid 上的读写口径收在这里)。
|
|
61
|
+
* @param {Object} $grid vxe-grid 实例。
|
|
62
|
+
* @param {String} [buttonName] 导出按钮标识;缺省时读扁平表。
|
|
63
|
+
* @returns {{next: function(String): (Boolean|undefined)}} 读取器。
|
|
64
|
+
*/
|
|
65
|
+
export function getItemMemoryReader($vxeTableUtil, $grid, buttonName) {
|
|
66
|
+
if (buttonName) {
|
|
67
|
+
let map = $vxeTableUtil.getTableStateValue($grid, ITEM_MEMORY_MAP_KEY);
|
|
68
|
+
let entries = map && map[buttonName];
|
|
69
|
+
// 该按钮已经有自己那组:按序匹配,重复字段互不干扰
|
|
70
|
+
if (entries && entries.length) return createMemoryReader(entries, true);
|
|
71
|
+
}
|
|
72
|
+
// 回落到改造前的扁平表(旧记录 / 无按钮标识)
|
|
73
|
+
let flat = $vxeTableUtil.getTableStateValue($grid, ITEM_MEMORY_FLAT_KEY);
|
|
74
|
+
return createMemoryReader(flat, false);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* 保存本次明细导出的勾选记忆。
|
|
79
|
+
*
|
|
80
|
+
* 有按钮标识时整组重写(组内就是该按钮自己的列,重写可顺带清掉已删除的列),
|
|
81
|
+
* 其它按钮那几组原样保留;无按钮标识时沿用改造前的扁平表增量合并。
|
|
82
|
+
* @param {Object} $vxeTableUtil 表格状态工具。
|
|
83
|
+
* @param {Object} $grid vxe-grid 实例。
|
|
84
|
+
* @param {String} [buttonName] 导出按钮标识。
|
|
85
|
+
* @param {Array} entries 本次的记忆条目 `[{field, export}]`,须与导出列同序。
|
|
86
|
+
*/
|
|
87
|
+
export function saveItemMemory($vxeTableUtil, $grid, buttonName, entries) {
|
|
88
|
+
if (!entries || !entries.length) return;
|
|
89
|
+
if (buttonName) {
|
|
90
|
+
let oldMap = $vxeTableUtil.getTableStateValue($grid, ITEM_MEMORY_MAP_KEY);
|
|
91
|
+
let map = { ...(oldMap || {}) };
|
|
92
|
+
map[buttonName] = entries;
|
|
93
|
+
$vxeTableUtil.setTableState($grid, ITEM_MEMORY_MAP_KEY, map);
|
|
94
|
+
return;
|
|
95
|
+
}
|
|
96
|
+
// 扁平表是跨按钮共用的,整体覆盖会清掉别人的记忆,只能按字段增量合并
|
|
97
|
+
let flat = (
|
|
98
|
+
$vxeTableUtil.getTableStateValue($grid, ITEM_MEMORY_FLAT_KEY) || []
|
|
99
|
+
).map((item) => ({ ...item }));
|
|
100
|
+
entries.forEach((entry) => {
|
|
101
|
+
let item = flat.find((t) => t.field === entry.field);
|
|
102
|
+
if (!item) {
|
|
103
|
+
item = { field: entry.field };
|
|
104
|
+
flat.push(item);
|
|
105
|
+
}
|
|
106
|
+
item.export = entry.export;
|
|
107
|
+
});
|
|
108
|
+
$vxeTableUtil.setTableState($grid, ITEM_MEMORY_FLAT_KEY, flat);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export default {
|
|
112
|
+
ITEM_MEMORY_MAP_KEY,
|
|
113
|
+
ITEM_MEMORY_FLAT_KEY,
|
|
114
|
+
MAIN_MEMORY_KEY,
|
|
115
|
+
createMemoryReader,
|
|
116
|
+
getItemMemoryReader,
|
|
117
|
+
saveItemMemory,
|
|
118
|
+
};
|
|
@@ -45,6 +45,11 @@
|
|
|
45
45
|
import xeUtils from "xe-utils";
|
|
46
46
|
import { isItemExport } from "./exportType";
|
|
47
47
|
import { getExportItemColumns } from "./exportItemConfigUtil";
|
|
48
|
+
import {
|
|
49
|
+
MAIN_MEMORY_KEY,
|
|
50
|
+
getItemMemoryReader,
|
|
51
|
+
saveItemMemory,
|
|
52
|
+
} from "./exportColumnMemory";
|
|
48
53
|
export default {
|
|
49
54
|
name: "exportFieldDialog",
|
|
50
55
|
props: ["param"],
|
|
@@ -166,27 +171,24 @@ export default {
|
|
|
166
171
|
let defaultCheckedKeys = [];
|
|
167
172
|
let cols = [];
|
|
168
173
|
|
|
169
|
-
let yesFields = [];
|
|
170
|
-
let noFields = [];
|
|
171
|
-
|
|
172
|
-
let exportColumns =
|
|
173
|
-
this.$vxeTableUtil.getTableStateValue(
|
|
174
|
-
target,
|
|
175
|
-
!exportItem ? "exportColumns" : "exportItemColumns"
|
|
176
|
-
) || [];
|
|
177
|
-
|
|
178
|
-
this.loopColumnHandle(exportColumns, (item) => {
|
|
179
|
-
if (item.field) {
|
|
180
|
-
if (item.export) {
|
|
181
|
-
yesFields.push(item.field);
|
|
182
|
-
} else {
|
|
183
|
-
noFields.push(item.field);
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
});
|
|
187
|
-
|
|
188
174
|
if (!exportItem) {
|
|
189
175
|
//导出主表数据
|
|
176
|
+
// 主表列一张表只有一套,记忆仍是一条扁平的 field→export 表
|
|
177
|
+
let yesFields = [];
|
|
178
|
+
let noFields = [];
|
|
179
|
+
let mainMemory = this.$vxeTableUtil.getTableStateValue(
|
|
180
|
+
target,
|
|
181
|
+
MAIN_MEMORY_KEY
|
|
182
|
+
);
|
|
183
|
+
this.loopColumnHandle(mainMemory || [], (item) => {
|
|
184
|
+
if (item.field) {
|
|
185
|
+
if (item.export) {
|
|
186
|
+
yesFields.push(item.field);
|
|
187
|
+
} else {
|
|
188
|
+
noFields.push(item.field);
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
});
|
|
190
192
|
|
|
191
193
|
fullColumn.forEach((column) => {
|
|
192
194
|
if (column.field && !column.params?.exportDisabled) {
|
|
@@ -211,12 +213,18 @@ export default {
|
|
|
211
213
|
// 配了 checkMethod 时才有内容,而全库未配任何 checkMethod → 恒为空数组 → 明细列
|
|
212
214
|
// 一个都勾不上,连 exportItemColumns 的勾选记忆也一并失效。明细列与主表列本就是两套
|
|
213
215
|
// 字段,取交集没有意义,故去掉该门槛。
|
|
216
|
+
//
|
|
217
|
+
// 记忆按导出按钮分组存放(详见 exportColumnMemory.js):next 必须按导出列顺序、
|
|
218
|
+
// 对每个有字段的列各调一次,重复字段才能按出现次序一一对应。
|
|
219
|
+
let reader = getItemMemoryReader(
|
|
220
|
+
this.$vxeTableUtil,
|
|
221
|
+
target,
|
|
222
|
+
this.getExportButtonName()
|
|
223
|
+
);
|
|
214
224
|
this.loopColumnHandle(oriExportItemColumns, (item) => {
|
|
215
225
|
item.id = this.generateId();
|
|
216
226
|
if (!item.field) return;
|
|
217
|
-
|
|
218
|
-
let isNo = noFields.includes(item.field);
|
|
219
|
-
if (isYes || !isNo) {
|
|
227
|
+
if (reader.next(item.field) !== false) {
|
|
220
228
|
defaultCheckedKeys.push(item.id);
|
|
221
229
|
}
|
|
222
230
|
});
|
|
@@ -260,29 +268,26 @@ export default {
|
|
|
260
268
|
exportColumns.push(item);
|
|
261
269
|
}
|
|
262
270
|
});
|
|
263
|
-
this.$vxeTableUtil.setTableState($grid,
|
|
271
|
+
this.$vxeTableUtil.setTableState($grid, MAIN_MEMORY_KEY, exportColumns);
|
|
264
272
|
} else {
|
|
265
273
|
//导出子表数据
|
|
266
274
|
let columns = this.getExportItemColumns();
|
|
267
275
|
if (columns.length) {
|
|
268
|
-
//
|
|
269
|
-
//
|
|
270
|
-
let
|
|
271
|
-
this.$vxeTableUtil.getTableStateValue($grid, "exportItemColumns") || []
|
|
272
|
-
).map((item) => ({ ...item }));
|
|
276
|
+
// 条目顺序必须与导出列一致:读取端靠这个顺序把同名字段一一对应上。
|
|
277
|
+
// 判定条件也要与读取端一致(只看 field),否则两端的游标会错位。
|
|
278
|
+
let entries = [];
|
|
273
279
|
this.loopColumnHandle(columns, (column) => {
|
|
274
|
-
if (!column.field
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
}
|
|
280
|
-
item.export = checkLeafIds.includes(column.id);
|
|
280
|
+
if (!column.field) return;
|
|
281
|
+
entries.push({
|
|
282
|
+
field: column.field,
|
|
283
|
+
export: checkLeafIds.includes(column.id),
|
|
284
|
+
});
|
|
281
285
|
});
|
|
282
|
-
|
|
286
|
+
saveItemMemory(
|
|
287
|
+
this.$vxeTableUtil,
|
|
283
288
|
$grid,
|
|
284
|
-
|
|
285
|
-
|
|
289
|
+
this.getExportButtonName(),
|
|
290
|
+
entries
|
|
286
291
|
);
|
|
287
292
|
}
|
|
288
293
|
}
|
|
@@ -367,6 +372,13 @@ export default {
|
|
|
367
372
|
getExportItemColumns() {
|
|
368
373
|
return getExportItemColumns(this.param, this.getGrid());
|
|
369
374
|
},
|
|
375
|
+
/**
|
|
376
|
+
* @returns {String|null} 本次导出的按钮标识(勾选记忆按它分组)。自定义脚本直接调
|
|
377
|
+
* $excelExport 时没有这一项,此时记忆退回改造前的表格级扁平表。
|
|
378
|
+
*/
|
|
379
|
+
getExportButtonName() {
|
|
380
|
+
return this.param?.exportButtonName || null;
|
|
381
|
+
},
|
|
370
382
|
getGrid() {
|
|
371
383
|
let that = this.param.vue;
|
|
372
384
|
let tableRef = this.param.targetRef;
|
|
@@ -39,6 +39,14 @@ export function isRowExport(type) {
|
|
|
39
39
|
return type === EXPORT_TYPE.SELECTED || type === EXPORT_TYPE.CURRENT;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
+
/**
|
|
43
|
+
* 是否条件导出。主表条件导出的历史 type 是 null/undefined;明细条件导出有独立类型。
|
|
44
|
+
* 明细选择导出虽然也走后端分页,但不受条件导出全局上限与查总数开关影响。
|
|
45
|
+
*/
|
|
46
|
+
export function isConditionExport(type) {
|
|
47
|
+
return type == null || type === EXPORT_TYPE.ITEM_CONDITION;
|
|
48
|
+
}
|
|
49
|
+
|
|
42
50
|
/**
|
|
43
51
|
* 是否必须先勾选行:空勾选要拦截,且以勾选行 id 作为查询条件。
|
|
44
52
|
* @param {String|null} type 导出模式。
|