优化界面

This commit is contained in:
刘祥超
2021-08-17 10:48:38 +08:00
parent a8f1056c3c
commit 04cea4dbd6
4 changed files with 38 additions and 26 deletions

View File

@@ -120,6 +120,9 @@ func (this *IndexAction) RunGet(params struct {
}
if resp.IpRegionMap != nil {
for ip, region := range resp.IpRegionMap {
if len(region.Isp) > 0 {
region.Summary += " | " + region.Isp
}
regionMap[ip] = region.Summary
}
}

View File

@@ -572,7 +572,8 @@ window.teaweb = {
smooth: true
}
],
animation: true
animation: true,
smooth: true
}
chart.setOption(option)
chart.resize()

View File

@@ -115,6 +115,7 @@ Tea.context(function () {
lineStyle: {
color: "#61A0A8"
},
areaStyle: {},
smooth: true
},
{

View File

@@ -14,32 +14,38 @@
<tr v-if="clusterId > 0">
<td>节点 *</td>
<td>
<div class="ui fields inline">
<div class="ui field">
<select class="ui dropdown auto-width" name="nodeId" v-model="nodeId" @change="changeNode">
<option v-for="node in nodes" :value="node.id">{{node.name}}</option>
</select>
</td>
</tr>
<tr v-if="selectedNode != null">
<td>节点IP *</td>
<td>
</div>
<div class="ui field" v-if="selectedNode != null">
&nbsp; &nbsp; 节点IP:
</div>
<div class="ui field" v-if="selectedNode != null">
<select class="ui dropdown auto-width" name="ip">
<option v-for="ip in selectedNode.addrs" :value="ip">{{ip}}</option>
</select>
</div>
</div>
</td>
</tr>
<tr>
<td class="title">域名 *</td>
<td>
<input type="text" name="domain" maxlength="200" ref="focus" placeholder="xxx.com"/>
<p class="comment">要解析的域名。</p>
</td>
</tr>
<tr>
<td>记录类型 *</td>
<td>
<div class="ui fields inline">
<div class="ui field">
<input type="text" name="domain" size="40" maxlength="200" ref="focus" placeholder="xxx.com"/>
</div>
<div class="ui field">
<select class="ui dropdown auto-width" name="type">
<option v-for="type in recordTypes" :value="type.type">{{type.type}}</option>
</select>
</div>
</div>
<p class="comment">要解析的域名和记录类型。</p>
</td>
</tr>
<tr>
@@ -57,10 +63,11 @@
<div class="reasons" v-if="result.isNetErr">
可能的原因有:
<ul>
<li>1. DNS节点没有启动</li>
<li>2. DNS节点53/udp端口没有加入到节点防火墙规则或者其他安全策略中</li>
<li>3. DNS节点IP地址填写错误</li>
<li>4. 其他原因。</li>
<li>1. DNS节点IP填写错误</li>
<li>2. DNS节点没有启动;</li>
<li>3. DNS节点53/udp端口没有加入到节点防火墙规则或者其他安全策略中</li>
<li>4. DNS节点IP地址填写错误</li>
<li>5. 其他原因。</li>
</ul>
</div>