Commit 08af1690326e48f7f819a9dbca6c5d9671f9f2df

Authored by ww
1 parent 40c6b379

fix: 任务中心修复运行任务targetIds参数传递有误

... ... @@ -51,6 +51,7 @@ export interface DeviceModel {
51 51 organizationId: string;
52 52 customerId?: string;
53 53 alias?: string;
  54 + tbDeviceId?: string;
54 55 }
55 56
56 57 export interface DeviceProfileModel {
... ...
... ... @@ -78,7 +78,7 @@ export const formSchemas: FormSchema[] = [
78 78 const result = await getDevicesByDeviceIds(data!);
79 79 return result.data.map((item) => ({
80 80 label: item.alias || item.name,
81   - value: 'tbDeviceId',
  81 + value: item.tbDeviceId,
82 82 }));
83 83 } else {
84 84 const result = await getMeetTheConditionsDevice({
... ... @@ -87,7 +87,7 @@ export const formSchemas: FormSchema[] = [
87 87 });
88 88 return result.map((item) => ({
89 89 label: item.alias || item.name,
90   - value: 'tbDeviceId',
  90 + value: item.tbDeviceId,
91 91 }));
92 92 }
93 93 } catch (error) {
... ...