语言适配英文

This commit is contained in:
X1627315083
2024-03-26 15:45:32 +08:00
parent f12a188526
commit 4f3d91437e
15 changed files with 1156 additions and 469 deletions

View File

@@ -83,38 +83,39 @@ export default defineComponent({
},
setup() {
let renameData: any = ref({}); //修改名字选中的数据
const {t} = useI18n()
const columns: any = computed(() => {
return [
{
title: "Serial",
{
title: useI18n().t('allOrder.Serial'),
align: "center",
ellipsis: true,
dataIndex: "orderNo",
key: "orderNo",
},
{
title: "Title",
title: useI18n().t('allOrder.Title'),
align: "center",
ellipsis: true,
dataIndex: "title",
key: "title",
},
{
title: "Money",
title: useI18n().t('allOrder.Money'),
align: "center",
ellipsis: true,
dataIndex: "totalFee",
key: "totalFee",
},
{
title: "Payment",
title: useI18n().t('allOrder.Payment'),
align: "center",
ellipsis: true,
dataIndex: "paymentType",
key: "paymentType",
},
{
title: "State",
title: useI18n().t('allOrder.State'),
align: "center",
ellipsis: true,
dataIndex: "orderStatus",
@@ -139,11 +140,11 @@ export default defineComponent({
})
let state:any = ref([
{
label:'Income',
label:useI18n().t('allOrder.Income'),
value:'income',
},
{
label:'Expend',
label:useI18n().t('allOrder.Expend'),
value:'expend',
},
])
@@ -156,6 +157,7 @@ export default defineComponent({
userInfo,
currentState,
state,
t,
};
},
data() {