Commit 523116ec authored by 华国豪's avatar 华国豪 🙄

修改上传@

parent 09c344a3
...@@ -653,7 +653,7 @@ ...@@ -653,7 +653,7 @@
let myDate = new Date(); let myDate = new Date();
let path = "/Upload/Editor/" + myDate.getFullYear() + "/" + (myDate.getMonth() + 1) + "/"; let path = "/Upload/Editor/" + myDate.getFullYear() + "/" + (myDate.getMonth() + 1) + "/";
this.uploadFile(path, newArr, x => { this.uploadFile(path, newArr, x => {
let url = this.$commonUtils.GetALiFileUrl(x.res.requestUrls[0]); let url = this.domainManager().ViittoFileUrl + x.data.FilePath;
// 如果上传成功 // 如果上传成功
if (url != null && url.length > 0) { if (url != null && url.length > 0) {
// 获取光标所在位置 // 获取光标所在位置
......
...@@ -637,7 +637,7 @@ export default { ...@@ -637,7 +637,7 @@ export default {
let newArr = []; let newArr = [];
newArr.push(file.file); newArr.push(file.file);
let path = "/Upload/Temporary/"; let path = "/Upload/Temporary/";
this.UploadSelfFile(path, newArr, x => { this.UploadSelfFileT(path, newArr, x => {
this.apipost( this.apipost(
"dmc_get_visa_UploadVisaAdvertisingImage", "dmc_get_visa_UploadVisaAdvertisingImage",
{ {
......
...@@ -191,7 +191,7 @@ export default { ...@@ -191,7 +191,7 @@ export default {
this.UploadSelfFileT(path, newArr, x => { this.UploadSelfFileT(path, newArr, x => {
that.PostConfig.fileList[ that.PostConfig.fileList[
this.updateChoseIndex this.updateChoseIndex
].Url = this.$commonUtils.GetALiFileUrl(str); ].Url = this.domainManager().ViittoFileUrl + x.data.FilePath;
that.PostConfig.fileList[this.updateChoseIndex].Name = fileName; that.PostConfig.fileList[this.updateChoseIndex].Name = fileName;
}); });
}, },
......
...@@ -199,7 +199,7 @@ export default { ...@@ -199,7 +199,7 @@ export default {
this.UploadSelfFileT(path, newArr, x => { this.UploadSelfFileT(path, newArr, x => {
that.FeatureData.fileList[ that.FeatureData.fileList[
this.updateChoseIndex this.updateChoseIndex
].Url = this.$commonUtils.GetALiFileUrl(str); ].Url = this.domainManager().ViittoFileUrl + x.data.FilePath;
that.FeatureData.fileList[this.updateChoseIndex].Name = fileName; that.FeatureData.fileList[this.updateChoseIndex].Name = fileName;
}); });
}, },
......
...@@ -216,7 +216,7 @@ export default { ...@@ -216,7 +216,7 @@ export default {
var str = x.res.requestUrls[0]; var str = x.res.requestUrls[0];
that.PostConfig.fileList[ that.PostConfig.fileList[
this.updateChoseIndex this.updateChoseIndex
].Url = this.$commonUtils.GetALiFileUrl(str); ].Url = this.domainManager().ViittoFileUrl + x.data.FilePath;
that.PostConfig.fileList[this.updateChoseIndex].Name = fileName; that.PostConfig.fileList[this.updateChoseIndex].Name = fileName;
}); });
}, },
......
...@@ -348,7 +348,7 @@ export default { ...@@ -348,7 +348,7 @@ export default {
var str = x.res.requestUrls[0]; var str = x.res.requestUrls[0];
that.FeatureData.fileList[ that.FeatureData.fileList[
this.updateChoseIndex this.updateChoseIndex
].Url = this.$commonUtils.GetALiFileUrl(str); ].Url = this.domainManager().ViittoFileUrl + x.data.FilePath;
that.FeatureData.fileList[this.updateChoseIndex].Name = fileName; that.FeatureData.fileList[this.updateChoseIndex].Name = fileName;
}); });
}, },
......
...@@ -317,10 +317,9 @@ export default { ...@@ -317,10 +317,9 @@ export default {
newArr.push(item.file); newArr.push(item.file);
let path = "/Upload/DMC/"; let path = "/Upload/DMC/";
this.UploadSelfFileT(path, newArr, x => { this.UploadSelfFileT(path, newArr, x => {
// var str = x.res.requestUrls[0];
var fileObj = this.$commonUtils.FileObject(); var fileObj = this.$commonUtils.FileObject();
fileObj.Url = this.$commonUtils.GetALiFileUrl(str); fileObj.Url = this.domainManager().ViittoFileUrl + x.data.FilePath,
fileObj.fileName = x.name; fileObj.fileName = x.data.FileName;
item.data.ImaArray.push(fileObj); item.data.ImaArray.push(fileObj);
}); });
}, },
......
...@@ -220,10 +220,9 @@ ...@@ -220,10 +220,9 @@
newArr.push(item.file); newArr.push(item.file);
let path = "/Upload/DMC/"; let path = "/Upload/DMC/";
this.UploadSelfFileT(path, newArr, x => { this.UploadSelfFileT(path, newArr, x => {
// var str = x.res.requestUrls[0];
var fileObj = this.$commonUtils.FileObject(); var fileObj = this.$commonUtils.FileObject();
fileObj.Url = this.$commonUtils.GetALiFileUrl(str); fileObj.Url = this.domainManager().ViittoFileUrl + x.data.FilePath,
fileObj.fileName = x.name; fileObj.fileName = x.data.FileName;
item.data.ImaArray.push(fileObj); item.data.ImaArray.push(fileObj);
}); });
}, },
......
...@@ -145,10 +145,9 @@ ...@@ -145,10 +145,9 @@
newArr.push(item.file); newArr.push(item.file);
let path = "/Upload/DMC/"; let path = "/Upload/DMC/";
this.UploadSelfFileT(path, newArr, x => { this.UploadSelfFileT(path, newArr, x => {
// var str = x.res.requestUrls[0];
var fileObj = this.$commonUtils.FileObject(); var fileObj = this.$commonUtils.FileObject();
fileObj.Url = this.$commonUtils.GetALiFileUrl(str); fileObj.Url = this.domainManager().ViittoFileUrl + x.data.FilePath,
fileObj.fileName = x.name; fileObj.fileName = x.data.FileName;
item.data.ImaArray.push(fileObj); item.data.ImaArray.push(fileObj);
}); });
}, },
......
...@@ -371,10 +371,9 @@ export default { ...@@ -371,10 +371,9 @@ export default {
newArr.push(item.file); newArr.push(item.file);
let path = "/Upload/DMC/"; let path = "/Upload/DMC/";
this.UploadSelfFileT(path, newArr, x => { this.UploadSelfFileT(path, newArr, x => {
// var str = x.res.requestUrls[0];
var fileObj = this.$commonUtils.FileObject(); var fileObj = this.$commonUtils.FileObject();
fileObj.Url = this.$commonUtils.GetALiFileUrl(str); fileObj.Url = this.domainManager().ViittoFileUrl + x.data.FilePath,
fileObj.fileName = x.name; fileObj.fileName = x.data.FileName;
item.data.ImaArray.push(fileObj); item.data.ImaArray.push(fileObj);
}); });
}, },
......
...@@ -215,10 +215,9 @@ ...@@ -215,10 +215,9 @@
newArr.push(item.file); newArr.push(item.file);
let path = "/Upload/DMC/"; let path = "/Upload/DMC/";
this.UploadSelfFileT(path, newArr, x => { this.UploadSelfFileT(path, newArr, x => {
// var str = x.res.requestUrls[0];
var fileObj = this.$commonUtils.FileObject(); var fileObj = this.$commonUtils.FileObject();
fileObj.Url = this.$commonUtils.GetALiFileUrl(str); fileObj.Url = this.domainManager().ViittoFileUrl + x.data.FilePath,
fileObj.fileName = x.data.FilePath; fileObj.fileName = x.data.FileName;
item.data.ImaArray.push(fileObj); item.data.ImaArray.push(fileObj);
}); });
}, },
......
...@@ -304,10 +304,9 @@ ...@@ -304,10 +304,9 @@
newArr.push(item.file); newArr.push(item.file);
let path = "/Upload/DMC/"; let path = "/Upload/DMC/";
this.UploadSelfFileT(path, newArr, x => { this.UploadSelfFileT(path, newArr, x => {
// var str = x.res.requestUrls[0];
var fileObj = this.$commonUtils.FileObject(); var fileObj = this.$commonUtils.FileObject();
fileObj.Url = this.$commonUtils.GetALiFileUrl(str); fileObj.Url = this.domainManager().ViittoFileUrl + x.data.FilePath,
fileObj.fileName = x.data.FilePath; fileObj.fileName = x.data.FileName;
item.data.ImaArray.push(fileObj); item.data.ImaArray.push(fileObj);
}); });
}, },
......
...@@ -199,8 +199,8 @@ ...@@ -199,8 +199,8 @@
this.UploadSelfFileT(path, newArr, x => { this.UploadSelfFileT(path, newArr, x => {
var str = x.res.requestUrls[0]; var str = x.res.requestUrls[0];
var fileObj = this.$commonUtils.FileObject(); var fileObj = this.$commonUtils.FileObject();
fileObj.Url = this.$commonUtils.GetALiFileUrl(str); fileObj.Url = this.domainManager().ViittoFileUrl + x.data.FilePath,
fileObj.fileName = x.data.FilePath fileObj.fileName = x.data.FileName;
item.data.ImaArray.push(fileObj); item.data.ImaArray.push(fileObj);
}); });
}, },
......
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