fix(接口测试): 接口测试 bugFix

This commit is contained in:
baiqi 2024-07-17 10:28:45 +08:00 committed by 刘瑞斌
parent 4abe7042e9
commit ee53476ace
5 changed files with 28 additions and 7 deletions

View File

@ -98,6 +98,7 @@
:precision="0"
size="medium"
:disabled="props.disabled"
model-event="input"
@change="emitChange('minLengthInput')"
/>
<div v-else class="ms-form-table-td-text">-</div>
@ -111,6 +112,7 @@
:precision="0"
size="medium"
:disabled="props.disabled"
model-event="input"
@change="emitChange('maxLengthInput')"
/>
<div v-else class="ms-form-table-td-text">-</div>
@ -122,6 +124,7 @@
class="ms-form-table-input-number"
size="medium"
:disabled="props.disabled"
model-event="input"
@change="emitChange('minimumInput')"
/>
<a-input-number
@ -132,6 +135,7 @@
:step="1"
:precision="0"
:disabled="props.disabled"
model-event="input"
@change="emitChange('minimumInput')"
/>
<div v-else class="ms-form-table-td-text">-</div>
@ -143,6 +147,7 @@
class="ms-form-table-input-number"
size="medium"
:disabled="props.disabled"
model-event="input"
@change="emitChange('maximumInput')"
/>
<a-input-number
@ -153,6 +158,7 @@
:step="1"
:precision="0"
:disabled="props.disabled"
model-event="input"
@change="emitChange('maximumInput')"
/>
<div v-else class="ms-form-table-td-text">-</div>
@ -167,6 +173,7 @@
:step="1"
:precision="0"
:disabled="props.disabled"
model-event="input"
@change="emitChange('minItemsInput')"
/>
<div v-else class="ms-form-table-td-text">-</div>
@ -181,6 +188,7 @@
:step="1"
:precision="0"
:disabled="props.disabled"
model-event="input"
@change="emitChange('maxItemsInput')"
/>
<div v-else class="ms-form-table-td-text">-</div>
@ -192,6 +200,7 @@
class="ms-form-table-input-number"
size="medium"
:disabled="props.disabled"
model-event="input"
@change="emitChange('defaultValueInput')"
/>
<a-input-number
@ -202,6 +211,7 @@
:step="1"
:precision="0"
:disabled="props.disabled"
model-event="input"
@change="emitChange('defaultValueInput')"
/>
<a-select
@ -367,6 +377,7 @@
:min="0"
:step="1"
:precision="0"
model-event="input"
@change="handleSettingFormChange"
/>
</a-form-item>
@ -377,6 +388,7 @@
:min="0"
:step="1"
:precision="0"
model-event="input"
@change="handleSettingFormChange"
/>
</a-form-item>
@ -389,12 +401,14 @@
mode="button"
:step="1"
:precision="0"
model-event="input"
@change="handleSettingFormChange"
/>
<a-input-number
v-else
v-model:model-value="activeRecord.minimum"
mode="button"
model-event="input"
@change="handleSettingFormChange"
/>
</a-form-item>
@ -405,12 +419,14 @@
mode="button"
:step="1"
:precision="0"
model-event="input"
@change="handleSettingFormChange"
/>
<a-input-number
v-else
v-model:model-value="activeRecord.maximum"
mode="button"
model-event="input"
@change="handleSettingFormChange"
/>
</a-form-item>
@ -421,6 +437,7 @@
v-model:model-value="activeRecord.defaultValue"
mode="button"
:placeholder="t('common.pleaseInput')"
model-event="input"
@change="handleSettingFormChange"
/>
<a-input-number
@ -430,6 +447,7 @@
:placeholder="t('common.pleaseInput')"
:step="1"
:precision="0"
model-event="input"
@change="handleSettingFormChange"
/>
<a-input
@ -476,6 +494,7 @@
:min="0"
:step="1"
:precision="0"
model-event="input"
@change="handleSettingFormChange"
/>
</a-form-item>
@ -486,6 +505,7 @@
:min="0"
:step="1"
:precision="0"
model-event="input"
@change="handleSettingFormChange"
/>
</a-form-item>

View File

@ -36,4 +36,6 @@ export interface JsonSchema {
items?: JsonSchemaItem[];
required?: string[];
description?: string;
minItems?: number;
maxItems?: number;
}

View File

@ -65,6 +65,8 @@ export function parseTableDataToJsonSchema(
type: 'array',
enable: schemaItem.enable,
items: schemaItem.children.map((child) => parseTableDataToJsonSchema(child, false) as JsonSchemaItem),
minItems: schemaItem.minItems,
maxItems: schemaItem.maxItems,
};
}
}
@ -205,6 +207,8 @@ export function parseSchemaToJsonSchemaTableData(schema: string | JsonSchema): {
required: false,
example: '',
defaultValue: '',
maxItems: node.maxItems,
minItems: node.minItems,
};
} else {
// 子孙节点

View File

@ -455,9 +455,6 @@
path: e.path,
fullPath,
};
if (!isSetDefaultKey && e.id === selectedKeys.value[0]) {
folderNodeSelect([selectedKeys.value[0]], e);
}
return {
...e,
hideMoreAction: e.id === 'root',

View File

@ -118,9 +118,9 @@
function setActiveApi(params: RequestParam) {
if (params.id === 'all') {
// tab api
activeNodeId.value = params.moduleId;
} else {
activeNodeId.value = params.id;
} else {
activeNodeId.value = params.moduleId;
}
}
@ -148,8 +148,6 @@
async function refreshModuleTree() {
await moduleTreeRef.value?.refresh();
//
selectRecycleCount();
}
function refreshModuleTreeCount(params: ApiDefinitionGetModuleParams) {