实现证书管理

This commit is contained in:
刘祥超
2020-09-30 17:46:38 +08:00
parent c75e94354a
commit 10666cf56b
35 changed files with 912 additions and 193 deletions

View File

@@ -0,0 +1,33 @@
Tea.context(function () {
// 上传证书
this.uploadCert = function () {
teaweb.popup("/servers/components/ssl/uploadPopup", {
height: "28em",
callback: function () {
teaweb.success("上传成功", function () {
window.location.reload()
})
}
})
}
// 删除证书
this.deleteCert = function (certId) {
let that = this
teaweb.confirm("确定要删除此证书吗?", function () {
that.$post("/servers/components/ssl/delete")
.params({
certId: certId
})
.refresh()
})
}
// 查看证书
this.viewCert = function (certId) {
teaweb.popup("/servers/components/ssl/certPopup?certId=" + certId, {
height: "28em",
width: "48em"
})
}
})