cloud-web-corejs 1.0.54-dev.51 → 1.0.54-dev.510
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +13 -3
- package/src/App.vue +29 -33
- package/src/api/user.js +16 -0
- package/src/components/Qrcode/fileParse.vue +0 -1
- package/src/components/Tinymce/index.vue +112 -71
- package/src/components/VabUpload/index.js +2 -1
- package/src/components/VabUpload/mixins.js +2 -2
- package/src/components/VabUpload/privateProfileDialogMixins.js +1 -1063
- package/src/components/VabUpload/propertiesDialog.vue +1 -1
- package/src/components/VabUpload/view.vue +204 -120
- package/src/components/advancedSearchDialog/mixins.js +1 -1
- package/src/components/baseAlert/mixins.js +1 -1
- package/src/components/baseAttachment/index.vue +49 -40
- package/src/components/baseAttachment/mixins.js +2 -1
- package/src/components/baseInputExport/index.vue +19 -12
- package/src/components/baseInputExport/mixins.js +1 -1
- package/src/components/baseTabs/mixins.js +1 -1
- package/src/components/code-editor/index.vue +102 -63
- package/src/components/confirmDialog/index.vue +24 -17
- package/src/components/confirmDialog/mixins.js +1 -1
- package/src/components/errorMsg/index.vue +42 -34
- package/src/components/errorMsg/mixins.js +6 -5
- package/src/components/excelExport/button.vue +57 -4
- package/src/components/excelExport/index.js +6 -6
- package/src/components/excelExport/index.vue +56 -2
- package/src/components/excelExport/mixins.js +3 -2
- package/src/components/excelImport/mixins.js +2 -1
- package/src/components/fileLibrary/fileObjAuthDialog.vue +179 -89
- package/src/components/fileLibrary/fileObjAuthEditDialog.vue +6 -0
- package/src/components/fileLibrary/filterDialog.vue +454 -0
- package/src/components/fileLibrary/index.vue +594 -254
- package/src/components/fileLibrary/mixins/categoryMoveDialogMixins.js +1 -1
- package/src/components/fileLibrary/mixins/fileCategoryDialogMixins.js +1 -1
- package/src/components/fileLibrary/mixins/fileHistoryDialogMixins.js +2 -2
- package/src/components/fileLibrary/mixins/fileObjAuthDialogMixin.js +339 -211
- package/src/components/fileLibrary/mixins/fileObjAuthEditDialogMixin.js +31 -27
- package/src/components/fileLibrary/mixins/fileObjAuthEditMixin.js +4 -4
- package/src/components/fileLibrary/mixins/indexMixins.js +220 -101
- package/src/components/fileLibrary/mixins/propertiesDialogMixins.js +64 -4
- package/src/components/fileLibrary/mixins/recycleBinDialogMixins.js +3 -3
- package/src/components/fileLibrary/propertiesDialog.vue +113 -74
- package/src/components/fileLibrary/shareDialog.vue +1 -1
- package/src/components/formOplog/mixins.js +1 -1
- package/src/components/jsonImport/index.js +1 -1
- package/src/components/jsonImport/mixins.js +2 -1
- package/src/components/langImport/mixins.js +17 -16
- package/src/components/obsUpload/index.js +1 -0
- package/src/components/obsUpload/index.vue +231 -0
- package/src/components/obsUpload/mixins.js +8 -0
- package/src/components/scriptDescription/button.vue +12 -4
- package/src/components/scriptTest/mixins.js +1 -1
- package/src/components/statusTag/mixins.js +1 -1
- package/src/components/table/CellSlot.vue +1 -0
- package/src/components/table/index.js +12 -11
- package/src/components/table/plugins/extend-cell-area/vxe-table-extend-cell-area.es6.min.js +11028 -0
- package/src/components/table/plugins/extend-cell-area/vxe-table-extend-cell-area.min.css +200 -0
- package/src/components/table/tableForm.vue +99 -63
- package/src/components/table/tableFormMixin.js +1 -1
- package/src/components/table/util/index.js +328 -0
- package/src/components/table/vxeFilter/mixin.js +6 -6
- package/src/components/tempStorage/index.vue +76 -55
- package/src/components/tempStorage/tempStorageDialog.vue +179 -54
- package/src/components/vb-tabs/x-tabs.vue +56 -30
- package/src/components/wf/addOpinionButton.vue +57 -0
- package/src/components/wf/content.vue +834 -362
- package/src/components/wf/mixins/addOpinionButton.js +3 -0
- package/src/components/wf/mixins/setCandidateButton.js +6 -0
- package/src/components/wf/mixins/setCandidateDialog.js +2 -1
- package/src/components/wf/mixins/setCandidateDialog2.js +6 -0
- package/src/components/wf/mixins/wfFlowEleScriptDialog.js +3 -0
- package/src/components/wf/mixins/wfTaskUserRangeDialog.js +3 -0
- package/src/components/wf/setCandidateButton.vue +40 -0
- package/src/components/wf/setCandidateDialog.vue +10 -0
- package/src/components/wf/setCandidateDialog2.vue +105 -0
- package/src/components/wf/wf.js +2156 -1
- package/src/components/wf/wfFlowEleScriptDialog.vue +89 -0
- package/src/components/wf/wfStartDialog.vue +66 -42
- package/src/components/wf/wfTaskUserRangeDialog.vue +65 -0
- package/src/components/wf/wfUtil.js +279 -1
- package/src/components/xform/form-designer/designer.js +1659 -3
- package/src/components/xform/form-designer/form-widget/components/gantt/index.vue +419 -0
- package/src/components/xform/form-designer/form-widget/container-widget/containerMixin.js +3 -3
- package/src/components/xform/form-designer/form-widget/container-widget/data-table-mixin.js +9 -8
- package/src/components/xform/form-designer/form-widget/container-widget/data-table-widget.vue +4 -1
- package/src/components/xform/form-designer/form-widget/container-widget/detail-widget.vue +3 -3
- package/src/components/xform/form-designer/form-widget/dialog/baseFormulaDialog copy.vue +971 -0
- package/src/components/xform/form-designer/form-widget/dialog/baseFormulaDialog.vue +971 -0
- package/src/components/xform/form-designer/form-widget/dialog/exportDialog.vue +13 -0
- package/src/components/xform/form-designer/form-widget/dialog/fileReferenceDialog.vue +301 -0
- package/src/components/xform/form-designer/form-widget/dialog/formDialog.vue +82 -49
- package/src/components/xform/form-designer/form-widget/dialog/formDrawer.vue +5 -1
- package/src/components/xform/form-designer/form-widget/dialog/formulaDialog.vue +799 -0
- package/src/components/xform/form-designer/form-widget/dialog/importDialog.vue +38 -7
- package/src/components/xform/form-designer/form-widget/dialog/importDialogMixin - /345/211/257/346/234/254.js" +1639 -0
- package/src/components/xform/form-designer/form-widget/dialog/importDialogMixin.js +1759 -8
- package/src/components/xform/form-designer/form-widget/dialog/searchFormDialog.vue +133 -72
- package/src/components/xform/form-designer/form-widget/field-widget/a-link-widget.vue +2 -2
- package/src/components/xform/form-designer/form-widget/field-widget/a-text-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/baseAttachment-widget.vue +34 -5
- package/src/components/xform/form-designer/form-widget/field-widget/button-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/cascader-widget.vue +19 -1
- package/src/components/xform/form-designer/form-widget/field-widget/census-widget.vue +40 -28
- package/src/components/xform/form-designer/form-widget/field-widget/checkbox-widget.vue +18 -7
- package/src/components/xform/form-designer/form-widget/field-widget/color-widget.vue +4 -1
- package/src/components/xform/form-designer/form-widget/field-widget/copy_button-widget.vue +89 -0
- package/src/components/xform/form-designer/form-widget/field-widget/date-range-widget.vue +14 -2
- package/src/components/xform/form-designer/form-widget/field-widget/date-widget.vue +30 -4
- package/src/components/xform/form-designer/form-widget/field-widget/download-button-widget.vue +133 -0
- package/src/components/xform/form-designer/form-widget/field-widget/dropdown-item-widget.vue +77 -0
- package/src/components/xform/form-designer/form-widget/field-widget/dropdown-menu-widget.vue +106 -0
- package/src/components/xform/form-designer/form-widget/field-widget/echart-bar-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/echart-category-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/echart-pie-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/fieldMixin.js +1650 -16
- package/src/components/xform/form-designer/form-widget/field-widget/form-item-wrapper.vue +705 -379
- package/src/components/xform/form-designer/form-widget/field-widget/gantt-widget.vue +962 -0
- package/src/components/xform/form-designer/form-widget/field-widget/html-text-widget.vue +6 -2
- package/src/components/xform/form-designer/form-widget/field-widget/import-button-widget.vue +22 -11
- package/src/components/xform/form-designer/form-widget/field-widget/import2-button-widget.vue +90 -0
- package/src/components/xform/form-designer/form-widget/field-widget/input-widget.vue +7 -2
- package/src/components/xform/form-designer/form-widget/field-widget/mixins/echart-bar-mixin.js +49 -8
- package/src/components/xform/form-designer/form-widget/field-widget/mixins/echart-category-mixin.js +61 -88
- package/src/components/xform/form-designer/form-widget/field-widget/mixins/echart-pie-mixin.js +13 -0
- package/src/components/xform/form-designer/form-widget/field-widget/mixins/vabsearch-mixin.js +179 -0
- package/src/components/xform/form-designer/form-widget/field-widget/multiSearch-widget.vue +53 -0
- package/src/components/xform/form-designer/form-widget/field-widget/number-widget.vue +114 -81
- package/src/components/xform/form-designer/form-widget/field-widget/oplog-widget.vue +186 -0
- package/src/components/xform/form-designer/form-widget/field-widget/print-button-widget.vue +44 -27
- package/src/components/xform/form-designer/form-widget/field-widget/print-detail-button-widget.vue +116 -0
- package/src/components/xform/form-designer/form-widget/field-widget/project-tag-widget.vue +154 -47
- package/src/components/xform/form-designer/form-widget/field-widget/radio-widget.vue +26 -6
- package/src/components/xform/form-designer/form-widget/field-widget/search_button-widget.vue +2 -2
- package/src/components/xform/form-designer/form-widget/field-widget/select-export-button-widget.vue +86 -0
- package/src/components/xform/form-designer/form-widget/field-widget/select-widget.vue +24 -9
- package/src/components/xform/form-designer/form-widget/field-widget/singerSearch-widget.vue +53 -0
- package/src/components/xform/form-designer/form-widget/field-widget/singleUpload-widget.vue +145 -0
- package/src/components/xform/form-designer/form-widget/field-widget/static-content-wrapper.vue +12 -1
- package/src/components/xform/form-designer/form-widget/field-widget/status-widget.vue +31 -17
- package/src/components/xform/form-designer/form-widget/field-widget/table-export-button-widget.vue +7 -2
- package/src/components/xform/form-designer/form-widget/field-widget/tableexportbuttonwidget.vue +99 -0
- package/src/components/xform/form-designer/form-widget/field-widget/tempStorage-widget.vue +147 -0
- package/src/components/xform/form-designer/form-widget/field-widget/text-widget.vue +46 -34
- package/src/components/xform/form-designer/form-widget/field-widget/time-range-widget.vue +2 -2
- package/src/components/xform/form-designer/form-widget/field-widget/vabSearch-widget.vue +3 -171
- package/src/components/xform/form-designer/form-widget/field-widget/vabUpload-widget.vue +260 -58
- package/src/components/xform/form-designer/form-widget/field-widget/vabUpload2-widget.vue +753 -0
- package/src/components/xform/form-designer/indexMixin.js +3 -772
- package/src/components/xform/form-designer/setting-panel/form-setting.vue +977 -169
- package/src/components/xform/form-designer/setting-panel/index.vue +4 -0
- package/src/components/xform/form-designer/setting-panel/indexMixin.js +1 -1
- package/src/components/xform/form-designer/setting-panel/option-items-setting.vue +537 -302
- package/src/components/xform/form-designer/setting-panel/property-editor/a-link-editor.vue +4 -4
- package/src/components/xform/form-designer/setting-panel/property-editor/a-text-editor.vue +3 -3
- package/src/components/xform/form-designer/setting-panel/property-editor/autoValueEnabled-editor.vue +38 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/censusClass-editor.vue +6 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/colorClass-editor.vue +28 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/commonAttributeEnabled-editor.vue +41 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/columnRenderDialog.vue +125 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/data-table-editor.vue +946 -1042
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/onCheckboxChange-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/table-column-dialog.vue +1127 -512
- package/src/components/xform/form-designer/setting-panel/property-editor/container-detail/detail-editor.vue +2 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/container-detail-pane/detail-pane-editor.vue +3 -3
- package/src/components/xform/form-designer/setting-panel/property-editor/container-grid-col/grid-col-offset-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/container-grid-col/grid-col-pull-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/container-grid-col/grid-col-push-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/container-list-h5/list-h5-editor.vue +0 -8
- package/src/components/xform/form-designer/setting-panel/property-editor/container-tree/tree-customClass-editor.vue +31 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/copyButton-editor.vue +36 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/downloadButtonFlag-editor.vue +32 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/eventMixin.js +2 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onAfterConfirmFile-editor.vue +32 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onClick-editor.vue +14 -7
- package/src/components/xform/form-designer/setting-panel/property-editor/field-button/clickBindEvent-editor.vue +35 -20
- package/src/components/xform/form-designer/setting-panel/property-editor/field-button/search-dialog-event-editor.vue +64 -5
- package/src/components/xform/form-designer/setting-panel/property-editor/field-date-range/date-range-defaultTime-editor.vue +27 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-dropdown-menu/dropdown-item-editor.vue +21 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-dropdown-menu/dropdown-menu-editor.vue +59 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-echart/echart-bar-editor.vue +185 -69
- package/src/components/xform/form-designer/setting-panel/property-editor/field-echart/echart-category-editor.vue +188 -86
- package/src/components/xform/form-designer/setting-panel/property-editor/field-echart/echart-pie-editor.vue +84 -39
- package/src/components/xform/form-designer/setting-panel/property-editor/field-gantt/gantt-editor.vue +36 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import-button-editor.vue +77 -20
- package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import2-button-editor.vue +96 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-print-button/print-button-editor.vue +44 -15
- package/src/components/xform/form-designer/setting-panel/property-editor/field-print-button/print-detail-button-editor.vue +115 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-rate/rate-defaultValue-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-status/field-status-editor.vue +67 -41
- package/src/components/xform/form-designer/setting-panel/property-editor/field-table-export-button/select-export-button-editor.vue +56 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-table-export-button/table-export-button-editor.vue +26 -7
- package/src/components/xform/form-designer/setting-panel/property-editor/field-vabSearch/vabSearchName-editor.vue +13 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-vabUpload/field-vabUpload-editor.vue +33 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-vabUpload2/field-vabUpload2-editor.vue +66 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/formScriptEnabled-editor.vue +89 -19
- package/src/components/xform/form-designer/setting-panel/property-editor/formula-editor.vue +721 -466
- package/src/components/xform/form-designer/setting-panel/property-editor/labelColor-editor.vue +20 -11
- package/src/components/xform/form-designer/setting-panel/property-editor/labelIconClass-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/labelIconPosition-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/labelTooltip-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/limit-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/multiple-editor.vue +19 -14
- package/src/components/xform/form-designer/setting-panel/property-editor/multipleLimit-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/name-editor.vue +124 -50
- package/src/components/xform/form-designer/setting-panel/property-editor/oplog-editor.vue +31 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/precision-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/project-tag-editor.vue +349 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/required-editor.vue +10 -6
- package/src/components/xform/form-designer/setting-panel/property-editor/requiredHint-editor.vue +3 -3
- package/src/components/xform/form-designer/setting-panel/property-editor/showRuleFlag-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/tempStorage-editor.vue +42 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/textFlag-editor.vue +305 -19
- package/src/components/xform/form-designer/setting-panel/property-editor/validation-editor.vue +2 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/validationHint-editor.vue +2 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/wfFlag-editor.vue +372 -50
- package/src/components/xform/form-designer/setting-panel/property-editor/widgetShowRuleFlag-editor.vue +263 -0
- package/src/components/xform/form-designer/setting-panel/propertyRegister.js +32 -11
- package/src/components/xform/form-designer/toolbar-panel/index.vue +12 -11
- package/src/components/xform/form-designer/toolbar-panel/indexMixin.js +1 -1
- package/src/components/xform/form-designer/widget-panel/index.vue +21 -1
- package/src/components/xform/form-designer/widget-panel/indexMixin.js +19 -18
- package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +1653 -869
- package/src/components/xform/form-render/container-item/containerItemMixin.js +12 -11
- package/src/components/xform/form-render/container-item/data-table-item.vue +194 -199
- package/src/components/xform/form-render/container-item/data-table-mixin.js +22 -18
- package/src/components/xform/form-render/container-item/detail-pane-item.vue +17 -3
- package/src/components/xform/form-render/container-item/grid-col-item.vue +10 -3
- package/src/components/xform/form-render/container-item/grid-item.vue +1 -1
- package/src/components/xform/form-render/container-item/list-h5-item.vue +1 -9
- package/src/components/xform/form-render/container-item/list-h5-item2.vue +1 -8
- package/src/components/xform/form-render/container-item/tab-item.vue +62 -25
- package/src/components/xform/form-render/container-item/table-cell-item.vue +38 -32
- package/src/components/xform/form-render/container-item/table-item.vue +4 -2
- package/src/components/xform/form-render/container-item/table2-cell-item.vue +53 -34
- package/src/components/xform/form-render/container-item/table2-item.vue +141 -88
- package/src/components/xform/form-render/container-item/tree-item.vue +32 -11
- package/src/components/xform/form-render/index.vue +69 -20
- package/src/components/xform/form-render/indexMixin copy.js +3462 -0
- package/src/components/xform/form-render/indexMixin.js +3465 -12
- package/src/components/xform/lang/zh-CN.js +27 -4
- package/src/components/xform/mixins/defaultHandle.js +334 -1
- package/src/components/xform/mixins/scriptHttp.js +174 -1
- package/src/components/xform/utils/emitter.js +4 -4
- package/src/components/xform/utils/format.js +21 -30
- package/src/components/xform/utils/formula-util.js +966 -0
- package/src/components/xform/utils/util.js +1464 -1
- package/src/components/xform/utils/validators.js +1 -5
- package/src/components/xform/utils/vue2js-generator.js +2 -2
- package/src/index.js +210 -190
- package/src/lang/index.js +56 -51
- package/src/lang/locale/en/login.js +20 -0
- package/src/lang/locale/zh/login.js +20 -0
- package/src/layout/components/AppMain.vue +5 -1
- package/src/layout/components/Sidebar/default.vue +1389 -1222
- package/src/layout/components/TagsView/index.vue +37 -12
- package/src/layout/components/createCompany/createCompanyDialog.vue +157 -0
- package/src/layout/components/extractedCode/createDialog.vue +92 -0
- package/src/layout/components/extractedCode/queryDialog.vue +96 -0
- package/src/layout/components/extractedCode/viewDialog.vue +193 -0
- package/src/layout/components/watermark/index.vue +83 -0
- package/src/layout/defaultLayout.vue +1 -1
- package/src/layout/index.vue +3 -5
- package/src/mixins/selectDialog/index.js +1 -1
- package/src/mixins/table/index.js +151 -0
- package/src/mixins/tableTree/index.js +1 -1
- package/src/permission.js +1 -18
- package/src/router/modules/customer.js +79 -8
- package/src/store/config/index.js +1 -1
- package/src/store/getters.js +3 -1
- package/src/store/modules/permission.js +1 -1
- package/src/store/modules/settings.js +1 -1
- package/src/store/modules/tagsView.js +1 -14
- package/src/store/modules/user.js +1 -29
- package/src/utils/index.js +2 -3
- package/src/utils/pddLog.js +103 -0
- package/src/utils/pdfUtil.js +71 -0
- package/src/utils/request.js +1 -1
- package/src/utils/vab.js +19 -27
- package/src/views/bd/setting/bd_attach_setting/edit.vue +5 -5
- package/src/views/bd/setting/bd_attach_setting/list.vue +28 -55
- package/src/views/bd/setting/bd_attach_setting/mixins/edit.js +4 -5
- package/src/views/bd/setting/bd_attach_setting/mixins/list.js +239 -1
- package/src/views/bd/setting/bd_company_env/dialog.vue +174 -0
- package/src/views/bd/setting/bd_company_env/edit.vue +193 -0
- package/src/views/bd/setting/bd_company_env/list.vue +175 -0
- package/src/views/bd/setting/config_manage/list.vue +83 -0
- package/src/views/bd/setting/form_import_log/edit.vue +127 -0
- package/src/views/bd/setting/form_import_log/list.vue +206 -0
- package/src/views/bd/setting/form_script/edit.vue +9 -0
- package/src/views/bd/setting/form_script/edit1.vue +36 -3
- package/src/views/bd/setting/form_script/form_list.vue +99 -37
- package/src/views/bd/setting/form_script/list1.vue +181 -118
- package/src/views/bd/setting/form_script/mixins/dialog.js +130 -1
- package/src/views/bd/setting/form_script/mixins/edit.js +201 -1
- package/src/views/bd/setting/form_script/mixins/edit1.js +193 -1
- package/src/views/bd/setting/form_script/mixins/form_list.js +1 -1
- package/src/views/bd/setting/form_script/mixins/list.js +236 -1
- package/src/views/bd/setting/form_script/mixins/list1.js +423 -14
- package/src/views/bd/setting/form_script/mixins/otherAuthDialog.js +194 -0
- package/src/views/bd/setting/form_script/otherAuthDialog.vue +83 -0
- package/src/views/bd/setting/form_template/batchWfObjConfigDialog.vue +2 -2
- package/src/views/bd/setting/form_template/edit.vue +22 -1
- package/src/views/bd/setting/form_template/editWfObjConfigDialog.vue +2 -2
- package/src/views/bd/setting/form_template/list.vue +326 -214
- package/src/views/bd/setting/form_template/mixins/batchWfObjConfigDialog.js +11 -10
- package/src/views/bd/setting/form_template/mixins/edit.js +234 -9
- package/src/views/bd/setting/form_template/mixins/list.js +689 -22
- package/src/views/bd/setting/form_template/mixins/otherAuthDialog.js +193 -0
- package/src/views/bd/setting/form_template/mixins/wf_list.js +1 -423
- package/src/views/bd/setting/form_template/otherAuthDialog.vue +83 -0
- package/src/views/bd/setting/form_template/wfObjConfigDialog.vue +4 -4
- package/src/views/bd/setting/form_template/wf_list.vue +1 -1
- package/src/views/bd/setting/logic_param/edit.vue +146 -0
- package/src/views/bd/setting/logic_param/edit1.vue +106 -0
- package/src/views/bd/setting/logic_param/edit2.vue +139 -0
- package/src/views/bd/setting/logic_param/list.vue +74 -0
- package/src/views/bd/setting/logic_param/list1.vue +12 -0
- package/src/views/bd/setting/logic_param/list2.vue +12 -0
- package/src/views/bd/setting/logic_param/mixins/edit.js +3 -0
- package/src/views/bd/setting/logic_param/mixins/list.js +9 -0
- package/src/views/bd/setting/menu_kind/list.vue +172 -83
- package/src/views/bd/setting/menu_kind/mixins/authDialog.js +300 -7
- package/src/views/bd/setting/menu_kind/mixins/list.js +201 -1
- package/src/views/bd/setting/push_data/edit.vue +139 -0
- package/src/views/bd/setting/push_data/list.vue +283 -0
- package/src/views/bd/setting/push_data_h/edit.vue +153 -0
- package/src/views/bd/setting/push_data_h/list.vue +293 -0
- package/src/views/bd/setting/request_async_setting/edit.vue +320 -0
- package/src/views/bd/setting/request_async_setting/list.vue +372 -0
- package/src/views/bd/setting/request_setting/edit.vue +300 -0
- package/src/views/bd/setting/request_setting/list.vue +311 -0
- package/src/views/bd/setting/table_model/edit.vue +875 -426
- package/src/views/bd/setting/table_model/list.vue +190 -128
- package/src/views/bd/setting/table_model/mixins/dialog.js +1 -1
- package/src/views/bd/setting/table_model/mixins/edit.js +1202 -13
- package/src/views/bd/setting/table_model/mixins/list.js +440 -14
- package/src/views/bd/setting/table_model/mixins/otherAuthDialog.js +201 -0
- package/src/views/bd/setting/table_model/otherAuthDialog.vue +83 -0
- package/src/views/user/access_log/list.vue +418 -349
- package/src/views/user/area/dialog.vue +223 -117
- package/src/views/user/area/list.vue +318 -0
- package/src/views/user/bill_setting/edit.vue +1 -1
- package/src/views/user/bill_setting/list.vue +1 -1
- package/src/views/user/common_attribute/itemEdit.vue +2 -2
- package/src/views/user/common_attribute/list.vue +5 -2
- package/src/views/user/common_script/edit.vue +1 -1
- package/src/views/user/common_script/list.vue +1 -1
- package/src/views/user/company_info/dialog.vue +164 -163
- package/src/views/user/company_info/edit.vue +1 -1
- package/src/views/user/extend_datasource/dialog.vue +4 -0
- package/src/views/user/extend_datasource/edit.vue +5 -1
- package/src/views/user/extend_datasource/list.vue +5 -1
- package/src/views/user/fieldTranslation/editDialog.vue +7 -7
- package/src/views/user/fieldTranslation/list.vue +32 -32
- package/src/views/user/form/vform/designer.vue +776 -749
- package/src/views/user/form/vform/out_render.vue +1 -1
- package/src/views/user/form/vform/render.vue +59 -37
- package/src/views/user/form/view/edit.vue +38 -37
- package/src/views/user/form/view/list.vue +261 -49
- package/src/views/user/home/bears/index.vue +1032 -0
- package/src/views/user/home/default.vue +1025 -979
- package/src/views/user/home/dev.vue +29 -0
- package/src/views/user/home/index.vue +16 -6
- package/src/views/user/home/taili/index.vue +1034 -0
- package/src/views/user/ledger_library/list.vue +10 -12
- package/src/views/user/login/default.vue +165 -36
- package/src/views/user/login/index.vue +4 -6
- package/src/views/user/login/indexMixin.js +184 -8
- package/src/views/user/menu/list.vue +24 -1
- package/src/views/user/notify_message/dialog.vue +38 -22
- package/src/views/user/notify_template/edit.vue +188 -187
- package/src/views/user/notify_template/edit2.vue +176 -0
- package/src/views/user/notify_template/list.vue +4 -1
- package/src/views/user/notify_template/list2.vue +190 -0
- package/src/views/user/outLink/form_view.vue +211 -184
- package/src/views/user/outLink/index.vue +67 -11
- package/src/views/user/outLink/view.vue +28 -23
- package/src/views/user/position/edit.vue +116 -83
- package/src/views/user/position/list.vue +118 -86
- package/src/views/user/project_tag/dialog.vue +9 -4
- package/src/views/user/project_tag/edit.vue +2 -2
- package/src/views/user/project_tag/list.vue +9 -4
- package/src/views/user/push_setting/list.vue +2 -2
- package/src/views/user/request_setting/edit.vue +258 -0
- package/src/views/user/request_setting/list.vue +248 -0
- package/src/views/user/role/authConfig.vue +89 -0
- package/src/views/user/role/dialog.vue +70 -48
- package/src/views/user/role/edit.vue +609 -429
- package/src/views/user/role/list.vue +4 -4
- package/src/views/user/sale_org/dialog.vue +1 -1
- package/src/views/user/sale_org/list.vue +4 -1
- package/src/views/user/system_notice/edit.vue +232 -186
- package/src/views/user/user/dialog.vue +46 -23
- package/src/views/user/user/edit.vue +1059 -1021
- package/src/views/user/user/form_dialog.vue +158 -0
- package/src/views/user/user/form_info.vue +210 -0
- package/src/views/user/user/list.vue +647 -563
- package/src/views/user/user/modifyPasswordDialog.vue +64 -53
- package/src/views/user/wf/wfReport/index.vue +618 -0
- package/src/views/user/wf/wf_auto_submit_data/list.vue +2 -0
- package/src/views/user/wf/wf_manage/list.vue +371 -249
- package/src/views/user/wf/wf_manage/wfContentDialog.vue +1 -1
- package/src/views/user/wf/wf_obj_config/importItemDialog.vue +109 -0
- package/src/views/user/wf/wf_obj_config/itemEdit.vue +25 -1
- package/src/views/user/wf/wf_obj_config/list.vue +114 -9
- package/src/views/user/wf/wf_obj_config/wfBizDataSettingDialog.vue +2 -2
- package/src/views/user/wf/wf_transfer_setting/edit.vue +282 -0
- package/src/views/user/wf/wf_transfer_setting/list.vue +319 -0
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
import {treeScollx} from "
|
|
2
|
-
import ElImageViewer from "
|
|
3
|
-
import propertiesDialog from "
|
|
4
|
-
import categoryMoveDialog from "
|
|
5
|
-
import fileHistoryDialog from "
|
|
6
|
-
import shareDialog from "
|
|
7
|
-
import recycleBinDialog from "
|
|
8
|
-
import videoDialog from "
|
|
9
|
-
import userDialog from "
|
|
10
|
-
import {encode} from "js-base64";
|
|
1
|
+
import { treeScollx } from "@base/utils/global.js";
|
|
2
|
+
import ElImageViewer from "@base/components/VabUpload/image-viewer";
|
|
3
|
+
import propertiesDialog from "@base/components/fileLibrary/propertiesDialog";
|
|
4
|
+
import categoryMoveDialog from "@base/components/fileLibrary/categoryMoveDialog";
|
|
5
|
+
import fileHistoryDialog from "@base/components/fileLibrary/fileHistoryDialog";
|
|
6
|
+
import shareDialog from "@base/components/fileLibrary/shareDialog";
|
|
7
|
+
import recycleBinDialog from "@base/components/fileLibrary/recycleBinDialog";
|
|
8
|
+
import videoDialog from "@base/components/video/dialog";
|
|
9
|
+
import userDialog from "@base/views/user/user/dialog";
|
|
10
|
+
import { encode } from "js-base64";
|
|
11
|
+
import fileObjAuthDialog from "@base/components/fileLibrary/fileObjAuthDialog";
|
|
12
|
+
import filterDialog from "@base/components/fileLibrary/filterDialog.vue";
|
|
11
13
|
|
|
12
14
|
let modules;
|
|
13
15
|
modules = {
|
|
@@ -25,6 +27,8 @@ modules = {
|
|
|
25
27
|
recycleBinDialog,
|
|
26
28
|
videoDialog,
|
|
27
29
|
userDialog,
|
|
30
|
+
fileObjAuthDialog,
|
|
31
|
+
filterDialog,
|
|
28
32
|
},
|
|
29
33
|
provide() {
|
|
30
34
|
return {
|
|
@@ -46,7 +50,7 @@ modules = {
|
|
|
46
50
|
},
|
|
47
51
|
getFileStoreArea: () => {
|
|
48
52
|
return this.fileStoreArea;
|
|
49
|
-
}
|
|
53
|
+
},
|
|
50
54
|
};
|
|
51
55
|
},
|
|
52
56
|
async created() {
|
|
@@ -84,8 +88,7 @@ modules = {
|
|
|
84
88
|
label: "fileName",
|
|
85
89
|
isLeaf: "leaf",
|
|
86
90
|
},
|
|
87
|
-
resolveFunc: function () {
|
|
88
|
-
},
|
|
91
|
+
resolveFunc: function () {},
|
|
89
92
|
fileAttachmentCategorys: [],
|
|
90
93
|
currentFileCategoryCode: null,
|
|
91
94
|
chooseIndex: -1,
|
|
@@ -154,6 +157,10 @@ modules = {
|
|
|
154
157
|
end_y: 0,
|
|
155
158
|
scrollTop1: 0,
|
|
156
159
|
scrollTop2: 0,
|
|
160
|
+
showFileObjAuthDialog: false,
|
|
161
|
+
fileObjAuth: {},
|
|
162
|
+
popAnnexFilter: false,
|
|
163
|
+
showFilterDialog: false,
|
|
157
164
|
};
|
|
158
165
|
},
|
|
159
166
|
computed: {
|
|
@@ -177,8 +184,8 @@ modules = {
|
|
|
177
184
|
let dataId = this.isBillEnabled
|
|
178
185
|
? this.checkBillDatas.map((row) => row.id)
|
|
179
186
|
: this.option.dataId
|
|
180
|
-
|
|
181
|
-
|
|
187
|
+
? [this.option.dataId]
|
|
188
|
+
: [0];
|
|
182
189
|
return dataId;
|
|
183
190
|
},
|
|
184
191
|
objectForeignId() {
|
|
@@ -247,8 +254,8 @@ modules = {
|
|
|
247
254
|
},
|
|
248
255
|
currentCategoryId() {
|
|
249
256
|
return this.currentFileCategory &&
|
|
250
|
-
|
|
251
|
-
|
|
257
|
+
this.currentFileCategory.id &&
|
|
258
|
+
this.currentFileCategory.id > 0
|
|
252
259
|
? this.currentFileCategory.id
|
|
253
260
|
: 0;
|
|
254
261
|
},
|
|
@@ -259,9 +266,39 @@ modules = {
|
|
|
259
266
|
customToobarButtons() {
|
|
260
267
|
let buttonConfig = this.option.buttonConfig || {};
|
|
261
268
|
return buttonConfig && buttonConfig.toobar ? buttonConfig.toobar : [];
|
|
262
|
-
}
|
|
269
|
+
},
|
|
263
270
|
},
|
|
264
271
|
methods: {
|
|
272
|
+
openFileDirs(row) {
|
|
273
|
+
let keys = row.treePath.split(",").filter((item) => !!item);
|
|
274
|
+
if(row.dirs){
|
|
275
|
+
keys.push(row.id + "")
|
|
276
|
+
}
|
|
277
|
+
let size = keys.length;
|
|
278
|
+
let tree = this.$refs.tree;
|
|
279
|
+
|
|
280
|
+
let parent = null;
|
|
281
|
+
let loopDo = (index) => {
|
|
282
|
+
if (size <= index) return;
|
|
283
|
+
let key = keys[index];
|
|
284
|
+
let node = tree.getNode(key + "");
|
|
285
|
+
let data = node.data;
|
|
286
|
+
if (size == index + 1) {
|
|
287
|
+
tree.setCurrentKey(data);
|
|
288
|
+
this.handleNodeClick(data, node, this);
|
|
289
|
+
return;
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
if (!data.leaf) {
|
|
293
|
+
node.expand(() => {
|
|
294
|
+
loopDo(index + 1);
|
|
295
|
+
});
|
|
296
|
+
}
|
|
297
|
+
};
|
|
298
|
+
this.getTopNode().expand(() => {
|
|
299
|
+
loopDo(0);
|
|
300
|
+
});
|
|
301
|
+
},
|
|
265
302
|
getTopNode() {
|
|
266
303
|
return this.$refs.tree.root.childNodes[0];
|
|
267
304
|
},
|
|
@@ -302,7 +339,12 @@ modules = {
|
|
|
302
339
|
let checkRows = this.getCheckRows();
|
|
303
340
|
if (!checkRows.length) {
|
|
304
341
|
let msg =
|
|
305
|
-
handleType == 1
|
|
342
|
+
handleType == 1
|
|
343
|
+
? this.$t2("请选择需要移动的文件", "components.fileLibrary.moveTip")
|
|
344
|
+
: this.$t2(
|
|
345
|
+
"请选择需要复制的文件",
|
|
346
|
+
"components.fileLibrary.copyTip"
|
|
347
|
+
);
|
|
306
348
|
this.$message({
|
|
307
349
|
message: msg,
|
|
308
350
|
type: "error",
|
|
@@ -374,14 +416,22 @@ modules = {
|
|
|
374
416
|
deleteCategory(category) {
|
|
375
417
|
if (!category && !this.currentCategoryId) {
|
|
376
418
|
this.$message({
|
|
377
|
-
message: this.$t2(
|
|
419
|
+
message: this.$t2(
|
|
420
|
+
"请选择需要删除的文件夹",
|
|
421
|
+
"components.fileLibrary.deleteCategoryTip"
|
|
422
|
+
),
|
|
378
423
|
type: "error",
|
|
379
424
|
showClose: true,
|
|
380
425
|
duration: 3000,
|
|
381
426
|
});
|
|
382
427
|
return;
|
|
383
428
|
}
|
|
384
|
-
this.$baseConfirm(
|
|
429
|
+
this.$baseConfirm(
|
|
430
|
+
this.$t2(
|
|
431
|
+
"您确定要删除文件夹吗?",
|
|
432
|
+
"components.fileLibrary.deleteCategoryConfirmTip"
|
|
433
|
+
)
|
|
434
|
+
).then(() => {
|
|
385
435
|
let categoryId = category ? category.id : this.currentCategoryId;
|
|
386
436
|
this.$http({
|
|
387
437
|
method: "post",
|
|
@@ -450,7 +500,7 @@ modules = {
|
|
|
450
500
|
if (!field) field = "medium";
|
|
451
501
|
return this.$commonFileUtil.getShowUrl(
|
|
452
502
|
attachment.domain +
|
|
453
|
-
|
|
503
|
+
(attachment[field] ? attachment[field] : attachment.url)
|
|
454
504
|
);
|
|
455
505
|
},
|
|
456
506
|
isVideo(fileSuffix) {
|
|
@@ -492,7 +542,7 @@ modules = {
|
|
|
492
542
|
};
|
|
493
543
|
|
|
494
544
|
let parent = this.currentCategoryId;
|
|
495
|
-
this.$
|
|
545
|
+
this.$commonHttp({
|
|
496
546
|
method: "post",
|
|
497
547
|
url: this.current_prefix + "/file_obj/listPage",
|
|
498
548
|
data: {
|
|
@@ -511,21 +561,25 @@ modules = {
|
|
|
511
561
|
let checkBillDatas = this.checkBillDatas;
|
|
512
562
|
let done = (res) => {
|
|
513
563
|
this.page = res;
|
|
514
|
-
}
|
|
564
|
+
};
|
|
515
565
|
let preHandlePage = this.option.preHandlePage;
|
|
516
566
|
if (preHandlePage) {
|
|
517
|
-
preHandlePage({page, objectForeignId, checkBillDatas, done})
|
|
567
|
+
preHandlePage({ page, objectForeignId, checkBillDatas, done });
|
|
518
568
|
} else {
|
|
519
569
|
done(page);
|
|
520
570
|
}
|
|
521
|
-
}
|
|
571
|
+
},
|
|
522
572
|
});
|
|
523
573
|
},
|
|
524
574
|
addFile() {
|
|
525
575
|
let currentFileCategory = this.currentFileCategory;
|
|
526
576
|
if (!currentFileCategory || !currentFileCategory.id) {
|
|
527
577
|
this.$message({
|
|
528
|
-
message: this.$t2(
|
|
578
|
+
message: this.$t2(
|
|
579
|
+
"文件夹[" + this.title + "]不允许上传",
|
|
580
|
+
"components.fileLibrary.uploadTip1",
|
|
581
|
+
{ title: this.title }
|
|
582
|
+
),
|
|
529
583
|
type: "error",
|
|
530
584
|
showClose: true,
|
|
531
585
|
duration: 3000,
|
|
@@ -536,7 +590,11 @@ modules = {
|
|
|
536
590
|
if (!this.checkBillDatas.length) {
|
|
537
591
|
let billName = this.billConfig.name;
|
|
538
592
|
this.$message({
|
|
539
|
-
message: this.$t2(
|
|
593
|
+
message: this.$t2(
|
|
594
|
+
"请选择" + billName,
|
|
595
|
+
"components.fileLibrary.uploadTip2",
|
|
596
|
+
{ billName: billName }
|
|
597
|
+
),
|
|
540
598
|
type: "error",
|
|
541
599
|
showClose: true,
|
|
542
600
|
duration: 3000,
|
|
@@ -596,8 +654,8 @@ modules = {
|
|
|
596
654
|
if (attachment) {
|
|
597
655
|
if (attachment.status == 1) {
|
|
598
656
|
this.$message({
|
|
599
|
-
message:
|
|
600
|
-
type:
|
|
657
|
+
message: "归档文件不允许删除",
|
|
658
|
+
type: "error",
|
|
601
659
|
showClose: true,
|
|
602
660
|
duration: 3000,
|
|
603
661
|
});
|
|
@@ -607,13 +665,13 @@ modules = {
|
|
|
607
665
|
if (attachment.dirs) {
|
|
608
666
|
categorys.push(attachment);
|
|
609
667
|
}
|
|
610
|
-
checkRows = [attachment]
|
|
668
|
+
checkRows = [attachment];
|
|
611
669
|
} else {
|
|
612
670
|
checkRows = this.getCheckRows();
|
|
613
|
-
if (checkRows.find(row => row.status == 1)) {
|
|
671
|
+
if (checkRows.find((row) => row.status == 1)) {
|
|
614
672
|
this.$message({
|
|
615
|
-
message:
|
|
616
|
-
type:
|
|
673
|
+
message: "归档文件不允许删除",
|
|
674
|
+
type: "error",
|
|
617
675
|
showClose: true,
|
|
618
676
|
duration: 3000,
|
|
619
677
|
});
|
|
@@ -624,7 +682,10 @@ modules = {
|
|
|
624
682
|
}
|
|
625
683
|
if (!data.length) {
|
|
626
684
|
this.$message({
|
|
627
|
-
message: this.$t2(
|
|
685
|
+
message: this.$t2(
|
|
686
|
+
"请选择需要删除的文件",
|
|
687
|
+
"components.fileLibrary.deleteFileTip"
|
|
688
|
+
),
|
|
628
689
|
type: "error",
|
|
629
690
|
showClose: true,
|
|
630
691
|
duration: 3000,
|
|
@@ -632,13 +693,17 @@ modules = {
|
|
|
632
693
|
return;
|
|
633
694
|
}
|
|
634
695
|
|
|
635
|
-
let deleteDirAuth =
|
|
696
|
+
let deleteDirAuth =
|
|
697
|
+
this.fileObjAuth && this.fileObjAuth.deleteDirAuth ? 1 : 0;
|
|
636
698
|
let deleteAuth = this.fileObjAuth && this.fileObjAuth.deleteAuth ? 1 : 0;
|
|
637
699
|
for (let i = 0; i < checkRows.length; i++) {
|
|
638
700
|
let item = checkRows[i];
|
|
639
701
|
if (item.dirs && !deleteDirAuth) {
|
|
640
702
|
this.$message({
|
|
641
|
-
message: this.$t2(
|
|
703
|
+
message: this.$t2(
|
|
704
|
+
"您没有删除文件夹的权限!",
|
|
705
|
+
"components.fileLibrary.deleteCategoryTip2"
|
|
706
|
+
),
|
|
642
707
|
type: "error",
|
|
643
708
|
showClose: true,
|
|
644
709
|
duration: 3000,
|
|
@@ -646,7 +711,10 @@ modules = {
|
|
|
646
711
|
return;
|
|
647
712
|
} else if (!item.dirs && !deleteAuth) {
|
|
648
713
|
this.$message({
|
|
649
|
-
message: this.$t2(
|
|
714
|
+
message: this.$t2(
|
|
715
|
+
"您没有删除文件的权限!",
|
|
716
|
+
"components.fileLibrary.deleteFileTip2"
|
|
717
|
+
),
|
|
650
718
|
type: "error",
|
|
651
719
|
showClose: true,
|
|
652
720
|
duration: 3000,
|
|
@@ -656,7 +724,9 @@ modules = {
|
|
|
656
724
|
}
|
|
657
725
|
|
|
658
726
|
// let data = [attachment.id];
|
|
659
|
-
this.$baseConfirm(
|
|
727
|
+
this.$baseConfirm(
|
|
728
|
+
this.$t2("您确定要删除吗?", "components.fileLibrary.deleteConfirmTip")
|
|
729
|
+
).then(() => {
|
|
660
730
|
this.$http({
|
|
661
731
|
method: "post",
|
|
662
732
|
url: this.current_prefix + "/file_obj/setDisable",
|
|
@@ -680,7 +750,9 @@ modules = {
|
|
|
680
750
|
},
|
|
681
751
|
initTableList() {
|
|
682
752
|
let that = this;
|
|
683
|
-
let customColumns = this.option.customColumns
|
|
753
|
+
let customColumns = this.option.customColumns
|
|
754
|
+
? this.option.customColumns()
|
|
755
|
+
: [];
|
|
684
756
|
let tableOption = {
|
|
685
757
|
vue: this,
|
|
686
758
|
tableRef: "table-m1",
|
|
@@ -693,14 +765,14 @@ modules = {
|
|
|
693
765
|
},
|
|
694
766
|
},
|
|
695
767
|
columns: [
|
|
696
|
-
{type: "checkbox", width: 48, resizable: false, fixed: "left"},
|
|
768
|
+
{ type: "checkbox", width: 48, resizable: false, fixed: "left" },
|
|
697
769
|
{
|
|
698
|
-
title: this.$t2(
|
|
770
|
+
title: this.$t2("文件名称", "components.fileLibrary.fileName"),
|
|
699
771
|
field: "fileName",
|
|
700
772
|
width: 250,
|
|
701
773
|
fixed: "left",
|
|
702
774
|
slots: {
|
|
703
|
-
default: ({row, $rowIndex}) => {
|
|
775
|
+
default: ({ row, $rowIndex }) => {
|
|
704
776
|
let h = this.$createElement;
|
|
705
777
|
if (!row.dirs) {
|
|
706
778
|
let showUrl = that.getShowUrl(row, "thumbnail");
|
|
@@ -723,7 +795,10 @@ modules = {
|
|
|
723
795
|
props: {
|
|
724
796
|
enterable: false,
|
|
725
797
|
effect: "dark",
|
|
726
|
-
content: this.$t2(
|
|
798
|
+
content: this.$t2(
|
|
799
|
+
"预览",
|
|
800
|
+
"components.fileLibrary.preview"
|
|
801
|
+
),
|
|
727
802
|
placement: "top",
|
|
728
803
|
"popper-class": "tooltip-skin",
|
|
729
804
|
},
|
|
@@ -761,7 +836,7 @@ modules = {
|
|
|
761
836
|
},
|
|
762
837
|
[
|
|
763
838
|
h("svg-icon", {
|
|
764
|
-
props: {"icon-class": "ico-wenjianjia"},
|
|
839
|
+
props: { "icon-class": "ico-wenjianjia" },
|
|
765
840
|
}),
|
|
766
841
|
h("span", row.fileName),
|
|
767
842
|
]
|
|
@@ -774,11 +849,11 @@ modules = {
|
|
|
774
849
|
},
|
|
775
850
|
},
|
|
776
851
|
{
|
|
777
|
-
title: this.$t2(
|
|
852
|
+
title: this.$t2("文件大小", "components.fileLibrary.fileSize"),
|
|
778
853
|
field: "fileSize",
|
|
779
854
|
width: 150,
|
|
780
855
|
slots: {
|
|
781
|
-
default: ({row, $rowIndex}) => {
|
|
856
|
+
default: ({ row, $rowIndex }) => {
|
|
782
857
|
if (!row.dirs) {
|
|
783
858
|
return this.formatFileSize(row.fileSize);
|
|
784
859
|
}
|
|
@@ -786,41 +861,53 @@ modules = {
|
|
|
786
861
|
},
|
|
787
862
|
},
|
|
788
863
|
{
|
|
789
|
-
title: this.$t2(
|
|
864
|
+
title: this.$t2("版本号", "components.fileLibrary.fileRev"),
|
|
790
865
|
field: "rev",
|
|
791
866
|
width: 150,
|
|
792
867
|
slots: {
|
|
793
|
-
default: ({row, $rowIndex}) => {
|
|
868
|
+
default: ({ row, $rowIndex }) => {
|
|
794
869
|
if (!row.dirs) {
|
|
795
870
|
return row.rev;
|
|
796
871
|
}
|
|
797
|
-
}
|
|
798
|
-
}
|
|
872
|
+
},
|
|
873
|
+
},
|
|
874
|
+
},
|
|
875
|
+
{
|
|
876
|
+
title: this.$t2("分辨率", "components.fileLibrary.widthHeight"),
|
|
877
|
+
field: "widthHeight",
|
|
878
|
+
width: 150,
|
|
879
|
+
},
|
|
880
|
+
{
|
|
881
|
+
title: this.$t2("所属对象描述", "components.fileLibrary.note"),
|
|
882
|
+
field: "note",
|
|
883
|
+
width: 250,
|
|
799
884
|
},
|
|
800
|
-
{title: this.$t2('分辨率', 'components.fileLibrary.widthHeight'), field: "widthHeight", width: 150},
|
|
801
|
-
{title: this.$t2('所属对象描述', 'components.fileLibrary.note'), field: "note", width: 250},
|
|
802
885
|
{
|
|
803
|
-
title:
|
|
804
|
-
field:
|
|
886
|
+
title: "状态",
|
|
887
|
+
field: "status",
|
|
805
888
|
width: 150,
|
|
806
889
|
slots: {
|
|
807
|
-
default: ({row, $rowIndex}) => {
|
|
890
|
+
default: ({ row, $rowIndex }) => {
|
|
808
891
|
if (!row.dirs) {
|
|
809
|
-
return row.status == 1 ?
|
|
892
|
+
return row.status == 1 ? "已归档" : "未归档";
|
|
810
893
|
}
|
|
811
|
-
}
|
|
812
|
-
}
|
|
894
|
+
},
|
|
895
|
+
},
|
|
813
896
|
},
|
|
814
897
|
{
|
|
815
|
-
title: this.$t2(
|
|
898
|
+
title: this.$t2("文件编码", "components.fileLibrary.fileSn"),
|
|
816
899
|
field: "fileSn",
|
|
817
|
-
width: 150
|
|
900
|
+
width: 150,
|
|
818
901
|
},
|
|
819
902
|
...customColumns,
|
|
820
|
-
{
|
|
903
|
+
{
|
|
904
|
+
title: this.$t2("创建人", "components.fileLibrary.createBy"),
|
|
905
|
+
field: "_createBy",
|
|
906
|
+
width: 150,
|
|
907
|
+
},
|
|
821
908
|
{
|
|
822
909
|
field: "createDate",
|
|
823
|
-
title: this.$t2(
|
|
910
|
+
title: this.$t2("创建时间", "components.fileLibrary.createDate"),
|
|
824
911
|
width: 150,
|
|
825
912
|
},
|
|
826
913
|
{
|
|
@@ -829,12 +916,11 @@ modules = {
|
|
|
829
916
|
title: "",
|
|
830
917
|
sortable: false,
|
|
831
918
|
slots: {
|
|
832
|
-
default: "operate"
|
|
919
|
+
default: "operate",
|
|
833
920
|
},
|
|
834
921
|
},
|
|
835
922
|
],
|
|
836
|
-
callback(a, b) {
|
|
837
|
-
},
|
|
923
|
+
callback(a, b) {},
|
|
838
924
|
};
|
|
839
925
|
this.$vxeTableUtil.initVxeTable(tableOption).then((opts) => {
|
|
840
926
|
this.vxeOption = opts;
|
|
@@ -844,15 +930,21 @@ modules = {
|
|
|
844
930
|
let customFileButtons = this.customFileButtons;
|
|
845
931
|
let nodes = [];
|
|
846
932
|
customFileButtons.forEach((fileButton, index) => {
|
|
847
|
-
if (
|
|
933
|
+
if (
|
|
934
|
+
fileButton.dirs === null ||
|
|
935
|
+
fileButton.dirs === undefined ||
|
|
936
|
+
attachment.dirs === fileButton.dirs
|
|
937
|
+
) {
|
|
848
938
|
if (this.customFileButtonVisable(fileButton, attachment)) {
|
|
849
|
-
nodes.push(
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
939
|
+
nodes.push(
|
|
940
|
+
this.getBtnVnode({
|
|
941
|
+
class: fileButton.icon,
|
|
942
|
+
title: fileButton.label,
|
|
943
|
+
click: (event) => {
|
|
944
|
+
that.customFileButtonEvent(fileButton, attachment);
|
|
945
|
+
},
|
|
946
|
+
})
|
|
947
|
+
);
|
|
856
948
|
}
|
|
857
949
|
}
|
|
858
950
|
});
|
|
@@ -894,7 +986,7 @@ modules = {
|
|
|
894
986
|
);
|
|
895
987
|
}
|
|
896
988
|
},
|
|
897
|
-
changePageNew({type, currentPage, pageSize, $event}) {
|
|
989
|
+
changePageNew({ type, currentPage, pageSize, $event }) {
|
|
898
990
|
this.checkList = [];
|
|
899
991
|
this.checkAll = false;
|
|
900
992
|
this.initAttchInfo({
|
|
@@ -944,7 +1036,7 @@ modules = {
|
|
|
944
1036
|
if (page.pages > page.current) {
|
|
945
1037
|
rows.push({
|
|
946
1038
|
parent: param.parent,
|
|
947
|
-
fileName: this.$t2(
|
|
1039
|
+
fileName: this.$t2("更多", "components.fileLibrary.more"),
|
|
948
1040
|
moreBtn: true,
|
|
949
1041
|
leaf: true,
|
|
950
1042
|
pages: page.pages,
|
|
@@ -995,7 +1087,7 @@ modules = {
|
|
|
995
1087
|
if (page.pages > page.current) {
|
|
996
1088
|
rows.push({
|
|
997
1089
|
parent: param.parent,
|
|
998
|
-
fileName: this.$t2(
|
|
1090
|
+
fileName: this.$t2("更多", "components.fileLibrary.more"),
|
|
999
1091
|
moreBtn: true,
|
|
1000
1092
|
leaf: true,
|
|
1001
1093
|
pages: page.pages,
|
|
@@ -1025,9 +1117,9 @@ modules = {
|
|
|
1025
1117
|
node.childNodes[0].expand();
|
|
1026
1118
|
if (this.option.treeExpandAll) {
|
|
1027
1119
|
//默认全部展开树分类
|
|
1028
|
-
node.childNodes[0].childNodes.forEach(item => {
|
|
1120
|
+
node.childNodes[0].childNodes.forEach((item) => {
|
|
1029
1121
|
if (!item.data.leaf) item.expand();
|
|
1030
|
-
})
|
|
1122
|
+
});
|
|
1031
1123
|
}
|
|
1032
1124
|
}, 200);
|
|
1033
1125
|
this.$nextTick(() => {
|
|
@@ -1039,9 +1131,9 @@ modules = {
|
|
|
1039
1131
|
this.$nextTick(() => {
|
|
1040
1132
|
if (this.option.treeExpandAll) {
|
|
1041
1133
|
//默认全部展开树分类
|
|
1042
|
-
node.childNodes.forEach(item => {
|
|
1134
|
+
node.childNodes.forEach((item) => {
|
|
1043
1135
|
if (!item.data.leaf) item.expand();
|
|
1044
|
-
})
|
|
1136
|
+
});
|
|
1045
1137
|
}
|
|
1046
1138
|
callback && callback();
|
|
1047
1139
|
});
|
|
@@ -1072,7 +1164,10 @@ modules = {
|
|
|
1072
1164
|
let currentFileCategory = category || this.currentFileCategory;
|
|
1073
1165
|
if (!currentFileCategory) {
|
|
1074
1166
|
this.$message({
|
|
1075
|
-
message: this.$t2(
|
|
1167
|
+
message: this.$t2(
|
|
1168
|
+
"请选择文件夹",
|
|
1169
|
+
"components.fileLibrary.editCategoryTip"
|
|
1170
|
+
),
|
|
1076
1171
|
type: "error",
|
|
1077
1172
|
showClose: true,
|
|
1078
1173
|
duration: 3000,
|
|
@@ -1085,7 +1180,12 @@ modules = {
|
|
|
1085
1180
|
confirmEditCategoryDialog() {
|
|
1086
1181
|
this.$refs.editCategoryForm.$baseValidate((valid) => {
|
|
1087
1182
|
if (valid) {
|
|
1088
|
-
this.$baseConfirm(
|
|
1183
|
+
this.$baseConfirm(
|
|
1184
|
+
this.$t2(
|
|
1185
|
+
"您确定要保存吗?",
|
|
1186
|
+
"components.fileLibrary.saveConfirmTip"
|
|
1187
|
+
)
|
|
1188
|
+
).then(() => {
|
|
1089
1189
|
var url =
|
|
1090
1190
|
this.current_prefix +
|
|
1091
1191
|
(this.editCategory.id ? "/file_obj/update" : "/file_obj/save");
|
|
@@ -1111,8 +1211,7 @@ modules = {
|
|
|
1111
1211
|
message: res.content,
|
|
1112
1212
|
type: "success",
|
|
1113
1213
|
duration: 500,
|
|
1114
|
-
onClose: (t) => {
|
|
1115
|
-
},
|
|
1214
|
+
onClose: (t) => {},
|
|
1116
1215
|
});
|
|
1117
1216
|
let nodeData = res.objx;
|
|
1118
1217
|
nodeData.leaf = !nodeData.hasChild;
|
|
@@ -1207,7 +1306,10 @@ modules = {
|
|
|
1207
1306
|
let checkRows = this.getCheckRows();
|
|
1208
1307
|
if (!checkRows.length) {
|
|
1209
1308
|
this.$message({
|
|
1210
|
-
message: this.$t2(
|
|
1309
|
+
message: this.$t2(
|
|
1310
|
+
"请选择需要下载的文件",
|
|
1311
|
+
"components.fileLibrary.downloadTip"
|
|
1312
|
+
),
|
|
1211
1313
|
type: "error",
|
|
1212
1314
|
showClose: true,
|
|
1213
1315
|
duration: 3000,
|
|
@@ -1223,7 +1325,10 @@ modules = {
|
|
|
1223
1325
|
let checkRows = this.getCheckRows();
|
|
1224
1326
|
if (!checkRows.length) {
|
|
1225
1327
|
this.$message({
|
|
1226
|
-
message: this.$t2(
|
|
1328
|
+
message: this.$t2(
|
|
1329
|
+
"请选择需要下载的文件",
|
|
1330
|
+
"components.fileLibrary.downloadTip"
|
|
1331
|
+
),
|
|
1227
1332
|
type: "error",
|
|
1228
1333
|
showClose: true,
|
|
1229
1334
|
duration: 3000,
|
|
@@ -1269,7 +1374,7 @@ modules = {
|
|
|
1269
1374
|
let ids = rows.map((row) => row.id);
|
|
1270
1375
|
let data = {
|
|
1271
1376
|
ids: ids,
|
|
1272
|
-
objectForeignId: this.objectForeignId
|
|
1377
|
+
objectForeignId: this.objectForeignId,
|
|
1273
1378
|
};
|
|
1274
1379
|
if (this.option.foreignDirs === true) {
|
|
1275
1380
|
data.foreignDirs = true;
|
|
@@ -1417,12 +1522,21 @@ modules = {
|
|
|
1417
1522
|
if (fileStoreArea) {
|
|
1418
1523
|
this.fileStoreArea = fileStoreArea;
|
|
1419
1524
|
this.title = fileStoreArea.storeAreaName;
|
|
1525
|
+
let tabType = this.option.tabType;
|
|
1526
|
+
if (tabType) {
|
|
1527
|
+
this.showType = tabType === "table" ? 2 : 1;
|
|
1528
|
+
}
|
|
1420
1529
|
this.$nextTick(() => {
|
|
1421
|
-
treeScollx({target: this, type: "default"});
|
|
1530
|
+
treeScollx({ target: this, type: "default" });
|
|
1422
1531
|
this.treeFlag = true;
|
|
1423
1532
|
});
|
|
1424
1533
|
} else {
|
|
1425
|
-
this.$baseAlert(
|
|
1534
|
+
this.$baseAlert(
|
|
1535
|
+
this.$t2(
|
|
1536
|
+
"文档工作区未维护",
|
|
1537
|
+
"components.fileLibrary.fileStoreAreaTip"
|
|
1538
|
+
)
|
|
1539
|
+
);
|
|
1426
1540
|
}
|
|
1427
1541
|
},
|
|
1428
1542
|
});
|
|
@@ -1522,7 +1636,10 @@ modules = {
|
|
|
1522
1636
|
let checkRows = this.getCheckRows();
|
|
1523
1637
|
if (!checkRows.length) {
|
|
1524
1638
|
this.$message({
|
|
1525
|
-
message: this.$t2(
|
|
1639
|
+
message: this.$t2(
|
|
1640
|
+
"请选择需要替换的文件",
|
|
1641
|
+
"components.fileLibrary.replaceFileTip"
|
|
1642
|
+
),
|
|
1526
1643
|
type: "error",
|
|
1527
1644
|
showClose: true,
|
|
1528
1645
|
duration: 3000,
|
|
@@ -1545,7 +1662,7 @@ modules = {
|
|
|
1545
1662
|
},
|
|
1546
1663
|
});
|
|
1547
1664
|
},
|
|
1548
|
-
checkBatchReplace({files, done}) {
|
|
1665
|
+
checkBatchReplace({ files, done }) {
|
|
1549
1666
|
let newFileObjDTOs = files.map((file) => {
|
|
1550
1667
|
return {
|
|
1551
1668
|
name: file.name,
|
|
@@ -1743,35 +1860,37 @@ modules = {
|
|
|
1743
1860
|
},
|
|
1744
1861
|
customFileButtonEvent(customFileButton, attachment) {
|
|
1745
1862
|
customFileButton.onclick({
|
|
1746
|
-
row: attachment
|
|
1863
|
+
row: attachment,
|
|
1747
1864
|
});
|
|
1748
1865
|
},
|
|
1749
1866
|
customToobarButtonEvent(customFileButton) {
|
|
1750
1867
|
customFileButton.onclick({
|
|
1751
|
-
rows: this.checkRows
|
|
1868
|
+
rows: this.checkRows,
|
|
1752
1869
|
});
|
|
1753
1870
|
},
|
|
1754
1871
|
customFileButtonVisable(customFileButton, attachment) {
|
|
1755
1872
|
if (customFileButton.visable === "function") {
|
|
1756
1873
|
let checkBillDatas = this.checkBillDatas;
|
|
1757
|
-
return customFileButton.visable({row: attachment, checkBillDatas});
|
|
1758
|
-
} else if (
|
|
1874
|
+
return customFileButton.visable({ row: attachment, checkBillDatas });
|
|
1875
|
+
} else if (
|
|
1876
|
+
customFileButton.visable === null ||
|
|
1877
|
+
customFileButton.visable == undefined
|
|
1878
|
+
) {
|
|
1759
1879
|
return true;
|
|
1760
1880
|
} else {
|
|
1761
1881
|
return customFileButton.visable;
|
|
1762
1882
|
}
|
|
1763
1883
|
},
|
|
1764
1884
|
downloadSingerFile(attachment) {
|
|
1765
|
-
|
|
1766
1885
|
let fileObjAuth = this.fileObjAuth;
|
|
1767
|
-
if (attachment.dirs || !fileObjAuth.downloadAuth) return
|
|
1886
|
+
if (attachment.dirs || !fileObjAuth.downloadAuth) return;
|
|
1768
1887
|
let url = attachment.domain + attachment.url;
|
|
1769
1888
|
if (this.fileStoreArea.toDownWatermark && fileObjAuth.downWatermarkAuth) {
|
|
1770
1889
|
let loginAccount = this.$store.getters.loginAccount;
|
|
1771
|
-
url +=
|
|
1890
|
+
url += "?_w=" + encodeURIComponent(encode(loginAccount));
|
|
1772
1891
|
}
|
|
1773
|
-
this.$commonFileUtil.downloadFile(url, attachment.fileName)
|
|
1774
|
-
}
|
|
1892
|
+
this.$commonFileUtil.downloadFile(url, attachment.fileName);
|
|
1893
|
+
},
|
|
1775
1894
|
},
|
|
1776
1895
|
};
|
|
1777
1896
|
export default modules;
|