mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-03 20:40:26 +08:00
优化申请证书界面
This commit is contained in:
@@ -15,7 +15,11 @@ func (this *CreatePopupAction) Init() {
|
|||||||
this.Nav("", "", "")
|
this.Nav("", "", "")
|
||||||
}
|
}
|
||||||
|
|
||||||
func (this *CreatePopupAction) RunGet(params struct{}) {
|
func (this *CreatePopupAction) RunGet(params struct {
|
||||||
|
ProviderCode string
|
||||||
|
}) {
|
||||||
|
this.Data["providerCode"] = params.ProviderCode
|
||||||
|
|
||||||
// 服务商
|
// 服务商
|
||||||
providersResp, err := this.RPC().ACMEProviderRPC().FindAllACMEProviders(this.AdminContext(), &pb.FindAllACMEProvidersRequest{})
|
providersResp, err := this.RPC().ACMEProviderRPC().FindAllACMEProviders(this.AdminContext(), &pb.FindAllACMEProvidersRequest{})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
@@ -9,6 +9,7 @@
|
|||||||
<td>账号名称 *</td>
|
<td>账号名称 *</td>
|
||||||
<td>
|
<td>
|
||||||
<input type="text" name="name" maxlength="50" ref="focus" tabindex="1"/>
|
<input type="text" name="name" maxlength="50" ref="focus" tabindex="1"/>
|
||||||
|
<p class="comment">为当前账号起一个容易识别的名称。</p>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
|||||||
@@ -124,7 +124,7 @@
|
|||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>证书域名列表 *</td>
|
<td class="title">证书域名列表 *</td>
|
||||||
<td>
|
<td>
|
||||||
<values-box name="" placeholder="域名" size="30" @change="changeDomains"></values-box>
|
<values-box name="" placeholder="域名" size="30" @change="changeDomains"></values-box>
|
||||||
<p class="comment">需要申请的证书中包含的域名列表<span v-if="authType == 'dns'">,所有域名必须是同一个顶级域名</span><span v-if="authType == 'http'">使用HTTP认证方式时,域名中不能含有通配符</span>。</p>
|
<p class="comment">需要申请的证书中包含的域名列表<span v-if="authType == 'dns'">,所有域名必须是同一个顶级域名</span><span v-if="authType == 'http'">使用HTTP认证方式时,域名中不能含有通配符</span>。</p>
|
||||||
|
|||||||
@@ -27,8 +27,8 @@ Tea.context(function () {
|
|||||||
|
|
||||||
this.createUser = function () {
|
this.createUser = function () {
|
||||||
let that = this
|
let that = this
|
||||||
teaweb.popup("/servers/certs/acme/users/createPopup", {
|
teaweb.popup("/servers/certs/acme/users/createPopup?providerCode=" + this.providerCode, {
|
||||||
height: "27em",
|
height: "30em",
|
||||||
width: "44em",
|
width: "44em",
|
||||||
callback: function (resp) {
|
callback: function (resp) {
|
||||||
teaweb.successToast("创建成功")
|
teaweb.successToast("创建成功")
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
Tea.context(function () {
|
Tea.context(function () {
|
||||||
this.providerCode = ""
|
|
||||||
this.selectedProvider = null
|
this.selectedProvider = null
|
||||||
this.accounts = []
|
this.accounts = []
|
||||||
this.accountId = 0
|
this.accountId = 0
|
||||||
@@ -30,6 +29,10 @@ Tea.context(function () {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (this.providerCode.length > 0) {
|
||||||
|
this.changeProvider()
|
||||||
|
}
|
||||||
|
|
||||||
this.addAccount = function () {
|
this.addAccount = function () {
|
||||||
let that = this
|
let that = this
|
||||||
teaweb.popup("/servers/certs/acme/accounts/createPopup?providerCode=" + this.providerCode, {
|
teaweb.popup("/servers/certs/acme/accounts/createPopup?providerCode=" + this.providerCode, {
|
||||||
|
|||||||
Reference in New Issue
Block a user