|
|
@@ -13,7 +13,7 @@ class TaskList extends React.Component {
|
|
|
this.timer = setInterval(() => {
|
|
|
this.props.tasks.forEach((x) => {
|
|
|
|
|
|
- if (!(x in this.state.details) || this.state.details[x]['status'] == 'running') {
|
|
|
+ if (!(x in this.state.details) || this.state.details[x]['status'] == 'RUNNING' || this.state.details[x]['status'] == 'QUEUEING') {
|
|
|
axios.get(BACKEND_URL + "/result/" + x).then(r => {
|
|
|
this.state.details[x] = r.data.data
|
|
|
this.setState(this.state.details)
|
|
|
@@ -62,7 +62,7 @@ class TaskList extends React.Component {
|
|
|
return (
|
|
|
<Collapse.Panel header={"任务 ID: " + x} key={x}>
|
|
|
<p>状态: {details.status}</p>
|
|
|
- <p><Progress style={{width: "50%"}} percent={progress} status={details.status === "running" ? "active" : "exception"} /></p>
|
|
|
+ <p><Progress style={{width: "50%"}} percent={progress} status={details.status !== "ERROR" ? "active" : "exception"} /></p>
|
|
|
<p>建议: {advice}</p>
|
|
|
<p>评分: {data}</p>
|
|
|
<p>原始数据: {raw}</p>
|