fix: 场景联动-收信人结构修改

This commit is contained in:
100011797 2023-05-18 10:59:32 +08:00
parent 8e890e89fd
commit 189381c5fa
1 changed files with 5 additions and 4 deletions

View File

@ -272,14 +272,15 @@ const getUser = async (_source: string, _triggerType: string) => {
key: 'p2', key: 'p2',
selectable: false, selectable: false,
children: relationResp.result.map((item: any) => { children: relationResp.result.map((item: any) => {
treeDataMap.set(item.id, item) const obj = {
return {
...item, ...item,
value: item.id, value: item.id,
key: item.id, key: item.id,
title: item.name, title: item.name,
isRelation: true, isRelation: true,
}; }
treeDataMap.set(item.id, obj)
return obj
}), }),
}); });
} }
@ -306,7 +307,7 @@ const getObj = (
objectType: 'device', objectType: 'device',
objectSource: { objectSource: {
source: 'upper', source: 'upper',
upperKey: 'deviceId', upperKey: 'scene.deviceId',
}, },
related: { related: {
objectType: 'user', objectType: 'user',