cloud-web-corejs 1.0.258 → 1.0.260
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 +32 -25
- package/src/components/VabUpload/fileLibraryDialog.vue +296 -0
- package/src/components/VabUpload/index.js +22 -2
- package/src/components/VabUpload/index.vue +242 -231
- package/src/components/VabUpload/mixins/fileLibraryDialog.js +1112 -0
- package/src/components/VabUpload/mixins.js +1971 -1829
- package/src/components/VabUpload/privateProfileDialog.vue +2 -2
- package/src/components/baseArea/index.vue +1628 -0
- package/src/components/baseInputExport/mixins.js +48 -31
- package/src/components/baseInputNumber/index.vue +9 -9
- package/src/components/baseTabs/index.vue +16 -8
- package/src/components/code-editor/async.js +29 -0
- package/src/components/code-editor/index.vue +93 -4
- package/src/components/errorMsg/index.js +10 -9
- package/src/components/errorMsg/mixins.js +25 -23
- package/src/components/excelExport/exportFieldDialog.vue +40 -18
- package/src/components/excelExport/index.js +62 -3
- package/src/components/excelExport/index.vue +2 -1
- package/src/components/excelExport/mixins.js +496 -340
- package/src/components/excelImport/index.js +69 -7
- package/src/components/excelImport/mixins.js +841 -9
- package/src/components/fileLibrary/categoryMoveDialog.vue +109 -109
- package/src/components/fileLibrary/fileHistoryDialog.vue +1 -1
- package/src/components/fileLibrary/fileObjAuthDialog.vue +297 -298
- package/src/components/fileLibrary/fileObjAuthEdit.vue +1 -1
- package/src/components/fileLibrary/filterDialog.vue +1 -1
- package/src/components/fileLibrary/index.vue +1109 -1110
- package/src/components/fileLibrary/mixins/indexMixins.js +10 -0
- package/src/components/fileLibrary/propertiesDialog.vue +190 -190
- package/src/components/fileLibrary/recycleBinDialog.vue +237 -236
- package/src/components/formOplog/mixins.js +85 -80
- package/src/components/hiprint/view/design/index.vue +7 -2
- package/src/components/jsonImport/exportUtil.js +106 -0
- package/src/components/jsonImport/index.js +75 -50
- package/src/components/jsonImport/mixins.js +350 -348
- package/src/components/langImport/mixins.js +502 -500
- package/src/components/micro-view-host/contract.js +66 -0
- package/src/components/micro-view-host/index.vue +148 -0
- package/src/components/mobile/file/index.vue +10 -0
- package/src/components/mobile/wf/mixins/wfModifyDialogMixin.js +51 -47
- package/src/components/obsUpload/index.vue +234 -231
- package/src/components/obsUpload/mixins.js +1542 -1476
- package/src/components/onlineTalk/talkUserDialog.vue +1 -1
- package/src/components/table/CellSlot.vue +12 -10
- package/src/components/table/config.js +74 -1
- package/src/components/table/index.js +1209 -1
- package/src/components/table/tableForm.vue +4 -2
- package/src/components/table/tableFormMixin.js +285 -1
- package/src/components/table/util/index.js +38 -40
- package/src/components/table/vxeFilter/index.js +153 -2
- package/src/components/table/vxeFilter/mixin.js +305 -3
- package/src/components/tempStorage/tempStorageDialog.vue +1 -1
- package/src/components/vb-tabs/x-tabs.vue +10 -5
- package/src/components/wf/addTaskUserdialog.vue +1 -1
- package/src/components/wf/mixins/setCandidateDialog.js +217 -217
- package/src/components/wf/mixins/setCandidateDialog2.js +252 -252
- package/src/components/wf/wf.js +2224 -2203
- package/src/components/wf/wfUtil.js +2 -1
- package/src/components/xform/docs/2026-08 /345/210/227/350/241/250/345/257/274/345/207/272/350/204/261/346/225/217/345/210/227/345/211/224/351/231/244/350/220/275/345/234/260/346/226/207/346/241/243.md" +173 -0
- package/src/components/xform/form-designer/designer.js +1 -0
- package/src/components/xform/form-designer/form-widget/container-widget/containerMixin.js +110 -1
- package/src/components/xform/form-designer/form-widget/container-widget/data-table-mixin.js +282 -1
- package/src/components/xform/form-designer/form-widget/field-widget/area-select-widget.vue +272 -0
- package/src/components/xform/form-designer/form-widget/field-widget/autocomplete-widget.vue +119 -0
- package/src/components/xform/form-designer/form-widget/field-widget/fieldMixin.js +14 -0
- package/src/components/xform/form-designer/form-widget/field-widget/form-item-wrapper.vue +18 -73
- package/src/components/xform/form-designer/form-widget/field-widget/mixins/autocomplete-mixin.js +451 -0
- package/src/components/xform/form-designer/form-widget/field-widget/mixins/date-limit-mixin.js +157 -0
- package/src/components/xform/form-designer/form-widget/field-widget/mixins/utc-transform-mixin.js +75 -0
- package/src/components/xform/form-designer/form-widget/field-widget/save_submit_wf_button-widget.vue +112 -0
- package/src/components/xform/form-designer/form-widget/field-widget/script-input-widget.vue +149 -0
- package/src/components/xform/form-designer/form-widget/indexMixin.js +179 -1
- package/src/components/xform/form-designer/indexMixin.js +823 -1
- package/src/components/xform/form-designer/refMixinDesign.js +27 -1
- package/src/components/xform/form-designer/setting-panel/action-button-config-dialog.vue +241 -0
- package/src/components/xform/form-designer/setting-panel/form-dynamicField-setting.vue +601 -0
- package/src/components/xform/form-designer/setting-panel/form-setting.vue +6 -0
- package/src/components/xform/form-designer/setting-panel/index.vue +314 -309
- package/src/components/xform/form-designer/setting-panel/indexMixin.js +324 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/data-table-editor.vue +8 -7
- package/src/components/xform/form-designer/setting-panel/property-editor/container-list-h5/list-h5-editor.vue +8 -7
- package/src/components/xform/form-designer/setting-panel/property-editor/container-table/table-dynamicField-editor.vue +344 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/dropdownFlag-editor.vue +2 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/field-area-select/areaDataType-editor.vue +25 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-area-select/areaMinLevel-editor.vue +50 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-area-select/areaName-editor.vue +20 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-autocomplete/autocomplete-vabSearchName-editor.vue +199 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-baseAttachment/baseAttachment-fileTypes-editor.vue +23 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-cascader/showAllLevels-editor.vue +21 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-date/date-dateLimit-editor.vue +157 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-script-input/script-input-editor.vue +55 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-vabUpload/vabUpload-fileTypes-editor.vue +23 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/fileTypesEditorMixin.js +116 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/fileTypesSelect.vue +176 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/textFlag-editor.vue +3 -3
- package/src/components/xform/form-designer/setting-panel/property-editor/utcTransformEnabled-editor.vue +19 -0
- package/src/components/xform/form-designer/setting-panel/widgetPropertyDialogMixin.js +186 -0
- package/src/components/xform/form-designer/toolbar-panel/indexMixin.js +566 -1
- package/src/components/xform/form-designer/widget-panel/indexMixin.js +290 -1
- package/src/components/xform/form-render/compareDelList.vue +83 -0
- package/src/components/xform/form-render/compareView.vue +76 -0
- package/src/components/xform/form-render/container-item/containerItemMixin.js +378 -1
- package/src/components/xform/form-render/container-item/data-table-mixin.js +35 -0
- package/src/components/xform/form-render/container-item/detail-item.vue +41 -0
- package/src/components/xform/form-render/container-item/dynamicFieldEngine.js +285 -0
- package/src/components/xform/form-render/container-item/dynamicFieldMixin.js +416 -0
- package/src/components/xform/form-render/container-item/list-h5-item.vue +12 -0
- package/src/components/xform/form-render/dynamicDialogRender.js +195 -1
- package/src/components/xform/form-render/dynamicDrawerRender.js +229 -0
- package/src/components/xform/form-render/formDynamicFieldMixin.js +131 -0
- package/src/components/xform/form-render/refMixin.js +29 -1
- package/src/components/xform/mixins/scriptHttp.js +172 -1
- package/src/components/xform/utils/dynamicSchemaUtil.js +361 -0
- package/src/components/xform/utils/tableCellValidateUtil.js +148 -0
- package/src/components/xform/utils/textMaskUtil.js +179 -0
- package/src/components/xform/utils/treeTableUtil.js +1265 -0
- package/src/components/xform/utils/util.js +1 -0
- package/src/components/xform/utils/validators.js +133 -1
- package/src/directive/LimitNumber/index.js +143 -124
- package/src/microRouter/index.js +447 -0
- package/src/mixins/tableTree/index.js +77 -14
- package/src/permission.js +132 -107
- package/src/public-path.js +38 -0
- package/src/router/index.js +3 -3
- package/src/store/modules/micro.js +57 -0
- package/src/store/modules/permission.js +535 -371
- package/src/store/modules/tagsView.js +38 -21
- package/src/store/modules/user.js +409 -370
- package/src/utils/aes.js +9 -3
- package/src/utils/auth.js +1 -1
- package/src/utils/componentDialog.js +162 -40
- package/src/utils/global.js +35 -34
- package/src/utils/index.js +579 -579
- package/src/utils/keepAlive.js +8 -4
- package/src/utils/lazyPlugin.js +66 -0
- package/src/utils/menuAdapter.js +277 -0
- package/src/utils/repeatOpen.js +48 -0
- package/src/utils/request.js +417 -395
- package/src/utils/resolveViewComponent.js +203 -0
- package/src/utils/vab.js +14 -3
- package/src/utils/validate.js +104 -106
- package/src/views/bd/setting/bd_attach_setting/dialog.vue +1 -1
- package/src/views/bd/setting/bd_attach_setting/list.vue +1 -1
- package/src/views/bd/setting/bd_company_env/dialog.vue +1 -1
- package/src/views/bd/setting/bd_company_env/list.vue +1 -1
- package/src/views/bd/setting/formVersion/ftHistoryDialog.vue +488 -489
- package/src/views/bd/setting/form_import_log/list.vue +1 -1
- package/src/views/bd/setting/form_script/dialog.vue +1 -1
- package/src/views/bd/setting/form_script/form_list.vue +174 -166
- package/src/views/bd/setting/form_script/list.vue +1 -1
- package/src/views/bd/setting/form_script/list1.vue +1 -1
- package/src/views/bd/setting/form_script/mixins/form_list.js +330 -322
- package/src/views/bd/setting/form_template/dialog.vue +1 -1
- package/src/views/bd/setting/form_template/formDesignerDialog.vue +172 -171
- package/src/views/bd/setting/form_template/ftHistoryDialog.vue +1 -1
- package/src/views/bd/setting/form_template/itemList.vue +1 -1
- package/src/views/bd/setting/form_template/list.vue +3 -3
- package/src/views/bd/setting/form_template/mixins/edit.js +3 -3
- package/src/views/bd/setting/form_template/mixins/list.js +3 -3
- package/src/views/bd/setting/form_template/mixins/list2.js +3 -3
- package/src/views/bd/setting/form_template/mixins/wf_list.js +3 -3
- package/src/views/bd/setting/form_template/wfObjConfigDialog.vue +253 -254
- package/src/views/bd/setting/form_template/wf_list.vue +3 -3
- package/src/views/bd/setting/logic_param/edit.vue +20 -20
- package/src/views/bd/setting/logic_param/list.vue +1 -1
- package/src/views/bd/setting/menu_kind/dialog.vue +1 -1
- package/src/views/bd/setting/menu_kind/list.vue +1 -1
- package/src/views/bd/setting/push_data/list.vue +1 -1
- package/src/views/bd/setting/push_data_h/list.vue +1 -1
- package/src/views/bd/setting/request_async_setting/list.vue +1 -1
- package/src/views/bd/setting/request_setting/list.vue +1 -1
- package/src/views/bd/setting/table_model/dialog.vue +1 -1
- package/src/views/bd/setting/table_model/list.vue +1 -1
- package/src/views/bd/setting/table_model/zdDialog.vue +1 -1
- package/src/views/user/access_log/list.vue +1 -1
- package/src/views/user/access_log/list2.vue +1 -1
- package/src/views/user/api_request/list.vue +1 -1
- package/src/views/user/area/dialog.vue +1 -1
- package/src/views/user/area/list.vue +1 -1
- package/src/views/user/bill_setting/list.vue +1 -1
- package/src/views/user/bill_setting/userDialog.vue +1 -1
- package/src/views/user/code_rules/list.vue +1 -1
- package/src/views/user/commMenu/index.vue +2 -2
- package/src/views/user/common_attribute/list.vue +2 -2
- package/src/views/user/common_script/list.vue +1 -1
- package/src/views/user/company_info/dialog.vue +1 -1
- package/src/views/user/country/dialog.vue +1 -1
- package/src/views/user/country/list.vue +1 -1
- package/src/views/user/data_type_setting/dialog.vue +1 -1
- package/src/views/user/extend_datasource/dialog.vue +4 -1
- package/src/views/user/extend_datasource/edit.vue +2 -1
- package/src/views/user/extend_datasource/list.vue +4 -1
- package/src/views/user/fieldTranslation/list.vue +1 -1
- package/src/views/user/field_values_invisible/list.vue +1 -1
- package/src/views/user/file_type/list.vue +1 -1
- package/src/views/user/file_view_area/list.vue +1 -1
- package/src/views/user/file_view_ins/list.vue +22 -1
- package/src/views/user/form/view/list.vue +64 -1
- package/src/views/user/groups/dialog.vue +1 -1
- package/src/views/user/groups/list.vue +1 -1
- package/src/views/user/home/default.vue +2 -2
- package/src/views/user/home/default2.vue +1158 -1148
- package/src/views/user/home/index.vue +3 -10
- package/src/views/user/lang_tag/dialog.vue +1 -1
- package/src/views/user/lang_tag/list.vue +1 -1
- package/src/views/user/language_setting/list.vue +1 -1
- package/src/views/user/login/default.vue +0 -8
- package/src/views/user/login/indexMixin.js +547 -556
- package/src/views/user/menu/list.vue +25 -2
- package/src/views/user/menuFallback/index.vue +123 -0
- package/src/views/user/mobile_menu/list.vue +1 -1
- package/src/views/user/notify_message/dialog.vue +22 -1
- package/src/views/user/notify_message/list.vue +1 -1
- package/src/views/user/notify_template/list.vue +1 -1
- package/src/views/user/notify_template/list2.vue +1 -1
- package/src/views/user/oplog/list.vue +1 -1
- package/src/views/user/outLink/form_view.vue +5 -14
- package/src/views/user/outLink/index.vue +6 -1
- package/src/views/user/outLink/view.vue +5 -13
- package/src/views/user/position/dialog.vue +1 -1
- package/src/views/user/position/list.vue +1 -1
- package/src/views/user/project_tag/dialog.vue +1 -1
- package/src/views/user/project_tag/list.vue +1 -1
- package/src/views/user/push_setting/list.vue +1 -1
- package/src/views/user/request_setting/list.vue +1 -1
- package/src/views/user/role/dialog.vue +1 -1
- package/src/views/user/role/list.vue +1 -1
- package/src/views/user/sale_org/dialog.vue +1 -1
- package/src/views/user/sale_org/list.vue +1 -1
- package/src/views/user/system_notice/list.vue +1 -1
- package/src/views/user/system_parameter/list.vue +1 -1
- package/src/views/user/user/dialog.vue +1 -1
- package/src/views/user/user/edit.vue +306 -159
- package/src/views/user/user/form_dialog.vue +1 -1
- package/src/views/user/user/form_list.vue +1 -1
- package/src/views/user/user/list.vue +2 -2
- package/src/views/user/user_log_classify/list.vue +1 -1
- package/src/views/user/wf/iframe/index.vue +6 -1
- package/src/views/user/wf/iframe/index2.vue +6 -1
- package/src/views/user/wf/wfReport/index.vue +12 -6
- package/src/views/user/wf/wf_auto_submit_data/list.vue +2 -2
- package/src/views/user/wf/wf_manage/list.vue +97 -24
- package/src/views/user/wf/wf_manage/list2.vue +875 -0
- package/src/views/user/wf/wf_manage/wfContentDialog.vue +23 -1
- package/src/views/user/wf/wf_obj_config/dialog.vue +1 -1
- package/src/views/user/wf/wf_obj_config/list.vue +1 -1
- package/src/views/user/wf/wf_obj_config/list_form.vue +1 -1
- package/src/views/user/wf/wf_transfer_setting/list.vue +1 -1
- package/src/views/user/workbench_menu/list.vue +1 -1
|
@@ -1,231 +1,242 @@
|
|
|
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
|
-
<
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
:
|
|
79
|
-
:
|
|
80
|
-
:
|
|
81
|
-
:
|
|
82
|
-
:
|
|
83
|
-
:
|
|
84
|
-
:
|
|
85
|
-
:
|
|
86
|
-
:
|
|
87
|
-
:
|
|
88
|
-
:on-
|
|
89
|
-
:on-
|
|
90
|
-
:on-
|
|
91
|
-
:on-
|
|
92
|
-
:
|
|
93
|
-
:
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
<div slot="
|
|
101
|
-
<
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
<div class="el-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
<el-button type="primary"
|
|
153
|
-
<i class="el-icon-
|
|
154
|
-
{{ $t2('
|
|
155
|
-
</el-button>
|
|
156
|
-
|
|
157
|
-
<i class="el-icon el-icon-video-play"
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
</
|
|
201
|
-
|
|
202
|
-
<
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
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
|
+
<template v-if="allowedFileTypesText">{{
|
|
67
|
+
$t2('仅支持上传以下格式:', 'components.VabUpload.fileTypesTip')
|
|
68
|
+
}}{{ allowedFileTypesText }}</template>
|
|
69
|
+
<div class="upload-count fr">
|
|
70
|
+
<div>{{ $t2('总数', 'components.VabUpload.total') }}:<span>{{ totalQuantity }}</span></div>
|
|
71
|
+
<div>{{ $t2('成功', 'components.VabUpload.success') }}:<span>{{ successQuantity }}</span></div>
|
|
72
|
+
<div>{{ $t2('失败', 'components.VabUpload.fail') }}:<span
|
|
73
|
+
:class="{error : errorQuantity > 0}">{{ errorQuantity }}</span></div>
|
|
74
|
+
</div>
|
|
75
|
+
</div>
|
|
76
|
+
<el-upload
|
|
77
|
+
ref="upload"
|
|
78
|
+
:action="action"
|
|
79
|
+
:http-request="changeFile"
|
|
80
|
+
:auto-upload="auto"
|
|
81
|
+
:close-on-click-modal="false"
|
|
82
|
+
:data="data"
|
|
83
|
+
:file-list="fileList"
|
|
84
|
+
:headers="headers"
|
|
85
|
+
:limit="limit"
|
|
86
|
+
:multiple="isMulti"
|
|
87
|
+
:name="name"
|
|
88
|
+
:on-change="handleChange"
|
|
89
|
+
:on-error="handleError"
|
|
90
|
+
:on-exceed="handleExceed"
|
|
91
|
+
:on-preview="handlePreview"
|
|
92
|
+
:on-progress="handleProgress"
|
|
93
|
+
:on-remove="handleRemove"
|
|
94
|
+
:on-success="handleSuccess"
|
|
95
|
+
:before-upload="handleBeforeUpload"
|
|
96
|
+
:accept="uploadAccept"
|
|
97
|
+
class="upload-demo"
|
|
98
|
+
list-type="picture"
|
|
99
|
+
>
|
|
100
|
+
<div class="avatar-uploader hidden" slot="trigger" v-if="showLocalUploadBtn" ref="uploadBtn" v-show="false">
|
|
101
|
+
<i
|
|
102
|
+
class="el-icon-plus avatar-uploader-icon"></i></div>
|
|
103
|
+
<div slot="file" slot-scope="{ file }">
|
|
104
|
+
<img :src="getShowImage(file)" class="el-upload-list__item-thumbnail"/>
|
|
105
|
+
<div class="el-upload-list__item-name">
|
|
106
|
+
<p>{{ file.name }}</p>
|
|
107
|
+
<p>{{ formatFileSize(file.size) }}</p>
|
|
108
|
+
<p class="f-red" v-if="file.status=='fail'">{{ file.failMsg }}</p>
|
|
109
|
+
</div>
|
|
110
|
+
<el-progress :percentage="file.percentage"
|
|
111
|
+
v-if="file.status == 'uploading' || file.status == 'preUpload'"></el-progress>
|
|
112
|
+
<div class="el-upload-list__item-status-label error" v-else-if="file.status == 'fail'"><i
|
|
113
|
+
class="el-icon-upload-success iconfont icon-gantanhao"></i></div>
|
|
114
|
+
<div class="el-upload-list__item-status-label" v-else-if="file.percentage==100"><i
|
|
115
|
+
class="el-icon-upload-success el-icon-check"></i></div>
|
|
116
|
+
<div class="el-upload-list__item-status-label load" v-else-if="file.status == 'ready'"><i
|
|
117
|
+
class="el-icon-loading"></i></div>
|
|
118
|
+
|
|
119
|
+
<div class="el-icon-close" @click="removeFile(file)">
|
|
120
|
+
<el-tooltip :enterable="false" effect="dark" :content="$t2('删除', 'components.VabUpload.delete')"
|
|
121
|
+
placement="top" popper-class="tooltip-skin">
|
|
122
|
+
<i
|
|
123
|
+
class="iconfont iconshanchu"></i></el-tooltip>
|
|
124
|
+
</div>
|
|
125
|
+
</div>
|
|
126
|
+
<el-dialog :visible.sync="dialogVisible" append-to-body
|
|
127
|
+
:title="$t2('查看大图', 'components.VabUpload.checkBigImgage')">
|
|
128
|
+
<div><img :src="dialogImageUrl" alt="" width="100%"/></div>
|
|
129
|
+
</el-dialog>
|
|
130
|
+
</el-upload>
|
|
131
|
+
</div>
|
|
132
|
+
</div>
|
|
133
|
+
<span slot="footer" class="dialog-footer">
|
|
134
|
+
<div class="fl" :class="{showPasteArea:option.hidePasteArea!==true}">
|
|
135
|
+
<el-button type="warning" class="button-sty" slot="trigger" v-if="showLocalUploadBtn"
|
|
136
|
+
@click="$refs.uploadBtn.click()">
|
|
137
|
+
<i class="el-icon-plus"></i>
|
|
138
|
+
{{ $t2('从本地选择', 'components.VabUpload.localPick') }}
|
|
139
|
+
</el-button>
|
|
140
|
+
<el-button type="success" class="button-sty" @click="showPrivateProfileDialog= true"
|
|
141
|
+
v-if="showPrivateUploadBtn">
|
|
142
|
+
<i class="iconfont icon-wendangshangchuan"></i>
|
|
143
|
+
{{ $t2('从个人文档工作区选择', 'components.VabUpload.privateDocumentPick') }}
|
|
144
|
+
</el-button>
|
|
145
|
+
<el-button type="success" class="button-sty" @click="openFileLibraryDialog"
|
|
146
|
+
v-if="showFileLibraryButton && !!fileLibraryName">
|
|
147
|
+
<i class="iconfont icon-wendangshangchuan"></i>
|
|
148
|
+
{{ fileLibraryName }}
|
|
149
|
+
</el-button>
|
|
150
|
+
</div>
|
|
151
|
+
|
|
152
|
+
<el-button type="primary" plain class="button-sty" @click="handleClose">
|
|
153
|
+
<i class="el-icon-close el-icon"></i>
|
|
154
|
+
{{ $t2('取 消', 'system.button.cancel2') }}
|
|
155
|
+
</el-button>
|
|
156
|
+
<el-button type="primary" plain class="button-sty" @click="submitUpload" v-if="!auto && hasReadyFile">
|
|
157
|
+
<i class="el-icon el-icon-video-play"></i>
|
|
158
|
+
{{ $t2('确认上传', 'components.VabUpload.comfirmUpload') }}
|
|
159
|
+
</el-button>
|
|
160
|
+
<el-button type="primary" @click="submitImage" class="button-sty" v-if="!uploading">
|
|
161
|
+
<i class="el-icon-check el-icon"></i>
|
|
162
|
+
{{ $t2('确 定', 'system.button.confirm2') }}
|
|
163
|
+
</el-button>
|
|
164
|
+
<!-- <el-button type="primary" plain class="button-sty" @click="handleBtn" v-if="uploading">
|
|
165
|
+
<i class="el-icon el-icon-video-play" v-if="btn==true"></i>
|
|
166
|
+
<i class="el-icon el-icon-video-pause" v-if="btn==false"></i>
|
|
167
|
+
{{btn|btnText}}
|
|
168
|
+
</el-button> -->
|
|
169
|
+
</span>
|
|
170
|
+
</el-dialog>
|
|
171
|
+
<privateProfileDialog v-if="showPrivateProfileDialog" :visiable.sync="showPrivateProfileDialog"
|
|
172
|
+
@confirm="confirmPrivateProfileDialog"></privateProfileDialog>
|
|
173
|
+
<el-dialog
|
|
174
|
+
:title="$t2('文件名修改', 'components.VabUpload.modifyFileName')"
|
|
175
|
+
:append-to-body="true"
|
|
176
|
+
:modal-append-to-body="true"
|
|
177
|
+
:close-on-click-modal="false"
|
|
178
|
+
v-if="showFileNameDialog"
|
|
179
|
+
:visible.sync="showFileNameDialog"
|
|
180
|
+
:modal="false"
|
|
181
|
+
custom-class="dialog-style list-dialog dialog-checkbox pd_8"
|
|
182
|
+
width="400px"
|
|
183
|
+
v-el-drag-dialog
|
|
184
|
+
v-el-dialog-center
|
|
185
|
+
>
|
|
186
|
+
<div class="cont">
|
|
187
|
+
<el-form ref="editForm" label-width="110px" class="adSearchForm" style="width: 362px;height: auto;">
|
|
188
|
+
<el-form-item :label="$t2('文件名称', 'components.VabUpload.fileName')">
|
|
189
|
+
<el-input v-model="editFileName" clearable class="all-width"/>
|
|
190
|
+
</el-form-item>
|
|
191
|
+
<el-form-item :label="$t2('文件格式', 'components.VabUpload.fileCategory')">
|
|
192
|
+
{{ editFileSuffix }}
|
|
193
|
+
</el-form-item>
|
|
194
|
+
</el-form>
|
|
195
|
+
</div>
|
|
196
|
+
<span slot="footer" class="dialog-footer">
|
|
197
|
+
<el-button type="primary" plain class="button-sty" @click="showFileNameDialog=false">
|
|
198
|
+
<i class="el-icon-close el-icon"></i>
|
|
199
|
+
{{ $t2('取 消', 'system.button.cancel2') }}
|
|
200
|
+
</el-button>
|
|
201
|
+
<el-button type="primary" @click="confirmFileNameDialog" class="button-sty">
|
|
202
|
+
<i class="el-icon-check el-icon"></i>
|
|
203
|
+
{{ $t2('确 定', 'system.button.confirm2') }}
|
|
204
|
+
</el-button>
|
|
205
|
+
</span>
|
|
206
|
+
</el-dialog>
|
|
207
|
+
</div>
|
|
208
|
+
</template>
|
|
209
|
+
|
|
210
|
+
<script>
|
|
211
|
+
import {mixins} from './mixins';
|
|
212
|
+
|
|
213
|
+
export default {
|
|
214
|
+
mixins: [mixins],
|
|
215
|
+
components: {
|
|
216
|
+
privateProfileDialog: () => import('./privateProfileDialog')
|
|
217
|
+
}
|
|
218
|
+
};
|
|
219
|
+
</script>
|
|
220
|
+
|
|
221
|
+
<style lang="scss" scoped>
|
|
222
|
+
.pup-annex-box {
|
|
223
|
+
height: 355px;
|
|
224
|
+
background: #fff;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
::v-deep .dialog-style {
|
|
228
|
+
margin-top: 7vh !important;
|
|
229
|
+
|
|
230
|
+
.dialog-footer {
|
|
231
|
+
padding-left: 6px;
|
|
232
|
+
display: block;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
.upload-box .upload-demo .el-upload {
|
|
236
|
+
margin-top: 0 !important;
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
.showPasteArea {
|
|
240
|
+
margin-left:291px
|
|
241
|
+
}
|
|
242
|
+
</style>
|