import React, { PureComponent } from "react"; import Person from "./PersonMessage"; import Attendance from "./Attendance"; import Event from "./EventList"; import PersonSearchList from "./Attendance/PersonSearchList"; import "./index.less"; import { connect } from "dva"; import { Tabs, Button } from "antd"; const { TabPane } = Tabs; @connect((state) => ({ selectedAttenData: state.command.attendanceList.selectedAttenData, tabIndex: state.command.tabIndex, })) export default class SearchListTab extends PureComponent { constructor(props) { super(props); this.state = { buttonStatus: true, //true是打开,false是关闭 }; } render() { return (
{!this.props.selectedAttenData && (
{ this.props.dispatch({ type: "command/setTabIndex", payload: { tabIndex1: index, }, }); this.props.dispatch({ type: "command/clearInfoWindow", payload: true, }); }} > {/* */} { this.props.changeImStatus(value); }} groupVideo={(list) => { this.props.groupVideo(list); }} />
)}
{this.props.selectedAttenData && ( )}
); } }