CN-71 feat:用户,角色,i18n,操作记录列表页面 添加搜索框

This commit is contained in:
晶晶 张
2021-07-27 10:27:31 +08:00
parent 6f5016872d
commit a07d8d7a01
6 changed files with 9 additions and 12 deletions

View File

@@ -9,13 +9,14 @@
<slot name="top-tool-left"></slot>
</div>
<div class="top-tool-right">
<div style="margin-right: 10px;display: flex">
<input type="text" v-model="keyWord"/>
<button><i class="el-icon-search" @click="onsearch" ></i></button>
</div>
<!-- <el-input v-model="keyWord" value="keyWord"></el-input>
<el-button @click="onsearch" icon="el-icon-search" type="info" size="mini" style="margin-right: 10px"></el-button>-->
<div v-if="showLayout.indexOf('searchInput') > -1" class="top-tool-search margin-r-20">
<el-input
placeholder="请输入内容"
suffix-icon="el-icon-search"
v-model="keyWord" @keyup.enter.native="onsearch" size="small">
</el-input>
</div>
<slot name="top-tool-right"></slot>
<button v-if="showLayout.indexOf('elementSet') > -1" class="top-tool-btn"
@@ -105,7 +106,4 @@ export default {
}
</script>
<style>
input:focus{
outline: none;
}
</style>

View File

@@ -76,7 +76,6 @@ export default {
}
this.tableData = response.data.list
this.pageObj.total = response.data.total
this.pageObj.total = ''
// TODO 回到顶部
}
})

View File

@@ -6,7 +6,7 @@
v-model:custom-table-title="tools.customTableTitle"
:api="url"
:from="fromRoute.user"
:layout="['columnCustomize','elementSet']"
:layout="['columnCustomize','elementSet','searchInput']"
@search="search"
>
<template #top-tool-right>

View File

@@ -4,7 +4,7 @@
ref="dataList"
:api="url"
:tableId="tableId"
:layout="['searchInput', 'elementSet']"
:layout="['searchInput', 'elementSet','searchInput']"
v-model:custom-table-title="tools.customTableTitle"
:from="fromRoute.operationLog"
@search="search"

View File

@@ -6,7 +6,7 @@
v-model:custom-table-title="tools.customTableTitle"
:api="url"
:from="fromRoute.roles"
:layout="['columnCustomize','elementSet']"
:layout="['columnCustomize','elementSet','searchInput']"
@search="search"
>
<template v-slot:top-tool-right>

View File

@@ -6,7 +6,7 @@
v-model:custom-table-title="tools.customTableTitle"
:api="url"
:from="fromRoute.user"
:layout="['columnCustomize','elementSet']"
:layout="['columnCustomize','elementSet','searchInput']"
@search="search"
>
<template #top-tool-right>