统一商品分类标识与评价关联展示
This commit is contained in:
@@ -728,8 +728,18 @@ export const resources: ResourceUiDefinition[] = [
|
||||
f('product_snapshot'), f('quantity'), f('sale_amount'),
|
||||
]),
|
||||
define('ec_review', '商品评价', 'readonly', [
|
||||
relation('ec_order_identity', '/ec_order'), relation('ec_product_identity', '/ec_product'),
|
||||
relation('user_account_identity', '/user_account'), f('score'), f('content'),
|
||||
relation('ec_order_identity', '/ec_order', false, {
|
||||
label: '商城订单', listLabel: '商城订单', listRelationNameOnly: true,
|
||||
displayRelationLabel: true, showIdentityCopy: true,
|
||||
}),
|
||||
relation('ec_product_identity', '/ec_product', false, {
|
||||
label: '商品', listLabel: '商品', listRelationNameOnly: true,
|
||||
displayRelationLabel: true, showIdentityCopy: true,
|
||||
}),
|
||||
relation('user_account_identity', '/user_account', false, {
|
||||
label: '用户', listLabel: '用户', listRelationNameOnly: true,
|
||||
displayRelationLabel: true, showIdentityCopy: true,
|
||||
}), f('score'), f('content'),
|
||||
]),
|
||||
|
||||
define('wallet_basic', '钱包', 'readonly', [f('owner_type'), f('owner_identity', {
|
||||
|
||||
@@ -37,9 +37,20 @@
|
||||
</a-tag>
|
||||
</template>
|
||||
</a-table-column>
|
||||
<a-table-column title="系统标识" :width="120">
|
||||
<a-table-column
|
||||
:title="definition.name === 'ec_category' ? '系统唯一标识' : '系统标识'"
|
||||
:width="definition.name === 'ec_category' ? 170 : 120"
|
||||
>
|
||||
<template #cell="{ record }">
|
||||
<IdentityText :value="String(record.identity)" display-text="复制标识" />
|
||||
<IdentityText
|
||||
v-if="definition.name === 'ec_category'"
|
||||
:value="String(record.identity)"
|
||||
/>
|
||||
<IdentityText
|
||||
v-else
|
||||
:value="String(record.identity)"
|
||||
display-text="复制标识"
|
||||
/>
|
||||
</template>
|
||||
</a-table-column>
|
||||
<a-table-column v-if="canEdit || canChangeStatus || canArchive" title="操作" :width="230" fixed="right">
|
||||
|
||||
Reference in New Issue
Block a user