Commit 618b6218b3802f151f387509656b40ae0bbe525f
Merge branch 'ww' into 'main'
fix: rule linkedge alarm configuration can not save deviceType fields See merge request yunteng/thingskit-front!477
Showing
2 changed files
with
2 additions
and
3 deletions
... | ... | @@ -423,6 +423,7 @@ |
423 | 423 | triggered: |
424 | 424 | action.doContext.clearRule[index].triggerCondition.condition.spec.type, |
425 | 425 | device: action.doContext.clearRule[index].entityType, |
426 | + deviceType: action.doContext.clearRule[index].deviceType, | |
426 | 427 | triggerType: action.doContext.clearRule[index].triggerType, |
427 | 428 | type1: |
428 | 429 | action.doContext.clearRule[index].triggerCondition.condition.condition[0].key |
... | ... | @@ -694,8 +695,6 @@ |
694 | 695 | } |
695 | 696 | if (mustTriggerCondition) return; |
696 | 697 | if (mustCondition) return; |
697 | - console.log(postAddOrEditData); | |
698 | - return; | |
699 | 698 | //FT change |
700 | 699 | await screenLinkPageAddApi(postAddOrEditData, unref(isUpdate)); |
701 | 700 | createMessage.success(`${unref(isUpdate) ? '编辑' : '新增'}成功`); | ... | ... |
... | ... | @@ -120,7 +120,7 @@ export const genActionData = (actionData) => { |
120 | 120 | triggerType: item.triggerType, |
121 | 121 | entityType: item.device, |
122 | 122 | entityId: item.device === 'PART' ? item.entityId : null, |
123 | - deviceType, | |
123 | + deviceType: item.deviceType, | |
124 | 124 | deviceProfileId: item.deviceProfileId, |
125 | 125 | triggerCondition: { |
126 | 126 | alarmDetails: item.detail, | ... | ... |