feat:【ele】【antd】代码的差异同步
This commit is contained in:
@@ -87,6 +87,7 @@ const [Grid, gridApi] = useVbenVxeGrid({
|
||||
url="https://doc.iocoder.cn/member/level/"
|
||||
/>
|
||||
</template>
|
||||
|
||||
<FormModal @success="handleRefresh" />
|
||||
<Grid table-title="等级列表">
|
||||
<template #toolbar-tools>
|
||||
|
||||
@@ -5,7 +5,7 @@ import type { MallFavoriteApi } from '#/api/mall/product/favorite';
|
||||
import { DICT_TYPE } from '@vben/constants';
|
||||
|
||||
import { useVbenVxeGrid } from '#/adapter/vxe-table';
|
||||
import * as FavoriteApi from '#/api/mall/product/favorite';
|
||||
import { getFavoritePage } from '#/api/mall/product/favorite';
|
||||
|
||||
const props = defineProps<{
|
||||
userId: number;
|
||||
@@ -72,7 +72,7 @@ const [Grid] = useVbenVxeGrid({
|
||||
proxyConfig: {
|
||||
ajax: {
|
||||
query: async ({ page }, formValues) => {
|
||||
return await FavoriteApi.getFavoritePage({
|
||||
return await getFavoritePage({
|
||||
pageNo: page.currentPage,
|
||||
pageSize: page.pageSize,
|
||||
userId: props.userId,
|
||||
|
||||
@@ -69,7 +69,7 @@ async function handleGenerateQrCode(row: MpAccountApi.Account) {
|
||||
/** 清空 API 配额 */
|
||||
async function handleCleanQuota(row: MpAccountApi.Account) {
|
||||
const loadingInstance = ElLoading.service({
|
||||
text: $t('ui.actionMessage.processing', ['清空 API 配额']),
|
||||
text: '正在清空 API 配额',
|
||||
});
|
||||
try {
|
||||
await clearAccountQuota(row.id!);
|
||||
@@ -155,6 +155,7 @@ const [Grid, gridApi] = useVbenVxeGrid({
|
||||
label: '生成二维码',
|
||||
type: 'primary',
|
||||
link: true,
|
||||
icon: 'qrcode',
|
||||
auth: ['mp:account:qr-code'],
|
||||
onClick: handleGenerateQrCode.bind(null, row),
|
||||
},
|
||||
@@ -162,6 +163,7 @@ const [Grid, gridApi] = useVbenVxeGrid({
|
||||
label: '清空 API 配额',
|
||||
type: 'danger',
|
||||
link: true,
|
||||
icon: 'clear',
|
||||
auth: ['mp:account:clear-quota'],
|
||||
popConfirm: {
|
||||
title: '你确认要清空 API 配额?',
|
||||
|
||||
Reference in New Issue
Block a user