From 98d8c558434cff086894853db73da5c4dd464e01 Mon Sep 17 00:00:00 2001 From: e <2538815847@qq.com> Date: Tue, 18 Jun 2024 08:56:50 +0800 Subject: [PATCH] update --- .../problemAnalysis/index.vue | 60 +++++++++++-------- 1 file changed, 36 insertions(+), 24 deletions(-) diff --git a/src/views/enterpriseTeamWork/problemAnalysis/index.vue b/src/views/enterpriseTeamWork/problemAnalysis/index.vue index cfa2fa0..8fc972c 100644 --- a/src/views/enterpriseTeamWork/problemAnalysis/index.vue +++ b/src/views/enterpriseTeamWork/problemAnalysis/index.vue @@ -167,16 +167,20 @@ export default { let gs = data["贵驷街道"] || {}; Object.keys(zbs).forEach((key, index) => { - this.zbsObj.data.push({ - name: key, - value: zbs[key], - }); + if (index < 10) { + this.zbsObj.data.push({ + name: key, + value: zbs[key], + }); + } }); Object.keys(jlh).forEach((key, index) => { - this.jlhObj.data.push({ - name: key, - value: jlh[key], - }); + if (index < 10) { + this.jlhObj.data.push({ + name: key, + value: jlh[key], + }); + } }); Object.keys(xp).forEach((key, index) => { if (index < 10) { @@ -187,28 +191,36 @@ export default { } }); Object.keys(jc).forEach((key, index) => { - this.jcObj.data.push({ - name: key, - value: jc[key], - }); + if (index < 10) { + this.jcObj.data.push({ + name: key, + value: jc[key], + }); + } }); Object.keys(lt).forEach((key, index) => { - this.ltObj.data.push({ - name: key, - value: lt[key], - }); + if (index < 10) { + this.ltObj.data.push({ + name: key, + value: lt[key], + }); + } }); Object.keys(zs).forEach((key, index) => { - this.zsObj.data.push({ - name: key, - value: zs[key], - }); + if (index < 10) { + this.zsObj.data.push({ + name: key, + value: zs[key], + }); + } }); Object.keys(gs).forEach((key, index) => { - this.gsObj.data.push({ - name: key, - value: gs[key], - }); + if (index < 10) { + this.gsObj.data.push({ + name: key, + value: gs[key], + }); + } }); console.log(this.zsObj);