feat: 优化表格列配置,移除不必要的 ID 列,调整操作按钮样式

This commit is contained in:
2026-03-08 19:17:14 +07:00
parent 6650197591
commit ee846c7b6a

View File

@@ -18,10 +18,6 @@ const fetchData: TableFetchData = ({ pagination, filter }) => {
}; };
const columns: TableBaseColumns = [ const columns: TableBaseColumns = [
{
title: 'ID',
key: 'id'
},
{ {
title: '用户ID', title: '用户ID',
key: 'userId' key: 'userId'
@@ -57,8 +53,8 @@ const columns: TableBaseColumns = [
{ {
contentText: '通过', contentText: '通过',
type: 'primary', type: 'primary',
strong: true, ghost: true,
secondary: true, size: 'small',
visible: row.status !== 'approved', visible: row.status !== 'approved',
onClick: async () => { onClick: async () => {
dialog.create({ dialog.create({
@@ -82,6 +78,7 @@ const columns: TableBaseColumns = [
contentText: '拒绝', contentText: '拒绝',
type: 'error', type: 'error',
ghost: true, ghost: true,
size: 'small',
onClick: async () => { onClick: async () => {
dialog.create({ dialog.create({
title: '提示', title: '提示',
@@ -134,6 +131,7 @@ const filterColumns: TableFilterColumns = [
:fetch-data="fetchData" :fetch-data="fetchData"
show-header-operation show-header-operation
:filter-columns="filterColumns" :filter-columns="filterColumns"
:scroll-x="800"
/> />
</template> </template>