mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-06 06:40:27 +08:00
运行日志可以使用集群、节点筛选
This commit is contained in:
20
web/public/js/components/node/node-combo-box.js
Normal file
20
web/public/js/components/node/node-combo-box.js
Normal file
@@ -0,0 +1,20 @@
|
||||
Vue.component("node-combo-box", {
|
||||
props: ["v-cluster-id", "v-node-id"],
|
||||
data: function () {
|
||||
let that = this
|
||||
Tea.action("/clusters/nodeOptions")
|
||||
.params({
|
||||
clusterId: this.vClusterId
|
||||
})
|
||||
.post()
|
||||
.success(function (resp) {
|
||||
that.nodes = resp.data.nodes
|
||||
})
|
||||
return {
|
||||
nodes: []
|
||||
}
|
||||
},
|
||||
template: `<div v-if="nodes.length > 0">
|
||||
<combo-box title="节点" placeholder="节点名称" :v-items="nodes" name="nodeId" :v-value="vNodeId"></combo-box>
|
||||
</div>`
|
||||
})
|
||||
Reference in New Issue
Block a user