|
|
@ -1,14 +1,10 @@ |
|
|
|
import React, { useEffect, useRef, useState } from 'react'; |
|
|
|
import { connect } from "react-redux"; |
|
|
|
import { Modal, Button, Row, Col, Input } from "@douyinfe/semi-ui"; |
|
|
|
import moment from 'moment' |
|
|
|
import { Modal, Button, Row, Col, Input, Tooltip, TextArea } from "@douyinfe/semi-ui"; |
|
|
|
const DetailModal = (props) => { |
|
|
|
const { dispatch, actions, user, onCancel, dataToDetail, close } = props; |
|
|
|
const { humanAffairs } = actions; |
|
|
|
const [options, setOptions] = useState([]); |
|
|
|
//初始化
|
|
|
|
useEffect(() => { |
|
|
|
|
|
|
|
}, []); |
|
|
|
const { onCancel, dataToDetail } = props; |
|
|
|
console.log(dataToDetail, 'dataToDetaildataToDetail'); |
|
|
|
|
|
|
|
return ( |
|
|
|
<Modal title='员工沟通详情' |
|
|
@ -24,87 +20,99 @@ const DetailModal = (props) => { |
|
|
|
> |
|
|
|
<Row style={{ marginBottom: '30px' }}> |
|
|
|
<Col span={12}> |
|
|
|
<span style={{ width:'28%', float: 'left', textAlign: 'right', color: 'rgba(0, 0, 0, 0.85)', lineHeight: '32px' }} >被沟通人:</span> |
|
|
|
<Input style={{ width: '68%', float: 'left' }} disabled /> |
|
|
|
<span style={{ width: '28%', float: 'left', textAlign: 'right', color: 'rgba(0, 0, 0, 0.85)', lineHeight: '32px' }} >被沟通人:</span> |
|
|
|
<Input value={dataToDetail.personalName} style={{ width: '68%', float: 'left' }} disabled /> |
|
|
|
</Col> |
|
|
|
<Col span={12}> |
|
|
|
<span style={{ width:'28%', float: 'left', textAlign: 'right', color: 'rgba(0, 0, 0, 0.85)', lineHeight: '32px' }} >岗位:</span> |
|
|
|
<Input style={{ width: '68%', float: 'left' }} disabled /> |
|
|
|
<span style={{ width: '28%', float: 'left', textAlign: 'right', color: 'rgba(0, 0, 0, 0.85)', lineHeight: '32px' }} >岗位:</span> |
|
|
|
<Input value={dataToDetail.job} style={{ width: '68%', float: 'left' }} disabled /> |
|
|
|
</Col> |
|
|
|
</Row> |
|
|
|
<Row style={{ marginBottom: '30px' }}> |
|
|
|
<Col span={12}> |
|
|
|
<span style={{ width:'28%', float: 'left', textAlign: 'right', color: 'rgba(0, 0, 0, 0.85)', lineHeight: '32px' }} >部门:</span> |
|
|
|
<Input style={{ width: '68%', float: 'left' }} disabled /> |
|
|
|
<span style={{ width: '28%', float: 'left', textAlign: 'right', color: 'rgba(0, 0, 0, 0.85)', lineHeight: '32px' }} >部门:</span> |
|
|
|
<Input value={dataToDetail.departmentName} style={{ width: '68%', float: 'left' }} disabled /> |
|
|
|
</Col> |
|
|
|
<Col span={12}> |
|
|
|
<span style={{ width:'28%', float: 'left', textAlign: 'right', color: 'rgba(0, 0, 0, 0.85)', lineHeight: '32px' }} >沟通截止时间:</span> |
|
|
|
<Input style={{ width: '68%', float: 'left' }} disabled /> |
|
|
|
<span style={{ width: '28%', float: 'left', textAlign: 'right', color: 'rgba(0, 0, 0, 0.85)', lineHeight: '32px' }} >沟通截止时间:</span> |
|
|
|
<Input value={moment(dataToDetail.communicateEndDate).format('YYYY-MM-DD')} style={{ width: '68%', float: 'left' }} disabled /> |
|
|
|
</Col> |
|
|
|
</Row> |
|
|
|
<Row style={{ marginBottom: '30px' }}> |
|
|
|
<Col span={12}> |
|
|
|
<span style={{ width:'28%', float: 'left', textAlign: 'right', color: 'rgba(0, 0, 0, 0.85)', lineHeight: '32px' }} >沟通主题:</span> |
|
|
|
<Input style={{ width: '68%', float: 'left' }} disabled /> |
|
|
|
<span style={{ width: '28%', float: 'left', textAlign: 'right', color: 'rgba(0, 0, 0, 0.85)', lineHeight: '32px' }} >沟通主题:</span> |
|
|
|
<Tooltip content={dataToDetail.topic}> |
|
|
|
<div style={{ |
|
|
|
textOverflow: 'ellipsis', overflow: 'hidden', whiteSpace: 'nowrap', width: '68%', height: '32px', lineHeight: '32px', background: 'rgba(243,243,243,0.7)', fontSize: '14px', padding: '0 12px', borderRadius: '2px', cursor: 'not-allowed', color: 'rgba(0,0,0,0.3)' |
|
|
|
}}>{dataToDetail.topic}</div> |
|
|
|
</Tooltip> |
|
|
|
</Col> |
|
|
|
<Col span={12}> |
|
|
|
<span style={{ width:'28%', float: 'left', textAlign: 'right', color: 'rgba(0, 0, 0, 0.85)', lineHeight: '32px' }} >沟通背景:</span> |
|
|
|
<Input style={{ width: '68%', float: 'left' }} disabled /> |
|
|
|
<span style={{ width: '28%', float: 'left', textAlign: 'right', color: 'rgba(0, 0, 0, 0.85)', lineHeight: '32px' }} >沟通背景:</span> |
|
|
|
<Tooltip content={dataToDetail.background}> |
|
|
|
<div style={{ |
|
|
|
textOverflow: 'ellipsis', overflow: 'hidden', whiteSpace: 'nowrap', width: '68%', height: '32px', lineHeight: '32px', background: 'rgba(243,243,243,0.7)', fontSize: '14px', padding: '0 12px', borderRadius: '2px', cursor: 'not-allowed', color: 'rgba(0,0,0,0.3)' |
|
|
|
}}>{dataToDetail.background}</div> |
|
|
|
</Tooltip> |
|
|
|
</Col> |
|
|
|
</Row> |
|
|
|
<div style={{ fontWeight: 'bold',marginBottom:15 }}>面谈的主要内容</div> |
|
|
|
<div style={{ fontWeight: 'bold', marginBottom: 15 }}>面谈的主要内容</div> |
|
|
|
<Row style={{ marginBottom: '30px' }}> |
|
|
|
<Col span={12}> |
|
|
|
<span style={{ width:'28%', float: 'left', textAlign: 'right', color: 'rgba(0, 0, 0, 0.85)', lineHeight: '32px' }} >实际沟通时间:</span> |
|
|
|
<Input style={{ width: '68%', float: 'left' }} disabled /> |
|
|
|
<span style={{ width: '28%', float: 'left', textAlign: 'right', color: 'rgba(0, 0, 0, 0.85)', lineHeight: '32px' }} >实际沟通时间:</span> |
|
|
|
<Input value={moment(dataToDetail.communicateDate).format('YYYY-MM-DD')} style={{ width: '68%', float: 'left' }} disabled /> |
|
|
|
</Col> |
|
|
|
<Col span={12}> |
|
|
|
<span style={{ width:'28%', float: 'left', textAlign: 'right', color: 'rgba(0, 0, 0, 0.85)', lineHeight: '32px' }} >沟通内容:</span> |
|
|
|
<Input style={{ width: '68%', float: 'left' }} disabled /> |
|
|
|
<span style={{ width: '28%', float: 'left', textAlign: 'right', color: 'rgba(0, 0, 0, 0.85)', lineHeight: '32px' }} >沟通内容:</span> |
|
|
|
<Tooltip content={dataToDetail.communicateContent}> |
|
|
|
<div style={{ |
|
|
|
textOverflow: 'ellipsis', overflow: 'hidden', whiteSpace: 'nowrap', width: '68%', height: '32px', lineHeight: '32px', background: 'rgba(243,243,243,0.7)', fontSize: '14px', padding: '0 12px', borderRadius: '2px', cursor: 'not-allowed', color: 'rgba(0,0,0,0.3)' |
|
|
|
}}>{dataToDetail.communicateContent}</div> |
|
|
|
</Tooltip> |
|
|
|
</Col> |
|
|
|
</Row> |
|
|
|
<div style={{ fontWeight: 'bold',marginBottom:15 }}>沟通人意见反馈</div> |
|
|
|
<div style={{ fontWeight: 'bold', marginBottom: 15 }}>沟通人意见反馈</div> |
|
|
|
<Row style={{ marginBottom: '30px' }}> |
|
|
|
<Col span={24}> |
|
|
|
<span style={{ width:'25%', float: 'left', textAlign: 'right', color: 'rgba(0, 0, 0, 0.85)', lineHeight: '32px' }} >反馈获取的信息与处理建议:</span> |
|
|
|
<Input style={{ width: '73%', float: 'left' }} disabled /> |
|
|
|
<span style={{ width: '25%', float: 'left', textAlign: 'right', color: 'rgba(0, 0, 0, 0.85)', lineHeight: '32px' }} >反馈获取的信息与处理建议:</span> |
|
|
|
<TextArea autosize rows={1} value={dataToDetail.suggestion} style={{ width: '73%', float: 'left' }} disabled /> |
|
|
|
</Col> |
|
|
|
</Row> |
|
|
|
<Row style={{ marginBottom: '30px' }}> |
|
|
|
<Col span={24}> |
|
|
|
<span style={{ width:'25%', float: 'left', textAlign: 'right', color: 'rgba(0, 0, 0, 0.85)', lineHeight: '32px' }} >沟通成果:</span> |
|
|
|
<Input style={{ width: '73%', float: 'left' }} disabled /> |
|
|
|
<span style={{ width: '25%', float: 'left', textAlign: 'right', color: 'rgba(0, 0, 0, 0.85)', lineHeight: '32px' }} >沟通成果:</span> |
|
|
|
<TextArea autosize rows={1} value={dataToDetail.communicateResult} style={{ width: '73%', float: 'left' }} disabled /> |
|
|
|
</Col> |
|
|
|
</Row> |
|
|
|
<Row style={{ marginBottom: '30px' }}> |
|
|
|
<Col span={24}> |
|
|
|
<span style={{ width:'25%', float: 'left', textAlign: 'right', color: 'rgba(0, 0, 0, 0.85)', lineHeight: '32px' }} >对被沟通人近期表现的评价:</span> |
|
|
|
<Input style={{ width: '73%', float: 'left' }} disabled /> |
|
|
|
<span style={{ width: '25%', float: 'left', textAlign: 'right', color: 'rgba(0, 0, 0, 0.85)', lineHeight: '32px' }} >对被沟通人近期表现的评价:</span> |
|
|
|
<TextArea autosize rows={1} value={dataToDetail.valuation} style={{ width: '73%', float: 'left' }} disabled /> |
|
|
|
</Col> |
|
|
|
</Row> |
|
|
|
<Row style={{ marginBottom: '30px' }}> |
|
|
|
<Col span={24}> |
|
|
|
<span style={{ width:'25%', float: 'left', textAlign: 'right', color: 'rgba(0, 0, 0, 0.85)', lineHeight: '32px' }} >给予被沟通人的改进建议:</span> |
|
|
|
<Input style={{ width: '73%', float: 'left' }} disabled /> |
|
|
|
<span style={{ width: '25%', float: 'left', textAlign: 'right', color: 'rgba(0, 0, 0, 0.85)', lineHeight: '32px' }} >给予被沟通人的改进建议:</span> |
|
|
|
<TextArea autosize rows={1} value={dataToDetail.toPersonSugges} style={{ width: '73%', float: 'left' }} disabled /> |
|
|
|
</Col> |
|
|
|
</Row> |
|
|
|
<div style={{ fontWeight: 'bold',marginBottom:15 }}>被沟通人意见反馈</div> |
|
|
|
<div style={{ fontWeight: 'bold', marginBottom: 15 }}>被沟通人意见反馈</div> |
|
|
|
<Row style={{ marginBottom: '30px' }}> |
|
|
|
<Col span={24}> |
|
|
|
<span style={{ width:'25%', float: 'left', textAlign: 'right', color: 'rgba(0, 0, 0, 0.85)', lineHeight: '32px' }} >沟通情况反馈:</span> |
|
|
|
<Input style={{ width: '73%', float: 'left' }} disabled /> |
|
|
|
<span style={{ width: '25%', float: 'left', textAlign: 'right', color: 'rgba(0, 0, 0, 0.85)', lineHeight: '32px' }} >沟通情况反馈:</span> |
|
|
|
<TextArea autosize rows={1} value={dataToDetail.communicateCondition} style={{ width: '73%', float: 'left' }} disabled /> |
|
|
|
</Col> |
|
|
|
</Row> |
|
|
|
<Row style={{ marginBottom: '30px' }}> |
|
|
|
<Col span={24}> |
|
|
|
<span style={{ width:'25%', float: 'left', textAlign: 'right', color: 'rgba(0, 0, 0, 0.85)', lineHeight: '32px' }} >培训需求:</span> |
|
|
|
<Input style={{ width: '73%', float: 'left' }} disabled /> |
|
|
|
<span style={{ width: '25%', float: 'left', textAlign: 'right', color: 'rgba(0, 0, 0, 0.85)', lineHeight: '32px' }} >培训需求:</span> |
|
|
|
<TextArea autosize rows={1} value={dataToDetail.training} style={{ width: '73%', float: 'left' }} disabled /> |
|
|
|
</Col> |
|
|
|
</Row> |
|
|
|
<Row style={{ marginBottom: '30px' }}> |
|
|
|
<Col span={24}> |
|
|
|
<span style={{ width:'25%', float: 'left', textAlign: 'right', color: 'rgba(0, 0, 0, 0.85)', lineHeight: '32px' }} >下一步工作计划活提升方向:</span> |
|
|
|
<Input style={{ width: '73%', float: 'left' }} disabled /> |
|
|
|
<span style={{ width: '25%', float: 'left', textAlign: 'right', color: 'rgba(0, 0, 0, 0.85)', lineHeight: '32px' }} >下一步工作计划活提升方向:</span> |
|
|
|
<TextArea autosize rows={1} value={dataToDetail.nextPlan} style={{ width: '73%', float: 'left' }} disabled /> |
|
|
|
</Col> |
|
|
|
</Row> |
|
|
|
</Modal > |
|
|
@ -112,11 +120,9 @@ const DetailModal = (props) => { |
|
|
|
} |
|
|
|
|
|
|
|
function mapStateToProps(state) { |
|
|
|
const { auth, global } = state; |
|
|
|
const { auth } = state; |
|
|
|
return { |
|
|
|
user: auth.user, |
|
|
|
actions: global.actions, |
|
|
|
apiRoot: global.apiRoot |
|
|
|
}; |
|
|
|
} |
|
|
|
|
|
|
|