cloud-web-corejs 1.0.54-dev.40 → 1.0.54-dev.400
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 +11 -3
- package/src/App.vue +21 -20
- package/src/api/user.js +8 -0
- package/src/components/Qrcode/fileParse.vue +0 -1
- package/src/components/Tinymce/index.vue +75 -53
- package/src/components/VabUpload/index.js +49 -1
- package/src/components/VabUpload/mixins.js +1547 -1
- package/src/components/VabUpload/propertiesDialog.vue +1 -1
- package/src/components/VabUpload/view.vue +203 -120
- package/src/components/advancedSearchDialog/mixins.js +1 -1
- package/src/components/baseAttachment/index.vue +49 -40
- package/src/components/baseAttachment/mixins.js +1 -1
- package/src/components/baseInputExport/mixins.js +1 -1
- package/src/components/baseTabs/mixins.js +166 -1
- package/src/components/errorMsg/mixins.js +6 -5
- package/src/components/excelExport/button.vue +57 -4
- package/src/components/excelExport/exportFieldDialog.vue +5 -4
- package/src/components/excelExport/index.js +48 -5
- package/src/components/excelExport/index.vue +63 -8
- package/src/components/excelExport/mixins.js +938 -2
- package/src/components/excelImport/mixins.js +2 -1
- package/src/components/fileLibrary/fileObjAuthEditDialog.vue +6 -0
- package/src/components/fileLibrary/filterDialog.vue +430 -0
- package/src/components/fileLibrary/index.vue +23 -24
- 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 +335 -212
- 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 +217 -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 +34 -0
- package/src/components/obsUpload/index.vue +231 -0
- package/src/components/obsUpload/mixins.js +1457 -0
- package/src/components/scriptDescription/button.vue +12 -4
- package/src/components/statusTag/mixins.js +1 -1
- package/src/components/table/CellSlot.vue +1 -0
- package/src/components/table/index.js +1049 -10
- 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 +326 -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 +44 -30
- package/src/components/wf/addOpinionButton.vue +57 -0
- package/src/components/wf/content.vue +833 -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 +95 -0
- package/src/components/wf/wf.js +1 -1
- package/src/components/wf/wfFlowEleScriptDialog.vue +89 -0
- package/src/components/wf/wfStartDialog.vue +70 -42
- package/src/components/wf/wfTaskUserRangeDialog.vue +65 -0
- package/src/components/wf/wfUtil.js +1 -1
- package/src/components/xform/form-designer/designer.js +5 -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.vue +961 -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 +16 -4
- 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 +120 -72
- package/src/components/xform/form-designer/form-widget/field-widget/a-link-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/a-text-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/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/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/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 +1634 -16
- package/src/components/xform/form-designer/form-widget/field-widget/form-item-wrapper.vue +645 -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/import-button-widget.vue +10 -8
- package/src/components/xform/form-designer/form-widget/field-widget/import2-button-widget.vue +81 -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 +185 -0
- package/src/components/xform/form-designer/form-widget/field-widget/print-button-widget.vue +35 -27
- package/src/components/xform/form-designer/form-widget/field-widget/print-detail-button-widget.vue +108 -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 +25 -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 +2 -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 +6 -1
- 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 +2 -170
- package/src/components/xform/form-designer/form-widget/field-widget/vabUpload-widget.vue +259 -58
- package/src/components/xform/form-designer/form-widget/field-widget/vabUpload2-widget.vue +733 -0
- package/src/components/xform/form-designer/indexMixin.js +3 -2
- package/src/components/xform/form-designer/setting-panel/form-setting.vue +891 -157
- 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 +1160 -511
- 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/copyButton-editor.vue +36 -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 +2 -2
- 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 +70 -19
- package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import2-button-editor.vue +89 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-print-button/print-button-editor.vue +8 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-print-button/print-detail-button-editor.vue +91 -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 +30 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-vabUpload2/field-vabUpload2-editor.vue +63 -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/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 +384 -53
- 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 +31 -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 +1604 -871
- 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/index.vue +67 -20
- package/src/components/xform/form-render/indexMixin.js +3145 -3
- package/src/components/xform/lang/zh-CN.js +22 -4
- package/src/components/xform/mixins/defaultHandle.js +340 -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 +835 -0
- package/src/components/xform/utils/util.js +1451 -1
- package/src/components/xform/utils/validators.js +1 -5
- package/src/index.js +210 -190
- 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/mixins/selectDialog/index.js +266 -1
- package/src/mixins/table/index.js +152 -0
- package/src/mixins/tableTree/index.js +1 -1
- package/src/router/modules/customer.js +79 -8
- package/src/store/config/index.js +1 -532
- package/src/store/getters.js +2 -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 +315 -2
- 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 +1113 -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 +76 -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 +1 -1
- package/src/views/bd/setting/form_script/list1.vue +4 -4
- 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 +105 -0
- 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 +5 -5
- package/src/views/bd/setting/form_template/mixins/batchWfObjConfigDialog.js +282 -0
- 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 +12 -0
- package/src/views/bd/setting/form_template/otherAuthDialog.vue +83 -0
- package/src/views/bd/setting/form_template/wfObjConfigDialog.vue +140 -75
- package/src/views/bd/setting/form_template/{list2.vue → wf_list.vue} +25 -35
- 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 +93 -0
- package/src/views/bd/setting/logic_param/mixins/list.js +369 -0
- package/src/views/bd/setting/menu_kind/list.vue +4 -0
- 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 +4 -4
- 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/area/dialog.vue +3 -3
- 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 +1 -1
- 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 -154
- package/src/views/user/company_info/edit.vue +1 -1
- package/src/views/user/extend_datasource/dialog.vue +1 -0
- package/src/views/user/extend_datasource/edit.vue +3 -0
- package/src/views/user/extend_datasource/list.vue +2 -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 +775 -749
- package/src/views/user/form/vform/out_render.vue +1 -1
- package/src/views/user/form/vform/render.vue +8 -4
- package/src/views/user/form/view/edit.vue +38 -37
- package/src/views/user/form/view/list.vue +142 -45
- 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/login/default.vue +33 -4
- package/src/views/user/login/indexMixin.js +117 -3
- package/src/views/user/notify_message/dialog.vue +38 -18
- 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 +17 -0
- 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/dialog.vue +70 -48
- package/src/views/user/role/edit.vue +499 -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 +509 -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 +230 -0
- package/src/views/user/wf/wf_transfer_setting/list.vue +309 -0
- package/src/views/bd/setting/form_template/mixins/list2.js +0 -12
|
@@ -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,36 @@ 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
|
+
let size = keys.length;
|
|
275
|
+
let tree = this.$refs.tree;
|
|
276
|
+
|
|
277
|
+
let parent = null;
|
|
278
|
+
let loopDo = (index) => {
|
|
279
|
+
if (size <= index) return;
|
|
280
|
+
let key = keys[index];
|
|
281
|
+
let node = tree.getNode(key + "");
|
|
282
|
+
let data = node.data;
|
|
283
|
+
if (size == index + 1) {
|
|
284
|
+
tree.setCurrentKey(data);
|
|
285
|
+
this.handleNodeClick(data, node, this);
|
|
286
|
+
return;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
if (!data.leaf) {
|
|
290
|
+
node.expand(() => {
|
|
291
|
+
loopDo(index + 1);
|
|
292
|
+
});
|
|
293
|
+
}
|
|
294
|
+
};
|
|
295
|
+
this.getTopNode().expand(() => {
|
|
296
|
+
loopDo(0);
|
|
297
|
+
});
|
|
298
|
+
},
|
|
265
299
|
getTopNode() {
|
|
266
300
|
return this.$refs.tree.root.childNodes[0];
|
|
267
301
|
},
|
|
@@ -302,7 +336,12 @@ modules = {
|
|
|
302
336
|
let checkRows = this.getCheckRows();
|
|
303
337
|
if (!checkRows.length) {
|
|
304
338
|
let msg =
|
|
305
|
-
handleType == 1
|
|
339
|
+
handleType == 1
|
|
340
|
+
? this.$t2("请选择需要移动的文件", "components.fileLibrary.moveTip")
|
|
341
|
+
: this.$t2(
|
|
342
|
+
"请选择需要复制的文件",
|
|
343
|
+
"components.fileLibrary.copyTip"
|
|
344
|
+
);
|
|
306
345
|
this.$message({
|
|
307
346
|
message: msg,
|
|
308
347
|
type: "error",
|
|
@@ -374,14 +413,22 @@ modules = {
|
|
|
374
413
|
deleteCategory(category) {
|
|
375
414
|
if (!category && !this.currentCategoryId) {
|
|
376
415
|
this.$message({
|
|
377
|
-
message: this.$t2(
|
|
416
|
+
message: this.$t2(
|
|
417
|
+
"请选择需要删除的文件夹",
|
|
418
|
+
"components.fileLibrary.deleteCategoryTip"
|
|
419
|
+
),
|
|
378
420
|
type: "error",
|
|
379
421
|
showClose: true,
|
|
380
422
|
duration: 3000,
|
|
381
423
|
});
|
|
382
424
|
return;
|
|
383
425
|
}
|
|
384
|
-
this.$baseConfirm(
|
|
426
|
+
this.$baseConfirm(
|
|
427
|
+
this.$t2(
|
|
428
|
+
"您确定要删除文件夹吗?",
|
|
429
|
+
"components.fileLibrary.deleteCategoryConfirmTip"
|
|
430
|
+
)
|
|
431
|
+
).then(() => {
|
|
385
432
|
let categoryId = category ? category.id : this.currentCategoryId;
|
|
386
433
|
this.$http({
|
|
387
434
|
method: "post",
|
|
@@ -450,7 +497,7 @@ modules = {
|
|
|
450
497
|
if (!field) field = "medium";
|
|
451
498
|
return this.$commonFileUtil.getShowUrl(
|
|
452
499
|
attachment.domain +
|
|
453
|
-
|
|
500
|
+
(attachment[field] ? attachment[field] : attachment.url)
|
|
454
501
|
);
|
|
455
502
|
},
|
|
456
503
|
isVideo(fileSuffix) {
|
|
@@ -492,7 +539,7 @@ modules = {
|
|
|
492
539
|
};
|
|
493
540
|
|
|
494
541
|
let parent = this.currentCategoryId;
|
|
495
|
-
this.$
|
|
542
|
+
this.$commonHttp({
|
|
496
543
|
method: "post",
|
|
497
544
|
url: this.current_prefix + "/file_obj/listPage",
|
|
498
545
|
data: {
|
|
@@ -511,21 +558,25 @@ modules = {
|
|
|
511
558
|
let checkBillDatas = this.checkBillDatas;
|
|
512
559
|
let done = (res) => {
|
|
513
560
|
this.page = res;
|
|
514
|
-
}
|
|
561
|
+
};
|
|
515
562
|
let preHandlePage = this.option.preHandlePage;
|
|
516
563
|
if (preHandlePage) {
|
|
517
|
-
preHandlePage({page, objectForeignId, checkBillDatas, done})
|
|
564
|
+
preHandlePage({ page, objectForeignId, checkBillDatas, done });
|
|
518
565
|
} else {
|
|
519
566
|
done(page);
|
|
520
567
|
}
|
|
521
|
-
}
|
|
568
|
+
},
|
|
522
569
|
});
|
|
523
570
|
},
|
|
524
571
|
addFile() {
|
|
525
572
|
let currentFileCategory = this.currentFileCategory;
|
|
526
573
|
if (!currentFileCategory || !currentFileCategory.id) {
|
|
527
574
|
this.$message({
|
|
528
|
-
message: this.$t2(
|
|
575
|
+
message: this.$t2(
|
|
576
|
+
"文件夹[" + this.title + "]不允许上传",
|
|
577
|
+
"components.fileLibrary.uploadTip1",
|
|
578
|
+
{ title: this.title }
|
|
579
|
+
),
|
|
529
580
|
type: "error",
|
|
530
581
|
showClose: true,
|
|
531
582
|
duration: 3000,
|
|
@@ -536,7 +587,11 @@ modules = {
|
|
|
536
587
|
if (!this.checkBillDatas.length) {
|
|
537
588
|
let billName = this.billConfig.name;
|
|
538
589
|
this.$message({
|
|
539
|
-
message: this.$t2(
|
|
590
|
+
message: this.$t2(
|
|
591
|
+
"请选择" + billName,
|
|
592
|
+
"components.fileLibrary.uploadTip2",
|
|
593
|
+
{ billName: billName }
|
|
594
|
+
),
|
|
540
595
|
type: "error",
|
|
541
596
|
showClose: true,
|
|
542
597
|
duration: 3000,
|
|
@@ -596,8 +651,8 @@ modules = {
|
|
|
596
651
|
if (attachment) {
|
|
597
652
|
if (attachment.status == 1) {
|
|
598
653
|
this.$message({
|
|
599
|
-
message:
|
|
600
|
-
type:
|
|
654
|
+
message: "归档文件不允许删除",
|
|
655
|
+
type: "error",
|
|
601
656
|
showClose: true,
|
|
602
657
|
duration: 3000,
|
|
603
658
|
});
|
|
@@ -607,13 +662,13 @@ modules = {
|
|
|
607
662
|
if (attachment.dirs) {
|
|
608
663
|
categorys.push(attachment);
|
|
609
664
|
}
|
|
610
|
-
checkRows = [attachment]
|
|
665
|
+
checkRows = [attachment];
|
|
611
666
|
} else {
|
|
612
667
|
checkRows = this.getCheckRows();
|
|
613
|
-
if (checkRows.find(row => row.status == 1)) {
|
|
668
|
+
if (checkRows.find((row) => row.status == 1)) {
|
|
614
669
|
this.$message({
|
|
615
|
-
message:
|
|
616
|
-
type:
|
|
670
|
+
message: "归档文件不允许删除",
|
|
671
|
+
type: "error",
|
|
617
672
|
showClose: true,
|
|
618
673
|
duration: 3000,
|
|
619
674
|
});
|
|
@@ -624,7 +679,10 @@ modules = {
|
|
|
624
679
|
}
|
|
625
680
|
if (!data.length) {
|
|
626
681
|
this.$message({
|
|
627
|
-
message: this.$t2(
|
|
682
|
+
message: this.$t2(
|
|
683
|
+
"请选择需要删除的文件",
|
|
684
|
+
"components.fileLibrary.deleteFileTip"
|
|
685
|
+
),
|
|
628
686
|
type: "error",
|
|
629
687
|
showClose: true,
|
|
630
688
|
duration: 3000,
|
|
@@ -632,13 +690,17 @@ modules = {
|
|
|
632
690
|
return;
|
|
633
691
|
}
|
|
634
692
|
|
|
635
|
-
let deleteDirAuth =
|
|
693
|
+
let deleteDirAuth =
|
|
694
|
+
this.fileObjAuth && this.fileObjAuth.deleteDirAuth ? 1 : 0;
|
|
636
695
|
let deleteAuth = this.fileObjAuth && this.fileObjAuth.deleteAuth ? 1 : 0;
|
|
637
696
|
for (let i = 0; i < checkRows.length; i++) {
|
|
638
697
|
let item = checkRows[i];
|
|
639
698
|
if (item.dirs && !deleteDirAuth) {
|
|
640
699
|
this.$message({
|
|
641
|
-
message: this.$t2(
|
|
700
|
+
message: this.$t2(
|
|
701
|
+
"您没有删除文件夹的权限!",
|
|
702
|
+
"components.fileLibrary.deleteCategoryTip2"
|
|
703
|
+
),
|
|
642
704
|
type: "error",
|
|
643
705
|
showClose: true,
|
|
644
706
|
duration: 3000,
|
|
@@ -646,7 +708,10 @@ modules = {
|
|
|
646
708
|
return;
|
|
647
709
|
} else if (!item.dirs && !deleteAuth) {
|
|
648
710
|
this.$message({
|
|
649
|
-
message: this.$t2(
|
|
711
|
+
message: this.$t2(
|
|
712
|
+
"您没有删除文件的权限!",
|
|
713
|
+
"components.fileLibrary.deleteFileTip2"
|
|
714
|
+
),
|
|
650
715
|
type: "error",
|
|
651
716
|
showClose: true,
|
|
652
717
|
duration: 3000,
|
|
@@ -656,7 +721,9 @@ modules = {
|
|
|
656
721
|
}
|
|
657
722
|
|
|
658
723
|
// let data = [attachment.id];
|
|
659
|
-
this.$baseConfirm(
|
|
724
|
+
this.$baseConfirm(
|
|
725
|
+
this.$t2("您确定要删除吗?", "components.fileLibrary.deleteConfirmTip")
|
|
726
|
+
).then(() => {
|
|
660
727
|
this.$http({
|
|
661
728
|
method: "post",
|
|
662
729
|
url: this.current_prefix + "/file_obj/setDisable",
|
|
@@ -680,7 +747,9 @@ modules = {
|
|
|
680
747
|
},
|
|
681
748
|
initTableList() {
|
|
682
749
|
let that = this;
|
|
683
|
-
let customColumns = this.option.customColumns
|
|
750
|
+
let customColumns = this.option.customColumns
|
|
751
|
+
? this.option.customColumns()
|
|
752
|
+
: [];
|
|
684
753
|
let tableOption = {
|
|
685
754
|
vue: this,
|
|
686
755
|
tableRef: "table-m1",
|
|
@@ -693,14 +762,14 @@ modules = {
|
|
|
693
762
|
},
|
|
694
763
|
},
|
|
695
764
|
columns: [
|
|
696
|
-
{type: "checkbox", width: 48, resizable: false, fixed: "left"},
|
|
765
|
+
{ type: "checkbox", width: 48, resizable: false, fixed: "left" },
|
|
697
766
|
{
|
|
698
|
-
title: this.$t2(
|
|
767
|
+
title: this.$t2("文件名称", "components.fileLibrary.fileName"),
|
|
699
768
|
field: "fileName",
|
|
700
769
|
width: 250,
|
|
701
770
|
fixed: "left",
|
|
702
771
|
slots: {
|
|
703
|
-
default: ({row, $rowIndex}) => {
|
|
772
|
+
default: ({ row, $rowIndex }) => {
|
|
704
773
|
let h = this.$createElement;
|
|
705
774
|
if (!row.dirs) {
|
|
706
775
|
let showUrl = that.getShowUrl(row, "thumbnail");
|
|
@@ -723,7 +792,10 @@ modules = {
|
|
|
723
792
|
props: {
|
|
724
793
|
enterable: false,
|
|
725
794
|
effect: "dark",
|
|
726
|
-
content: this.$t2(
|
|
795
|
+
content: this.$t2(
|
|
796
|
+
"预览",
|
|
797
|
+
"components.fileLibrary.preview"
|
|
798
|
+
),
|
|
727
799
|
placement: "top",
|
|
728
800
|
"popper-class": "tooltip-skin",
|
|
729
801
|
},
|
|
@@ -761,7 +833,7 @@ modules = {
|
|
|
761
833
|
},
|
|
762
834
|
[
|
|
763
835
|
h("svg-icon", {
|
|
764
|
-
props: {"icon-class": "ico-wenjianjia"},
|
|
836
|
+
props: { "icon-class": "ico-wenjianjia" },
|
|
765
837
|
}),
|
|
766
838
|
h("span", row.fileName),
|
|
767
839
|
]
|
|
@@ -774,11 +846,11 @@ modules = {
|
|
|
774
846
|
},
|
|
775
847
|
},
|
|
776
848
|
{
|
|
777
|
-
title: this.$t2(
|
|
849
|
+
title: this.$t2("文件大小", "components.fileLibrary.fileSize"),
|
|
778
850
|
field: "fileSize",
|
|
779
851
|
width: 150,
|
|
780
852
|
slots: {
|
|
781
|
-
default: ({row, $rowIndex}) => {
|
|
853
|
+
default: ({ row, $rowIndex }) => {
|
|
782
854
|
if (!row.dirs) {
|
|
783
855
|
return this.formatFileSize(row.fileSize);
|
|
784
856
|
}
|
|
@@ -786,41 +858,53 @@ modules = {
|
|
|
786
858
|
},
|
|
787
859
|
},
|
|
788
860
|
{
|
|
789
|
-
title: this.$t2(
|
|
861
|
+
title: this.$t2("版本号", "components.fileLibrary.fileRev"),
|
|
790
862
|
field: "rev",
|
|
791
863
|
width: 150,
|
|
792
864
|
slots: {
|
|
793
|
-
default: ({row, $rowIndex}) => {
|
|
865
|
+
default: ({ row, $rowIndex }) => {
|
|
794
866
|
if (!row.dirs) {
|
|
795
867
|
return row.rev;
|
|
796
868
|
}
|
|
797
|
-
}
|
|
798
|
-
}
|
|
869
|
+
},
|
|
870
|
+
},
|
|
871
|
+
},
|
|
872
|
+
{
|
|
873
|
+
title: this.$t2("分辨率", "components.fileLibrary.widthHeight"),
|
|
874
|
+
field: "widthHeight",
|
|
875
|
+
width: 150,
|
|
876
|
+
},
|
|
877
|
+
{
|
|
878
|
+
title: this.$t2("所属对象描述", "components.fileLibrary.note"),
|
|
879
|
+
field: "note",
|
|
880
|
+
width: 250,
|
|
799
881
|
},
|
|
800
|
-
{title: this.$t2('分辨率', 'components.fileLibrary.widthHeight'), field: "widthHeight", width: 150},
|
|
801
|
-
{title: this.$t2('所属对象描述', 'components.fileLibrary.note'), field: "note", width: 250},
|
|
802
882
|
{
|
|
803
|
-
title:
|
|
804
|
-
field:
|
|
883
|
+
title: "状态",
|
|
884
|
+
field: "status",
|
|
805
885
|
width: 150,
|
|
806
886
|
slots: {
|
|
807
|
-
default: ({row, $rowIndex}) => {
|
|
887
|
+
default: ({ row, $rowIndex }) => {
|
|
808
888
|
if (!row.dirs) {
|
|
809
|
-
return row.status == 1 ?
|
|
889
|
+
return row.status == 1 ? "已归档" : "未归档";
|
|
810
890
|
}
|
|
811
|
-
}
|
|
812
|
-
}
|
|
891
|
+
},
|
|
892
|
+
},
|
|
813
893
|
},
|
|
814
894
|
{
|
|
815
|
-
title: this.$t2(
|
|
895
|
+
title: this.$t2("文件编码", "components.fileLibrary.fileSn"),
|
|
816
896
|
field: "fileSn",
|
|
817
|
-
width: 150
|
|
897
|
+
width: 150,
|
|
818
898
|
},
|
|
819
899
|
...customColumns,
|
|
820
|
-
{
|
|
900
|
+
{
|
|
901
|
+
title: this.$t2("创建人", "components.fileLibrary.createBy"),
|
|
902
|
+
field: "_createBy",
|
|
903
|
+
width: 150,
|
|
904
|
+
},
|
|
821
905
|
{
|
|
822
906
|
field: "createDate",
|
|
823
|
-
title: this.$t2(
|
|
907
|
+
title: this.$t2("创建时间", "components.fileLibrary.createDate"),
|
|
824
908
|
width: 150,
|
|
825
909
|
},
|
|
826
910
|
{
|
|
@@ -829,12 +913,11 @@ modules = {
|
|
|
829
913
|
title: "",
|
|
830
914
|
sortable: false,
|
|
831
915
|
slots: {
|
|
832
|
-
default: "operate"
|
|
916
|
+
default: "operate",
|
|
833
917
|
},
|
|
834
918
|
},
|
|
835
919
|
],
|
|
836
|
-
callback(a, b) {
|
|
837
|
-
},
|
|
920
|
+
callback(a, b) {},
|
|
838
921
|
};
|
|
839
922
|
this.$vxeTableUtil.initVxeTable(tableOption).then((opts) => {
|
|
840
923
|
this.vxeOption = opts;
|
|
@@ -844,15 +927,21 @@ modules = {
|
|
|
844
927
|
let customFileButtons = this.customFileButtons;
|
|
845
928
|
let nodes = [];
|
|
846
929
|
customFileButtons.forEach((fileButton, index) => {
|
|
847
|
-
if (
|
|
930
|
+
if (
|
|
931
|
+
fileButton.dirs === null ||
|
|
932
|
+
fileButton.dirs === undefined ||
|
|
933
|
+
attachment.dirs === fileButton.dirs
|
|
934
|
+
) {
|
|
848
935
|
if (this.customFileButtonVisable(fileButton, attachment)) {
|
|
849
|
-
nodes.push(
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
936
|
+
nodes.push(
|
|
937
|
+
this.getBtnVnode({
|
|
938
|
+
class: fileButton.icon,
|
|
939
|
+
title: fileButton.label,
|
|
940
|
+
click: (event) => {
|
|
941
|
+
that.customFileButtonEvent(fileButton, attachment);
|
|
942
|
+
},
|
|
943
|
+
})
|
|
944
|
+
);
|
|
856
945
|
}
|
|
857
946
|
}
|
|
858
947
|
});
|
|
@@ -894,7 +983,7 @@ modules = {
|
|
|
894
983
|
);
|
|
895
984
|
}
|
|
896
985
|
},
|
|
897
|
-
changePageNew({type, currentPage, pageSize, $event}) {
|
|
986
|
+
changePageNew({ type, currentPage, pageSize, $event }) {
|
|
898
987
|
this.checkList = [];
|
|
899
988
|
this.checkAll = false;
|
|
900
989
|
this.initAttchInfo({
|
|
@@ -944,7 +1033,7 @@ modules = {
|
|
|
944
1033
|
if (page.pages > page.current) {
|
|
945
1034
|
rows.push({
|
|
946
1035
|
parent: param.parent,
|
|
947
|
-
fileName: this.$t2(
|
|
1036
|
+
fileName: this.$t2("更多", "components.fileLibrary.more"),
|
|
948
1037
|
moreBtn: true,
|
|
949
1038
|
leaf: true,
|
|
950
1039
|
pages: page.pages,
|
|
@@ -995,7 +1084,7 @@ modules = {
|
|
|
995
1084
|
if (page.pages > page.current) {
|
|
996
1085
|
rows.push({
|
|
997
1086
|
parent: param.parent,
|
|
998
|
-
fileName: this.$t2(
|
|
1087
|
+
fileName: this.$t2("更多", "components.fileLibrary.more"),
|
|
999
1088
|
moreBtn: true,
|
|
1000
1089
|
leaf: true,
|
|
1001
1090
|
pages: page.pages,
|
|
@@ -1025,9 +1114,9 @@ modules = {
|
|
|
1025
1114
|
node.childNodes[0].expand();
|
|
1026
1115
|
if (this.option.treeExpandAll) {
|
|
1027
1116
|
//默认全部展开树分类
|
|
1028
|
-
node.childNodes[0].childNodes.forEach(item => {
|
|
1117
|
+
node.childNodes[0].childNodes.forEach((item) => {
|
|
1029
1118
|
if (!item.data.leaf) item.expand();
|
|
1030
|
-
})
|
|
1119
|
+
});
|
|
1031
1120
|
}
|
|
1032
1121
|
}, 200);
|
|
1033
1122
|
this.$nextTick(() => {
|
|
@@ -1039,9 +1128,9 @@ modules = {
|
|
|
1039
1128
|
this.$nextTick(() => {
|
|
1040
1129
|
if (this.option.treeExpandAll) {
|
|
1041
1130
|
//默认全部展开树分类
|
|
1042
|
-
node.childNodes.forEach(item => {
|
|
1131
|
+
node.childNodes.forEach((item) => {
|
|
1043
1132
|
if (!item.data.leaf) item.expand();
|
|
1044
|
-
})
|
|
1133
|
+
});
|
|
1045
1134
|
}
|
|
1046
1135
|
callback && callback();
|
|
1047
1136
|
});
|
|
@@ -1072,7 +1161,10 @@ modules = {
|
|
|
1072
1161
|
let currentFileCategory = category || this.currentFileCategory;
|
|
1073
1162
|
if (!currentFileCategory) {
|
|
1074
1163
|
this.$message({
|
|
1075
|
-
message: this.$t2(
|
|
1164
|
+
message: this.$t2(
|
|
1165
|
+
"请选择文件夹",
|
|
1166
|
+
"components.fileLibrary.editCategoryTip"
|
|
1167
|
+
),
|
|
1076
1168
|
type: "error",
|
|
1077
1169
|
showClose: true,
|
|
1078
1170
|
duration: 3000,
|
|
@@ -1085,7 +1177,12 @@ modules = {
|
|
|
1085
1177
|
confirmEditCategoryDialog() {
|
|
1086
1178
|
this.$refs.editCategoryForm.$baseValidate((valid) => {
|
|
1087
1179
|
if (valid) {
|
|
1088
|
-
this.$baseConfirm(
|
|
1180
|
+
this.$baseConfirm(
|
|
1181
|
+
this.$t2(
|
|
1182
|
+
"您确定要保存吗?",
|
|
1183
|
+
"components.fileLibrary.saveConfirmTip"
|
|
1184
|
+
)
|
|
1185
|
+
).then(() => {
|
|
1089
1186
|
var url =
|
|
1090
1187
|
this.current_prefix +
|
|
1091
1188
|
(this.editCategory.id ? "/file_obj/update" : "/file_obj/save");
|
|
@@ -1111,8 +1208,7 @@ modules = {
|
|
|
1111
1208
|
message: res.content,
|
|
1112
1209
|
type: "success",
|
|
1113
1210
|
duration: 500,
|
|
1114
|
-
onClose: (t) => {
|
|
1115
|
-
},
|
|
1211
|
+
onClose: (t) => {},
|
|
1116
1212
|
});
|
|
1117
1213
|
let nodeData = res.objx;
|
|
1118
1214
|
nodeData.leaf = !nodeData.hasChild;
|
|
@@ -1207,7 +1303,10 @@ modules = {
|
|
|
1207
1303
|
let checkRows = this.getCheckRows();
|
|
1208
1304
|
if (!checkRows.length) {
|
|
1209
1305
|
this.$message({
|
|
1210
|
-
message: this.$t2(
|
|
1306
|
+
message: this.$t2(
|
|
1307
|
+
"请选择需要下载的文件",
|
|
1308
|
+
"components.fileLibrary.downloadTip"
|
|
1309
|
+
),
|
|
1211
1310
|
type: "error",
|
|
1212
1311
|
showClose: true,
|
|
1213
1312
|
duration: 3000,
|
|
@@ -1223,7 +1322,10 @@ modules = {
|
|
|
1223
1322
|
let checkRows = this.getCheckRows();
|
|
1224
1323
|
if (!checkRows.length) {
|
|
1225
1324
|
this.$message({
|
|
1226
|
-
message: this.$t2(
|
|
1325
|
+
message: this.$t2(
|
|
1326
|
+
"请选择需要下载的文件",
|
|
1327
|
+
"components.fileLibrary.downloadTip"
|
|
1328
|
+
),
|
|
1227
1329
|
type: "error",
|
|
1228
1330
|
showClose: true,
|
|
1229
1331
|
duration: 3000,
|
|
@@ -1269,7 +1371,7 @@ modules = {
|
|
|
1269
1371
|
let ids = rows.map((row) => row.id);
|
|
1270
1372
|
let data = {
|
|
1271
1373
|
ids: ids,
|
|
1272
|
-
objectForeignId: this.objectForeignId
|
|
1374
|
+
objectForeignId: this.objectForeignId,
|
|
1273
1375
|
};
|
|
1274
1376
|
if (this.option.foreignDirs === true) {
|
|
1275
1377
|
data.foreignDirs = true;
|
|
@@ -1417,12 +1519,21 @@ modules = {
|
|
|
1417
1519
|
if (fileStoreArea) {
|
|
1418
1520
|
this.fileStoreArea = fileStoreArea;
|
|
1419
1521
|
this.title = fileStoreArea.storeAreaName;
|
|
1522
|
+
let tabType = this.option.tabType;
|
|
1523
|
+
if (tabType) {
|
|
1524
|
+
this.showType = tabType === "table" ? 2 : 1;
|
|
1525
|
+
}
|
|
1420
1526
|
this.$nextTick(() => {
|
|
1421
|
-
treeScollx({target: this, type: "default"});
|
|
1527
|
+
treeScollx({ target: this, type: "default" });
|
|
1422
1528
|
this.treeFlag = true;
|
|
1423
1529
|
});
|
|
1424
1530
|
} else {
|
|
1425
|
-
this.$baseAlert(
|
|
1531
|
+
this.$baseAlert(
|
|
1532
|
+
this.$t2(
|
|
1533
|
+
"文档工作区未维护",
|
|
1534
|
+
"components.fileLibrary.fileStoreAreaTip"
|
|
1535
|
+
)
|
|
1536
|
+
);
|
|
1426
1537
|
}
|
|
1427
1538
|
},
|
|
1428
1539
|
});
|
|
@@ -1522,7 +1633,10 @@ modules = {
|
|
|
1522
1633
|
let checkRows = this.getCheckRows();
|
|
1523
1634
|
if (!checkRows.length) {
|
|
1524
1635
|
this.$message({
|
|
1525
|
-
message: this.$t2(
|
|
1636
|
+
message: this.$t2(
|
|
1637
|
+
"请选择需要替换的文件",
|
|
1638
|
+
"components.fileLibrary.replaceFileTip"
|
|
1639
|
+
),
|
|
1526
1640
|
type: "error",
|
|
1527
1641
|
showClose: true,
|
|
1528
1642
|
duration: 3000,
|
|
@@ -1545,7 +1659,7 @@ modules = {
|
|
|
1545
1659
|
},
|
|
1546
1660
|
});
|
|
1547
1661
|
},
|
|
1548
|
-
checkBatchReplace({files, done}) {
|
|
1662
|
+
checkBatchReplace({ files, done }) {
|
|
1549
1663
|
let newFileObjDTOs = files.map((file) => {
|
|
1550
1664
|
return {
|
|
1551
1665
|
name: file.name,
|
|
@@ -1743,35 +1857,37 @@ modules = {
|
|
|
1743
1857
|
},
|
|
1744
1858
|
customFileButtonEvent(customFileButton, attachment) {
|
|
1745
1859
|
customFileButton.onclick({
|
|
1746
|
-
row: attachment
|
|
1860
|
+
row: attachment,
|
|
1747
1861
|
});
|
|
1748
1862
|
},
|
|
1749
1863
|
customToobarButtonEvent(customFileButton) {
|
|
1750
1864
|
customFileButton.onclick({
|
|
1751
|
-
rows: this.checkRows
|
|
1865
|
+
rows: this.checkRows,
|
|
1752
1866
|
});
|
|
1753
1867
|
},
|
|
1754
1868
|
customFileButtonVisable(customFileButton, attachment) {
|
|
1755
1869
|
if (customFileButton.visable === "function") {
|
|
1756
1870
|
let checkBillDatas = this.checkBillDatas;
|
|
1757
|
-
return customFileButton.visable({row: attachment, checkBillDatas});
|
|
1758
|
-
} else if (
|
|
1871
|
+
return customFileButton.visable({ row: attachment, checkBillDatas });
|
|
1872
|
+
} else if (
|
|
1873
|
+
customFileButton.visable === null ||
|
|
1874
|
+
customFileButton.visable == undefined
|
|
1875
|
+
) {
|
|
1759
1876
|
return true;
|
|
1760
1877
|
} else {
|
|
1761
1878
|
return customFileButton.visable;
|
|
1762
1879
|
}
|
|
1763
1880
|
},
|
|
1764
1881
|
downloadSingerFile(attachment) {
|
|
1765
|
-
|
|
1766
1882
|
let fileObjAuth = this.fileObjAuth;
|
|
1767
|
-
if (attachment.dirs || !fileObjAuth.downloadAuth) return
|
|
1883
|
+
if (attachment.dirs || !fileObjAuth.downloadAuth) return;
|
|
1768
1884
|
let url = attachment.domain + attachment.url;
|
|
1769
1885
|
if (this.fileStoreArea.toDownWatermark && fileObjAuth.downWatermarkAuth) {
|
|
1770
1886
|
let loginAccount = this.$store.getters.loginAccount;
|
|
1771
|
-
url +=
|
|
1887
|
+
url += "?_w=" + encodeURIComponent(encode(loginAccount));
|
|
1772
1888
|
}
|
|
1773
|
-
this.$commonFileUtil.downloadFile(url, attachment.fileName)
|
|
1774
|
-
}
|
|
1889
|
+
this.$commonFileUtil.downloadFile(url, attachment.fileName);
|
|
1890
|
+
},
|
|
1775
1891
|
},
|
|
1776
1892
|
};
|
|
1777
1893
|
export default modules;
|