diff --git a/src/views/task/onlineLinkCountData.vue b/src/views/task/onlineLinkCountData.vue index d894488..d0818cb 100644 --- a/src/views/task/onlineLinkCountData.vue +++ b/src/views/task/onlineLinkCountData.vue @@ -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(); } }); },