Commit 6337d61d by zhaochengxiang

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

parent aa8466ec
...@@ -51,7 +51,8 @@ const TaskLogModal = (props) => { ...@@ -51,7 +51,8 @@ const TaskLogModal = (props) => {
dispatch({ dispatch({
type: 'datasource.getTaskStates', type: 'datasource.getTaskStates',
payload: { payload: {
harvestingTaskId: id harvestingTaskId: id,
includeTrace: false
}, },
callback: data => { callback: data => {
setLoading(false); setLoading(false);
...@@ -63,6 +64,18 @@ const TaskLogModal = (props) => { ...@@ -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 = () => { const reset = () => {
setStateDatas([]); setStateDatas([]);
setTaskTracersBindStateId([]); setTaskTracersBindStateId([]);
...@@ -148,7 +161,7 @@ const TaskLogModal = (props) => { ...@@ -148,7 +161,7 @@ const TaskLogModal = (props) => {
setExpandedRowKeys([...newExpandedKeys]); setExpandedRowKeys([...newExpandedKeys]);
if (expanded && !exsit) { 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