fix(测试用例): 用例评审脑图-修复评审用例后评审结果标签不对的缺陷
--bug=1047162 --user=吕梦园 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001047162
This commit is contained in:
parent
c08a3a1958
commit
8515a49ae3
|
@ -513,7 +513,8 @@
|
||||||
function handleReviewDone(status: StartReviewStatus | ReviewResult) {
|
function handleReviewDone(status: StartReviewStatus | ReviewResult) {
|
||||||
const node = window.minder.getSelectedNode();
|
const node = window.minder.getSelectedNode();
|
||||||
reviewVisible.value = false;
|
reviewVisible.value = false;
|
||||||
if (status !== 'UN_REVIEWED' && isCaseTag(node.data)) {
|
// 如果是用例,则status是获取后端的值,可直接替换标签
|
||||||
|
if (isCaseTag(node.data)) {
|
||||||
window.minder.execCommand('resource', [statusTagMap[status]]);
|
window.minder.execCommand('resource', [statusTagMap[status]]);
|
||||||
} else if (status !== StartReviewStatus.UNDER_REVIEWED && node.data?.resource?.includes(moduleTag)) {
|
} else if (status !== StartReviewStatus.UNDER_REVIEWED && node.data?.resource?.includes(moduleTag)) {
|
||||||
// 先清空子节点,从后向前遍历时,删除节点不会影响到尚未遍历的节点
|
// 先清空子节点,从后向前遍历时,删除节点不会影响到尚未遍历的节点
|
||||||
|
|
|
@ -795,7 +795,7 @@
|
||||||
// 批量解除关联用例拦截
|
// 批量解除关联用例拦截
|
||||||
function batchDisassociate() {
|
function batchDisassociate() {
|
||||||
const batchDisassociateTitle =
|
const batchDisassociateTitle =
|
||||||
showType.value !== 'list' && minderSelectData.value?.resource?.includes(t('common.case'))
|
showType.value !== 'list' && minderSelectData.value?.caseId?.length
|
||||||
? t('testPlan.featureCase.disassociateTip', { name: characterLimit(minderSelectData.value?.text) })
|
? t('testPlan.featureCase.disassociateTip', { name: characterLimit(minderSelectData.value?.text) })
|
||||||
: t('caseManagement.caseReview.disassociateConfirmTitle', {
|
: t('caseManagement.caseReview.disassociateConfirmTitle', {
|
||||||
count: showType.value !== 'list' ? minderSelectData.value?.count : batchParams.value.currentSelectCount,
|
count: showType.value !== 'list' ? minderSelectData.value?.count : batchParams.value.currentSelectCount,
|
||||||
|
|
|
@ -117,7 +117,7 @@
|
||||||
notifier: submitForm.value.notifiers?.join(';') ?? '',
|
notifier: submitForm.value.notifiers?.join(';') ?? '',
|
||||||
};
|
};
|
||||||
let minderCaseStatus;
|
let minderCaseStatus;
|
||||||
const isMinderCase = props.selectNode && props.selectNode.data?.resource?.includes(t('common.case'));
|
const isMinderCase = props.selectNode && props.selectNode.data?.caseId?.length;
|
||||||
if (isMinderCase) {
|
if (isMinderCase) {
|
||||||
minderCaseStatus = await minderReviewCase({
|
minderCaseStatus = await minderReviewCase({
|
||||||
...params,
|
...params,
|
||||||
|
|
|
@ -938,7 +938,7 @@
|
||||||
? minderSelectData.value?.count
|
? minderSelectData.value?.count
|
||||||
: batchParams.value.currentSelectCount || tableSelected.value.length;
|
: batchParams.value.currentSelectCount || tableSelected.value.length;
|
||||||
const batchDisassociateTitle =
|
const batchDisassociateTitle =
|
||||||
showType.value !== 'list' && minderSelectData.value?.resource?.includes(t('common.case'))
|
showType.value !== 'list' && minderSelectData.value?.caseId?.length
|
||||||
? t('testPlan.featureCase.disassociateTip', { name: characterLimit(minderSelectData.value?.text) })
|
? t('testPlan.featureCase.disassociateTip', { name: characterLimit(minderSelectData.value?.text) })
|
||||||
: t('caseManagement.caseReview.disassociateConfirmTitle', { count });
|
: t('caseManagement.caseReview.disassociateConfirmTitle', { count });
|
||||||
openModal({
|
openModal({
|
||||||
|
|
Loading…
Reference in New Issue