fix(用例管理): 用例详情关联缺陷快速点击重复关联问题
--bug=1036124 --user=王旭 【用例管理】用例详情关联缺陷快速点击关联按钮导致关联多个相同缺陷 https://www.tapd.cn/55049933/s/1470843
This commit is contained in:
parent
f870faefca
commit
2faca1af64
|
@ -23,8 +23,8 @@
|
||||||
class="mx-[8px] w-[240px]"
|
class="mx-[8px] w-[240px]"
|
||||||
@search="searchList"
|
@search="searchList"
|
||||||
@press-enter="searchList"
|
@press-enter="searchList"
|
||||||
></a-input-search
|
></a-input-search>
|
||||||
></div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<ms-base-table ref="tableRef" v-bind="propsRes" v-on="propsEvent">
|
<ms-base-table ref="tableRef" v-bind="propsRes" v-on="propsEvent">
|
||||||
|
@ -135,6 +135,15 @@
|
||||||
|
|
||||||
const keyword = ref<string>('');
|
const keyword = ref<string>('');
|
||||||
|
|
||||||
|
const showDrawer = computed({
|
||||||
|
get() {
|
||||||
|
return props.visible;
|
||||||
|
},
|
||||||
|
set(value) {
|
||||||
|
emit('update:visible', value);
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
function handleDrawerConfirm() {
|
function handleDrawerConfirm() {
|
||||||
const { excludeKeys, selectedKeys, selectorStatus } = propsRes.value;
|
const { excludeKeys, selectedKeys, selectorStatus } = propsRes.value;
|
||||||
const params = {
|
const params = {
|
||||||
|
@ -147,21 +156,14 @@
|
||||||
combine: {},
|
combine: {},
|
||||||
caseId: props.caseId,
|
caseId: props.caseId,
|
||||||
};
|
};
|
||||||
|
showDrawer.value = false;
|
||||||
emit('save', params);
|
emit('save', params);
|
||||||
}
|
}
|
||||||
|
|
||||||
function handleDrawerCancel() {
|
function handleDrawerCancel() {
|
||||||
resetSelector();
|
resetSelector();
|
||||||
}
|
}
|
||||||
|
|
||||||
const showDrawer = computed({
|
|
||||||
get() {
|
|
||||||
return props.visible;
|
|
||||||
},
|
|
||||||
set(value) {
|
|
||||||
emit('update:visible', value);
|
|
||||||
},
|
|
||||||
});
|
|
||||||
|
|
||||||
function getFetch() {
|
function getFetch() {
|
||||||
setLoadListParams({ keyword: keyword.value, projectId: currentProjectId.value, sourceId: props.caseId });
|
setLoadListParams({ keyword: keyword.value, projectId: currentProjectId.value, sourceId: props.caseId });
|
||||||
loadList();
|
loadList();
|
||||||
|
|
Loading…
Reference in New Issue