【修改】首页对齐展示

This commit is contained in:
fengachen
2022-09-07 10:21:54 +08:00
parent 2573ad49e3
commit 29f538b1d5
4 changed files with 16 additions and 16 deletions
+3 -3
View File
@@ -70,7 +70,7 @@ const columns = [
{ {
title: '', title: '',
align: 'center', align: 'center',
width: 150, width: 100,
dataIndex: 'indexName', dataIndex: 'indexName',
scopedSlots: {customRender: 'text'} scopedSlots: {customRender: 'text'}
}, },
@@ -167,8 +167,8 @@ export default {
option = { option = {
color:['#069F99','#FFA17A'], color:['#069F99','#FFA17A'],
grid: { grid: {
left: '0%', left: '4%',
right: '2%', right: '0%',
bottom: '3%', bottom: '3%',
containLabel: true containLabel: true
}, },
@@ -66,7 +66,7 @@ const columns = [
{ {
title: '', title: '',
align: 'center', align: 'center',
width: 150, width: 100,
dataIndex: 'indexName', dataIndex: 'indexName',
scopedSlots: {customRender: 'text'} scopedSlots: {customRender: 'text'}
}, },
@@ -161,8 +161,8 @@ export default {
option = { option = {
color: ['#069F99', '#FFA17A'], color: ['#069F99', '#FFA17A'],
grid: { grid: {
left: '0%', left: '3%',
right: '2%', right: '0%',
bottom: '3%', bottom: '3%',
containLabel: true containLabel: true
}, },
+5 -5
View File
@@ -14,7 +14,7 @@
bordered bordered
rowKey="projectId" rowKey="projectId"
:columns="columns" :columns="columns"
:scroll="{x: 1500}" :scroll="{x: 1100}"
:dataSource="dataSource" :dataSource="dataSource"
:pagination="false" :pagination="false"
:loading="loading" :loading="loading"
@@ -74,7 +74,7 @@ const columns = [
{ {
title: '', title: '',
align: 'center', align: 'center',
width: 150, width: 90,
dataIndex: 'indexName', dataIndex: 'indexName',
scopedSlots: {customRender: 'text'} scopedSlots: {customRender: 'text'}
}, },
@@ -200,8 +200,8 @@ export default {
right: '2%' right: '2%'
}, },
grid: { grid: {
left: '0%', left: '2.4%',
right: '2%', right: '0%',
bottom: '3%', bottom: '3%',
containLabel: true containLabel: true
}, },
@@ -218,7 +218,7 @@ export default {
color: '#999999' color: '#999999'
}, },
type: 'category', type: 'category',
boundaryGap: true, boundaryGap: ['30%','20%'],
// 刻度线设置 // 刻度线设置
axisTick: { axisTick: {
show: false show: false
@@ -14,7 +14,7 @@
bordered bordered
rowKey="projectId" rowKey="projectId"
:columns="columns" :columns="columns"
:scroll="{x: 1500}" :scroll="{x: 1100}"
:dataSource="dataSource" :dataSource="dataSource"
:pagination="false" :pagination="false"
:loading="loading" :loading="loading"
@@ -74,7 +74,7 @@ const columns = [
{ {
title: '', title: '',
align: 'center', align: 'center',
width: 150, width: 110,
dataIndex: 'indexName', dataIndex: 'indexName',
scopedSlots: {customRender: 'text'} scopedSlots: {customRender: 'text'}
}, },
@@ -83,7 +83,7 @@ MonthDataTotal.map(tt => {
columns.push({ columns.push({
title: tt.name, title: tt.name,
align: 'center', align: 'center',
width: 100, width: 125,
dataIndex: tt.key, dataIndex: tt.key,
scopedSlots: {customRender: 'allMoney'} scopedSlots: {customRender: 'allMoney'}
}) })
@@ -201,8 +201,8 @@ export default {
right: '2%' right: '2%'
}, },
grid: { grid: {
left: '0%', left: '2.4%',
right: '2%', right: '0%',
bottom: '3%', bottom: '3%',
containLabel: true containLabel: true
}, },