fix:修复save chart 时填入不存在的panel未创建新panel的问题
This commit is contained in:
@@ -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=>{
|
||||
|
||||
Reference in New Issue
Block a user