|
@@ -9,6 +9,7 @@ import { apiStaffDetail } from '@/services/staff'
|
|
|
|
|
|
|
|
const EmployeeDetail = props => {
|
|
const EmployeeDetail = props => {
|
|
|
const { dispatch, shouldUpdate, visible, dataId = '' } = props
|
|
const { dispatch, shouldUpdate, visible, dataId = '' } = props
|
|
|
|
|
+ console.log(dataId)
|
|
|
const [state, setState] = useState({
|
|
const [state, setState] = useState({
|
|
|
loading: false,
|
|
loading: false,
|
|
|
data: {}
|
|
data: {}
|
|
@@ -40,7 +41,7 @@ const EmployeeDetail = props => {
|
|
|
<Row>
|
|
<Row>
|
|
|
<Col span={12} className="sheet-box-left">
|
|
<Col span={12} className="sheet-box-left">
|
|
|
<div className="sheet-left-panel zh-pd-right-15">
|
|
<div className="sheet-left-panel zh-pd-right-15">
|
|
|
- <EmployeeForm />
|
|
|
|
|
|
|
+ <EmployeeForm data={state.data} />
|
|
|
</div>
|
|
</div>
|
|
|
</Col>
|
|
</Col>
|
|
|
<Col span={12} className="sheet-box-right">
|
|
<Col span={12} className="sheet-box-right">
|