[SSL证书]选择证书表格中显示是否已经选择

This commit is contained in:
GoEdgeLab
2020-12-04 09:25:35 +08:00
parent 8112bac11f
commit 1dad8af0c3
3 changed files with 22 additions and 4 deletions

View File

@@ -95,7 +95,13 @@ Vue.component("ssl-config-box", {
// 选择证书
selectCert: function () {
let that = this
teaweb.popup("/servers/certs/selectPopup", {
let selectedCertIds = []
if (this.policy != null && this.policy.certs.length > 0) {
this.policy.certs.forEach(function (cert) {
selectedCertIds.push(cert.id.toString())
})
}
teaweb.popup("/servers/certs/selectPopup?selectedCertIds=" + selectedCertIds, {
width: "50em",
height: "30em",
callback: function (resp) {