更新 @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,56 @@
<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.admin.transfer.get({
query: {}
})
);
};
const columns: TableBaseColumns = [
{
title: 'ID',
key: 'id'
},
{
title: 'orderNo',
key: 'orderNo'
},
{
title: 'fromUserId',
key: 'fromUserId'
},
{
title: 'toUserId',
key: 'toUserId'
},
{
title: 'assetCode',
key: 'assetCode'
},
{
title: 'amount',
key: 'amount'
},
{
title: 'fee',
key: 'fee'
}
];
</script>
<template>
<TableBase ref="tableInst" :columns="columns" :fetch-data="fetchData" />
</template>
<style lang="css" scoped></style>