style(接口测试): 接口测试预览中参数的样式修改

--bug=1037608 --user=宋天阳 【接口测试】定义-预览页面描述信息太长时显示异常 https://www.tapd.cn/55049933/s/1481177
This commit is contained in:
song-tianyang 2024-03-26 18:20:19 +08:00 committed by 刘瑞斌
parent 09c9f5bf68
commit 87978e66a6
3 changed files with 16 additions and 3 deletions

View File

@ -1,7 +1,7 @@
<template> <template>
<!-- TODO:接口请求超过5S以上可展示取消请求按钮避免用户过长等待 --> <!-- TODO:接口请求超过5S以上可展示取消请求按钮避免用户过长等待 -->
<MsCard :loading="loading" show-full-screen simple no-content-padding> <MsCard :loading="loading" show-full-screen simple no-content-padding>
<MsSplitBox :size="0.25" :max="0.5"> <MsSplitBox :size="300" :max="0.5">
<template #first> <template #first>
<moduleTree <moduleTree
ref="moduleTreeRef" ref="moduleTreeRef"

View File

@ -473,11 +473,13 @@
title: 'apiTestManagement.paramName', title: 'apiTestManagement.paramName',
dataIndex: 'key', dataIndex: 'key',
inputType: 'text', inputType: 'text',
width: 220,
}, },
{ {
title: 'apiTestManagement.paramVal', title: 'apiTestManagement.paramVal',
dataIndex: 'value', dataIndex: 'value',
inputType: 'text', inputType: 'text',
width: 220,
}, },
{ {
title: 'common.desc', title: 'common.desc',
@ -499,16 +501,19 @@
title: 'apiTestManagement.paramName', title: 'apiTestManagement.paramName',
dataIndex: 'key', dataIndex: 'key',
inputType: 'text', inputType: 'text',
width: 220,
}, },
{ {
title: 'apiTestDebug.paramType', title: 'apiTestDebug.paramType',
dataIndex: 'paramType', dataIndex: 'paramType',
inputType: 'text', inputType: 'text',
width: 96,
}, },
{ {
title: 'apiTestManagement.paramVal', title: 'apiTestManagement.paramVal',
dataIndex: 'value', dataIndex: 'value',
inputType: 'text', inputType: 'text',
width: 220,
}, },
{ {
title: 'apiTestManagement.required', title: 'apiTestManagement.required',
@ -518,6 +523,7 @@
valueFormat: (record) => { valueFormat: (record) => {
return record.required ? t('common.yes') : t('common.no'); return record.required ? t('common.yes') : t('common.no');
}, },
width: 68,
}, },
{ {
title: 'apiTestDebug.paramLengthRange', title: 'apiTestDebug.paramLengthRange',
@ -529,6 +535,7 @@
? '-' ? '-'
: `${record.minLength} ${t('common.to')} ${record.maxLength}`; : `${record.minLength} ${t('common.to')} ${record.maxLength}`;
}, },
width: 110,
}, },
{ {
title: 'apiTestDebug.encode', title: 'apiTestDebug.encode',
@ -538,6 +545,7 @@
valueFormat: (record) => { valueFormat: (record) => {
return record.encode ? t('common.yes') : t('common.no'); return record.encode ? t('common.yes') : t('common.no');
}, },
width: 68,
}, },
{ {
title: 'common.desc', title: 'common.desc',
@ -565,17 +573,20 @@
title: 'apiTestManagement.paramName', title: 'apiTestManagement.paramName',
dataIndex: 'key', dataIndex: 'key',
inputType: 'text', inputType: 'text',
width: 220,
}, },
{ {
title: 'apiTestManagement.paramsType', title: 'apiTestManagement.paramsType',
dataIndex: 'paramType', dataIndex: 'paramType',
inputType: 'text', inputType: 'text',
width: 96,
}, },
{ {
title: 'apiTestManagement.paramVal', title: 'apiTestManagement.paramVal',
dataIndex: 'value', dataIndex: 'value',
inputType: 'text', inputType: 'text',
showTooltip: true, showTooltip: true,
width: 220,
}, },
{ {
title: 'apiTestManagement.required', title: 'apiTestManagement.required',
@ -585,6 +596,7 @@
valueFormat: (record) => { valueFormat: (record) => {
return record.required ? t('common.yes') : t('common.no'); return record.required ? t('common.yes') : t('common.no');
}, },
width: 68,
}, },
{ {
title: 'apiTestDebug.paramLengthRange', title: 'apiTestDebug.paramLengthRange',
@ -596,6 +608,7 @@
? '-' ? '-'
: `${record.minLength} ${t('common.to')} ${record.maxLength}`; : `${record.minLength} ${t('common.to')} ${record.maxLength}`;
}, },
width: 110,
}, },
{ {
title: 'apiTestDebug.encode', title: 'apiTestDebug.encode',
@ -605,13 +618,13 @@
valueFormat: (record) => { valueFormat: (record) => {
return record.encode ? t('common.yes') : t('common.no'); return record.encode ? t('common.yes') : t('common.no');
}, },
width: 68,
}, },
{ {
title: 'common.desc', title: 'common.desc',
dataIndex: 'description', dataIndex: 'description',
inputType: 'text', inputType: 'text',
showTooltip: true, showTooltip: true,
width: 100,
}, },
]; ];
} }

View File

@ -1,6 +1,6 @@
<template> <template>
<MsCard simple no-content-padding> <MsCard simple no-content-padding>
<MsSplitBox :size="0.25" :max="0.5"> <MsSplitBox :size="300" :max="0.5">
<template #first> <template #first>
<div class="flex flex-col"> <div class="flex flex-col">
<div class="p-[16px]"> <div class="p-[16px]">