修改图表显示

This commit is contained in:
RenCheng 2025-05-28 22:03:59 +08:00
parent 24f4dd7dec
commit 9e6571b47d

View File

@ -140,11 +140,15 @@ export default {
});
},
getTables() {
this.totalNumberCataloguesData =[];
let t = this;
t.totalNumberCataloguesData =[];
getAction("/online/getOnlineLinkCountData",{}).then((res)=>{
if(res.success){
this.totalNumberCataloguesData = res.result
this.gettotalNumberCatalogues();
Object.keys(res.result).forEach(function(key){
console.log(res.result[key])
t.totalNumberCataloguesData.push([key, parseInt(res.result[key])])
});
t.gettotalNumberCatalogues();
}
});
},