perf: 优化

This commit is contained in:
ah--desktop
2025-12-07 23:36:38 +08:00
parent 407c650973
commit a3b8797955
42 changed files with 160 additions and 701 deletions
@@ -11,7 +11,7 @@ import { computed, ref } from 'vue';
import { Page } from '@vben/common-ui';
import { createIconifyIcon } from '@vben/icons';
import { Button, message, Space, Tag } from 'ant-design-vue';
import { Button, message, Popconfirm, Space, Tag } from 'ant-design-vue';
import { useVbenVxeGrid } from '#/adapter/vxe-table';
import {
@@ -336,7 +336,12 @@ const getStatusColor = (status: number) => {
<template #action="{ row }">
<Space>
<Button size="small" @click="handleEdit(row)"> 编辑 </Button>
<Button size="small" danger @click="handleDelete(row)"> 删除 </Button>
<Popconfirm
title="确定要删除这个账户吗?"
@confirm="handleDelete(row)"
>
<Button size="small" danger> 删除 </Button>
</Popconfirm>
</Space>
</template>
</Grid>
@@ -8,7 +8,7 @@ import { computed, ref } from 'vue';
import { Page } from '@vben/common-ui';
import { createIconifyIcon } from '@vben/icons';
import { Button, message, Space, Tag } from 'ant-design-vue';
import { Button, message, Popconfirm, Space, Tag } from 'ant-design-vue';
import { useVbenVxeGrid } from '#/adapter/vxe-table';
import {
@@ -333,7 +333,12 @@ function handleModalSuccess() {
<template #action="{ row }">
<Space>
<Button size="small" @click="handleEdit(row)"> 编辑 </Button>
<Button size="small" danger @click="handleDelete(row)"> 删除 </Button>
<Popconfirm
title="确定要删除这个账户吗?"
@confirm="handleDelete(row)"
>
<Button size="small" danger> 删除 </Button>
</Popconfirm>
</Space>
</template>
</Grid>
@@ -8,7 +8,7 @@ import { computed, ref } from 'vue';
import { Page } from '@vben/common-ui';
import { createIconifyIcon } from '@vben/icons';
import { Button, message, Space, Tag } from 'ant-design-vue';
import { Button, message, Popconfirm, Space, Tag } from 'ant-design-vue';
import { useVbenVxeGrid } from '#/adapter/vxe-table';
import {
@@ -373,7 +373,12 @@ const [Grid, gridApi] = useVbenVxeGrid({
<Button size="small" type="primary" @click="handleMenuManage(row)">
菜单
</Button>
<Button size="small" danger @click="handleDelete(row)"> 删除 </Button>
<Popconfirm
title="确定要删除这个公司吗?"
@confirm="handleDelete(row)"
>
<Button size="small" danger> 删除 </Button>
</Popconfirm>
</Space>
</template>
</Grid>
@@ -11,7 +11,7 @@ import { computed, ref } from 'vue';
import { Page } from '@vben/common-ui';
import { createIconifyIcon } from '@vben/icons';
import { Button, message, Space, Tag } from 'ant-design-vue';
import { Button, message, Popconfirm, Space, Tag } from 'ant-design-vue';
import { useVbenVxeGrid } from '#/adapter/vxe-table';
import {
@@ -322,7 +322,12 @@ const [Grid, gridApi] = useVbenVxeGrid({
<template #action="{ row }: { row: any }">
<Space>
<Button size="small" @click="handleEdit(row)"> 编辑 </Button>
<Button size="small" danger @click="handleDelete(row)"> 删除 </Button>
<Popconfirm
title="确定要删除这个部门吗?"
@confirm="handleDelete(row)"
>
<Button size="small" danger> 删除 </Button>
</Popconfirm>
</Space>
</template>
</Grid>
@@ -8,7 +8,7 @@ import { computed, ref } from 'vue';
import { Page } from '@vben/common-ui';
import { createIconifyIcon } from '@vben/icons';
import { Button, message, Space, Tag } from 'ant-design-vue';
import { Button, message, Popconfirm, Space, Tag } from 'ant-design-vue';
import { useVbenVxeGrid } from '#/adapter/vxe-table';
import {
@@ -275,7 +275,12 @@ const [Grid, gridApi] = useVbenVxeGrid({
<template #action="{ row }: { row: any }">
<Space>
<Button size="small" @click="handleEdit(row)"> 编辑 </Button>
<Button size="small" danger @click="handleDelete(row)"> 删除 </Button>
<Popconfirm
title="确定要删除这个岗位吗?"
@confirm="handleDelete(row)"
>
<Button size="small" danger> 删除 </Button>
</Popconfirm>
</Space>
</template>
</Grid>