fix(测试跟踪): 脑图批量评审用例,标签会显示多个状态

--bug=1024364 --user=陈建星 【测试跟踪】用例评审-脑图模式-更改评审结果为通过/不通过-标签显示2个评审结果 https://www.tapd.cn/55049933/s/1350750
This commit is contained in:
chenjianxing 2023-03-15 17:53:18 +08:00 committed by jianxing
parent 334cdd9741
commit a8bf475116

View File

@ -8,7 +8,7 @@
:tag-enable="true"
:disabled="disable"
:select-node="selectNode"
:distinct-tags="[...tags, $t('test_track.plan.plan_status_prepare'), this.$t('test_track.review.again'), this.$t('test_track.review.underway')]"
:distinct-tags="distinctTags"
:ignore-num="true"
@afterMount="handleAfterMount"
@save="save"
@ -82,6 +82,9 @@ export default {
}),
disable() {
return !hasPermission('PROJECT_TRACK_REVIEW:READ+EDIT');
},
distinctTags() {
return [...this.tags, this.$t('test_track.plan.plan_status_prepare'), this.$t('test_track.review.again'), this.$t('test_track.review.underway')];
}
},
methods: {
@ -101,7 +104,7 @@ export default {
this.setIsChange(true);
}
});
tagBatch([...this.tags, this.$t('test_track.plan.plan_status_prepare')], {
tagBatch(this.distinctTags, {
param: this.getParam(),
getCaseFuc: getReviewCasesForMinder,
setParamCallback: this.setParamCallback