fix: 修复查询定时任务的时候没有使用projectId过滤
This commit is contained in:
parent
1260687c9f
commit
cd6e53f96d
|
@ -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>
|
||||
|
|
|
@ -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';
|
||||
|
|
Loading…
Reference in New Issue