|
|
@@ -179,14 +179,13 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
uploadImagev(meidaIds) {
|
|
|
- var that = this;
|
|
|
var form = {
|
|
|
mediaIds: meidaIds,
|
|
|
- customId: that.customId,
|
|
|
- summaryId: that.summaryId,
|
|
|
- locationRemark: that.addressesRemark,
|
|
|
+ customId: this.customId,
|
|
|
+ summaryId: this.summaryId,
|
|
|
+ locationRemark: this.addressesRemark,
|
|
|
};
|
|
|
- var loind1 = that.$toast.loading({
|
|
|
+ var loind1 = this.$toast.loading({
|
|
|
duration: 0,
|
|
|
message: '上传中...',
|
|
|
forbidClick: true,
|
|
|
@@ -199,7 +198,7 @@ export default {
|
|
|
if (res.code == 200) {
|
|
|
// that.imgArr = res.data.url;
|
|
|
loind1.clear();
|
|
|
- that.$toast('上传成功!');
|
|
|
+ this.$toast('上传成功!');
|
|
|
let urlArr = [];
|
|
|
let idArr = [];
|
|
|
res.data.forEach((val) => {
|
|
|
@@ -208,10 +207,10 @@ export default {
|
|
|
id: val.fileId,
|
|
|
fileType: val.fileType,
|
|
|
fileName: val.fileName,
|
|
|
- type: that.type,
|
|
|
- index: that.indexImg,
|
|
|
+ type: this.type,
|
|
|
+ index: this.indexImg,
|
|
|
});
|
|
|
- idArr.push(val.id);
|
|
|
+ idArr.push(val.fileId);
|
|
|
});
|
|
|
if (this.item.fileInfoList == null || this.item.fileInfoList == undefined) {
|
|
|
this.item.fileInfoList = [];
|
|
|
@@ -219,17 +218,17 @@ export default {
|
|
|
}
|
|
|
this.item.fileInfoList.concat(urlArr);
|
|
|
this.item.fileIdList.concat(idArr);
|
|
|
- that.$emit('newimgarr');
|
|
|
- // that.$emit('newimgarr', {
|
|
|
+ this.$emit('newimgarr');
|
|
|
+ // this.$emit('newimgarr', {
|
|
|
// fileUrl: res.data.url,
|
|
|
// id: res.data.fileId,
|
|
|
// fileType: res.fileType,
|
|
|
// fileName: res.fileName,
|
|
|
- // type: that.type,
|
|
|
- // index: that.indexImg,
|
|
|
+ // type: this.type,
|
|
|
+ // index: this.indexImg,
|
|
|
// });
|
|
|
} else {
|
|
|
- that.$toast('上传失败!');
|
|
|
+ this.$toast('上传失败!');
|
|
|
}
|
|
|
});
|
|
|
},
|