import { connect } from 'dva/index'; import React, { Component } from 'react'; import { Form, Tabs } from 'antd'; import { sldLlineRtextAddGoodsAddMargin,sldComLanguage } from '@/utils/utils'; import global from '@/global.less'; import DiyLists from './diy_lists'; import InstanceTemplateLists from './instance_template_lists'; import BusinessStateSelector from "@/components/BusinessStateSelector" const TabPane = Tabs.TabPane; @connect(({ product }) => ({ product, })) @Form.create() export default class StorePCDiyIndex extends Component { constructor(props) { super(props); this.state = { activeKey: '1', }; } componentDidMount() { if(this.props.location.query.tab!=undefined&&this.props.location.query.tab){ this.setState({activeKey:this.props.location.query.tab}) } } onHandleTabClick = (e) => { this.setState({activeKey:e}) } render() { const {activeKey} = this.state; return (