mirror of
https://github.com/v2board/v2board.git
synced 2024-11-10 17:49:11 +08:00
1 line
21 KiB
JavaScript
Vendored
1 line
21 KiB
JavaScript
Vendored
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[14],{Bl7J:function(e,t,a){"use strict";var i=a("q1tI"),n=a.n(i),s=a("3a4m"),l=a.n(s),r=a("/MKj"),c=a("20nU"),m=a("yWgo");class o extends n.a.Component{constructor(){super(...arguments),this.state={nav:[]}}componentDidMount(){var e=[{title:"\u4eea\u8868\u76d8",type:"item",href:"/dashboard",icon:n.a.createElement("i",{className:"nav-main-link-icon si si-speedometer"})},{title:"\u8ba2\u9605",type:"heading"},{title:"\u6211\u7684\u8ba2\u9605",type:"item",href:"/subscribe",icon:n.a.createElement("i",{className:"nav-main-link-icon si si-badge"})},{title:"\u8d2d\u4e70\u8ba2\u9605",type:"item",href:"/plan",icon:n.a.createElement("i",{className:"nav-main-link-icon si si-bag"})},{title:"\u8d22\u52a1",type:"heading"},{title:"\u6211\u7684\u8ba2\u5355",type:"item",href:"/order",icon:n.a.createElement("i",{className:"nav-main-link-icon si si-list"})},{title:"\u6211\u7684\u9080\u8bf7",type:"item",href:"/invite",icon:n.a.createElement("i",{className:"nav-main-link-icon si si-users"})},{title:"\u7528\u6237",type:"heading"},{title:"\u4e2a\u4eba\u4e2d\u5fc3",type:"item",href:"/profile",icon:n.a.createElement("i",{className:"nav-main-link-icon si si-user"})},{title:"\u6211\u7684\u5de5\u5355",type:"item",href:"/ticket",icon:n.a.createElement("i",{className:"nav-main-link-icon si si-support"})},{title:"\u6d41\u91cf\u660e\u7ec6",type:"item",href:"/traffic",icon:n.a.createElement("i",{className:"nav-main-link-icon si si-bar-chart"})},{title:"\u4f7f\u7528\u6559\u7a0b",type:"item",href:"/tutorial",icon:n.a.createElement("i",{className:"nav-main-link-icon si si-book-open"})}],t=[{title:"\u8fd4\u56de\u7528\u6237\u4e2d\u5fc3",type:"item",href:"/dashboard",icon:n.a.createElement("i",{className:"nav-main-link-icon si si-action-undo"})},{title:"\u4eea\u8868\u76d8",type:"item",href:"/admin/dashboard",icon:n.a.createElement("i",{className:"nav-main-link-icon si si-speedometer"})},{title:"\u8bbe\u7f6e",type:"heading"},{title:"\u7cfb\u7edf\u914d\u7f6e",type:"item",href:"/admin/config/system",icon:n.a.createElement("i",{className:"nav-main-link-icon si si-equalizer"})},{title:"\u652f\u4ed8\u914d\u7f6e",type:"item",href:"/admin/config/payment",icon:n.a.createElement("i",{className:"nav-main-link-icon si si-credit-card"})},{title:"\u670d\u52a1\u5668",type:"heading"},{title:"\u8282\u70b9\u7ba1\u7406",type:"item",href:"/admin/server",icon:n.a.createElement("i",{className:"nav-main-link-icon si si-vector"})},{title:"\u6743\u9650\u7ec4\u7ba1\u7406",type:"item",href:"/admin/server/group",icon:n.a.createElement("i",{className:"nav-main-link-icon si si-wrench"})},{title:"\u8d22\u52a1",type:"heading"},{title:"\u8ba2\u9605\u7ba1\u7406",type:"item",href:"/admin/plan",icon:n.a.createElement("i",{className:"nav-main-link-icon si si-bag"})},{title:"\u8ba2\u5355\u7ba1\u7406",type:"item",href:"/admin/order",icon:n.a.createElement("i",{className:"nav-main-link-icon si si-list"})},{title:"\u4f63\u91d1\u7ba1\u7406",type:"item",href:"/admin/commission",icon:n.a.createElement("i",{className:"nav-main-link-icon si si-user-following"})},{title:"\u4f18\u60e0\u5238\u7ba1\u7406",type:"item",href:"/admin/coupon",icon:n.a.createElement("i",{className:"nav-main-link-icon si si-present"})},{title:"\u7528\u6237",type:"heading"},{title:"\u7528\u6237\u7ba1\u7406",type:"item",href:"/admin/user",icon:n.a.createElement("i",{className:"nav-main-link-icon si si-users"})},{title:"\u516c\u544a\u7ba1\u7406",type:"item",href:"/admin/notice",icon:n.a.createElement("i",{className:"nav-main-link-icon si si-speech"})},{title:"\u5de5\u5355\u7ba1\u7406",type:"item",href:"/admin/ticket",icon:n.a.createElement("i",{className:"nav-main-link-icon si si-support"})},{title:"\u6559\u7a0b\u7ba1\u7406",type:"item",href:"/admin/tutorial",icon:n.a.createElement("i",{className:"nav-main-link-icon si si-bulb"})}];Object(m["c"])("is_admin")&&e.unshift({title:"\u8fd4\u56de\u7ba1\u7406\u4e2d\u5fc3",type:"item",href:"/admin/dashboard",icon:n.a.createElement("i",{className:"nav-main-link-icon si si-action-undo"})}),this.isAdmin()?this.setState({nav:t}):this.setState({nav:e})}renderMenu(e,t,a,i){switch(e){case"heading":return n.a.createElement("li",{className:"nav-main-heading"},t);case"item":return n.a.createElement("li",{className:"nav-main-item"},n.a.createElement("a",{className:"nav-main-link ".concat(this.props.location.pathname===a&&"active"),onClick:()=>{l.a.push(a),this.props.dispatch({type:"header/showNav"})}},i&&i,n.a.createElement("span",{className:"nav-main-link-name"},t)))}}isAdmin(){return-1!==this.props.location.pathname.indexOf("admin")}render(){return n.a.createElement("nav",{id:"sidebar","aria-label":"Main Navigation"},n.a.createElement("div",{className:"smini-visible-block"},n.a.createElement("div",{className:"content-header bg-black-10"},n.a.createElement("a",{className:"link-fx font-size-lg text-white",href:"index.html"},n.a.createElement("span",{className:"text-white-75"},"X"),n.a.createElement("span",{className:"text-white"},"H")))),n.a.createElement("div",{className:"smini-hidden ".concat(1===c["a"].theme?"":"bg-header-dark")},n.a.createElement("div",{className:"content-header justify-content-lg-center bg-black-10"},n.a.createElement("a",{className:"link-fx font-size-lg text-white",href:"index.html"},n.a.createElement("span",{className:"text-white-75"},window.v2board.title?window.v2board.title:"V2Board")),n.a.createElement("div",{className:"d-lg-none"},n.a.createElement("a",{className:"text-white ml-2","data-toggle":"layout","data-action":"sidebar_close",href:"javascript:void(0)",onClick:()=>this.props.dispatch({type:"header/showNav"})},n.a.createElement("i",{className:"fa fa-times-circle"}))))),n.a.createElement("div",{className:"content-side content-side-full"},n.a.createElement("ul",{className:"nav-main"},this.state.nav.map(e=>{return this.renderMenu(e.type,e.title,e.href,e.icon)}))))}}var d=Object(r["c"])(e=>{var t=e.header;return{header:t}})(o),h=a("t3Un");class p extends n.a.Component{constructor(){super(...arguments),this.state={showAvatarMenu:!1,loading:!1,showSearchBar:!1}}componentDidMount(){var e=this;this.props.header.userInfo.email||this.setState({loading:!0},()=>{this.props.dispatch({type:"header/getUserInfo",complete:()=>e.setState({loading:!1})})})}showAvatarMenu(){var e=this;this.setState({showAvatarMenu:!this.state.showAvatarMenu},()=>{document.onclick=function(t){e.state.showAvatarMenu&&e.setState({showAvatarMenu:!1}),document.onclick=void 0}})}logout(){Object(h["a"])("/user/logout").then(e=>{l.a.push("/login")})}render(){return n.a.createElement("header",{id:"page-header"},n.a.createElement("div",{className:"content-header"},n.a.createElement("div",{className:"sidebar-toggle",style:{display:this.props.search?"block":"none"}},n.a.createElement("button",{type:"button",className:"btn btn-dual mr-1 d-lg-none","data-toggle":"layout","data-action":"sidebar_toggle",onClick:()=>this.props.dispatch({type:"header/showNav"})},n.a.createElement("i",{className:"fa fa-fw fa-bars"})),this.props.search&&n.a.createElement("button",{type:"button",className:"btn btn-dual",onClick:()=>{this.setState({showSearchBar:!0})}},n.a.createElement("i",{className:"fa fa-fw fa-search"})," ",n.a.createElement("span",{className:"ml-1 d-none d-sm-inline-block"},"\u641c\u7d22"))),n.a.createElement("div",null),n.a.createElement("div",null,this.state.loading?n.a.createElement("div",{className:"spinner-grow text-primary"}):n.a.createElement("div",{className:"dropdown d-inline-block"},n.a.createElement("button",{type:"button",className:"btn btn-dual",id:"page-header-user-dropdown","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false",onClick:()=>this.showAvatarMenu()},n.a.createElement("img",{className:"img-avatar img-avatar32 img-avatar-thumb",src:this.props.header.userInfo.avatar_url,alt:""}),n.a.createElement("span",{className:"d-none d-lg-inline ml-1"},this.props.header.userInfo.email),n.a.createElement("i",{className:"fa fa-fw fa-angle-down ml-1"})),n.a.createElement("div",{className:"dropdown-menu dropdown-menu-right dropdown-menu-lg p-0 ".concat(this.state.showAvatarMenu&&"show"),"aria-labelledby":"page-header-user-dropdown"},n.a.createElement("div",{className:"p-2"},n.a.createElement("a",{className:"dropdown-item d-flex justify-content-between align-items-center",href:"javascript:void(0)",onClick:()=>this.logout()},"\u9000\u51fa\u767b\u5f55",n.a.createElement("i",{className:"fa fa-fw fa-sign-out-alt text-danger ml-1"}))))))),this.props.search&&n.a.createElement("div",{className:"overlay-header bg-dark ".concat(this.state.showSearchBar?"show":"")},n.a.createElement("div",{className:"content-header bg-dark"},n.a.createElement("div",{className:"w-100"},n.a.createElement("div",{className:"input-group"},n.a.createElement("div",{className:"input-group-prepend"},n.a.createElement("button",{type:"button",className:"btn btn-dark",onClick:()=>{this.setState({showSearchBar:!1})}},n.a.createElement("i",{className:"fa fa-fw fa-times-circle"}))),n.a.createElement("input",{type:"text",className:"form-control border-0",placeholder:this.props.search.placeholder,onChange:e=>this.props.search.onChange(e.target.value),defaultValue:this.props.search.defaultValue}))))))}}var u=Object(r["c"])(e=>{var t=e.header;return{header:t}})(p);class v extends n.a.Component{render(){return n.a.createElement("footer",{id:"page-footer",className:"bg-body-light"},n.a.createElement("div",{className:"content py-0"},n.a.createElement("div",{className:"row font-size-sm"},n.a.createElement("div",{className:"col-sm-6 order-sm-2 mb-1 mb-sm-0 text-center text-sm-right"},n.a.createElement("i",{className:"fa fa-heart text-danger"})," ",window.v2board.title?window.v2board.title:"V2Board"),n.a.createElement("div",{className:"col-sm-6 order-sm-1 text-center text-sm-left"},n.a.createElement("a",{className:"font-w600",href:"javascript:void(0)"},window.v2board.title?window.v2board.title:"V2Board"," v1.0.2"),n.a.createElement("span",{"data-toggle":"year-copy"})))))}}class g extends n.a.Component{render(){return n.a.createElement("div",{id:"page-container",className:"sidebar-o ".concat(1===c["a"].theme?"sidebar-dark":"page-header-dark"," side-scroll page-header-fixed main-content-boxed side-trans-enabled ").concat(this.props.header.showNav&&"sidebar-o-xs")},n.a.createElement(d,this.props),n.a.createElement(u,{search:this.props.search}),this.props.loading?n.a.createElement("main",{id:"main-container"},n.a.createElement("div",{className:"content content-full"},n.a.createElement("div",{className:"spinner-grow text-primary",role:"status"},n.a.createElement("span",{className:"sr-only"},"Loading...")))):this.props.children,n.a.createElement(v,null))}}t["a"]=Object(r["c"])(e=>{var t=e.header;return{header:t}})(g)},LbTH:function(e,t,a){"use strict";t["a"]={cycleText:{month_price:"\u6708\u4ed8",quarter_price:"\u5b63\u4ed8",half_year_price:"\u534a\u5e74\u4ed8",year_price:"\u5e74\u4ed8"},orderStatusText:["\u5f85\u652f\u4ed8","\u5f00\u901a\u4e2d","\u5df2\u53d6\u6d88","\u5df2\u5b8c\u6210"],commissionStatusText:["\u786e\u8ba4\u4e2d","\u5df2\u786e\u8ba4","\u5df2\u5b8c\u6210"],ticketStatusText:["\u5f00\u542f","\u5f85\u56de\u590d","\u5f85\u7b54\u590d","\u5173\u95ed"]}},blCH:function(e,t,a){"use strict";a.r(t);var i=a("jehZ"),n=a.n(i),s=(a("2qtc"),a("kLXV")),l=(a("OaEy"),a("2fM7")),r=(a("iQDF"),a("+eQT")),c=(a("5NDa"),a("5rEg")),m=(a("g9YV"),a("wCAj")),o=(a("qVdP"),a("jsC+")),d=(a("+L6B"),a("2/Rp")),h=(a("lUTK"),a("BvKs")),p=(a("Awhp"),a("KrTs")),u=(a("5Dmo"),a("3S7+")),v=(a("Pwec"),a("CtXQ")),g=a("p0pE"),b=a.n(g),f=a("q1tI"),E=a.n(f),y=a("Bl7J"),N=a("t3Un");class w extends E.a.Component{constructor(){super(...arguments),this.state={submit:{}}}onOk(){Object(N["b"])("/admin/mail/send",b()({type:this.props.receiveType,receiver:this.props.receiver},this.state.submit)).then(e=>{200===e.code&&this.onClose()})}onClose(){this.props.onClose(),this.setState({submit:{}})}render(){return E.a.createElement(s["a"],{visible:this.props.receiveType,title:"\u53d1\u9001\u90ae\u4ef6",onCancel:this.onClose.bind(this),onOk:this.onOk.bind(this)},E.a.createElement("div",null,E.a.createElement("div",{className:"form-group"},E.a.createElement("label",{for:"example-text-input-alt"},"\u6536\u4ef6\u4eba"),E.a.createElement(c["a"],{disabled:!0,value:1===this.props.receiveType?"\u5168\u90e8\u7528\u6237":"\u5df2\u9009\u62e9 ".concat(this.props.receiver.length," \u4f4d\u7528\u6237")})),E.a.createElement("div",{className:"form-group"},E.a.createElement("label",{for:"example-text-input-alt"},"\u4e3b\u9898"),E.a.createElement(c["a"],{placeholder:"\u8bf7\u8f93\u5165\u90ae\u4ef6\u4e3b\u9898",value:this.state.submit.subject,onChange:e=>{this.setState({submit:b()({},this.state.submit,{subject:e.target.value})})}})),E.a.createElement("div",{className:"form-group"},E.a.createElement("label",{for:"example-text-input-alt"},"\u53d1\u9001\u5185\u5bb9"),E.a.createElement(c["a"].TextArea,{rows:12,value:this.state.submit.content,placeholder:"\u8bf7\u8f93\u5165\u90ae\u4ef6\u5185\u5bb9",onChange:e=>{this.setState({submit:b()({},this.state.submit,{content:e.target.value})})}}))))}}a("LbTH");var x=a("wd/R"),k=a.n(x);a.d(t,"default",function(){return C});class C extends E.a.Component{constructor(){super(...arguments),this.state={users:[],pagination:{current:1,pageSize:10,total:0},email:void 0,visible:!1,submit:{enable:1,banned:0,is_admin:0},loading:!0,plan:[],selectedRowKeys:[],selectedRows:[],selectedUserIds:[]}}componentDidMount(){this.fetchData(),this.getPlan(),this.props.location.query.email&&this.searchOnChange(this.props.location.query.email)}getPlan(){Object(N["a"])("/admin/plan/fetch").then(e=>{200===e.code&&this.setState({plan:e.data})})}paginationOnChange(e){this.setState({pagination:e},()=>this.fetchData())}fetchData(){var e;e=b()({},this.state.pagination),this.state.email&&Object.assign(e,{email:this.state.email}),Object(N["a"])("/admin/user/fetch",e).then(e=>{200===e.code&&this.setState({users:e.data,pagination:b()({},this.state.pagination,{total:e.total}),loading:!1})})}searchOnChange(e){this.inputDelayTimer&&clearTimeout(this.inputDelayTimer),this.inputDelayTimer=setTimeout(function(){this.inputDelayTimer=null,this.setState({email:e,pagination:b()({},this.state.pagination,{current:1})},()=>{this.fetchData()})}.bind(this),400)}modalVisible(){this.setState({visible:!this.state.visible},()=>{this.setState({submit:{enable:1,banned:0,is_admin:0}})})}formChange(e,t){this.setState({submit:b()({},this.state.submit,{[e]:t})})}edit(e){this.setState({submit:b()({},this.state.users[e],{password:"",transfer_enable:(this.state.users[e].transfer_enable/1073741824).toFixed(2)}),visible:!0})}submit(){var e=this.state.submit.id?"/admin/user/update":"";Object(N["b"])(e,this.state.submit).then(e=>{this.modalVisible(),this.fetchData()})}render(){var e=[{title:"#",dataIndex:"id",key:"id"},{title:"\u90ae\u7bb1",dataIndex:"email",key:"email"},{title:"\u8ba2\u9605",dataIndex:"plan_name",key:"plan_name",render:e=>{return e||"-"}},{title:E.a.createElement("span",null,"\u5728\u7ebf ",E.a.createElement(u["a"],{placement:"top",title:"\u7528\u6237\u534a\u5c0f\u65f6\u5185\u5728\u7ebf\u60c5\u51b5"},E.a.createElement(v["a"],{type:"question-circle"}))),dataIndex:"t",key:"t",align:"center",render:e=>{return E.a.createElement(p["a"],{status:(new Date).getTime()/1e3-1800>e?"default":"processing"})}},{title:"\u5df2\u7528\u6d41\u91cf(G)",dataIndex:"u",key:"u",render:(e,t)=>{return((t.u+t.d)/1073741824).toFixed(2)}},{title:"\u6d41\u91cf(G)",dataIndex:"transfer_enable",key:"transfer_enable",render:(e,t)=>{return(e/1073741824).toFixed(2)}},{title:"\u5230\u671f\u65f6\u95f4",dataIndex:"expired_at",key:"expired_at",render:e=>{return e?k()(1e3*e).format("YYYY/MM/DD HH:mm"):"-"}},{title:"\u52a0\u5165\u65f6\u95f4",dataIndex:"created_at",key:"created_at",render:e=>{return k()(1e3*e).format("YYYY/MM/DD HH:mm")}},{title:"\u64cd\u4f5c",dataIndex:"action",key:"action",align:"right",render:(e,t,a)=>{return E.a.createElement("div",null,E.a.createElement("a",{onClick:()=>this.edit(a),href:"javascript:void(0)"},"\u7f16\u8f91"))}}];return console.log(this.state.selectedUserIds),E.a.createElement(y["a"],n()({},this.props,{search:{placeholder:"\u901a\u8fc7\u90ae\u7bb1\u641c\u7d22",onChange:e=>this.searchOnChange(e),defaultValue:this.state.email},loading:this.state.loading}),E.a.createElement("main",{id:"main-container"},E.a.createElement("div",{className:"content content-full"},E.a.createElement("div",{className:"d-flex justify-content-between align-items-center"},E.a.createElement("h2",{className:"font-w300 mt-4 mb-3"},"\u7528\u6237\u7ba1\u7406")),E.a.createElement("div",{className:"bg-white"},E.a.createElement("div",{className:"p-3"},E.a.createElement(o["a"],{overlay:E.a.createElement(h["a"],null,E.a.createElement(h["a"].Item,{onClick:()=>this.setState({receiveType:2}),disabled:this.state.selectedUserIds.length<=0},"\u52fe\u9009\u7528\u6237"),E.a.createElement(h["a"].Item,{onClick:()=>this.setState({receiveType:1})},"\u5168\u90e8\u7528\u6237")),placement:"bottomLeft"},E.a.createElement(d["a"],{type:"primary"},E.a.createElement("i",{className:"fa fa-envelope mr-2"}),"\u53d1\u9001\u5230"))),E.a.createElement(m["a"],{rowSelection:{fixed:!0,selectedRowKeys:this.state.selectedRowKeys[this.state.pagination.current-1],onChange:(e,t)=>{var a=this.state,i=a.selectedRowKeys,n=a.selectedRows,s=a.selectedUserIds;t.map((e,a)=>{t[a]=e.id}),i[this.state.pagination.current-1]=e,n[this.state.pagination.current-1]=t,s=[],n.map(e=>{s=s.concat(e)}),this.setState({selectedRowKeys:i,selectedRows:n,selectedUserIds:s})}},dataSource:this.state.users,pagination:b()({},this.state.pagination,{size:"small"}),columns:e,scroll:{x:1100},onChange:e=>this.paginationOnChange(e)})))),E.a.createElement(s["a"],{title:"".concat(this.state.submit.id?"\u7f16\u8f91\u7528\u6237":"\u65b0\u5efa\u7528\u6237"),visible:this.state.visible,onCancel:()=>this.modalVisible(),onOk:()=>this.submit()},E.a.createElement("div",null,E.a.createElement("div",{className:"form-group"},E.a.createElement("label",{for:"example-text-input-alt"},"\u90ae\u7bb1"),E.a.createElement(c["a"],{placeholder:"\u8bf7\u8f93\u5165\u90ae\u7bb1",value:this.state.submit.email,onChange:e=>this.formChange("email",e.target.value)})),E.a.createElement("div",{className:"form-group"},E.a.createElement("label",{for:"example-text-input-alt"},"\u5bc6\u7801"),E.a.createElement(c["a"],{value:this.state.submit.password,placeholder:"\u5982\u9700\u4fee\u6539\u5bc6\u7801\u8bf7\u8f93\u5165",onChange:e=>this.formChange("password",e.target.value)})),E.a.createElement("div",{className:"form-group"},E.a.createElement("label",{for:"example-text-input-alt"},"\u6d41\u91cf"),E.a.createElement(c["a"],{addonAfter:"GiB",value:this.state.submit.transfer_enable,placeholder:"\u8bf7\u8f93\u5165\u6d41\u91cf",onChange:e=>this.formChange("transfer_enable",e.target.value)})),E.a.createElement("div",{className:"form-group"},E.a.createElement("label",{for:"example-text-input-alt"},"\u5230\u671f\u65f6\u95f4"),E.a.createElement("div",null,E.a.createElement(r["a"],{placeholder:"\u8bf7\u9009\u62e9\u7528\u6237\u5230\u671f\u65e5\u671f",value:this.state.submit.expired_at&&k()(1e3*this.state.submit.expired_at),style:{width:"100%"},onChange:e=>this.formChange("expired_at",e.format("X"))}))),E.a.createElement("div",{className:"form-group"},E.a.createElement("label",{for:"example-text-input-alt"},"\u8ba2\u9605\u8ba1\u5212"),E.a.createElement(l["a"],{placeholder:"\u8bf7\u9009\u62e9\u7528\u6237\u8ba2\u9605\u8ba1\u5212",style:{width:"100%"},value:this.state.submit.plan_id?["".concat(this.state.submit.plan_id)]:void 0,onChange:e=>this.formChange("plan_id",e)},this.state.plan.map(e=>{return E.a.createElement(l["a"].Option,{key:e.id},e.name)}))),E.a.createElement("div",{className:"form-group"},E.a.createElement("label",{for:"example-text-input-alt"},"\u662f\u5426\u5c01\u7981"),E.a.createElement(l["a"],{placeholder:"\u8bf7\u9009\u62e9\u5c01\u7981\u72b6\u6001",style:{width:"100%"},value:this.state.submit.banned?["1"]:["0"],onChange:e=>this.formChange("banned",e)},E.a.createElement(l["a"].Option,{key:1},"\u662f"),E.a.createElement(l["a"].Option,{key:0},"\u5426"))),E.a.createElement("div",{className:"form-group"},E.a.createElement("label",{for:"example-text-input-alt"},"\u63a8\u8350\u8fd4\u5229\u6bd4\u4f8b"),E.a.createElement(c["a"],{addonAfter:"%",value:this.state.submit.commission_rate,placeholder:"\u8bf7\u8f93\u5165\u63a8\u8350\u8fd4\u5229\u6bd4\u4f8b(\u4e3a\u7a7a\u5219\u8ddf\u968f\u7ad9\u70b9\u8bbe\u7f6e\u8fd4\u5229\u6bd4\u4f8b)",onChange:e=>this.formChange("commission_rate",e.target.value)})),E.a.createElement("div",{className:"form-group"},E.a.createElement("label",{for:"example-text-input-alt"},"\u662f\u5426\u7ba1\u7406\u5458"),E.a.createElement(l["a"],{placeholder:"\u8bf7\u9009\u62e9\u5c01\u7981\u72b6\u6001",style:{width:"100%"},value:this.state.submit.is_admin?["1"]:["0"],onChange:e=>this.formChange("is_admin",e)},E.a.createElement(l["a"].Option,{key:1},"\u662f"),E.a.createElement(l["a"].Option,{key:0},"\u5426"))))),E.a.createElement(w,{receiveType:this.state.receiveType,onClose:()=>{this.setState({receiveType:void 0})},receiver:this.state.selectedUserIds}))}}}}]); |