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 2ea5aa8f64
commit dbfa8d297c
1 changed files with 5 additions and 2 deletions

View File

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