cloud-web-corejs 1.0.54-dev.781 → 1.0.54-dev.783
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 +1 -1
- package/src/components/VabUpload/index.vue +242 -242
- package/src/components/VabUpload/mixins.js +1971 -1971
- package/src/components/VabUpload/privateProfileDialog.vue +2 -2
- package/src/components/hiprint/view/design/index.vue +7 -2
- package/src/components/obsUpload/index.vue +234 -234
- package/src/components/obsUpload/mixins.js +1542 -1542
- package/src/components/vb-tabs/x-tabs.vue +7 -3
- package/src/components/xform/docs//346/240/221/350/241/250rowField/346/224/266/346/225/233-/350/220/275/345/234/260/346/226/207/346/241/243.md +1427 -0
- package/src/components/xform/form-designer/form-widget/dialog/formDialog.vue +2 -2
- package/src/components/xform/form-designer/form-widget/dialog/formDrawer.vue +2 -2
- package/src/components/xform/form-designer/form-widget/dialog/searchFormDialog.vue +2 -2
- package/src/components/xform/form-designer/form-widget/field-widget/copy_button-widget.vue +11 -2
- package/src/components/xform/form-designer/form-widget/field-widget/vabUpload-widget.vue +369 -369
- package/src/components/xform/form-designer/setting-panel/property-editor/fileTypesSelect.vue +69 -23
- package/src/components/xform/form-render/container-item/data-table-item.vue +1 -1
- package/src/components/xform/form-render/container-item/data-table-mixin.js +1469 -428
- package/src/components/xform/form-render/indexMixin.js +379 -263
- package/src/components/xform/mixins/defaultHandle.js +234 -28
- package/src/components/xform/mixins/scriptHttp.js +4 -4
- package/src/components/xform/utils/treeTableUtil.js +1265 -0
- package/src/components/xform/utils/util.js +29 -14
- package/src/microRouter/index.js +3 -0
- package/src/mixins/tableTree/index.js +77 -14
- package/src/store/config/index.js +28 -28
- package/src/utils/menuAdapter.js +277 -277
- package/src/utils/resolveViewComponent.js +203 -203
- package/src/utils/vab.js +6 -3
- package/src/views/bd/setting/formVersion/ftHistoryDialog.vue +9 -2
- package/src/views/user/common_attribute/list.vue +1 -1
- package/src/views/user/form/vform/render.vue +17 -2
- package/src/views/user/form/view/list.vue +11 -10
- package/src/views/user/wf/wfReport/index.vue +625 -625
package/package.json
CHANGED
|
@@ -1,242 +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
|
-
<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:!hidePasteArea}">
|
|
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>
|
|
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:!hidePasteArea}">
|
|
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>
|