feat: 优化表格列配置,移除不必要的 ID 列,调整操作按钮样式
This commit is contained in:
@@ -18,10 +18,6 @@ const fetchData: TableFetchData = ({ pagination, filter }) => {
|
||||
};
|
||||
|
||||
const columns: TableBaseColumns = [
|
||||
{
|
||||
title: 'ID',
|
||||
key: 'id'
|
||||
},
|
||||
{
|
||||
title: '用户ID',
|
||||
key: 'userId'
|
||||
@@ -57,8 +53,8 @@ const columns: TableBaseColumns = [
|
||||
{
|
||||
contentText: '通过',
|
||||
type: 'primary',
|
||||
strong: true,
|
||||
secondary: true,
|
||||
ghost: true,
|
||||
size: 'small',
|
||||
visible: row.status !== 'approved',
|
||||
onClick: async () => {
|
||||
dialog.create({
|
||||
@@ -82,6 +78,7 @@ const columns: TableBaseColumns = [
|
||||
contentText: '拒绝',
|
||||
type: 'error',
|
||||
ghost: true,
|
||||
size: 'small',
|
||||
onClick: async () => {
|
||||
dialog.create({
|
||||
title: '提示',
|
||||
@@ -134,6 +131,7 @@ const filterColumns: TableFilterColumns = [
|
||||
:fetch-data="fetchData"
|
||||
show-header-operation
|
||||
:filter-columns="filterColumns"
|
||||
:scroll-x="800"
|
||||
/>
|
||||
</template>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user