Commit 3666a475 authored by youjie's avatar youjie

no message

parent 21dbcbd4
...@@ -111,6 +111,7 @@ ...@@ -111,6 +111,7 @@
}, },
uploadpic(e) { uploadpic(e) {
let that = this; let that = this;
that.$message.info('上传中...')
if (e.target.files.length > 0 && e.target.files[0].size > 0) { if (e.target.files.length > 0 && e.target.files[0].size > 0) {
// 压缩图片需要的一些元素和对象 // 压缩图片需要的一些元素和对象
var reader = new FileReader(); var reader = new FileReader();
...@@ -124,6 +125,7 @@ ...@@ -124,6 +125,7 @@
let allPath = that.domainManager().ViittoFileUrl + x.data.FilePath; let allPath = that.domainManager().ViittoFileUrl + x.data.FilePath;
let i = e.target.id.split("_")[2]; let i = e.target.id.split("_")[2];
that.FeatureData.dataObj.SubList[that.MasterMapIndex].ImgList[0].url = allPath that.FeatureData.dataObj.SubList[that.MasterMapIndex].ImgList[0].url = allPath
that.$message.success('上传成功');
}); });
}; };
reader.readAsDataURL(e.target.files[0]); reader.readAsDataURL(e.target.files[0]);
......
...@@ -111,6 +111,7 @@ ...@@ -111,6 +111,7 @@
}, },
uploadpic(e) { uploadpic(e) {
let that = this; let that = this;
that.$message.info('上传中...')
if (e.target.files.length > 0 && e.target.files[0].size > 0) { if (e.target.files.length > 0 && e.target.files[0].size > 0) {
// 压缩图片需要的一些元素和对象 // 压缩图片需要的一些元素和对象
var reader = new FileReader(); var reader = new FileReader();
...@@ -124,6 +125,7 @@ ...@@ -124,6 +125,7 @@
let allPath = that.domainManager().ViittoFileUrl + x.data.FilePath; let allPath = that.domainManager().ViittoFileUrl + x.data.FilePath;
let i = e.target.id.split("_")[2]; let i = e.target.id.split("_")[2];
that.FeatureItem.dataObj.ImgList[0].url = allPath that.FeatureItem.dataObj.ImgList[0].url = allPath
that.$message.success('上传成功');
}); });
}; };
reader.readAsDataURL(e.target.files[0]); reader.readAsDataURL(e.target.files[0]);
......
...@@ -90,6 +90,7 @@ ...@@ -90,6 +90,7 @@
}, },
uploadpic(e) { uploadpic(e) {
let that = this; let that = this;
that.$message.info('上传中...')
if (e.target.files.length > 0 && e.target.files[0].size > 0) { if (e.target.files.length > 0 && e.target.files[0].size > 0) {
var reader = new FileReader(); var reader = new FileReader();
reader.onload = function (event) { reader.onload = function (event) {
...@@ -106,6 +107,7 @@ ...@@ -106,6 +107,7 @@
} else { } else {
that.FeatureItem.dataObj.ImgList[that.MasterMapIndex].url = allPath that.FeatureItem.dataObj.ImgList[that.MasterMapIndex].url = allPath
} }
that.$message.success('上传成功');
}); });
}; };
reader.readAsDataURL(e.target.files[0]); reader.readAsDataURL(e.target.files[0]);
......
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