Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat:op中客户端管理新增是否在线的筛选 #1478 #1480

Merged
merged 2 commits into from
Nov 23, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/frontend/devops-op/src/views/node/FileSystem.vue
Original file line number Diff line number Diff line change
@@ -52,7 +52,7 @@
<el-table-column prop="version" label="版本" />
<el-table-column prop="os" label="操作系统" />
<el-table-column prop="arch" label="架构" />
<el-table-column prop="online" label="是否在线">
<el-table-column prop="online" label="是否在线" :filters="[{ text: '是', value: true }, { text: '否', value: false }]" :filter-method="filterFunction">
<template slot-scope="scope">
{{ scope.row.online ? "是":"否" }}
</template>
@@ -183,6 +183,9 @@ export default {
},
formatNormalDate(data) {
return formatNormalDate(data)
},
filterFunction(value, row) {
return row.online === value
}
}
}