import { Select } from "antd"; import { connect } from "dva/index"; import { Component } from "react"; import { businessStateEnum } from "@/utils/utils"; import styles from "./index.less"; @connect(({ store }) => ({ store, })) export default class BusinessStateSelector extends Component { constructor(props) { super(props); this.state = { stateList: Object.keys(businessStateEnum).map((key) => ({ name: businessStateEnum[key], value: key, })), currentBusinessState: "", }; } handleChange = (value) => { this.setState({ currentBusinessState: value }); }; componentDidMount() { // dispatch({ // type: "store/get_business_state", // callback: (res) => {}, // }); } render() { const { stateList, currentBusinessState } = this.state; return stateList.length ? (
经营状态
) : null; } }