fix(测试计划): 执行&&缺陷查询权限无法关联缺陷问题
--bug=1046394 --user=宋昌昌 【测试计划】计划详情-用户有计划执行和缺陷查询权限-功能用例列表-无法关联缺陷 https://www.tapd.cn/55049933/s/1578955
This commit is contained in:
parent
bc0863dd18
commit
e62c052c72
|
@ -14,7 +14,7 @@
|
||||||
@popup-visible-change="popupVisibleChange"
|
@popup-visible-change="popupVisibleChange"
|
||||||
>
|
>
|
||||||
<a-button
|
<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]`"
|
:class="`${isSelected ? 'selected-class' : 'operation-button'} arco-btn-outline--secondary ml-[8px] !p-[4px]`"
|
||||||
type="outline"
|
type="outline"
|
||||||
size="small"
|
size="small"
|
||||||
|
|
|
@ -63,6 +63,7 @@
|
||||||
:case-id="activeCase.id"
|
:case-id="activeCase.id"
|
||||||
:drawer-loading="drawerLoading"
|
:drawer-loading="drawerLoading"
|
||||||
:load-api="AssociatedBugApiTypeEnum.FUNCTIONAL_BUG_LIST"
|
:load-api="AssociatedBugApiTypeEnum.FUNCTIONAL_BUG_LIST"
|
||||||
|
:show-selector-all="false"
|
||||||
@save="saveHandler"
|
@save="saveHandler"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -112,6 +112,7 @@
|
||||||
:case-id="props.caseId"
|
:case-id="props.caseId"
|
||||||
:load-api="AssociatedBugApiTypeEnum.FUNCTIONAL_BUG_LIST"
|
:load-api="AssociatedBugApiTypeEnum.FUNCTIONAL_BUG_LIST"
|
||||||
:drawer-loading="drawerLoading"
|
:drawer-loading="drawerLoading"
|
||||||
|
:show-selector-all="false"
|
||||||
@save="saveHandler"
|
@save="saveHandler"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -127,7 +127,7 @@
|
||||||
:load-api="AssociatedBugApiTypeEnum.API_BUG_LIST"
|
:load-api="AssociatedBugApiTypeEnum.API_BUG_LIST"
|
||||||
:is-batch="isBatchAssociateOrCreate"
|
:is-batch="isBatchAssociateOrCreate"
|
||||||
:drawer-loading="drawerLoading"
|
:drawer-loading="drawerLoading"
|
||||||
:show-selector-all="!isBatchAssociateOrCreate"
|
:show-selector-all="false"
|
||||||
@save="saveApiBugHandler"
|
@save="saveApiBugHandler"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -127,7 +127,7 @@
|
||||||
:load-api="AssociatedBugApiTypeEnum.SCENARIO_BUG_LIST"
|
:load-api="AssociatedBugApiTypeEnum.SCENARIO_BUG_LIST"
|
||||||
:is-batch="isBatchAssociateOrCreate"
|
:is-batch="isBatchAssociateOrCreate"
|
||||||
:drawer-loading="drawerLoading"
|
:drawer-loading="drawerLoading"
|
||||||
:show-selector-all="!isBatchAssociateOrCreate"
|
:show-selector-all="false"
|
||||||
@save="saveScenarioBugHandler"
|
@save="saveScenarioBugHandler"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -191,7 +191,7 @@
|
||||||
:case-id="testPlanCaseId"
|
:case-id="testPlanCaseId"
|
||||||
:drawer-loading="drawerLoading"
|
:drawer-loading="drawerLoading"
|
||||||
:load-api="AssociatedBugApiTypeEnum.TEST_PLAN_BUG_LIST"
|
:load-api="AssociatedBugApiTypeEnum.TEST_PLAN_BUG_LIST"
|
||||||
:show-selector-all="!isBatchAssociateOrCreate"
|
:show-selector-all="false"
|
||||||
:is-batch="isBatchAssociateOrCreate"
|
:is-batch="isBatchAssociateOrCreate"
|
||||||
@save="saveFunctionBugHandler"
|
@save="saveFunctionBugHandler"
|
||||||
/>
|
/>
|
||||||
|
|
|
@ -234,6 +234,12 @@
|
||||||
caseId: activeCaseId,
|
caseId: activeCaseId,
|
||||||
testPlanId:route.query.id as string,
|
testPlanId:route.query.id as string,
|
||||||
}"
|
}"
|
||||||
|
:fill-config="{
|
||||||
|
isQuickFillContent: true,
|
||||||
|
detailId: activeId,
|
||||||
|
name: planDetail.name,
|
||||||
|
}"
|
||||||
|
:case-type="CaseLinkEnum.FUNCTIONAL"
|
||||||
@success="loadBugListAndCaseDetail"
|
@success="loadBugListAndCaseDetail"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
|
@ -278,7 +284,7 @@
|
||||||
import type { TableQueryParams } from '@/models/common';
|
import type { TableQueryParams } from '@/models/common';
|
||||||
import type { ExecuteHistoryItem, PlanDetailFeatureCaseItem, TestPlanDetail } from '@/models/testPlan/testPlan';
|
import type { ExecuteHistoryItem, PlanDetailFeatureCaseItem, TestPlanDetail } from '@/models/testPlan/testPlan';
|
||||||
import { AssociatedBugApiTypeEnum } from '@/enums/associateBugEnum';
|
import { AssociatedBugApiTypeEnum } from '@/enums/associateBugEnum';
|
||||||
import { LastExecuteResults } from '@/enums/caseEnum';
|
import { CaseLinkEnum, LastExecuteResults } from '@/enums/caseEnum';
|
||||||
import { CaseManagementRouteEnum } from '@/enums/routeEnum';
|
import { CaseManagementRouteEnum } from '@/enums/routeEnum';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
|
|
Loading…
Reference in New Issue