对接文档翻译
This commit is contained in:
@@ -100,6 +100,12 @@
|
|||||||
v-if="record.createBy == userInfoQuery.username && record.releaseCondition == 'draft'"
|
v-if="record.createBy == userInfoQuery.username && record.releaseCondition == 'draft'"
|
||||||
@click="deleteData(record)">{{$t('delete')}}</a>
|
@click="deleteData(record)">{{$t('delete')}}</a>
|
||||||
</span>
|
</span>
|
||||||
|
<span slot="translationLanguage" slot-scope="text,record"
|
||||||
|
:title="record.sourceLanguage_dictText +' -- '+record.targetLanguage_dictText">
|
||||||
|
<span class="translationLanguageText" style="margin-top: -2px">{{record.sourceLanguage_dictText}}</span>
|
||||||
|
<a-icon class="translationLanguageText" type="arrow-right" style="font-size: 16px"/>
|
||||||
|
<span class="translationLanguageText">{{record.targetLanguage_dictText}}</span>
|
||||||
|
</span>
|
||||||
</a-table>
|
</a-table>
|
||||||
<div class="page" v-if="dataSource && dataSource.length > 0">
|
<div class="page" v-if="dataSource && dataSource.length > 0">
|
||||||
<a-pagination
|
<a-pagination
|
||||||
@@ -180,7 +186,8 @@
|
|||||||
title: this.$t('translationLanguage'),
|
title: this.$t('translationLanguage'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
dataIndex: 'targetLanguage_dictText',
|
dataIndex: 'targetLanguage_dictText',
|
||||||
width: 170
|
width: 240,
|
||||||
|
scopedSlots: { customRender: 'translationLanguage' }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('translationResults'),
|
title: this.$t('translationResults'),
|
||||||
@@ -431,4 +438,9 @@
|
|||||||
color: red;
|
color: red;
|
||||||
margin-right: 4px;
|
margin-right: 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.translationLanguageText {
|
||||||
|
margin-right: 4px;
|
||||||
|
display: inline-block;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
Reference in New Issue
Block a user