mirror of
				https://github.com/TeaOSLab/EdgeAdmin.git
				synced 2025-11-04 13:10:26 +08:00 
			
		
		
		
	实现DNS域名验证
This commit is contained in:
		@@ -2451,7 +2451,7 @@ Vue.component("ns-cluster-selector", {
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
Vue.component("ns-cluster-combo-box", {
 | 
			
		||||
	props: ["v-cluster-id"],
 | 
			
		||||
	props: ["v-cluster-id", "name"],
 | 
			
		||||
	data: function () {
 | 
			
		||||
		let that = this
 | 
			
		||||
		Tea.action("/ns/clusters/options")
 | 
			
		||||
@@ -2459,8 +2459,16 @@ Vue.component("ns-cluster-combo-box", {
 | 
			
		||||
			.success(function (resp) {
 | 
			
		||||
				that.clusters = resp.data.clusters
 | 
			
		||||
			})
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		let inputName = "clusterId"
 | 
			
		||||
		if (this.name != null && this.name.length > 0) {
 | 
			
		||||
			inputName = this.name
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		return {
 | 
			
		||||
			clusters: []
 | 
			
		||||
			clusters: [],
 | 
			
		||||
			inputName: inputName
 | 
			
		||||
		}
 | 
			
		||||
	},
 | 
			
		||||
	methods: {
 | 
			
		||||
@@ -2473,7 +2481,7 @@ Vue.component("ns-cluster-combo-box", {
 | 
			
		||||
		}
 | 
			
		||||
	},
 | 
			
		||||
	template: `<div v-if="clusters.length > 0" style="min-width: 10.4em">
 | 
			
		||||
	<combo-box title="集群" placeholder="集群名称" :v-items="clusters" name="clusterId" :v-value="vClusterId" @change="change"></combo-box>
 | 
			
		||||
	<combo-box title="集群" placeholder="集群名称" :v-items="clusters" :name="inputName" :v-value="vClusterId" @change="change"></combo-box>
 | 
			
		||||
</div>`
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user