mirror of
				https://github.com/TeaOSLab/EdgeAdmin.git
				synced 2025-11-04 13:10:26 +08:00 
			
		
		
		
	DNS节点增加在线状态通知
This commit is contained in:
		@@ -55,6 +55,7 @@ func (this *IndexAction) RunGet(params struct{}) {
 | 
			
		||||
 | 
			
		||||
		messages = append(messages, maps.Map{
 | 
			
		||||
			"id":       message.Id,
 | 
			
		||||
			"role":     message.Role,
 | 
			
		||||
			"isRead":   message.IsRead,
 | 
			
		||||
			"body":     message.Body,
 | 
			
		||||
			"level":    message.Level,
 | 
			
		||||
 
 | 
			
		||||
@@ -112,7 +112,7 @@ func (this *IndexAction) RunGet(params struct {
 | 
			
		||||
				"error":      node.InstallStatus.Error,
 | 
			
		||||
			},
 | 
			
		||||
			"status": maps.Map{
 | 
			
		||||
				"isActive":     status.IsActive,
 | 
			
		||||
				"isActive":     node.IsActive,
 | 
			
		||||
				"updatedAt":    status.UpdatedAt,
 | 
			
		||||
				"hostname":     status.Hostname,
 | 
			
		||||
				"cpuUsage":     status.CPUUsage,
 | 
			
		||||
 
 | 
			
		||||
@@ -41,11 +41,13 @@ Vue.component("message-row", {
 | 
			
		||||
			<strong>{{message.datetime}}</strong>
 | 
			
		||||
			<span v-if="message.cluster != null && message.cluster.id != null">
 | 
			
		||||
				<span> | </span>
 | 
			
		||||
				<a :href="'/clusters/cluster?clusterId=' + message.cluster.id" target="_top">集群:{{message.cluster.name}}</a>
 | 
			
		||||
				<a :href="'/clusters/cluster?clusterId=' + message.cluster.id" target="_top" v-if="message.role == 'node'">集群:{{message.cluster.name}}</a>
 | 
			
		||||
				<a :href="'/ns/clusters/cluster?clusterId=' + message.cluster.id" target="_top" v-if="message.role == 'dns'">DNS集群:{{message.cluster.name}}</a>
 | 
			
		||||
			</span>
 | 
			
		||||
			<span v-if="message.node != null && message.node.id != null">
 | 
			
		||||
				<span> | </span>
 | 
			
		||||
				<a :href="'/clusters/cluster/node?clusterId=' + message.cluster.id + '&nodeId=' + message.node.id" target="_top">节点:{{message.node.name}}</a>
 | 
			
		||||
				<a :href="'/clusters/cluster/node?clusterId=' + message.cluster.id + '&nodeId=' + message.node.id" target="_top" v-if="message.role == 'node'">节点:{{message.node.name}}</a>
 | 
			
		||||
				<a :href="'/ns/clusters/cluster/node?clusterId=' + message.cluster.id + '&nodeId=' + message.node.id" target="_top" v-if="message.role == 'dns'">DNS节点:{{message.node.name}}</a>
 | 
			
		||||
			</span>
 | 
			
		||||
			<a href=""  style="position: absolute; right: 1em" @click.prevent="readMessage(message.id)" title="标为已读"><i class="icon check"></i></a>
 | 
			
		||||
		</td>
 | 
			
		||||
@@ -73,6 +75,8 @@ Vue.component("message-row", {
 | 
			
		||||
			<div v-if="message.type == 'SSLCertACMETaskSuccess'" style="margin-top: 0.8em">
 | 
			
		||||
				<a href="" @click.prevent="viewCert(params.certId)" target="_top">查看证书</a>  |  <a :href="'/servers/certs/acme'" v-if="params != null && params.acmeTaskId > 0" target="_top">查看任务»</a>
 | 
			
		||||
			</div>
 | 
			
		||||
			
 | 
			
		||||
			<!-- 证书续期失败 -->
 | 
			
		||||
			<div v-if="message.type == 'SSLCertACMETaskFailed'" style="margin-top: 0.8em">
 | 
			
		||||
				<a href="" @click.prevent="viewCert(params.certId)" target="_top">查看证书</a>  |  <a :href="'/servers/certs/acme'" v-if="params != null && params.acmeTaskId > 0" target="_top">查看任务»</a>
 | 
			
		||||
			</div>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user