perf:1.assetInfo chart调整 2.panel table类型图表表头拖拽显示bug修复

This commit is contained in:
wangwenrui
2020-05-26 14:30:40 +08:00
parent b0660c8df9
commit 50e340ad90
6 changed files with 135 additions and 11 deletions

View File

@@ -1105,7 +1105,31 @@ export default {
getAssetInfoChartData(chartInfo){
if(!this.isModel){
this.$refs['editChart'+chartInfo.id][0].showLoad(chartInfo);
// setTimeout(()=>{
// if(this.additionalInfo){
// let data={
// Basic:{
// sn:'assetInfo Test',
// host:'192.168.40.42',
// 'cpu Num':'8',
// memery:'12GB',
// 'memery free':'3GB'
// },
// Feature:{
// CPU:"Intel E500",
// Memory:"256GB",
// NetworkInterface:["eth0","eth1"],
// Disk:[{
// mount:"/",
// total:"256GB",
// free:"128GB",
// usageRate:"50%"
// }]
// }
// }
// this.$refs['editChart'+chartInfo.id][0].setData(chartInfo, data, this.filter.panelId, this.filter);
// }
// },1000)
this.$get('/asset/info?id='+this.additionalInfo.id).then(response=>{
if(response.code == 200){
let data=response.data;