mirror of
https://github.com/fastapiadmin/FastapiAdmin.git
synced 2026-10-13 12:49:30 +00:00
Merge pull request #259 from 1014TaoTao/2.2.0
refactor(角色管理): 移除创建人和更新人表格列及相关配置
This commit is contained in:
@@ -267,26 +267,6 @@
|
|||||||
min-width="200"
|
min-width="200"
|
||||||
sortable
|
sortable
|
||||||
/>
|
/>
|
||||||
<el-table-column
|
|
||||||
v-if="tableColumns.find((col) => col.prop === 'created_id')?.show"
|
|
||||||
key="created_id"
|
|
||||||
label="创建人"
|
|
||||||
min-width="120"
|
|
||||||
>
|
|
||||||
<template #default="scope">
|
|
||||||
{{ scope.row.created_by?.name }}
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
|
||||||
v-if="tableColumns.find((col) => col.prop === 'updated_id')?.show"
|
|
||||||
key="updated_id"
|
|
||||||
label="更新人"
|
|
||||||
min-width="120"
|
|
||||||
>
|
|
||||||
<template #default="scope">
|
|
||||||
{{ scope.row.updated_by?.name }}
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
<el-table-column
|
||||||
v-if="tableColumns.find((col) => col.prop === 'operation')?.show"
|
v-if="tableColumns.find((col) => col.prop === 'operation')?.show"
|
||||||
fixed="right"
|
fixed="right"
|
||||||
@@ -522,8 +502,6 @@ const tableColumns = ref([
|
|||||||
{ prop: "description", label: "描述", show: true },
|
{ prop: "description", label: "描述", show: true },
|
||||||
{ prop: "created_time", label: "创建时间", show: true },
|
{ prop: "created_time", label: "创建时间", show: true },
|
||||||
{ prop: "updated_time", label: "更新时间", show: true },
|
{ prop: "updated_time", label: "更新时间", show: true },
|
||||||
{ prop: "created_id", label: "创建人", show: true },
|
|
||||||
{ prop: "updated_id", label: "更新人", show: true },
|
|
||||||
{ prop: "operation", label: "操作", show: true },
|
{ prop: "operation", label: "操作", show: true },
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user