优化购物车关联名称展示

This commit is contained in:
czl231
2026-08-16 00:06:07 +08:00
parent 0b6e7b0598
commit 26cd78ac12
4 changed files with 76 additions and 1 deletions

View File

@@ -695,7 +695,14 @@ export const resources: ResourceUiDefinition[] = [
define('ec_product_attribute', '商品属性', 'writable', [relation('ec_product_identity', '/ec_product', true), f('name', { required: true }), f('value', { required: true }), f('sort_no')]),
define('ec_product_image', '商品图片', 'writable', [relation('ec_product_identity', '/ec_product', true), f('image_uri', { required: true }), f('sort_no'), f('is_cover')]),
define('ec_cart', '购物车', 'readonly', [
relation('user_account_identity', '/user_account'), relation('ec_product_identity', '/ec_product'),
relation('user_account_identity', '/user_account', false, {
label: '用户', listLabel: '用户', listRelationNameOnly: true,
displayRelationLabel: true, showIdentityCopy: true,
}),
relation('ec_product_identity', '/ec_product', false, {
label: '商品', listLabel: '商品', listRelationNameOnly: true,
displayRelationLabel: true, showIdentityCopy: true,
}),
f('quantity'), f('selected'),
]),
define('ec_order', '商城订单', 'readonly', [