mirror of
				https://github.com/TeaOSLab/EdgeAdmin.git
				synced 2025-11-04 05:00:25 +08:00 
			
		
		
		
	集群DNS子域名可以随机生成
This commit is contained in:
		@@ -20,11 +20,11 @@
 | 
			
		||||
				<td class="title">DNS子域名 *</td>
 | 
			
		||||
				<td>
 | 
			
		||||
					<div class="ui input right labeled">
 | 
			
		||||
						<input type="text" name="dnsName" maxlength="64" style="width:10em" v-model="dnsName"/>
 | 
			
		||||
						<input type="text" name="dnsName" maxlength="64" style="width:12em" v-model="dnsName"/>
 | 
			
		||||
                        <span class="ui label" v-if="domain != null && domain.name != null && domain.name.length > 0">.{{domain.name}}</span>
 | 
			
		||||
                        <span class="ui label" v-else>.主域名</span>
 | 
			
		||||
					</div>
 | 
			
		||||
					<p class="comment">当前集群的子域名,和主域名一起组成集群节点的子域名。</p>
 | 
			
		||||
					<p class="comment">当前集群的子域名,和主域名一起组成集群节点的子域名。<a href="" @click.prevent="generateRandName()">[随机生成]</a>。</p>
 | 
			
		||||
				</td>
 | 
			
		||||
			</tr>
 | 
			
		||||
            <tr>
 | 
			
		||||
 
 | 
			
		||||
@@ -10,4 +10,11 @@ Tea.context(function () {
 | 
			
		||||
	this.addCnameRecord = function (name) {
 | 
			
		||||
		this.$refs.cnameRecords.addValue(name)
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	this.generateRandName = function () {
 | 
			
		||||
		this.$post(".randomName")
 | 
			
		||||
			.success(function (resp) {
 | 
			
		||||
				this.dnsName = resp.data.name
 | 
			
		||||
			})
 | 
			
		||||
	}
 | 
			
		||||
})
 | 
			
		||||
		Reference in New Issue
	
	Block a user