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

上传修改

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