Commit 08af1690326e48f7f819a9dbca6c5d9671f9f2df

Authored by ww
1 parent 40c6b379

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

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