|
@@ -50,7 +50,7 @@ const Step2 = (props) => {
|
|
|
const [editReportForm] = Form.useForm();
|
|
|
|
|
|
const {
|
|
|
- dispatch, reportCommonInfo, osType,
|
|
|
+ dispatch, reportCommonInfo, osType,collaborative_type,
|
|
|
testCaseList, caseBugList, categories, pathInfo,commonId
|
|
|
} = props;
|
|
|
const [showTaskRecommendModal, setTaskRecommendModal] = useState(false);
|
|
@@ -453,14 +453,17 @@ const Step2 = (props) => {
|
|
|
<PlusOutlined className={styles.addIcon} />
|
|
|
缺陷
|
|
|
</Button>
|
|
|
+ {
|
|
|
+ collaborative_type === '0' ?
|
|
|
+ <Button size="small"
|
|
|
+ className={styles.recommendBtn}
|
|
|
+ disabled={JSON.stringify(currentTestCaseRef.current) === '{}'}
|
|
|
+ onClick={() => handleClickRecommendBtn()}>
|
|
|
+ <ShareAltOutlined className={styles.addIcon}/>
|
|
|
+ 推荐
|
|
|
+ </Button> : null
|
|
|
+ }
|
|
|
|
|
|
- <Button size="small"
|
|
|
- className={styles.recommendBtn}
|
|
|
- disabled={JSON.stringify(currentTestCaseRef.current) === '{}'}
|
|
|
- onClick={() => handleClickRecommendBtn()}>
|
|
|
- <ShareAltOutlined className={styles.addIcon}/>
|
|
|
- 推荐
|
|
|
- </Button>
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
@@ -846,7 +849,7 @@ const Step2 = (props) => {
|
|
|
);
|
|
|
};
|
|
|
|
|
|
-export default connect(({ editReport, loading }) => ({
|
|
|
+export default connect(({ editReport, loading ,report}) => ({
|
|
|
submitting: loading.effects['editReport/submitStepForm'],
|
|
|
reportCommonInfo: editReport.reportCommonInfo,
|
|
|
testCaseList: editReport.testCaseList,
|
|
@@ -855,4 +858,5 @@ export default connect(({ editReport, loading }) => ({
|
|
|
pathInfo: editReport.pathInfo,
|
|
|
osType: editReport.osType,
|
|
|
commonId: editReport.commonId,
|
|
|
+ collaborative_type: report.collaborative_type,
|
|
|
}))(Step2);
|