[bug UAT] 角色管理配置用户添加按名字搜索

This commit is contained in:
赵霄
2023-11-17 14:47:51 +08:00
parent ec19bc59a3
commit c4c3823417
+9 -1
View File
@@ -15,11 +15,16 @@
<a-form layout="inline" @keyup.enter.native="searchQuery"> <a-form layout="inline" @keyup.enter.native="searchQuery">
<a-row :gutter="24"> <a-row :gutter="24">
<a-col :span="10"> <a-col :span="8">
<a-form-item label="用户账号"> <a-form-item label="用户账号">
<j-input placeholder="请输入用户账号" v-model="queryParam.username"></j-input> <j-input placeholder="请输入用户账号" v-model="queryParam.username"></j-input>
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :span="8">
<a-form-item label="用户名称">
<j-input placeholder="请输入用户名称" v-model="queryParam.realname"></j-input>
</a-form-item>
</a-col>
<a-col :span="8"> <a-col :span="8">
<span style="float: left;overflow: hidden;" class="table-page-search-submitButtons"> <span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
<a-button type="primary" @click="searchQuery" icon="search">查询</a-button> <a-button type="primary" @click="searchQuery" icon="search">查询</a-button>
@@ -187,11 +192,14 @@ export default {
this.ipagination.current = 1 this.ipagination.current = 1
} }
const params = this.getQueryParams()// 查询条件 const params = this.getQueryParams()// 查询条件
this.loading = true
getAction(this.url.list, params).then((res) => { getAction(this.url.list, params).then((res) => {
if (res.success) { if (res.success) {
this.dataSource1 = res.result.records this.dataSource1 = res.result.records
this.ipagination.total = res.result.total this.ipagination.total = res.result.total
} }
}).finally(() => {
this.loading = false
}) })
}, },
getQueryParams () { getQueryParams () {