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

修改上传@

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