mirror of
https://github.com/jumpserver/lina.git
synced 2025-07-19 09:39:04 +00:00
commit
336242dd07
@ -6,7 +6,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="table-action-right-side">
|
<div class="table-action-right-side">
|
||||||
<!-- <el-input v-if="hasSearch" v-model="keyword" suffix-icon="el-icon-search" :placeholder="$tc('Search')" class="right-side-item action-search" size="small" clearable @change="handleSearch" @input="handleSearch" />-->
|
<!-- <el-input v-if="hasSearch" v-model="keyword" suffix-icon="el-icon-search" :placeholder="$tc('Search')" class="right-side-item action-search" size="small" clearable @change="handleSearch" @input="handleSearch" />-->
|
||||||
<TagSearch v-if="hasSearch" class="right-side-item action-search" :filter-fields="tagSearch" @tagSearch="handleTagSearch" />
|
<TagSearch v-if="hasSearch" class="right-side-item action-search" :tag-search="tagSearch" @tagSearch="handleTagSearch" />
|
||||||
<ActionsGroup :is-fa="true" :actions="defaultRightSideActions" class="right-side-actions right-side-item" @actionClick="handleActionClick" />
|
<ActionsGroup :is-fa="true" :actions="defaultRightSideActions" class="right-side-actions right-side-item" @actionClick="handleActionClick" />
|
||||||
</div>
|
</div>
|
||||||
</slot>
|
</slot>
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
<i class="el-icon-arrow-down el-icon--right" />
|
<i class="el-icon-arrow-down el-icon--right" />
|
||||||
</span>
|
</span>
|
||||||
<el-dropdown-menu slot="dropdown">
|
<el-dropdown-menu slot="dropdown">
|
||||||
<el-dropdown-item v-for="option in filterFields" :key="option.key" :command="option.key" :value="option.label" :name="option.key">{{ option.label }}</el-dropdown-item>
|
<el-dropdown-item v-for="option in tagSearch" :key="option.key" :command="option.key" :value="option.label" :name="option.key">{{ option.label }}</el-dropdown-item>
|
||||||
</el-dropdown-menu>
|
</el-dropdown-menu>
|
||||||
</el-dropdown>
|
</el-dropdown>
|
||||||
<el-tag v-for="(v, k) in filterTags" :key="k" :name="k" closable size="small" class="fieldtag" type="info" @close="handleTagClose(k)">
|
<el-tag v-for="(v, k) in filterTags" :key="k" :name="k" closable size="small" class="fieldtag" type="info" @close="handleTagClose(k)">
|
||||||
@ -20,7 +20,7 @@
|
|||||||
export default {
|
export default {
|
||||||
name: 'TagSearch',
|
name: 'TagSearch',
|
||||||
props: {
|
props: {
|
||||||
filterFields: {
|
tagSearch: {
|
||||||
type: Array,
|
type: Array,
|
||||||
default() {
|
default() {
|
||||||
return [
|
return [
|
||||||
@ -48,7 +48,7 @@ export default {
|
|||||||
computed: {
|
computed: {
|
||||||
// eslint-disable-next-line vue/return-in-computed-property
|
// eslint-disable-next-line vue/return-in-computed-property
|
||||||
filterLabel() {
|
filterLabel() {
|
||||||
for (const field of this.filterFields) {
|
for (const field of this.tagSearch) {
|
||||||
if (field.key === this.filterKey) {
|
if (field.key === this.filterKey) {
|
||||||
return field.label
|
return field.label
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user