centaline-data-driven 1.3.59 → 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>
@@ -62,365 +65,397 @@
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
- }
93
- else if (typeof self.source !== "undefined") {
94
- self.loaderObj.File(self.source, (data) => {
95
- self.load(data);
96
- });
97
- }
98
- this.disableUpload = this.model.lock;
99
- });
100
- },
101
- methods: {
102
- load(data) {
103
- this.model = data;
104
- 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
+ },
105
88
  },
106
- handleExceed() {
107
- this.validMessage = "附件数量最多" + this.model.max + "张";
108
- this.valid = false;
109
- 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
+ });
110
103
  },
111
- //删除
112
- handleRemove(file) {
113
- 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("确定删除该附件?", "提示", {
114
118
  confirmButtonText: "确定",
115
119
  cancelButtonText: "取消",
116
120
  //type: 'warning'
117
121
  }).then(() => {
118
122
  this.model.deleteFile(file, false);
119
123
  this.selfValidExcute("remove");
120
- }).catch(() => {});
121
- },
122
- handlePictureCardPreview(file) {
123
- if (this.$common.isAssetTypeAnImage(this.getSuffix(file))) {
124
- // this.$openPreview([file.mediaUrl]);
125
- } else {
126
- if (file.rightDownload) {
127
- 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 [];
128
134
  }
129
- return [];
130
- }
131
- },
132
- viewerfile(file) {
133
- var self = this;
134
- var MediaAlbum = [{ albumName: this.model.label || "媒体", medias: [] }];
135
+ },
136
+ viewerfile(file) {
137
+ var self = this;
138
+ var MediaAlbum = [{ albumName: this.model.label || "媒体", medias: [] }];
135
139
 
136
- let fileList = this.model.sourceList.filter((item) => {
137
- return item.flagDeleted !== true;
138
- });
139
- fileList.forEach((v) => {
140
- MediaAlbum[0].medias.push(v);
141
- });
142
- var index = MediaAlbum[0].medias.findIndex(
143
- (v) => (v === file.source)
144
- );
145
-
146
- var width = parseInt(window.document.body.clientWidth * 0.8);
147
- var height = parseInt(window.document.body.clientHeight * 0.8);
148
- width = width > 1160 ? 1160 : width;
149
- var dialogOption = {
150
- title: this.model.label || "预览媒体",
151
- //pane: self.$common.getParentPane(self),
152
- content: [
153
- {
154
- component: "ct-viewerfile",
155
- attrs: {
156
- showTitle: false,
157
- MediaAlbum: MediaAlbum,
158
- groupIndex: 0,
159
- index: index,
160
- // width: self.modelPhotoselect.router.pageWidth + 'px',
161
- // height: self.modelPhotoselect.router.pageHeight+'px',
162
- width: width + "px",
163
- height: height + "px",
164
- },
165
- on: {
166
- 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
+ },
167
172
  },
168
- },
169
- ],
170
- };
171
- self.$common.openDialog(dialogOption);
172
- },
173
- getPreviewSrcList(file) {
174
- if (this.$common.isAssetTypeAnImage(this.getSuffix(file))) {
175
- let arr = this.model.fileList
176
- .filter((at) => this.$common.isAssetTypeAnImage(this.getSuffix(at)))
177
- .map((attach) => {
178
- return attach.mediaUrl;
179
- });
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
+ });
180
184
 
181
- //让看起来有序
182
- let nowIndex = arr.findIndex((photo) => photo === file.mediaUrl);
183
- if (nowIndex > -1) {
184
- let start = arr.slice(0, nowIndex);
185
- let end = arr.slice(nowIndex);
186
- 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 [];
187
195
  }
