import React, {Component} from 'react';
import {Select} from 'antd';
import {observer} from 'mobx-react';


class SiteSelect extends Component {
    constructor(props) {
        super(props);
    }


    render() {
        const store = this.props.store;
        return (
            <div>
                <Select
                    mode={store.site_select_mode}
                    style={{width: '100%'}}
                    placeholder="选择来源"
                    defaultValue={store.webcode}
                    onChange={store.handleChange_webcode}
                >
                    {this.props.show_all ? <Select.Option key="1" value="ALL">所有来源</Select.Option> : ''}
                    <Select.Option key="2" value="CHT">CHT</Select.Option>
                    <Select.Option key="8" value="AH">AH</Select.Option>
                    <Select.Option key="163" value="GH">GH</Select.Option>
                    <Select.Option key="28" value="GHKYZG">客运中国</Select.Option>
                    <Select.Option key="7" value="GHKYHW">客运海外</Select.Option>
                    <Select.Option key="172" value="GHTOB">GH to B业务</Select.Option>
                    <Select.Option key="11,12,20,21,10,18" value="JP,VAC,IT,GM,RU,VC">国际（入境）</Select.Option>
                    <Select.Option key="122,200,211,100,188" value="VACHW,ITHW,GMHW,RUHW,VCHW">国际（海外）</Select.Option>
                    <Select.Option key="11" value="JP">日语</Select.Option>
                    <Select.Option key="12" value="VAC">西语</Select.Option>
                    <Select.Option key="122" value="VACHW">西语海外</Select.Option>
                    <Select.Option key="20" value="IT">意大利</Select.Option>
                    <Select.Option key="200" value="ITHW">意大利海外</Select.Option>
                    <Select.Option key="21" value="GM">德语</Select.Option>
                    <Select.Option key="211" value="GMHW">德语海外</Select.Option>
                    <Select.Option key="10" value="RU">俄语</Select.Option>
                    <Select.Option key="100" value="RUHW">俄语海外</Select.Option>
                    <Select.Option key="18" value="VC">法语</Select.Option>
                    <Select.Option key="188" value="VCHW">法语海外</Select.Option>
                    <Select.Option key="16" value="CT">CT</Select.Option>
                    <Select.Option key="30" value="trippest">TP</Select.Option>
                    <Select.Option key="31" value="HLY">花梨鹰</Select.Option>
                </Select>
            </div>
        );
    }
}

export default observer(SiteSelect);

