fix(测试计划): 执行&&缺陷查询权限无法关联缺陷问题

--bug=1046394 --user=宋昌昌 【测试计划】计划详情-用户有计划执行和缺陷查询权限-功能用例列表-无法关联缺陷 https://www.tapd.cn/55049933/s/1578955
This commit is contained in:
song-cc-rock 2024-09-14 15:48:06 +08:00 committed by Craftsman
parent bc0863dd18
commit e62c052c72
7 changed files with 13 additions and 5 deletions

View File

@ -14,7 +14,7 @@
@popup-visible-change="popupVisibleChange"
>
<a-button
v-permission="['PROJECT_BUG:READ+ADD']"
v-permission="['PROJECT_BUG:READ']"
:class="`${isSelected ? 'selected-class' : 'operation-button'} arco-btn-outline--secondary ml-[8px] !p-[4px]`"
type="outline"
size="small"

View File

@ -63,6 +63,7 @@
:case-id="activeCase.id"
:drawer-loading="drawerLoading"
:load-api="AssociatedBugApiTypeEnum.FUNCTIONAL_BUG_LIST"
:show-selector-all="false"
@save="saveHandler"
/>
</template>

View File

@ -112,6 +112,7 @@
:case-id="props.caseId"
:load-api="AssociatedBugApiTypeEnum.FUNCTIONAL_BUG_LIST"
:drawer-loading="drawerLoading"
:show-selector-all="false"
@save="saveHandler"
/>
</div>

View File

@ -127,7 +127,7 @@
:load-api="AssociatedBugApiTypeEnum.API_BUG_LIST"
:is-batch="isBatchAssociateOrCreate"
:drawer-loading="drawerLoading"
:show-selector-all="!isBatchAssociateOrCreate"
:show-selector-all="false"
@save="saveApiBugHandler"
/>
</div>

View File

@ -127,7 +127,7 @@
:load-api="AssociatedBugApiTypeEnum.SCENARIO_BUG_LIST"
:is-batch="isBatchAssociateOrCreate"
:drawer-loading="drawerLoading"
:show-selector-all="!isBatchAssociateOrCreate"
:show-selector-all="false"
@save="saveScenarioBugHandler"
/>
</div>

View File

@ -191,7 +191,7 @@
:case-id="testPlanCaseId"
:drawer-loading="drawerLoading"
:load-api="AssociatedBugApiTypeEnum.TEST_PLAN_BUG_LIST"
:show-selector-all="!isBatchAssociateOrCreate"
:show-selector-all="false"
:is-batch="isBatchAssociateOrCreate"
@save="saveFunctionBugHandler"
/>

View File

@ -234,6 +234,12 @@
caseId: activeCaseId,
testPlanId:route.query.id as string,
}"
:fill-config="{
isQuickFillContent: true,
detailId: activeId,
name: planDetail.name,
}"
:case-type="CaseLinkEnum.FUNCTIONAL"
@success="loadBugListAndCaseDetail"
/>
</template>
@ -278,7 +284,7 @@
import type { TableQueryParams } from '@/models/common';
import type { ExecuteHistoryItem, PlanDetailFeatureCaseItem, TestPlanDetail } from '@/models/testPlan/testPlan';
import { AssociatedBugApiTypeEnum } from '@/enums/associateBugEnum';
import { LastExecuteResults } from '@/enums/caseEnum';
import { CaseLinkEnum, LastExecuteResults } from '@/enums/caseEnum';
import { CaseManagementRouteEnum } from '@/enums/routeEnum';
import {