188
- return arr;
189
- } else {
190
- return [];
191
- }
192
- },
193
- getSuffix(file) {
194
- if (file.fileExtension) {
195
- return file.fileExtension;
196
- }
197
- if (file.name) {
198
- let nameArr = file.name.split(".");
199
- return nameArr[nameArr.length - 1];
200
- }
201
- return "";
202
- },
203
- handleDownload(file) {
204
- },
205
- handleChange(file, fileList) {
206
- this.changeHandler(this.model.value);
207
- },
208
- //上传之前的钩子
209
- beforeUploadProcess(files) {
210
- let that = this;
211
-
212
- // if (this.model.max) {
213
- // console.log('beforeUploadProcess')
214
- // console.log(this.model.fileList)
215
- // if (this.model.getfileListLength() >= this.model.max) {
216
- // this.validMessage = "附件最多" + this.model.max + "个";
217
- // this.valid = false;
218
- // setTimeout(() => {
219
- // that.valid = true;
220
- // }, 3000)
221
- // return false;
222
- // }
223
- // }
224
- return true;
225
- },
226
- //文件上传时的钩子
227
- uploadProcess(event, file, fileList) {
228
- file.progressFlag = true; // 显示进度条
229
- file.loadProgress = parseInt(event.percent); // 动态获取文件上传进度
230
- if (file.loadProgress >= 100) {
231
- file.loadProgress = 100;
232
- setTimeout(() => {
233
- file.progressFlag = false;
234
- }, 1000); // 一秒后关闭进度条
235
- }
236
- },
237
- //上传完成钩子
238
- handleAvatarSuccess(res, file, fileList) {
239
- this.model.handleAvatarSuccess(res, file, fileList);
240
- },
241
- handleAvatarError(res, file, fileList) {
242
- if (res.status === 404) {
243
- let m = JSON.parse(res.message);
244
- if (m.error) {
245
- this.$message.warning("path(" + m.path + ") " + m.error);
196
+ },
197
+ getSuffix(file) {
198
+ if (file.fileExtension) {
199
+ return file.fileExtension;
246
200
  }
247
- }
248
- },
249
- //不能共用的数据校验
250
- selfValidExcute: function (eventName) {
251
- if (this.model.required) {
252
- if (this.model.getfileListLength() === 0) {
253
- this.validMessage = "必须上传附件";
254
- this.valid = false;
255
- return false;
201
+ if (file.name) {
202
+ let nameArr = file.name.split(".");
203
+ return nameArr[nameArr.length - 1];
256
204
  }
257
- }
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;
258
215
 
259
- if (this.model.max && this.model.max>0) {
260
- if (this.model.getfileListLength() >= this.model.max) {
261
- this.disableUpload = true;
262
- }
263
- else {
264
- 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); // 一秒后关闭进度条
265
239
  }
266
- }
267
- if (this.model.min) {
268
- if (this.model.getfileListLength() < this.model.min) {
269
- //change时需要判断有没有上传图片如果没有图片则不提示
270
- if (eventName == "change" && this.model.getfileListLength() > 0) {
271
- this.validMessage = "附件数量还差" + (parseInt(this.model.min) - this.model.getfileListLength()) + "张";
272
- this.valid = false;
273
- }
274
- else if (eventName == "valid") {
275
- 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 = "必须上传附件";
276
258
  this.valid = false;
277
- }
278
- else if (eventName == "remove") {
279
- this.valid = true;
259
+ return false;
280
260
  }
281
- return false;
282
261
  }
283
- }
284
- if (eventName == "valid" && !this.validFileClass()) {
285
- this.validMessage = "请选择附件分类";
286
- this.valid = false;
287
- return false;
288
- }
289
- this.valid = true;
290
- return this.valid;
291
- },
292
- //验证附件分类是否必填
293
- validFileClass() {
294
- if (this.model.paramName) {
295
- if (this.model.sourceList && this.model.sourceList.length > 0) {
296
- let notClass = this.model.sourceList.filter((item) => {
297
- return (
298
- (item.mediaLabelID == undefined || item.mediaLabelID == "") &&
299
- item.flagDeleted !== true
300
- );
301
- });
302
- 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
+ }
303
285
  return false;
304
286
  }
305
287
  }
306
- }
307
- return true;
308
- },
309
- classifyClickHandle: function () {
310
- var self = this;
311
- this.model.getOptions(() => {
312
- self.$forceUpdate();
313
- });
314
- },
315
- classifySelectedClickHandle: function (classify) {
316
- classify.file.mediaLabelName = classify.option[this.model.optionModel.optionAttrs.label];
317
- classify.file.mediaLabelID = classify.option[this.model.optionModel.optionAttrs.value];
318
- this.model.setClassify(classify);
319
- if (!this.validFileClass()) {
320
- this.validMessage = "请选择附件分类";
321
- this.valid = false;
322
- }
323
- else {
324
- this.valid = true;
325
- }
326
- },
327
- classifyFormClickHandle: function (file) {
328
- var self = this;
329
- this.model.updateClassify(file, () => {
330
- //self.$forceUpdate();
331
- });
332
- if (!this.validFileClass()) {
333
- this.validMessage = "请选择附件分类";
334
- this.valid = false;
335
- }
336
- 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
+
337
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");
338
355
  }
