mirror of
				https://github.com/TeaOSLab/EdgeAdmin.git
				synced 2025-11-04 05:00:25 +08:00 
			
		
		
		
	实现基础的阈值设置
This commit is contained in:
		@@ -0,0 +1,37 @@
 | 
			
		||||
{$layout}
 | 
			
		||||
{$template "/left_menu"}
 | 
			
		||||
 | 
			
		||||
<div class="right-box">
 | 
			
		||||
    <first-menu>
 | 
			
		||||
        <menu-item @click.prevent="createThreshold">添加阈值</menu-item>
 | 
			
		||||
    </first-menu>
 | 
			
		||||
 | 
			
		||||
    <p class="comment" v-if="thresholds.length == 0">暂时还没有设置阈值。</p>
 | 
			
		||||
    <table class="ui table selectable" v-if="thresholds.length > 0">
 | 
			
		||||
        <thead>
 | 
			
		||||
            <tr>
 | 
			
		||||
                <th>监控项</th>
 | 
			
		||||
                <th>参数</th>
 | 
			
		||||
                <th>操作符</th>
 | 
			
		||||
                <th>对比值</th>
 | 
			
		||||
                <th>统计时间段</th>
 | 
			
		||||
                <th class="two wide">状态</th>
 | 
			
		||||
                <th class="two op">操作</th>
 | 
			
		||||
            </tr>
 | 
			
		||||
        </thead>
 | 
			
		||||
        <tr v-for="threshold in thresholds">
 | 
			
		||||
            <td>{{threshold.itemName}}</td>
 | 
			
		||||
            <td>{{threshold.paramName}}</td>
 | 
			
		||||
            <td>{{threshold.operatorName}}</td>
 | 
			
		||||
            <td>{{threshold.itemName}}</td>
 | 
			
		||||
            <td>{{threshold.duration}}{{threshold.durationUnitName}}</td>
 | 
			
		||||
            <td>
 | 
			
		||||
                <label-on :v-is-on="threshold.isOn"></label-on>
 | 
			
		||||
            </td>
 | 
			
		||||
            <td>
 | 
			
		||||
                <a href="" @click.prevent="updateThreshold(threshold.id)">修改</a>  
 | 
			
		||||
                <a href="" @click.prevent="deleteThreshold(threshold.id)">删除</a>
 | 
			
		||||
            </td>
 | 
			
		||||
        </tr>
 | 
			
		||||
    </table>
 | 
			
		||||
</div>
 | 
			
		||||
		Reference in New Issue
	
	Block a user