fix(接口测试): 创建mock输入框去掉要多选一步骤的操作

This commit is contained in:
Jianguo-Genius 2024-12-19 14:33:26 +08:00 committed by 刘瑞斌
parent cc8736efcd
commit 16ddcc14ce
1 changed files with 13 additions and 8 deletions

View File

@ -25,15 +25,22 @@
:rules="[{ required: true, message: t('mockManagement.paramNameNotNull') }]" :rules="[{ required: true, message: t('mockManagement.paramNameNotNull') }]"
:disabled="props.disabled" :disabled="props.disabled"
> >
<a-select <a-auto-complete
v-model="item.key" v-model="item.key"
:placeholder="t('apiTestDebug.paramName')" :placeholder="t('apiTestDebug.paramName')"
:options="props.keyOptions" :data="props.keyOptions"
allow-search
allow-create
@change="(val) => selectedKey(item, idx)" @change="(val) => selectedKey(item, idx)"
> />
</a-select>
<!-- <a-select-->
<!-- v-model="item.key"-->
<!-- :placeholder="t('apiTestDebug.paramName')"-->
<!-- :options="props.keyOptions"-->
<!-- allow-search-->
<!-- allow-create-->
<!-- @change="(val) => selectedKey(item, idx)"-->
<!-- >-->
<!-- </a-select>-->
</a-form-item> </a-form-item>
</div> </div>
<div class="w-[110px]"> <div class="w-[110px]">
@ -342,7 +349,6 @@
// activeQuickInputRecord.value = {}; // activeQuickInputRecord.value = {};
// quickInputDescValue.value = ''; // quickInputDescValue.value = '';
// } // }
// function applyQuickInputDesc() { // function applyQuickInputDesc() {
// activeQuickInputRecord.value.description = quickInputDescValue.value; // activeQuickInputRecord.value.description = quickInputDescValue.value;
// showQuickInputDesc.value = false; // showQuickInputDesc.value = false;
@ -350,7 +356,6 @@
// clearQuickInputDesc(); // clearQuickInputDesc();
// emitChange('applyQuickInputDesc'); // emitChange('applyQuickInputDesc');
// } // }
// function handleDescChange() { // function handleDescChange() {
// emitChange('handleDescChange'); // emitChange('handleDescChange');
// } // }