mirror of
https://gitee.com/qqtt-ah/ecom-dmb.git
synced 2026-11-25 06:29:20 +08:00
fix: 修复前端 TypeScript 类型错误
- file-upload.ts: 重写上传逻辑,正确使用 files 数组和类型 - CompanyMenuDrawer/CompanyPermissionDrawer: 修复 Tree @check 事件类型 - 移除各页面未使用的导入和函数 - promotion-fee: 修复类型导出问题 - 修复 VxeGrid 配置重复和无效属性问题
This commit is contained in:
+1
-1
@@ -7,7 +7,7 @@ import { computed, ref } from 'vue';
|
||||
import { Page } from '@vben/common-ui';
|
||||
import { createIconifyIcon } from '@vben/icons';
|
||||
|
||||
import { Button, message, Popconfirm, Space, Tag } from 'ant-design-vue';
|
||||
import { Button, message, Popconfirm, Space } from 'ant-design-vue';
|
||||
|
||||
import { useVbenVxeGrid } from '#/adapter/vxe-table';
|
||||
import {
|
||||
|
||||
@@ -533,11 +533,6 @@ function handleSortChange({
|
||||
gridReloadRef.value?.();
|
||||
}
|
||||
|
||||
// 获取店铺选项(首次加载)
|
||||
async function fetchShopOptions() {
|
||||
await fetchShops(1, false);
|
||||
}
|
||||
|
||||
// 获取订单状态选项
|
||||
async function fetchOrderStatusOptions() {
|
||||
try {
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@ import { computed, ref } from 'vue';
|
||||
|
||||
import { useVbenModal } from '@vben/common-ui';
|
||||
|
||||
import { Form, Input, message, Select, Switch } from 'ant-design-vue';
|
||||
import { Form, Input, message, Switch } from 'ant-design-vue';
|
||||
|
||||
import { createPlatformApi, updatePlatformApi } from '#/api/ecommerce/platform';
|
||||
|
||||
|
||||
@@ -7,14 +7,12 @@ import { computed, ref } from 'vue';
|
||||
import { Page } from '@vben/common-ui';
|
||||
import { createIconifyIcon } from '@vben/icons';
|
||||
|
||||
import { Avatar, Button, message, Popconfirm, Space, Tag } from 'ant-design-vue';
|
||||
import { Button, message, Popconfirm, Space, Tag } from 'ant-design-vue';
|
||||
|
||||
import { useVbenVxeGrid } from '#/adapter/vxe-table';
|
||||
import {
|
||||
createPlatformApi,
|
||||
deletePlatformApi,
|
||||
getPlatformPageApi,
|
||||
updatePlatformApi,
|
||||
} from '#/api/ecommerce/platform';
|
||||
|
||||
import PlatformFormModal from './components/PlatformFormModal.vue';
|
||||
|
||||
@@ -226,23 +226,12 @@ function refreshTable() {
|
||||
}
|
||||
}
|
||||
|
||||
// 重置搜索表单
|
||||
function handleReset() {
|
||||
searchForm.value = {
|
||||
shopId: undefined,
|
||||
startTargetMonth: undefined,
|
||||
endTargetMonth: undefined,
|
||||
};
|
||||
gridReloadRef.value?.();
|
||||
}
|
||||
|
||||
// 创建 VbenVxeGrid 实例
|
||||
const [Grid, gridApi] = useVbenVxeGrid({
|
||||
gridOptions,
|
||||
formOptions: formOptions.value,
|
||||
showSearchForm: true,
|
||||
tableTitle: '店铺月销量目标管理',
|
||||
handleReset,
|
||||
});
|
||||
gridReloadRef.value = () => gridApi.reload();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user