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服务实例新增地址模糊匹配 #2795 #2796

Merged
merged 1 commit into from
Dec 3, 2024
Merged
Changes from all commits
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
12 changes: 9 additions & 3 deletions src/frontend/devops-op/src/views/service/Instance.vue
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
<template>
<div class="app-container">
<el-table
:data="instances"
:data="instances.filter(data => !search || (data.host+':'+data.port).includes(search))"
style="width: 100%"
>
<el-table-column
prop="id"
label="ID"
width="180"
/>
<el-table-column
prop="address"
Expand Down Expand Up @@ -53,6 +52,12 @@
</template>
</el-table-column>
<el-table-column label="操作">
<template slot="header" slot-scope="{}">
<el-input
v-model="search"
placeholder="输入关键字搜索地址"
/>
</template>
<template slot-scope="scope">
<el-button
:disabled="disableChangeInstanceStatusBtn(scope.row.status)"
Expand Down Expand Up @@ -82,7 +87,8 @@ export default {
data() {
return {
loading: true,
instances: []
instances: [],
search: ''
}
},
created() {
Expand Down
Loading