fix(测试跟踪): 解决测试计划无法显示测试阶段问题

This commit is contained in:
guoyuqi 2022-10-11 18:59:37 +08:00 committed by xiaomeinvG
parent f989539ace
commit 14be65e84b
2 changed files with 8 additions and 3 deletions

View File

@ -16,7 +16,12 @@
stage: { stage: {
type: String type: String
}, },
option: [] option: {
type:Array,
default() {
return [];
}
}
} }
} }
</script> </script>

View File

@ -492,8 +492,8 @@ export default {
this.hasEditPermission = hasPermission('PROJECT_TRACK_PLAN:READ+EDIT'); this.hasEditPermission = hasPermission('PROJECT_TRACK_PLAN:READ+EDIT');
this.hasSchedulePermission = hasPermission('PROJECT_TRACK_PLAN:READ+SCHEDULE'); this.hasSchedulePermission = hasPermission('PROJECT_TRACK_PLAN:READ+SCHEDULE');
this.condition.orders = getLastTableSortField(this.tableHeaderKey); this.condition.orders = getLastTableSortField(this.tableHeaderKey);
getPlanStageOption((data) => { getPlanStageOption().then(r => {
this.stageOption = data; this.stageOption = r.data;
this.setAdvSearchStageOption(); this.setAdvSearchStageOption();
if (this.stageOption.length > 0) { if (this.stageOption.length > 0) {
this.stageFilters = this.stageOption; this.stageFilters = this.stageOption;