import{r as s,j as t}from"./app-61e75031.js";import{C as e}from"./index-0af180fb.js";import{C as a}from"./index-33422928.js";import{r as i,g as l,i as o}from"./local-95ab843f.js";import{C as r}from"./index-1db4bfc2.js";import{i as n}from"./dom-ce105537.js";import"./auth-db23b820.js";class h extends s.Component{constructor(s){super(s),this.valueChange=(s,t)=>{this.setState({[t]:s})},this.getSymb=async()=>{const s=await i();this.setState({SymbolOptions:s})},this.state={user:"",status:"",userSelect:{label:"用户",options:l()},SymbolOptions:[]}}onFilter(s){this.props.FilterChange&&this.props.FilterChange(s)}componentDidMount(){this.getSymb()}render(){const{userSelect:s}=this.state;return t.jsxs("div",{className:[o()?"custom-trade-select-box__mobile":""].join(" "),children:[t.jsxs("div",{className:["custom-trade-select-box"].join(" "),children:[t.jsxs("div",{className:"custom-trade-select",children:[t.jsx("span",{className:"label",children:s.label}),t.jsx(e,{className:"real-trade-select",name:"user",value:this.state.user,options:s.options,onChange:this.valueChange})]}),t.jsxs("div",{className:"custom-trade-input",children:[t.jsx("span",{className:"label",children:"交易对"}),t.jsx(e,{value:this.state.pairs,name:"pairs",options:this.state.SymbolOptions,filterable:!0,className:"trade-dialog-select",clearable:!0,multiple:!1,autoWidth:!1,popupProps:{overlayClassName:"trade-dialog-select__overlay"},onChange:this.valueChange})]}),t.jsxs("div",{className:"custom-trade-input",style:{display:n("2"===this.props.tableType)},children:[t.jsx("span",{className:"label",children:"状态"}),t.jsx(r,{name:"status",type:"text",onChange:this.valueChange,value:this.state.status})]}),t.jsx(a,{onClick:this.onFilter.bind(this,{exchange_users_id:this.state.user,symbol:this.state.pairs,status:this.state.status}),children:"查询"}),t.jsx(a,{onClick:this.onFilter.bind(this,{exchange_users_id:this.state.user,symbol:this.state.pairs,status:this.state.status}),children:"刷新"})]}),this.props.children]})}}export{h as default};
