fix: 修复查询定时任务的时候没有使用projectId过滤

This commit is contained in:
Captain.B 2021-07-16 11:28:42 +08:00 committed by 刘瑞斌
parent 1260687c9f
commit cd6e53f96d
2 changed files with 7 additions and 0 deletions

View File

@ -16,6 +16,9 @@
<if test="request.workspaceId != null">
and schedule.workspace_id = #{request.workspaceId}
</if>
<if test="request.projectId != null">
and schedule.project_id = #{request.projectId}
</if>
<if test="request.enable != null">
and schedule.enable = #{request.enable}
</if>

View File

@ -339,6 +339,10 @@ export default {
let param = {};
param = this.test.schedule;
param.resourceId = this.test.id;
// projectId
if (!param.projectId) {
param.projectId = getCurrentProjectID();
}
let url = '/performance/schedule/create';
if (param.id) {
url = '/performance/schedule/update';