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);