1
0
mirror of https://github.com/newnius/YAO-portal.git synced 2025-06-06 07:11:54 +00:00
This commit is contained in:
Newnius 2020-06-25 11:45:28 +08:00
parent 636d494894
commit 6c11237107

View File

@ -90,7 +90,7 @@ function register_events_job() {
console.log(res);
$('#form-job-tasks').find('.row').each(function () {
var taskRole = $(this).find('.task-is-ps').eq(0).val();
var taskRole = parseInt($(this).find('.task-is-ps').eq(0).val());
console.log(taskRole);
if ((role === 'PS' && taskRole === 1) || (role === 'Worker' && taskRole === 0)) {
$(this).find('.task-cpu').eq(0).val(res['cpu']);