Commit 47c13131 authored by zhengke's avatar zhengke

Merge branch 'uploadURL' of http://gitlab.oytour.com/luochao/superman into uploadURL

parents ba2c98b1 f21a9d80
...@@ -786,9 +786,9 @@ export default { ...@@ -786,9 +786,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: x.data.FilePath,
FileName: file.file.name, FileName: file.file.name,
Status: 1, Status: 1,
TCID: this.uploadTCID TCID: this.uploadTCID
......
...@@ -2009,11 +2009,11 @@ ...@@ -2009,11 +2009,11 @@
newArr.push(file.file) newArr.push(file.file)
let path = '/Upload/Temporary/' let path = '/Upload/Temporary/'
this.$message.info('上传中...') this.$message.info('上传中...')
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)
let saveMsg = {} let saveMsg = {}
saveMsg.Path = x.name saveMsg.Path = x.data.FilePath
saveMsg.FileName = file.file.name saveMsg.FileName = file.file.name
saveMsg.Status = 1 saveMsg.Status = 1
saveMsg.OrderId = this.checkedObj.orderId saveMsg.OrderId = this.checkedObj.orderId
......
...@@ -2430,10 +2430,10 @@ export default { ...@@ -2430,10 +2430,10 @@ export default {
newArr.push(file.file) newArr.push(file.file)
let path = "/Upload/Temporary/" let path = "/Upload/Temporary/"
this.$message.info('上传中...') this.$message.info('上传中...')
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);
let saveMsg ={} let saveMsg ={}
saveMsg.Path=x.name saveMsg.Path=x.data.FilePath
saveMsg.FileName=file.file.name saveMsg.FileName=file.file.name
saveMsg.Status=1 saveMsg.Status=1
saveMsg.OrderId=this.checkedObj.orderId saveMsg.OrderId=this.checkedObj.orderId
......
...@@ -240,17 +240,17 @@ ...@@ -240,17 +240,17 @@
newArr.push(file.file) newArr.push(file.file)
let path = "/Upload/Temporary/" let path = "/Upload/Temporary/"
this.$message.info('上传中...') this.$message.info('上传中...')
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);
this.saveMsg = [] this.saveMsg = []
this.saveMsg.push({ this.saveMsg.push({
Path: x.name, Path: x.data.FilePath,
FileName: file.file.name, FileName: file.file.name,
MD5Sign: file.file.uid, MD5Sign: file.file.uid,
FileSize: fileSize, FileSize: fileSize,
FolderId: this.msg.ParentId 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){ downloadSingle(obj){
......
...@@ -327,9 +327,10 @@ ...@@ -327,9 +327,10 @@
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.appMsg.Image.push(x.res.requestUrls[0]) let url = this.domainManager().ViittoFileUrl + x.data.FilePath
this.fileList.push({url:x.res.requestUrls[0]}) this.appMsg.Image.push(url)
this.fileList.push({url:url})
}); });
}, },
handleRemove(file){ //删除 handleRemove(file){ //删除
......
...@@ -145,10 +145,11 @@ ...@@ -145,10 +145,11 @@
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.submitFileList.push(x.res.requestUrls[0].split("?")[0]) let url = this.domainManager().ViittoFileUrl + x.data.FilePath
this.submitFileList.push(url)
this.fileList.push({ this.fileList.push({
url: x.res.requestUrls[0].split("?")[0] url: url
}) })
}); });
}, },
......
...@@ -321,9 +321,10 @@ ...@@ -321,9 +321,10 @@
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.appMsg.Image.push(x.res.requestUrls[0]) let url = this.domainManager().ViittoFileUrl + x.data.FilePath
this.fileList.push({url:x.res.requestUrls[0]}) this.appMsg.Image.push(url)
this.fileList.push({url: url})
}); });
......
...@@ -325,9 +325,10 @@ ...@@ -325,9 +325,10 @@
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.appMsg.Image.push(x.res.requestUrls[0]) let url = this.domainManager().ViittoFileUrl + x.data.FilePath
this.fileList.push({url:x.res.requestUrls[0]}) this.appMsg.Image.push(url)
this.fileList.push({url: url})
}); });
......
...@@ -2665,9 +2665,10 @@ export default { ...@@ -2665,9 +2665,10 @@ 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.addDynamicMsg.fileList.push(x.res.requestUrls[0].split("?")[0]); let url = this.domainManager().ViittoFileUrl + x.data.FilePath
this.imgList.push({ url: x.res.requestUrls[0].split("?")[0] }); this.addDynamicMsg.fileList.push(url);
this.imgList.push({ url: url });
}); });
}, },
handleRemoveImg(file) { handleRemoveImg(file) {
......
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