fix:asset 添加bug修复

This commit is contained in:
wangwenrui
2020-05-25 14:00:39 +08:00
parent 6fce2c7909
commit d6f34421c4
2 changed files with 16 additions and 11 deletions

View File

@@ -1103,6 +1103,7 @@ export default {
}
},
getAssetInfoChartData(chartInfo){
if(!this.isModel){
this.$refs['editChart'+chartInfo.id][0].showLoad(chartInfo);
this.$get('/asset/info?id='+this.additionalInfo.id).then(response=>{
@@ -1113,6 +1114,9 @@ export default {
this.$refs['editChart'+chartInfo.id][0].setData(chartInfo, {}, this.filter.panelId, this.filter,reponse.msg);
}
})
}else{
this.$refs['editChart'+chartInfo.id][0].endLoading();
}
},
// 设置图表的宽度
setSize(size, index) {

View File

@@ -98,6 +98,7 @@
<el-cascader
:options="vendorTypeOptionData"
:key="isResourceShow"
:props="{emitPath:false}"
:disabled="this.assetType!=''?false:true"
v-model="assetData.modelId"
clearable
@@ -965,13 +966,13 @@
this.$emit('refreshData', 'true');
this.sendStateData('close');
} else {
this.assetData.modelId = tempModelId;
// this.assetData.modelId = tempModelId;
this.$message.error(res.msg);
}
});
}
} else {
this.assetData.modelId = tempModelId;
// this.assetData.modelId = tempModelId;
return false;
}
});