Commit 02fda4ec authored by 黄奎's avatar 黄奎

上传修改

parent 02011c31
...@@ -210,10 +210,11 @@ ...@@ -210,10 +210,11 @@
methods: { methods: {
downLoadPZ: function (src) { downLoadPZ: function (src) {
const link = document.createElement('a'); var a = document.createElement('a')
link.href = src; var event = new MouseEvent('click')
document.body.appendChild(link); a.download = '下载图片名称'
link.click(); a.href = src;
a.dispatchEvent(event)
}, },
stringToArr(str) { stringToArr(str) {
return str.split(',') return str.split(',')
......
...@@ -579,6 +579,7 @@ ...@@ -579,6 +579,7 @@
res => { res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
var tempData = res.data.data; var tempData = res.data.data;
console.log("tempData",tempData);
if (tempData.Feature != null) { if (tempData.Feature != null) {
this.FeatureData.ID = tempData.Feature.ID; this.FeatureData.ID = tempData.Feature.ID;
this.FeatureData.ConfigId = tempData.Feature.ConfigId; this.FeatureData.ConfigId = tempData.Feature.ConfigId;
......
...@@ -1550,7 +1550,7 @@ ...@@ -1550,7 +1550,7 @@
var fileName = `${that.uuid(10,10)}.png`; var fileName = `${that.uuid(10,10)}.png`;
var path = `/feature/${that.cid}/${fileName}`; var path = `/feature/${that.cid}/${fileName}`;
that.uploadBlob(path, newArr, x => { that.uploadBlob(path, newArr, x => {
let allPath=this.domainManager().ViittoFileUrl+x.name; let allPath=that.domainManager().ViittoFileUrl+x.name;
let i=e.target.id.split('_')[2]; let i=e.target.id.split('_')[2];
that.imgUrlChange(allPath) that.imgUrlChange(allPath)
}) })
......
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