import React, { PureComponent } from "react"; import PersonList from './PersonList'; import AttendanceList from './AttendanceList'; import { connect } from "dva"; import { Tabs } from "antd"; import { policeAddPictueMarks, policeReduceMarks } from '../../../GIS/Police/EventListTab/func'; import '../../../../Command/command.less' const { TabPane } = Tabs; @connect((state) => ({ selectedId: state.command.policeData.selectedId, mapStyle: state.command.mapStyle })) export default class EventListTab extends PureComponent { constructor(props) { super(props); this.state = { clickTab: '1',//当前是哪个tab }; } render() { const {mapStyle} =this.props return (