fix:修复save chart 时填入不存在的panel未创建新panel的问题

This commit is contained in:
wangwenrui
2020-10-19 18:33:18 +08:00
parent 7af562d1b9
commit 41a8029c58
4 changed files with 49 additions and 41 deletions

View File

@@ -104,6 +104,7 @@
params:{type:Object},
exportFileName:{type:String},
importUrl: {type:String,required:true},
link:{type:Object},
},
data:function(){
return {
@@ -158,6 +159,9 @@
form.append('excelFile',this.importFile.raw);
if(this.paramsType){
form.append('type',this.paramsType);
if(this.paramsType==='asset' || this.paramsType==='model'){
form.append('linkId',this.link?this.link.id:'');
}
}
form.append('language',localStorage.getItem("nz-language") ? localStorage.getItem("nz-language") : 'en')
this.$post(this.importUrl,form,{'Content-Type': 'multipart/form-data'}).then(response=>{