fix(接口测试): 接口测试后置脚本操作的相关缺陷

https://www.tapd.cn/55049933/s/1480486;https://www.tapd.cn/55049933/s/1480472
This commit is contained in:
song-tianyang 2024-03-25 18:54:41 +08:00 committed by Craftsman
parent 3e42d29b6e
commit d8e7b920bc
2 changed files with 17 additions and 4 deletions

View File

@ -34,8 +34,15 @@
<template #name="{ record }">
<div class="flex items-center">
<div class="one-line-text max-w-[200px] cursor-pointer text-[rgb(var(--primary-5))]">{{ record.name }}</div>
<a-popover :title="record.name" position="right">
<a-button type="text" class="ml-2 px-0">{{ t('project.commonScript.preview') }}</a-button>
<a-popover :title="record.name" position="bottom">
<a-button type="text" class="ml-2 px-0"> {{ t('project.commonScript.preview') }}</a-button>
<template #title>
<div class="w-[436px] bg-[var(--color-bg-3)] px-2 pb-2">
<span style="word-break: break-all">
{{ record.name }}
</span>
</div>
</template>
<template #content>
<div class="w-[436px] bg-[var(--color-bg-3)] px-2 pb-2">
<MsCodeEditor
@ -156,7 +163,7 @@
dataIndex: 'tags',
showInTable: true,
isTag: true,
width: 150,
width: 456,
showDrag: true,
},
{

View File

@ -75,7 +75,13 @@
</div>
<div class="flex items-center gap-[8px]">
{{ t('apiTestDebug.index') }}
<a-input-number v-model:model-value="expressionForm.specifyMatchNum" :min="1" class="w-[80px]" />
<a-input-number
v-model:model-value="expressionForm.specifyMatchNum"
:default-value="1"
:min="1"
:precision="0"
class="w-[80px]"
/>
{{ t('apiTestDebug.unit') }}
</div>
</div>