add 巡查相关页面

This commit is contained in:
2021-06-22 17:08:06 +08:00
parent 198b30aadd
commit fa1a598beb
8 changed files with 50 additions and 7 deletions

View File

@@ -97,7 +97,7 @@ export default class index extends Component {
{!loading && ( {!loading && (
<ComponentDynamic <ComponentDynamic
is={item.component} is={item.component}
record={record} {...this.props}
onRef={child => this.call(child, i)} onRef={child => this.call(child, i)}
/> />
)} )}

View File

@@ -9,3 +9,6 @@
border-radius: 0; border-radius: 0;
background-color: @primary-color; background-color: @primary-color;
} }
.ant-anchor-link-active {
background: linear-gradient(90deg, #fff, transparent);
}

View File

@@ -60,10 +60,6 @@ export default class index extends Component {
} }
} }
getContainer = () => {
return this.container
}
setContainer = container => { setContainer = container => {
this.container = (ReactDOM.findDOMNode(container) || {}).parentNode this.container = (ReactDOM.findDOMNode(container) || {}).parentNode
} }
@@ -112,7 +108,7 @@ export default class index extends Component {
</Col> </Col>
<Col flex="240px"> <Col flex="240px">
<Anchor <Anchor
getContainer={this.getContainer} getContainer={() => this.container}
offsetTop={24} offsetTop={24}
targetOffset={100} targetOffset={100}
wrapperStyle={{ backgroundColor: 'transparent' }} wrapperStyle={{ backgroundColor: 'transparent' }}

View File

@@ -0,0 +1,7 @@
import React, { Component } from 'react'
export default class grade extends Component {
render() {
return <div>1</div>
}
}

View File

@@ -0,0 +1,7 @@
import React, { Component } from 'react'
export default class handling extends Component {
render() {
return <div>1</div>
}
}

View File

@@ -1,7 +1,7 @@
import React, { Component } from 'react' import React, { Component } from 'react'
import ReactDOM from 'react-dom' import ReactDOM from 'react-dom'
import { Row, Col, Card, Anchor, Spin } from 'antd' import { Row, Col, Card, Anchor, Spin } from 'antd'
import { defaultsDeep, merge } from 'lodash' import { merge } from 'lodash'
import { AntIcon, ComponentDynamic, Container } from 'components' import { AntIcon, ComponentDynamic, Container } from 'components'
const parts = [ const parts = [
@@ -9,6 +9,22 @@ const parts = [
title: '巡查基本情况', title: '巡查基本情况',
component: () => import('./base'), component: () => import('./base'),
}, },
{
title: '房屋检查',
component: () => import('./inspection'),
},
{
title: '等级划分',
component: () => import('./grade'),
},
{
title: '处理情况',
component: () => import('./handling'),
},
{
title: '本期巡查结果',
component: () => import('./result'),
},
] ]
export default class index extends Component { export default class index extends Component {

View File

@@ -0,0 +1,7 @@
import React, { Component } from 'react'
export default class inspection extends Component {
render() {
return <div>1</div>
}
}

View File

@@ -0,0 +1,7 @@
import React, { Component } from 'react'
export default class result extends Component {
render() {
return <div></div>
}
}