fix(用例管理): 修复用例评审相关功能
--bug=1038134 --user=郭雨琦 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001038134 --bug=1038128 --user=郭雨琦 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001038128 --bug=1038048 --user=郭雨琦 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001038048
This commit is contained in:
parent
c64b97ba06
commit
7ac1ee03be
|
@ -536,6 +536,7 @@
|
|||
sourceType: caseType.value,
|
||||
projectId: innerProject.value,
|
||||
sourceId: props.caseId,
|
||||
totalCount: propsRes.value.msPagination?.total,
|
||||
};
|
||||
|
||||
emit('save', params);
|
||||
|
|
|
@ -36,6 +36,7 @@ export interface BaseAssociateCaseRequest {
|
|||
versionId: string;
|
||||
refId: string;
|
||||
projectId: string;
|
||||
totalCount?: number;
|
||||
}
|
||||
// 评审
|
||||
export interface Review {
|
||||
|
|
|
@ -41,7 +41,6 @@
|
|||
import { useI18n } from '@/hooks/useI18n';
|
||||
import useLeaveUnSaveTip from '@/hooks/useLeaveUnSaveTip';
|
||||
import useVisit from '@/hooks/useVisit';
|
||||
import { useAppStore } from '@/store';
|
||||
import useFeatureCaseStore from '@/store/modules/case/featureCase';
|
||||
import { scrollIntoView } from '@/utils/dom';
|
||||
|
||||
|
@ -99,16 +98,17 @@
|
|||
if (isContinue) {
|
||||
Message.success(t('caseManagement.featureCase.addSuccess'));
|
||||
caseModuleDetailRef.value.resetForm();
|
||||
|
||||
return;
|
||||
}
|
||||
createSuccessId.value = res.data.id;
|
||||
Message.success(route.params.mode === 'copy' ? t('ms.description.copySuccess') : t('common.addSuccess'));
|
||||
isShowTip.value = !getIsVisited();
|
||||
if (isReview) {
|
||||
Message.success(t('caseManagement.featureCase.createAndLinkSuccess'));
|
||||
setState(true);
|
||||
router.back();
|
||||
return;
|
||||
}
|
||||
Message.success(route.params.mode === 'copy' ? t('ms.description.copySuccess') : t('common.addSuccess'));
|
||||
if (isShowTip.value && !route.query.id) {
|
||||
router.push({
|
||||
name: CaseManagementRouteEnum.CASE_MANAGEMENT_CASE_CREATE_SUCCESS,
|
||||
|
|
|
@ -207,6 +207,7 @@ export default {
|
|||
'caseManagement.featureCase.platformDemandState': 'Status',
|
||||
'caseManagement.featureCase.platformDemandHandler': 'handler',
|
||||
'caseManagement.featureCase.createAndLink': 'Create & Associate',
|
||||
'caseManagement.featureCase.createAndLinkSuccess': 'Created and associated successfully',
|
||||
'caseManagement.featureCase.commentList': 'Comment list',
|
||||
'caseManagement.featureCase.caseComment': 'Use case comment',
|
||||
'caseManagement.featureCase.reviewComment': 'Review Comments',
|
||||
|
|
|
@ -206,6 +206,7 @@ export default {
|
|||
'caseManagement.featureCase.platformDemandState': '状态',
|
||||
'caseManagement.featureCase.platformDemandHandler': '处理人',
|
||||
'caseManagement.featureCase.createAndLink': '创建并关联',
|
||||
'caseManagement.featureCase.createAndLinkSuccess': '创建并关联成功',
|
||||
'caseManagement.featureCase.commentList': '评论列表',
|
||||
'caseManagement.featureCase.caseComment': '用例评论',
|
||||
'caseManagement.featureCase.reviewComment': '评审评论',
|
||||
|
|
|
@ -12,13 +12,13 @@
|
|||
{{ t('caseManagement.caseReview.pass') }}
|
||||
</div>
|
||||
</a-radio>
|
||||
<a-radio value="UN_PASS">
|
||||
<a-radio value="UN_PASS" @click="modalVisible = true">
|
||||
<div class="inline-flex items-center">
|
||||
<MsIcon type="icon-icon_close_filled" class="mr-[4px] text-[rgb(var(--danger-6))]" />
|
||||
{{ t('caseManagement.caseReview.fail') }}
|
||||
</div>
|
||||
</a-radio>
|
||||
<a-radio value="UNDER_REVIEWED">
|
||||
<a-radio value="UNDER_REVIEWED" @click="modalVisible = true">
|
||||
<div class="inline-flex items-center">
|
||||
<MsIcon type="icon-icon_warning_filled" class="mr-[4px] text-[rgb(var(--warning-6))]" />
|
||||
{{ t('caseManagement.caseReview.suggestion') }}
|
||||
|
|
|
@ -132,7 +132,11 @@
|
|||
<div class="text-[var(--color-text-2)]">
|
||||
{{
|
||||
t('caseManagement.caseReview.selectedCases', {
|
||||
count: isCopy ? reviewForm.caseCount : selectedAssociateCasesParams.selectIds.length,
|
||||
count: isCopy
|
||||
? reviewForm.caseCount
|
||||
: selectedAssociateCasesParams.selectAll
|
||||
? selectedAssociateCasesParams.totalCount
|
||||
: selectedAssociateCasesParams.selectIds.length,
|
||||
})
|
||||
}}
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue