diff --git a/web/client/src/sections/humanAffairs/containers/communication/detailModal.js b/web/client/src/sections/humanAffairs/containers/communication/detailModal.js index 7167e01..44f202d 100644 --- a/web/client/src/sections/humanAffairs/containers/communication/detailModal.js +++ b/web/client/src/sections/humanAffairs/containers/communication/detailModal.js @@ -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 ( { > - 被沟通人: - + 被沟通人: + - 岗位: - + 岗位: + - 部门: - + 部门: + - 沟通截止时间: - + 沟通截止时间: + - 沟通主题: - + 沟通主题: + + {dataToDetail.topic} + - 沟通背景: - + 沟通背景: + + {dataToDetail.background} + - 面谈的主要内容 + 面谈的主要内容 - 实际沟通时间: - + 实际沟通时间: + - 沟通内容: - + 沟通内容: + + {dataToDetail.communicateContent} + - 沟通人意见反馈 + 沟通人意见反馈 - 反馈获取的信息与处理建议: - + 反馈获取的信息与处理建议: + - 沟通成果: - + 沟通成果: + - 对被沟通人近期表现的评价: - + 对被沟通人近期表现的评价: + - 给予被沟通人的改进建议: - + 给予被沟通人的改进建议: + - 被沟通人意见反馈 + 被沟通人意见反馈 - 沟通情况反馈: - + 沟通情况反馈: + - 培训需求: - + 培训需求: + - 下一步工作计划活提升方向: - + 下一步工作计划活提升方向: + @@ -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 }; } diff --git a/web/client/src/sections/humanAffairs/containers/communication/employeeCommunication.jsx b/web/client/src/sections/humanAffairs/containers/communication/employeeCommunication.jsx index 5cf3825..b51614f 100644 --- a/web/client/src/sections/humanAffairs/containers/communication/employeeCommunication.jsx +++ b/web/client/src/sections/humanAffairs/containers/communication/employeeCommunication.jsx @@ -15,7 +15,7 @@ const EmployeeCommunication = (props) => { const [timeRange, setTimeRange] = useState('');//沟通时间范围 const [limits, setLimits] = useState()//每页实际条数 const [query, setQuery] = useState({ limit: 10, page: 0 }); //页码信息 - const [modalV, setModalV] = useState(true); + const [modalV, setModalV] = useState(false); const [dataToDetail, setDataToDetail] = useState(null); const [tableData, setTableData] = useState([]); const page = useRef(query.page); @@ -64,27 +64,17 @@ const EmployeeCommunication = (props) => { title: '岗位', dataIndex: 'job', key: 'job', - width: 100, + width: 120, }, { title: '部门', dataIndex: 'departmentName', key: 'departmentName', width: 120, - render: (t, r) => { - return ( - {r.departmentName} - ) - } }, { title: '沟通时间', dataIndex: 'communicateDate', key: 'communicateDate', - width: 120, + width: 120, render: (text, record) => {text ? moment(text).format("YYYY-MM-DD") : '-'} }, { title: '沟通内容', @@ -191,9 +181,9 @@ const EmployeeCommunication = (props) => { setModalV(false) } - function handleChange (date) { + function handleChange(date) { if (date.length > 1) { - setTimeRange(moment(date[0]).format('YYYY-MM-DD 00:00:00')+','+moment(date[1]).format('YYYY-MM-DD 23:59:59')) + setTimeRange(moment(date[0]).format('YYYY-MM-DD 00:00:00') + ',' + moment(date[1]).format('YYYY-MM-DD 23:59:59')) } else { setTimeRange(''); @@ -305,7 +295,7 @@ const EmployeeCommunication = (props) => { } function mapStateToProps(state) { - const { auth, global, SalesMemberList } = state; + const { auth, global } = state; return { user: auth.user, actions: global.actions,