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

'分支修改部分上传图片@'

parent 9bd364c6
......@@ -1016,13 +1016,12 @@ export default {
newArr.push(file.file)
let path = "/Upload/Temporary/"
this.$message.info('上传中...')
this.uploadFile(path, newArr, x => {
let fileSize = file.file.size<1024? file.file.size:(file.file.size / 1024).toFixed(0);
console.log(x)
this.UploadSelfFile(path, newArr, x => {
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],
Url: this.domainManager().ViittoFileUrl + x.data.FilePath,
});
this.$message.success('上传成功');
});
......
......@@ -652,22 +652,21 @@ export default {
newArr.push(file.file)
let path = "/Upload/Temporary/"
this.$message.info('上传中...')
this.uploadFile(path, newArr, x => {
console.log(x.res.requestUrls[0])
this.UploadSelfFile(path, newArr, x => {
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: this.domainManager().ViittoFileUrl + 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: this.domainManager().ViittoFileUrl + x.data.FilePath,
ID:0,
Type:fileTypeNumber,
Url:x.res.requestUrls[0].split("?")[0],
Url:this.domainManager().ViittoFileUrl + x.data.FilePath,
})
}
this.$message.success('上传成功');
......
......@@ -813,13 +813,13 @@ export default {
newArr.push(file.file)
let path = "/Upload/Temporary/"
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);
this.saveMsg.push({
Content: x.name,
Content: this.domainManager().ViittoFileUrl + x.data.FilePath,
ID:0,
Type:fileTypeNumber,
Url:x.res.requestUrls[0].split("?")[0],
Url: this.domainManager().ViittoFileUrl + x.data.FilePath,
})
this.$message.success('上传成功');
});
......
......@@ -776,14 +776,14 @@ export default {
newArr.push(file.file)
let path = "/Upload/Temporary/"
this.$message.info('上传中...')
this.uploadFile(path, newArr, x => {
this.UploadSelfFile(path, newArr, x => {
console.log(x.res.requestUrls[0])
let fileSize = file.file.size<1024? file.file.size:(file.file.size / 1024).toFixed(0);
this.saveMsg.push({
Content: x.name,
Content: this.domainManager().ViittoFileUrl + x.data.FilePath,
ID:0,
Type:fileTypeNumber,
Url:x.res.requestUrls[0].split("?")[0],
Url: this.domainManager().ViittoFileUrl + x.data.FilePath,
})
this.$message.success('上传成功');
});
......
......@@ -733,11 +733,11 @@
let newArr = [];
newArr.push(file.file);
let path = "/Upload/Temporary/";
this.uploadFile(path, newArr, x => {
this.UploadSelfFile(path, newArr, x => {
this.TemporaryItem.VoucherPicList.push({
id: x.name,
FileName: file.file.name,
url: x.res.requestUrls[0].split("?")[0]
url: this.domainManager().ViittoFileUrl + x.data.FilePath,
})
});
},
......
......@@ -258,9 +258,9 @@
newArr.push(file.file);
let path = "/Upload/DMC/";
this.$message.info("正在上传图片...");
this.uploadFile(path, newArr, x => {
this.UploadSelfFile(path, newArr, x => {
var obj = {
Url: this.domainManager().AliUrl + x.name,
Url: this.domainManager().ViittoFileUrl + x.data.FilePath,
Name: "",
fileName: x.name
};
......
......@@ -233,9 +233,9 @@
newArr.push(file.file);
let path = "/Upload/DMC/";
this.$message.info("正在上传图片...");
this.uploadFile(path, newArr, x => {
this.UploadSelfFile(path, newArr, x => {
var obj = {
Url: this.domainManager().AliUrl + x.name,
Url: this.domainManager().ViittoFileUrl + x.data.FilePath,
Name: "",
fileName: x.name
};
......
......@@ -91,9 +91,9 @@ export default {
newArr.push(file.file);
let path = "/Upload/DMC/";
this.$message.info("正在上传图片...");
this.uploadFile(path, newArr, x => {
this.UploadSelfFile(path, newArr, x => {
this.trafficObj.trafficIntroduce.IntroduceImage =
this.domainManager().AliUrl + x.name;
this.domainManager().ViittoFileUrl + x.data.FilePath;
});
},
//关闭添加弹窗
......
......@@ -106,9 +106,9 @@
newArr.push(file.file);
let path = "/Upload/DMC/";
this.$message.info("正在上传图片...");
this.uploadFile(path, newArr, x => {
this.UploadSelfFile(path, newArr, x => {
var obj = {
Url: this.domainManager().AliUrl + x.name,
Url: this.domainManager().ViittoFileUrl + x.data.FilePath,
Name: "",
fileName: x.name
};
......
......@@ -191,9 +191,9 @@
newArr.push(file.file);
let path = "/Upload/DMC/";
this.$message.info("正在上传图片...");
this.uploadFile(path, newArr, x => {
this.UploadSelfFile(path, newArr, x => {
var obj = {
Url: this.domainManager().AliUrl + x.name,
Url: this.domainManager().ViittoFileUrl + x.data.FilePath,
Name: "",
fileName: x.name
};
......
......@@ -135,9 +135,9 @@
newArr.push(file.file);
let path = "/Upload/DMC/";
this.$message.info("正在上传图片...");
this.uploadFile(path, newArr, x => {
this.UploadSelfFile(path, newArr, x => {
var obj = {
Url: this.domainManager().AliUrl + x.name,
Url: this.domainManager().ViittoFileUrl + x.data.FilePath,
Name: "",
fileName: x.name
};
......
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