Commit 302db6c74c4c26d6a5481295b39f4bcf2f17886a

Authored by ww
1 parent 52947efe

fix: rule linedge clear alarm configuration not save deviceType field

@@ -423,6 +423,7 @@ @@ -423,6 +423,7 @@
423 triggered: 423 triggered:
424 action.doContext.clearRule[index].triggerCondition.condition.spec.type, 424 action.doContext.clearRule[index].triggerCondition.condition.spec.type,
425 device: action.doContext.clearRule[index].entityType, 425 device: action.doContext.clearRule[index].entityType,
  426 + deviceType: action.doContext.clearRule[index].deviceType,
426 triggerType: action.doContext.clearRule[index].triggerType, 427 triggerType: action.doContext.clearRule[index].triggerType,
427 type1: 428 type1:
428 action.doContext.clearRule[index].triggerCondition.condition.condition[0].key 429 action.doContext.clearRule[index].triggerCondition.condition.condition[0].key
@@ -120,7 +120,7 @@ export const genActionData = (actionData) => { @@ -120,7 +120,7 @@ export const genActionData = (actionData) => {
120 triggerType: item.triggerType, 120 triggerType: item.triggerType,
121 entityType: item.device, 121 entityType: item.device,
122 entityId: item.device === 'PART' ? item.entityId : null, 122 entityId: item.device === 'PART' ? item.entityId : null,
123 - deviceType, 123 + deviceType: item.deviceType,
124 deviceProfileId: item.deviceProfileId, 124 deviceProfileId: item.deviceProfileId,
125 triggerCondition: { 125 triggerCondition: {
126 alarmDetails: item.detail, 126 alarmDetails: item.detail,