Commit f0346598 authored by 华国豪's avatar 华国豪 🙄

提交文件

parent 524cd3ea
......@@ -710,7 +710,7 @@ export default {
Height: "84",
content: {
fileType: type,
fileUrl: x.res.requestUrls[0].split("?")[0],
fileUrl: this.domainManager().ViittoFileUrl + x.data.FilePath,
fileName: name,
fileSize: size
},
......
......@@ -1020,8 +1020,8 @@ export default {
let fileSize = file.file.size<1024? file.file.size:(file.file.size / 1024).toFixed(0);
this.saveMsg.push({
Type:fileTypeNumber,
Content: x.name,
Url:x.res.requestUrls[0].split("?")[0],
Content: x.data.FilePath,
Url: this.domainManager().ViittoFileUrl + x.data.FilePath,
});
this.$message.success('上传成功');
});
......
......@@ -659,17 +659,17 @@ export default {
let fileSize = file.file.size<1024? file.file.size:(file.file.size / 1024).toFixed(0);
if (this.inUploadTrue) {
this.inList[this.inUploadIndex].vorcherInos.push({
Content: x.name,
Content: x.data.FilePath,
ID:0,
Type:fileTypeNumber,
Url:x.res.requestUrls[0].split("?")[0],
Url:this.domainManager().ViittoFileUrl + x.data.FilePath,
})
} else {
this.outList[this.inUploadIndex].vorcherInos.push({
Content: x.name,
Content: x.data.FilePath,
ID:0,
Type:fileTypeNumber,
Url:x.res.requestUrls[0].split("?")[0],
Url:this.domainManager().ViittoFileUrl + x.data.FilePath,
})
}
this.$message.success('上传成功');
......
......@@ -818,10 +818,10 @@ export default {
this.UploadSelfFileT(path, newArr, x => {
let fileSize = file.file.size<1024? file.file.size:(file.file.size / 1024).toFixed(0);
this.saveMsg.push({
Content: x.name,
Content: x.data.FilePath,
ID:0,
Type:fileTypeNumber,
Url:x.res.requestUrls[0].split("?")[0],
Url: this.domainManager().ViittoFileUrl + x.data.FilePath,
})
this.$message.success('上传成功');
});
......
......@@ -779,10 +779,10 @@ export default {
this.UploadSelfFileT(path, newArr, x => {
let fileSize = file.file.size<1024? file.file.size:(file.file.size / 1024).toFixed(0);
this.saveMsg.push({
Content: x.name,
Content: x.data.FilePath,
ID:0,
Type:fileTypeNumber,
Url:x.res.requestUrls[0].split("?")[0],
Url: this.domainManager().ViittoFileUrl + x.data.FilePath,
})
this.$message.success('上传成功');
});
......
......@@ -407,8 +407,8 @@ export default {
var path = "/Upload/DMC/";
this.UploadSelfFileT(path, newArr, x => {
var obj = this.$DMCUtils.DMCImageObj();
var str = x.name;
var imgUrl = this.domainManager().AliUrl + str;
var str = x.data.FilePath;
var imgUrl = this.domainManager().ViittoFileUrl + x.data.FilePath;
obj.Path = str;
obj.ShowPath = imgUrl;
this.HotelImageArray.push(obj);
......
......@@ -631,9 +631,9 @@
let path = "/Upload/Temporary/";
this.UploadSelfFileT(path, newArr, x => {
this.TemporaryItem.VoucherPicList.push({
id: x.name,
id: x.data.FilePath,
FileName: file.file.name,
url: x.res.requestUrls[0].split("?")[0]
url: this.domainManager().ViittoFileUrl + x.data.FilePath
})
});
},
......
......@@ -1052,8 +1052,8 @@
this.UploadSelfFileT(path, newArr, x => {
//统一图片处理
var obj = this.$DMCUtils.DMCImageObj();
var str = x.name;
var imgUrl = this.domainManager().AliUrl + str;
var str = x.data.FilePath;
var imgUrl = this.domainManager().ViittoFileUrl + x.data.FilePath;
obj.Path = str;
obj.ShowPath = imgUrl;
this.DiningImageArray.push(obj);
......
......@@ -788,7 +788,7 @@ export default {
let path = "/Upload/Temporary/";
this.UploadSelfFileT(path, newArr, x => {
this.apipost('dmc_get_visa_UploadVisaInformation', {
Path: x.name,
Path: x.data.FilePath,
FileName: file.file.name,
Status: 1,
TCID: this.uploadTCID
......
......@@ -2036,7 +2036,7 @@
let fileSize = file.file.size < 1024 ? file.file.size : (file.file.size / 1024).toFixed(0)
let saveMsg = {}
saveMsg.Path = x.name
saveMsg.Path = x.data.FilePath
saveMsg.FileName = file.file.name
saveMsg.Status = 1
saveMsg.OrderId = this.checkedObj.orderId
......
......@@ -2543,7 +2543,7 @@ export default {
this.UploadSelfFileT(path, newArr, x => {
let fileSize = file.file.size<1024? file.file.size:(file.file.size / 1024).toFixed(0);
let saveMsg ={}
saveMsg.Path=x.name
saveMsg.Path= x.data.FilePath
saveMsg.FileName=file.file.name
saveMsg.Status=1
saveMsg.OrderId=this.checkedObj.orderId
......
......@@ -774,7 +774,7 @@ export default {
let path = "/Upload/Temporary/";
this.UploadSelfFileT(path, newArr, x => {
this.apipost('dmc_get_visa_UploadVisaInformation', {
Path: x.name,
Path: x.data.FilePath,
FileName: file.file.name,
Status: 1,
TCID: this.uploadTCID
......
......@@ -194,7 +194,7 @@
var that=this;
this.UploadSelfFileT(path, newArr, x => {
let fileSize = file.file.size < 1024 ? file.file.size : (file.file.size / 1024).toFixed(0);
var fileUrl = x.res.requestUrls[0].split("?")[0];
var fileUrl = this.domainManager().ViittoFileUrl + x.data.FilePath;
that.list.forEach((item, index) => {
if (index == that.upIndex) {
item.ShopDetailsList.forEach((subItem,subIndex) => {
......
......@@ -155,8 +155,8 @@ export default {
var imgArr = [];
this.UploadSelfFileT(path, newArr, x => {
var obj = this.$DMCUtils.DMCImageObj();
var str = x.name;
var imgUrl = this.domainManager().AliUrl + str;
var str = x.data.FilePath;
var imgUrl = this.domainManager().ViittoFileUrl + x.data.FilePath;
obj.Path = str;
obj.ShowPath = imgUrl;
imgArr.push(obj.ShowPath);
......
......@@ -820,7 +820,7 @@
: (file.file.size / 1024).toFixed(0);
this.saveMsg = [];
this.saveMsg.push({
Path: x.name,
Path: x.data.FilePath,
FileName: file.file.name,
MD5Sign: file.file.uid,
FileSize: fileSize
......
......@@ -218,7 +218,7 @@
// var str = x.res.requestUrls[0];
var fileObj = this.$commonUtils.FileObject();
fileObj.Url = this.$commonUtils.GetALiFileUrl(str);
fileObj.fileName = x.name;
fileObj.fileName = x.data.FilePath;
item.data.ImaArray.push(fileObj);
});
},
......
......@@ -307,7 +307,7 @@
// var str = x.res.requestUrls[0];
var fileObj = this.$commonUtils.FileObject();
fileObj.Url = this.$commonUtils.GetALiFileUrl(str);
fileObj.fileName = x.name;
fileObj.fileName = x.data.FilePath;
item.data.ImaArray.push(fileObj);
});
},
......
......@@ -200,7 +200,7 @@
var str = x.res.requestUrls[0];
var fileObj = this.$commonUtils.FileObject();
fileObj.Url = this.$commonUtils.GetALiFileUrl(str);
fileObj.fileName = x.name;
fileObj.fileName = x.data.FilePath
item.data.ImaArray.push(fileObj);
});
},
......
......@@ -244,13 +244,13 @@
let fileSize = file.file.size<1024? file.file.size:(file.file.size / 1024).toFixed(0);
this.saveMsg = []
this.saveMsg.push({
Path: x.name,
Path: x.data.FilePath,
FileName: file.file.name,
MD5Sign: file.file.uid,
FileSize: fileSize,
FolderId: this.msg.ParentId
})
this.uploadList.push({url:x.name,name:file.file.name})
this.uploadList.push({url:x.data.FilePath,name:file.file.name})
});
},
downloadSingle(obj){
......
......@@ -527,7 +527,7 @@
let fileSize = file.file.size<1024? file.file.size:(file.file.size / 1024).toFixed(0);
this.saveMsg = []
this.saveMsg.push({
Path: x.name,
Path: x.data.FilePath,
FileName: file.file.name,
MD5Sign: file.file.uid,
FileSize: fileSize,
......
......@@ -280,7 +280,7 @@ export default {
this.UploadSelfFileT(path, newArr, x => {
var obj = this.$DMCUtils.DMCImageObj();
var str = x.name;
var imgUrl = this.domainManager().AliUrl + str;
var imgUrl = this.domainManager().ViittoFileUrl + x.data.FilePath;
obj.Path = str;
obj.ShowPath = imgUrl;
this.uploadImageFile(obj.Path);
......
......@@ -260,9 +260,9 @@
this.$message.info("正在上传图片...");
this.UploadSelfFileT(path, newArr, x => {
var obj = {
Url: this.domainManager().AliUrl + x.name,
Url: this.domainManager().ViittoFileUrl + x.data.FilePath,
Name: "",
fileName: x.name
fileName: x.data.FilePath
};
var array = [];
array.push(obj);
......
......@@ -235,9 +235,9 @@
this.$message.info("正在上传图片...");
this.UploadSelfFileT(path, newArr, x => {
var obj = {
Url: this.domainManager().AliUrl + x.name,
Url: this.domainManager().ViittoFileUrl + x.data.FilePath,
Name: "",
fileName: x.name
fileName: x.data.FilePath
};
var array = [];
array.push(obj);
......
......@@ -93,7 +93,7 @@ export default {
this.$message.info("正在上传图片...");
this.UploadSelfFileT(path, newArr, x => {
this.trafficObj.trafficIntroduce.IntroduceImage =
this.domainManager().AliUrl + x.name;
this.domainManager().ViittoFileUrl + x.data.FilePath;
});
},
//关闭添加弹窗
......
......@@ -108,9 +108,9 @@
this.$message.info("正在上传图片...");
this.UploadSelfFileT(path, newArr, x => {
var obj = {
Url: this.domainManager().AliUrl + x.name,
Url: this.domainManager().ViittoFileUrl + x.data.FilePath,
Name: "",
fileName: x.name
fileName: x.data.FilePath
};
var array = [];
array.push(obj);
......
......@@ -193,9 +193,9 @@
this.$message.info("正在上传图片...");
this.UploadSelfFileT(path, newArr, x => {
var obj = {
Url: this.domainManager().AliUrl + x.name,
Url: this.domainManager().ViittoFileUrl + x.data.FilePath,
Name: "",
fileName: x.name
fileName: x.data.FilePath
};
var array = [];
array.push(obj);
......
......@@ -137,9 +137,9 @@
this.$message.info("正在上传图片...");
this.UploadSelfFileT(path, newArr, x => {
var obj = {
Url: this.domainManager().AliUrl + x.name,
Url: this.domainManager().ViittoFileUrl + x.data.FilePath,
Name: "",
fileName: x.name
fileName: x.data.FilePath
};
var array = [];
array.push(obj);
......
......@@ -961,8 +961,8 @@
this.UploadSelfFileT(path, newArr, x => {
//统一图片处理
var obj = this.$DMCUtils.DMCImageObj();
var str = x.name;
var imgUrl = this.domainManager().AliUrl + str;
var str = x.data.FilePath;
var imgUrl = this.domainManager().ViittoFileUrl + x.data.FilePath;
obj.Path = str;
obj.ShowPath = imgUrl;
this.TicketCouponsImageArray.push(obj);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment