fix(用例管理): 修复功能用例点击多选框下拉框等会打开抽屉的缺陷
This commit is contained in:
parent
c0d9e96e3c
commit
11ea1ab153
|
@ -44,11 +44,13 @@
|
|||
<MsCheckbox
|
||||
v-if="attrs.selectorType === 'checkbox'"
|
||||
:value="props.selectedKeys.has(record[rowKey || 'id'])"
|
||||
@click.stop
|
||||
@change="rowSelectChange(record[rowKey || 'id'])"
|
||||
/>
|
||||
<a-radio
|
||||
v-else-if="attrs.selectorType === 'radio'"
|
||||
v-model:model-value="record.tableChecked"
|
||||
@click.stop
|
||||
@change="(val) => handleRadioChange(val as boolean, record)"
|
||||
/>
|
||||
<div v-if="attrs.showPagination && props.showSelectorAll" class="w-[16px]"></div>
|
||||
|
@ -145,6 +147,7 @@
|
|||
ref="currentInputRef"
|
||||
v-model="record[item.dataIndex as string]"
|
||||
:max-length="255"
|
||||
@click.stop
|
||||
@blur="handleEditInputBlur(record, item.dataIndex as string, true)"
|
||||
@keydown.enter="handleEditInputBlur(record, item.dataIndex as string, false)"
|
||||
/>
|
||||
|
@ -172,7 +175,7 @@
|
|||
class="ml-2 cursor-pointer"
|
||||
:class="{ 'ms-table-edit-active': editActiveKey === rowIndex }"
|
||||
type="icon-icon_edit_outlined"
|
||||
@click="handleEdit(item.dataIndex as string, rowIndex, record)"
|
||||
@click.stop="handleEdit(item.dataIndex as string, rowIndex, record)"
|
||||
/>
|
||||
</div>
|
||||
<div>
|
||||
|
|
|
@ -122,14 +122,9 @@
|
|||
<template #subText>
|
||||
<div class="flex">
|
||||
{{ t('apiTestManagement.importSwaggerFileTip1') }}
|
||||
<a
|
||||
class="text-[rgb(var(--warning-6))]"
|
||||
href="https://converter.swagger.io/"
|
||||
target="_blank"
|
||||
@click.stop
|
||||
>
|
||||
{{ t('apiTestManagement.importSwaggerFileTip2') }}
|
||||
</a>
|
||||
<span class="text-[rgb(var(--warning-6))]" @click.stop="openLink">{{
|
||||
t('apiTestManagement.importSwaggerFileTip2')
|
||||
}}</span>
|
||||
{{ t('apiTestManagement.importSwaggerFileTip3') }}
|
||||
</div>
|
||||
</template>
|
||||
|
@ -651,6 +646,10 @@
|
|||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
function openLink() {
|
||||
window.open('https://converter.swagger.io/', '_blank');
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="less" scoped>
|
||||
|
|
|
@ -63,6 +63,7 @@
|
|||
:placeholder="t('common.pleaseSelect')"
|
||||
class="param-input w-full"
|
||||
size="mini"
|
||||
@click.stop
|
||||
@change="() => handleStatusChange(record)"
|
||||
>
|
||||
<template #label>
|
||||
|
@ -204,6 +205,7 @@
|
|||
:placeholder="t('common.pleaseSelect')"
|
||||
class="param-input w-full"
|
||||
size="mini"
|
||||
@click.stop
|
||||
@change="() => handleStatusChange(record)"
|
||||
>
|
||||
<template #label>
|
||||
|
@ -231,6 +233,7 @@
|
|||
},
|
||||
}"
|
||||
size="mini"
|
||||
@click.stop
|
||||
@change="(value) => handleChangeModule(record, value)"
|
||||
>
|
||||
<template #tree-slot-title="node">
|
||||
|
@ -240,7 +243,7 @@
|
|||
</template>
|
||||
</a-tree-select>
|
||||
<a-tooltip v-else :content="getModules(record.moduleId)" position="top">
|
||||
<span class="one-line-text inline-block" @click="record.showModuleTree = true">{{
|
||||
<span class="one-line-text inline-block" @click.stop="record.showModuleTree = true">{{
|
||||
getModules(record.moduleId)
|
||||
}}</span>
|
||||
</a-tooltip>
|
||||
|
|
Loading…
Reference in New Issue