mirror of
https://github.com/yangjian102621/geekai.git
synced 2025-09-17 16:56:38 +08:00
feat(ui): 调整
This commit is contained in:
parent
71f7a1b166
commit
c920d8423d
@ -11,7 +11,7 @@ function useAsyncTable<T extends Record<string, unknown>>(
|
|||||||
): TableReturn {
|
): TableReturn {
|
||||||
const paginationState = reactive({
|
const paginationState = reactive({
|
||||||
current: 1,
|
current: 1,
|
||||||
pageSize: 10,
|
pageSize: 20,
|
||||||
total: 0,
|
total: 0,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -37,7 +37,7 @@ const columns = [
|
|||||||
|
|
||||||
const expandable = reactive({
|
const expandable = reactive({
|
||||||
title: "",
|
title: "",
|
||||||
width: 80,
|
width: 50,
|
||||||
});
|
});
|
||||||
|
|
||||||
// 数据
|
// 数据
|
||||||
|
@ -100,8 +100,9 @@ const handleRemove = async (id, reload) => {
|
|||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
<template #actions="{ record, reload }">
|
<template #actions="{ record, reload }">
|
||||||
<a-link @click="openFormModal(reload, record)">编辑</a-link>
|
|
||||||
<a-link @click="openResetPWDModal(reload, record)">修改密码</a-link>
|
<a-link @click="openResetPWDModal(reload, record)">修改密码</a-link>
|
||||||
|
<template v-if="record.id !== 1">
|
||||||
|
<a-link @click="openFormModal(reload, record)">编辑</a-link>
|
||||||
<a-popconfirm
|
<a-popconfirm
|
||||||
content="是否删除?"
|
content="是否删除?"
|
||||||
position="left"
|
position="left"
|
||||||
@ -111,5 +112,6 @@ const handleRemove = async (id, reload) => {
|
|||||||
<a-link status="danger">删除</a-link>
|
<a-link status="danger">删除</a-link>
|
||||||
</a-popconfirm>
|
</a-popconfirm>
|
||||||
</template>
|
</template>
|
||||||
|
</template>
|
||||||
</SearchTable>
|
</SearchTable>
|
||||||
</template>
|
</template>
|
||||||
|
@ -37,6 +37,7 @@ const columns: SearchTableColumns[] = [
|
|||||||
{
|
{
|
||||||
title: "过期时间",
|
title: "过期时间",
|
||||||
dataIndex: "expired_time",
|
dataIndex: "expired_time",
|
||||||
|
width: 180,
|
||||||
render: ({ record }) => {
|
render: ({ record }) => {
|
||||||
return dateFormat(record.expired_time);
|
return dateFormat(record.expired_time);
|
||||||
},
|
},
|
||||||
@ -44,6 +45,7 @@ const columns: SearchTableColumns[] = [
|
|||||||
{
|
{
|
||||||
title: "注册时间",
|
title: "注册时间",
|
||||||
dataIndex: "created_at",
|
dataIndex: "created_at",
|
||||||
|
width: 180,
|
||||||
render: ({ record }) => {
|
render: ({ record }) => {
|
||||||
return dateFormat(record.created_at);
|
return dateFormat(record.created_at);
|
||||||
},
|
},
|
||||||
@ -51,6 +53,8 @@ const columns: SearchTableColumns[] = [
|
|||||||
{
|
{
|
||||||
title: "操作",
|
title: "操作",
|
||||||
slotName: "actions",
|
slotName: "actions",
|
||||||
|
width: 180,
|
||||||
|
fixed: "right",
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user