fix: 场景联动-收信人结构修改
This commit is contained in:
parent
8e890e89fd
commit
189381c5fa
|
@ -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',
|
||||||
|
|
Loading…
Reference in New Issue