修复: IO诊断任务获取结果失败,使用task_id

This commit is contained in:
wb-msm280464 2022-09-14 13:43:26 +08:00
parent 684ef8c78e
commit 5787b7f3d6
2 changed files with 4 additions and 3 deletions

1
.gitignore vendored
View File

@ -20,3 +20,4 @@ sysom_api/conf/develop.py
sysom_api/sysom/settings.py
venv/
sysomRelease*/
sysom_api/conf/ssh-key

View File

@ -18,8 +18,8 @@ const IOList = () => {
const onListClick = async (record) => {
const recorded = record;
const msg = await request('/api/v1/tasks/' + record.id);
if (msg.data.result.status == "success" && msg.data.result["IO timeout"] == "false") {
const msg = await getTask(record.task_id);
if (msg.result.status == "success" && msg.result["IO timeout"] == "false") {
Modal.success({
title: '诊断成功',
content: (
@ -31,7 +31,7 @@ const IOList = () => {
return
}
const metlist = [];
const ioList = msg.data.result.seq.reduce((ioList, item, index, arr) => {
const ioList = msg.result.seq.reduce((ioList, item, index, arr) => {
const block = item["slow ios"].filter((item2,index2) => {
const block2 = item2.delays.filter((item3,index3) => {
metlist.push({