feat:【ele】【crm】product/category 迁移
This commit is contained in:
@@ -85,7 +85,7 @@ export function useGridColumns(): VxeTableGridOptions<CrmProductCategoryApi.Prod
|
||||
{
|
||||
field: 'actions',
|
||||
title: '操作',
|
||||
width: 200,
|
||||
width: 250,
|
||||
fixed: 'right',
|
||||
slots: {
|
||||
default: 'actions',
|
||||
|
||||
@@ -68,6 +68,8 @@ const [Modal, modalApi] = useVbenModal({
|
||||
// 加载数据
|
||||
let data = modalApi.getData<CrmProductCategoryApi.ProductCategory>();
|
||||
if (!data || !data.id) {
|
||||
// 设置上级
|
||||
await formApi.setValues(data);
|
||||
return;
|
||||
}
|
||||
modalApi.lock();
|
||||
|
||||
Reference in New Issue
Block a user