refactor: 用户列表搜索改为按照ID/名称搜索
This commit is contained in:
parent
05eaf57b11
commit
0c9298a604
|
@ -46,7 +46,8 @@
|
|||
AND u.id like CONCAT('%', #{userRequest.id},'%')
|
||||
</if>
|
||||
<if test="userRequest.name != null">
|
||||
AND u.name like CONCAT('%', #{userRequest.name},'%')
|
||||
AND (u.name like CONCAT('%', #{userRequest.name},'%')
|
||||
or u.id like CONCAT('%', #{userRequest.name},'%'))
|
||||
</if>
|
||||
<if test="userRequest.email != null">
|
||||
AND u.email like CONCAT('%', #{userRequest.email},'%')
|
||||
|
|
|
@ -5,8 +5,8 @@
|
|||
<template v-slot:header>
|
||||
<ms-table-header :create-permission="['SYSTEM_USER:READ+CREATE']" :condition.sync="condition" @search="search"
|
||||
@import="importUserDialogOpen" :show-import="true" :import-tip="$t('commons.import_user')"
|
||||
@create="create" :create-tip="$t('user.create')" :title="$t('commons.user')"/>
|
||||
|
||||
:tip="$t('commons.search_by_name_or_id')" @create="create"
|
||||
:create-tip="$t('user.create')" :title="$t('commons.user')"/>
|
||||
</template>
|
||||
|
||||
<el-table border class="adjust-table ms-select-all-fixed" :data="tableData" style="width: 100%"
|
||||
|
|
Loading…
Reference in New Issue