339
356
  },
340
- },
341
- };
357
+ };
342
358
  </script>
343
359
  <style>
344
- .ct-upload-display-none .el-upload--picture-card {
345
- display: none;
346
- }
347
- .el-upload-list__item .is-ready {
348
- width: 100px;
349
- height: 100px;
350
- }
351
- .ct-file .cover-list-item {
352
- position: sticky;
353
- }
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
+ }
354
439
 
355
- .ct-file .cover-list-item-span {
356
- position: inherit;
357
- bottom: 0px;
358
- left: 0px;
359
- display: block;
360
- background-color: #544f48;
361
- opacity: 0.8;
362
- }
363
- .ct-file .el-dropdown-link {
364
- cursor: pointer;
365
- color: #fff;
366
- position: relative;
367
- width: 100px;
368
- height: 26px;
369
- display: inline-block;
370
- }
371
- .el-icon--right {
372
- position: absolute;
373
- right: 5px;
374
- top: 6px;
375
- }
376
- .ct-file .cover-list-item-span-delete {
377
- position: inherit;
378
- bottom: 160px;
379
- left: 130px;
380
- color: #000000;
381
- text-align: center;
382
- }
383
- .cover-list-item-span-delete i {
384
- cursor: pointer;
385
- }
386
- .ct-file .el-dropdown-link {
387
- cursor: pointer;
388
- color: #fff;
389
- }
440
+ .el-upload-list--picture-card .el-upload-list__item {
441
+ width: 100px;
442
+ height: 100px;
443
+ }
390
444
 
391
- .ct-file .el-icon-arrow-down {
392
- font-size: 12px;
393
- }
394
- .el-collapse-item__content {
395
- padding-bottom: 18px;
396
- }
397
- .el-upload--picture-card {
398
- width: 100px;
399
- height: 100px;
400
- line-height: initial;
401
- padding: 34px;
402
- }
403
- .el-upload--picture-card i {
404
- font-size: 30px;
405
- }
406
- .el-upload-list--picture-card .el-upload-list__item {
407
- width: 100px;
408
- height: 100px;
409
- }
410
- .el-upload .max-ewmsc {
411
- background: url("../../../assets/ewm.png") no-repeat;
412
- content: "";
413
- display: block;
414
- width: 30px;
415
- height: 30px;
416
- font-size: 30px;
417
- background-size: 30px;
418
- position: absolute;
419
- top: -35px;
420
- left: 35px;
421
- }
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
+ }
422
457
 
423
- .file-cirle .el-progress-circle {
424
- margin-left: 15px;
425
- }
458
+ .file-cirle .el-progress-circle {
459
+ margin-left: 15px;
460
+ }
426
461
  </style>