mirror of
				https://github.com/TeaOSLab/EdgeAdmin.git
				synced 2025-11-04 05:00:25 +08:00 
			
		
		
		
	简化IP名单中创建IP操作/支持IP以CIDR方式显示
This commit is contained in:
		@@ -22,36 +22,11 @@
 | 
			
		||||
        </tr>
 | 
			
		||||
 | 
			
		||||
        <!-- IPv4 -->
 | 
			
		||||
        <tbody v-if="type == 'ipv4'">
 | 
			
		||||
        <tbody v-if="type != 'all'">
 | 
			
		||||
            <tr>
 | 
			
		||||
                <td>开始IP *</td>
 | 
			
		||||
                <td>IP或IP段 *</td>
 | 
			
		||||
                <td>
 | 
			
		||||
                    <input type="text" name="ipFrom" maxlength="64" placeholder="x.x.x.x" ref="focus" v-model="item.ipFrom"/>
 | 
			
		||||
                </td>
 | 
			
		||||
            </tr>
 | 
			
		||||
            <tr>
 | 
			
		||||
                <td>结束IP</td>
 | 
			
		||||
                <td>
 | 
			
		||||
                    <input type="text" name="ipTo" maxlength="64" placeholder="x.x.x.x" v-model="item.ipTo"/>
 | 
			
		||||
                    <p class="comment">只有表示IP段的时候才需要填写此项。</p>
 | 
			
		||||
                </td>
 | 
			
		||||
            </tr>
 | 
			
		||||
        </tbody>
 | 
			
		||||
 | 
			
		||||
        <!-- IPv6 -->
 | 
			
		||||
        <tbody v-if="type == 'ipv6'">
 | 
			
		||||
            <tr>
 | 
			
		||||
                <td>开始IP *</td>
 | 
			
		||||
                <td>
 | 
			
		||||
                    <input type="text" name="ipFrom" maxlength="64" placeholder="x:x:x:x:x:x:x:x" ref="focus" v-model="item.ipFrom"/>
 | 
			
		||||
                    <p class="comment">IPv6地址,比如 1406:3c00:0:2409:13:58:103:15</p>
 | 
			
		||||
                </td>
 | 
			
		||||
            </tr>
 | 
			
		||||
            <tr>
 | 
			
		||||
                <td>结束IP</td>
 | 
			
		||||
                <td>
 | 
			
		||||
                    <input type="text" name="ipTo" maxlength="64" placeholder="x:x:x:x:x:x:x:x" ref="focus" v-model="item.ipTo"/>
 | 
			
		||||
                    <p class="comment">只有表示IP段的时候才需要填写此项。</p>
 | 
			
		||||
                    <input type="text" name="value" maxlength="64" placeholder="x.x.x.x" ref="focus" v-model="item.value" style="width: 20em"/>
 | 
			
		||||
                </td>
 | 
			
		||||
            </tr>
 | 
			
		||||
        </tbody>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user