Commit 722e93528f2cdc4c5aacb102b52af10fc3120bf6
Merge branch 'ww' into 'main'
fix: DEFECT-1010 alarm profile not has options See merge request huang/yun-teng-iot-front!473
Showing
3 changed files
with
5 additions
and
3 deletions
@@ -6,7 +6,6 @@ | @@ -6,7 +6,6 @@ | ||
6 | <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> | 6 | <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> |
7 | <meta name="renderer" content="webkit" /> | 7 | <meta name="renderer" content="webkit" /> |
8 | <meta http-equiv="Expires" content="0" /> | 8 | <meta http-equiv="Expires" content="0" /> |
9 | - <meta http-equiv="Pragma" content="no-cache" /> | ||
10 | <meta http-equiv="Cache-control" content="no-cache" /> | 9 | <meta http-equiv="Cache-control" content="no-cache" /> |
11 | <meta http-equiv="Cache" content="no-cache" /> | 10 | <meta http-equiv="Cache" content="no-cache" /> |
12 | <meta | 11 | <meta |
@@ -33,7 +33,9 @@ | @@ -33,7 +33,9 @@ | ||
33 | </div> | 33 | </div> |
34 | </div> | 34 | </div> |
35 | <div style="float: right" v-if="isViewStatus"> | 35 | <div style="float: right" v-if="isViewStatus"> |
36 | - <Button type="primary" @click="handleSubmit" class="mr-2">确认</Button> | 36 | + <Button type="primary" @click="handleSubmit" v-show="current === 1" class="mr-2" |
37 | + >确认</Button | ||
38 | + > | ||
37 | <Button type="default" @click="handleCancel" class="mr-2">取消</Button> | 39 | <Button type="default" @click="handleCancel" class="mr-2">取消</Button> |
38 | </div> | 40 | </div> |
39 | </BasicModal> | 41 | </BasicModal> |
@@ -565,9 +565,10 @@ | @@ -565,9 +565,10 @@ | ||
565 | //TODO fengtao | 565 | //TODO fengtao |
566 | setFields(skipUnwrap.triggerItemRefs, true); | 566 | setFields(skipUnwrap.triggerItemRefs, true); |
567 | setFields(skipUnwrap.conditionItemRefs, true); | 567 | setFields(skipUnwrap.conditionItemRefs, true); |
568 | - setFields(skipUnwrap.actionItemRefs, true); | 568 | + // setFields(skipUnwrap.actionItemRefs, true); |
569 | const data = await getOrganizationAlarmConfig({ organizationId: newValue }); | 569 | const data = await getOrganizationAlarmConfig({ organizationId: newValue }); |
570 | alarmConfigList.value = data.map((item) => ({ label: item.name, value: item.id })); | 570 | alarmConfigList.value = data.map((item) => ({ label: item.name, value: item.id })); |
571 | + setFields(skipUnwrap.actionItemRefs, true); | ||
571 | // console.log(unref(organizationIdRef)); | 572 | // console.log(unref(organizationIdRef)); |
572 | // setAlarmConfig(skipUnwrap.actionItemRefs, true); | 573 | // setAlarmConfig(skipUnwrap.actionItemRefs, true); |
573 | }); | 574 | }); |