Skip to content

Commit d6045a0

Browse files
committed
vipshop#263 update nns param
1 parent 7eff187 commit d6045a0

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

saturn-console/src/main/resources/static/js/job_detail.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -820,7 +820,7 @@ $(function() {
820820
"url": "job/loadHistoryConfig",
821821
"type": "POST",
822822
"deferRender": true,
823-
"data": {jobName:jobName},
823+
"data": {jobName:jobName,ns:$("#namespace").val(), nns:regName},
824824
"dataSrc": "data"
825825
},
826826
"rowCallback": function( row, data, displayIndex, displayIndexFull ) {
@@ -922,7 +922,7 @@ $(function() {
922922
function bindCheckAndForecastCronButton() {
923923
$(document).on("click", "#check-and-forecast-cron", function(event) {
924924
var timeZone = $("#timeZone").val();
925-
$.post("job/checkAndForecastCron", {timeZone: timeZone, cron : $("#cron").val()}, function (data) {
925+
$.post("job/checkAndForecastCron", {timeZone: timeZone, cron : $("#cron").val(),nns:regName}, function (data) {
926926
var msg = "检验结果:";
927927
if(data.success == true) {
928928
msg += "成功";

saturn-console/src/main/resources/static/js/overview.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -770,7 +770,7 @@ $(function() {
770770
var $btn = $(this).button('loading');
771771
var jobName = $("#migrate-jobName").html();
772772
var newTask = $("#migrate-job-tasks-select").find("option:selected").val();
773-
$.post("job/migrateJobNewTask", {jobName : jobName, newTask : newTask}, function(data) {
773+
$.post("job/migrateJobNewTask", {jobName : jobName, newTask : newTask,nns:regName}, function(data) {
774774
if(data.success == true) {
775775
showSuccessDialogWithCallback(function() {location.reload(true);});
776776
} else {
@@ -785,7 +785,7 @@ $(function() {
785785
var $btn = $(this).button('loading');
786786
var jobName = $("#batch-migrate-jobName").html();
787787
var newTask = $("#batch-migrate-job-tasks-select").find("option:selected").val();
788-
$.post("job/batchMigrateJobNewTask", {jobNames : jobName, newTask : newTask}, function(data) {
788+
$.post("job/batchMigrateJobNewTask", {jobNames : jobName, newTask : newTask,nns:regName}, function(data) {
789789
if(data.success == true) {
790790
showSuccessDialogWithCallback(function() {location.reload(true);});
791791
} else {
@@ -802,7 +802,7 @@ $(function() {
802802
if($("#batch-preferList").val() != null) {
803803
var newPreferExecutors = $("#batch-preferList").val().toString();
804804
}
805-
$.post("job/batchSetPreferExecutors", {jobNames : jobName, newPreferExecutors : newPreferExecutors}, function(data) {
805+
$.post("job/batchSetPreferExecutors", {jobNames : jobName, newPreferExecutors : newPreferExecutors,nns:regName}, function(data) {
806806
if(data.success == true) {
807807
showSuccessDialogWithCallback(function() {location.reload(true);});
808808
} else {
@@ -1333,7 +1333,7 @@ $(function() {
13331333
selectedJobName = $jobNamesSelect.val();
13341334
var st = $("#start-time").val();
13351335
var et = $("#end-time").val();
1336-
$logstashTable.ajax.url("logstash?jn="+selectedJobName+"&st="+st+"&et="+et).load();
1336+
$logstashTable.ajax.url("logstash?jn="+selectedJobName+"&st="+st+"&et="+et+"&nns="+regName+"&ns="+ns).load();
13371337
});
13381338
if ($("#jobs").is(':visible')) {
13391339
$loading.show();
@@ -1542,7 +1542,7 @@ $(function() {
15421542
});
15431543
$("#jobs-overview-tbl_filter label").before(jobOperation);
15441544

1545-
$.get("job/getAllJobGroups", {}, function (data) {
1545+
$.get("job/getAllJobGroups", {nns:regName}, function (data) {
15461546
if(!data){
15471547
return;
15481548
}
@@ -2287,7 +2287,7 @@ $(function() {
22872287
}
22882288

22892289
function checkAndForecastCron(timeZone, cron) {
2290-
$.post("job/checkAndForecastCron", {timeZone: timeZone, cron : cron}, function (data) {
2290+
$.post("job/checkAndForecastCron", {timeZone: timeZone, cron : cron,nns:regName}, function (data) {
22912291
var msg = "检验结果:";
22922292
if(data.success == true) {
22932293
msg += "成功";

0 commit comments

Comments
 (0)