Skip to content

Commit

Permalink
修复job作业跳转id的问题 (#7120)
Browse files Browse the repository at this point in the history
* bugfix: 修复job作业跳转id的问题

* bugfix: 修复job 执行方案 默认版本跳转连接的问题

* bugfix: 修复job 执行方案 默认版本跳转连接的问题,处理job host 下划线
  • Loading branch information
hanshuaikang authored Oct 11, 2023
1 parent ba22141 commit 95794a0
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@
}
let biz_cc_id = this.get_parent && this.get_parent().get_child('biz_cc_id')._get_value();
let bk_job_host = window.BK_JOB_HOST;
let url = bk_job_host + '/' + biz_cc_id + "/api_plan/" + this.value;
if (bk_job_host.charAt(bk_job_host.length - 1) == "/") bk_job_host = bk_job_host.substr(0, bk_job_host.length - 1);
let url = bk_job_host + "/api_plan/" + this.value;
window.open(url, '_blank')
},
validation: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
let biz_cc_id = this.get_parent && this.get_parent().get_child('biz_cc_id')._get_value();
let bk_job_host = window.BK_JOB_HOST;
if (bk_job_host.charAt(bk_job_host.length - 1) == "/") bk_job_host = bk_job_host.substr(0, bk_job_host.length - 1);
let url = bk_job_host + '/' + biz_cc_id + "/api_plan/" + this.value;
let url = bk_job_host + "/api_plan/" + this.value;
window.open(url, '_blank')
},
validation: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
let biz_cc_id = this.get_parent && this.get_parent().get_child('biz_cc_id')._get_value();
let bk_job_host = window.BK_JOB_HOST;
if (bk_job_host.charAt(bk_job_host.length - 1) == "/") bk_job_host = bk_job_host.substr(0, bk_job_host.length - 1);
let url = bk_job_host + '/' + biz_cc_id + "/api_plan/" + this.value;
let url = bk_job_host + "/api_plan/" + this.value;
window.open(url, '_blank')
},
validation: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@
}
let biz_cc_id = this.get_parent && this.get_parent().get_child('biz_cc_id')._get_value();
let bk_job_host = window.BK_JOB_HOST;
let url = bk_job_host + '/' + biz_cc_id + "/api_plan/" + this.value;
if (bk_job_host.charAt(bk_job_host.length - 1) == "/") bk_job_host = bk_job_host.substr(0, bk_job_host.length - 1);
let url = bk_job_host + "/api_plan/" + this.value;
window.open(url, '_blank')
},
validation: [
Expand Down

0 comments on commit 95794a0

Please sign in to comment.