优化域名服务相关功能

This commit is contained in:
刘祥超
2021-06-01 16:42:25 +08:00
parent d834c2517a
commit 201c3e2f97
15 changed files with 204 additions and 41 deletions

View File

@@ -14,12 +14,14 @@
<td class="title">所属集群 *</td>
<td>
<ns-cluster-selector></ns-cluster-selector>
<p class="comment">需要部署域名服务的集群。</p>
</td>
</tr>
<tr>
<td>所属用户</td>
<td>
<ns-user-selector></ns-user-selector>
<p class="comment">当前域名所属的平台用户。</p>
</td>
</tr>
</table>

View File

@@ -26,7 +26,7 @@
<tr>
<td>记录值</td>
<td>
<input type="text" name="value" maxlength="1024"/>
<input type="text" name="value" maxlength="512"/>
</td>
</tr>
<tr>

View File

@@ -1,6 +1,7 @@
Tea.context(function () {
this.createRecord = function () {
teaweb.popup("/ns/domains/records/createPopup?domainId=" + this.domain.id, {
height: "32em",
callback: function () {
teaweb.success("保存成功", function () {
teaweb.reload()
@@ -11,6 +12,7 @@ Tea.context(function () {
this.updateRecord = function (recordId) {
teaweb.popup("/ns/domains/records/updatePopup?recordId=" + recordId, {
height: "32em",
callback: function () {
teaweb.success("保存成功", function () {
teaweb.reload()

View File

@@ -26,7 +26,7 @@
<tr>
<td>记录值</td>
<td>
<input type="text" name="value" maxlength="1024" v-model="record.value"/>
<input type="text" name="value" maxlength="512" v-model="record.value"/>
</td>
</tr>
<tr>

View File

@@ -8,19 +8,21 @@
<tr>
<td>域名 *</td>
<td>
<input type="text" name="name" maxlength="255" ref="focus" v-model="domain.name"/>
{{domain.name}}
</td>
</tr>
<tr>
<td class="title">所属集群 *</td>
<td>
<ns-cluster-selector :v-cluster-id="domain.clusterId"></ns-cluster-selector>
<p class="comment">需要部署域名服务的集群。</p>
</td>
</tr>
<tr>
<td>所属用户</td>
<td>
<ns-user-selector :v-user-id="domain.userId"></ns-user-selector>
<p class="comment">当前域名所属的平台用户。</p>
</td>
</tr>
<tr>