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

1

parent 523116ec
......@@ -652,7 +652,7 @@
let fileName = file.file.name;
let myDate = new Date();
let path = "/Upload/Editor/" + myDate.getFullYear() + "/" + (myDate.getMonth() + 1) + "/";
this.uploadFile(path, newArr, x => {
this.UploadSelfFileT(path, newArr, x => {
let url = this.domainManager().ViittoFileUrl + x.data.FilePath;
// 如果上传成功
if (url != null && url.length > 0) {
......
......@@ -821,13 +821,13 @@
newArr.push(file.file)
let path = "/Upload/Temporary/"
this.$message.info('上传中...')
this.uploadFile(path, newArr, x => {
this.UploadSelfFileT(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: x.data.FilePath,
ID:0,
Type:fileTypeNumber,
Url:x.res.requestUrls[0].split("?")[0],
Url: this.domainManager().ViittoFileUrl + x.data.FilePath,
})
this.$message.success('上传成功');
});
......
......@@ -789,13 +789,13 @@
newArr.push(file.file)
let path = "/Upload/Temporary/"
this.$message.info('上传中...')
this.uploadFile(path, newArr, x => {
this.UploadSelfFileT(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: x.data.FilePath,
ID:0,
Type:fileTypeNumber,
Url:x.res.requestUrls[0].split("?")[0],
Url: this.domainManager().ViittoFileUrl + x.data.FilePath,
})
this.$message.success('上传成功');
});
......
......@@ -548,9 +548,9 @@ export default {
newArr.push(file.file)
let path = "/Upload/activity/"
this.$message.info('上传中...')
this.uploadFile(path, newArr, x => {
this.UploadSelfFileT(path, newArr, x => {
let fileSize = file.file.size<1024? file.file.size:(file.file.size / 1024).toFixed(0);
this.addMsg.image = x.res.requestUrls[0].split('?')[0]
this.addMsg.image = this.domainManager().ViittoFileUrl + x.data.FilePath
this.$message.success('上传成功');
this.$forceUpdate();
});
......
......@@ -460,10 +460,10 @@
newArr.push(file.file)
let path = "/Upload/Temporary/"
this.uploadFile(path, newArr, x => {
this.UploadSelfFileT(path, newArr, x => {
this.saveMsg = []
this.saveMsg.push({
Path: x.name,
Path: x.data.FilePath,
FileName: file.file.name,
MD5Sign: file.file.uid,
FileSize: (file.file.size / 1024).toFixed(0),
......
......@@ -998,14 +998,13 @@ 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.UploadSelfFileT(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: x.data.FilePath,
ID:0,
Type:fileTypeNumber,
Url:x.res.requestUrls[0].split("?")[0],
Url: this.domainManager().ViittoFileUrl + x.data.FilePath,
})
this.addMsg.VorList = this.saveMsg;
this.Success('上传成功');
......
......@@ -2689,9 +2689,10 @@ export default {
let newArr = [];
newArr.push(file.file);
let path = "/Upload/Temporary/";
this.uploadFile(path, newArr, x => {
this.appMsg.Image.push(x.res.requestUrls[0]);
this.fileList.push({ url: x.res.requestUrls[0] });
this.UploadSelfFileT(path, newArr, x => {
let src = this.domainManager().ViittoFileUrl + x.data.FilePath
this.appMsg.Image.push(src);
this.fileList.push({ url: src});
});
},
handleRemove(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