review:【antd】【iot】设备分组

This commit is contained in:
YunaiV
2025-11-21 09:34:28 +08:00
parent 0251dc2f3b
commit 863fbf7456
3 changed files with 4 additions and 5 deletions

View File

@@ -43,9 +43,7 @@ async function handleDelete(row: IotDeviceGroupApi.DeviceGroup) {
});
try {
await deleteDeviceGroup(row.id as number);
message.success({
content: $t('ui.actionMessage.deleteSuccess', [row.name]),
});
message.success($t('ui.actionMessage.deleteSuccess', [row.name]));
handleRefresh();
} finally {
hideLoading();
@@ -55,7 +53,6 @@ async function handleDelete(row: IotDeviceGroupApi.DeviceGroup) {
const [Grid, gridApi] = useVbenVxeGrid({
formOptions: {
schema: useGridFormSchema(),
showCollapseButton: true,
},
gridOptions: {
columns: useGridColumns(),

View File

@@ -19,6 +19,8 @@ import { useFormSchema } from '../data';
defineOptions({ name: 'IoTDeviceGroupForm' });
// TODO @haohaoweb-antd/src/views/iot/product/category/modules/product-category-form.vue 类似问题
const emit = defineEmits<{
success: [];
}>();