From f4aa52f1205be357fbfc57dc2fb33cbba4fdcc1f Mon Sep 17 00:00:00 2001 From: teukkk Date: Fri, 26 Jul 2024 17:50:20 +0800 Subject: [PATCH] =?UTF-8?q?style(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E5=AE=9A=E4=B9=89=E9=A2=84=E8=A7=88-=E5=BF=85=E5=A1=AB?= =?UTF-8?q?=E6=94=BE=E7=AC=AC=E4=BA=8C=E4=B8=AA&=E7=94=A8=E4=BE=8B?= =?UTF-8?q?=E4=B8=8D=E5=B1=95=E7=A4=BAschema?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../management/api/preview/detail.vue | 52 ++++++++++--------- 1 file changed, 27 insertions(+), 25 deletions(-) diff --git a/frontend/src/views/api-test/management/components/management/api/preview/detail.vue b/frontend/src/views/api-test/management/components/management/api/preview/detail.vue index 3b270bda07..49a8ab4029 100644 --- a/frontend/src/views/api-test/management/components/management/api/preview/detail.vue +++ b/frontend/src/views/api-test/management/components/management/api/preview/detail.vue @@ -138,7 +138,7 @@ {{ `${t('apiTestManagement.requestBody')}-${previewDetail.body.bodyType}` }} { + return record.required ? t('common.yes') : t('common.no'); + }, + width: 68, + }, { title: 'apiTestDebug.paramType', dataIndex: 'paramType', @@ -576,17 +589,6 @@ title: 'apiTestManagement.paramVal', dataIndex: 'value', inputType: 'text', - columnSelectorDisabled: true, - }, - { - title: 'apiTestManagement.required', - dataIndex: 'required', - slotName: 'required', - inputType: 'text', - valueFormat: (record) => { - return record.required ? t('common.yes') : t('common.no'); - }, - width: 68, }, { title: 'apiTestDebug.paramLengthRange', @@ -648,6 +650,17 @@ width: 220, columnSelectorDisabled: true, }, + { + title: 'apiTestManagement.required', + dataIndex: 'required', + slotName: 'required', + inputType: 'text', + columnSelectorDisabled: true, + valueFormat: (record) => { + return record.required ? t('common.yes') : t('common.no'); + }, + width: 68, + }, { title: 'apiTestManagement.paramsType', dataIndex: 'paramType', @@ -660,17 +673,6 @@ dataIndex: 'value', inputType: 'text', showTooltip: true, - columnSelectorDisabled: true, - }, - { - title: 'apiTestManagement.required', - dataIndex: 'required', - slotName: 'required', - inputType: 'text', - valueFormat: (record) => { - return record.required ? t('common.yes') : t('common.no'); - }, - width: 68, }, { title: 'apiTestDebug.paramLengthRange',