review:【antd】【iot】商品分类

This commit is contained in:
YunaiV
2025-11-21 09:23:55 +08:00
parent c38d746c25
commit 0251dc2f3b
4 changed files with 17 additions and 51 deletions

View File

@@ -56,16 +56,11 @@ async function handleDelete(row: IotProductCategoryApi.ProductCategory) {
const [Grid, gridApi] = useVbenVxeGrid({
formOptions: {
schema: useGridFormSchema(),
showCollapseButton: true,
collapsed: true,
},
gridOptions: {
columns: useGridColumns(),
height: 'auto',
keepSource: true,
pagerConfig: {
enabled: true,
},
proxyConfig: {
ajax: {
query: async ({ page }, formValues) => {

View File

@@ -17,6 +17,8 @@ import { $t } from '#/locales';
import { useFormSchema } from '../data';
// TODO @haohao应该是 form.vue不用前缀
const emit = defineEmits(['success']);
const formData = ref<IotProductCategoryApi.ProductCategory>();
const getTitle = computed(() => {
@@ -38,7 +40,7 @@ const [Form, formApi] = useVbenForm({
showDefaultActions: false,
});
// TODO @haohao参考别的 form1文件的命名可以简化2代码可以在简化下
// TODO @haohao参考 apps/web-antd/src/views/system/dept/modules/form.vue 简化 useVbenModal 里的代码
const [Modal, modalApi] = useVbenModal({
async onConfirm() {
const { valid } = await formApi.validate();