refactor: 用户列表搜索改为按照ID/名称搜索

This commit is contained in:
shiziyuan9527 2021-08-04 17:56:54 +08:00 committed by 刘瑞斌
parent 05eaf57b11
commit 0c9298a604
2 changed files with 4 additions and 3 deletions

View File

@ -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},'%')

View File

@ -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%"