|
|
@@ -26,14 +26,12 @@ import { ElMessage } from 'element-plus'
|
|
|
import { useRequest } from '@/hooks/request'
|
|
|
import { useOperation } from '@/hooks/operation'
|
|
|
import { queryBlackList } from '@/services/api/system'
|
|
|
-import { i18n } from '@/stores'
|
|
|
import { useEnum } from '@/hooks/enum'
|
|
|
+import { formatDate } from '@/filters'
|
|
|
import AppTable from '@pc/components/base/table/index.vue'
|
|
|
import AppPagination from '@pc/components/base/pagination/index.vue'
|
|
|
import AppOperation from '@pc/components/base/operation/index.vue'
|
|
|
-import { formatDate } from '@/filters'
|
|
|
|
|
|
-const { global: { t } } = i18n
|
|
|
// 状态
|
|
|
const cardtypeEnum = useEnum('cardtype')
|
|
|
|
|
|
@@ -52,9 +50,9 @@ const { dataList, total, pageSize, pageIndex, loading, run } = useRequest(queryB
|
|
|
})
|
|
|
|
|
|
const tableColumns = ref<Model.TableColumn[]>([
|
|
|
- { field: 'cardtype', label: '证件类型', formatValue: (val) => cardtypeEnum.getEnumTypeName(val) },
|
|
|
- { field: 'cardnum', label: '证件号码' },
|
|
|
- { field: 'createtime', label: '创建时间', formatValue: (val) => formatDate(val) },
|
|
|
+ { field: 'cardtype', label: 'system.user_blacklist.cardtype', formatValue: (val) => cardtypeEnum.getEnumTypeName(val) },
|
|
|
+ { field: 'cardnum', label: 'system.user_blacklist.cardnum' },
|
|
|
+ { field: 'createtime', label: 'system.user_blacklist.createtime', formatValue: (val) => formatDate(val) },
|
|
|
{ field: 'operate', label: 'common.operate', fixed: 'right' }
|
|
|
])
|
|
|
|