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
@@ -1,5 +1,5 @@
<script lang="ts" setup>
import type { ShopDTO, ShopVO } from '#/api/shop/shop/types';
import type { ShopDTO, ShopVO } from '#/api/ecommerce/shop/types';
import { computed, onUnmounted, ref } from 'vue';
@@ -12,7 +12,7 @@ import {
createShopApi,
updateShopApi,
uploadShopLogoApi,
} from '#/api/shop/shop';
} from '#/api/ecommerce/shop';
interface Emits {
(e: 'success'): void;
@@ -1,6 +1,6 @@
<script lang="ts" setup>
import type { VxeGridProps } from '#/adapter/vxe-table';
import type { ShopDTO, ShopVO } from '#/api/shop/shop/types';
import type { ShopDTO, ShopVO } from '#/api/ecommerce/shop/types';
import type { PageQueryDTO } from '#/types/common';
import { computed, ref } from 'vue';
@@ -8,10 +8,10 @@ import { computed, ref } from 'vue';
import { Page } from '@vben/common-ui';
import { createIconifyIcon } from '@vben/icons';
import { Button, message, Space } from 'ant-design-vue';
import { Button, message, Popconfirm, Space } from 'ant-design-vue';
import { useVbenVxeGrid } from '#/adapter/vxe-table';
import { deleteShopApi, getShopPageApi } from '#/api/shop/shop';
import { deleteShopApi, getShopPageApi } from '#/api/ecommerce/shop';
import ShopFormModal from './components/ShopFormModal.vue';
@@ -271,7 +271,12 @@ function handleModalSuccess() {
<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>