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