|
|
|
@ -4,7 +4,7 @@
|
|
|
|
|
* @Github:
|
|
|
|
|
* @Date: 2019-12-04 08:36:21
|
|
|
|
|
* @LastEditors : tangjiang
|
|
|
|
|
* @LastEditTime : 2019-12-27 10:38:42
|
|
|
|
|
* @LastEditTime : 2019-12-27 14:51:42
|
|
|
|
|
*/
|
|
|
|
|
import './index.scss';
|
|
|
|
|
import React, { useState, useEffect } from 'react';
|
|
|
|
@ -99,6 +99,11 @@ function RecordDetail (props) {
|
|
|
|
|
<span className="status_label" style={{ visibility: detail.status === 0 ? 'visible' : 'hidden'}}>
|
|
|
|
|
执行用时: <span className="status_label_sub">{`${detail.execute_time && Number(detail.execute_time * 1000).toFixed(2)}ms`}</span>
|
|
|
|
|
</span>
|
|
|
|
|
<span className="status_label pass_case" style={{ display: [-1, 0, 2, 5].includes(detail.status) ? 'inline-block' : 'none'}}>
|
|
|
|
|
<span className="status_label_sub">{detail.pass_sets_count}</span>
|
|
|
|
|
<span className="pass_case_span"> / {detail.set_count}</span>
|
|
|
|
|
个通过测试用例
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div className="result_error_area">
|
|
|
|
|
<ErrorResult detail={detail}/>
|
|
|
|
|