Skip to content

Commit

Permalink
feat: op服务实例新增地址模糊匹配 #2795
Browse files Browse the repository at this point in the history
  • Loading branch information
lannoy0523 authored Dec 3, 2024
1 parent aa25852 commit a5acb9a
Showing 1 changed file with 9 additions and 3 deletions.
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

0 comments on commit a5acb9a

Please sign in to comment.