修改禅道bug

This commit is contained in:
zyx.net
2022-08-18 13:56:15 +08:00
parent c5682ef175
commit 831ade2161
2 changed files with 10 additions and 8 deletions
@@ -36,7 +36,7 @@
size="middle" size="middle"
:loading="loading" :loading="loading"
:pagination="false" :pagination="false"
:scroll="{x: '100%',y:'calc(100vh - 130px)'}" :scroll="{x: '100%',y:'calc(100vh - 158px)'}"
rowKey="id" rowKey="id"
:data-source="dataSource" :data-source="dataSource"
:row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }" :row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }"
@@ -44,7 +44,7 @@
> >
<span slot="projectName" slot-scope="text,record" :title="text"> <span slot="projectName" slot-scope="text,record" :title="text">
<a > <a >
{{ text && text.length > 10 ? text.slice(0, 9) + '...' : text }} {{ text && text.length > 20 ? text.slice(0, 19) + '...' : text }}
</a> </a>
</span> </span>
<span slot="operation" slot-scope="text,record"> <span slot="operation" slot-scope="text,record">
@@ -113,7 +113,7 @@
{ {
title: this.$t('entryName'), title: this.$t('entryName'),
align: 'center', align: 'center',
width: '13%', width: '17%',
dataIndex: 'projectName', dataIndex: 'projectName',
scopedSlots: { customRender: 'projectName' } scopedSlots: { customRender: 'projectName' }
}, },
@@ -37,14 +37,14 @@
size="middle" size="middle"
:loading="loading" :loading="loading"
:pagination="false" :pagination="false"
:scroll="{x: '100%',y:'calc(100vh - 140px)'}" :scroll="{x: '100%',y:'calc(100vh - 160px)'}"
rowKey="id" rowKey="id"
:data-source="dataSource" :data-source="dataSource"
:row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }" :row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }"
:columns="columns" :columns="columns"
> >
<span slot="projectName" slot-scope="text,record" :title="text"> <span slot="projectName" slot-scope="text,record" :title="text">
{{ text && text.length > 40 ? text.slice(0, 39) + '...' : text }} {{ text && text.length > 25 ? text.slice(0, 24) + '...' : text }}
</span> </span>
<span slot="templateName" slot-scope="text,record" :title="text"> <span slot="templateName" slot-scope="text,record" :title="text">
{{ text && text.length > 25 ? text.slice(0, 21) + '...' : text }} {{ text && text.length > 25 ? text.slice(0, 21) + '...' : text }}
@@ -150,30 +150,32 @@ export default {
title: this.$t('templateName'), title: this.$t('templateName'),
align: 'center', align: 'center',
dataIndex: 'templateName', dataIndex: 'templateName',
width: 300,
scopedSlots: { customRender: 'templateName' } scopedSlots: { customRender: 'templateName' }
}, },
{ {
title: this.$t('contentDescription'), title: this.$t('contentDescription'),
align: 'center', align: 'center',
dataIndex: 'description', dataIndex: 'description',
width: 300,
scopedSlots: { customRender: 'projectName' } scopedSlots: { customRender: 'projectName' }
}, },
{ {
title: this.$t('status'), title: this.$t('status'),
align: 'center', align: 'center',
width: '5%', width: 100,
dataIndex: 'state_dictText' dataIndex: 'state_dictText'
}, },
{ {
title: this.$t('creater'), title: this.$t('creater'),
align: 'center', align: 'center',
width: '10%', width: 100,
dataIndex: 'createBy' dataIndex: 'createBy'
}, },
{ {
title: this.$t('Latestupdatetime'), title: this.$t('Latestupdatetime'),
align: 'center', align: 'center',
width: '10%', width: 180,
dataIndex: 'updateTime' dataIndex: 'updateTime'
}, },
{ {