更新提现相关功能,新增已批准提现列表页面及路由,优化提现和待审核提现页面的数据获取逻辑,添加过滤功能
This commit is contained in:
@@ -25,7 +25,7 @@ const columns: TableBaseColumns = [
|
||||
key: 'id'
|
||||
},
|
||||
{
|
||||
title: 'Code',
|
||||
title: '产品代码',
|
||||
key: 'code'
|
||||
},
|
||||
{
|
||||
@@ -33,7 +33,7 @@ const columns: TableBaseColumns = [
|
||||
key: 'name'
|
||||
},
|
||||
{
|
||||
title: '估值',
|
||||
title: '产品估值',
|
||||
key: 'estimatedValue'
|
||||
},
|
||||
{
|
||||
@@ -41,7 +41,7 @@ const columns: TableBaseColumns = [
|
||||
key: 'categoryId'
|
||||
},
|
||||
{
|
||||
title: '创建人',
|
||||
title: '创建人ID',
|
||||
key: 'createdBy'
|
||||
},
|
||||
{
|
||||
|
||||
@@ -1,18 +1,20 @@
|
||||
<script lang="ts" setup>
|
||||
import { h, ref, useTemplateRef } from 'vue';
|
||||
import { NInputNumber, useDialog, useMessage } from 'naive-ui';
|
||||
import { useTemplateRef } from 'vue';
|
||||
import { NDatePicker, 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 = () => {
|
||||
const fetchData: TableFetchData = ({ pagination, filter }) => {
|
||||
return safeClient(() =>
|
||||
client.api.admin.rwa.issuance.categories.get({
|
||||
query: {}
|
||||
query: {
|
||||
...pagination,
|
||||
...filter
|
||||
}
|
||||
})
|
||||
);
|
||||
};
|
||||
@@ -85,10 +87,22 @@ const columns: TableBaseColumns = [
|
||||
]
|
||||
}
|
||||
];
|
||||
|
||||
const filterColumns: TableFilterColumns = [
|
||||
{
|
||||
title: 'description',
|
||||
key: 'description'
|
||||
},
|
||||
{
|
||||
title: 'name',
|
||||
key: 'name',
|
||||
component: NDatePicker
|
||||
}
|
||||
];
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<TableBase ref="tableInst" :columns="columns" :fetch-data="fetchData" />
|
||||
<TableBase ref="tableInst" :columns="columns" :fetch-data="fetchData" :filter-columns="filterColumns" />
|
||||
</template>
|
||||
|
||||
<style lang="css" scoped></style>
|
||||
|
||||
Reference in New Issue
Block a user