|
@@ -4,7 +4,8 @@ import { PageContainer } from '@ant-design/pro-layout';
|
|
import { connect } from 'umi';
|
|
import { connect } from 'umi';
|
|
const { Option } = Select;
|
|
const { Option } = Select;
|
|
|
|
|
|
-import BugList from './components/BugList';
|
|
|
|
|
|
+import BugTreeList from './components/BugTreeList';
|
|
|
|
+import BugSingleList from './components/BugSingleList';
|
|
import BugDetailModal from './components/BugDetailModal';
|
|
import BugDetailModal from './components/BugDetailModal';
|
|
|
|
|
|
import {
|
|
import {
|
|
@@ -13,51 +14,11 @@ import {
|
|
} from '@ant-design/icons';
|
|
} from '@ant-design/icons';
|
|
import styles from './style.less';
|
|
import styles from './style.less';
|
|
|
|
|
|
-const options = [
|
|
|
|
- { label: '树状', value: 'tree' },
|
|
|
|
- { label: '单一状', value: 'single' },
|
|
|
|
-];
|
|
|
|
-const options2 = [
|
|
|
|
- {
|
|
|
|
- value: 'zhejiang',
|
|
|
|
- label: 'Zhejiang',
|
|
|
|
- children: [
|
|
|
|
- {
|
|
|
|
- value: 'hangzhou',
|
|
|
|
- label: 'Hangzhou',
|
|
|
|
- children: [
|
|
|
|
- {
|
|
|
|
- value: 'xihu',
|
|
|
|
- label: 'West Lake',
|
|
|
|
- },
|
|
|
|
- ],
|
|
|
|
- },
|
|
|
|
- ],
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- value: 'jiangsu',
|
|
|
|
- label: 'Jiangsu',
|
|
|
|
- children: [
|
|
|
|
- {
|
|
|
|
- value: 'nanjing',
|
|
|
|
- label: 'Nanjing',
|
|
|
|
- children: [
|
|
|
|
- {
|
|
|
|
- value: 'zhonghuamen',
|
|
|
|
- label: 'Zhong Hua Men',
|
|
|
|
- },
|
|
|
|
- ],
|
|
|
|
- },
|
|
|
|
- ],
|
|
|
|
- },
|
|
|
|
-]
|
|
|
|
-
|
|
|
|
const AllBugs = (props) => {
|
|
const AllBugs = (props) => {
|
|
const {dispatch,commonId,reportCommonInfo,reportReview} = props;
|
|
const {dispatch,commonId,reportCommonInfo,reportReview} = props;
|
|
const [status, setStatus] = useState('tree');
|
|
const [status, setStatus] = useState('tree');
|
|
|
|
|
|
const onChange = e => {
|
|
const onChange = e => {
|
|
- console.log('radio checked', e.target.value);
|
|
|
|
setStatus(e.target.value);
|
|
setStatus(e.target.value);
|
|
};
|
|
};
|
|
|
|
|
|
@@ -119,7 +80,8 @@ const AllBugs = (props) => {
|
|
</Row>
|
|
</Row>
|
|
<Row>
|
|
<Row>
|
|
<Col span={8}>
|
|
<Col span={8}>
|
|
- <BugList/>
|
|
|
|
|
|
+ {status === 'tree'? <BugTreeList /> : <BugSingleList/>}
|
|
|
|
+
|
|
</Col>
|
|
</Col>
|
|
<Col span={8}>
|
|
<Col span={8}>
|
|
这里是树状图
|
|
这里是树状图
|
|
@@ -138,6 +100,5 @@ const AllBugs = (props) => {
|
|
export default connect(({ allBugs,editReport }) => ({
|
|
export default connect(({ allBugs,editReport }) => ({
|
|
commonId: editReport.commonId,
|
|
commonId: editReport.commonId,
|
|
reportCommonInfo: editReport.reportCommonInfo,
|
|
reportCommonInfo: editReport.reportCommonInfo,
|
|
- allBugList: allBugs.allBugList,
|
|
|
|
reportReview: allBugs.reportReview,
|
|
reportReview: allBugs.reportReview,
|
|
}))(AllBugs);
|
|
}))(AllBugs);
|