优化界面

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 { if resp.IpRegionMap != nil {
for ip, region := range resp.IpRegionMap { for ip, region := range resp.IpRegionMap {
if len(region.Isp) > 0 {
region.Summary += " | " + region.Isp
}
regionMap[ip] = region.Summary regionMap[ip] = region.Summary
} }
} }

View File

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

View File

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

View File

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