fix(测试跟踪): 修复测试跟踪首页数据查询问题
This commit is contained in:
parent
6ba32fbda9
commit
987ab3b395
|
@ -164,11 +164,10 @@
|
|||
|
||||
<select id="listRelate" resultType="io.metersphere.track.dto.TestPlanDTOWithMetric">
|
||||
select distinct test_plan.* from test_plan
|
||||
inner join test_plan_project on test_plan.id = test_plan_project.test_plan_id
|
||||
<where>
|
||||
test_plan.workspace_id = #{request.workspaceId}
|
||||
<if test="request.projectId != null">
|
||||
and test_plan_project.project_id = #{request.projectId}
|
||||
and test_plan.project_id = #{request.projectId}
|
||||
</if>
|
||||
and (test_plan.principal = #{request.principal}
|
||||
<if test="request.planIds != null and request.planIds.size() > 0">
|
||||
|
|
|
@ -272,13 +272,11 @@
|
|||
select distinct plan_id from test_plan_test_case
|
||||
inner join test_plan
|
||||
on test_plan_test_case.plan_id = test_plan.id
|
||||
inner join test_plan_project
|
||||
on test_plan.id = test_plan_project.test_plan_id
|
||||
<where>
|
||||
test_plan_test_case.executor = #{userId}
|
||||
and test_plan.workspace_id = #{workspaceId}
|
||||
<if test="projectId != null">
|
||||
and test_plan_project.project_id = #{projectId}
|
||||
and test_plan.project_id = #{projectId}
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
|
|
@ -58,11 +58,11 @@
|
|||
<plan-stage-table-item :stage="scope.row.stage"/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="projectName"
|
||||
:label="$t('test_track.plan.plan_project')"
|
||||
show-overflow-tooltip>
|
||||
</el-table-column>
|
||||
<!-- <el-table-column-->
|
||||
<!-- prop="projectName"-->
|
||||
<!-- :label="$t('test_track.plan.plan_project')"-->
|
||||
<!-- show-overflow-tooltip>-->
|
||||
<!-- </el-table-column>-->
|
||||
|
||||
</el-table>
|
||||
|
||||
|
@ -94,12 +94,12 @@
|
|||
}
|
||||
this.result = this.$post('/test/plan/list/all/relate', {}, response => {
|
||||
this.tableData = response.data;
|
||||
for (let i = 0; i < this.tableData.length; i++) {
|
||||
let path = "/test/plan/project/name/" + this.tableData[i].id;
|
||||
this.$get(path, res => {
|
||||
this.$set(this.tableData[i], "projectName", res.data);
|
||||
})
|
||||
}
|
||||
// for (let i = 0; i < this.tableData.length; i++) {
|
||||
// let path = "/test/plan/project/name/" + this.tableData[i].id;
|
||||
// this.$get(path, res => {
|
||||
// this.$set(this.tableData[i], "projectName", res.data);
|
||||
// })
|
||||
// }
|
||||
});
|
||||
},
|
||||
intoPlan(row, event, column) {
|
||||
|
|
Loading…
Reference in New Issue