|
48 | 48 | </p> |
49 | 49 |
|
50 | 50 | <a-form @submit.prevent="handleSslFormSubmit" ref="sslForm" :form="form"> |
51 | | - <a-form-item :label="$t('label.root.certificate')" :required="true"> |
| 51 | + <a-form-item :required="true"> |
| 52 | + <span slot="label"> |
| 53 | + {{ $t('label.root.certificate') }} |
| 54 | + <a-tooltip placement="bottom" :title="apiParams.name.description"> |
| 55 | + <a-icon type="info-circle" style="color: rgba(0,0,0,.45)" /> |
| 56 | + </a-tooltip> |
| 57 | + </span> |
52 | 58 | <a-textarea |
53 | 59 | id="rootCert" |
54 | 60 | rows="2" |
|
66 | 72 | <a-form-item |
67 | 73 | v-for="(item, index) in intermediateCertificates" |
68 | 74 | :key="`key-${index}`" |
69 | | - class="intermediate-certificate" |
70 | | - :label="$t('label.intermediate.certificate') + ` ${index + 1}`"> |
| 75 | + class="intermediate-certificate"> |
| 76 | + <span slot="label"> |
| 77 | + {{ $t('label.intermediate.certificate') + ` ${index + 1} ` }} |
| 78 | + <a-tooltip placement="bottom" :title="apiParams.id.description"> |
| 79 | + <a-icon type="info-circle" style="color: rgba(0,0,0,.45)" /> |
| 80 | + </a-tooltip> |
| 81 | + </span> |
71 | 82 | <a-textarea |
72 | 83 | :id="`intermediateCert${index}`" |
73 | 84 | rows="2" |
|
88 | 99 | </a-button> |
89 | 100 | </a-form-item> |
90 | 101 |
|
91 | | - <a-form-item :label="$t('label.server.certificate')" :required="true"> |
| 102 | + <a-form-item :required="true"> |
| 103 | + <span slot="label"> |
| 104 | + {{ $t('label.server.certificate') }} |
| 105 | + <a-tooltip placement="bottom" :title="apiParams.certificate.description"> |
| 106 | + <a-icon type="info-circle" style="color: rgba(0,0,0,.45)" /> |
| 107 | + </a-tooltip> |
| 108 | + </span> |
92 | 109 | <a-textarea |
93 | 110 | id="serverCert" |
94 | 111 | rows="2" |
|
101 | 118 | ></a-textarea> |
102 | 119 | </a-form-item> |
103 | 120 |
|
104 | | - <a-form-item :label="$t('label.pkcs.private.certificate')" :required="true"> |
| 121 | + <a-form-item :required="true"> |
| 122 | + <span slot="label"> |
| 123 | + {{ $t('label.pkcs.private.certificate') }} |
| 124 | + <a-tooltip placement="bottom" :title="apiParams.privatekey.description"> |
| 125 | + <a-icon type="info-circle" style="color: rgba(0,0,0,.45)" /> |
| 126 | + </a-tooltip> |
| 127 | + </span> |
105 | 128 | <a-textarea |
106 | 129 | id="pkcsKey" |
107 | 130 | rows="2" |
|
114 | 137 | ></a-textarea> |
115 | 138 | </a-form-item> |
116 | 139 |
|
117 | | - <a-form-item :label="$t('label.domain.suffix')" :required="true"> |
| 140 | + <a-form-item :required="true"> |
| 141 | + <span slot="label"> |
| 142 | + {{ $t('label.domain.suffix') }} |
| 143 | + <a-tooltip placement="bottom" :title="apiParams.domainsuffix.description"> |
| 144 | + <a-icon type="info-circle" style="color: rgba(0,0,0,.45)" /> |
| 145 | + </a-tooltip> |
| 146 | + </span> |
118 | 147 | <a-input |
119 | 148 | id="dnsSuffix" |
120 | 149 | :placeholder="$t('label.domain.suffix')" |
@@ -184,6 +213,11 @@ export default { |
184 | 213 | }, |
185 | 214 | beforeCreate () { |
186 | 215 | this.form = this.$form.createForm(this) |
| 216 | + this.apiParams = {} |
| 217 | + var apiConfig = this.$store.getters.apis.uploadCustomCertificate || {} |
| 218 | + apiConfig.params.forEach(param => { |
| 219 | + this.apiParams[param.name] = param |
| 220 | + }) |
187 | 221 | }, |
188 | 222 | mounted () { |
189 | 223 | this.fetchData() |
|
0 commit comments