更新 @riwa/api-types 依赖至 0.0.20,删除表格基础组件,新增 RWA 和用户管理相关页面及路由

This commit is contained in:
tiezi
2025-12-17 21:42:16 +07:00
parent 27d6cef96e
commit 8a9d617129
14 changed files with 622 additions and 53 deletions

View File

@@ -0,0 +1,44 @@
<script lang="ts" setup>
import { h, ref, useTemplateRef } from 'vue';
import { NInputNumber, useDialog, useMessage } from 'naive-ui';
import { client, safeClient } from '@/service/api';
import { DepositTypeEnum } from '@/enum';
import type { TableBaseColumns, TableFetchData, TableInst } from '@/components/table';
const dialog = useDialog();
const message = useMessage();
const tableInst = useTemplateRef<TableInst>('tableInst');
const fetchData: TableFetchData = () => {
return safeClient(() =>
client.api.user.profile.get({
query: {}
})
);
};
const columns: TableBaseColumns = [
{
title: 'ID',
key: 'id'
},
{
title: '用户名',
key: 'name'
},
{
title: '邮箱',
key: 'email'
},
{
title: '状态',
key: 'image'
}
];
</script>
<template>
<TableBase ref="tableInst" :columns="columns" :fetch-data="fetchData" />
</template>
<style lang="css" scoped></style>