mirror of
https://gitee.com/fit2cloud-feizhiyun/MeterSphere.git
synced 2024-12-04 21:19:52 +08:00
fix(缺陷管理): 修复缺陷详情用例列表无法使用id搜索的缺陷,以及部分文案问题
--bug=1036879 --user=宋天阳 【缺陷管理】缺陷详情-用例-列表-未支持ID搜索 https://www.tapd.cn/55049933/s/1471704;--bug=1036878 --user=宋天阳 【缺陷管理】缺陷详情-用例-列表-文案修改 https://www.tapd.cn/55049933/s/1471633;--bug=1036875 --user=宋天阳 【缺陷管理】缺陷详情-用例-关联测试计划字段隐藏起来 https://www.tapd.cn/55049933/s/1471634;--bug=1036385 --user=宋天阳 【缺陷管理】缺陷详情-名称hover展示ID https://www.tapd.cn/55049933/s/1471719
This commit is contained in:
parent
6e8b1f2887
commit
a0bcb9f31c
@ -49,7 +49,10 @@
|
|||||||
from bug_relation_case brc join functional_case fc on (brc.case_id = fc.id or brc.test_plan_case_id = fc.id)
|
from bug_relation_case brc join functional_case fc on (brc.case_id = fc.id or brc.test_plan_case_id = fc.id)
|
||||||
where brc.bug_id = #{request.bugId} and fc.deleted = false
|
where brc.bug_id = #{request.bugId} and fc.deleted = false
|
||||||
<if test="request.keyword != null and request.keyword != ''">
|
<if test="request.keyword != null and request.keyword != ''">
|
||||||
and fc.name like concat('%', #{request.keyword}, '%')
|
and (
|
||||||
|
fc.name like concat('%', #{request.keyword}, '%')
|
||||||
|
or fc.num like concat('%', #{request.keyword}, '%')
|
||||||
|
)
|
||||||
</if>
|
</if>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
@ -10,7 +10,8 @@
|
|||||||
>
|
>
|
||||||
<template #title>
|
<template #title>
|
||||||
<div class="flex flex-1 items-center">
|
<div class="flex flex-1 items-center">
|
||||||
<a-tooltip :content="props.title" position="bottom">
|
<!-- 如果设置了tooltipText,则优先展示-->
|
||||||
|
<a-tooltip :content="props.tooltipText ? props.tooltipText : props.title" position="bottom">
|
||||||
<div class="one-line-text max-w-[300px]">
|
<div class="one-line-text max-w-[300px]">
|
||||||
{{ props.title }}
|
{{ props.title }}
|
||||||
</div>
|
</div>
|
||||||
@ -49,6 +50,7 @@
|
|||||||
title: string;
|
title: string;
|
||||||
width: number;
|
width: number;
|
||||||
detailId: string; // 详情 id
|
detailId: string; // 详情 id
|
||||||
|
tooltipText?: string; // tooltip内容
|
||||||
detailIndex: number; // 详情 下标
|
detailIndex: number; // 详情 下标
|
||||||
tableData: any[]; // 表格数据
|
tableData: any[]; // 表格数据
|
||||||
pagination: MsPaginationI; // 分页器对象
|
pagination: MsPaginationI; // 分页器对象
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
:width="1200"
|
:width="1200"
|
||||||
:footer="false"
|
:footer="false"
|
||||||
:title="t('bugManagement.detail.title', { id: detailInfo?.num, name: detailInfo?.title })"
|
:title="t('bugManagement.detail.title', { id: detailInfo?.num, name: detailInfo?.title })"
|
||||||
|
:tooltip-text="(detailInfo && detailInfo.title) || null"
|
||||||
:detail-id="props.detailId"
|
:detail-id="props.detailId"
|
||||||
:detail-index="props.detailIndex"
|
:detail-index="props.detailIndex"
|
||||||
:get-detail-func="getBugDetail"
|
:get-detail-func="getBugDetail"
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
<a-button type="primary" @click="handleSelect">{{ t('caseManagement.featureCase.linkCase') }}</a-button>
|
<a-button type="primary" @click="handleSelect">{{ t('caseManagement.featureCase.linkCase') }}</a-button>
|
||||||
<a-input-search
|
<a-input-search
|
||||||
v-model:model-value="keyword"
|
v-model:model-value="keyword"
|
||||||
:placeholder="t('caseManagement.featureCase.searchByNameAndId')"
|
:placeholder="t('caseManagement.featureCase.searchByIdAndName')"
|
||||||
allow-clear
|
allow-clear
|
||||||
class="mx-[8px] w-[240px]"
|
class="mx-[8px] w-[240px]"
|
||||||
@search="searchCase"
|
@search="searchCase"
|
||||||
@ -138,16 +138,6 @@
|
|||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
showDrag: false,
|
showDrag: false,
|
||||||
},
|
},
|
||||||
{
|
|
||||||
title: 'bugManagement.detail.isPlanRelateCase',
|
|
||||||
titleSlotName: 'relatePlanTitle',
|
|
||||||
slotName: 'isRelatePlanCase',
|
|
||||||
showInTable: true,
|
|
||||||
showTooltip: true,
|
|
||||||
width: 300,
|
|
||||||
ellipsis: true,
|
|
||||||
showDrag: false,
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
title: 'bugManagement.project',
|
title: 'bugManagement.project',
|
||||||
slotName: 'projectName',
|
slotName: 'projectName',
|
||||||
@ -205,8 +195,8 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function getFetch() {
|
async function getFetch() {
|
||||||
|
setKeyword(keyword.value);
|
||||||
setLoadListParams({
|
setLoadListParams({
|
||||||
keyword: keyword.value,
|
|
||||||
bugId: props.bugId,
|
bugId: props.bugId,
|
||||||
});
|
});
|
||||||
await loadList();
|
await loadList();
|
||||||
@ -269,6 +259,9 @@
|
|||||||
|
|
||||||
async function searchCase() {
|
async function searchCase() {
|
||||||
setKeyword(keyword.value);
|
setKeyword(keyword.value);
|
||||||
|
setLoadListParams({
|
||||||
|
bugId: props.bugId,
|
||||||
|
});
|
||||||
await loadList();
|
await loadList();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -277,9 +270,12 @@
|
|||||||
getFetch();
|
getFetch();
|
||||||
});
|
});
|
||||||
|
|
||||||
watchEffect(() => {
|
watch(
|
||||||
getFetch();
|
() => props.bugId,
|
||||||
});
|
() => {
|
||||||
|
getFetch();
|
||||||
|
}
|
||||||
|
);
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped></style>
|
<style scoped></style>
|
||||||
|
Loading…
Reference in New Issue
Block a user