前端页面
This commit is contained in:
24
EdgeAdmin/web/views/@default/httpdns/apps/domains.js
Normal file
24
EdgeAdmin/web/views/@default/httpdns/apps/domains.js
Normal file
@@ -0,0 +1,24 @@
|
||||
Tea.context(function () {
|
||||
if (typeof this.domains == "undefined") {
|
||||
this.domains = [];
|
||||
}
|
||||
|
||||
this.bindDomain = function () {
|
||||
teaweb.popup("/httpdns/apps/domains/createPopup?appId=" + this.app.id, {
|
||||
height: "24em",
|
||||
width: "46em",
|
||||
title: "添加域名"
|
||||
});
|
||||
};
|
||||
|
||||
this.deleteDomain = function (domainId) {
|
||||
let that = this;
|
||||
teaweb.confirm("确定要解绑这个域名吗?", function () {
|
||||
that.$post("/httpdns/apps/domains/delete")
|
||||
.params({
|
||||
domainId: domainId
|
||||
})
|
||||
.refresh();
|
||||
});
|
||||
};
|
||||
});
|
||||
Reference in New Issue
Block a user