Commit a3f8cf3a authored by shiziyuan9527's avatar shiziyuan9527
Browse files

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

parent 4add022e
Showing with 4 additions and 3 deletions
+4 -3
......@@ -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%"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment