From 29f538b1d53ab6a49312ba31b6aa31bf389a4e87 Mon Sep 17 00:00:00 2001 From: fengachen <373943794@qq.com> Date: Wed, 7 Sep 2022 10:21:54 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=BF=AE=E6=94=B9=E3=80=91=E9=A6=96?= =?UTF-8?q?=E9=A1=B5=E5=AF=B9=E9=BD=90=E5=B1=95=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/dashboard/AllMoneyTenEcharts.vue | 6 +++--- src/views/dashboard/DepartmentTotalEcharts.vue | 6 +++--- src/views/dashboard/SingleMonthEcharts.vue | 10 +++++----- src/views/dashboard/SingleMonthTotalEcharts.vue | 10 +++++----- 4 files changed, 16 insertions(+), 16 deletions(-) diff --git a/src/views/dashboard/AllMoneyTenEcharts.vue b/src/views/dashboard/AllMoneyTenEcharts.vue index 69bf584..3918ea3 100644 --- a/src/views/dashboard/AllMoneyTenEcharts.vue +++ b/src/views/dashboard/AllMoneyTenEcharts.vue @@ -70,7 +70,7 @@ const columns = [ { title: '', align: 'center', - width: 150, + width: 100, dataIndex: 'indexName', scopedSlots: {customRender: 'text'} }, @@ -167,8 +167,8 @@ export default { option = { color:['#069F99','#FFA17A'], grid: { - left: '0%', - right: '2%', + left: '4%', + right: '0%', bottom: '3%', containLabel: true }, diff --git a/src/views/dashboard/DepartmentTotalEcharts.vue b/src/views/dashboard/DepartmentTotalEcharts.vue index 2edfa7a..1de1297 100644 --- a/src/views/dashboard/DepartmentTotalEcharts.vue +++ b/src/views/dashboard/DepartmentTotalEcharts.vue @@ -66,7 +66,7 @@ const columns = [ { title: '', align: 'center', - width: 150, + width: 100, dataIndex: 'indexName', scopedSlots: {customRender: 'text'} }, @@ -161,8 +161,8 @@ export default { option = { color: ['#069F99', '#FFA17A'], grid: { - left: '0%', - right: '2%', + left: '3%', + right: '0%', bottom: '3%', containLabel: true }, diff --git a/src/views/dashboard/SingleMonthEcharts.vue b/src/views/dashboard/SingleMonthEcharts.vue index f7e6aed..13ac0a7 100644 --- a/src/views/dashboard/SingleMonthEcharts.vue +++ b/src/views/dashboard/SingleMonthEcharts.vue @@ -14,7 +14,7 @@ bordered rowKey="projectId" :columns="columns" - :scroll="{x: 1500}" + :scroll="{x: 1100}" :dataSource="dataSource" :pagination="false" :loading="loading" @@ -74,7 +74,7 @@ const columns = [ { title: '', align: 'center', - width: 150, + width: 90, dataIndex: 'indexName', scopedSlots: {customRender: 'text'} }, @@ -200,8 +200,8 @@ export default { right: '2%' }, grid: { - left: '0%', - right: '2%', + left: '2.4%', + right: '0%', bottom: '3%', containLabel: true }, @@ -218,7 +218,7 @@ export default { color: '#999999' }, type: 'category', - boundaryGap: true, + boundaryGap: ['30%','20%'], // 刻度线设置 axisTick: { show: false diff --git a/src/views/dashboard/SingleMonthTotalEcharts.vue b/src/views/dashboard/SingleMonthTotalEcharts.vue index 01544d5..dc50a30 100644 --- a/src/views/dashboard/SingleMonthTotalEcharts.vue +++ b/src/views/dashboard/SingleMonthTotalEcharts.vue @@ -14,7 +14,7 @@ bordered rowKey="projectId" :columns="columns" - :scroll="{x: 1500}" + :scroll="{x: 1100}" :dataSource="dataSource" :pagination="false" :loading="loading" @@ -74,7 +74,7 @@ const columns = [ { title: '', align: 'center', - width: 150, + width: 110, dataIndex: 'indexName', scopedSlots: {customRender: 'text'} }, @@ -83,7 +83,7 @@ MonthDataTotal.map(tt => { columns.push({ title: tt.name, align: 'center', - width: 100, + width: 125, dataIndex: tt.key, scopedSlots: {customRender: 'allMoney'} }) @@ -201,8 +201,8 @@ export default { right: '2%' }, grid: { - left: '0%', - right: '2%', + left: '2.4%', + right: '0%', bottom: '3%', containLabel: true },