|
@@ -12,7 +12,7 @@ import { recurrent, severity, bug_categories } from '@/pages/edit/components/Ste
|
|
|
const BugItemDetail = (props) => {
|
|
|
const {
|
|
|
bugItemDetail, dispatch, reportCommonInfo, commonId,
|
|
|
- getReportReview,
|
|
|
+ getReportReview,status,bugSingleList,bugTreeList
|
|
|
} = props;
|
|
|
const [detail, setDetail] = useState({});
|
|
|
const [operator, setOperator] = useState(-1);
|
|
@@ -110,7 +110,10 @@ const BugItemDetail = (props) => {
|
|
|
}, [bugItemDetail]);
|
|
|
|
|
|
return (
|
|
|
- detail && detail.id ?
|
|
|
+ ((status === 'tree' && bugTreeList?.TreeRoot?.length === 0) ||
|
|
|
+ (status === 'single' && bugSingleList?.TreeRoot?.length === 0)) ?
|
|
|
+ <div>暂无缺陷提交记录</div> :
|
|
|
+ ( detail && detail.id ?
|
|
|
<div className={styles.bugItemDetail}>
|
|
|
<div className={styles.detailItem}>
|
|
|
<Tooltip title={detail.id}>
|
|
@@ -170,12 +173,14 @@ const BugItemDetail = (props) => {
|
|
|
<DislikeOutlined className={`${styles.operatorIcon} ${operator === 0 ? styles.operatorIconActive : ''}`}
|
|
|
onClick={() => handleOperateIcon(0)} /> : null}
|
|
|
</div>
|
|
|
- </div> : <Spin />
|
|
|
+ </div> : <Spin />)
|
|
|
);
|
|
|
};
|
|
|
|
|
|
export default connect(({ allBugs, editReport }) => ({
|
|
|
bugItemDetail: allBugs.bugItemDetail,
|
|
|
+ bugTreeList: allBugs.bugTreeList,
|
|
|
+ bugSingleList: allBugs.bugSingleList,
|
|
|
reportCommonInfo: editReport.reportCommonInfo,
|
|
|
commonId: editReport.commonId,
|
|
|
}))(BugItemDetail);
|