mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-26 04:00:32 +08:00
33 lines
677 B
JavaScript
33 lines
677 B
JavaScript
Tea.context(function () {
|
|
this.createAccount = function () {
|
|
teaweb.popup(".createPopup", {
|
|
height: "24em",
|
|
callback: function () {
|
|
teaweb.success("保存成功", function () {
|
|
teaweb.reload()
|
|
})
|
|
}
|
|
})
|
|
}
|
|
|
|
this.updateAccount = function (accountId) {
|
|
teaweb.popup(".updatePopup?accountId=" + accountId, {
|
|
height: "24em",
|
|
callback: function () {
|
|
teaweb.success("保存成功", function () {
|
|
teaweb.reload()
|
|
})
|
|
}
|
|
})
|
|
}
|
|
|
|
this.deleteAccount = function (accountId) {
|
|
teaweb.confirm("确定要删除此账号吗?", function () {
|
|
this.$post(".delete")
|
|
.params({
|
|
accountId: accountId
|
|
})
|
|
.refresh()
|
|
})
|
|
}
|
|
}) |