| @@ -757,7 +757,7 @@ td, th { | |||||
| let scrollLeft = container.scrollLeft | let scrollLeft = container.scrollLeft | ||||
| if(((parseInt(scrollTop) + clientHeight == scrollHeight || parseInt(scrollTop) + clientHeight +1 == scrollHeight || parseInt(scrollTop) + clientHeight - 1 == scrollHeight)) && parseInt(scrollTop)!==0 && scrollLeft==0){ | if(((parseInt(scrollTop) + clientHeight == scrollHeight || parseInt(scrollTop) + clientHeight +1 == scrollHeight || parseInt(scrollTop) + clientHeight - 1 == scrollHeight)) && parseInt(scrollTop)!==0 && scrollLeft==0){ | ||||
| let end_line = $(`#log_npu input[name=end_line]`).val() | let end_line = $(`#log_npu input[name=end_line]`).val() | ||||
| $.get(`/api/v1/repos/${userName}/${repoPath}/modelmanage/${jobID}/modelartlog?version_name=V0001&base_line=${end_line}&lines=50&order=desc`, (data) => { | |||||
| $.get(`/api/v1/repos/${userName}/${repoPath}/modelmanage/${taskID}/modelartlog?version_name=V0001&base_line=${end_line}&lines=50&order=desc`, (data) => { | |||||
| if (data.Lines == 0){ | if (data.Lines == 0){ | ||||
| $(`#log_npu_header`).text('您已翻阅至日志底部') | $(`#log_npu_header`).text('您已翻阅至日志底部') | ||||
| $(`#log_npu_message`).css('display', 'block') | $(`#log_npu_message`).css('display', 'block') | ||||
| @@ -780,7 +780,7 @@ td, th { | |||||
| } | } | ||||
| if([0,1,2,3,4,5,6,7,8,9,10].includes(scrollTop) && scrollLeft==0){ | if([0,1,2,3,4,5,6,7,8,9,10].includes(scrollTop) && scrollLeft==0){ | ||||
| let start_line = $(`#log_npu input[name=start_line]`).val() | let start_line = $(`#log_npu input[name=start_line]`).val() | ||||
| $.get(`/api/v1/repos/${userName}/${repoPath}/modelmanage/${jobID}/modelartlog?version_name=V0001&base_line=${start_line}&lines=50&order=asc`, (data) => { | |||||
| $.get(`/api/v1/repos/${userName}/${repoPath}/modelmanage/${taskID}/modelartlog?version_name=V0001&base_line=${start_line}&lines=50&order=asc`, (data) => { | |||||
| if (data.Lines == 0){ | if (data.Lines == 0){ | ||||
| $(`#log_npu_header`).text('您已翻阅至日志顶部') | $(`#log_npu_header`).text('您已翻阅至日志顶部') | ||||
| $(`#log_npu_message`).css('display', 'block') | $(`#log_npu_message`).css('display', 'block') | ||||
| @@ -820,7 +820,7 @@ td, th { | |||||
| let logContentDom = document.querySelector(`#log_npu`) | let logContentDom = document.querySelector(`#log_npu`) | ||||
| $(`#log_file_npu`).siblings('pre').remove() | $(`#log_file_npu`).siblings('pre').remove() | ||||
| $.get(`/api/v1/repos/${userName}/${repoPath}/modelmanage/${jobID}/modelartlog?version_name=V0001&base_line=&lines=50&order=asc`, (data) => { | |||||
| $.get(`/api/v1/repos/${userName}/${repoPath}/modelmanage/${taskID}/modelartlog?version_name=V0001&base_line=&lines=50&order=asc`, (data) => { | |||||
| $(`#log_npu input[name=end_line]`).val(data.EndLine) //如果变动就改变所对应的值 | $(`#log_npu input[name=end_line]`).val(data.EndLine) //如果变动就改变所对应的值 | ||||
| $(`#log_npu input[name=start_line]`).val(data.StartLine) | $(`#log_npu input[name=start_line]`).val(data.StartLine) | ||||
| @@ -838,12 +838,12 @@ td, th { | |||||
| let logContentDom = document.querySelector(`#log_npu`) | let logContentDom = document.querySelector(`#log_npu`) | ||||
| $(`#log_file_npu`).siblings('pre').remove() | $(`#log_file_npu`).siblings('pre').remove() | ||||
| $.get(`/api/v1/repos/${userName}/${repoPath}/modelmanage/${jobID}/modelartlog?version_name=V0001&base_line=&lines=50&order=desc`, (data) => { | |||||
| $.get(`/api/v1/repos/${userName}/${repoPath}/modelmanage/${taskID}/modelartlog?version_name=V0001&base_line=&lines=50&order=desc`, (data) => { | |||||
| $(`#log_npu input[name=end_line]`).val(data.EndLine) //如果变动就改变所对应的值 | $(`#log_npu input[name=end_line]`).val(data.EndLine) //如果变动就改变所对应的值 | ||||
| $(`#log_npu input[name=start_line]`).val(data.StartLine) | $(`#log_npu input[name=start_line]`).val(data.StartLine) | ||||
| $(`#log_npu`).append('<pre>' + data.Content) | $(`#log_npu`).append('<pre>' + data.Content) | ||||
| $.get(`/api/v1/repos/${userName}/${repoPath}/modelmanage/${jobID}/modelartlog?version_name=V0001&base_line=${data.EndLine}&lines=50&order=desc`, (data) => { | |||||
| $.get(`/api/v1/repos/${userName}/${repoPath}/modelmanage/${taskID}/modelartlog?version_name=V0001&base_line=${data.EndLine}&lines=50&order=desc`, (data) => { | |||||
| if (data.Lines == 0){ | if (data.Lines == 0){ | ||||
| $(`#log_npu_header`).text('您已翻阅至日志底部') | $(`#log_npu_header`).text('您已翻阅至日志底部') | ||||
| $(`#log_npu_message`).css('display', 'block') | $(`#log_npu_message`).css('display', 'block') | ||||