mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-19 15:30:25 +08:00
优化IPBox交互
This commit is contained in:
@@ -27,7 +27,7 @@
|
|||||||
{{ipList.name}}
|
{{ipList.name}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<a href="" @click.prevent="showBlackLists"><i class="icon angle" :class="{up: blackListsVisible, down: !blackListsVisible}"></i>添加黑名单</a>
|
<a href="" @click.prevent="showBlackLists"><i class="icon angle" :class="{up: blackListsVisible, down: !blackListsVisible}"></i>加入到黑名单</a>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr v-if="publicBlackIPLists.length > 0 && blackListsVisible">
|
<tr v-if="publicBlackIPLists.length > 0 && blackListsVisible">
|
||||||
|
|||||||
@@ -17,14 +17,17 @@ Tea.context(function () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
this.addBlackIP = function (list) {
|
this.addBlackIP = function (list) {
|
||||||
this.$post(".addIP")
|
let that = this
|
||||||
.params({
|
teaweb.confirm("确定要将此IP添加到此黑名单吗?", function () {
|
||||||
listId: list.id,
|
that.$post(".addIP")
|
||||||
ip: this.ip
|
.params({
|
||||||
})
|
listId: list.id,
|
||||||
.success(function () {
|
ip: that.ip
|
||||||
this.ipLists.push(list)
|
})
|
||||||
this.blackListsVisible = false
|
.success(function () {
|
||||||
})
|
that.ipLists.push(list)
|
||||||
|
that.blackListsVisible = false
|
||||||
|
})
|
||||||
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
Reference in New Issue
Block a user