|
@@ -6,7 +6,7 @@ import { timeToString } from '../../utils';
|
|
|
import {
|
|
|
RollbackOutlined,
|
|
|
DislikeOutlined,
|
|
|
- LikeOutlined,
|
|
|
+ LikeOutlined, LeftOutlined, RightOutlined,
|
|
|
} from '@ant-design/icons';
|
|
|
import { recurrent, severity, bug_categories } from '../Step2/const';
|
|
|
import * as echarts from 'echarts';
|
|
@@ -488,25 +488,33 @@ const BugGuideTree = (props) => {
|
|
|
<span className={styles.detailContent}>{currDetail.title}</span>
|
|
|
</Tooltip>
|
|
|
</div>
|
|
|
- <div className={styles.detailItem}><span
|
|
|
- className={styles.detailLabel}>Bug 描述:</span>{currDetail.description}</div>
|
|
|
+ <div className={`${styles.detailItem} ${styles.detailItemDesc}`}>
|
|
|
+ <Tooltip title={currDetail.description}>
|
|
|
+ <span className={styles.detailLabel}>Bug描述:</span>
|
|
|
+ {currDetail && currDetail.description}
|
|
|
+ </Tooltip>
|
|
|
+ </div>
|
|
|
<div className={styles.detailItem}><span
|
|
|
className={styles.detailLabel}>创建时间:</span>{timeToString(currDetail.create_time_millis)}</div>
|
|
|
<div className={styles.detailItem}><span className={styles.detailLabel}>页面路径:</span>{currDetail.bug_page}
|
|
|
</div>
|
|
|
<div className={styles.detailItem}><span
|
|
|
- className={styles.detailLabel}>漏洞分类:</span>{recurrent[currDetail.recurrent]}</div>
|
|
|
+ className={styles.detailLabel}>漏洞分类:</span>{currDetail.bug_category}</div>
|
|
|
<div className={styles.detailItem}><span
|
|
|
className={styles.detailLabel}>严重等级:</span>{severity[currDetail.severity]}</div>
|
|
|
<div className={styles.detailItem}><span
|
|
|
- className={styles.detailLabel}>复现程度:</span>{currDetail.bug_category}</div>
|
|
|
+ className={styles.detailLabel}>复现程度:</span>{recurrent[currDetail.recurrent - 1]}</div>
|
|
|
<div className={`${styles.detailItem} ${styles.detailItemOperator}`}><span
|
|
|
className={styles.detailLabel}>具体操作:</span>
|
|
|
- <Image
|
|
|
- width={120}
|
|
|
- src={currDetail.img_url}
|
|
|
- className={styles.detailItemImg}
|
|
|
- />
|
|
|
+ {
|
|
|
+ currDetail && currDetail.img_url ?
|
|
|
+ <Image
|
|
|
+ width={120}
|
|
|
+ src={currDetail.img_url}
|
|
|
+ className={styles.detailItemImg}
|
|
|
+ />
|
|
|
+ : null
|
|
|
+ }
|
|
|
{operator !== 0 ?
|
|
|
<LikeOutlined className={`${styles.operatorIcon} ${operator===1 ? styles.operatorIconActive : ''}` }
|
|
|
onClick={() => handleOperateIcon(1)} /> : null}
|