<span
:title="taskingRw.scaningIps"
v-if="taskingRw.status == 1"
style="margin-left: 10px"
>
正在检测存活IP: {{ taskingRw.scaningIps | scanIps }}
</span>
filters:{
scanIps:function(value) {
//后端返回的字符串,先分割成字符
const lists=value.split(',')
if (!value) return "";
//大于五个的后面成省略号
if (lists.length > 5) {
return lists.slice(0, 5).toString() + "...";
}
return value;
}
}