修改图表显示

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() { getTables() {
this.totalNumberCataloguesData =[]; let t = this;
t.totalNumberCataloguesData =[];
getAction("/online/getOnlineLinkCountData",{}).then((res)=>{ getAction("/online/getOnlineLinkCountData",{}).then((res)=>{
if(res.success){ if(res.success){
this.totalNumberCataloguesData = res.result Object.keys(res.result).forEach(function(key){
this.gettotalNumberCatalogues(); console.log(res.result[key])
t.totalNumberCataloguesData.push([key, parseInt(res.result[key])])
});
t.gettotalNumberCatalogues();
} }
}); });
}, },