Commit 8e406f63 authored by 华国豪's avatar 华国豪 🙄

‘部分修改’

parent 925d1a5c
...@@ -1049,11 +1049,11 @@ ...@@ -1049,11 +1049,11 @@
newArr.push(file.file); newArr.push(file.file);
let fileName = file.file.name; let fileName = file.file.name;
var path = "/Upload/DMC/"; var path = "/Upload/DMC/";
this.uploadFile(path, newArr, x => { this.UploadSelfFile(path, newArr, x => {
//统一图片处理 //统一图片处理
var obj = this.$DMCUtils.DMCImageObj(); var obj = this.$DMCUtils.DMCImageObj();
var str = x.name; var str = x.data.FilePath;
var imgUrl = this.domainManager().AliUrl + str; var imgUrl = this.domainManager().ViittoFileUrl + x.data.FilePath;
obj.Path = str; obj.Path = str;
obj.ShowPath = imgUrl; obj.ShowPath = imgUrl;
this.DiningImageArray.push(obj); this.DiningImageArray.push(obj);
......
...@@ -408,8 +408,8 @@ export default { ...@@ -408,8 +408,8 @@ export default {
let newArr = []; let newArr = [];
newArr.push(file.file); newArr.push(file.file);
let path = "/Upload/Temporary/"; let path = "/Upload/Temporary/";
this.uploadFile(path, newArr, x => { this.UploadSelfFile(path, newArr, x => {
this.BusinessCardPhotos=x.res.requestUrls[0].split("?")[0] this.BusinessCardPhotos= this.domainManager().ViittoFileUrl + x.data.FilePath
}); });
}, },
uploadImg1(file) { uploadImg1(file) {
...@@ -417,8 +417,8 @@ export default { ...@@ -417,8 +417,8 @@ export default {
let newArr = []; let newArr = [];
newArr.push(file.file); newArr.push(file.file);
let path = "/Upload/Temporary/"; let path = "/Upload/Temporary/";
this.uploadFile(path, newArr, x => { this.UploadSelfFile(path, newArr, x => {
this.HousePhotos=x.res.requestUrls[0].split("?")[0] this.HousePhotos= this.domainManager().ViittoFileUrl + x.data.FilePath
}); });
}, },
uploadImg2(file) { uploadImg2(file) {
...@@ -426,8 +426,8 @@ export default { ...@@ -426,8 +426,8 @@ export default {
let newArr = []; let newArr = [];
newArr.push(file.file); newArr.push(file.file);
let path = "/Upload/Temporary/"; let path = "/Upload/Temporary/";
this.uploadFile(path, newArr, x => { this.UploadSelfFile(path, newArr, x => {
this.Images=x.res.requestUrls[0].split("?")[0] this.Images=this.domainManager().ViittoFileUrl + x.data.FilePath
}); });
}, },
searchHistory(val){ searchHistory(val){
......
...@@ -372,8 +372,8 @@ ...@@ -372,8 +372,8 @@
let newArr = []; let newArr = [];
newArr.push(file.file); newArr.push(file.file);
let path = "/Upload/Temporary/"; let path = "/Upload/Temporary/";
this.uploadFile(path, newArr, x => { this.UploadSelfFile(path, newArr, x => {
this.BusinessCardPhotos=x.res.requestUrls[0].split("?")[0] this.BusinessCardPhotos= this.domainManager().ViittoFileUrl + x.data.FilePath
}); });
}, },
uploadImg1(file) { uploadImg1(file) {
...@@ -381,8 +381,8 @@ ...@@ -381,8 +381,8 @@
let newArr = []; let newArr = [];
newArr.push(file.file); newArr.push(file.file);
let path = "/Upload/Temporary/"; let path = "/Upload/Temporary/";
this.uploadFile(path, newArr, x => { this.UploadSelfFile(path, newArr, x => {
this.HousePhotos=x.res.requestUrls[0].split("?")[0] this.HousePhotos= this.domainManager().ViittoFileUrl + x.data.FilePath
}); });
}, },
uploadImg2(file) { uploadImg2(file) {
...@@ -390,8 +390,8 @@ ...@@ -390,8 +390,8 @@
let newArr = []; let newArr = [];
newArr.push(file.file); newArr.push(file.file);
let path = "/Upload/Temporary/"; let path = "/Upload/Temporary/";
this.uploadFile(path, newArr, x => { this.UploadSelfFile(path, newArr, x => {
this.Images=x.res.requestUrls[0].split("?")[0] this.Images= this.domainManager().ViittoFileUrl + x.data.FilePath
}); });
}, },
resetForm(formName) {//弹出框取消 初始化谈框内表单 resetForm(formName) {//弹出框取消 初始化谈框内表单
......
...@@ -795,8 +795,8 @@ export default { ...@@ -795,8 +795,8 @@ export default {
let newArr = []; let newArr = [];
newArr.push(file.file); newArr.push(file.file);
let path = "/Upload/Temporary/"; let path = "/Upload/Temporary/";
this.uploadFile(path, newArr, x => { this.UploadSelfFile(path, newArr, x => {
this.BusinessCardPhotos=x.res.requestUrls[0].split("?")[0] this.BusinessCardPhotos= this.domainManager().ViittoFileUrl + x.data.FilePath
}); });
}, },
uploadImg1(file) { uploadImg1(file) {
...@@ -804,8 +804,8 @@ export default { ...@@ -804,8 +804,8 @@ export default {
let newArr = []; let newArr = [];
newArr.push(file.file); newArr.push(file.file);
let path = "/Upload/Temporary/"; let path = "/Upload/Temporary/";
this.uploadFile(path, newArr, x => { this.UploadSelfFile(path, newArr, x => {
this.HousePhotos=x.res.requestUrls[0].split("?")[0] this.HousePhotos= this.domainManager().ViittoFileUrl + x.data.FilePath
}); });
}, },
uploadImg2(file) { uploadImg2(file) {
...@@ -813,8 +813,8 @@ export default { ...@@ -813,8 +813,8 @@ export default {
let newArr = []; let newArr = [];
newArr.push(file.file); newArr.push(file.file);
let path = "/Upload/Temporary/"; let path = "/Upload/Temporary/";
this.uploadFile(path, newArr, x => { this.UploadSelfFile(path, newArr, x => {
this.Images=x.res.requestUrls[0].split("?")[0] this.Images= this.domainManager().ViittoFileUrl + x.data.FilePath
}); });
}, },
getJycs(){ getJycs(){
......
...@@ -656,8 +656,8 @@ export default { ...@@ -656,8 +656,8 @@ export default {
let newArr = []; let newArr = [];
newArr.push(file.file); newArr.push(file.file);
let path = "/Upload/Temporary/"; let path = "/Upload/Temporary/";
this.uploadFile(path, newArr, x => { this.UploadSelfFile(path, newArr, x => {
this.BusinessCardPhotos = x.res.requestUrls[0].split("?")[0]; this.BusinessCardPhotos = this.domainManager().ViittoFileUrl + x.data.FilePath;
}); });
}, },
uploadImg1(file) { uploadImg1(file) {
...@@ -665,8 +665,8 @@ export default { ...@@ -665,8 +665,8 @@ export default {
let newArr = []; let newArr = [];
newArr.push(file.file); newArr.push(file.file);
let path = "/Upload/Temporary/"; let path = "/Upload/Temporary/";
this.uploadFile(path, newArr, x => { this.UploadSelfFile(path, newArr, x => {
this.HousePhotos = x.res.requestUrls[0].split("?")[0]; this.HousePhotos = this.domainManager().ViittoFileUrl + x.data.FilePath;
}); });
}, },
uploadImg2(file) { uploadImg2(file) {
...@@ -674,8 +674,8 @@ export default { ...@@ -674,8 +674,8 @@ export default {
let newArr = []; let newArr = [];
newArr.push(file.file); newArr.push(file.file);
let path = "/Upload/Temporary/"; let path = "/Upload/Temporary/";
this.uploadFile(path, newArr, x => { this.UploadSelfFile(path, newArr, x => {
this.Images = x.res.requestUrls[0].split("?")[0]; this.Images =this.domainManager().ViittoFileUrl + x.data.FilePath;
}); });
}, },
getJycs() { getJycs() {
......
...@@ -2151,9 +2151,9 @@ ...@@ -2151,9 +2151,9 @@
let newArr = []; let newArr = [];
newArr.push(item.file); newArr.push(item.file);
let path = "/Upload/Ticket/"; let path = "/Upload/Ticket/";
this.uploadFile(path, newArr, x => { this.UploadSelfFile(path, newArr, x => {
var str = x.res.requestUrls[0]; var str = this.domainManager().ViittoFileUrl + x.data.FilePath;
var fileUrl = this.$commonUtils.GetALiFileUrl(str); var fileUrl = str;
this.UploadItineraryMsg.TripItinerary = fileUrl; this.UploadItineraryMsg.TripItinerary = fileUrl;
this.apipost( this.apipost(
"AirTicket_Post_SetTripItinerary", "AirTicket_Post_SetTripItinerary",
......
This diff is collapsed.
...@@ -772,9 +772,9 @@ export default { ...@@ -772,9 +772,9 @@ export default {
let newArr = []; let newArr = [];
newArr.push(file.file); newArr.push(file.file);
let path = "/Upload/Temporary/"; let path = "/Upload/Temporary/";
this.uploadFile(path, newArr, x => { this.UploadSelfFile(path, newArr, x => {
this.apipost('dmc_get_visa_UploadVisaInformation', { this.apipost('dmc_get_visa_UploadVisaInformation', {
Path: x.name, Path: this.domainManager().ViittoFileUrl + x.data.FilePath,
FileName: file.file.name, FileName: file.file.name,
Status: 1, Status: 1,
TCID: this.uploadTCID TCID: this.uploadTCID
......
...@@ -192,9 +192,9 @@ ...@@ -192,9 +192,9 @@
let path = "/Upload/ShopZhang/"; let path = "/Upload/ShopZhang/";
this.$message.info('上传中...'); this.$message.info('上传中...');
var that=this; var that=this;
this.uploadFile(path, newArr, x => { this.UploadSelfFile(path, newArr, x => {
let fileSize = file.file.size < 1024 ? file.file.size : (file.file.size / 1024).toFixed(0); 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) => { that.list.forEach((item, index) => {
if (index == that.upIndex) { if (index == that.upIndex) {
item.ShopDetailsList.forEach((subItem,subIndex) => { item.ShopDetailsList.forEach((subItem,subIndex) => {
......
...@@ -748,9 +748,9 @@ ...@@ -748,9 +748,9 @@
newArr.push(file.file); newArr.push(file.file);
let fileName = file.file.name; let fileName = file.file.name;
var path = "/Upload/DMC/"; var path = "/Upload/DMC/";
this.uploadFile(path, newArr, x => { this.UploadSelfFile(path, newArr, x => {
var str = x.name; var str = this.domainManager().ViittoFileUrl + x.data.FilePath;
var imgUrl = this.domainManager().AliUrl + str; var imgUrl = str;
this.imgArray.push(imgUrl); this.imgArray.push(imgUrl);
this.PicPathArray.push(str); this.PicPathArray.push(str);
}); });
......
...@@ -238,13 +238,10 @@ ...@@ -238,13 +238,10 @@
newArr.push(file.file); newArr.push(file.file);
let fileName = file.file.name; let fileName = file.file.name;
let that = this; let that = this;
let path = "/Upload/DMC/"; let path = "/Upload/Temporary/";
this.UploadSelfFile(path, newArr, x => { this.UploadSelfFile(path, newArr, x => {
console.log(x); this.VideoStr = this.domainManager().ViittoFileUrl + x.data.FilePath;
var str = x.res.requestUrls[0].split('?'); this.PostConfig.VideoStr = this.domainManager().ViittoFileUrl + x.data.FilePath;
this.VideoStr = str[0];
this.PostConfig.VideoStr = x.name;
// that.PostConfig.fileList[this.updateChoseIndex].Name = fileName; // that.PostConfig.fileList[this.updateChoseIndex].Name = fileName;
}); });
}, },
...@@ -286,11 +283,11 @@ ...@@ -286,11 +283,11 @@
let fileName = file.file.name; let fileName = file.file.name;
let that = this; let that = this;
let path = "/Upload/DMC/"; let path = "/Upload/DMC/";
this.uploadFile(path, newArr, x => { this.UploadSelfFile(path, newArr, x => {
var str = x.res.requestUrls[0]; var str = this.domainManager().ViittoFileUrl + x.data.FilePath;
that.PostConfig.fileList[ that.PostConfig.fileList[
this.updateChoseIndex this.updateChoseIndex
].Url = this.$commonUtils.GetALiFileUrl(str); ].Url = str
that.PostConfig.fileList[this.updateChoseIndex].Name = fileName; that.PostConfig.fileList[this.updateChoseIndex].Name = fileName;
}); });
}, },
......
...@@ -556,11 +556,11 @@ ...@@ -556,11 +556,11 @@
let that = this; let that = this;
let path = "/Upload/DMC/"; let path = "/Upload/DMC/";
this.uploadFile(path, newArr, x => { this.UploadSelfFile(path, newArr, x => {
var str = x.res.requestUrls[0]; var str = this.domainManager().ViittoFileUrl + x.data.FilePath;
that.FeatureData.fileList[ that.FeatureData.fileList[
this.updateChoseIndex this.updateChoseIndex
].Url = this.$commonUtils.GetALiFileUrl(str); ].Url = str
that.FeatureData.fileList[this.updateChoseIndex].Name = fileName; that.FeatureData.fileList[this.updateChoseIndex].Name = fileName;
}); });
}, },
......
...@@ -502,9 +502,9 @@ ...@@ -502,9 +502,9 @@
let newArr = []; let newArr = [];
newArr.push(item.file); newArr.push(item.file);
let path = "/Upload/Icon/AppMenuIcon/"; let path = "/Upload/Icon/AppMenuIcon/";
this.uploadFile(path, newArr, x => { this.UploadSelfFile(path, newArr, x => {
var str = x.res.requestUrls[0]; var str = this.domainManager().ViittoFileUrl + x.data.FilePath;
this.addMsg.Image = this.$commonUtils.GetALiFileUrl(str); this.addMsg.Image = str
}); });
}, },
//上传菜单选中图标 //上传菜单选中图标
...@@ -512,9 +512,9 @@ ...@@ -512,9 +512,9 @@
let newArr = []; let newArr = [];
newArr.push(item.file); newArr.push(item.file);
let path = "/Upload/Icon/AppMenuIcon/"; let path = "/Upload/Icon/AppMenuIcon/";
this.uploadFile(path, newArr, x => { this.UploadSelfFile(path, newArr, x => {
var str = x.res.requestUrls[0]; var str = this.domainManager().ViittoFileUrl + x.data.FilePath;
this.addMsg.SelectImage = this.$commonUtils.GetALiFileUrl(str); this.addMsg.SelectImage = str
}); });
} }
} }
......
...@@ -958,11 +958,11 @@ ...@@ -958,11 +958,11 @@
newArr.push(file.file); newArr.push(file.file);
let fileName = file.file.name; let fileName = file.file.name;
var path = "/Upload/DMC/"; var path = "/Upload/DMC/";
this.uploadFile(path, newArr, x => { this.UploadSelfFile(path, newArr, x => {
//统一图片处理 //统一图片处理
var obj = this.$DMCUtils.DMCImageObj(); var obj = this.$DMCUtils.DMCImageObj();
var str = x.name; var str = this.domainManager().ViittoFileUrl + x.data.FilePath;
var imgUrl = this.domainManager().AliUrl + str; var imgUrl = str;
obj.Path = str; obj.Path = str;
obj.ShowPath = imgUrl; obj.ShowPath = imgUrl;
this.TicketCouponsImageArray.push(obj); 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