mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-12-10 00:00:26 +08:00
运行日志可以使用集群、节点筛选
This commit is contained in:
@@ -31,10 +31,18 @@
|
||||
<div class="ui field">
|
||||
<input type="text" name="keyword" style="width:10em" v-model="keyword" placeholder="关键词"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="ui fields inline" style="margin-top: 0.5em">
|
||||
<div class="ui field">
|
||||
<node-cluster-combo-box :v-cluster-id="clusterId" @change="changeCluster"></node-cluster-combo-box>
|
||||
</div>
|
||||
<div class="ui field" v-if="clusterId > 0">
|
||||
<node-combo-box :v-cluster-id="clusterId" :v-node-id="nodeId"></node-combo-box>
|
||||
</div>
|
||||
<div class="ui field">
|
||||
<button type="submit" class="ui button">查询</button>
|
||||
</div>
|
||||
<div class="ui field" v-if="dayFrom.length > 0 || dayTo.length > 0 || keyword.length > 0 || level.length > 0 || tag.length > 0">
|
||||
<div class="ui field" v-if="dayFrom.length > 0 || dayTo.length > 0 || keyword.length > 0 || level.length > 0 || tag.length > 0 || clusterId > 0 || nodeId > 0">
|
||||
<a :href="'/clusters/logs?type=' + type">[清除条件]</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -38,4 +38,8 @@ Tea.context(function () {
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
this.changeCluster = function (clusterId) {
|
||||
this.clusterId = clusterId
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user