EdgeDNS:访问日志增加集群和记录类型筛选

This commit is contained in:
GoEdgeLab
2022-07-27 20:20:04 +08:00
parent 54a4b9058a
commit 2fa00799d4
4 changed files with 90 additions and 8 deletions

View File

@@ -0,0 +1,26 @@
Vue.component("ns-cluster-combo-box", {
props: ["v-cluster-id"],
data: function () {
let that = this
Tea.action("/ns/clusters/options")
.post()
.success(function (resp) {
that.clusters = resp.data.clusters
})
return {
clusters: []
}
},
methods: {
change: function (item) {
if (item == null) {
this.$emit("change", 0)
} else {
this.$emit("change", item.value)
}
}
},
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>
</div>`
})