mirror of
				https://github.com/TeaOSLab/EdgeAdmin.git
				synced 2025-11-04 05:00:25 +08:00 
			
		
		
		
	实现基础的IP地址阈值
This commit is contained in:
		@@ -30,8 +30,17 @@
 | 
			
		||||
                    <input type="text" name="name" maxlength="50"/>
 | 
			
		||||
                </td>
 | 
			
		||||
            </tr>
 | 
			
		||||
            <tr>
 | 
			
		||||
                <td>在线状态</td>
 | 
			
		||||
                <td>
 | 
			
		||||
                    <select class="ui dropdown auto-width" name="isUp">
 | 
			
		||||
                        <option value="1">在线</option>
 | 
			
		||||
                        <option value="0">离线</option>
 | 
			
		||||
                    </select>
 | 
			
		||||
                </td>
 | 
			
		||||
            </tr>
 | 
			
		||||
            <tr v-if="teaIsPlus && supportThresholds">
 | 
			
		||||
                <td>上线阈值</td>
 | 
			
		||||
                <td>阈值设置</td>
 | 
			
		||||
                <td>
 | 
			
		||||
                    <node-ip-address-thresholds-box></node-ip-address-thresholds-box>
 | 
			
		||||
                </td>
 | 
			
		||||
 
 | 
			
		||||
@@ -41,8 +41,17 @@
 | 
			
		||||
                    <input type="text" name="name" maxlength="50" v-model="address.name"/>
 | 
			
		||||
                </td>
 | 
			
		||||
            </tr>
 | 
			
		||||
            <tr>
 | 
			
		||||
                <td>在线状态</td>
 | 
			
		||||
                <td>
 | 
			
		||||
                    <select class="ui dropdown auto-width" name="isUp" v-model="address.isUp">
 | 
			
		||||
                        <option value="1">在线</option>
 | 
			
		||||
                        <option value="0">离线</option>
 | 
			
		||||
                    </select>
 | 
			
		||||
                </td>
 | 
			
		||||
            </tr>
 | 
			
		||||
            <tr v-if="teaIsPlus && supportThresholds">
 | 
			
		||||
                <td>上线阈值</td>
 | 
			
		||||
                <td>阈值设置</td>
 | 
			
		||||
                <td>
 | 
			
		||||
                    <node-ip-address-thresholds-box :v-thresholds="address.thresholds"></node-ip-address-thresholds-box>
 | 
			
		||||
                </td>
 | 
			
		||||
 
 | 
			
		||||
@@ -2,4 +2,7 @@ Tea.context(function () {
 | 
			
		||||
	this.success = NotifyPopup;
 | 
			
		||||
 | 
			
		||||
	this.address = window.parent.UPDATING_NODE_IP_ADDRESS
 | 
			
		||||
});
 | 
			
		||||
	if (this.address != null) {
 | 
			
		||||
		this.address.isUp = (this.address.isUp ? 1 : 0)
 | 
			
		||||
	}
 | 
			
		||||
})
 | 
			
		||||
		Reference in New Issue
	
	Block a user