|
|
@@ -20,21 +20,9 @@
|
|
|
<template #createtime="{ value }">
|
|
|
{{ formatDate(value) }}
|
|
|
</template>
|
|
|
- <!-- 操作类型 -->
|
|
|
- <template #operatetypename="{ value }" v-if="i18n.global.locale === 'zh-CN'">
|
|
|
- {{ value }}
|
|
|
- </template>
|
|
|
- <!-- 操作类型 -->
|
|
|
- <template #operatetypename_tw="{ value }" v-if="i18n.global.locale === 'zh-TW'">
|
|
|
- {{ value }}
|
|
|
- </template>
|
|
|
- <!-- 操作类型 -->
|
|
|
- <template #operatetypenameen="{ value }" v-if="i18n.global.locale === 'en-US'">
|
|
|
- {{ value }}
|
|
|
- </template>
|
|
|
<!-- 操作类型 -->
|
|
|
- <template #operatetypenameth="{ value }" v-if="i18n.global.locale === 'th'">
|
|
|
- {{ value }}
|
|
|
+ <template #operatetypename="{ row }">
|
|
|
+ {{ operatetypename(row) }}
|
|
|
</template>
|
|
|
<template #append v-if="showLoadMore">
|
|
|
<el-button size="small" plain @click="loadMore">{{ t('common.loadMore') }}</el-button>
|
|
|
@@ -63,12 +51,22 @@ const { loading, dataList, run } = useRequest(queryAmountLog, {
|
|
|
|
|
|
const { t } = i18n.global
|
|
|
|
|
|
+const operatetypename = ((row: Model.AmountLogRsp) => {
|
|
|
+ switch (i18n.global.locale) {
|
|
|
+ case "zh-CN":
|
|
|
+ return row.operatetypename
|
|
|
+ case "zh-TW":
|
|
|
+ return row.operatetypename_tw
|
|
|
+ case "en-US":
|
|
|
+ return row.operatetypenameen
|
|
|
+ default:
|
|
|
+ return row.operatetypenameth
|
|
|
+ }
|
|
|
+})
|
|
|
+
|
|
|
const tableColumns = shallowRef<Model.TableColumn[]>([
|
|
|
{ field: 'accountid', label: 'banksign.capital.accountid' },
|
|
|
{ field: 'operatetypename', label: 'banksign.capital.operatetypename' },
|
|
|
- { field: 'operatetypename_tw', label: 'banksign.capital.operatetypename' },
|
|
|
- { field: 'operatetypenameen', label: 'banksign.capital.operatetypename' },
|
|
|
- { field: 'operatetypenameth', label: 'banksign.capital.operatetypename' },
|
|
|
{ field: 'amount', label: 'banksign.capital.amount' },
|
|
|
{ field: 'createtime', label: 'banksign.capital.createtime' }
|
|
|
])
|