fix(接口测试): 修复名称过长提示超出的缺陷
--bug=1037120 --user=王孝刚 【接口测试】接口调试-请求名称过长时-删除请求-提示显示超出 https://www.tapd.cn/55049933/s/1475035
This commit is contained in:
parent
8464a2e39d
commit
caf094fd7f
|
@ -358,7 +358,7 @@
|
|||
<if test="request.projectId != null and request.projectId!=''">
|
||||
and atc.project_id = #{request.projectId}
|
||||
</if>
|
||||
<if test="request.condition.keyword != null">
|
||||
<if test="request.condition.keyword != null and request.condition.keyword !=''">
|
||||
and (
|
||||
atc.name like concat('%', #{request.condition.keyword},'%')
|
||||
or atc.num like concat('%', #{request.condition.keyword},'%')
|
||||
|
@ -389,7 +389,7 @@
|
|||
<if test="request.projectId != null and request.projectId!=''">
|
||||
and atc.project_id = #{request.projectId}
|
||||
</if>
|
||||
<if test="request.keyword != null">
|
||||
<if test="request.keyword != null and request.keyword !=''">
|
||||
and (
|
||||
atc.name like concat('%', #{request.keyword},'%')
|
||||
or atc.num like concat('%', #{request.keyword},'%')
|
||||
|
|
|
@ -158,7 +158,7 @@
|
|||
import { useI18n } from '@/hooks/useI18n';
|
||||
import useModal from '@/hooks/useModal';
|
||||
import useAppStore from '@/store/modules/app';
|
||||
import { mapTree } from '@/utils';
|
||||
import { characterLimit, mapTree } from '@/utils';
|
||||
import { hasAnyPermission } from '@/utils/permission';
|
||||
|
||||
import { ModuleTreeNode } from '@/models/common';
|
||||
|
@ -299,7 +299,7 @@
|
|||
function deleteFolder(node: MsTreeNodeData) {
|
||||
openModal({
|
||||
type: 'error',
|
||||
title: t('apiTestDebug.deleteFolderTipTitle', { name: node.name }),
|
||||
title: t('apiTestDebug.deleteFolderTipTitle', { name: characterLimit(node.name) }),
|
||||
content: t('apiTestDebug.deleteFolderTipContent'),
|
||||
okText: t('apiTestDebug.deleteConfirm'),
|
||||
okButtonProps: {
|
||||
|
@ -337,7 +337,7 @@
|
|||
function deleteApiDebug(node: MsTreeNodeData) {
|
||||
openModal({
|
||||
type: 'error',
|
||||
title: t('apiTestDebug.deleteDebugTipTitle', { name: node.name }),
|
||||
title: t('apiTestDebug.deleteDebugTipTitle', { name: characterLimit(node.name) }),
|
||||
content: t('apiTestDebug.deleteDebugTipContent'),
|
||||
okText: t('apiTestDebug.deleteConfirm'),
|
||||
okButtonProps: {
|
||||
|
|
|
@ -20,6 +20,7 @@
|
|||
import batchAddKeyVal from '@/views/api-test/components/batchAddKeyVal.vue';
|
||||
import paramsTable, { type ParamTableColumn } from '@/views/api-test/components/paramTable.vue';
|
||||
|
||||
import { responseHeaderOption } from '@/config/apiTest';
|
||||
import { useI18n } from '@/hooks/useI18n';
|
||||
|
||||
import { TableKeyEnum } from '@/enums/tableEnum';
|
||||
|
@ -52,6 +53,8 @@
|
|||
dataIndex: 'key',
|
||||
slotName: 'key',
|
||||
permission: ['PROJECT_ENVIRONMENT:READ+UPDATE'],
|
||||
inputType: 'autoComplete',
|
||||
autoCompleteParams: responseHeaderOption,
|
||||
},
|
||||
{
|
||||
title: 'apiTestDebug.paramValue',
|
||||
|
|
Loading…
Reference in New Issue