mirror of
https://gitee.com/qqtt-ah/ecom-dmb.git
synced 2026-11-25 13:09:20 +08:00
perf: 优化
This commit is contained in:
+5
-5
@@ -3,8 +3,8 @@ import type { PromotionFeeTypeVO } from '#/api/ecommerce/promotion-fee-type';
|
||||
import type {
|
||||
PromotionFeeDTO,
|
||||
PromotionFeeVO,
|
||||
} from '#/api/shop/promotion-fee/types';
|
||||
import type { ShopVO } from '#/api/shop/shop/types';
|
||||
} from '#/api/ecommerce/promotion-fee/types';
|
||||
import type { ShopVO } from '#/api/ecommerce/shop/types';
|
||||
|
||||
import { onMounted, ref, watch } from 'vue';
|
||||
|
||||
@@ -19,12 +19,12 @@ import {
|
||||
Select,
|
||||
} from 'ant-design-vue';
|
||||
|
||||
import { getActivePromotionFeeTypeListApi } from '#/api/ecommerce/promotion-fee-type';
|
||||
import {
|
||||
createPromotionFeeApi,
|
||||
updatePromotionFeeApi,
|
||||
} from '#/api/shop/promotion-fee';
|
||||
import { getShopPageApi } from '#/api/shop/shop';
|
||||
} from '#/api/ecommerce/promotion-fee';
|
||||
import { getActivePromotionFeeTypeListApi } from '#/api/ecommerce/promotion-fee-type';
|
||||
import { getShopPageApi } from '#/api/ecommerce/shop';
|
||||
|
||||
defineOptions({ name: 'PromotionFeeFormModal' });
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ import type { VxeGridProps } from '#/adapter/vxe-table';
|
||||
import type {
|
||||
PromotionFeeDTO,
|
||||
PromotionFeeVO,
|
||||
} from '#/api/shop/promotion-fee/types';
|
||||
} from '#/api/ecommerce/promotion-fee/types';
|
||||
import type { PageQueryDTO } from '#/types/common';
|
||||
|
||||
import { computed, ref } from 'vue';
|
||||
@@ -11,13 +11,13 @@ 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 {
|
||||
deletePromotionFeeApi,
|
||||
getPromotionFeePageApi,
|
||||
} from '#/api/shop/promotion-fee';
|
||||
} from '#/api/ecommerce/promotion-fee';
|
||||
|
||||
import PromotionFeeFormModal from './components/PromotionFeeFormModal.vue';
|
||||
|
||||
@@ -359,9 +359,12 @@ const getPlatformColor = (platform: string | undefined) => {
|
||||
<template #action="{ row }: { row: any }">
|
||||
<Space>
|
||||
<Button size="small" @click="handleEdit(row)"> 编辑 </Button>
|
||||
<Button size="small" danger @click="handleDelete(row.id)">
|
||||
删除
|
||||
</Button>
|
||||
<Popconfirm
|
||||
title="确定要删除这条推广费记录吗?"
|
||||
@confirm="handleDelete(row.id)"
|
||||
>
|
||||
<Button size="small" danger> 删除 </Button>
|
||||
</Popconfirm>
|
||||
</Space>
|
||||
</template>
|
||||
</Grid>
|
||||
|
||||
Reference in New Issue
Block a user