refactor: api列表支持根据路径搜索

This commit is contained in:
wenyann 2021-06-07 15:10:39 +08:00 committed by 刘瑞斌
parent eadddea6ef
commit 35512a366c
4 changed files with 5 additions and 4 deletions

View File

@ -545,7 +545,8 @@
<if test="request.name != null"> <if test="request.name != null">
and (api_definition.name like CONCAT('%', #{request.name},'%') and (api_definition.name like CONCAT('%', #{request.name},'%')
or api_definition.tags like CONCAT('%', #{request.name},'%') or api_definition.tags like CONCAT('%', #{request.name},'%')
or api_definition.num like CONCAT('%', #{request.name},'%')) or api_definition.num like CONCAT('%', #{request.name},'%')
or api_definition.path like CONCAT('%', #{request.name},'%'))
</if> </if>
<if test="request.protocol != null"> <if test="request.protocol != null">
AND api_definition.protocol = #{request.protocol} AND api_definition.protocol = #{request.protocol}

View File

@ -91,7 +91,7 @@ export default {
please_select: 'Please select', please_select: 'Please select',
search_by_name: 'Search by name', search_by_name: 'Search by name',
search_by_name_or_id: 'Search by ID/NAME', search_by_name_or_id: 'Search by ID/NAME',
search_by_id_name_tag: 'Search by ID/NAME/TAG', search_by_id_name_tag: 'Search by ID/NAME/TAG/PATH',
personal_information: 'Personal Information', personal_information: 'Personal Information',
exit_system: 'Exit System', exit_system: 'Exit System',
verification: 'Verification', verification: 'Verification',

View File

@ -92,7 +92,7 @@ export default {
please_select: '请选择', please_select: '请选择',
search_by_name: '根据名称搜索', search_by_name: '根据名称搜索',
search_by_name_or_id: '根据 ID/名称 搜索', search_by_name_or_id: '根据 ID/名称 搜索',
search_by_id_name_tag: '根据 ID/名称/标签 搜索', search_by_id_name_tag: '根据 ID/名称/标签/路径 搜索',
personal_information: '个人信息', personal_information: '个人信息',
exit_system: '退出系统', exit_system: '退出系统',
verification: '验证', verification: '验证',

View File

@ -92,7 +92,7 @@ export default {
please_select: '請選擇', please_select: '請選擇',
search_by_name: '根據名稱搜索', search_by_name: '根據名稱搜索',
search_by_name_or_id: '根據 ID/名稱 搜索', search_by_name_or_id: '根據 ID/名稱 搜索',
search_by_id_name_tag: '根據 ID/名稱/標簽 搜索', search_by_id_name_tag: '根據 ID/名稱/標簽/路徑 搜索',
personal_information: '個人信息', personal_information: '個人信息',
exit_system: '退出系統', exit_system: '退出系統',
verification: '驗證', verification: '驗證',