centaline-data-driven 1.3.57 → 1.3.60

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.
@@ -1,24 +1,22 @@
1
1
  <template>
2
2
  <div style="width: 100%" v-if="model !== null" class="block ct-file" :class="[model.attrs.size ? 'ct-checkbox-' + model.attrs.size : '']">
3
- <el-upload
4
- :class="disableUpload ? 'ct-upload-display-none' : ''"
5
- :disabled="model.lock"
6
- :accept="model.fileAccept"
7
- :on-change="handleChange"
8
- list-type="picture-card"
9
- :file-list="model.fileList"
10
- :multiple="true"
11
- :auto-upload="true"
12
- :action="model.action"
13
- :data="model.uploadData"
14
- :headers="headers"
15
- :before-upload="beforeUploadProcess"
16
- :on-success="handleAvatarSuccess"
17
- :on-error="handleAvatarError"
18
- :on-progress="uploadProcess"
19
- :limit="parseInt(model.max || 999)"
20
- :on-exceed="handleExceed"
21
- >
3
+ <el-upload :class="disableUpload ? 'ct-upload-display-none' : ''"
4
+ :disabled="model.lock"
5
+ :accept="model.fileAccept"
6
+ :on-change="handleChange"
7
+ list-type="picture-card"
8
+ :file-list="model.fileList"
9
+ :multiple="true"
10
+ :auto-upload="true"
11
+ :action="model.action"
12
+ :data="model.uploadData"
13
+ :headers="headers"
14
+ :before-upload="beforeUploadProcess"
15
+ :on-success="handleAvatarSuccess"
16
+ :on-error="handleAvatarError"
17
+ :on-progress="uploadProcess"
18
+ :limit="parseInt(model.max || 999)"
19
+ :on-exceed="handleExceed">
22
20
  <i slot="default" class="el-icon-plus"></i>
23
21
  <!--<i slot="default" class="el-icon-plus" style="position: relative;"><div @click="testss($event)" class="max-ewmsc"></div></i>-->
24
22
 
@@ -29,6 +27,11 @@
29
27
  <div class="cover-list-item">
30
28
  <el-image fit="fill" :src="file.url" style="width: 100px; height: 100px" :z-index="previewZIndex" @click="viewerfile(file)">
31
29
  </el-image>
30
+ <span class="cover-list-item-span-Default" v-if="model.rightDefault&&model.rightDefault==1">
31
+ <i>
32
+ <el-radio v-model="file.flagDefault" :label="true" @change="handleDefault($event,file)" :disabled="model.lock" title="设为封面">&nbsp;</el-radio>
33
+ </i>
34
+ </span>
32
35
  <span class="cover-list-item-span-delete" v-if="!model.lock && file.rightDel">
33
36
  <i class="el-icon-delete" @click="handleRemove(file)"></i>
34
37
  </span>
@@ -43,7 +46,7 @@
43
46
  <i class="el-icon-arrow-down el-icon--right"></i>
44
47
  </span>
45
48
  <!--简单分类-->
46
- <el-dropdown v-else class="el-upload-list__item-preview" trigger="click" placement="top" @command="classifySelectedClickHandle">
49
+ <el-dropdown v-else class="el-upload-list__item-preview" trigger="click" placement="top" @command="classifySelectedClickHandle">
47
50
  <span class="el-dropdown-link" @click="classifyClickHandle">
48
51
  <span style="width: 80px; height: 26px; display: inline-flex">&nbsp;{{ file.mediaLabelName }}</span>
49
52
  <i class="el-icon-arrow-down el-icon--right"></i>
@@ -56,366 +59,403 @@
56
59
  </el-dropdown>
57
60
  </span>
58
61
  </div>
59
- <el-progress type="circle" v-if="file.progressFlag" :percentage="file.loadProgress"></el-progress>
62
+ <el-progress type="circle" v-if="file.progressFlag" :percentage="file.loadProgress" :width="96" :height="96" class="file-cirle"></el-progress>
60
63
  </div>
61
64
  </el-upload>
62
65
  </div>
63
66
  </template>
64
67
  <script>
65
- import dynamicElement from "../../mixins/dynamicElement";
66
- export default {
67
- name: "ct-file",
68
- mixins: [dynamicElement],
69
- props: {
70
- vmodel: Object,
71
- api: String,
72
- },
73
- data() {
74
- return {
75
- disableUpload: false,
76
- };
77
- },
78
- computed: {
79
- headers: function () {
80
- return this.$common.getDataDrivenOpts().handler.getRequestHeaders();
68
+ import dynamicElement from "../../mixins/dynamicElement";
69
+ export default {
70
+ name: "ct-file",
71
+ mixins: [dynamicElement],
72
+ props: {
73
+ vmodel: Object,
74
+ api: String,
81
75
  },
82
- previewZIndex: function () {
83
- return this.$common.getDataDrivenOpts().zindex + 100;
76
+ data() {
77
+ return {
78
+ disableUpload: false,
79
+ };
84
80
  },
85
- },
86
- created() {
87
- var self = this;
88
- this.$nextTick(function () {
89
- if (self.vmodel) {
90
- self.load(self.vmodel);
91
- self.$emit("loaded");
92
- } else if (typeof self.source !== "undefined") {
93
- self.loaderObj.File(self.source, (data) => {
94
- self.load(data);
95
- });
96
- }
97
- this.disableUpload = this.model.lock;
98
- });
99
- },
100
- methods: {
101
- load(data) {
102
- this.model = data;
103
- this.classifyClickHandle()
81
+ computed: {
82
+ headers: function () {
83
+ return this.$common.getDataDrivenOpts().handler.getRequestHeaders();
84
+ },
85
+ previewZIndex: function () {
86
+ return this.$common.getDataDrivenOpts().zindex + 100;
87
+ },
104
88
  },
105
- handleExceed() {
106
- this.validMessage = "附件数量最多" + this.model.max + "张";
107
- this.valid = false;
108
- this.$message.error(this.validMessage);
89
+ created() {
90
+ var self = this;
91
+ this.$nextTick(function () {
92
+ if (self.vmodel) {
93
+ self.load(self.vmodel);
94
+ self.$emit("loaded");
95
+ }
96
+ else if (typeof self.source !== "undefined") {
97
+ self.loaderObj.File(self.source, (data) => {
98
+ self.load(data);
99
+ });
100
+ }
101
+ this.disableUpload = this.model.lock;
102
+ });
109
103
  },
110
- //删除
111
- handleRemove(file) {
112
- this.$common.confirm("确定删除该附件?", "提示", {
104
+ methods: {
105
+ load(data) {
106
+ this.model = data;
107
+ this.classifyClickHandle();
108
+
109
+ },
110
+ handleExceed() {
111
+ this.validMessage = "附件数量最多" + this.model.max + "张";
112
+ this.valid = false;
113
+ this.$message.error(this.validMessage);
114
+ },
115
+ //删除
116
+ handleRemove(file) {
117
+ this.$common.confirm("确定删除该附件?", "提示", {
113
118
  confirmButtonText: "确定",
114
119
  cancelButtonText: "取消",
115
120
  //type: 'warning'
116
121
  }).then(() => {
117
122
  this.model.deleteFile(file, false);
118
123
  this.selfValidExcute("remove");
119
- }).catch(() => {});
120
- },
121
- handlePictureCardPreview(file) {
122
- if (this.$common.isAssetTypeAnImage(this.getSuffix(file))) {
123
- // this.$openPreview([file.mediaUrl]);
124
- } else {
125
- if (file.rightDownload) {
126
- window.open(file.mediaUrl, "_blank");
124
+ }).catch(() => { });
125
+ },
126
+ handlePictureCardPreview(file) {
127
+ if (this.$common.isAssetTypeAnImage(this.getSuffix(file))) {
128
+ // this.$openPreview([file.mediaUrl]);
129
+ } else {
130
+ if (file.rightDownload) {
131
+ window.open(file.mediaUrl, "_blank");
132
+ }
133
+ return [];
127
134
  }
128
- return [];
129
- }
130
- },
131
- viewerfile(file) {
132
- var self = this;
133
- var MediaAlbum = [{ albumName: this.model.label || "媒体", medias: [] }];
135
+ },
136
+ viewerfile(file) {
137
+ var self = this;
138
+ var MediaAlbum = [{ albumName: this.model.label || "媒体", medias: [] }];
134
139
 
135
- let fileList = this.model.sourceList.filter((item) => {
136
- return item.flagDeleted !== true;
137
- });
138
- fileList.forEach((v) => {
139
- MediaAlbum[0].medias.push(v);
140
- });
141
- var index = MediaAlbum[0].medias.findIndex(
142
- (v) => (v === file.source)
143
- );
144
-
145
- var width = parseInt(window.document.body.clientWidth * 0.8);
146
- var height = parseInt(window.document.body.clientHeight * 0.8);
147
- width = width > 1160 ? 1160 : width;
148
- var dialogOption = {
149
- title: this.model.label || "预览媒体",
150
- //pane: self.$common.getParentPane(self),
151
- content: [
152
- {
153
- component: "ct-viewerfile",
154
- attrs: {
155
- showTitle: false,
156
- MediaAlbum: MediaAlbum,
157
- groupIndex: 0,
158
- index: index,
159
- // width: self.modelPhotoselect.router.pageWidth + 'px',
160
- // height: self.modelPhotoselect.router.pageHeight+'px',
161
- width: width + "px",
162
- height: height + "px",
163
- },
164
- on: {
165
- handlePhoto(photoList) {},
140
+ let fileList = this.model.sourceList.filter((item) => {
141
+ return item.flagDeleted !== true;
142
+ });
143
+ fileList.forEach((v) => {
144
+ MediaAlbum[0].medias.push(v);
145
+ });
146
+ var index = MediaAlbum[0].medias.findIndex(
147
+ (v) => (v === file.source)
148
+ );
149
+
150
+ var width = parseInt(window.document.body.clientWidth * 0.8);
151
+ var height = parseInt(window.document.body.clientHeight * 0.8);
152
+ width = width > 1160 ? 1160 : width;
153
+ var dialogOption = {
154
+ title: this.model.label || "预览媒体",
155
+ //pane: self.$common.getParentPane(self),
156
+ content: [
157
+ {
158
+ component: "ct-viewerfile",
159
+ attrs: {
160
+ showTitle: false,
161
+ MediaAlbum: MediaAlbum,
162
+ groupIndex: 0,
163
+ index: index,
164
+ // width: self.modelPhotoselect.router.pageWidth + 'px',
165
+ // height: self.modelPhotoselect.router.pageHeight+'px',
166
+ width: width + "px",
167
+ height: height + "px",
168
+ },
169
+ on: {
170
+ handlePhoto(photoList) { },
171
+ },
166
172
  },
167
- },
168
- ],
169
- };
170
- self.$common.openDialog(dialogOption);
171
- },
172
- getPreviewSrcList(file) {
173
- if (this.$common.isAssetTypeAnImage(this.getSuffix(file))) {
174
- let arr = this.model.fileList
175
- .filter((at) => this.$common.isAssetTypeAnImage(this.getSuffix(at)))
176
- .map((attach) => {
177
- return attach.mediaUrl;
178
- });
173
+ ],
174
+ };
175
+ self.$common.openDialog(dialogOption);
176
+ },
177
+ getPreviewSrcList(file) {
178
+ if (this.$common.isAssetTypeAnImage(this.getSuffix(file))) {
179
+ let arr = this.model.fileList
180
+ .filter((at) => this.$common.isAssetTypeAnImage(this.getSuffix(at)))
181
+ .map((attach) => {
182
+ return attach.mediaUrl;
183
+ });
179
184
 
180
- //让看起来有序
181
- let nowIndex = arr.findIndex((photo) => photo === file.mediaUrl);
182
- if (nowIndex > -1) {
183
- let start = arr.slice(0, nowIndex);
184
- let end = arr.slice(nowIndex);
185
- arr = [...end, ...start];
185
+ //让看起来有序
186
+ let nowIndex = arr.findIndex((photo) => photo === file.mediaUrl);
187
+ if (nowIndex > -1) {
188
+ let start = arr.slice(0, nowIndex);
189
+ let end = arr.slice(nowIndex);
190
+ arr = [...end, ...start];
191
+ }
192
+ return arr;
193
+ } else {
194
+ return [];
186
195
  }
187
- return arr;
188
- } else {
189
- return [];
190
- }
191
- },
192
- getSuffix(file) {
193
- if (file.fileExtension) {
194
- return file.fileExtension;
195
- }
196
- if (file.name) {
197
- let nameArr = file.name.split(".");
198
- return nameArr[nameArr.length - 1];
199
- }
200
- return "";
201
- },
202
- handleDownload(file) {
203
- },
204
- handleChange(file, fileList) {
205
- this.changeHandler(this.model.value);
206
- },
207
- //上传之前的钩子
208
- beforeUploadProcess(files) {
209
- let that = this;
210
-
211
- // if (this.model.max) {
212
- // console.log('beforeUploadProcess')
213
- // console.log(this.model.fileList)
214
- // if (this.model.getfileListLength() >= this.model.max) {
215
- // this.validMessage = "附件最多" + this.model.max + "个";
216
- // this.valid = false;
217
- // setTimeout(() => {
218
- // that.valid = true;
219
- // }, 3000)
220
- // return false;
221
- // }
222
- // }
223
- return true;
224
- },
225
- //文件上传时的钩子
226
- uploadProcess(event, file, fileList) {
227
- file.progressFlag = true; // 显示进度条
228
- file.loadProgress = parseInt(event.percent); // 动态获取文件上传进度
229
- if (file.loadProgress >= 100) {
230
- file.loadProgress = 100;
231
- setTimeout(() => {
232
- file.progressFlag = false;
233
- }, 1000); // 一秒后关闭进度条
234
- }
235
- },
236
- //上传完成钩子
237
- handleAvatarSuccess(res, file, fileList) {
238
- this.model.handleAvatarSuccess(res, file, fileList);
239
- },
240
- handleAvatarError(res, file, fileList) {
241
- if (res.status === 404) {
242
- let m = JSON.parse(res.message);
243
- if (m.error) {
244
- this.$message.warning("path(" + m.path + ") " + m.error);
196
+ },
197
+ getSuffix(file) {
198
+ if (file.fileExtension) {
199
+ return file.fileExtension;
245
200
  }
246
- }
247
- },
248
- //不能共用的数据校验
249
- selfValidExcute: function (eventName) {
250
- if (this.model.required) {
251
- if (this.model.getfileListLength() === 0) {
252
- this.validMessage = "必须上传附件";
253
- this.valid = false;
254
- return false;
201
+ if (file.name) {
202
+ let nameArr = file.name.split(".");
203
+ return nameArr[nameArr.length - 1];
255
204
  }
256
- }
205
+ return "";
206
+ },
207
+ handleDownload(file) {
208
+ },
209
+ handleChange(file, fileList) {
210
+ this.changeHandler(this.model.value);
211
+ },
212
+ //上传之前的钩子
213
+ beforeUploadProcess(files) {
214
+ let that = this;
257
215
 
258
- if (this.model.max) {
259
- if (this.model.getfileListLength() >= this.model.max) {
260
- this.disableUpload = true;
261
- }
262
- else {
263
- this.disableUpload = false;
216
+ // if (this.model.max) {
217
+ // console.log('beforeUploadProcess')
218
+ // console.log(this.model.fileList)
219
+ // if (this.model.getfileListLength() >= this.model.max) {
220
+ // this.validMessage = "附件最多" + this.model.max + "个";
221
+ // this.valid = false;
222
+ // setTimeout(() => {
223
+ // that.valid = true;
224
+ // }, 3000)
225
+ // return false;
226
+ // }
227
+ // }
228
+ return true;
229
+ },
230
+ //文件上传时的钩子
231
+ uploadProcess(event, file, fileList) {
232
+ file.progressFlag = true; // 显示进度条
233
+ file.loadProgress = parseInt(event.percent); // 动态获取文件上传进度
234
+ if (file.loadProgress >= 100) {
235
+ file.loadProgress = 100;
236
+ setTimeout(() => {
237
+ file.progressFlag = false;
238
+ }, 1000); // 一秒后关闭进度条
264
239
  }
265
- }
266
- if (this.model.min) {
267
- if (this.model.getfileListLength() < this.model.min) {
268
- //change时需要判断有没有上传图片如果没有图片则不提示
269
- if (eventName == "change" && this.model.getfileListLength() > 0) {
270
- this.validMessage = "附件数量还差" + (parseInt(this.model.min) - this.model.getfileListLength()) + "张";
271
- this.valid = false;
272
- }
273
- else if (eventName == "valid") {
274
- this.validMessage = "附件数量还差" + (parseInt(this.model.min) - this.model.getfileListLength()) + "张";
240
+ },
241
+ //上传完成钩子
242
+ handleAvatarSuccess(res, file, fileList) {
243
+ this.model.handleAvatarSuccess(res, file, fileList);
244
+ },
245
+ handleAvatarError(res, file, fileList) {
246
+ if (res.status === 404) {
247
+ let m = JSON.parse(res.message);
248
+ if (m.error) {
249
+ this.$message.warning("path(" + m.path + ") " + m.error);
250
+ }
251
+ }
252
+ },
253
+ //不能共用的数据校验
254
+ selfValidExcute: function (eventName) {
255
+ if (this.model.required) {
256
+ if (this.model.getfileListLength() === 0) {
257
+ this.validMessage = "必须上传附件";
275
258
  this.valid = false;
276
- }
277
- else if (eventName == "remove") {
278
- this.valid = true;
259
+ return false;
279
260
  }
280
- return false;
281
261
  }
282
- }
283
- if (eventName == "valid" && !this.validFileClass()) {
284
- this.validMessage = "请选择附件分类";
285
- this.valid = false;
286
- return false;
287
- }
288
- this.valid = true;
289
- return this.valid;
290
- },
291
- //验证附件分类是否必填
292
- validFileClass() {
293
- if (this.model.paramName) {
294
- if (this.model.sourceList && this.model.sourceList.length > 0) {
295
- let notClass = this.model.sourceList.filter((item) => {
296
- return (
297
- (item.mediaLabelID == undefined || item.mediaLabelID == "") &&
298
- item.flagDeleted !== true
299
- );
300
- });
301
- if (notClass.length > 0) {
262
+
263
+ if (this.model.max && this.model.max > 0) {
264
+ if (this.model.getfileListLength() >= this.model.max) {
265
+ this.disableUpload = true;
266
+ }
267
+ else {
268
+ this.disableUpload = false;
269
+ }
270
+ }
271
+ if (this.model.min) {
272
+ if (this.model.getfileListLength() < this.model.min) {
273
+ //change时需要判断有没有上传图片如果没有图片则不提示
274
+ if (eventName == "change" && this.model.getfileListLength() > 0) {
275
+ this.validMessage = "附件数量还差" + (parseInt(this.model.min) - this.model.getfileListLength()) + "张";
276
+ this.valid = false;
277
+ }
278
+ else if (eventName == "valid") {
279
+ this.validMessage = "附件数量还差" + (parseInt(this.model.min) - this.model.getfileListLength()) + "张";
280
+ this.valid = false;
281
+ }
282
+ else if (eventName == "remove") {
283
+ this.valid = true;
284
+ }
302
285
  return false;
303
286
  }
304
287
  }
305
- }
306
- return true;
307
- },
308
- classifyClickHandle: function () {
309
- var self = this;
310
- this.model.getOptions(() => {
311
- self.$forceUpdate();
312
- });
313
- },
314
- classifySelectedClickHandle: function (classify) {
315
- classify.file.mediaLabelName = classify.option[this.model.optionModel.optionAttrs.label];
316
- classify.file.mediaLabelID = classify.option[this.model.optionModel.optionAttrs.value];
317
- this.model.setClassify(classify);
318
- if (!this.validFileClass()) {
319
- this.validMessage = "请选择附件分类";
320
- this.valid = false;
321
- }
322
- else {
323
- this.valid = true;
324
- }
325
- },
326
- classifyFormClickHandle: function (file) {
327
- var self = this;
328
- this.model.updateClassify(file, () => {
329
- //self.$forceUpdate();
330
- });
331
- if (!this.validFileClass()) {
332
- this.validMessage = "请选择附件分类";
333
- this.valid = false;
334
- }
335
- else {
288
+ if (this.model.rightDefault && this.model.rightDefault==1&& eventName == "valid") {
289
+ if (this.model.getfileDefault()<=0) {
290
+ this.validMessage = "请设置默认封面";
291
+ this.valid = false;
292
+ return false;
293
+ }
294
+ }
295
+ if (eventName == "valid" && !this.validFileClass()) {
296
+ this.validMessage = "请选择附件分类";
297
+ this.valid = false;
298
+ return false;
299
+ }
300
+
336
301
  this.valid = true;
302
+ return this.valid;
303
+ },
304
+ //验证附件分类是否必填
305
+ validFileClass() {
306
+ if (this.model.paramName) {
307
+ if (this.model.sourceList && this.model.sourceList.length > 0) {
308
+ let notClass = this.model.sourceList.filter((item) => {
309
+ return (
310
+ (item.mediaLabelID == undefined || item.mediaLabelID == "") &&
311
+ item.flagDeleted !== true
312
+ );
313
+ });
314
+ if (notClass.length > 0) {
315
+ return false;
316
+ }
317
+ }
318
+ }
319
+ return true;
320
+ },
321
+ classifyClickHandle: function () {
322
+ var self = this;
323
+ this.model.getOptions(() => {
324
+ self.$forceUpdate();
325
+ });
326
+ },
327
+ classifySelectedClickHandle: function (classify) {
328
+ classify.file.mediaLabelName = classify.option[this.model.optionModel.optionAttrs.label];
329
+ classify.file.mediaLabelID = classify.option[this.model.optionModel.optionAttrs.value];
330
+ this.model.setClassify(classify);
331
+ if (!this.validFileClass()) {
332
+ this.validMessage = "请选择附件分类";
333
+ this.valid = false;
334
+ }
335
+ else {
336
+ this.valid = true;
337
+ }
338
+ },
339
+ classifyFormClickHandle: function (file) {
340
+ var self = this;
341
+ this.model.updateClassify(file, () => {
342
+ //self.$forceUpdate();
343
+ });
344
+ if (!this.validFileClass()) {
345
+ this.validMessage = "请选择附件分类";
346
+ this.valid = false;
347
+ }
348
+ else {
349
+ this.valid = true;
350
+ }
351
+ },
352
+ handleDefault: function (event, file) {
353
+ this.model.setDefault(file);
354
+ // this.selfValidExcute("remove");
337
355
  }
338
356
  },
339
- },
340
- };
357
+ };
341
358
  </script>
342
359
  <style>
343
- .ct-upload-display-none .el-upload--picture-card {
344
- display: none;
345
- }
346
- .el-upload-list__item .is-ready {
347
- width: 100px;
348
- height: 100px;
349
- }
350
- .ct-file .cover-list-item {
351
- position: sticky;
352
- }
360
+ .ct-upload-display-none .el-upload--picture-card {
361
+ display: none;
362
+ }
363
+
364
+ .el-upload-list__item .is-ready {
365
+ width: 100px;
366
+ height: 100px;
367
+ }
368
+
369
+ .ct-file .cover-list-item {
370
+ position: sticky;
371
+ }
372
+
373
+ .ct-file .cover-list-item-span {
374
+ position: inherit;
375
+ bottom: 0px;
376
+ left: 0px;
377
+ display: block;
378
+ background-color: #544f48;
379
+ opacity: 0.8;
380
+ }
381
+
382
+ .ct-file .el-dropdown-link {
383
+ cursor: pointer;
384
+ color: #fff;
385
+ position: relative;
386
+ width: 100px;
387
+ height: 26px;
388
+ display: inline-block;
389
+ }
390
+
391
+ .el-icon--right {
392
+ position: absolute;
393
+ right: 5px;
394
+ top: 6px;
395
+ }
396
+
397
+ .ct-file .cover-list-item-span-Default {
398
+ position: inherit;
399
+ bottom: 160px;
400
+ left: 0px;
401
+ text-align: center;
402
+ }
403
+
404
+ .ct-file .cover-list-item-span-delete {
405
+ position: inherit;
406
+ bottom: 160px;
407
+ left: 130px;
408
+ color: #000000;
409
+ text-align: center;
410
+ }
411
+
412
+ .cover-list-item-span-delete i {
413
+ cursor: pointer;
414
+ }
415
+
416
+ .ct-file .el-dropdown-link {
417
+ cursor: pointer;
418
+ color: #fff;
419
+ }
420
+
421
+ .ct-file .el-icon-arrow-down {
422
+ font-size: 12px;
423
+ }
424
+
425
+ .el-collapse-item__content {
426
+ padding-bottom: 18px;
427
+ }
428
+
429
+ .el-upload--picture-card {
430
+ width: 100px;
431
+ height: 100px;
432
+ line-height: initial;
433
+ padding: 34px;
434
+ }
435
+
436
+ .el-upload--picture-card i {
437
+ font-size: 30px;
438
+ }
439
+
440
+ .el-upload-list--picture-card .el-upload-list__item {
441
+ width: 100px;
442
+ height: 100px;
443
+ }
353
444
 
354
- .ct-file .cover-list-item-span {
355
- position: inherit;
356
- bottom: 0px;
357
- left: 0px;
358
- display: block;
359
- background-color: #544f48;
360
- opacity: 0.8;
361
- }
362
- .ct-file .el-dropdown-link {
363
- cursor: pointer;
364
- color: #fff;
365
- position: relative;
366
- width: 100px;
367
- height: 26px;
368
- display: inline-block;
369
- }
370
- .el-icon--right {
371
- position: absolute;
372
- right: 5px;
373
- top: 6px;
374
- }
375
- .ct-file .cover-list-item-span-delete {
376
- position: inherit;
377
- bottom: 160px;
378
- left: 130px;
379
- color: #000000;
380
- text-align: center;
381
- }
382
- .cover-list-item-span-delete i {
383
- cursor: pointer;
384
- }
385
- .ct-file .el-dropdown-link {
386
- cursor: pointer;
387
- color: #fff;
388
- }
445
+ .el-upload .max-ewmsc {
446
+ background: url("../../../assets/ewm.png") no-repeat;
447
+ content: "";
448
+ display: block;
449
+ width: 30px;
450
+ height: 30px;
451
+ font-size: 30px;
452
+ background-size: 30px;
453
+ position: absolute;
454
+ top: -35px;
455
+ left: 35px;
456
+ }
389
457
 
390
- .ct-file .el-icon-arrow-down {
391
- font-size: 12px;
392
- }
393
- .el-collapse-item__content {
394
- padding-bottom: 18px;
395
- }
396
- .el-upload--picture-card {
397
- width: 100px;
398
- height: 100px;
399
- line-height: initial;
400
- padding: 34px;
401
- }
402
- .el-upload--picture-card i {
403
- font-size: 30px;
404
- }
405
- .el-upload-list--picture-card .el-upload-list__item {
406
- width: 100px;
407
- height: 100px;
408
- }
409
- .el-upload .max-ewmsc {
410
- background: url("../../../assets/ewm.png") no-repeat;
411
- content: "";
412
- display: block;
413
- width: 30px;
414
- height: 30px;
415
- font-size: 30px;
416
- background-size: 30px;
417
- position: absolute;
418
- top: -35px;
419
- left: 35px;
420
- }
458
+ .file-cirle .el-progress-circle {
459
+ margin-left: 15px;
460
+ }
421
461
  </style>