Commit 6337d61d by zhaochengxiang

任务日志详情访问慢的问题

parent aa8466ec
......@@ -51,7 +51,8 @@ const TaskLogModal = (props) => {
dispatch({
type: 'datasource.getTaskStates',
payload: {
harvestingTaskId: id
harvestingTaskId: id,
includeTrace: false
},
callback: data => {
setLoading(false);
......@@ -63,6 +64,18 @@ const TaskLogModal = (props) => {
})
}
const getTaskTracer = (record) => {
dispatch({
type: 'datasource.getTaskTracerByStateId',
payload: {
taskStateId: record.id
},
callback: data => {
setTaskTracersBindStateId([...taskTracersBindStateId, { key: record.id, value: data||[] }]);
}
});
}
const reset = () => {
setStateDatas([]);
setTaskTracersBindStateId([]);
......@@ -148,7 +161,7 @@ const TaskLogModal = (props) => {
setExpandedRowKeys([...newExpandedKeys]);
if (expanded && !exsit) {
setTaskTracersBindStateId([...taskTracersBindStateId, { key: record.id, value: record.executionTraces||[] }]);
getTaskTracer(record);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment