cloud-web-corejs 1.0.54-dev.57 → 1.0.54-dev.571
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 +21 -13
- package/src/App.vue +30 -34
- 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/image-viewer.vue +2 -2
- package/src/components/VabUpload/index.js +49 -1
- package/src/components/VabUpload/mixins.js +1822 -2
- package/src/components/VabUpload/propertiesDialog.vue +1 -1
- package/src/components/VabUpload/view.vue +209 -120
- package/src/components/advancedSearchDialog/mixins.js +28 -1
- package/src/components/base-textarea/index.vue +104 -0
- package/src/components/baseAlert/index.js +44 -1
- package/src/components/baseAlert/index.vue +23 -19
- package/src/components/baseAlert/mixins.js +61 -1
- package/src/components/baseAttachment/index.vue +49 -40
- package/src/components/baseAttachment/install.js +21 -5
- package/src/components/baseAttachment/mixins.js +310 -1
- package/src/components/baseInputBatch/mixins.js +58 -1
- package/src/components/baseInputExport/index.vue +19 -12
- package/src/components/baseInputExport/mixins.js +391 -1
- package/src/components/baseTabs/mixins.js +166 -1
- package/src/components/cnPrint/index.js +44 -1
- package/src/components/cnPrint/mixins.js +189 -1
- package/src/components/code-editor/index.vue +102 -63
- package/src/components/confirmDialog/index.js +41 -1
- package/src/components/confirmDialog/index.vue +24 -17
- package/src/components/confirmDialog/mixins.js +31 -1
- package/src/components/errorMsg/index.js +44 -1
- package/src/components/errorMsg/index.vue +78 -70
- package/src/components/errorMsg/mixins.js +101 -5
- package/src/components/excelExport/button.vue +57 -4
- package/src/components/excelExport/exportFieldDialog.vue +215 -81
- 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/index.js +13 -13
- 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 +605 -262
- 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 +77 -1
- package/src/components/hiprint/css/bootstrap.min.css +6 -0
- package/src/components/hiprint/fonts/glyphicons-halflings-regular.eot +0 -0
- package/src/components/hiprint/fonts/glyphicons-halflings-regular.svg +288 -0
- package/src/components/hiprint/fonts/glyphicons-halflings-regular.ttf +0 -0
- package/src/components/hiprint/fonts/glyphicons-halflings-regular.woff +0 -0
- package/src/components/hiprint/fonts/glyphicons-halflings-regular.woff2 +0 -0
- package/src/components/hiprint/hiprint.bundle.js +7 -2
- package/src/components/hiprint/view/design/index.vue +140 -47
- package/src/components/hiprint/view/design/mixins.js +611 -1
- package/src/components/hiprint/view/design/preview.vue +75 -52
- package/src/components/hiprint/view/json-view.vue +31 -31
- package/src/components/jdPrint/index.js +44 -1
- package/src/components/jdPrint/mixins.js +208 -1
- package/src/components/jsonImport/index.js +187 -17
- package/src/components/jsonImport/mixins.js +333 -1
- package/src/components/langImport/index.js +80 -1
- package/src/components/langImport/mixins.js +500 -16
- package/src/components/langTag/mixins/addButton.js +51 -5
- package/src/components/langTag/mixins/deleteButton.js +55 -5
- package/src/components/langTag/mixins/view.js +47 -5
- package/src/components/luckysheet/dialog.vue +159 -0
- package/src/components/luckysheet/export.js +595 -0
- package/src/components/luckysheet/fileUtils.js +147 -0
- package/src/components/luckysheet/index.js +72 -0
- package/src/components/luckysheet/templateJson.js +12078 -0
- package/src/components/luckysheet/view.vue +210 -0
- package/src/components/obsUpload/index.js +34 -0
- package/src/components/obsUpload/index.vue +231 -0
- package/src/components/obsUpload/mixins.js +1476 -0
- package/src/components/onlineTalk/mixins.js +852 -1
- package/src/components/oplogTable/mixins.js +83 -4
- package/src/components/pddPrint/index.js +44 -1
- package/src/components/pddPrint/mixins.js +252 -1
- package/src/components/projectTag/mixins/addButton.js +52 -1
- package/src/components/projectTag/mixins/deleteButton.js +52 -1
- package/src/components/projectTag/mixins/view.js +43 -1
- package/src/components/scriptDescription/button.vue +12 -4
- package/src/components/scriptDescription/mixins.js +30 -1
- package/src/components/scriptTest/mixins.js +90 -1
- package/src/components/statusTag/mixins.js +66 -1
- package/src/components/table/CellSlot.vue +1 -0
- package/src/components/table/config.js +1 -1
- 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 +335 -0
- package/src/components/table/vxeFilter/index.js +1 -1
- 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/vipPrint/index.js +44 -1
- package/src/components/vipPrint/mixins.js +268 -1
- package/src/components/wf/addOpinionButton.vue +57 -0
- package/src/components/wf/content.vue +834 -362
- package/src/components/wf/mixins/addOpinionButton.js +53 -0
- package/src/components/wf/mixins/setCandidateButton.js +161 -0
- package/src/components/wf/mixins/setCandidateDialog.js +213 -1
- package/src/components/wf/mixins/setCandidateDialog2.js +252 -0
- package/src/components/wf/mixins/wfFlowEleScriptDialog.js +131 -0
- package/src/components/wf/mixins/wfTaskUserRangeDialog.js +69 -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 +5 -3
- package/src/components/xform/form-designer/form-widget/components/gantt/index.vue +434 -0
- package/src/components/xform/form-designer/form-widget/container-widget/containerMixin.js +1 -1
- 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.js +9 -903
- package/src/components/xform/form-designer/form-widget/dialog/searchFormDialog.vue +196 -73
- 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 +32 -4
- 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 +95 -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/fieldMixin.js +25 -997
- 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 +964 -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 +40 -10
- package/src/components/xform/form-designer/form-widget/field-widget/mixins/echart-category-mixin.js +58 -91
- package/src/components/xform/form-designer/form-widget/field-widget/mixins/echart-pie-mixin.js +8 -1
- 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 +55 -28
- package/src/components/xform/form-designer/form-widget/field-widget/print-detail-button-widget.vue +119 -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-export-item-button-widget.vue +92 -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/static-text-widget.vue +8 -3
- 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 +38 -37
- 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 +106 -33
- 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 +191 -66
- package/src/components/xform/form-designer/form-widget/field-widget/vabUpload2-widget.vue +753 -0
- package/src/components/xform/form-designer/form-widget/indexMixin.js +1 -1
- package/src/components/xform/form-designer/indexMixin.js +3 -772
- package/src/components/xform/form-designer/refMixinDesign.js +1 -28
- package/src/components/xform/form-designer/setting-panel/form-setting.vue +978 -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 +953 -1042
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/exportItemColumns-dialog.vue +432 -0
- 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 -520
- 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 +25 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-echart/echart-category-editor.vue +5 -5
- 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-static-text/preWrap-editor.vue +23 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-static-text/textContent-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-status/field-status-editor.vue +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/select-export-item-button-editor.vue +71 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-table-export-button/table-export-button-editor.vue +24 -8
- 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/formatType-editor.vue +137 -0
- 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 +35 -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 +1724 -917
- package/src/components/xform/form-render/container-item/containerItemMixin.js +12 -11
- package/src/components/xform/form-render/container-item/data-table-item.vue +206 -198
- package/src/components/xform/form-render/container-item/data-table-mixin.js +22 -1685
- 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 +153 -92
- package/src/components/xform/form-render/container-item/tree-item.vue +32 -11
- package/src/components/xform/form-render/dynamicDialogRender.js +1 -1
- package/src/components/xform/form-render/index.vue +77 -20
- package/src/components/xform/form-render/indexMixin.js +24 -12
- package/src/components/xform/form-render/refMixin.js +3 -3
- package/src/components/xform/lang/zh-CN.js +29 -4
- package/src/components/xform/mixins/defaultHandle.js +3 -2
- package/src/components/xform/mixins/scriptHttp.js +3 -1
- package/src/components/xform/utils/emitter.js +4 -4
- package/src/components/xform/utils/formHttp.js +162 -0
- package/src/components/xform/utils/format.js +41 -34
- package/src/components/xform/utils/formula-util.js +966 -0
- package/src/components/xform/utils/util.js +5 -1
- package/src/components/xform/utils/validators.js +2 -5
- package/src/components/xform/utils/vue2js-generator.js +2 -2
- package/src/components/xhsPrint/index.js +44 -1
- package/src/components/xhsPrint/mixins.js +269 -1
- package/src/directive/LimitNumber/index.js +125 -1
- package/src/directive/el-dialog-center/index.js +34 -1
- package/src/directive/el-drag-dialog/drag.js +86 -1
- package/src/directive/el-readonly/index.js +15 -1
- package/src/directive/permission/hasPermi.js +34 -1
- package/src/index.js +215 -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 +8 -1
- package/src/layout/components/Sidebar/default.vue +1423 -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/tableTree/index.js +199 -4
- package/src/mixins/wf/index.js +33 -1
- package/src/permission.js +135 -18
- package/src/resources/js/base/common.js +109 -109
- package/src/router/modules/customer.js +0 -15
- package/src/router/modules/system.js +4 -0
- package/src/store/config/index.js +667 -1
- package/src/store/getters.js +3 -1
- package/src/store/modules/permission.js +46 -41
- package/src/store/modules/settings.js +1 -1
- package/src/store/modules/tagsView.js +5 -8
- package/src/store/modules/user.js +10 -16
- package/src/utils/aes.js +2 -1
- package/src/utils/auth.js +1 -1
- package/src/utils/global.js +1 -1
- package/src/utils/index.js +2 -3
- package/src/utils/keepAlive.js +1 -1
- package/src/utils/pddLog.js +92 -0
- package/src/utils/pdfUtil.js +71 -0
- package/src/utils/request.js +1 -1
- package/src/utils/vab.js +19 -27
- package/src/utils/validate.js +1 -1
- package/src/utils/wf.js +4 -4
- 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 +1 -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 +1 -7
- package/src/views/bd/setting/form_script/mixins/edit.js +1 -7
- package/src/views/bd/setting/form_script/mixins/edit1.js +1 -9
- package/src/views/bd/setting/form_script/mixins/form_list.js +1 -14
- package/src/views/bd/setting/form_script/mixins/list.js +1 -8
- package/src/views/bd/setting/form_script/mixins/list1.js +1 -14
- package/src/views/bd/setting/form_script/mixins/list2.js +1 -5
- package/src/views/bd/setting/form_script/mixins/otherAuthDialog.js +1 -0
- package/src/views/bd/setting/form_script/mixins/preformDialog.js +1 -3
- 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 +2 -277
- package/src/views/bd/setting/form_template/mixins/edit.js +10 -9
- package/src/views/bd/setting/form_template/mixins/list.js +25 -22
- package/src/views/bd/setting/form_template/mixins/otherAuthDialog.js +7 -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 +7 -7
- package/src/views/bd/setting/menu_kind/mixins/list.js +1 -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 copy.js +903 -0
- package/src/views/bd/setting/table_model/mixins/edit.js +14 -13
- package/src/views/bd/setting/table_model/mixins/list.js +14 -14
- package/src/views/bd/setting/table_model/mixins/otherAuthDialog.js +7 -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 +195 -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/default.vue +1026 -979
- package/src/views/user/home/dev.vue +29 -0
- package/src/views/user/home/index.vue +16 -6
- 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 +186 -9
- package/src/views/user/menu/list.vue +24 -1
- package/src/views/user/notify_message/dialog.vue +44 -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 -211
- package/src/views/user/outLink/index.vue +67 -11
- package/src/views/user/position/list.vue +4 -4
- 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/user/dialog.vue +46 -23
- package/src/views/user/user/edit.vue +1290 -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 +652 -563
- package/src/views/user/user/modifyPasswordDialog.vue +64 -53
- package/src/views/user/wf/wfReport/index.vue +619 -0
- package/src/views/user/wf/wf_auto_submit_data/list.vue +2 -0
- package/src/views/user/wf/wf_manage/list.vue +379 -250
- package/src/views/user/wf/wf_manage/wfContentDialog.vue +25 -22
- 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
- package/src/utils/renderUtils.js +0 -76
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div style="height: 100%">
|
|
3
|
+
<div
|
|
4
|
+
:id="containerId"
|
|
5
|
+
:key="containerId"
|
|
6
|
+
style="
|
|
7
|
+
margin: 0px;
|
|
8
|
+
padding: 0px;
|
|
9
|
+
height: 100%;
|
|
10
|
+
width: 100%;
|
|
11
|
+
left: 0px;
|
|
12
|
+
top: 30px;
|
|
13
|
+
bottom: 0px;
|
|
14
|
+
"
|
|
15
|
+
></div>
|
|
16
|
+
<div
|
|
17
|
+
v-show="isMaskShow"
|
|
18
|
+
style="
|
|
19
|
+
position: absolute;
|
|
20
|
+
z-index: 1000000;
|
|
21
|
+
left: 0px;
|
|
22
|
+
top: 0px;
|
|
23
|
+
bottom: 0px;
|
|
24
|
+
right: 0px;
|
|
25
|
+
background: rgba(255, 255, 255, 0.8);
|
|
26
|
+
text-align: center;
|
|
27
|
+
font-size: 40px;
|
|
28
|
+
align-items: center;
|
|
29
|
+
justify-content: center;
|
|
30
|
+
display: flex;
|
|
31
|
+
"
|
|
32
|
+
>
|
|
33
|
+
Downloading
|
|
34
|
+
</div>
|
|
35
|
+
</div>
|
|
36
|
+
</template>
|
|
37
|
+
|
|
38
|
+
<script>
|
|
39
|
+
import LuckyExcel from "luckyexcel";
|
|
40
|
+
//导入库export.js 这个文件是es6的,不能在普通的HTML文件直接引入js文件(虽然都是js文件,但是有区别,具体请百度es6与es5)!需要把es6转es5才可以直接引入使用!
|
|
41
|
+
import { exportExcel, generateExcelFile } from "./export";
|
|
42
|
+
import { saveAs } from "file-saver";
|
|
43
|
+
|
|
44
|
+
export default {
|
|
45
|
+
name: "luckysheet",
|
|
46
|
+
props: {
|
|
47
|
+
options: {
|
|
48
|
+
type: Object,
|
|
49
|
+
default: () => {},
|
|
50
|
+
},
|
|
51
|
+
data: {
|
|
52
|
+
type: Array,
|
|
53
|
+
default: () => [],
|
|
54
|
+
},
|
|
55
|
+
},
|
|
56
|
+
data() {
|
|
57
|
+
return {
|
|
58
|
+
selected: "",
|
|
59
|
+
isMaskShow: false,
|
|
60
|
+
// 生成随机ID,避免多个组件实例之间的ID冲突
|
|
61
|
+
containerId: "luckysheet-" + Math.random().toString(36).substr(2, 9),
|
|
62
|
+
};
|
|
63
|
+
},
|
|
64
|
+
beforeDestroy() {
|
|
65
|
+
if (luckysheet) {
|
|
66
|
+
this.exitEditMode();
|
|
67
|
+
luckysheet.destroy();
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
mounted() {
|
|
71
|
+
// In some cases, you need to use $nextTick
|
|
72
|
+
// this.$nextTick(() => {
|
|
73
|
+
let config = this.options.config || {};
|
|
74
|
+
let data = this.data.length > 0 ? this.data : null;
|
|
75
|
+
if (!data) {
|
|
76
|
+
data = [
|
|
77
|
+
{
|
|
78
|
+
name: "Sheet1",
|
|
79
|
+
color: "",
|
|
80
|
+
status: "1",
|
|
81
|
+
order: "0",
|
|
82
|
+
data: [],
|
|
83
|
+
config: {},
|
|
84
|
+
index: 0,
|
|
85
|
+
},
|
|
86
|
+
];
|
|
87
|
+
}
|
|
88
|
+
luckysheet.create({
|
|
89
|
+
container: this.containerId,
|
|
90
|
+
lang: "zh",
|
|
91
|
+
showinfobar: false,
|
|
92
|
+
data: data,
|
|
93
|
+
...config,
|
|
94
|
+
});
|
|
95
|
+
|
|
96
|
+
// });
|
|
97
|
+
},
|
|
98
|
+
methods: {
|
|
99
|
+
generateExcelFile(callback) {
|
|
100
|
+
// 检查luckysheet是否存在
|
|
101
|
+
if (!luckysheet) {
|
|
102
|
+
console.error("luckysheet未初始化");
|
|
103
|
+
return;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
try {
|
|
107
|
+
// 获取luckysheet数据
|
|
108
|
+
if (luckysheet.getLuckysheetfile) {
|
|
109
|
+
const excelData = luckysheet.getLuckysheetfile();
|
|
110
|
+
console.log("获取Excel数据成功", excelData);
|
|
111
|
+
|
|
112
|
+
// 生成Excel文件对象
|
|
113
|
+
generateExcelFile(excelData, "测试文件")
|
|
114
|
+
.then((file) => {
|
|
115
|
+
callback && callback(file);
|
|
116
|
+
// console.log("生成Excel文件对象成功", file);
|
|
117
|
+
// console.log("文件名:", file.name);
|
|
118
|
+
// console.log("文件大小:", file.size);
|
|
119
|
+
// console.log("文件类型:", file.type);
|
|
120
|
+
|
|
121
|
+
// 这里可以使用file对象进行上传等操作
|
|
122
|
+
// 例如:uploadFile(file);
|
|
123
|
+
// const fileName = `电子表格_${new Date().getTime()}.xlsx`;
|
|
124
|
+
// saveAs(file, fileName);
|
|
125
|
+
})
|
|
126
|
+
.catch((error) => {
|
|
127
|
+
console.error("生成Excel文件对象失败:", error);
|
|
128
|
+
});
|
|
129
|
+
} else {
|
|
130
|
+
console.error("luckysheet不支持getLuckysheetfile方法");
|
|
131
|
+
}
|
|
132
|
+
} catch (error) {
|
|
133
|
+
console.error("生成Excel文件对象失败:", error);
|
|
134
|
+
}
|
|
135
|
+
},
|
|
136
|
+
uploadExcel(evt) {
|
|
137
|
+
const files = evt.target.files;
|
|
138
|
+
if (files == null || files.length == 0) {
|
|
139
|
+
alert("No files wait for import");
|
|
140
|
+
return;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
let name = files[0].name;
|
|
144
|
+
let suffixArr = name.split("."),
|
|
145
|
+
suffix = suffixArr[suffixArr.length - 1];
|
|
146
|
+
if (suffix != "xlsx") {
|
|
147
|
+
alert("Currently only supports the import of xlsx files");
|
|
148
|
+
return;
|
|
149
|
+
}
|
|
150
|
+
const self = this;
|
|
151
|
+
LuckyExcel.transformExcelToLucky(files[0], function (exportJson, luckysheetfile) {
|
|
152
|
+
if (exportJson.sheets == null || exportJson.sheets.length == 0) {
|
|
153
|
+
alert(
|
|
154
|
+
"Failed to read the content of the excel file, currently does not support xls files!"
|
|
155
|
+
);
|
|
156
|
+
return;
|
|
157
|
+
}
|
|
158
|
+
luckysheet.destroy();
|
|
159
|
+
|
|
160
|
+
luckysheet.create({
|
|
161
|
+
container: self.containerId, //使用当前组件的容器ID
|
|
162
|
+
showinfobar: false,
|
|
163
|
+
data: exportJson.sheets,
|
|
164
|
+
title: exportJson.info.name,
|
|
165
|
+
userInfo: exportJson.info.name.creator,
|
|
166
|
+
});
|
|
167
|
+
});
|
|
168
|
+
},
|
|
169
|
+
exitEditMode() {
|
|
170
|
+
luckysheet.exitEditMode();
|
|
171
|
+
},
|
|
172
|
+
getValue() {
|
|
173
|
+
luckysheet.exitEditMode();
|
|
174
|
+
let sheetData = luckysheet.getluckysheetfile();
|
|
175
|
+
return sheetData;
|
|
176
|
+
},
|
|
177
|
+
downloadExcel() {
|
|
178
|
+
exportExcel(luckysheet.getAllSheets(), "下载");
|
|
179
|
+
},
|
|
180
|
+
getJson() {
|
|
181
|
+
luckysheet.exitEditMode();
|
|
182
|
+
let json = luckysheet.toJson();
|
|
183
|
+
return json;
|
|
184
|
+
},
|
|
185
|
+
},
|
|
186
|
+
};
|
|
187
|
+
</script>
|
|
188
|
+
|
|
189
|
+
<!-- Add "scoped" attribute to limit CSS to this component only -->
|
|
190
|
+
<style scoped>
|
|
191
|
+
h3 {
|
|
192
|
+
margin: 40px 0 0;
|
|
193
|
+
}
|
|
194
|
+
ul {
|
|
195
|
+
list-style-type: none;
|
|
196
|
+
padding: 0;
|
|
197
|
+
}
|
|
198
|
+
li {
|
|
199
|
+
display: inline-block;
|
|
200
|
+
margin: 0 10px;
|
|
201
|
+
}
|
|
202
|
+
a {
|
|
203
|
+
color: #42b983;
|
|
204
|
+
}
|
|
205
|
+
</style>
|
|
206
|
+
<style>
|
|
207
|
+
#luckysheet-icon-morebtn-div {
|
|
208
|
+
z-index: 10030 !important;
|
|
209
|
+
}
|
|
210
|
+
</style>
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
const moudule = {};
|
|
2
|
+
import vue from "vue";
|
|
3
|
+
import objView from './index.vue';
|
|
4
|
+
|
|
5
|
+
let configUtil = {
|
|
6
|
+
vue,
|
|
7
|
+
objView
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
const objInstance = configUtil.vue.extend(configUtil.objView);
|
|
11
|
+
const initInstance = (containter) => {
|
|
12
|
+
// 实例化vue实例
|
|
13
|
+
let currentInstance = new objInstance({i18n: window.$vueRoot._i18n});
|
|
14
|
+
let dom = currentInstance.$mount().$el;
|
|
15
|
+
containter.appendChild(dom);
|
|
16
|
+
return currentInstance;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
export function openObsUploadDialog(options) {
|
|
20
|
+
let containter = document.body;
|
|
21
|
+
let currentInstance = initInstance(containter);
|
|
22
|
+
Object.assign(currentInstance, options);
|
|
23
|
+
return currentInstance.handleShow(options);
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
export function uploadOBS(options) {
|
|
27
|
+
let containter = document.body;
|
|
28
|
+
let currentInstance = initInstance(containter);
|
|
29
|
+
Object.assign(currentInstance, options);
|
|
30
|
+
return currentInstance.singerUpload(options);
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<el-dialog
|
|
4
|
+
:title="title"
|
|
5
|
+
:visible.sync="dialogFormVisible"
|
|
6
|
+
v-if="dialogFormVisible"
|
|
7
|
+
:close-on-click-modal="false"
|
|
8
|
+
width="1150px"
|
|
9
|
+
:custom-class="'dialog-style '+(option.otherParams && option.otherParams.uploadDialogCustomClass?option.otherParams.uploadDialogCustomClass:'')"
|
|
10
|
+
:append-to-body="true"
|
|
11
|
+
:destroy-on-close="true"
|
|
12
|
+
@close="handleClose"
|
|
13
|
+
v-el-drag-dialog
|
|
14
|
+
>
|
|
15
|
+
<div class="upload-box" style="margin-left:-20px;margin-right:-20px;">
|
|
16
|
+
<div class="upload-b_left" @click="choosePasteArea" :class="{on:pasteAreaStatus}"
|
|
17
|
+
v-show="option.hidePasteArea!==true">
|
|
18
|
+
<div class="t"><i
|
|
19
|
+
class="el-icon-warning-outline"></i>{{ $t2('选择此处,可粘贴文件', 'components.VabUpload.tip') }}(Ctrl+V)
|
|
20
|
+
</div>
|
|
21
|
+
<ul class="el-upload-list el-upload-list--picture">
|
|
22
|
+
<div class="nodata" v-if="pasteList.length == 0">
|
|
23
|
+
<img src="~@/resources/images/nodata2.png"/>
|
|
24
|
+
</div>
|
|
25
|
+
<li v-for="(pasteFile,index) in pasteList" :key="index" class="el-upload-list__item is-success">
|
|
26
|
+
<div>
|
|
27
|
+
<img
|
|
28
|
+
:src="getShowImage(pasteFile)"
|
|
29
|
+
class="el-upload-list__item-thumbnail"
|
|
30
|
+
/>
|
|
31
|
+
<div class="el-upload-list__item-name">
|
|
32
|
+
<!-- <p class="flex">
|
|
33
|
+
<el-input size="mini" v-model="pasteFile.fileName" @change="changeFileName(pasteFile)"></el-input>
|
|
34
|
+
</p> -->
|
|
35
|
+
<div class="txt-box">
|
|
36
|
+
<div class="tb-left"></div>
|
|
37
|
+
<div class="tb-mid name">
|
|
38
|
+
<div class="txt">
|
|
39
|
+
<span>{{ pasteFile.fileName }}</span>
|
|
40
|
+
<span><i class="el-icon-edit" @click="openFileNameDialog(pasteFile,index)"></i></span>
|
|
41
|
+
</div>
|
|
42
|
+
</div>
|
|
43
|
+
<div class="format"><i class="el-icon-edit" @click="openFileNameDialog(pasteFile,index)"></i></div>
|
|
44
|
+
</div>
|
|
45
|
+
|
|
46
|
+
<!-- <p>admin</p>-->
|
|
47
|
+
<p>{{ $t2('格式', 'components.VabUpload.fileType') }}:{{ pasteFile.fileSuffix }}</p>
|
|
48
|
+
<p>{{ $t2('大小', 'components.VabUpload.fileSize') }}:{{ formatFileSize(pasteFile.size) }}</p>
|
|
49
|
+
</div>
|
|
50
|
+
<div class="el-icon-close" @click="deletePasteFile(index)">
|
|
51
|
+
<i class="el-tooltip iconfont iconshanchu"></i>
|
|
52
|
+
</div>
|
|
53
|
+
</div>
|
|
54
|
+
</li>
|
|
55
|
+
</ul>
|
|
56
|
+
<el-button type="primary" @click="confirmPasteFile" class="button-sty" v-if="pasteList.length>0">
|
|
57
|
+
<i class="el-icon-check el-icon"></i>
|
|
58
|
+
{{ $t2('确定文件', 'components.VabUpload.confirmFile') }}
|
|
59
|
+
</el-button>
|
|
60
|
+
</div>
|
|
61
|
+
<div class="upload-b_right">
|
|
62
|
+
<div class="tips">
|
|
63
|
+
{{
|
|
64
|
+
$t2('注意:当前所有文件上传完,才允许确定操作,单个文件上传大小,请尽量小于100MB。', 'components.VabUpload.tip2')
|
|
65
|
+
}}
|
|
66
|
+
<div class="upload-count fr">
|
|
67
|
+
<div>{{ $t2('总数', 'components.VabUpload.total') }}:<span>{{ totalQuantity }}</span></div>
|
|
68
|
+
<div>{{ $t2('成功', 'components.VabUpload.success') }}:<span>{{ successQuantity }}</span></div>
|
|
69
|
+
<div>{{ $t2('失败', 'components.VabUpload.fail') }}:<span
|
|
70
|
+
:class="{error : errorQuantity > 0}">{{ errorQuantity }}</span></div>
|
|
71
|
+
</div>
|
|
72
|
+
</div>
|
|
73
|
+
<el-upload
|
|
74
|
+
ref="upload"
|
|
75
|
+
:action="action"
|
|
76
|
+
:http-request="changeFile"
|
|
77
|
+
:auto-upload="auto"
|
|
78
|
+
:close-on-click-modal="false"
|
|
79
|
+
:data="data"
|
|
80
|
+
:file-list="fileList"
|
|
81
|
+
:headers="headers"
|
|
82
|
+
:limit="limit"
|
|
83
|
+
:multiple="isMulti"
|
|
84
|
+
:name="name"
|
|
85
|
+
:on-change="handleChange"
|
|
86
|
+
:on-error="handleError"
|
|
87
|
+
:on-exceed="handleExceed"
|
|
88
|
+
:on-preview="handlePreview"
|
|
89
|
+
:on-progress="handleProgress"
|
|
90
|
+
:on-remove="handleRemove"
|
|
91
|
+
:on-success="handleSuccess"
|
|
92
|
+
:before-upload="handleBeforeUpload"
|
|
93
|
+
:accept="accept"
|
|
94
|
+
class="upload-demo"
|
|
95
|
+
list-type="picture"
|
|
96
|
+
>
|
|
97
|
+
<div class="avatar-uploader hidden" slot="trigger" v-if="showLocalUploadBtn" ref="uploadBtn" v-show="false">
|
|
98
|
+
<i
|
|
99
|
+
class="el-icon-plus avatar-uploader-icon"></i></div>
|
|
100
|
+
<div slot="file" slot-scope="{ file }">
|
|
101
|
+
<img :src="getShowImage(file)" class="el-upload-list__item-thumbnail"/>
|
|
102
|
+
<div class="el-upload-list__item-name">
|
|
103
|
+
<p>{{ file.name }}</p>
|
|
104
|
+
<p>{{ formatFileSize(file.size) }}</p>
|
|
105
|
+
<p class="f-red" v-if="file.status=='fail'">{{ file.failMsg }}</p>
|
|
106
|
+
</div>
|
|
107
|
+
<el-progress :percentage="file.percentage"
|
|
108
|
+
v-if="file.status == 'uploading' || file.status == 'preUpload'"></el-progress>
|
|
109
|
+
<div class="el-upload-list__item-status-label error" v-else-if="file.status == 'fail'"><i
|
|
110
|
+
class="el-icon-upload-success iconfont icon-gantanhao"></i></div>
|
|
111
|
+
<div class="el-upload-list__item-status-label" v-else-if="file.percentage==100"><i
|
|
112
|
+
class="el-icon-upload-success el-icon-check"></i></div>
|
|
113
|
+
<div class="el-upload-list__item-status-label load" v-else-if="file.status == 'ready'"><i
|
|
114
|
+
class="el-icon-loading"></i></div>
|
|
115
|
+
|
|
116
|
+
<div class="el-icon-close" @click="removeFile(file)">
|
|
117
|
+
<el-tooltip :enterable="false" effect="dark" :content="$t2('删除', 'components.VabUpload.delete')"
|
|
118
|
+
placement="top" popper-class="tooltip-skin">
|
|
119
|
+
<i
|
|
120
|
+
class="iconfont iconshanchu"></i></el-tooltip>
|
|
121
|
+
</div>
|
|
122
|
+
</div>
|
|
123
|
+
<el-dialog :visible.sync="dialogVisible" append-to-body
|
|
124
|
+
:title="$t2('查看大图', 'components.VabUpload.checkBigImgage')">
|
|
125
|
+
<div><img :src="dialogImageUrl" alt="" width="100%"/></div>
|
|
126
|
+
</el-dialog>
|
|
127
|
+
</el-upload>
|
|
128
|
+
</div>
|
|
129
|
+
</div>
|
|
130
|
+
<span slot="footer" class="dialog-footer">
|
|
131
|
+
<div class="fl" style="margin-left:291px;">
|
|
132
|
+
<el-button type="warning" class="button-sty" slot="trigger" v-if="showLocalUploadBtn"
|
|
133
|
+
@click="$refs.uploadBtn.click()">
|
|
134
|
+
<i class="el-icon-plus"></i>
|
|
135
|
+
{{ $t2('从本地选择', 'components.VabUpload.localPick') }}
|
|
136
|
+
</el-button>
|
|
137
|
+
<el-button type="success" class="button-sty" @click="showPrivateProfileDialog= true"
|
|
138
|
+
v-if="showPrivateUploadBtn">
|
|
139
|
+
<i class="iconfont icon-wendangshangchuan"></i>
|
|
140
|
+
{{ $t2('从个人文档工作区选择', 'components.VabUpload.privateDocumentPick') }}
|
|
141
|
+
</el-button>
|
|
142
|
+
</div>
|
|
143
|
+
|
|
144
|
+
<el-button type="primary" plain class="button-sty" @click="handleClose">
|
|
145
|
+
<i class="el-icon-close el-icon"></i>
|
|
146
|
+
{{ $t2('取 消', 'system.button.cancel2') }}
|
|
147
|
+
</el-button>
|
|
148
|
+
<el-button type="primary" plain class="button-sty" @click="submitUpload" v-if="!auto && hasReadyFile">
|
|
149
|
+
<i class="el-icon el-icon-video-play"></i>
|
|
150
|
+
{{ $t2('确认上传', 'components.VabUpload.comfirmUpload') }}
|
|
151
|
+
</el-button>
|
|
152
|
+
<el-button type="primary" @click="submitImage" class="button-sty" v-if="!uploading">
|
|
153
|
+
<i class="el-icon-check el-icon"></i>
|
|
154
|
+
{{ $t2('确 定', 'system.button.confirm2') }}
|
|
155
|
+
</el-button>
|
|
156
|
+
<!-- <el-button type="primary" plain class="button-sty" @click="handleBtn" v-if="uploading">
|
|
157
|
+
<i class="el-icon el-icon-video-play" v-if="btn==true"></i>
|
|
158
|
+
<i class="el-icon el-icon-video-pause" v-if="btn==false"></i>
|
|
159
|
+
{{btn|btnText}}
|
|
160
|
+
</el-button> -->
|
|
161
|
+
</span>
|
|
162
|
+
</el-dialog>
|
|
163
|
+
<privateProfileDialog v-if="showPrivateProfileDialog" :visiable.sync="showPrivateProfileDialog"
|
|
164
|
+
@confirm="confirmPrivateProfileDialog"></privateProfileDialog>
|
|
165
|
+
<el-dialog
|
|
166
|
+
:title="$t2('文件名修改', 'components.VabUpload.modifyFileName')"
|
|
167
|
+
:append-to-body="true"
|
|
168
|
+
:modal-append-to-body="true"
|
|
169
|
+
:close-on-click-modal="false"
|
|
170
|
+
v-if="showFileNameDialog"
|
|
171
|
+
:visible.sync="showFileNameDialog"
|
|
172
|
+
:modal="false"
|
|
173
|
+
custom-class="dialog-style list-dialog dialog-checkbox pd_8"
|
|
174
|
+
width="400px"
|
|
175
|
+
v-el-drag-dialog
|
|
176
|
+
v-el-dialog-center
|
|
177
|
+
>
|
|
178
|
+
<div class="cont">
|
|
179
|
+
<el-form ref="editForm" label-width="110px" class="adSearchForm" style="width: 362px;height: auto;">
|
|
180
|
+
<el-form-item :label="$t2('文件名称', 'components.VabUpload.fileName')">
|
|
181
|
+
<el-input v-model="editFileName" clearable class="all-width"/>
|
|
182
|
+
</el-form-item>
|
|
183
|
+
<el-form-item :label="$t2('文件格式', 'components.VabUpload.fileCategory')">
|
|
184
|
+
{{ editFileSuffix }}
|
|
185
|
+
</el-form-item>
|
|
186
|
+
</el-form>
|
|
187
|
+
</div>
|
|
188
|
+
<span slot="footer" class="dialog-footer">
|
|
189
|
+
<el-button type="primary" plain class="button-sty" @click="showFileNameDialog=false">
|
|
190
|
+
<i class="el-icon-close el-icon"></i>
|
|
191
|
+
{{ $t2('取 消', 'system.button.cancel2') }}
|
|
192
|
+
</el-button>
|
|
193
|
+
<el-button type="primary" @click="confirmFileNameDialog" class="button-sty">
|
|
194
|
+
<i class="el-icon-check el-icon"></i>
|
|
195
|
+
{{ $t2('确 定', 'system.button.confirm2') }}
|
|
196
|
+
</el-button>
|
|
197
|
+
</span>
|
|
198
|
+
</el-dialog>
|
|
199
|
+
</div>
|
|
200
|
+
</template>
|
|
201
|
+
|
|
202
|
+
<script>
|
|
203
|
+
import {mixins} from './mixins';
|
|
204
|
+
|
|
205
|
+
export default {
|
|
206
|
+
mixins: [mixins],
|
|
207
|
+
components: {
|
|
208
|
+
privateProfileDialog: () => import('@base/components/VabUpload/privateProfileDialog')
|
|
209
|
+
}
|
|
210
|
+
};
|
|
211
|
+
</script>
|
|
212
|
+
|
|
213
|
+
<style lang="scss" scoped>
|
|
214
|
+
.pup-annex-box {
|
|
215
|
+
height: 355px;
|
|
216
|
+
background: #fff;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
::v-deep .dialog-style {
|
|
220
|
+
margin-top: 7vh !important;
|
|
221
|
+
|
|
222
|
+
.dialog-footer {
|
|
223
|
+
padding-left: 6px;
|
|
224
|
+
display: block;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
.upload-box .upload-demo .el-upload {
|
|
228
|
+
margin-top: 0 !important;
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
</style>
|