Archived
[SSL证书]选择证书表格中显示是否已经选择
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -35,7 +35,8 @@
|
||||
<span class="ui label green tiny basic" v-else>有效中</span>
|
||||
</td>
|
||||
<td>
|
||||
<a href="" @click.prevent="selectCert(cert)">选择</a>
|
||||
<a href="" @click.prevent="selectCert(cert)" v-if="!certInfos[index].isSelected">选择</a>
|
||||
<span v-else>已选</span>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
Reference in New Issue
Block a user