|
@@ -834,10 +834,14 @@ export default {
|
|
|
this.raceDetail.data.splice(i, 1);
|
|
|
},
|
|
|
chooseSysPic(p) {
|
|
|
- this.raceDetail.cover.push({
|
|
|
- name: "系统图片.png",
|
|
|
- url: p,
|
|
|
- });
|
|
|
+ if (this.raceDetail.cover.length == 0) {
|
|
|
+ this.raceDetail.cover.push({
|
|
|
+ name: "系统图片.png",
|
|
|
+ url: p,
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ console.log(this.raceDetail.cover);
|
|
|
+ }
|
|
|
this.imgChange1(null, null, 1, null);
|
|
|
this.isSysPic = true;
|
|
|
this.sysPicVisible = false;
|
|
@@ -893,10 +897,17 @@ export default {
|
|
|
a.splice(a.length - 1, a.length);
|
|
|
_this.$message.error("上传失败");
|
|
|
} else {
|
|
|
- _this.raceDetail.cover.push({
|
|
|
- name: file.name,
|
|
|
- url: data.Location,
|
|
|
- });
|
|
|
+ if(file.name.indexOf("微信图片") != -1){
|
|
|
+ _this.raceDetail.cover.push({
|
|
|
+ name: "图片.png",
|
|
|
+ url: data.Location,
|
|
|
+ });
|
|
|
+ }else{
|
|
|
+ _this.raceDetail.cover.push({
|
|
|
+ name: file.name,
|
|
|
+ url: data.Location,
|
|
|
+ });
|
|
|
+ }
|
|
|
_this.imgChange1(null, null, 1, null);
|
|
|
_this.choosePicVisible = false;
|
|
|
console.log(data.Location);
|
|
@@ -1483,6 +1494,9 @@ export default {
|
|
|
overflow: hidden;
|
|
|
text-overflow: ellipsis;
|
|
|
}
|
|
|
+.upCss >>> .el-upload-list--picture .el-upload-list__item-thumbnail {
|
|
|
+ object-fit: cover;
|
|
|
+}
|
|
|
.uploadFm {
|
|
|
border: 1px dashed #ccc;
|
|
|
width: 202px;
|