实现公用的统计指标

This commit is contained in:
刘祥超
2021-07-19 15:23:20 +08:00
parent 3360f2fc08
commit de2337afe7
15 changed files with 47 additions and 6 deletions

View File

@@ -42,6 +42,13 @@
</select>
</td>
</tr>
<tr>
<td>是否公用</td>
<td>
<checkbox name="isPublic" checked="checked"></checkbox>
<p class="comment">选中表示所有集群自动使用此指标。</p>
</td>
</tr>
</table>
<submit-btn></submit-btn>
</form>

View File

@@ -23,7 +23,11 @@
</tr>
</thead>
<tr v-for="item in items">
<td>{{item.name}}</td>
<td>{{item.name}}
<div style="margin-top: 0.3em" v-if="item.isPublic">
<span class="ui label olive tiny basic">公用</span>
</div>
</td>
<td>
<div v-if="item.keys != null" v-for="key in item.keys" style="margin-bottom: 0.3em; margin-top: 0.3em"><metric-key-label :v-key="key"></metric-key-label></div>
</td>

View File

@@ -30,4 +30,11 @@
<span class="ui label small basic">{{item.valueName}}</span>
</td>
</tr>
<tr>
<td>是否公用</td>
<td>
<span class="green" v-if="item.isPublic">公用</span>
<span class="disabled" v-else>非公用</span>
</td>
</tr>
</table>

View File

@@ -44,6 +44,13 @@
</select>
</td>
</tr>
<tr>
<td>是否公用</td>
<td>
<checkbox name="isPublic" v-model="item.isPublic"></checkbox>
<p class="comment">选中表示所有集群自动使用此指标。</p>
</td>
</tr>
<tr>
<td>是否启用</td>
<td>