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 },