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

@@ -1,31 +0,0 @@
<script lang="ts" setup>
import { Page } from '@vben/common-ui';
import { Button } from 'ant-design-vue';
defineOptions({ name: 'IotPlugin' });
</script>
<template>
<Page description="物聯網插件管理" title="插件管理">
<div class="p-4">
<Button
danger
type="link"
target="_blank"
href="https://github.com/yudaocode/yudao-ui-admin-vue3"
>
該功能支持 Vue3 + element-plus 版本
</Button>
<div class="mt-4">
<h3>功能說明</h3>
<p>IoT 插件管理功能</p>
<h3 class="mt-4">待實現</h3>
<ul>
<li> API 接口定義</li>
<li> 頁面實現</li>
</ul>
</div>
</div>
</Page>
</template>

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();