import type { Table } from '@tanstack/vue-table'
+import { X } from 'lucide-vue-next'
import { computed } from 'vue'
import { useI18n } from 'vue-i18n'
@@ -18,12 +19,11 @@ const emit = defineEmits<{
const { t } = useI18n()
const typeModel = computed({
- get: () => props.typeFilter,
- set: (value: string) => emit('update:typeFilter', value),
+ get: () => props.typeFilter || undefined,
+ set: (value: string) => emit('update:typeFilter', value || ''),
})
const typeOptions = computed(() => [
- { label: t('agent.finance.allTypes'), value: '' },
{ label: t('agent.finance.types.recharge'), value: 'recharge' },
{ label: t('agent.finance.types.consume'), value: 'consume' },
{ label: t('agent.finance.types.refund'), value: 'refund' },
@@ -34,7 +34,7 @@ const typeOptions = computed(() => [
-
+
@@ -42,5 +42,12 @@ const typeOptions = computed(() => [
+
diff --git a/frontend/src/plugins/i18n/en.json b/frontend/src/plugins/i18n/en.json
index 4ff4dc1..c463c92 100644
--- a/frontend/src/plugins/i18n/en.json
+++ b/frontend/src/plugins/i18n/en.json
@@ -2813,7 +2813,7 @@
"cardCode": "Card Code",
"app": "Application",
"cardType": "Card Type",
- "status": "Status",
+ "statusFilter": "Status",
"createTime": "Create Time",
"useTime": "Use Time",
"unused": "Unused",
diff --git a/frontend/src/plugins/i18n/zh.json b/frontend/src/plugins/i18n/zh.json
index c2ce4a8..f3e6384 100644
--- a/frontend/src/plugins/i18n/zh.json
+++ b/frontend/src/plugins/i18n/zh.json
@@ -2814,7 +2814,7 @@
"cardCode": "卡密",
"app": "应用",
"cardType": "卡类",
- "status": "状态",
+ "statusFilter": "状态",
"createTime": "创建时间",
"useTime": "使用时间",
"unused": "未使用",