对接文档翻译

This commit is contained in:
qq787203167
2022-07-27 14:43:25 +08:00
parent f0d12ff4b4
commit 3f6efd5f80
@@ -100,6 +100,12 @@
v-if="record.createBy == userInfoQuery.username && record.releaseCondition == 'draft'"
@click="deleteData(record)">{{$t('delete')}}</a>
</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>
<div class="page" v-if="dataSource && dataSource.length > 0">
<a-pagination
@@ -180,7 +186,8 @@
title: this.$t('translationLanguage'),
align: 'center',
dataIndex: 'targetLanguage_dictText',
width: 170
width: 240,
scopedSlots: { customRender: 'translationLanguage' }
},
{
title: this.$t('translationResults'),
@@ -431,4 +438,9 @@
color: red;
margin-right: 4px;
}
.translationLanguageText {
margin-right: 4px;
display: inline-block;
}
</style>