cloud-web-corejs 1.0.0
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/LICENSE +21 -0
- package/package.json +166 -0
- package/src/api/menu.js +16 -0
- package/src/api/user.js +83 -0
- package/src/components/Qrcode/fileParse.vue +241 -0
- package/src/components/Qrcode/index.vue +58 -0
- package/src/components/Qrcode/printDialog.vue +103 -0
- package/src/components/SvgIcon/index.vue +62 -0
- package/src/components/Tinymce/dynamicLoadScript.js +59 -0
- package/src/components/Tinymce/index.vue +295 -0
- package/src/components/Tinymce/plugins.js +7 -0
- package/src/components/Tinymce/toolbar.js +6 -0
- package/src/components/VabUpload/image-viewer.vue +442 -0
- package/src/components/VabUpload/index.js +5 -0
- package/src/components/VabUpload/index.vue +230 -0
- package/src/components/VabUpload/mixins.js +9 -0
- package/src/components/VabUpload/privateProfileDialog.vue +296 -0
- package/src/components/VabUpload/privateProfileDialogMixins.js +1069 -0
- package/src/components/VabUpload/propertiesDialog.vue +110 -0
- package/src/components/VabUpload/view.vue +119 -0
- package/src/components/advancedSearchDialog/index.vue +44 -0
- package/src/components/advancedSearchDialog/mixins.js +4 -0
- package/src/components/baseAlert/index.js +4 -0
- package/src/components/baseAlert/index.vue +53 -0
- package/src/components/baseAlert/mixins.js +5 -0
- package/src/components/baseAttachment/index.js +30 -0
- package/src/components/baseAttachment/index.vue +40 -0
- package/src/components/baseAttachment/install.js +6 -0
- package/src/components/baseAttachment/mixins.js +8 -0
- package/src/components/baseAttachment/showList.vue +44 -0
- package/src/components/baseAttachment/uploadDialog.vue +42 -0
- package/src/components/baseInputBatch/index.vue +37 -0
- package/src/components/baseInputBatch/mixins.js +3 -0
- package/src/components/baseInputExport/index.vue +32 -0
- package/src/components/baseInputExport/mixins.js +15 -0
- package/src/components/baseInputNumber/index.vue +10 -0
- package/src/components/baseInputPrint/index.vue +12 -0
- package/src/components/baseTabs/baseTabPane.vue +22 -0
- package/src/components/baseTabs/index.vue +27 -0
- package/src/components/baseTabs/mixins.js +6 -0
- package/src/components/cnPrint/index.js +5 -0
- package/src/components/cnPrint/index.vue +54 -0
- package/src/components/cnPrint/mixins.js +3 -0
- package/src/components/code-editor/index.vue +212 -0
- package/src/components/confirmDialog/index.js +5 -0
- package/src/components/confirmDialog/index.vue +54 -0
- package/src/components/confirmDialog/mixins.js +5 -0
- package/src/components/errorMsg/index.js +5 -0
- package/src/components/errorMsg/index.vue +70 -0
- package/src/components/errorMsg/mixins.js +5 -0
- package/src/components/excelExport/button.vue +45 -0
- package/src/components/excelExport/index.js +5 -0
- package/src/components/excelExport/index.vue +55 -0
- package/src/components/excelExport/mixins.js +14 -0
- package/src/components/excelImport/index.js +13 -0
- package/src/components/excelImport/index.vue +153 -0
- package/src/components/excelImport/mixins.js +17 -0
- package/src/components/extendedProperties/mixins.js +4 -0
- package/src/components/extendedProperties/view.vue +182 -0
- package/src/components/fileLibrary/categoryMoveDialog.vue +109 -0
- package/src/components/fileLibrary/fileCategoryDialog.vue +87 -0
- package/src/components/fileLibrary/fileHistoryDialog.vue +80 -0
- package/src/components/fileLibrary/fileObjAuthDialog.vue +186 -0
- package/src/components/fileLibrary/fileObjAuthEdit.vue +256 -0
- package/src/components/fileLibrary/fileObjAuthEditDialog.vue +183 -0
- package/src/components/fileLibrary/index.vue +687 -0
- package/src/components/fileLibrary/mixins/categoryMoveDialogMixins.js +509 -0
- package/src/components/fileLibrary/mixins/fileCategoryDialogMixins.js +303 -0
- package/src/components/fileLibrary/mixins/fileHistoryDialogMixins.js +177 -0
- package/src/components/fileLibrary/mixins/fileObjAuthDialogMixin.js +621 -0
- package/src/components/fileLibrary/mixins/fileObjAuthEditDialogMixin.js +108 -0
- package/src/components/fileLibrary/mixins/fileObjAuthEditMixin.js +135 -0
- package/src/components/fileLibrary/mixins/indexMixins.js +1752 -0
- package/src/components/fileLibrary/mixins/propertiesDialogMixins.js +193 -0
- package/src/components/fileLibrary/mixins/recycleBinDialogMixins.js +686 -0
- package/src/components/fileLibrary/mixins/recycleBinPropertiesDialogMixins.js +133 -0
- package/src/components/fileLibrary/mixins/shareDialogMixins.js +51 -0
- package/src/components/fileLibrary/propertiesDialog.vue +145 -0
- package/src/components/fileLibrary/recycleBinDialog.vue +236 -0
- package/src/components/fileLibrary/recycleBinPropertiesDialog.vue +100 -0
- package/src/components/fileLibrary/shareDialog.vue +54 -0
- package/src/components/hiprint/css/hiprint.css +1004 -0
- package/src/components/hiprint/css/image/jquery.minicolors.png +0 -0
- package/src/components/hiprint/css/image/l_img.svg +1 -0
- package/src/components/hiprint/css/image/v_img.svg +1 -0
- package/src/components/hiprint/css/print-lock.css +288 -0
- package/src/components/hiprint/etypes/default-etyps-provider.js +165 -0
- package/src/components/hiprint/hiprint.bundle.js +10009 -0
- package/src/components/hiprint/hiprint.config.js +1783 -0
- package/src/components/hiprint/index.js +109 -0
- package/src/components/hiprint/install.js +9 -0
- package/src/components/hiprint/plugins/jquery.hiwprint.js +116 -0
- package/src/components/hiprint/plugins/qrcode.js +617 -0
- package/src/components/hiprint/plugins/watermark.js +199 -0
- package/src/components/hiprint/view/design/dialog.vue +84 -0
- package/src/components/hiprint/view/design/font-size.js +38 -0
- package/src/components/hiprint/view/design/index.vue +340 -0
- package/src/components/hiprint/view/design/mixins.js +15 -0
- package/src/components/hiprint/view/design/panel.js +494 -0
- package/src/components/hiprint/view/design/preview.vue +130 -0
- package/src/components/hiprint/view/design/print-data.js +54 -0
- package/src/components/hiprint/view/design/scale.js +31 -0
- package/src/components/hiprint/view/design/templateJson1.js +494 -0
- package/src/components/hiprint/view/design/templateJson2.js +870 -0
- package/src/components/hiprint/view/json-view.vue +81 -0
- package/src/components/jdPrint/index.js +5 -0
- package/src/components/jdPrint/index.vue +53 -0
- package/src/components/jdPrint/mixins.js +3 -0
- package/src/components/jsonImport/index.js +13 -0
- package/src/components/jsonImport/index.vue +150 -0
- package/src/components/jsonImport/mixins.js +17 -0
- package/src/components/mobile/buttonGroup/index.vue +38 -0
- package/src/components/mobile/file/index.vue +473 -0
- package/src/components/mobile/h5Card/h5CardPane.vue +28 -0
- package/src/components/mobile/h5Card/index.vue +16 -0
- package/src/components/mobile/h5Card/mixins.js +171 -0
- package/src/components/mobile/oplogTable/index.vue +50 -0
- package/src/components/mobile/oplogTable/mixins.js +40 -0
- package/src/components/mobile/searchDialog/index.vue +39 -0
- package/src/components/mobile/statusTag/config.js +40 -0
- package/src/components/mobile/statusTag/index.vue +16 -0
- package/src/components/mobile/statusTag/mixins.js +5 -0
- package/src/components/mobile/wf/addTaskUserdialog.vue +80 -0
- package/src/components/mobile/wf/content.vue +1556 -0
- package/src/components/mobile/wf/deleteTaskUserDialog.vue +54 -0
- package/src/components/mobile/wf/mixins/addTaskUserdialogMixin.js +78 -0
- package/src/components/mobile/wf/mixins/deleteTaskUserDialogMixin.js +77 -0
- package/src/components/mobile/wf/mixins/setCandidateDialogMixin.js +91 -0
- package/src/components/mobile/wf/mixins/urgingDialogMixin.js +77 -0
- package/src/components/mobile/wf/mixins/wfModifyDialogMixin.js +47 -0
- package/src/components/mobile/wf/mixins/wfStartDialogMixin.js +140 -0
- package/src/components/mobile/wf/setCandidateDialog.vue +48 -0
- package/src/components/mobile/wf/urgingDialog.vue +52 -0
- package/src/components/mobile/wf/wfModifyDialog.vue +33 -0
- package/src/components/mobile/wf/wfStartDialog.vue +41 -0
- package/src/components/onlineTalk/index.vue +744 -0
- package/src/components/onlineTalk/mixins.js +9 -0
- package/src/components/oplogTable/index.vue +14 -0
- package/src/components/oplogTable/mixins.js +4 -0
- package/src/components/pddPrint/index.js +5 -0
- package/src/components/pddPrint/index.vue +54 -0
- package/src/components/pddPrint/mixins.js +3 -0
- package/src/components/projectTag/addButton.vue +69 -0
- package/src/components/projectTag/deleteButton.vue +69 -0
- package/src/components/projectTag/view.vue +72 -0
- package/src/components/scriptDescription/button.vue +26 -0
- package/src/components/scriptDescription/dialog.vue +40 -0
- package/src/components/scriptDescription/mixins.js +3 -0
- package/src/components/scriptTest/button.vue +27 -0
- package/src/components/scriptTest/dialog.vue +145 -0
- package/src/components/scriptTest/mixins.js +6 -0
- package/src/components/statusTag/config.js +40 -0
- package/src/components/statusTag/index.vue +14 -0
- package/src/components/statusTag/mixins.js +5 -0
- package/src/components/table/CellSlot.vue +9 -0
- package/src/components/table/config.js +3 -0
- package/src/components/table/customConfig.js +6 -0
- package/src/components/table/index.js +10 -0
- package/src/components/table/tableForm.vue +281 -0
- package/src/components/table/tableFormMixin.js +6 -0
- package/src/components/table/vxeFilter/FilterComplex.vue +36 -0
- package/src/components/table/vxeFilter/FilterContent.vue +43 -0
- package/src/components/table/vxeFilter/FilterInput.vue +14 -0
- package/src/components/table/vxeFilter/index.js +9 -0
- package/src/components/table/vxeFilter/mixin.js +6 -0
- package/src/components/tempStorage/index.vue +124 -0
- package/src/components/tempStorage/tempStorageDialog.vue +161 -0
- package/src/components/vb-tabs/index.vue +200 -0
- package/src/components/vb-tabs/tab-nav.vue +294 -0
- package/src/components/vb-tabs/tab-pane.vue +60 -0
- package/src/components/vb-tabs/x-tabs.vue +112 -0
- package/src/components/video/dialog.vue +53 -0
- package/src/components/vipPrint/index.js +5 -0
- package/src/components/vipPrint/index.vue +54 -0
- package/src/components/vipPrint/mixins.js +3 -0
- package/src/components/wf/addTaskUserdialog.vue +209 -0
- package/src/components/wf/content.vue +702 -0
- package/src/components/wf/content2.vue +604 -0
- package/src/components/wf/deleteTaskUserDialog.vue +75 -0
- package/src/components/wf/formIframeDialog.vue +51 -0
- package/src/components/wf/index.vue +51 -0
- package/src/components/wf/mixins/setCandidateDialog.js +5 -0
- package/src/components/wf/setCandidateDialog.vue +86 -0
- package/src/components/wf/urgingDialog.vue +70 -0
- package/src/components/wf/wf.js +30 -0
- package/src/components/wf/wfModifyDialog.vue +43 -0
- package/src/components/wf/wfStartDialog.vue +49 -0
- package/src/components/wf/wfUtil.js +13 -0
- package/src/components/xform/extension/extension-helper.js +23 -0
- package/src/components/xform/extension/extension-loader.js +116 -0
- package/src/components/xform/extension/samples/alert/alert-widget.vue +69 -0
- package/src/components/xform/extension/samples/card/card-item.vue +100 -0
- package/src/components/xform/extension/samples/card/card-widget.vue +151 -0
- package/src/components/xform/extension/samples/extension-schema.js +39 -0
- package/src/components/xform/extension/samples/extension-sfc-generator.js +50 -0
- package/src/components/xform/form-designer/designer.js +29 -0
- package/src/components/xform/form-designer/form-widget/container-widget/container-wrapper.vue +107 -0
- package/src/components/xform/form-designer/form-widget/container-widget/containerMixin.js +3 -0
- package/src/components/xform/form-designer/form-widget/container-widget/data-table-mixin.js +8 -0
- package/src/components/xform/form-designer/form-widget/container-widget/data-table-widget.vue +250 -0
- package/src/components/xform/form-designer/form-widget/container-widget/detail-h5-widget.vue +227 -0
- package/src/components/xform/form-designer/form-widget/container-widget/detail-pane-widget.vue +201 -0
- package/src/components/xform/form-designer/form-widget/container-widget/detail-widget.vue +196 -0
- package/src/components/xform/form-designer/form-widget/container-widget/grid-col-widget.vue +315 -0
- package/src/components/xform/form-designer/form-widget/container-widget/grid-sub-form-widget.vue +11 -0
- package/src/components/xform/form-designer/form-widget/container-widget/grid-widget.vue +94 -0
- package/src/components/xform/form-designer/form-widget/container-widget/h5-card-pane-widget.vue +207 -0
- package/src/components/xform/form-designer/form-widget/container-widget/h5-card-widget.vue +136 -0
- package/src/components/xform/form-designer/form-widget/container-widget/h5-table-cell-widget.vue +372 -0
- package/src/components/xform/form-designer/form-widget/container-widget/h5-table-widget.vue +117 -0
- package/src/components/xform/form-designer/form-widget/container-widget/index.js +24 -0
- package/src/components/xform/form-designer/form-widget/container-widget/list-h5-widget.vue +363 -0
- package/src/components/xform/form-designer/form-widget/container-widget/panel-widget.vue +144 -0
- package/src/components/xform/form-designer/form-widget/container-widget/query-widget.vue +134 -0
- package/src/components/xform/form-designer/form-widget/container-widget/tab-widget.vue +124 -0
- package/src/components/xform/form-designer/form-widget/container-widget/table-cell-widget.vue +347 -0
- package/src/components/xform/form-designer/form-widget/container-widget/table-column-widget.vue +155 -0
- package/src/components/xform/form-designer/form-widget/container-widget/table-widget.vue +117 -0
- package/src/components/xform/form-designer/form-widget/container-widget/table2-cell-widget.vue +347 -0
- package/src/components/xform/form-designer/form-widget/container-widget/table2-widget.vue +116 -0
- package/src/components/xform/form-designer/form-widget/container-widget/tree-pane-widget.vue +178 -0
- package/src/components/xform/form-designer/form-widget/container-widget/tree-widget.vue +247 -0
- package/src/components/xform/form-designer/form-widget/container-widget/vf-box-widget.vue +187 -0
- package/src/components/xform/form-designer/form-widget/container-widget/vf-dialog-widget.vue +138 -0
- package/src/components/xform/form-designer/form-widget/container-widget/vf-drawer-widget.vue +11 -0
- package/src/components/xform/form-designer/form-widget/dialog/formDialog.vue +200 -0
- package/src/components/xform/form-designer/form-widget/dialog/formDrawer.vue +206 -0
- package/src/components/xform/form-designer/form-widget/dialog/formFieldDialog.vue +162 -0
- package/src/components/xform/form-designer/form-widget/dialog/importDialog.vue +154 -0
- package/src/components/xform/form-designer/form-widget/dialog/importDialogMixin.js +17 -0
- package/src/components/xform/form-designer/form-widget/dialog/searchFormDialog.vue +405 -0
- package/src/components/xform/form-designer/form-widget/dialog/treeMoveDialog.vue +143 -0
- package/src/components/xform/form-designer/form-widget/dialog/vabSearchDialog.vue +408 -0
- package/src/components/xform/form-designer/form-widget/field-widget/a-link-widget.vue +119 -0
- package/src/components/xform/form-designer/form-widget/field-widget/a-text-widget.vue +117 -0
- package/src/components/xform/form-designer/form-widget/field-widget/baseAttachment-widget.vue +181 -0
- package/src/components/xform/form-designer/form-widget/field-widget/button-widget.vue +87 -0
- package/src/components/xform/form-designer/form-widget/field-widget/cascader-widget.vue +116 -0
- package/src/components/xform/form-designer/form-widget/field-widget/census-widget.vue +162 -0
- package/src/components/xform/form-designer/form-widget/field-widget/checkbox-widget.vue +107 -0
- package/src/components/xform/form-designer/form-widget/field-widget/color-widget.vue +99 -0
- package/src/components/xform/form-designer/form-widget/field-widget/date-range-widget.vue +101 -0
- package/src/components/xform/form-designer/form-widget/field-widget/date-widget.vue +100 -0
- package/src/components/xform/form-designer/form-widget/field-widget/descriptions-widget.vue +184 -0
- package/src/components/xform/form-designer/form-widget/field-widget/divider-widget.vue +83 -0
- package/src/components/xform/form-designer/form-widget/field-widget/echart-bar-widget.vue +35 -0
- package/src/components/xform/form-designer/form-widget/field-widget/echart-category-widget.vue +35 -0
- package/src/components/xform/form-designer/form-widget/field-widget/echart-pie-widget.vue +35 -0
- package/src/components/xform/form-designer/form-widget/field-widget/fieldMixin.js +18 -0
- package/src/components/xform/form-designer/form-widget/field-widget/file-upload-widget.vue +304 -0
- package/src/components/xform/form-designer/form-widget/field-widget/form-item-wrapper.vue +379 -0
- package/src/components/xform/form-designer/form-widget/field-widget/html-text-widget.vue +82 -0
- package/src/components/xform/form-designer/form-widget/field-widget/import-button-widget.vue +83 -0
- package/src/components/xform/form-designer/form-widget/field-widget/index.js +10 -0
- package/src/components/xform/form-designer/form-widget/field-widget/input-batch-widget.vue +113 -0
- package/src/components/xform/form-designer/form-widget/field-widget/input-widget.vue +114 -0
- package/src/components/xform/form-designer/form-widget/field-widget/mixins/echart-bar-mixin.js +418 -0
- package/src/components/xform/form-designer/form-widget/field-widget/mixins/echart-category-mixin.js +369 -0
- package/src/components/xform/form-designer/form-widget/field-widget/mixins/echart-pie-mixin.js +194 -0
- package/src/components/xform/form-designer/form-widget/field-widget/news-list-widget.vue +87 -0
- package/src/components/xform/form-designer/form-widget/field-widget/number-widget.vue +105 -0
- package/src/components/xform/form-designer/form-widget/field-widget/picture-upload-widget.vue +281 -0
- package/src/components/xform/form-designer/form-widget/field-widget/print-button-widget.vue +91 -0
- package/src/components/xform/form-designer/form-widget/field-widget/project-tag-widget.vue +153 -0
- package/src/components/xform/form-designer/form-widget/field-widget/radio-widget.vue +107 -0
- package/src/components/xform/form-designer/form-widget/field-widget/rate-widget.vue +102 -0
- package/src/components/xform/form-designer/form-widget/field-widget/rich-editor-widget.vue +123 -0
- package/src/components/xform/form-designer/form-widget/field-widget/search_button-widget.vue +81 -0
- package/src/components/xform/form-designer/form-widget/field-widget/select-widget.vue +124 -0
- package/src/components/xform/form-designer/form-widget/field-widget/slider-widget.vue +100 -0
- package/src/components/xform/form-designer/form-widget/field-widget/slot-widget.vue +102 -0
- package/src/components/xform/form-designer/form-widget/field-widget/static-content-wrapper.vue +212 -0
- package/src/components/xform/form-designer/form-widget/field-widget/static-text-widget.vue +83 -0
- package/src/components/xform/form-designer/form-widget/field-widget/status-widget.vue +125 -0
- package/src/components/xform/form-designer/form-widget/field-widget/switch-widget.vue +101 -0
- package/src/components/xform/form-designer/form-widget/field-widget/table-export-button-widget.vue +95 -0
- package/src/components/xform/form-designer/form-widget/field-widget/text-widget.vue +92 -0
- package/src/components/xform/form-designer/form-widget/field-widget/textarea-widget.vue +99 -0
- package/src/components/xform/form-designer/form-widget/field-widget/time-range-widget.vue +104 -0
- package/src/components/xform/form-designer/form-widget/field-widget/time-widget.vue +103 -0
- package/src/components/xform/form-designer/form-widget/field-widget/title-head-widget.vue +82 -0
- package/src/components/xform/form-designer/form-widget/field-widget/vabSearch-widget.vue +221 -0
- package/src/components/xform/form-designer/form-widget/field-widget/vabUpload-widget.vue +173 -0
- package/src/components/xform/form-designer/form-widget/index.vue +145 -0
- package/src/components/xform/form-designer/form-widget/indexMixin.js +5 -0
- package/src/components/xform/form-designer/index.vue +181 -0
- package/src/components/xform/form-designer/indexMixin.js +24 -0
- package/src/components/xform/form-designer/refMixinDesign.js +28 -0
- package/src/components/xform/form-designer/setting-panel/dataSource-setting.vue +397 -0
- package/src/components/xform/form-designer/setting-panel/form-setting.vue +592 -0
- package/src/components/xform/form-designer/setting-panel/index.vue +305 -0
- package/src/components/xform/form-designer/setting-panel/indexMixin.js +12 -0
- package/src/components/xform/form-designer/setting-panel/option-items-setting.vue +302 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/a-link-editor.vue +39 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/a-text-editor.vue +36 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/alignType-editor.vue +48 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/allowCreate-editor.vue +24 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/appendButton-editor.vue +28 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/appendButtonDisabled-editor.vue +23 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/automaticDropdown-editor.vue +23 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/border-editor.vue +23 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/buttonIcon-editor.vue +23 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/buttonStyle-editor.vue +23 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/censusItems-editor.vue +110 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/clearable-editor.vue +23 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/columnWidth-editor.vue +26 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/condition-editor.vue +30 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/data-table-editor.vue +1042 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/onCellDblclick-editor.vue +32 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/onCheckboxAll-editor.vue +32 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/onCheckboxChange-editor.vue +32 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/table-column-dialog.vue +1047 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/container-detail/detail-editor.vue +74 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/container-detail-h5/detail-h5-editor.vue +44 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/container-detail-pane/detail-pane-editor.vue +41 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/container-grid/colHeight-editor.vue +28 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/container-grid/gutter-editor.vue +81 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/container-grid-col/grid-col-height-editor.vue +35 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/container-grid-col/grid-col-offset-editor.vue +24 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/container-grid-col/grid-col-pull-editor.vue +24 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/container-grid-col/grid-col-push-editor.vue +24 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/container-grid-col/grid-col-responsive-editor.vue +23 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/container-grid-col/grid-col-span-editor.vue +48 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/container-h5-card/h5-card-editor.vue +124 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/container-list-h5/list-h5-editor.vue +858 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/container-panel/height-editor.vue +22 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/container-panel/width-editor.vue +22 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/container-sub-form/showBlankRow-editor.vue +23 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/container-sub-form/showRowNumber-editor.vue +23 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/container-sub-form/sub-form-labelAlign-editor.vue +36 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/container-tab/tab-customClass-editor.vue +119 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/container-tab/tabClass-editor.vue +45 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/container-table/table-fullWidth-editor.vue +23 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/container-table-cell/cellHeight-editor.vue +23 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/container-table-cell/cellWidth-editor.vue +23 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/container-table2/table2-editor.vue +21 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/container-tree/checkStrictly-editor.vue +22 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/container-tree/show-checkbox-editor.vue +21 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/container-tree/show-filter-editor.vue +21 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/container-tree/tree-customClass-editor.vue +41 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/container-tree/tree-defaultExpandAllNode-editor.vue +21 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/container-tree/tree-draggable-editor.vue +21 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/container-tree/tree-expandOnClickNode-editor.vue +21 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/container-tree/tree-expandRetractAllNode-editor.vue +21 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/container-tree/tree-lazy-editor.vue +21 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/container-tree/tree-nodeEdit-editor.vue +21 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/container-tree/tree-selectClearAllNode-editor.vue +21 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/container-tree/treeData-editor.vue +74 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/container-tree-pane/tree-pane-editor.vue +22 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/container-vf-dialog/cancelButtonHidden-editor.vue +22 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/container-vf-dialog/cancelButtonLabel-editor.vue +22 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/container-vf-dialog/center-editor.vue +22 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/container-vf-dialog/closeOnClickModal-editor.vue +22 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/container-vf-dialog/closeOnPressEscape-editor.vue +22 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/container-vf-dialog/disabledMode-editor.vue +22 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/container-vf-dialog/fullscreen-editor.vue +22 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/container-vf-dialog/okButtonHidden-editor.vue +22 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/container-vf-dialog/okButtonLabel-editor.vue +22 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/container-vf-dialog/readMode-editor.vue +22 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/container-vf-dialog/showClose-editor.vue +22 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/container-vf-dialog/showModal-editor.vue +22 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/container-vf-dialog/title-editor.vue +22 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/container-vf-dialog/width-editor.vue +22 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/container-vf-drawer/vf-drawer-direction-editor.vue +11 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/container-vf-drawer/vf-drawer-size-editor.vue +11 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/containerClass-editor.vue +45 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/customClass-editor.vue +40 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/defaultValue-editor.vue +25 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/descriptionsItems-editor.vue +221 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/disabled-editor.vue +23 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/displayStyle-editor.vue +26 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/dsEnabled-editor.vue +25 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/dsName-editor.vue +67 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/echartHeight-editor.vue +24 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/editable-editor.vue +24 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/endPlaceholder-editor.vue +23 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/entityTableCode-editor.vue +74 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/eventMixin.js +22 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onAppendButtonClick-editor.vue +39 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onBeforeUpload-editor.vue +30 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onBlur-editor.vue +30 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onCancelButtonClick-editor.vue +30 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onChange-editor.vue +30 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onCheckChange-editor.vue +28 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onClick-editor.vue +39 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onCreated-editor.vue +32 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onCreatedEnter-editor.vue +30 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onDialogBeforeClose-editor.vue +30 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onDialogOpened-editor.vue +30 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onFileRemove.vue +30 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onFocus-editor.vue +30 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onInput-editor.vue +30 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onLoadNode-editor.vue +30 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onMounted-editor.vue +30 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onNodeCheck-editor.vue +28 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onNodeClick-editor.vue +28 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onNodeContextmenu-editor.vue +28 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onOkButtonClick-editor.vue +30 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onRemoteQuery-editor.vue +30 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onResetTable-editor.vue +30 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onSearchClear-editor.vue +30 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onSearchConfirm-editor.vue +30 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onSearchTable-editor.vue +30 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onSubFormRowAdd-editor.vue +30 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onSubFormRowChange-editor.vue +30 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onSubFormRowDelete-editor.vue +30 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onSubFormRowInsert-editor.vue +30 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onTreeLabelClick-editor.vue +28 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onUploadError-editor.vue +30 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onUploadSuccess-editor.vue +30 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onValidate-editor.vue +30 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-accessUrl/accessUrl-editor.vue +70 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-button/addTableData-event-editor.vue +85 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-button/button-type-editor.vue +32 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-button/circle-editor.vue +24 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-button/clickBindEvent-editor.vue +73 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-button/icon-editor.vue +23 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-button/plain-editor.vue +24 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-button/round-editor.vue +24 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-button/search-dialog-event-editor.vue +161 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-cascader/cascader-defaultValue-editor.vue +18 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-cascader/cascader-multiple-editor.vue +24 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-cascader/checkStrictly-editor.vue +23 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-checkbox/checkbox-defaultValue-editor.vue +18 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-color/color-defaultValue-editor.vue +25 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-common/keyName-editor.vue +67 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-common/keyNameEnabled-editor.vue +31 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-date/date-defaultValue-editor.vue +26 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-date/date-format-editor.vue +36 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-date/date-type-editor.vue +45 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-date/date-valueFormat-editor.vue +28 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-date/index.js +10 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-date-range/date-range-defaultValue-editor.vue +26 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-date-range/date-range-format-editor.vue +36 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-date-range/date-range-type-editor.vue +39 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-date-range/date-range-valueFormat-editor.vue +28 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-divider/contentPosition-editor.vue +27 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-echart/echart-bar-editor.vue +253 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-echart/echart-category-editor.vue +297 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-echart/echart-pie-editor.vue +188 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-file-upload/file-upload-fileTypes-editor.vue +44 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-html-text/htmlContent-editor.vue +29 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import-button-editor.vue +76 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-number/controlsPosition-editor.vue +27 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-picture-upload/picture-upload-fileTypes-editor.vue +44 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-print-button/print-button-editor.vue +86 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-radio/radio-defaultValue-editor.vue +18 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-rate/allowHalf-editor.vue +23 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-rate/highThreshold-editor.vue +24 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-rate/lowThreshold-editor.vue +24 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-rate/rate-defaultValue-editor.vue +26 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-rate/rate-max-editor.vue +25 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-rate/showScore-editor.vue +23 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-rate/showText-editor.vue +23 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-save-button/saveHandleEnabled-editor.vue +23 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-script/script-editor.vue +286 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-select/select-defaultValue-editor.vue +18 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-slider/range-editor.vue +23 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-slider/showStops-editor.vue +23 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-slider/vertical-editor.vue +23 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-static-text/fontSize-editor.vue +23 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-static-text/textContent-editor.vue +23 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-status/field-status-editor.vue +205 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-switch/activeColor-editor.vue +23 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-switch/activeText-editor.vue +23 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-switch/inactiveColor-editor.vue +23 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-switch/inactiveText-editor.vue +23 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-switch/switch-defaultValue-editor.vue +25 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-switch/switchWidth-editor.vue +23 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-table-export-button/table-export-button-editor.vue +41 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-time/time-defaultValue-editor.vue +26 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-time/time-format-editor.vue +27 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-time-range/time-range-defaultValue-editor.vue +26 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-time-range/time-range-format-editor.vue +27 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-vabSearch/vabSearchField-editor.vue +104 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-vabSearch/vabSearchName-editor.vue +32 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-vabSearch/vabsearchConfigDialog.vue +569 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-vabUpload/field-vabUpload-editor.vue +21 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/fileMaxSize-editor.vue +23 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/filterable-editor.vue +23 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/formField-editor.vue +25 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/formScriptEnabled-editor.vue +52 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/formula-editor.vue +717 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/formulaEnabled-editor.vue +28 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/hidden-editor.vue +23 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/iconClass-editor.vue +50 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/index.js +12 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/isFullscreen-editor.vue +23 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/label-editor.vue +30 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/labelAlign-editor.vue +42 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/labelColor-editor.vue +23 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/labelHidden-editor.vue +23 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/labelIconClass-editor.vue +28 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/labelIconPosition-editor.vue +37 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/labelTooltip-editor.vue +23 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/labelWidth-editor.vue +25 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/limit-editor.vue +24 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/listItems-editor.vue +53 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/max-editor.vue +39 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/maxLength-editor.vue +40 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/min-editor.vue +40 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/minLength-editor.vue +41 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/multiple-editor.vue +24 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/multipleLimit-editor.vue +24 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/multipleSelect-editor.vue +24 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/name-editor.vue +101 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/optionItems-editor.vue +37 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/placeholder-editor.vue +24 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/precision-editor.vue +23 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/prefixIcon-editor.vue +23 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/propertyMixin.js +53 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/readonly-editor.vue +23 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/remote-editor.vue +25 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/required-editor.vue +28 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/requiredHint-editor.vue +24 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/rows-editor.vue +24 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/showFileList-editor.vue +23 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/showPassword-editor.vue +24 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/showText-editor.vue +23 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/showWordLimit-editor.vue +23 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/showbutton-editor.vue +23 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/size-editor.vue +39 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/space-editor-editor.vue +23 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/startPlaceholder-editor.vue +23 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/step-editor.vue +23 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/styleTableClass-editor.vue +45 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/styleTitClass-editor.vue +48 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/submitFlag-editor.vue +23 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/suffixIcon-editor.vue +23 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/type-editor.vue +33 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/uploadTip-editor.vue +24 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/uploadURL-editor.vue +28 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/validation-editor.vue +48 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/validationHint-editor.vue +23 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/wfFlag-editor.vue +199 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/widgetWidth-editor.vue +25 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/withCredentials-editor.vue +23 -0
- package/src/components/xform/form-designer/setting-panel/property-editor-factory.js +173 -0
- package/src/components/xform/form-designer/setting-panel/propertyRegister.js +319 -0
- package/src/components/xform/form-designer/toolbar-panel/index.vue +706 -0
- package/src/components/xform/form-designer/toolbar-panel/indexMixin.js +24 -0
- package/src/components/xform/form-designer/widget-panel/index.vue +321 -0
- package/src/components/xform/form-designer/widget-panel/indexMixin.js +18 -0
- package/src/components/xform/form-designer/widget-panel/templatesConfig.js +58 -0
- package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +2846 -0
- package/src/components/xform/form-render/container-item/container-item-wrapper.vue +37 -0
- package/src/components/xform/form-render/container-item/containerItemMixin.js +11 -0
- package/src/components/xform/form-render/container-item/data-table-item.vue +328 -0
- package/src/components/xform/form-render/container-item/data-table-mixin.js +18 -0
- package/src/components/xform/form-render/container-item/detail-h5-item.vue +172 -0
- package/src/components/xform/form-render/container-item/detail-item.vue +158 -0
- package/src/components/xform/form-render/container-item/detail-pane-item.vue +139 -0
- package/src/components/xform/form-render/container-item/grid-col-item.vue +127 -0
- package/src/components/xform/form-render/container-item/grid-item.vue +59 -0
- package/src/components/xform/form-render/container-item/h5-card-item.vue +120 -0
- package/src/components/xform/form-render/container-item/h5-card-pane-item.vue +140 -0
- package/src/components/xform/form-render/container-item/h5-table-cell-item.vue +72 -0
- package/src/components/xform/form-render/container-item/h5-table-item.vue +73 -0
- package/src/components/xform/form-render/container-item/index.js +24 -0
- package/src/components/xform/form-render/container-item/list-h5-item.vue +922 -0
- package/src/components/xform/form-render/container-item/list-h5-item2.vue +1348 -0
- package/src/components/xform/form-render/container-item/panel-item.vue +99 -0
- package/src/components/xform/form-render/container-item/query-item.vue +98 -0
- package/src/components/xform/form-render/container-item/sub-form-item.vue +417 -0
- package/src/components/xform/form-render/container-item/tab-item.vue +88 -0
- package/src/components/xform/form-render/container-item/table-cell-item.vue +69 -0
- package/src/components/xform/form-render/container-item/table-column-item.vue +84 -0
- package/src/components/xform/form-render/container-item/table-item.vue +73 -0
- package/src/components/xform/form-render/container-item/table2-cell-item.vue +107 -0
- package/src/components/xform/form-render/container-item/table2-item.vue +229 -0
- package/src/components/xform/form-render/container-item/tree-item.vue +385 -0
- package/src/components/xform/form-render/container-item/tree-pane-item.vue +116 -0
- package/src/components/xform/form-render/container-item/vf-box-item.vue +103 -0
- package/src/components/xform/form-render/container-item/vf-dialog-item.vue +9 -0
- package/src/components/xform/form-render/dynamicDialogRender.js +7 -0
- package/src/components/xform/form-render/index.vue +89 -0
- package/src/components/xform/form-render/indexMixin.js +36 -0
- package/src/components/xform/form-render/refMixin.js +3 -0
- package/src/components/xform/lang/en-US.js +438 -0
- package/src/components/xform/lang/en-US_extension.js +26 -0
- package/src/components/xform/lang/en-US_render.js +38 -0
- package/src/components/xform/lang/zh-CN.js +593 -0
- package/src/components/xform/lang/zh-CN_extension.js +26 -0
- package/src/components/xform/lang/zh-CN_render.js +38 -0
- package/src/components/xform/mixins/defaultHandle.js +5 -0
- package/src/components/xform/mixins/scriptHttp.js +6 -0
- package/src/components/xform/utils/beautifierLoader.js +77 -0
- package/src/components/xform/utils/code-generator.js +91 -0
- package/src/components/xform/utils/config.js +11 -0
- package/src/components/xform/utils/debug-console.js +7 -0
- package/src/components/xform/utils/directive.js +74 -0
- package/src/components/xform/utils/emitter.js +44 -0
- package/src/components/xform/utils/format.js +214 -0
- package/src/components/xform/utils/formula.js +105 -0
- package/src/components/xform/utils/i18n.js +95 -0
- package/src/components/xform/utils/sfc-generator.js +583 -0
- package/src/components/xform/utils/smart-vue-i18n/index.js +69 -0
- package/src/components/xform/utils/smart-vue-i18n/utils.js +47 -0
- package/src/components/xform/utils/util.js +1 -0
- package/src/components/xform/utils/validators.js +5 -0
- package/src/components/xform/utils/vue2js-generator.js +144 -0
- package/src/components/xform/utils/vue3js-generator.js +70 -0
- package/src/components/xhsPrint/index.js +5 -0
- package/src/components/xhsPrint/index.vue +54 -0
- package/src/components/xhsPrint/mixins.js +3 -0
- package/src/directive/LimitNumber/index.js +1 -0
- package/src/directive/el-dialog-center/index.js +1 -0
- package/src/directive/el-drag-dialog/drag.js +1 -0
- package/src/directive/el-drag-dialog/index.js +14 -0
- package/src/directive/el-readonly/index.js +4 -0
- package/src/directive/permission/hasPermi.js +1 -0
- package/src/directive/permission/index.js +14 -0
- package/src/index.js +186 -0
- package/src/lang/index.js +51 -0
- package/src/mixins/mobile/common/index.js +19 -0
- package/src/mixins/mobile/edit/index.js +10 -0
- package/src/mixins/mobile/list/index.js +117 -0
- package/src/mixins/mobile/selectDialog/index.js +169 -0
- package/src/mixins/mobile/wf/index.js +173 -0
- package/src/mixins/selectDialog/index.js +8 -0
- package/src/mixins/tableTree/index.js +4 -0
- package/src/mixins/wf/index.js +6 -0
- package/src/permission.js +18 -0
- package/src/resources/js/base/common.js +110 -0
- package/src/store/getters.js +20 -0
- package/src/store/index.js +25 -0
- package/src/store/modules/permission.js +37 -0
- package/src/store/modules/settings.js +1 -0
- package/src/store/modules/tagsView.js +14 -0
- package/src/store/modules/user.js +28 -0
- package/src/utils/auth.js +1 -0
- package/src/utils/global.js +12 -0
- package/src/utils/index.js +7 -0
- package/src/utils/keepAlive.js +1 -0
- package/src/utils/request.js +29 -0
- package/src/utils/vab.js +27 -0
- package/src/utils/validate.js +1 -0
- package/src/utils/wf.js +21 -0
- package/src/views/bd/setting/bd_attach_setting/dialog.vue +161 -0
- package/src/views/bd/setting/bd_attach_setting/edit.vue +210 -0
- package/src/views/bd/setting/bd_attach_setting/list.vue +288 -0
- package/src/views/bd/setting/form_script/dialog.vue +253 -0
- package/src/views/bd/setting/form_script/edit.vue +201 -0
- package/src/views/bd/setting/form_script/edit1.vue +285 -0
- package/src/views/bd/setting/form_script/form_list.vue +342 -0
- package/src/views/bd/setting/form_script/list.vue +220 -0
- package/src/views/bd/setting/form_script/list1.vue +421 -0
- package/src/views/bd/setting/form_script/list2.vue +13 -0
- package/src/views/bd/setting/form_template/dialog.vue +205 -0
- package/src/views/bd/setting/form_template/edit.vue +292 -0
- package/src/views/bd/setting/form_template/editWfObjConfigDialog.vue +131 -0
- package/src/views/bd/setting/form_template/ftHistoryDialog.vue +175 -0
- package/src/views/bd/setting/form_template/itemEdit.vue +270 -0
- package/src/views/bd/setting/form_template/itemList.vue +300 -0
- package/src/views/bd/setting/form_template/list.vue +766 -0
- package/src/views/bd/setting/menu_kind/dialog.vue +216 -0
- package/src/views/bd/setting/menu_kind/list.vue +236 -0
- package/src/views/bd/setting/table_model/dialog.vue +161 -0
- package/src/views/bd/setting/table_model/edit.vue +1109 -0
- package/src/views/bd/setting/table_model/list.vue +467 -0
- package/src/views/bd/setting/table_model/zdDialog.vue +201 -0
- package/src/views/support/export_template/edit.vue +285 -0
- package/src/views/support/export_template/list.vue +272 -0
- package/src/views/user/access_log/edit.vue +121 -0
- package/src/views/user/access_log/list.vue +345 -0
- package/src/views/user/access_log/statistics_list.vue +284 -0
- package/src/views/user/api_request/edit.vue +233 -0
- package/src/views/user/api_request/list.vue +199 -0
- package/src/views/user/area/dialog.vue +448 -0
- package/src/views/user/area_attribute/configDialog.vue +319 -0
- package/src/views/user/area_attribute/edit.vue +245 -0
- package/src/views/user/area_attribute/list.vue +100 -0
- package/src/views/user/attachment/uploadDialog.vue +73 -0
- package/src/views/user/bill_setting/button/previewButton.vue +94 -0
- package/src/views/user/bill_setting/compareView.vue +27 -0
- package/src/views/user/bill_setting/edit.vue +237 -0
- package/src/views/user/bill_setting/h5_ModifyDialog.vue +75 -0
- package/src/views/user/bill_setting/h5_detailDialog.vue +74 -0
- package/src/views/user/bill_setting/h5_view.vue +56 -0
- package/src/views/user/bill_setting/itemViewDialog.vue +278 -0
- package/src/views/user/bill_setting/list.vue +342 -0
- package/src/views/user/bill_setting/mixins/wf.js +432 -0
- package/src/views/user/bill_setting/previewDialog.vue +61 -0
- package/src/views/user/bill_setting/queryDialog.vue +175 -0
- package/src/views/user/bill_setting/render.vue +2028 -0
- package/src/views/user/bill_setting/template.json +75 -0
- package/src/views/user/bill_setting/template2.json +254 -0
- package/src/views/user/bill_setting/userDialog.vue +149 -0
- package/src/views/user/code_rules/edit.vue +217 -0
- package/src/views/user/code_rules/list.vue +196 -0
- package/src/views/user/commMenu/index.vue +292 -0
- package/src/views/user/common_attribute/edit.vue +136 -0
- package/src/views/user/common_attribute/itemEdit.vue +237 -0
- package/src/views/user/common_attribute/list.vue +374 -0
- package/src/views/user/common_script/edit.vue +224 -0
- package/src/views/user/common_script/list.vue +342 -0
- package/src/views/user/company_info/dialog.vue +147 -0
- package/src/views/user/company_info/edit.vue +145 -0
- package/src/views/user/company_info/view.vue +24 -0
- package/src/views/user/country/dialog.vue +170 -0
- package/src/views/user/country/edit.vue +159 -0
- package/src/views/user/country/list.vue +187 -0
- package/src/views/user/data_type_setting/dialog.vue +160 -0
- package/src/views/user/data_type_setting/editDialog.vue +120 -0
- package/src/views/user/ea/eagroup/eaobj_list.vue +323 -0
- package/src/views/user/ea/eagroup/edit.vue +485 -0
- package/src/views/user/ea/eaobj/edit.vue +155 -0
- package/src/views/user/ea/eaobj/list.vue +143 -0
- package/src/views/user/error-page/401.vue +99 -0
- package/src/views/user/error-page/404.vue +228 -0
- package/src/views/user/extend_datasource/dialog.vue +245 -0
- package/src/views/user/extend_datasource/edit.vue +238 -0
- package/src/views/user/extend_datasource/list.vue +221 -0
- package/src/views/user/fieldTranslation/editDialog.vue +253 -0
- package/src/views/user/fieldTranslation/list.vue +464 -0
- package/src/views/user/field_values_invisible/edit.vue +184 -0
- package/src/views/user/field_values_invisible/list.vue +195 -0
- package/src/views/user/file_type/edit.vue +168 -0
- package/src/views/user/file_type/list.vue +255 -0
- package/src/views/user/file_type/userEdit.vue +188 -0
- package/src/views/user/file_view_area/edit.vue +145 -0
- package/src/views/user/file_view_area/itemEdit.vue +191 -0
- package/src/views/user/file_view_area/list.vue +330 -0
- package/src/views/user/file_view_ins/list.vue +929 -0
- package/src/views/user/file_view_ins/propertiesDialog.vue +218 -0
- package/src/views/user/form/form_ins_list/edit.vue +422 -0
- package/src/views/user/form/form_template/dialog.vue +205 -0
- package/src/views/user/form/form_template/edit.vue +211 -0
- package/src/views/user/form/form_template/itemEdit.vue +236 -0
- package/src/views/user/form/form_template/itemList.vue +221 -0
- package/src/views/user/form/form_template/list.vue +513 -0
- package/src/views/user/form/form_template_field/dialog.vue +161 -0
- package/src/views/user/form/form_type/dialog.vue +149 -0
- package/src/views/user/form/form_type/edit.vue +136 -0
- package/src/views/user/form/form_type/editDialog.vue +117 -0
- package/src/views/user/form/form_type/list.vue +132 -0
- package/src/views/user/form/report_requestaccess/dialog.vue +196 -0
- package/src/views/user/form/report_requestaccess/edit.vue +476 -0
- package/src/views/user/form/report_requestaccess/list.vue +187 -0
- package/src/views/user/form/vform/designer.vue +746 -0
- package/src/views/user/form/vform/formFieldMapping.js +172 -0
- package/src/views/user/form/vform/out_render.vue +53 -0
- package/src/views/user/form/vform/render.vue +140 -0
- package/src/views/user/form/view/edit.vue +37 -0
- package/src/views/user/form/view/list.vue +128 -0
- package/src/views/user/home/default.vue +969 -0
- package/src/views/user/home/distributor.vue +593 -0
- package/src/views/user/home/index.vue +75 -0
- package/src/views/user/language_setting/edit.vue +166 -0
- package/src/views/user/language_setting/list.vue +206 -0
- package/src/views/user/ledger_library/list.vue +30 -0
- package/src/views/user/ledger_library/private_list.vue +31 -0
- package/src/views/user/login/auth-redirect.vue +15 -0
- package/src/views/user/login/index.vue +129 -0
- package/src/views/user/login/indexMixin.js +398 -0
- package/src/views/user/menu/list.vue +568 -0
- package/src/views/user/mobile_menu/list.vue +318 -0
- package/src/views/user/notify_message/dialog.vue +92 -0
- package/src/views/user/notify_message/infoDialog.vue +77 -0
- package/src/views/user/notify_message/list.vue +461 -0
- package/src/views/user/notify_template/edit.vue +185 -0
- package/src/views/user/notify_template/list.vue +186 -0
- package/src/views/user/oplog/edit.vue +112 -0
- package/src/views/user/oplog/list.vue +153 -0
- package/src/views/user/outLink/form_view.vue +169 -0
- package/src/views/user/outLink/index.vue +47 -0
- package/src/views/user/outLink/view.vue +134 -0
- package/src/views/user/position/dialog.vue +153 -0
- package/src/views/user/position/edit.vue +152 -0
- package/src/views/user/position/list.vue +178 -0
- package/src/views/user/project_tag/dialog.vue +181 -0
- package/src/views/user/project_tag/edit.vue +135 -0
- package/src/views/user/project_tag/list.vue +167 -0
- package/src/views/user/push_setting/edit.vue +273 -0
- package/src/views/user/push_setting/list.vue +227 -0
- package/src/views/user/redirect/index.vue +12 -0
- package/src/views/user/role/dialog.vue +163 -0
- package/src/views/user/role/edit.vue +426 -0
- package/src/views/user/role/list.vue +169 -0
- package/src/views/user/sale_org/dialog.vue +204 -0
- package/src/views/user/sale_org/list.vue +601 -0
- package/src/views/user/sale_org/moveDialog.vue +289 -0
- package/src/views/user/sale_org_net/list.vue +574 -0
- package/src/views/user/system_notice/edit.vue +184 -0
- package/src/views/user/system_notice/infoDialog.vue +152 -0
- package/src/views/user/system_notice/list.vue +190 -0
- package/src/views/user/system_parameter/edit.vue +146 -0
- package/src/views/user/system_parameter/list.vue +128 -0
- package/src/views/user/user/dialog.vue +202 -0
- package/src/views/user/user/edit.vue +1019 -0
- package/src/views/user/user/info.vue +264 -0
- package/src/views/user/user/infoContent.vue +37 -0
- package/src/views/user/user/infoEdit.vue +220 -0
- package/src/views/user/user/infoIframeDialog.vue +45 -0
- package/src/views/user/user/inner_list.vue +16 -0
- package/src/views/user/user/list.vue +558 -0
- package/src/views/user/user/list2.vue +14 -0
- package/src/views/user/user/modifyPasswordDialog.vue +193 -0
- package/src/views/user/user/out_list.vue +16 -0
- package/src/views/user/wf/formCustDialog/list.vue +32 -0
- package/src/views/user/wf/iframe/dialog.vue +52 -0
- package/src/views/user/wf/iframe/index.vue +46 -0
- package/src/views/user/wf/iframe/index2.vue +59 -0
- package/src/views/user/wf/wf_auto_submit_data/edit.vue +119 -0
- package/src/views/user/wf/wf_auto_submit_data/edith.vue +128 -0
- package/src/views/user/wf/wf_auto_submit_data/list.vue +653 -0
- package/src/views/user/wf/wf_diy_attribute/edit.vue +202 -0
- package/src/views/user/wf/wf_manage/list.vue +667 -0
- package/src/views/user/wf/wf_manage/wfContentDialog.vue +106 -0
- package/src/views/user/wf/wf_obj_config/activiti_wf.vue +132 -0
- package/src/views/user/wf/wf_obj_config/dialog.vue +178 -0
- package/src/views/user/wf/wf_obj_config/edit.vue +204 -0
- package/src/views/user/wf/wf_obj_config/edit_form.vue +217 -0
- package/src/views/user/wf/wf_obj_config/itemEdit.vue +292 -0
- package/src/views/user/wf/wf_obj_config/itemEdit_form.vue +147 -0
- package/src/views/user/wf/wf_obj_config/list.vue +597 -0
- package/src/views/user/wf/wf_obj_config/list_form.vue +371 -0
- package/src/views/user/wf/wf_param/edit.vue +169 -0
- package/src/views/user/wf/wf_work_calendar/components/calendar.vue +355 -0
- package/src/views/user/wf/wf_work_calendar/components/calendar2.vue +386 -0
- package/src/views/user/wf/wf_work_calendar/configDialog.vue +367 -0
- package/src/views/user/wf/wf_work_calendar/date.js +699 -0
- package/src/views/user/wf/wf_work_calendar/list.vue +229 -0
@@ -0,0 +1,1752 @@
|
|
1
|
+
import {treeScollx} from "../../../utils/global.js";
|
2
|
+
import ElImageViewer from "../../../components/VabUpload/image-viewer";
|
3
|
+
import propertiesDialog from "../propertiesDialog";
|
4
|
+
import categoryMoveDialog from "../categoryMoveDialog";
|
5
|
+
import fileHistoryDialog from "../fileHistoryDialog";
|
6
|
+
import shareDialog from "../shareDialog";
|
7
|
+
import recycleBinDialog from "../recycleBinDialog";
|
8
|
+
import videoDialog from "../../../components/video/dialog";
|
9
|
+
import userDialog from "../../../views/user/user/dialog";
|
10
|
+
|
11
|
+
let modules;
|
12
|
+
modules = {
|
13
|
+
props: {
|
14
|
+
option: {
|
15
|
+
type: Object,
|
16
|
+
},
|
17
|
+
},
|
18
|
+
components: {
|
19
|
+
ElImageViewer,
|
20
|
+
propertiesDialog,
|
21
|
+
categoryMoveDialog,
|
22
|
+
fileHistoryDialog,
|
23
|
+
shareDialog,
|
24
|
+
recycleBinDialog,
|
25
|
+
videoDialog,
|
26
|
+
userDialog,
|
27
|
+
},
|
28
|
+
provide() {
|
29
|
+
return {
|
30
|
+
current_prefix: this.current_prefix,
|
31
|
+
storeAreaCode: this.storeAreaCode,
|
32
|
+
billConfig: this.billConfig,
|
33
|
+
isBillEnabled: this.isBillEnabled,
|
34
|
+
billRowField: this.billRowField,
|
35
|
+
billDialogParam: this.billDialogParam,
|
36
|
+
dataId: this.dataId,
|
37
|
+
getTitle: () => {
|
38
|
+
return this.title;
|
39
|
+
},
|
40
|
+
getIsPrivate: () => {
|
41
|
+
return this.isPrivate;
|
42
|
+
},
|
43
|
+
getObjectForeignId: () => {
|
44
|
+
return this.objectForeignId;
|
45
|
+
},
|
46
|
+
};
|
47
|
+
},
|
48
|
+
async created() {
|
49
|
+
if (this.isPrivate) {
|
50
|
+
await this.getCurrentUser();
|
51
|
+
}
|
52
|
+
},
|
53
|
+
mounted() {
|
54
|
+
//初始化单据弹框
|
55
|
+
if (this.isBillEnabled) {
|
56
|
+
this.billDialogContent = this.billConfig.billDialog;
|
57
|
+
}
|
58
|
+
|
59
|
+
this.initTitle();
|
60
|
+
this.initTableList();
|
61
|
+
},
|
62
|
+
watch: {
|
63
|
+
filterText(val) {
|
64
|
+
this.$refs.tree.filter(val);
|
65
|
+
},
|
66
|
+
},
|
67
|
+
data() {
|
68
|
+
let pageSize = 1000;
|
69
|
+
let categoryPageSize = 1000;
|
70
|
+
return {
|
71
|
+
showBillDialog: false,
|
72
|
+
billDialogContent: null,
|
73
|
+
checkBillDatas: [],
|
74
|
+
title: "",
|
75
|
+
folderStatus: false,
|
76
|
+
filterText: "",
|
77
|
+
defaultProps: {
|
78
|
+
children: "children",
|
79
|
+
label: "fileName",
|
80
|
+
isLeaf: "leaf",
|
81
|
+
},
|
82
|
+
resolveFunc: function () {
|
83
|
+
},
|
84
|
+
fileAttachmentCategorys: [],
|
85
|
+
currentFileCategoryCode: null,
|
86
|
+
chooseIndex: -1,
|
87
|
+
imageDTOs: [],
|
88
|
+
showViewer: false,
|
89
|
+
showPropertiesDialog: false,
|
90
|
+
editAttachment: null,
|
91
|
+
vxeOption: {},
|
92
|
+
showType: 1,
|
93
|
+
formData: {},
|
94
|
+
showAdvancedSearch: false,
|
95
|
+
advancedFormData: {},
|
96
|
+
pageSize: pageSize,
|
97
|
+
page: {
|
98
|
+
current: 1,
|
99
|
+
size: pageSize,
|
100
|
+
total: 0,
|
101
|
+
records: [],
|
102
|
+
},
|
103
|
+
categoryPageSize: categoryPageSize,
|
104
|
+
categoryPage: {
|
105
|
+
current: 1,
|
106
|
+
size: categoryPageSize,
|
107
|
+
total: 0,
|
108
|
+
records: [],
|
109
|
+
},
|
110
|
+
showEditCategoryDialog: false,
|
111
|
+
editCategory: {},
|
112
|
+
currentFileCategory: null,
|
113
|
+
rootCategory: false,
|
114
|
+
currentNode: null,
|
115
|
+
treeNodeArr: [],
|
116
|
+
checkRows: [],
|
117
|
+
showCategoryMoveDialog: false,
|
118
|
+
checkList: [],
|
119
|
+
handleType: 1, //1移动,2复制
|
120
|
+
showFileHistoryDialog: false,
|
121
|
+
operateFileHistory: null,
|
122
|
+
showShareDialog: false,
|
123
|
+
shareAttachment: null,
|
124
|
+
checkAll: false,
|
125
|
+
fileArr: [],
|
126
|
+
checkList2: [],
|
127
|
+
showRecycleBinDialog: false,
|
128
|
+
|
129
|
+
showVideoDialog: false,
|
130
|
+
videoOption: null,
|
131
|
+
|
132
|
+
//个人文档
|
133
|
+
userInfo: {
|
134
|
+
id: null,
|
135
|
+
nickName: null,
|
136
|
+
},
|
137
|
+
treeFlag: false,
|
138
|
+
currentUser: {},
|
139
|
+
showUserDialog: false,
|
140
|
+
isDocAdmin: false,
|
141
|
+
|
142
|
+
//圈选
|
143
|
+
is_show_mask: false,
|
144
|
+
box_screen_left: 0,
|
145
|
+
box_screen_top: 0,
|
146
|
+
start_x: 0,
|
147
|
+
start_y: 0,
|
148
|
+
end_x: 0,
|
149
|
+
end_y: 0,
|
150
|
+
scrollTop1: 0,
|
151
|
+
scrollTop2: 0,
|
152
|
+
};
|
153
|
+
},
|
154
|
+
computed: {
|
155
|
+
isEdit() {
|
156
|
+
//默认可编辑
|
157
|
+
return this.option.isEdit !== false ? true : false;
|
158
|
+
},
|
159
|
+
isCategoryEdit() {
|
160
|
+
if (this.isEdit === false) {
|
161
|
+
return false;
|
162
|
+
}
|
163
|
+
//文件夹默认不可编辑
|
164
|
+
return this.option.isCategoryEdit === true ? true : false;
|
165
|
+
},
|
166
|
+
mouseCheck() {
|
167
|
+
//鼠标框选默认不开启
|
168
|
+
return this.option.mouseCheck === true ? true : false;
|
169
|
+
},
|
170
|
+
dataId() {
|
171
|
+
// return this.option.dataId;
|
172
|
+
let dataId = this.isBillEnabled
|
173
|
+
? this.checkBillDatas.map((row) => row.id)
|
174
|
+
: this.option.dataId
|
175
|
+
? [this.option.dataId]
|
176
|
+
: [0];
|
177
|
+
return dataId;
|
178
|
+
},
|
179
|
+
objectForeignId() {
|
180
|
+
if (this.option.private) {
|
181
|
+
return [this.userInfo.id || 0];
|
182
|
+
} else {
|
183
|
+
return this.dataId && this.dataId.length ? this.dataId : [0];
|
184
|
+
}
|
185
|
+
},
|
186
|
+
current_prefix() {
|
187
|
+
return this.option.current_prefix;
|
188
|
+
},
|
189
|
+
storeAreaCode() {
|
190
|
+
return this.option.storeAreaCode;
|
191
|
+
},
|
192
|
+
pictureDtoList() {
|
193
|
+
return this.page.records.filter((row) => {
|
194
|
+
return row.url && this.$commonFileUtil.isPictureFile(row.url);
|
195
|
+
});
|
196
|
+
},
|
197
|
+
//圈选
|
198
|
+
getMaskStyle: function () {
|
199
|
+
return this.getStyle();
|
200
|
+
},
|
201
|
+
checkAllDisabled() {
|
202
|
+
return this.page.records.length == 0;
|
203
|
+
},
|
204
|
+
checkAllIndeterminate() {
|
205
|
+
return (
|
206
|
+
this.checkList.length > 0 &&
|
207
|
+
this.checkList.length < this.page.records.length
|
208
|
+
);
|
209
|
+
},
|
210
|
+
billConfig() {
|
211
|
+
return this.option.billConfig || {};
|
212
|
+
},
|
213
|
+
billRowField() {
|
214
|
+
let billConfig = this.billConfig;
|
215
|
+
return billConfig.rowField || "id";
|
216
|
+
},
|
217
|
+
isBillEnabled() {
|
218
|
+
return this.billConfig.enabled || false;
|
219
|
+
},
|
220
|
+
billDialogParam() {
|
221
|
+
if (this.isBillEnabled && this.billConfig.billDialogParam) {
|
222
|
+
return this.billConfig.billDialogParam();
|
223
|
+
}
|
224
|
+
},
|
225
|
+
checkBillNames: {
|
226
|
+
get() {
|
227
|
+
let dataProps = this.billConfig.dataProps;
|
228
|
+
return this.checkBillDatas
|
229
|
+
.map((row) => {
|
230
|
+
return row[dataProps.label];
|
231
|
+
})
|
232
|
+
.join(",");
|
233
|
+
},
|
234
|
+
set(val) {
|
235
|
+
if (!val) {
|
236
|
+
this.checkBillDatas = [];
|
237
|
+
}
|
238
|
+
},
|
239
|
+
},
|
240
|
+
isPrivate() {
|
241
|
+
return this.option.private || false;
|
242
|
+
},
|
243
|
+
currentCategoryId() {
|
244
|
+
return this.currentFileCategory &&
|
245
|
+
this.currentFileCategory.id &&
|
246
|
+
this.currentFileCategory.id > 0
|
247
|
+
? this.currentFileCategory.id
|
248
|
+
: 0;
|
249
|
+
},
|
250
|
+
customFileButtons() {
|
251
|
+
let buttonConfig = this.option.buttonConfig || {};
|
252
|
+
return buttonConfig && buttonConfig.file ? buttonConfig.file : [];
|
253
|
+
},
|
254
|
+
customToobarButtons() {
|
255
|
+
let buttonConfig = this.option.buttonConfig || {};
|
256
|
+
return buttonConfig && buttonConfig.toobar ? buttonConfig.toobar : [];
|
257
|
+
}
|
258
|
+
},
|
259
|
+
methods: {
|
260
|
+
getTopNode() {
|
261
|
+
return this.$refs.tree.root.childNodes[0];
|
262
|
+
},
|
263
|
+
getFileName(row) {
|
264
|
+
if (row.extension) {
|
265
|
+
let index = row.fileName.lastIndexOf("." + row.extension);
|
266
|
+
return row.fileName.substring(0, index);
|
267
|
+
} else {
|
268
|
+
return row.fileName;
|
269
|
+
}
|
270
|
+
},
|
271
|
+
openShareDialog(shareAttachment) {
|
272
|
+
this.showShareDialog = true;
|
273
|
+
this.shareAttachment = shareAttachment;
|
274
|
+
},
|
275
|
+
getCheckRows() {
|
276
|
+
let checkRows = [];
|
277
|
+
if (this.showType == 1) {
|
278
|
+
let checkList = this.checkList;
|
279
|
+
checkRows = this.page.records.filter((row) =>
|
280
|
+
checkList.includes(row.id)
|
281
|
+
);
|
282
|
+
} else {
|
283
|
+
checkRows = this.$refs["table-m1"].getCheckboxRecords(true);
|
284
|
+
}
|
285
|
+
return checkRows;
|
286
|
+
},
|
287
|
+
getRows() {
|
288
|
+
let rows = [];
|
289
|
+
if (this.showType == 1) {
|
290
|
+
rows = this.page.records;
|
291
|
+
} else {
|
292
|
+
rows = this.$refs["table-m1"].getTableData().fullData;
|
293
|
+
}
|
294
|
+
return rows;
|
295
|
+
},
|
296
|
+
openCategoryMoveDialog(handleType) {
|
297
|
+
let checkRows = this.getCheckRows();
|
298
|
+
if (!checkRows.length) {
|
299
|
+
let msg =
|
300
|
+
handleType == 1 ? this.$t2('请选择需要移动的文件', 'components.fileLibrary.moveTip') : this.$t2('请选择需要复制的文件', 'components.fileLibrary.copyTip');
|
301
|
+
this.$message({
|
302
|
+
message: msg,
|
303
|
+
type: "error",
|
304
|
+
showClose: true,
|
305
|
+
duration: 3000,
|
306
|
+
});
|
307
|
+
return;
|
308
|
+
}
|
309
|
+
|
310
|
+
this.checkRows = checkRows;
|
311
|
+
this.handleType = handleType;
|
312
|
+
this.showCategoryMoveDialog = true;
|
313
|
+
},
|
314
|
+
confirmMoveDialog(chooseCategory, categoryArr) {
|
315
|
+
/*handleType: 1,//1移动,2复制*/
|
316
|
+
|
317
|
+
let $tree = this.$refs.tree;
|
318
|
+
if (!chooseCategory.id) {
|
319
|
+
this.currentFileCategory = null;
|
320
|
+
let node1 = this.getTopNode();
|
321
|
+
let node2 = node1.parent;
|
322
|
+
node2.loadData();
|
323
|
+
} else {
|
324
|
+
if (this.handleType == 1) {
|
325
|
+
this.checkRows.filter((item) => {
|
326
|
+
if (item.dirs) {
|
327
|
+
$tree.remove(item);
|
328
|
+
}
|
329
|
+
});
|
330
|
+
}
|
331
|
+
|
332
|
+
for (let i = 0; i < categoryArr.length; i++) {
|
333
|
+
let category = categoryArr[i];
|
334
|
+
let node = $tree.getNode(category.id + "");
|
335
|
+
if (node) {
|
336
|
+
node.expanded = true;
|
337
|
+
}
|
338
|
+
}
|
339
|
+
|
340
|
+
let cIndex = 0;
|
341
|
+
let loopDo = () => {
|
342
|
+
let category = categoryArr[cIndex];
|
343
|
+
let node = $tree.getNode(category.id + "");
|
344
|
+
if (cIndex == 0) {
|
345
|
+
if (node) {
|
346
|
+
this.$refs.tree.setCurrentKey(node.data);
|
347
|
+
this.handleNodeClick(node.data, node, this);
|
348
|
+
node.childNodes = [];
|
349
|
+
this.loadNode(node, node.resolve);
|
350
|
+
} else {
|
351
|
+
cIndex = cIndex + 1;
|
352
|
+
loopDo();
|
353
|
+
}
|
354
|
+
} else {
|
355
|
+
if (node) {
|
356
|
+
this.loadNode(node, node.resolve, () => {
|
357
|
+
cIndex = cIndex - 1;
|
358
|
+
loopDo();
|
359
|
+
});
|
360
|
+
} else {
|
361
|
+
cIndex = cIndex + 1;
|
362
|
+
loopDo();
|
363
|
+
}
|
364
|
+
}
|
365
|
+
};
|
366
|
+
loopDo();
|
367
|
+
}
|
368
|
+
},
|
369
|
+
deleteCategory(category) {
|
370
|
+
if (!category && !this.currentCategoryId) {
|
371
|
+
this.$message({
|
372
|
+
message: this.$t2('请选择需要删除的文件夹', 'components.fileLibrary.deleteCategoryTip'),
|
373
|
+
type: "error",
|
374
|
+
showClose: true,
|
375
|
+
duration: 3000,
|
376
|
+
});
|
377
|
+
return;
|
378
|
+
}
|
379
|
+
this.$baseConfirm(this.$t2('您确定要删除文件夹吗?', 'components.fileLibrary.deleteCategoryConfirmTip')).then(() => {
|
380
|
+
let categoryId = category ? category.id : this.currentCategoryId;
|
381
|
+
this.$http({
|
382
|
+
method: "post",
|
383
|
+
url: this.current_prefix + "/file_obj/setDisable",
|
384
|
+
data: [categoryId],
|
385
|
+
isLoading: true,
|
386
|
+
success: (res) => {
|
387
|
+
this.$message({
|
388
|
+
message: res.content,
|
389
|
+
type: "success",
|
390
|
+
duration: 500,
|
391
|
+
});
|
392
|
+
if (!category) {
|
393
|
+
this.$refs.tree.remove(this.currentFileCategory);
|
394
|
+
let node = this.getTopNode();
|
395
|
+
this.$refs.tree.setCurrentKey(node.data);
|
396
|
+
this.handleNodeData(null);
|
397
|
+
} else {
|
398
|
+
//删除树节点
|
399
|
+
this.$refs.tree.remove(category);
|
400
|
+
}
|
401
|
+
this.searchEvent();
|
402
|
+
},
|
403
|
+
});
|
404
|
+
});
|
405
|
+
},
|
406
|
+
changeShowType() {
|
407
|
+
this.showType = this.showType == 1 ? 2 : 1;
|
408
|
+
this.searchEvent();
|
409
|
+
},
|
410
|
+
changeCategory(row, node) {
|
411
|
+
if (!node) {
|
412
|
+
node = this.$refs.tree.getNode(row.id + "");
|
413
|
+
this.$refs.tree.setCurrentKey(row);
|
414
|
+
}
|
415
|
+
if (row.id) {
|
416
|
+
node.expand();
|
417
|
+
}
|
418
|
+
this.formData = {};
|
419
|
+
this.advancedFormData = {};
|
420
|
+
this.handleNodeData(node);
|
421
|
+
this.searchEvent();
|
422
|
+
},
|
423
|
+
searchEvent() {
|
424
|
+
this.doSearch();
|
425
|
+
},
|
426
|
+
resetEvent() {
|
427
|
+
this.formData = {};
|
428
|
+
this.doSearch();
|
429
|
+
},
|
430
|
+
doSearch() {
|
431
|
+
this.checkList = [];
|
432
|
+
this.checkAll = false;
|
433
|
+
this.initAttchInfo();
|
434
|
+
/*if (this.showType == 1) {
|
435
|
+
this.initAttchInfo();
|
436
|
+
} else if (this.showType == 2) {
|
437
|
+
this.$refs['table-m1'].commitProxy('reload');
|
438
|
+
}*/
|
439
|
+
},
|
440
|
+
openPropertiesDialog(attachment) {
|
441
|
+
this.editAttachment = attachment;
|
442
|
+
this.showPropertiesDialog = true;
|
443
|
+
},
|
444
|
+
getShowUrl(attachment, field) {
|
445
|
+
if (!field) field = "medium";
|
446
|
+
return this.$commonFileUtil.getShowUrl(
|
447
|
+
attachment.domain +
|
448
|
+
(attachment[field] ? attachment[field] : attachment.url)
|
449
|
+
);
|
450
|
+
},
|
451
|
+
isVideo(fileSuffix) {
|
452
|
+
let videoTypes = ["webm", "ogg", "3gp", "mp4"];
|
453
|
+
return videoTypes.includes(fileSuffix);
|
454
|
+
},
|
455
|
+
hasPreview(attachment) {
|
456
|
+
let fileSuffix = this.$commonFileUtil.getFileSuffix(attachment.url);
|
457
|
+
return (
|
458
|
+
this.$commonFileUtil.isPictureFile(attachment.url) ||
|
459
|
+
this.$commonFileUtil.isPreviewFile(attachment.url)
|
460
|
+
);
|
461
|
+
},
|
462
|
+
openPreview(attachment) {
|
463
|
+
if (this.$commonFileUtil.isPictureFile(attachment.url)) {
|
464
|
+
this.imageDTOs = this.pictureDtoList;
|
465
|
+
this.chooseIndex = this.pictureDtoList.findIndex(
|
466
|
+
(row) => row.id == attachment.id
|
467
|
+
);
|
468
|
+
this.showViewer = true;
|
469
|
+
} else if (this.$commonFileUtil.isPreviewFile(attachment.url)) {
|
470
|
+
this.$openFilePreview(attachment);
|
471
|
+
}
|
472
|
+
},
|
473
|
+
filterNode(value, data) {
|
474
|
+
if (!value) return true;
|
475
|
+
return data.fileName.indexOf(value) !== -1;
|
476
|
+
},
|
477
|
+
initAttchInfo(page) {
|
478
|
+
let defaultPage = {
|
479
|
+
current: 1,
|
480
|
+
size: this.pageSize,
|
481
|
+
total: 0,
|
482
|
+
records: [],
|
483
|
+
};
|
484
|
+
page = page || {
|
485
|
+
current: 1,
|
486
|
+
size: this.pageSize,
|
487
|
+
};
|
488
|
+
|
489
|
+
let parent = this.currentCategoryId;
|
490
|
+
this.$http({
|
491
|
+
method: "post",
|
492
|
+
url: this.current_prefix + "/file_obj/listPage",
|
493
|
+
data: {
|
494
|
+
parent: parent,
|
495
|
+
objectForeignId: this.objectForeignId,
|
496
|
+
privateDir: this.isPrivate ? 1 : 0,
|
497
|
+
storeAreaCode: this.storeAreaCode,
|
498
|
+
...this.formData,
|
499
|
+
...this.advancedFormData,
|
500
|
+
...page,
|
501
|
+
},
|
502
|
+
isLoading: true,
|
503
|
+
success: (res) => {
|
504
|
+
let page = res.objx ? res.objx : defaultPage;
|
505
|
+
let objectForeignId = this.objectForeignId;
|
506
|
+
let checkBillDatas = this.checkBillDatas;
|
507
|
+
let done = (res) => {
|
508
|
+
this.page = res;
|
509
|
+
}
|
510
|
+
let preHandlePage = this.option.preHandlePage;
|
511
|
+
if (preHandlePage) {
|
512
|
+
preHandlePage({page, objectForeignId, checkBillDatas, done})
|
513
|
+
} else {
|
514
|
+
done(page);
|
515
|
+
}
|
516
|
+
}
|
517
|
+
});
|
518
|
+
},
|
519
|
+
addFile() {
|
520
|
+
let currentFileCategory = this.currentFileCategory;
|
521
|
+
if (!currentFileCategory || !currentFileCategory.id) {
|
522
|
+
this.$message({
|
523
|
+
message: this.$t2("文件夹[" + this.title + "]不允许上传", 'components.fileLibrary.uploadTip1', {title: this.title}),
|
524
|
+
type: "error",
|
525
|
+
showClose: true,
|
526
|
+
duration: 3000,
|
527
|
+
});
|
528
|
+
return;
|
529
|
+
}
|
530
|
+
if (this.isBillEnabled) {
|
531
|
+
if (!this.checkBillDatas.length) {
|
532
|
+
let billName = this.billConfig.name;
|
533
|
+
this.$message({
|
534
|
+
message: this.$t2("请选择" + billName, 'components.fileLibrary.uploadTip2', {billName: billName}),
|
535
|
+
type: "error",
|
536
|
+
showClose: true,
|
537
|
+
duration: 3000,
|
538
|
+
});
|
539
|
+
return;
|
540
|
+
}
|
541
|
+
}
|
542
|
+
this.$baseUpload.open({
|
543
|
+
limit: 200,
|
544
|
+
accept: "file",
|
545
|
+
size: 5 * 1024 * 1024 * 1024,
|
546
|
+
pickPrivateProfile: false,
|
547
|
+
callback: (rows) => {
|
548
|
+
this.confirmFileAttachment(rows);
|
549
|
+
},
|
550
|
+
});
|
551
|
+
},
|
552
|
+
confirmFileAttachment(rows) {
|
553
|
+
let parent = this.currentCategoryId;
|
554
|
+
let notes = [];
|
555
|
+
let billConfig = this.billConfig;
|
556
|
+
if (this.isBillEnabled && billConfig.fileNote) {
|
557
|
+
notes = this.checkBillDatas.map((row) => {
|
558
|
+
return billConfig.fileNote(row);
|
559
|
+
});
|
560
|
+
}
|
561
|
+
|
562
|
+
this.$http({
|
563
|
+
method: "post",
|
564
|
+
url: this.current_prefix + "/file_attach/save",
|
565
|
+
data: {
|
566
|
+
objectForeignId: this.objectForeignId,
|
567
|
+
parent: parent,
|
568
|
+
storeAreaCode: this.storeAreaCode,
|
569
|
+
fileObjDTOs: rows,
|
570
|
+
notes: notes,
|
571
|
+
},
|
572
|
+
isLoading: true,
|
573
|
+
success: (res) => {
|
574
|
+
this.$message({
|
575
|
+
message: res.content,
|
576
|
+
type: "success",
|
577
|
+
duration: 500,
|
578
|
+
});
|
579
|
+
/*let files = res.objx || [];
|
580
|
+
this.page.records.push(...files);
|
581
|
+
this.page.total = this.page.total + files.length*/
|
582
|
+
this.searchEvent();
|
583
|
+
},
|
584
|
+
});
|
585
|
+
return false;
|
586
|
+
},
|
587
|
+
deleteAttach(attachment) {
|
588
|
+
let data = [];
|
589
|
+
let categorys = [];
|
590
|
+
let checkRows = [];
|
591
|
+
if (attachment) {
|
592
|
+
if (attachment.status == 1) {
|
593
|
+
this.$message({
|
594
|
+
message: '归档文件不允许删除',
|
595
|
+
type: 'error',
|
596
|
+
showClose: true,
|
597
|
+
duration: 3000,
|
598
|
+
});
|
599
|
+
return;
|
600
|
+
}
|
601
|
+
data.push(attachment.id);
|
602
|
+
if (attachment.dirs) {
|
603
|
+
categorys.push(attachment);
|
604
|
+
}
|
605
|
+
checkRows = [attachment]
|
606
|
+
} else {
|
607
|
+
checkRows = this.getCheckRows();
|
608
|
+
if (checkRows.find(row => row.status == 1)) {
|
609
|
+
this.$message({
|
610
|
+
message: '归档文件不允许删除',
|
611
|
+
type: 'error',
|
612
|
+
showClose: true,
|
613
|
+
duration: 3000,
|
614
|
+
});
|
615
|
+
return;
|
616
|
+
}
|
617
|
+
data = checkRows.map((row) => row.id);
|
618
|
+
categorys = checkRows.filter((row) => row.dirs);
|
619
|
+
}
|
620
|
+
if (!data.length) {
|
621
|
+
this.$message({
|
622
|
+
message: this.$t2('请选择需要删除的文件', 'components.fileLibrary.deleteFileTip'),
|
623
|
+
type: "error",
|
624
|
+
showClose: true,
|
625
|
+
duration: 3000,
|
626
|
+
});
|
627
|
+
return;
|
628
|
+
}
|
629
|
+
|
630
|
+
let deleteDirAuth = this.fileObjAuth && this.fileObjAuth.deleteDirAuth ? 1 : 0;
|
631
|
+
let deleteAuth = this.fileObjAuth && this.fileObjAuth.deleteAuth ? 1 : 0;
|
632
|
+
for (let i = 0; i < checkRows.length; i++) {
|
633
|
+
let item = checkRows[i];
|
634
|
+
if (item.dirs && !deleteDirAuth) {
|
635
|
+
this.$message({
|
636
|
+
message: this.$t2('您没有删除文件夹的权限!', 'components.fileLibrary.deleteCategoryTip2'),
|
637
|
+
type: "error",
|
638
|
+
showClose: true,
|
639
|
+
duration: 3000,
|
640
|
+
});
|
641
|
+
return;
|
642
|
+
} else if (!item.dirs && !deleteAuth) {
|
643
|
+
this.$message({
|
644
|
+
message: this.$t2('您没有删除文件的权限!', 'components.fileLibrary.deleteFileTip2'),
|
645
|
+
type: "error",
|
646
|
+
showClose: true,
|
647
|
+
duration: 3000,
|
648
|
+
});
|
649
|
+
return;
|
650
|
+
}
|
651
|
+
}
|
652
|
+
|
653
|
+
// let data = [attachment.id];
|
654
|
+
this.$baseConfirm(this.$t2('您确定要删除吗?', 'components.fileLibrary.deleteConfirmTip')).then(() => {
|
655
|
+
this.$http({
|
656
|
+
method: "post",
|
657
|
+
url: this.current_prefix + "/file_obj/setDisable",
|
658
|
+
data: data,
|
659
|
+
isLoading: true,
|
660
|
+
success: (res) => {
|
661
|
+
this.$message({
|
662
|
+
message: res.content,
|
663
|
+
type: "success",
|
664
|
+
duration: 500,
|
665
|
+
});
|
666
|
+
|
667
|
+
let $tree = this.$refs.tree;
|
668
|
+
categorys.forEach((category) => {
|
669
|
+
$tree.remove(category);
|
670
|
+
});
|
671
|
+
this.searchEvent();
|
672
|
+
},
|
673
|
+
});
|
674
|
+
});
|
675
|
+
},
|
676
|
+
initTableList() {
|
677
|
+
let that = this;
|
678
|
+
let customColumns = this.option.customColumns ? this.option.customColumns() : [];
|
679
|
+
let tableOption = {
|
680
|
+
vue: this,
|
681
|
+
tableRef: "table-m1",
|
682
|
+
tableName: "user_fileLibrary_list-m1",
|
683
|
+
config: {
|
684
|
+
height: "auto",
|
685
|
+
pagerConfig: {
|
686
|
+
autoHidden: false,
|
687
|
+
enabled: true,
|
688
|
+
},
|
689
|
+
},
|
690
|
+
columns: [
|
691
|
+
{type: "checkbox", width: 48, resizable: false, fixed: "left"},
|
692
|
+
{
|
693
|
+
title: this.$t2('文件名称', 'components.fileLibrary.fileName'),
|
694
|
+
field: "fileName",
|
695
|
+
width: 250,
|
696
|
+
fixed: "left",
|
697
|
+
slots: {
|
698
|
+
default: ({row, $rowIndex}) => {
|
699
|
+
let h = this.$createElement;
|
700
|
+
if (!row.dirs) {
|
701
|
+
let showUrl = that.getShowUrl(row, "thumbnail");
|
702
|
+
return [
|
703
|
+
h(
|
704
|
+
"a",
|
705
|
+
{
|
706
|
+
staticClass: "a-link img",
|
707
|
+
on: {
|
708
|
+
click: (event) => {
|
709
|
+
event.stopPropagation();
|
710
|
+
that.openPreview(row);
|
711
|
+
},
|
712
|
+
},
|
713
|
+
},
|
714
|
+
[
|
715
|
+
h(
|
716
|
+
"el-tooltip",
|
717
|
+
{
|
718
|
+
props: {
|
719
|
+
enterable: false,
|
720
|
+
effect: "dark",
|
721
|
+
content: this.$t2('预览', 'components.fileLibrary.preview'),
|
722
|
+
placement: "top",
|
723
|
+
"popper-class": "tooltip-skin",
|
724
|
+
},
|
725
|
+
},
|
726
|
+
[
|
727
|
+
h("el-image", {
|
728
|
+
props: {
|
729
|
+
src: showUrl,
|
730
|
+
},
|
731
|
+
}),
|
732
|
+
]
|
733
|
+
),
|
734
|
+
]
|
735
|
+
),
|
736
|
+
h("span", row.fileName),
|
737
|
+
];
|
738
|
+
} else {
|
739
|
+
return [
|
740
|
+
h(
|
741
|
+
"a",
|
742
|
+
{
|
743
|
+
staticClass: "a-link img",
|
744
|
+
on: {
|
745
|
+
click: (event) => {
|
746
|
+
event.stopPropagation();
|
747
|
+
that.changeCategory(row);
|
748
|
+
},
|
749
|
+
},
|
750
|
+
},
|
751
|
+
[
|
752
|
+
h(
|
753
|
+
"div",
|
754
|
+
{
|
755
|
+
staticClass: "img",
|
756
|
+
},
|
757
|
+
[
|
758
|
+
h("svg-icon", {
|
759
|
+
props: {"icon-class": "ico-wenjianjia"},
|
760
|
+
}),
|
761
|
+
h("span", row.fileName),
|
762
|
+
]
|
763
|
+
),
|
764
|
+
]
|
765
|
+
),
|
766
|
+
];
|
767
|
+
}
|
768
|
+
},
|
769
|
+
},
|
770
|
+
},
|
771
|
+
{
|
772
|
+
title: this.$t2('文件大小', 'components.fileLibrary.fileSize'),
|
773
|
+
field: "fileSize",
|
774
|
+
width: 150,
|
775
|
+
slots: {
|
776
|
+
default: ({row, $rowIndex}) => {
|
777
|
+
if (!row.dirs) {
|
778
|
+
return this.formatFileSize(row.fileSize);
|
779
|
+
}
|
780
|
+
},
|
781
|
+
},
|
782
|
+
},
|
783
|
+
{
|
784
|
+
title: this.$t2('版本号', 'components.fileLibrary.fileRev'),
|
785
|
+
field: "rev",
|
786
|
+
width: 150,
|
787
|
+
slots: {
|
788
|
+
default: ({row, $rowIndex}) => {
|
789
|
+
if (!row.dirs) {
|
790
|
+
return row.rev;
|
791
|
+
}
|
792
|
+
}
|
793
|
+
}
|
794
|
+
},
|
795
|
+
{title: this.$t2('分辨率', 'components.fileLibrary.widthHeight'), field: "widthHeight", width: 150},
|
796
|
+
{title: this.$t2('所属对象描述', 'components.fileLibrary.note'), field: "note", width: 250},
|
797
|
+
{
|
798
|
+
title: '状态',
|
799
|
+
field: 'status',
|
800
|
+
width: 150,
|
801
|
+
slots: {
|
802
|
+
default: ({row, $rowIndex}) => {
|
803
|
+
if (!row.dirs) {
|
804
|
+
return row.status == 1 ? '已归档' : '未归档';
|
805
|
+
}
|
806
|
+
}
|
807
|
+
}
|
808
|
+
},
|
809
|
+
{
|
810
|
+
title: this.$t2('文件编码', 'components.fileLibrary.fileSn'),
|
811
|
+
field: "fileSn",
|
812
|
+
width: 150
|
813
|
+
},
|
814
|
+
...customColumns,
|
815
|
+
{title: this.$t2('创建人', 'components.fileLibrary.createBy'), field: "createBy", width: 150},
|
816
|
+
{
|
817
|
+
field: "createDate",
|
818
|
+
title: this.$t2('创建时间', 'components.fileLibrary.createDate'),
|
819
|
+
width: 150,
|
820
|
+
},
|
821
|
+
{
|
822
|
+
width: this.isEdit ? 280 : 47,
|
823
|
+
fixed: "right",
|
824
|
+
title: "",
|
825
|
+
sortable: false,
|
826
|
+
slots: {
|
827
|
+
default: "operate"
|
828
|
+
},
|
829
|
+
},
|
830
|
+
],
|
831
|
+
callback(a, b) {
|
832
|
+
},
|
833
|
+
};
|
834
|
+
this.$vxeTableUtil.initVxeTable(tableOption).then((opts) => {
|
835
|
+
this.vxeOption = opts;
|
836
|
+
});
|
837
|
+
},
|
838
|
+
getCustomButtonNodes(attachment) {
|
839
|
+
let customFileButtons = this.customFileButtons;
|
840
|
+
let nodes = [];
|
841
|
+
customFileButtons.forEach((fileButton, index) => {
|
842
|
+
if (fileButton.dirs === null || fileButton.dirs === undefined || (attachment.dirs === fileButton.dirs)) {
|
843
|
+
if (this.customFileButtonVisable(fileButton, attachment)) {
|
844
|
+
nodes.push(this.getBtnVnode({
|
845
|
+
class: fileButton.icon,
|
846
|
+
title: fileButton.label,
|
847
|
+
click: (event) => {
|
848
|
+
that.customFileButtonEvent(fileButton, attachment);
|
849
|
+
},
|
850
|
+
}))
|
851
|
+
}
|
852
|
+
}
|
853
|
+
});
|
854
|
+
return nodes;
|
855
|
+
},
|
856
|
+
getBtnVnode(opt) {
|
857
|
+
let h = this.$createElement;
|
858
|
+
let show = opt.show === false ? false : true;
|
859
|
+
if (show) {
|
860
|
+
return h(
|
861
|
+
"a",
|
862
|
+
{
|
863
|
+
staticClass: "a-link",
|
864
|
+
on: {
|
865
|
+
click: (event) => {
|
866
|
+
opt.click && opt.click(event);
|
867
|
+
},
|
868
|
+
},
|
869
|
+
},
|
870
|
+
[
|
871
|
+
h(
|
872
|
+
"el-tooltip",
|
873
|
+
{
|
874
|
+
props: {
|
875
|
+
enterable: false,
|
876
|
+
effect: "dark",
|
877
|
+
content: opt.title,
|
878
|
+
placement: "top",
|
879
|
+
"popper-class": "tooltip-skin",
|
880
|
+
},
|
881
|
+
},
|
882
|
+
[
|
883
|
+
h("i", {
|
884
|
+
staticClass: opt.class,
|
885
|
+
}),
|
886
|
+
]
|
887
|
+
),
|
888
|
+
]
|
889
|
+
);
|
890
|
+
}
|
891
|
+
},
|
892
|
+
changePageNew({type, currentPage, pageSize, $event}) {
|
893
|
+
this.checkList = [];
|
894
|
+
this.checkAll = false;
|
895
|
+
this.initAttchInfo({
|
896
|
+
current: currentPage,
|
897
|
+
size: pageSize,
|
898
|
+
});
|
899
|
+
},
|
900
|
+
changePage(currentPage, pageSize) {
|
901
|
+
this.initAttchInfo({
|
902
|
+
current: currentPage,
|
903
|
+
size: pageSize,
|
904
|
+
});
|
905
|
+
},
|
906
|
+
handleNodeClick(data, node, v) {
|
907
|
+
if (!data.moreBtn) {
|
908
|
+
this.changeCategory(data, node);
|
909
|
+
} else {
|
910
|
+
this.showModeCategory(data, node, v);
|
911
|
+
}
|
912
|
+
},
|
913
|
+
doNav(t) {
|
914
|
+
let node = this.$refs.tree.getNode(t.data.id + "");
|
915
|
+
this.$refs.tree.setCurrentKey(node.data);
|
916
|
+
this.handleNodeClick(node.data, node, this);
|
917
|
+
},
|
918
|
+
showModeCategory(data, node, v) {
|
919
|
+
let param = {
|
920
|
+
parent: data.parent,
|
921
|
+
dirs: true,
|
922
|
+
storeAreaCode: this.storeAreaCode,
|
923
|
+
size: this.categoryPageSize,
|
924
|
+
current: data.next,
|
925
|
+
};
|
926
|
+
if (this.isPrivate) {
|
927
|
+
param.objectForeignId = this.objectForeignId;
|
928
|
+
param.privateDir = 1;
|
929
|
+
}
|
930
|
+
this.$http({
|
931
|
+
url: this.current_prefix + "/file_obj/listPage",
|
932
|
+
method: "post",
|
933
|
+
data: param,
|
934
|
+
isLoading: true,
|
935
|
+
success: (res) => {
|
936
|
+
let page = res.objx;
|
937
|
+
let rows = page && page.records ? page.records : [];
|
938
|
+
this.$refs.tree.remove(node);
|
939
|
+
if (page.pages > page.current) {
|
940
|
+
rows.push({
|
941
|
+
parent: param.parent,
|
942
|
+
fileName: this.$t2('更多', 'components.fileLibrary.more'),
|
943
|
+
moreBtn: true,
|
944
|
+
leaf: true,
|
945
|
+
pages: page.pages,
|
946
|
+
current: page.current,
|
947
|
+
next: page.current + 1,
|
948
|
+
});
|
949
|
+
}
|
950
|
+
rows.forEach((value) => {
|
951
|
+
value.leaf = !value.hasChild;
|
952
|
+
});
|
953
|
+
rows.forEach((row) => {
|
954
|
+
this.$refs.tree.append(row, param.parent);
|
955
|
+
});
|
956
|
+
},
|
957
|
+
});
|
958
|
+
},
|
959
|
+
// 异步树叶子节点懒加载逻辑
|
960
|
+
loadNode(node, resolve, callback) {
|
961
|
+
let id = node && node.data && node.data.id ? node.data.id || "" : "";
|
962
|
+
node.resolve = resolve;
|
963
|
+
let url, param;
|
964
|
+
url = this.current_prefix + "/file_obj/listPage";
|
965
|
+
if (!id) {
|
966
|
+
param = {
|
967
|
+
dirs: true,
|
968
|
+
storeAreaCode: this.storeAreaCode,
|
969
|
+
size: this.categoryPageSize,
|
970
|
+
};
|
971
|
+
} else {
|
972
|
+
param = {
|
973
|
+
dirs: true,
|
974
|
+
parent: id,
|
975
|
+
storeAreaCode: this.storeAreaCode,
|
976
|
+
size: this.categoryPageSize,
|
977
|
+
};
|
978
|
+
}
|
979
|
+
if (this.isPrivate) {
|
980
|
+
param.objectForeignId = this.objectForeignId;
|
981
|
+
param.privateDir = 1;
|
982
|
+
}
|
983
|
+
this.$http({
|
984
|
+
url: url,
|
985
|
+
method: "post",
|
986
|
+
data: param,
|
987
|
+
success: (res) => {
|
988
|
+
let page = res.objx;
|
989
|
+
let rows = page && page.records ? page.records : [];
|
990
|
+
if (page.pages > page.current) {
|
991
|
+
rows.push({
|
992
|
+
parent: param.parent,
|
993
|
+
fileName: this.$t2('更多', 'components.fileLibrary.more'),
|
994
|
+
moreBtn: true,
|
995
|
+
leaf: true,
|
996
|
+
pages: page.pages,
|
997
|
+
current: page.current,
|
998
|
+
next: page.current + 1,
|
999
|
+
});
|
1000
|
+
}
|
1001
|
+
|
1002
|
+
// moreBtn
|
1003
|
+
rows.forEach((value) => {
|
1004
|
+
value.leaf = !value.hasChild;
|
1005
|
+
});
|
1006
|
+
if (node.level === 0) {
|
1007
|
+
setTimeout(() => {
|
1008
|
+
this.$refs.tree.setCurrentKey(node.childNodes[0].data);
|
1009
|
+
this.handleNodeData(node.childNodes[0]);
|
1010
|
+
node.childNodes[0].expand();
|
1011
|
+
}, 200);
|
1012
|
+
this.$nextTick(() => {
|
1013
|
+
callback && callback();
|
1014
|
+
});
|
1015
|
+
this.searchEvent();
|
1016
|
+
} else {
|
1017
|
+
this.$nextTick(() => {
|
1018
|
+
callback && callback();
|
1019
|
+
});
|
1020
|
+
}
|
1021
|
+
let items = [];
|
1022
|
+
if (node.level === 0) {
|
1023
|
+
let item = {
|
1024
|
+
parent: null,
|
1025
|
+
fileName: this.title,
|
1026
|
+
leaf: rows.length == 0,
|
1027
|
+
allFileBtn: true,
|
1028
|
+
id: 0,
|
1029
|
+
children: rows,
|
1030
|
+
};
|
1031
|
+
items.push(item);
|
1032
|
+
} else {
|
1033
|
+
items = rows;
|
1034
|
+
}
|
1035
|
+
|
1036
|
+
resolve(items);
|
1037
|
+
},
|
1038
|
+
});
|
1039
|
+
},
|
1040
|
+
addFileCategory(flag) {
|
1041
|
+
let currentFileCategory = this.currentFileCategory;
|
1042
|
+
let editCategory = {
|
1043
|
+
storeAreaCode: this.storeAreaCode,
|
1044
|
+
enabled: true,
|
1045
|
+
dirs: true,
|
1046
|
+
leaf: true,
|
1047
|
+
// children:[]
|
1048
|
+
};
|
1049
|
+
if (currentFileCategory) {
|
1050
|
+
editCategory.parent = currentFileCategory.id;
|
1051
|
+
this.rootCategory = false;
|
1052
|
+
} else {
|
1053
|
+
this.rootCategory = true;
|
1054
|
+
}
|
1055
|
+
this.editCategory = editCategory;
|
1056
|
+
this.showEditCategoryDialog = true;
|
1057
|
+
},
|
1058
|
+
editFileCategory(category) {
|
1059
|
+
let currentFileCategory = category || this.currentFileCategory;
|
1060
|
+
if (!currentFileCategory) {
|
1061
|
+
this.$message({
|
1062
|
+
message: this.$t2('请选择文件夹', 'components.fileLibrary.editCategoryTip'),
|
1063
|
+
type: "error",
|
1064
|
+
showClose: true,
|
1065
|
+
duration: 3000,
|
1066
|
+
});
|
1067
|
+
return;
|
1068
|
+
}
|
1069
|
+
this.editCategory = Object.assign({}, currentFileCategory);
|
1070
|
+
this.showEditCategoryDialog = true;
|
1071
|
+
},
|
1072
|
+
confirmEditCategoryDialog() {
|
1073
|
+
this.$refs.editCategoryForm.$baseValidate((valid) => {
|
1074
|
+
if (valid) {
|
1075
|
+
this.$baseConfirm(this.$t2('您确定要保存吗?', 'components.fileLibrary.saveConfirmTip')).then(() => {
|
1076
|
+
var url =
|
1077
|
+
this.current_prefix +
|
1078
|
+
(this.editCategory.id ? "/file_obj/update" : "/file_obj/save");
|
1079
|
+
let formData = Object.assign({}, this.editCategory);
|
1080
|
+
if (!this.editCategory.id) {
|
1081
|
+
if (!this.rootCategory) {
|
1082
|
+
formData.parent = this.currentCategoryId;
|
1083
|
+
}
|
1084
|
+
}
|
1085
|
+
|
1086
|
+
if (this.isPrivate && !this.editCategory.id) {
|
1087
|
+
//个人文档,新增文件夹时,需要传当前用户的Id
|
1088
|
+
formData.objectForeignId = this.objectForeignId[0];
|
1089
|
+
}
|
1090
|
+
this.$http({
|
1091
|
+
url: url,
|
1092
|
+
method: `post`,
|
1093
|
+
data: formData,
|
1094
|
+
isLoading: true,
|
1095
|
+
success: (res) => {
|
1096
|
+
this.showEditCategoryDialog = false;
|
1097
|
+
this.$message({
|
1098
|
+
message: res.content,
|
1099
|
+
type: "success",
|
1100
|
+
duration: 500,
|
1101
|
+
onClose: (t) => {
|
1102
|
+
},
|
1103
|
+
});
|
1104
|
+
let nodeData = res.objx;
|
1105
|
+
nodeData.leaf = !nodeData.hasChild;
|
1106
|
+
if (!this.editCategory.id) {
|
1107
|
+
//新增
|
1108
|
+
let parent = nodeData.parent ? nodeData.parent + "" : "";
|
1109
|
+
if (parent) {
|
1110
|
+
let parentNode = this.$refs.tree.getNode(parent);
|
1111
|
+
this.$refs.tree.append(nodeData, parent);
|
1112
|
+
this.$nextTick(() => {
|
1113
|
+
parentNode.expand();
|
1114
|
+
});
|
1115
|
+
} else {
|
1116
|
+
let parentNode = this.getTopNode();
|
1117
|
+
parentNode.expanded = false;
|
1118
|
+
parentNode.loaded = false;
|
1119
|
+
parentNode.expand();
|
1120
|
+
}
|
1121
|
+
//文件区域增加目录
|
1122
|
+
/*let index = this.page.records.findIndex(item => !item.dirs)
|
1123
|
+
if (index > -1) {
|
1124
|
+
this.page.records.splice(index, 0, nodeData);
|
1125
|
+
} else {
|
1126
|
+
this.page.records.push(nodeData);
|
1127
|
+
}*/
|
1128
|
+
this.searchEvent();
|
1129
|
+
} else {
|
1130
|
+
//编辑
|
1131
|
+
let tree = this.$refs.tree;
|
1132
|
+
let node = tree.getNode(formData.id + "");
|
1133
|
+
node.data = res.objx;
|
1134
|
+
|
1135
|
+
//文件区域修改文件夹信息
|
1136
|
+
let cItem = this.page.records.find(
|
1137
|
+
(item) => item.id == formData.id
|
1138
|
+
);
|
1139
|
+
if (cItem) {
|
1140
|
+
Object.assign(cItem, res.objx);
|
1141
|
+
}
|
1142
|
+
}
|
1143
|
+
},
|
1144
|
+
});
|
1145
|
+
});
|
1146
|
+
}
|
1147
|
+
});
|
1148
|
+
},
|
1149
|
+
handleNodeData(node) {
|
1150
|
+
let treeNodeArr = [];
|
1151
|
+
let tree = this.$refs.tree;
|
1152
|
+
// let firstNode = tree.root.childNodes[0];
|
1153
|
+
if (node) {
|
1154
|
+
treeNodeArr.push(node);
|
1155
|
+
let end = false;
|
1156
|
+
let pNode = node;
|
1157
|
+
while (!end) {
|
1158
|
+
pNode = pNode.parent;
|
1159
|
+
if (pNode && pNode.data) {
|
1160
|
+
let pData = pNode.data;
|
1161
|
+
treeNodeArr.push(pNode);
|
1162
|
+
end = pNode.level <= 1;
|
1163
|
+
} else {
|
1164
|
+
end = true;
|
1165
|
+
}
|
1166
|
+
}
|
1167
|
+
treeNodeArr = treeNodeArr.reverse();
|
1168
|
+
}
|
1169
|
+
/*treeNodeArr.unshift(firstNode)
|
1170
|
+
if (!node) {
|
1171
|
+
node = firstNode;
|
1172
|
+
}*/
|
1173
|
+
this.currentFileCategory = node ? node.data : null;
|
1174
|
+
this.currentNode = node;
|
1175
|
+
this.$set(this, "treeNodeArr", treeNodeArr);
|
1176
|
+
this.getFileObjAuth();
|
1177
|
+
},
|
1178
|
+
getFileObjAuth() {
|
1179
|
+
this.$http({
|
1180
|
+
url: this.current_prefix + `/file_obj_auth/getFileObjAuth`,
|
1181
|
+
method: `post`,
|
1182
|
+
data: {
|
1183
|
+
fileObjId: this.currentCategoryId,
|
1184
|
+
storeAreaCode: this.storeAreaCode,
|
1185
|
+
},
|
1186
|
+
isLoading: true,
|
1187
|
+
modalStrictly: true,
|
1188
|
+
success: (res) => {
|
1189
|
+
this.fileObjAuth = res.objx || {};
|
1190
|
+
},
|
1191
|
+
});
|
1192
|
+
},
|
1193
|
+
mulDownload() {
|
1194
|
+
let checkRows = this.getCheckRows();
|
1195
|
+
if (!checkRows.length) {
|
1196
|
+
this.$message({
|
1197
|
+
message: this.$t2('请选择需要下载的文件', 'components.fileLibrary.downloadTip'),
|
1198
|
+
type: "error",
|
1199
|
+
showClose: true,
|
1200
|
+
duration: 3000,
|
1201
|
+
});
|
1202
|
+
return;
|
1203
|
+
}
|
1204
|
+
checkRows.forEach((row) => {
|
1205
|
+
this.$commonFileUtil.downloadFile(row.domain + row.url, row.fileName);
|
1206
|
+
// this.downLoadFile(row);
|
1207
|
+
});
|
1208
|
+
},
|
1209
|
+
mulDownload2() {
|
1210
|
+
let checkRows = this.getCheckRows();
|
1211
|
+
if (!checkRows.length) {
|
1212
|
+
this.$message({
|
1213
|
+
message: this.$t2('请选择需要下载的文件', 'components.fileLibrary.downloadTip'),
|
1214
|
+
type: "error",
|
1215
|
+
showClose: true,
|
1216
|
+
duration: 3000,
|
1217
|
+
});
|
1218
|
+
return;
|
1219
|
+
}
|
1220
|
+
this.getDownloadDomian((domain) => {
|
1221
|
+
this.getFileWhole(checkRows, (fileWhole) => {
|
1222
|
+
// let fileName = this.$moment().format('YYYYMMDDHHmmss');
|
1223
|
+
this.$http({
|
1224
|
+
method: "post",
|
1225
|
+
url: domain + "/docfile/download",
|
1226
|
+
/*data: {
|
1227
|
+
"fileName": fileName,
|
1228
|
+
"children": checkRows,
|
1229
|
+
"dirs": true
|
1230
|
+
},*/
|
1231
|
+
data: fileWhole,
|
1232
|
+
isLoading: true,
|
1233
|
+
success: (res) => {
|
1234
|
+
// this.downLoadFile2(res.objx.url)
|
1235
|
+
window.open(res.objx.url);
|
1236
|
+
},
|
1237
|
+
});
|
1238
|
+
});
|
1239
|
+
});
|
1240
|
+
/*checkRows.forEach(row => {
|
1241
|
+
this.$commonFileUtil.downloadFile(row.domain + row.url, row.fileName);
|
1242
|
+
})*/
|
1243
|
+
},
|
1244
|
+
getDownloadDomian(callback) {
|
1245
|
+
this.$http({
|
1246
|
+
method: "post",
|
1247
|
+
url: USER_PREFIX + "/common/fileDownloadUrl",
|
1248
|
+
data: {},
|
1249
|
+
isLoading: true,
|
1250
|
+
success: (res) => {
|
1251
|
+
callback(res.objx);
|
1252
|
+
},
|
1253
|
+
});
|
1254
|
+
},
|
1255
|
+
getFileWhole(rows, callback) {
|
1256
|
+
let ids = rows.map((row) => row.id);
|
1257
|
+
let data = {
|
1258
|
+
ids: ids,
|
1259
|
+
objectForeignId: this.objectForeignId
|
1260
|
+
};
|
1261
|
+
if (this.option.foreignDirs === true) {
|
1262
|
+
data.foreignDirs = true;
|
1263
|
+
}
|
1264
|
+
this.$http({
|
1265
|
+
method: "post",
|
1266
|
+
url: this.current_prefix + "/file_obj/getFileWhole",
|
1267
|
+
data: data,
|
1268
|
+
isLoading: true,
|
1269
|
+
success: (res) => {
|
1270
|
+
callback(res.objx);
|
1271
|
+
},
|
1272
|
+
});
|
1273
|
+
},
|
1274
|
+
downLoadFile2(fileUrl) {
|
1275
|
+
let that = this;
|
1276
|
+
that.$http({
|
1277
|
+
method: "get",
|
1278
|
+
url: fileUrl,
|
1279
|
+
data: {},
|
1280
|
+
/*headers: {
|
1281
|
+
'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8'
|
1282
|
+
},*/
|
1283
|
+
responseType: "blob",
|
1284
|
+
resultType: "other",
|
1285
|
+
isLoading: true,
|
1286
|
+
callback: (res, response) => {
|
1287
|
+
let fileName = fileUrl.slice(fileUrl.lastIndexOf("/") + 1);
|
1288
|
+
const blobUrl = window.URL.createObjectURL(res);
|
1289
|
+
const a = document.createElement("a");
|
1290
|
+
a.download = fileName;
|
1291
|
+
a.href = blobUrl;
|
1292
|
+
a.click();
|
1293
|
+
},
|
1294
|
+
});
|
1295
|
+
},
|
1296
|
+
downLoadFile(row) {
|
1297
|
+
let that = this;
|
1298
|
+
let fileUrl = row.domain + row.url;
|
1299
|
+
that.$http({
|
1300
|
+
method: "get",
|
1301
|
+
url: fileUrl,
|
1302
|
+
data: {},
|
1303
|
+
/*headers: {
|
1304
|
+
'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8'
|
1305
|
+
},*/
|
1306
|
+
responseType: "blob",
|
1307
|
+
resultType: "other",
|
1308
|
+
isLoading: true,
|
1309
|
+
callback: (res, response) => {
|
1310
|
+
const blobUrl = window.URL.createObjectURL(res);
|
1311
|
+
const a = document.createElement("a");
|
1312
|
+
a.download = row.fileName;
|
1313
|
+
a.href = blobUrl;
|
1314
|
+
a.click();
|
1315
|
+
},
|
1316
|
+
});
|
1317
|
+
},
|
1318
|
+
replaceFile(row, $rowIndex, items) {
|
1319
|
+
this.$baseUpload.open({
|
1320
|
+
limit: 1,
|
1321
|
+
accept: "file",
|
1322
|
+
size: 5 * 1024 * 1024 * 1024,
|
1323
|
+
pickPrivateProfile: false,
|
1324
|
+
callback: (rows) => {
|
1325
|
+
if (rows.length) {
|
1326
|
+
this.confirmReplaceFileAttachment(rows[0], row, (res) => {
|
1327
|
+
items.splice($rowIndex, 1, res.objx);
|
1328
|
+
});
|
1329
|
+
}
|
1330
|
+
},
|
1331
|
+
});
|
1332
|
+
},
|
1333
|
+
confirmReplaceFileAttachment(newFile, oldFile, callback) {
|
1334
|
+
newFile.id = oldFile.id;
|
1335
|
+
newFile.attachCode = oldFile.attachCode;
|
1336
|
+
newFile.dirs = false;
|
1337
|
+
this.$http({
|
1338
|
+
method: "post",
|
1339
|
+
url: this.current_prefix + "/file_attach/replace",
|
1340
|
+
data: newFile,
|
1341
|
+
isLoading: true,
|
1342
|
+
success: (res) => {
|
1343
|
+
this.$message({
|
1344
|
+
message: res.content,
|
1345
|
+
type: "success",
|
1346
|
+
duration: 500,
|
1347
|
+
});
|
1348
|
+
callback(res);
|
1349
|
+
},
|
1350
|
+
});
|
1351
|
+
return false;
|
1352
|
+
},
|
1353
|
+
openFileHistoryDialog(row) {
|
1354
|
+
this.operateFileHistory = row;
|
1355
|
+
this.showFileHistoryDialog = true;
|
1356
|
+
},
|
1357
|
+
confirmFileHistoryDialog(row) {
|
1358
|
+
this.searchEvent();
|
1359
|
+
},
|
1360
|
+
checkChange() {
|
1361
|
+
let rows = this.getRows();
|
1362
|
+
let checkRows = this.getCheckRows();
|
1363
|
+
this.checkAll = rows.length && rows.length == checkRows.length;
|
1364
|
+
},
|
1365
|
+
changeCheckAll(val) {
|
1366
|
+
let rows = this.getRows();
|
1367
|
+
this.checkList = val ? rows.map((row) => row.id) : [];
|
1368
|
+
if (this.showType == 2) {
|
1369
|
+
this.$refs["table-m1"].setAllCheckboxRow(val);
|
1370
|
+
}
|
1371
|
+
},
|
1372
|
+
tableCheckChange() {
|
1373
|
+
let checkRows = this.getCheckRows();
|
1374
|
+
this.checkList = checkRows.map((row) => row.id);
|
1375
|
+
this.checkChange();
|
1376
|
+
},
|
1377
|
+
tableCheckAll(val) {
|
1378
|
+
let checkRows = this.getCheckRows();
|
1379
|
+
this.checkList = checkRows.map((row) => row.id);
|
1380
|
+
this.checkChange();
|
1381
|
+
},
|
1382
|
+
confirmRecycleBinDialog() {
|
1383
|
+
let categoryId = 0;
|
1384
|
+
let node = this.$refs.tree.getNode(categoryId + "");
|
1385
|
+
if (!categoryId) {
|
1386
|
+
node = node.parent;
|
1387
|
+
}
|
1388
|
+
node.childNodes = [];
|
1389
|
+
this.loadNode(node, node.resolve);
|
1390
|
+
if (categoryId) {
|
1391
|
+
this.searchEvent();
|
1392
|
+
}
|
1393
|
+
},
|
1394
|
+
initTitle() {
|
1395
|
+
this.$http({
|
1396
|
+
method: "post",
|
1397
|
+
url: USER_PREFIX + "/file_store_area/getByCode",
|
1398
|
+
data: {
|
1399
|
+
stringOne: this.storeAreaCode,
|
1400
|
+
},
|
1401
|
+
isLoading: true,
|
1402
|
+
success: (res) => {
|
1403
|
+
let fileStoreArea = res.objx;
|
1404
|
+
if (fileStoreArea) {
|
1405
|
+
this.title = fileStoreArea.storeAreaName;
|
1406
|
+
this.$nextTick(() => {
|
1407
|
+
treeScollx({target: this, type: "default"});
|
1408
|
+
this.treeFlag = true;
|
1409
|
+
});
|
1410
|
+
} else {
|
1411
|
+
this.$baseAlert(this.$t2('文档工作区未维护', 'components.fileLibrary.fileStoreAreaTip'));
|
1412
|
+
}
|
1413
|
+
},
|
1414
|
+
});
|
1415
|
+
},
|
1416
|
+
formatFileSize(fileSize) {
|
1417
|
+
fileSize = fileSize || 0;
|
1418
|
+
if (fileSize < 1024) {
|
1419
|
+
return fileSize + "B";
|
1420
|
+
} else if (fileSize < 1024 * 1024) {
|
1421
|
+
var temp = fileSize / 1024;
|
1422
|
+
temp = temp.toFixed(2);
|
1423
|
+
return temp + "KB";
|
1424
|
+
} else if (fileSize < 1024 * 1024 * 1024) {
|
1425
|
+
var temp = fileSize / (1024 * 1024);
|
1426
|
+
temp = temp.toFixed(2);
|
1427
|
+
return temp + "MB";
|
1428
|
+
} else {
|
1429
|
+
var temp = fileSize / (1024 * 1024 * 1024);
|
1430
|
+
temp = temp.toFixed(2);
|
1431
|
+
return temp + "GB";
|
1432
|
+
}
|
1433
|
+
},
|
1434
|
+
deleteBillData(index) {
|
1435
|
+
this.checkBillDatas.splice(index, 1);
|
1436
|
+
this.searchEvent();
|
1437
|
+
},
|
1438
|
+
getBillLabel(item) {
|
1439
|
+
let billConfig = this.billConfig;
|
1440
|
+
let dataProps = billConfig.dataProps;
|
1441
|
+
if (dataProps.content) {
|
1442
|
+
return dataProps.content(item);
|
1443
|
+
} else {
|
1444
|
+
return item[dataProps.label];
|
1445
|
+
}
|
1446
|
+
},
|
1447
|
+
openBillDialog() {
|
1448
|
+
this.showBillDialog = true;
|
1449
|
+
},
|
1450
|
+
confirmBillDialog(rows) {
|
1451
|
+
// this.checkBillDatas = rows;
|
1452
|
+
|
1453
|
+
let billRowField = this.billRowField;
|
1454
|
+
let checkBillDatas = this.checkBillDatas;
|
1455
|
+
let fieldDatas = checkBillDatas.map((row) => {
|
1456
|
+
return row[billRowField];
|
1457
|
+
});
|
1458
|
+
let newRows = rows.filter((row) => {
|
1459
|
+
return !fieldDatas.includes(row[billRowField]);
|
1460
|
+
});
|
1461
|
+
this.checkBillDatas.push(...newRows);
|
1462
|
+
this.searchEvent();
|
1463
|
+
},
|
1464
|
+
clearBill() {
|
1465
|
+
this.checkBillDatas = [];
|
1466
|
+
this.searchEvent();
|
1467
|
+
},
|
1468
|
+
//个人文档
|
1469
|
+
async getCurrentUser() {
|
1470
|
+
return this.$http({
|
1471
|
+
url: USER_PREFIX + "/user/currentUser",
|
1472
|
+
method: "post",
|
1473
|
+
success: (res) => {
|
1474
|
+
this.currentUser = res.objx;
|
1475
|
+
this.confirmUser([this.currentUser]);
|
1476
|
+
this.getIsDocAdmin();
|
1477
|
+
},
|
1478
|
+
});
|
1479
|
+
},
|
1480
|
+
confirmUser(rows) {
|
1481
|
+
if (rows) {
|
1482
|
+
let row = rows[0];
|
1483
|
+
this.userInfo.id = row.id;
|
1484
|
+
this.userInfo.nickName = row.nickName;
|
1485
|
+
this.reflushTree();
|
1486
|
+
}
|
1487
|
+
},
|
1488
|
+
setCurrentUser(flag) {
|
1489
|
+
this.confirmUser([this.currentUser]);
|
1490
|
+
this.reflushTree();
|
1491
|
+
},
|
1492
|
+
reflushTree() {
|
1493
|
+
this.treeFlag = false;
|
1494
|
+
setTimeout(() => {
|
1495
|
+
this.treeFlag = true;
|
1496
|
+
}, 200);
|
1497
|
+
},
|
1498
|
+
getIsDocAdmin() {
|
1499
|
+
return this.$http({
|
1500
|
+
url: USER_PREFIX + "/file_obj/isDocAdmin",
|
1501
|
+
method: "post",
|
1502
|
+
success: (res) => {
|
1503
|
+
this.isDocAdmin = res.objx || false;
|
1504
|
+
},
|
1505
|
+
});
|
1506
|
+
},
|
1507
|
+
batchReplace() {
|
1508
|
+
let checkRows = this.getCheckRows();
|
1509
|
+
if (!checkRows.length) {
|
1510
|
+
this.$message({
|
1511
|
+
message: this.$t2('请选择需要替换的文件', 'components.fileLibrary.replaceFileTip'),
|
1512
|
+
type: "error",
|
1513
|
+
showClose: true,
|
1514
|
+
duration: 3000,
|
1515
|
+
});
|
1516
|
+
return;
|
1517
|
+
}
|
1518
|
+
this.$baseUpload.open({
|
1519
|
+
limit: 200,
|
1520
|
+
accept: "file",
|
1521
|
+
size: 5 * 1024 * 1024 * 1024,
|
1522
|
+
auto: false,
|
1523
|
+
confirmUpload: this.checkBatchReplace,
|
1524
|
+
pickPrivateProfile: false,
|
1525
|
+
callback: (rows) => {
|
1526
|
+
if (rows.length) {
|
1527
|
+
this.confirmBatchReplaceFileAttachment(rows, (res) => {
|
1528
|
+
this.searchEvent();
|
1529
|
+
});
|
1530
|
+
}
|
1531
|
+
},
|
1532
|
+
});
|
1533
|
+
},
|
1534
|
+
checkBatchReplace({files, done}) {
|
1535
|
+
let newFileObjDTOs = files.map((file) => {
|
1536
|
+
return {
|
1537
|
+
name: file.name,
|
1538
|
+
};
|
1539
|
+
});
|
1540
|
+
let checkRows = this.getCheckRows();
|
1541
|
+
this.$http({
|
1542
|
+
url: this.current_prefix + "/file_attach/checkBatchReplace",
|
1543
|
+
method: `post`,
|
1544
|
+
data: {
|
1545
|
+
oldFileObjDTOs: checkRows,
|
1546
|
+
newFileObjDTOs: newFileObjDTOs,
|
1547
|
+
},
|
1548
|
+
isLoading: true,
|
1549
|
+
success: (res) => {
|
1550
|
+
//确认上传回调
|
1551
|
+
done();
|
1552
|
+
},
|
1553
|
+
});
|
1554
|
+
},
|
1555
|
+
confirmBatchReplaceFileAttachment(rows, callback) {
|
1556
|
+
let checkRows = this.getCheckRows();
|
1557
|
+
this.$http({
|
1558
|
+
method: "post",
|
1559
|
+
url: this.current_prefix + "/file_attach/batchReplace",
|
1560
|
+
data: {
|
1561
|
+
oldFileObjDTOs: checkRows,
|
1562
|
+
newFileObjDTOs: rows,
|
1563
|
+
},
|
1564
|
+
isLoading: true,
|
1565
|
+
success: (res) => {
|
1566
|
+
this.$message({
|
1567
|
+
message: res.content,
|
1568
|
+
type: "success",
|
1569
|
+
duration: 500,
|
1570
|
+
});
|
1571
|
+
callback(res);
|
1572
|
+
},
|
1573
|
+
});
|
1574
|
+
return false;
|
1575
|
+
},
|
1576
|
+
//圈选
|
1577
|
+
mask_width() {
|
1578
|
+
return Math.abs(this.end_x - this.start_x);
|
1579
|
+
},
|
1580
|
+
mask_height() {
|
1581
|
+
return Math.abs(
|
1582
|
+
this.end_y + this.scrollTop2 - this.start_y - this.scrollTop1
|
1583
|
+
);
|
1584
|
+
},
|
1585
|
+
mask_left() {
|
1586
|
+
return Math.min(this.start_x, this.end_x) - this.box_screen_left;
|
1587
|
+
},
|
1588
|
+
mask_top() {
|
1589
|
+
return (
|
1590
|
+
Math.min(this.start_y, this.end_y) -
|
1591
|
+
this.box_screen_top -
|
1592
|
+
Math.max(this.scrollTop2 - this.scrollTop1, 0)
|
1593
|
+
);
|
1594
|
+
},
|
1595
|
+
getStyle() {
|
1596
|
+
const style =
|
1597
|
+
"width:" +
|
1598
|
+
this.mask_width() +
|
1599
|
+
"px;left:" +
|
1600
|
+
this.mask_left() +
|
1601
|
+
"px;height:" +
|
1602
|
+
this.mask_height() +
|
1603
|
+
"px;top:" +
|
1604
|
+
this.mask_top() +
|
1605
|
+
"px;";
|
1606
|
+
return style;
|
1607
|
+
},
|
1608
|
+
updateMaskStyle() {
|
1609
|
+
const dom_mask = document.querySelector(".viewBox .mask");
|
1610
|
+
dom_mask.setAttribute("style", this.getStyle());
|
1611
|
+
},
|
1612
|
+
handleMouseDown(event) {
|
1613
|
+
// if (event.target.tagName === 'SPAN') return false;
|
1614
|
+
if (!this.mouseCheck) return;
|
1615
|
+
let containter1 =
|
1616
|
+
this.showType == 1
|
1617
|
+
? this.$refs.containter1
|
1618
|
+
: this.$el.querySelector(".vxe-table--body-wrapper");
|
1619
|
+
this.scrollTop1 = containter1.scrollTop;
|
1620
|
+
this.scrollTop2 = containter1.scrollTop;
|
1621
|
+
|
1622
|
+
const dom_box = document.querySelector(".viewBox");
|
1623
|
+
let rect = dom_box.getBoundingClientRect();
|
1624
|
+
this.box_screen_left = rect.left;
|
1625
|
+
this.box_screen_top = rect.top;
|
1626
|
+
|
1627
|
+
this.start_x = event.clientX;
|
1628
|
+
this.start_y = event.clientY;
|
1629
|
+
|
1630
|
+
this.end_x = event.clientX;
|
1631
|
+
this.end_y = event.clientY;
|
1632
|
+
this.is_show_mask = true;
|
1633
|
+
|
1634
|
+
document.body.addEventListener("mousemove", this.handleMouseMove);
|
1635
|
+
document.body.addEventListener("mouseup", this.handleMouseUp);
|
1636
|
+
},
|
1637
|
+
handleMouseMove(event) {
|
1638
|
+
let containter1 =
|
1639
|
+
this.showType == 1
|
1640
|
+
? this.$refs.containter1
|
1641
|
+
: this.$el.querySelector(".vxe-table--body-wrapper");
|
1642
|
+
this.scrollTop2 = containter1.scrollTop;
|
1643
|
+
|
1644
|
+
this.select_list = [];
|
1645
|
+
this.end_x = event.clientX;
|
1646
|
+
this.end_y = event.clientY;
|
1647
|
+
this.updateMaskStyle();
|
1648
|
+
|
1649
|
+
if (this.start_x != this.end_x || this.start_y != this.end_y) {
|
1650
|
+
setTimeout(() => {
|
1651
|
+
this.handleDomSelect();
|
1652
|
+
}, 0);
|
1653
|
+
}
|
1654
|
+
},
|
1655
|
+
handleMouseUp(event) {
|
1656
|
+
this.end_x = event.clientX;
|
1657
|
+
this.end_y = event.clientY;
|
1658
|
+
document.body.removeEventListener("mousemove", this.handleMouseMove);
|
1659
|
+
document.body.removeEventListener("mouseup", this.handleMouseUp);
|
1660
|
+
|
1661
|
+
this.is_show_mask = false;
|
1662
|
+
/*if (this.start_x != this.end_x || this.start_y != this.end_y) {
|
1663
|
+
this.handleDomSelect();
|
1664
|
+
}*/
|
1665
|
+
this.resSetXY();
|
1666
|
+
},
|
1667
|
+
handleDomSelect() {
|
1668
|
+
const dom_mask = window.document.querySelector(".mask");
|
1669
|
+
const rect_select = dom_mask.getClientRects()[0];
|
1670
|
+
if (!rect_select) {
|
1671
|
+
return;
|
1672
|
+
}
|
1673
|
+
let checkList = [];
|
1674
|
+
if (this.showType == 1) {
|
1675
|
+
document
|
1676
|
+
.querySelectorAll(".el-checkbox-group.f-group .item")
|
1677
|
+
.forEach((node, index) => {
|
1678
|
+
let fileData = this.page.records[index];
|
1679
|
+
if (!fileData.dirs) {
|
1680
|
+
const rects = node.getClientRects()[0];
|
1681
|
+
if (this.collide(rects, rect_select) === true) {
|
1682
|
+
checkList.push(this.page.records[index].id);
|
1683
|
+
}
|
1684
|
+
}
|
1685
|
+
});
|
1686
|
+
} else {
|
1687
|
+
let checkRows = [];
|
1688
|
+
document
|
1689
|
+
.querySelectorAll(".viewBox .vxe-body--row")
|
1690
|
+
.forEach((node, index) => {
|
1691
|
+
const rects = node.getClientRects()[0];
|
1692
|
+
if (this.collide(rects, rect_select) === true) {
|
1693
|
+
let fileData = this.page.records[index];
|
1694
|
+
if (!fileData.dirs) {
|
1695
|
+
checkRows.push(fileData);
|
1696
|
+
checkList.push(fileData.id);
|
1697
|
+
}
|
1698
|
+
}
|
1699
|
+
});
|
1700
|
+
this.$refs["table-m1"].setAllCheckboxRow(false);
|
1701
|
+
this.$refs["table-m1"].setCheckboxRow(checkRows, true);
|
1702
|
+
}
|
1703
|
+
this.checkList = checkList;
|
1704
|
+
this.checkChange();
|
1705
|
+
},
|
1706
|
+
// eslint-disable-next-line class-methods-use-this
|
1707
|
+
collide(rect1, rect2) {
|
1708
|
+
const maxX = Math.max(rect1.x + rect1.width, rect2.x + rect2.width);
|
1709
|
+
const maxY = Math.max(rect1.y + rect1.height, rect2.y + rect2.height);
|
1710
|
+
const minX = Math.min(rect1.x, rect2.x);
|
1711
|
+
const minY = Math.min(rect1.y, rect2.y);
|
1712
|
+
if (
|
1713
|
+
maxX - minX <= rect1.width + rect2.width &&
|
1714
|
+
maxY - minY <= rect1.height + rect2.height
|
1715
|
+
) {
|
1716
|
+
return true;
|
1717
|
+
} else {
|
1718
|
+
return false;
|
1719
|
+
}
|
1720
|
+
},
|
1721
|
+
resSetXY() {
|
1722
|
+
this.start_x = 0;
|
1723
|
+
this.start_y = 0;
|
1724
|
+
this.end_x = 0;
|
1725
|
+
this.end_y = 0;
|
1726
|
+
this.scrollTop1 = 0;
|
1727
|
+
this.scrollTop2 = 0;
|
1728
|
+
this.updateMaskStyle();
|
1729
|
+
},
|
1730
|
+
customFileButtonEvent(customFileButton, attachment) {
|
1731
|
+
customFileButton.onclick({
|
1732
|
+
row: attachment
|
1733
|
+
});
|
1734
|
+
},
|
1735
|
+
customToobarButtonEvent(customFileButton) {
|
1736
|
+
customFileButton.onclick({
|
1737
|
+
rows: this.checkRows
|
1738
|
+
});
|
1739
|
+
},
|
1740
|
+
customFileButtonVisable(customFileButton, attachment) {
|
1741
|
+
if (customFileButton.visable === "function") {
|
1742
|
+
let checkBillDatas = this.checkBillDatas;
|
1743
|
+
return customFileButton.visable({row: attachment, checkBillDatas});
|
1744
|
+
} else if (customFileButton.visable === null || customFileButton.visable == undefined) {
|
1745
|
+
return true;
|
1746
|
+
} else {
|
1747
|
+
return customFileButton.visable;
|
1748
|
+
}
|
1749
|
+
}
|
1750
|
+
},
|
1751
|
+
};
|
1752
|
+
export default modules;
|