feat: 新增银行管理功能,包括银行账户的列表展示、编辑和删除操作
This commit is contained in:
@@ -21,10 +21,6 @@ const fetchData: TableFetchData = ({ pagination, filter }) => {
|
||||
};
|
||||
|
||||
const columns: TableBaseColumns = [
|
||||
{
|
||||
title: 'ID',
|
||||
key: 'id'
|
||||
},
|
||||
{
|
||||
title: '银行名称',
|
||||
key: 'nameCn'
|
||||
@@ -47,20 +43,6 @@ const columns: TableBaseColumns = [
|
||||
return useDateFormat(row.createdAt, 'YYYY-MM-DD HH:mm:ss').value;
|
||||
}
|
||||
},
|
||||
{
|
||||
title: '更新时间',
|
||||
key: 'updatedAt',
|
||||
render(row: any) {
|
||||
return row.updatedAt ? useDateFormat(row.updatedAt, 'YYYY-MM-DD HH:mm:ss').value : '-';
|
||||
}
|
||||
},
|
||||
{
|
||||
title: '删除时间',
|
||||
key: 'deletedAt',
|
||||
render(row: any) {
|
||||
return row.deletedAt ? useDateFormat(row.deletedAt, 'YYYY-MM-DD HH:mm:ss').value : '-';
|
||||
}
|
||||
},
|
||||
{
|
||||
title: '操作',
|
||||
fixed: 'right',
|
||||
@@ -70,6 +52,7 @@ const columns: TableBaseColumns = [
|
||||
{
|
||||
contentText: '编辑',
|
||||
type: 'primary',
|
||||
size: 'small',
|
||||
onClick: () => {
|
||||
tableInst.value?.reload();
|
||||
}
|
||||
@@ -120,6 +103,7 @@ const filterColumns: TableFilterColumns = [
|
||||
:columns="columns"
|
||||
:filter-columns="filterColumns"
|
||||
:fetch-data="fetchData"
|
||||
:scroll-x="800"
|
||||
/>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user