集群/节点阈值切换监控项时同时切换参数描述

This commit is contained in:
刘祥超
2022-12-31 18:33:42 +08:00
parent 1e259717ce
commit f5f46424bb
4 changed files with 4 additions and 2 deletions

View File

@@ -6,7 +6,7 @@
<div> <div>
<second-menu> <second-menu>
<menu-item @click.prevent="createThreshold">添加阈值</menu-item> <menu-item @click.prevent="createThreshold">[添加阈值]</menu-item>
</second-menu> </second-menu>
</div> </div>

View File

@@ -21,6 +21,7 @@ Tea.context(function () {
that.itemDescription = v.description that.itemDescription = v.description
that.itemParams = v.params that.itemParams = v.params
that.threshold.param = v.params[0].code that.threshold.param = v.params[0].code
that.paramDescription = v.params[0].description
} }
}) })
} }

View File

@@ -4,7 +4,7 @@
<div class="right-box with-menu"> <div class="right-box with-menu">
<first-menu> <first-menu>
<menu-item @click.prevent="createThreshold">添加阈值</menu-item> <menu-item @click.prevent="createThreshold">[添加阈值]</menu-item>
</first-menu> </first-menu>
<p class="comment" v-if="thresholds.length == 0">暂时还没有设置阈值。</p> <p class="comment" v-if="thresholds.length == 0">暂时还没有设置阈值。</p>

View File

@@ -26,6 +26,7 @@ Tea.context(function () {
that.itemDescription = v.description that.itemDescription = v.description
that.itemParams = v.params that.itemParams = v.params
that.threshold.param = v.params[0].code that.threshold.param = v.params[0].code
that.paramDescription = v.params[0].description
} }
}) })
} }