在资产编辑和SKU对话框中新增dictType字段支持,确保自定义属性的字典类型信息在请求体中正确传递和保存
This commit is contained in:
@@ -149,6 +149,7 @@ interface SpecValueItem {
|
||||
interface AssetSpecAttr {
|
||||
name: string;
|
||||
options?: string[];
|
||||
dictType?: string;
|
||||
}
|
||||
|
||||
const dialogVisible = ref(false);
|
||||
@@ -241,6 +242,7 @@ const fetchAssetSpecAttrs = () => {
|
||||
.map((item: any) => ({
|
||||
name: item.name,
|
||||
options: item.options?.map((opt: any) => opt.label || opt.value) || [],
|
||||
dictType: item.dictType || '',
|
||||
}));
|
||||
} else {
|
||||
assetSpecAttrs.value = [];
|
||||
|
||||
Reference in New Issue
Block a user