ib-client-management-list.683d363e.js 97 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["ib-client-management-list"],{"053f":function(e,t,a){"use strict";a("97ab")},"083a":function(e,t,a){"use strict";var s=a("0d51"),r=TypeError;e.exports=function(e,t){if(!delete e[t])throw new r("Cannot delete property "+s(t)+" of "+s(e))}},"084b":function(e,t,a){"use strict";a("32a8")},"0f35":function(e,t,a){"use strict";a.r(t);a("b0c0"),a("ac1f"),a("841c"),a("498a");var s=function(){var e=this,t=e._self._c;return t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.pictLoading,expression:"pictLoading"}],attrs:{id:"ib_ib-client-management-list","element-loading-background":"rgba(43, 48, 67, 0.05)","element-loading-spinner":"el-icon-loading"}},[t("div",{staticClass:"promotion-box pb-3 mt-1"},[t("div",{staticClass:"container"},[t("div",{staticClass:"row"},[t("div",{staticClass:"col-12"},[t("div",{staticClass:"mt-0"},[t("div",{attrs:{id:"tabs"}},[t("div",{},[t("div",{staticClass:"row"},[t("div",{staticClass:"col-12"},[t("nav",{staticClass:"announcement-page mt-3"},[t("div",{staticClass:"nav nav-tabs nav-fill",attrs:{id:"nav-tab",role:"tablist"}},[t("a",{directives:[{name:"t",rawName:"v-t",value:"Ib.Custom.Manage3",expression:"'Ib.Custom.Manage3'"}],staticClass:"nav-item nav-link",class:{active:3==e.search.tag},attrs:{id:"nav-home-tab","data-toggle":"tab",href:"#nav-home",role:"tab","aria-controls":"nav-home","aria-selected":"true"},on:{click:function(t){return e.chooseLang("3")}}},[e._v("Client Management")]),t("a",{directives:[{name:"t",rawName:"v-t",value:"Ib.Custom.Manage1",expression:"'Ib.Custom.Manage1'"}],staticClass:"nav-item nav-link",class:{active:1==e.search.tag},attrs:{id:"nav-profile-tab","data-toggle":"tab",href:"#nav-profile",role:"tab","aria-controls":"nav-profile","aria-selected":"false"},on:{click:function(t){return e.chooseLang("1")}}},[e._v("Account Management")]),t("a",{directives:[{name:"t",rawName:"v-t",value:"Ib.Custom.Manage2",expression:"'Ib.Custom.Manage2'"}],staticClass:"nav-item nav-link",class:{active:2==e.search.tag},attrs:{id:"nav-ibmanage-tab","data-toggle":"tab",href:"#nav-ibmanage",role:"tab","aria-controls":"nav-ibmanage","aria-selected":"false"},on:{click:function(t){return e.chooseLang("2")}}},[e._v("IB Management")]),t("a",{directives:[{name:"t",rawName:"v-t",value:"Documentary.console.item23",expression:"'Documentary.console.item23'"}],staticClass:"nav-item nav-link",class:{active:4==e.search.tag},attrs:{id:"nav-Documentary-tab","data-toggle":"tab",href:"#nav-Documentary",role:"tab","aria-controls":"nav-Documentary","aria-selected":"false"},on:{click:function(t){return e.chooseLang("4")}}},[e._v(e._s(e.$t("Documentary.console.item23")))])])]),t("div",{staticClass:"tab-content py-2",attrs:{id:"nav-tabContent"}},[t("div",{staticClass:"tab-pane fade",class:{active:3==e.search.tag,show:3==e.search.tag},attrs:{id:"nav-home",role:"tabpanel","aria-labelledby":"nav-home-tab"}},[t("div",{staticClass:"col-12 px-0"},[t("div",{staticClass:"search-box bg-white mt-2 br-5 pr-3 pl-3 pt-3 pb-3"},[t("el-form",{ref:"form",staticClass:"form-horizontal deposit-search",attrs:{"label-position":"top",model:e.search,"label-width":"80px"}},[t("div",{staticClass:"form-group"},[t("el-input",{staticClass:"crm-input",attrs:{size:"small",placeholder:e.$t("Label.DisplayName")},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleSearch.apply(null,arguments)}},model:{value:e.search.name,callback:function(t){e.$set(e.search,"name","string"===typeof t?t.trim():t)},expression:"search.name"}})],1),t("div",{staticClass:"form-group"},[t("el-input",{staticClass:"crm-input",attrs:{size:"small",placeholder:e.$t("Label.Email")},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleSearch.apply(null,arguments)}},model:{value:e.search.email,callback:function(t){e.$set(e.search,"email","string"===typeof t?t.trim():t)},expression:"search.email"}})],1),t("div",{staticClass:"form-group"},[t("el-input",{staticClass:"crm-input",attrs:{size:"small",placeholder:e.$t("Label.CidAccount")},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleSearch.apply(null,arguments)}},model:{value:e.search.cId,callback:function(t){e.$set(e.search,"cId","string"===typeof t?t.trim():t)},expression:"search.cId"}})],1),t("div",{staticClass:"form-group",staticStyle:{"margin-top":"15px","text-align":"right"}},[t("a",{staticClass:"btn-search",attrs:{href:"javascript:;"},on:{click:e.handleSearch}},[t("img",{staticClass:"img-fluid",attrs:{src:"assets/img/search.png"}})])])])],1),t("div",{staticClass:"search-box bg-white mt-2 br-5 pr-3 pl-3 pt-3 pb-3"},[t("el-select",{staticClass:"crm_search_down_tit crm-select",staticStyle:{width:"100%"},attrs:{size:"small",placeholder:e.$t("placeholder.choose")},on:{change:e.handleStatusChange},model:{value:e.search.customerStatus,callback:function(t){e.$set(e.search,"customerStatus",t)},expression:"search.customerStatus"}},[t("el-option",{attrs:{label:e.$t("Ib.Custom.Unverified"),value:"unverified"}},[t("span",[e._v(e._s(e.$t("Ib.Custom.Unverified"))+" ("+e._s(e.statistics.unverifiedNum||0)+")")])]),t("el-option",{attrs:{label:e.$t("Ib.Custom.UnDeposit"),value:"unDeposit"}},[t("span",[e._v(e._s(e.$t("Ib.Custom.UnDeposit"))+" ("+e._s(e.statistics.unDepositNum||0)+")")])]),t("el-option",{attrs:{label:e.$t("Ib.Custom.Deposit"),value:"deposit"}},[t("span",[e._v(e._s(e.$t("Ib.Custom.Deposit"))+" ("+e._s(e.statistics.depositNum||0)+")")])])],1)],1)]),e._l(e.tableData,(function(a,s){return t("div",{key:s,staticClass:"promotion-box-white mt-2"},[t("div",{staticClass:"row justify-content-between align-items-center"},[t("div",{staticClass:"col-5"},[t("div",{staticClass:"application-status d-flex float-left"},[t("p",{staticClass:"mb-0"},[t("strong",[t("span",{directives:[{name:"t",rawName:"v-t",value:"Label.Name",expression:"'Label.Name'"}]}),e._v(" :")]),e._v(" "+e._s(a.name||"--")+" ")])])]),t("div",{staticClass:"col-7 client-card-btn-group"},[t("div",{staticClass:"application-status",staticStyle:{"margin-bottom":"5px"}},[t("a",{directives:[{name:"t",rawName:"v-t",value:"Documentary.AgentBackground.item1",expression:"'Documentary.AgentBackground.item1'"}],staticClass:"btn-addi",attrs:{href:"javascript:;"},on:{click:function(t){return e.handleCommandAllow1(a)}}})]),1==a.ibStatus&&1!=a.belongsType?t("div",{staticClass:"application-status",staticStyle:{"margin-bottom":"5px"}},[t("a",{directives:[{name:"t",rawName:"v-t",value:"Home.msg.ibTitle",expression:"'Home.msg.ibTitle'"}],staticClass:"btn-addi",attrs:{href:"javascript:;"},on:{click:function(t){return e.openAddAgentDialogFromCustomer(a)}}})]):e._e(),1!=a.belongsType?t("div",{staticClass:"application-status",staticStyle:{"margin-bottom":"5px"}},[t("a",{directives:[{name:"t",rawName:"v-t",value:"Ib.Custom.AccountAdjust",expression:"'Ib.Custom.AccountAdjust'"}],staticClass:"btn-addi",attrs:{href:"javascript:;"},on:{click:function(t){return e.goToAccountAdjustPage(a)}}})]):e._e()]),t("div",{staticClass:"col-12 my-3"},[t("h5",[t("strong",[e._v(" "+e._s(a.addTime||"--")+" | "),t("span",{directives:[{name:"t",rawName:"v-t",value:"Label.CidAccount",expression:"'Label.CidAccount'"}]}),e._v(" : ")]),e._v(" "+e._s(a.cId||"--")+" ")]),t("h5",{staticStyle:{"margin-top":"10px"}},[t("strong",{directives:[{name:"t",rawName:"v-t",value:"Ib.Custom.ApplyAsAgent",expression:"'Ib.Custom.ApplyAsAgent'"}]}),t("span",[e._v(e._s(2==a.ibStatus?e.$t("Ib.Custom.Yes"):e.$t("Ib.Custom.No")))])]),t("h5",{staticStyle:{"margin-top":"10px"}},[t("strong",{directives:[{name:"t",rawName:"v-t",value:"Ib.Custom.AccountStatus",expression:"'Ib.Custom.AccountStatus'"}]}),1==a.belongsType?t("span",{directives:[{name:"t",rawName:"v-t",value:"Ib.Custom.Unverified",expression:"'Ib.Custom.Unverified'"}]}):2==a.belongsType?t("span",{directives:[{name:"t",rawName:"v-t",value:"Ib.Custom.UnDeposit",expression:"'Ib.Custom.UnDeposit'"}]}):3==a.belongsType?t("span",{directives:[{name:"t",rawName:"v-t",value:"Ib.Custom.Deposit",expression:"'Ib.Custom.Deposit'"}]}):t("span",[e._v("--")])])]),t("div",{staticClass:"col-12"},[t("div",{staticClass:"panel-group",attrs:{id:"accordion2",role:"tablist","aria-multiselectable":"true"}},[t("div",{staticClass:"panel panel-default"},[t("div",{staticClass:"panel-heading",attrs:{role:"tab",id:"headingOne2"}},[t("h4",{staticClass:"panel-title"},[t("a",{directives:[{name:"t",rawName:"v-t",value:"Home.menu_footer.item5",expression:"'Home.menu_footer.item5'"}],attrs:{role:"button","data-toggle":"collapse","data-parent":"#accordion2",href:"#collapseOne"+s,"aria-expanded":"true","aria-controls":"collapseOne"}})])]),t("div",{staticClass:"panel-collapse collapse in",attrs:{id:"collapseOne"+s,role:"tabpanel","aria-labelledby":"headingOne"+s}},[t("div",{staticClass:"panel-body"},[t("h5",{staticClass:"my-2"},[t("strong",{directives:[{name:"t",rawName:"v-t",value:"Label.Email",expression:"'Label.Email'"}]}),e._v(" : "+e._s(a.email||"--")+" ")]),t("h5",{staticClass:"my-2"},[t("strong",{directives:[{name:"t",rawName:"v-t",value:"Label.Nationality",expression:"'Label.Nationality'"}]}),e._v(" : "+e._s(a.countryEnName)+" ")])])])])])])])])}))],2),t("div",{staticClass:"tab-pane fade",class:{active:1==e.search.tag,show:1==e.search.tag},attrs:{id:"nav-profile",role:"tabpanel","aria-labelledby":"nav-profile-tab"}},[t("div",{staticClass:"col-12 px-0"},[t("div",{staticClass:"search-box bg-white mt-2 br-5 pr-3 pl-3 pt-1 pb-3"},[t("el-form",{ref:"form",staticClass:"form-horizontal deposit-search",attrs:{"label-position":"top",model:e.search,"label-width":"80px"}},[t("div",{staticClass:"form-group",staticStyle:{padding:"15px 0"}},[t("el-select",{staticClass:"crm_search_down_tit crm-select",attrs:{size:"small",placeholder:e.$t("placeholder.choose")},model:{value:e.search.platform,callback:function(t){e.$set(e.search,"platform",t)},expression:"search.platform"}},[t("el-option",{attrs:{label:"MT4",value:"MT4"},nativeOn:{click:function(t){return e.handleSearch.apply(null,arguments)}}}),t("el-option",{attrs:{label:"MT5",value:"MT5"},nativeOn:{click:function(t){return e.handleSearch.apply(null,arguments)}}})],1)],1),t("div",{staticClass:"form-group"},[t("el-input",{staticClass:"crm-input",attrs:{size:"small",placeholder:e.$t("Label.Login")},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleSearch.apply(null,arguments)}},model:{value:e.search.login,callback:function(t){e.$set(e.search,"login","string"===typeof t?t.trim():t)},expression:"search.login"}})],1),t("div",{staticClass:"form-group",staticStyle:{"margin-top":"15px"}},[t("el-input",{staticClass:"crm-input",attrs:{size:"small",placeholder:"CID"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleSearch.apply(null,arguments)}},model:{value:e.search.cId,callback:function(t){e.$set(e.search,"cId","string"===typeof t?t.trim():t)},expression:"search.cId"}})],1),t("div",{staticClass:"row mt-3"},[t("div",{staticClass:"form-group col-5 pr-1 mb-0"},[t("label",{directives:[{name:"t",rawName:"v-t",value:"placeholder.Start",expression:"'placeholder.Start'"}],staticClass:"control-label requiredField start-label",attrs:{for:"date"}}),t("div",{staticClass:"date"},[t("div",{staticClass:"input-group"},[t("DatePicker",{staticStyle:{width:"100%"},attrs:{type:"date",name:"bday",placeholder:e.$t("placeholder.Start")},model:{value:e.search.startDate,callback:function(t){e.$set(e.search,"startDate",t)},expression:"search.startDate"}})],1)])]),t("div",{staticClass:"form-group col-5 pl-1 pr-2 mb-0"},[t("label",{directives:[{name:"t",rawName:"v-t",value:"placeholder.End",expression:"'placeholder.End'"}],staticClass:"control-label requiredField start-label",attrs:{for:"date"}}),t("div",{staticClass:"date"},[t("div",{staticClass:"input-group"},[t("DatePicker",{staticStyle:{width:"100%"},attrs:{type:"date",name:"bday",placeholder:e.$t("placeholder.Start")},model:{value:e.search.endDate,callback:function(t){e.$set(e.search,"endDate",t)},expression:"search.endDate"}})],1)])]),t("div",{staticClass:"form-group col-2 pl-0",staticStyle:{"margin-top":"28px"}},[t("a",{staticClass:"btn-search",attrs:{href:"javascript:;"},on:{click:e.handleSearch}},[t("img",{staticClass:"img-fluid",attrs:{src:"assets/img/search.png"}})])])])])],1)]),e._l(e.tableData,(function(a,s){return t("div",{key:s,staticClass:"promotion-box-white mt-2"},[t("div",{staticClass:"row justify-content-between align-items-center"},[t("div",{staticClass:"col-12"},[t("ul",{staticClass:"list-group"},[t("li",{staticClass:"list-group-item d-flex justify-content-between align-items-center"},[t("strong",{directives:[{name:"t",rawName:"v-t",value:"Label.Name",expression:"'Label.Name'"}]}),t("span",{staticClass:"badge-pill"},[e._v(" "+e._s(a.name||"--")+" ")])]),t("li",{staticClass:"list-group-item d-flex justify-content-between align-items-center"},[t("strong",{directives:[{name:"t",rawName:"v-t",value:"Label.LoginBalance",expression:"'Label.LoginBalance'"}]}),t("span",{staticClass:"badge-pill"},[e._v(e._s(e._f("NumberFormat")(a.balance||"0")))])]),t("li",{staticClass:"list-group-item d-flex justify-content-between align-items-center"},[t("strong",[e._v(" "+e._s(a.registration||"--")+" ")]),t("span",{staticClass:"badge-pill"},[e._v(e._s(a.currency||"--"))])]),t("li",{staticClass:"list-group-item d-flex justify-content-between align-items-center"},[t("strong",{directives:[{name:"t",rawName:"v-t",value:"Label.Login",expression:"'Label.Login'"}]}),t("span",{staticClass:"badge-pill"},[e._v(e._s(a.login||"--"))])])])]),t("div",{staticClass:"col-12"},[t("div",{staticClass:"panel-group",attrs:{id:"accordion2",role:"tablist","aria-multiselectable":"true"}},[t("div",{staticClass:"panel panel-default"},[t("div",{staticClass:"panel-heading",attrs:{role:"tab",id:"headingOne2"}},[t("h4",{staticClass:"panel-title"},[t("a",{directives:[{name:"t",rawName:"v-t",value:"Home.menu_footer.item5",expression:"'Home.menu_footer.item5'"}],attrs:{role:"button","data-toggle":"collapse","data-parent":"#accordion2",href:"#collapseOne"+s,"aria-expanded":"true","aria-controls":"collapseOne"}})])]),t("div",{staticClass:"panel-collapse collapse in",attrs:{id:"collapseOne"+s,role:"tabpanel","aria-labelledby":"headingOne"+s}},[t("div",{staticClass:"panel-body"},[t("div",{staticClass:"row justify-content-between"},[t("div",{staticClass:"col-12"},[t("h5",{staticClass:"my-2"},[t("strong",{directives:[{name:"t",rawName:"v-t",value:"Label.LoginType",expression:"'Label.LoginType'"}]}),e._v(" : "),1==a.type?t("span",{directives:[{name:"t",rawName:"v-t",value:"AccountType.ClassicAccount",expression:"\n 'AccountType.ClassicAccount'\n "}]}):e._e(),2==a.type?t("span",{directives:[{name:"t",rawName:"v-t",value:"AccountType.SeniorAccount",expression:"\n 'AccountType.SeniorAccount'\n "}]}):e._e(),5==a.type?t("span",{directives:[{name:"t",rawName:"v-t",value:"AccountType.SpeedAccount",expression:"'AccountType.SpeedAccount'"}]}):e._e(),6==a.type?t("span",{directives:[{name:"t",rawName:"v-t",value:"AccountType.SpeedAccount",expression:"'AccountType.SpeedAccount'"}]}):e._e(),7==a.type?t("span",{directives:[{name:"t",rawName:"v-t",value:"AccountType.StandardAccount",expression:"\n 'AccountType.StandardAccount'\n "}]}):e._e(),8==a.type?t("span",{directives:[{name:"t",rawName:"v-t",value:"AccountType.CentAccount",expression:"'AccountType.CentAccount'"}]}):e._e()]),t("h5",{staticClass:"my-2"},[t("strong",{directives:[{name:"t",rawName:"v-t",value:"Label.Platform",expression:"'Label.Platform'"}]}),e._v(" : "+e._s(a.platform||"--")+" ")]),t("h5",{staticClass:"my-2"},[t("strong",{directives:[{name:"t",rawName:"v-t",value:"Label.Leverage",expression:"'Label.Leverage'"}]}),e._v(" : "),a.leverage?t("span",[e._v("1:")]):e._e(),e._v(e._s(a.leverage||"--")+" ")]),t("h5",{staticClass:"my-2"},[t("strong",{directives:[{name:"t",rawName:"v-t",value:"Label.OutsideCommission",expression:"'Label.OutsideCommission'"}]}),e._v(" : "+e._s(a.comPoint||"0")+" ")]),0==e.fixedHide||1==e.levelNum?t("h5",{staticClass:"my-2"},[t("strong",{directives:[{name:"t",rawName:"v-t",value:"Ib.Index.Hide",expression:"'Ib.Index.Hide'"}]}),e._v(" : "+e._s(a.hide||"0")+" ")]):e._e(),t("h5",{staticClass:"my-2"},[t("strong",{directives:[{name:"t",rawName:"v-t",value:"Label.Country",expression:"'Label.Country'"}]}),e._v(" : "),t("span",[e._v(" "+e._s(a.countryEnName||"--")+" ")])]),t("h5",{staticClass:"my-2"},[t("strong",{directives:[{name:"t",rawName:"v-t",value:"Ib.GroupName",expression:"'Ib.GroupName'"}]}),e._v(" : "+e._s(a.groupName||"--")+" ")])])])])])])])])])])}))],2),t("div",{staticClass:"tab-pane fade",class:{active:2==e.search.tag,show:2==e.search.tag},attrs:{id:"nav-ibmanage",role:"tabpanel","aria-labelledby":"nav-ibmanage-tab"}},[t("div",{staticClass:"col-12 px-0"},[t("div",{staticClass:"search-box bg-white mt-2 br-5 pr-3 pl-3 pt-3 pb-3"},[t("el-form",{ref:"form",staticClass:"form-horizontal deposit-search",attrs:{"label-position":"top",model:e.search,"label-width":"80px"}},[t("div",{staticClass:"form-group"},[t("el-input",{staticClass:"crm-input",attrs:{size:"small",placeholder:e.$t("Label.IbAccount")},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleSearch.apply(null,arguments)}},model:{value:e.search.ibNo,callback:function(t){e.$set(e.search,"ibNo","string"===typeof t?t.trim():t)},expression:"search.ibNo"}})],1),t("div",{staticClass:"form-group"},[t("el-input",{staticClass:"crm-input",attrs:{size:"small",placeholder:e.$t("Label.CidAccount")},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleSearch.apply(null,arguments)}},model:{value:e.search.cId,callback:function(t){e.$set(e.search,"cId","string"===typeof t?t.trim():t)},expression:"search.cId"}})],1),t("div",{staticClass:"form-group"},[t("el-input",{staticClass:"crm-input",attrs:{size:"small",placeholder:e.$t("Label.DisplayName")},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleSearch.apply(null,arguments)}},model:{value:e.search.name,callback:function(t){e.$set(e.search,"name","string"===typeof t?t.trim():t)},expression:"search.name"}})],1),t("div",{staticClass:"row mt-3"},[t("div",{staticClass:"form-group col-5 pr-1 mb-0"},[t("label",{directives:[{name:"t",rawName:"v-t",value:"placeholder.Start",expression:"'placeholder.Start'"}],staticClass:"control-label requiredField start-label",attrs:{for:"date"}}),t("div",{staticClass:"date"},[t("div",{staticClass:"input-group"},[t("DatePicker",{staticStyle:{width:"100%"},attrs:{type:"date",name:"bday",placeholder:e.$t("placeholder.Start")},model:{value:e.search.startDate,callback:function(t){e.$set(e.search,"startDate",t)},expression:"search.startDate"}})],1)])]),t("div",{staticClass:"form-group col-5 pl-1 pr-2 mb-0"},[t("label",{directives:[{name:"t",rawName:"v-t",value:"placeholder.End",expression:"'placeholder.End'"}],staticClass:"control-label requiredField start-label",attrs:{for:"date"}}),t("div",{staticClass:"date"},[t("div",{staticClass:"input-group"},[t("DatePicker",{staticStyle:{width:"100%"},attrs:{type:"date",name:"bday",placeholder:e.$t("placeholder.Start")},model:{value:e.search.endDate,callback:function(t){e.$set(e.search,"endDate",t)},expression:"search.endDate"}})],1)])]),t("div",{staticClass:"form-group col-2 pl-0",staticStyle:{"margin-top":"28px"}},[t("a",{staticClass:"btn-search",attrs:{href:"javascript:;"},on:{click:e.handleSearch}},[t("img",{staticClass:"img-fluid",attrs:{src:"assets/img/search.png"}})])])])])],1),t("div",{staticClass:"search-box bg-white mt-2 br-5 pr-3 pl-3 pt-3 pb-3",staticStyle:{"text-align":"right"}},[t("a",{staticClass:"btn-addi",attrs:{href:"javascript:;"},on:{click:e.openAddAgentDialog}},[t("span",[e._v("+ "+e._s(e.$t("Ib.Custom.AddAgent")))])])])]),e._l(e.tableData,(function(a,s){return t("div",{key:s,staticClass:"promotion-box-white mt-2"},[t("div",{staticClass:"row justify-content-between align-items-center"},[t("div",{staticClass:"col-12"},[t("ul",{staticClass:"list-group"},[t("li",{staticClass:"list-group-item d-flex justify-content-between align-items-center"},[t("strong",{directives:[{name:"t",rawName:"v-t",value:"Label.Name",expression:"'Label.Name'"}]}),t("span",{staticClass:"badge-pill"},[e._v(e._s(a.name||"--"))])]),t("li",{staticClass:"list-group-item d-flex justify-content-between align-items-center"},[t("strong",{directives:[{name:"t",rawName:"v-t",value:"Label.IbAccount",expression:"'Label.IbAccount'"}]}),t("span",{staticClass:"badge-pill"},[e._v(e._s(a.ibNo||"--"))])]),e._e(),1==a.pointType?t("li",{staticClass:"list-group-item d-flex justify-content-between align-items-center"},[t("strong",{directives:[{name:"t",rawName:"v-t",value:"Label.CommissionTemplate",expression:"'Label.CommissionTemplate'"}]}),t("span",{staticClass:"badge-pill"},[e._v(e._s(a.pointName||"--"))])]):e._e(),2==a.pointType?t("li",{staticClass:"list-group-item d-flex justify-content-between align-items-center"},[t("strong",{directives:[{name:"t",rawName:"v-t",value:"Label.Percent",expression:"'Label.Percent'"}]}),t("span",{staticClass:"badge-pill"},[e._v(e._s(a.pointPercent||"--"))])]):e._e(),t("li",{staticClass:"list-group-item d-flex justify-content-between align-items-center"},[t("strong",{directives:[{name:"t",rawName:"v-t",value:"Label.AgentNum",expression:"'Label.AgentNum'"}]}),t("span",{staticClass:"badge-pill"},[e._v(e._s(null!=a.agentNum?a.agentNum:"--"))])]),t("li",{staticClass:"list-group-item d-flex justify-content-between align-items-center"},[t("strong",{directives:[{name:"t",rawName:"v-t",value:"Label.CustomNum",expression:"'Label.CustomNum'"}]}),t("span",{staticClass:"badge-pill"},[e._v(e._s(null!=a.customNum?a.customNum:"--"))])]),t("li",{staticClass:"list-group-item d-flex justify-content-between align-items-center"},[t("strong",{directives:[{name:"t",rawName:"v-t",value:"Label.LastActiveTime",expression:"'Label.LastActiveTime'"}]}),t("span",{staticClass:"badge-pill"},[e._v(e._s(a.lastTime||"--"))])]),t("li",{staticClass:"list-group-item d-flex justify-content-between align-items-center"},[t("strong",[e._v(" "+e._s(a.addTime||"--")+" ")]),t("span",{staticClass:"badge-pill"})])])]),t("div",{staticClass:"row d-flex mx-auto mt-3 justify-content-center"},[t("a",{directives:[{name:"t",rawName:"v-t",value:"Ib.Custom.Commit3",expression:"'Ib.Custom.Commit3'"}],staticClass:"text-center btn-addi",attrs:{href:"javascript:;"},on:{click:function(t){return e.handleCommandIB(a)}}}),a.subPoints&&a.subPoints.length>0?t("a",{directives:[{name:"t",rawName:"v-t",value:"Ib.Custom.Commit5",expression:"'Ib.Custom.Commit5'"}],staticClass:"text-center btn-addi",staticStyle:{"margin-left":"5px"},attrs:{href:"javascript:;"},on:{click:function(t){return e.handleClick(a)}}}):e._e()])])])}))],2),t("div",{staticClass:"tab-pane fade",class:{active:4==e.search.tag,show:4==e.search.tag},attrs:{id:"nav-Documentary",role:"tabpanel","aria-labelledby":"nav-Documentary-tab"}},e._l(e.tableData,(function(a,s){return t("div",{key:s,staticClass:"promotion-box-white mt-2"},[t("div",{staticClass:"row justify-content-between align-items-center"},[t("div",{staticClass:"col-12"},[t("ul",{staticClass:"list-group"},[t("li",{staticClass:"list-group-item d-flex justify-content-between align-items-center"},[t("strong",{directives:[{name:"t",rawName:"v-t",value:"Label.CidAccount",expression:"'Label.CidAccount'"}]}),t("span",{staticClass:"badge-pill"},[e._v(" "+e._s(a.dealCId||"--")+" ")])]),t("li",{staticClass:"list-group-item d-flex justify-content-between align-items-center"},[t("strong",{directives:[{name:"t",rawName:"v-t",value:"Label.AgentNumber",expression:"'Label.AgentNumber'"}]}),t("span",{staticClass:"badge-pill"},[e._v(e._s(a.pIbNo||"--"))])]),t("li",{staticClass:"list-group-item d-flex justify-content-between align-items-center"},[t("strong",{directives:[{name:"t",rawName:"v-t",value:"Documentary.console.item20",expression:"'Documentary.console.item20'"}]}),t("span",{staticClass:"badge-pill"},[e._v(e._s(a.nickname||"--"))])]),t("li",{staticClass:"list-group-item d-flex justify-content-between align-items-center"},[t("strong",{directives:[{name:"t",rawName:"v-t",value:"Documentary.tradingCenter.item18",expression:"'Documentary.tradingCenter.item18'"}]}),t("span",{staticClass:"badge-pill"},[e._v(e._s(a.dealLogin||"--"))])])])]),t("div",{staticClass:"col-12"},[t("div",{staticClass:"panel-group",attrs:{id:"accordion2",role:"tablist","aria-multiselectable":"true"}},[t("div",{staticClass:"panel panel-default"},[t("div",{staticClass:"panel-heading",attrs:{role:"tab",id:"headingOne2"}},[t("h4",{staticClass:"panel-title"},[t("a",{directives:[{name:"t",rawName:"v-t",value:"Home.menu_footer.item5",expression:"'Home.menu_footer.item5'"}],attrs:{role:"button","data-toggle":"collapse","data-parent":"#accordion2",href:"#collapseOne"+s,"aria-expanded":"true","aria-controls":"collapseOne"}})])]),t("div",{staticClass:"panel-collapse collapse in",attrs:{id:"collapseOne"+s,role:"tabpanel","aria-labelledby":"headingOne"+s}},[t("div",{staticClass:"panel-body"},[t("div",{staticClass:"row justify-content-between"},[t("div",{staticClass:"col-12"},[t("h5",{staticClass:"my-2"},[t("strong",{directives:[{name:"t",rawName:"v-t",value:"Label.Platform",expression:"'Label.Platform'"}]}),e._v(" : "+e._s(a.dealPlatform||"--")+" ")]),t("h5",{staticClass:"my-2"},[t("strong",{directives:[{name:"t",rawName:"v-t",value:"Label.Leverage",expression:"'Label.Leverage'"}]}),e._v(" : "),a.leverage?t("span",[e._v("1:")]):e._e(),e._v(e._s(a.dealLeverage||"--")+" ")]),t("h5",{staticClass:"my-2"},[t("strong",{directives:[{name:"t",rawName:"v-t",value:"Label.AccountType",expression:"'Label.AccountType'"}]}),e._v(" : "),1==a.dealLoginType?t("span",{directives:[{name:"t",rawName:"v-t",value:"AccountType.ClassicAccount",expression:"\n 'AccountType.ClassicAccount'\n "}]}):e._e(),2==a.dealLoginType?t("span",{directives:[{name:"t",rawName:"v-t",value:"AccountType.SeniorAccount",expression:"\n 'AccountType.SeniorAccount'\n "}]}):e._e(),5==a.dealLoginType?t("span",{directives:[{name:"t",rawName:"v-t",value:"AccountType.SpeedAccount",expression:"'AccountType.SpeedAccount'"}]}):e._e(),6==a.dealLoginType?t("span",{directives:[{name:"t",rawName:"v-t",value:"AccountType.SpeedAccount",expression:"'AccountType.SpeedAccount'"}]}):e._e(),7==a.dealLoginType?t("span",{directives:[{name:"t",rawName:"v-t",value:"AccountType.StandardAccount",expression:"\n 'AccountType.StandardAccount'\n "}]}):e._e(),8==a.dealLoginType?t("span",{directives:[{name:"t",rawName:"v-t",value:"AccountType.CentAccount",expression:"'AccountType.CentAccount'"}]}):e._e()]),t("h5",{staticClass:"my-2"},[t("strong",{directives:[{name:"t",rawName:"v-t",value:"Documentary.AgentBackground.item11",expression:"\n 'Documentary.AgentBackground.item11'\n "}]}),e._v(" : "),1==a.distributionType?t("span",{directives:[{name:"t",rawName:"v-t",value:"Documentary.TundManagement.item59",expression:"\n 'Documentary.TundManagement.item59'\n "}]}):e._e()]),t("h5",{staticClass:"my-2"},[t("strong",{directives:[{name:"t",rawName:"v-t",value:"Documentary.Report.item5",expression:"'Documentary.Report.item5'"}]}),e._v(" : "+e._s(a.distributionRatio||"--")+" ")]),t("h5",{staticClass:"my-2"},[t("strong",{directives:[{name:"t",rawName:"v-t",value:"Documentary.AgentBackground.item13",expression:"\n 'Documentary.AgentBackground.item13'\n "}]}),e._v(" : "+e._s(a.settlementCycle||"--")+" ")]),t("h5",{staticClass:"my-2"},[t("strong",{directives:[{name:"t",rawName:"v-t",value:"Label.ApplyTime",expression:"'Label.ApplyTime'"}]}),e._v(" : "+e._s(a.approveTime||"--")+" ")]),t("h5",{staticClass:"my-2"},[t("strong",{directives:[{name:"t",rawName:"v-t",value:"Documentary.AgentBackground.item14",expression:"\n 'Documentary.AgentBackground.item14'\n "}]}),e._v(" : "),1==a.permissionDisplay?t("span",{directives:[{name:"t",rawName:"v-t",value:"Documentary.AgentBackground.item16",expression:"\n 'Documentary.AgentBackground.item16'\n "}]}):e._e(),2==a.permissionDisplay?t("span",{directives:[{name:"t",rawName:"v-t",value:"Documentary.AgentBackground.item15",expression:"\n 'Documentary.AgentBackground.item15'\n "}]}):e._e()])])])])])])])]),"1"==a.agentUpdatePurview?t("div",{staticClass:"row d-flex mx-auto mt-3 justify-content-between"},[t("a",{directives:[{name:"t",rawName:"v-t",value:"Documentary.AgentBackground.item18",expression:"'Documentary.AgentBackground.item18'"}],staticClass:"text-center btn-addi w-100 crm-addi",attrs:{href:"javascript:;"},on:{click:function(t){return e.handleCommandCustom3(a)}}})]):e._e()])])})),0),e.pagerInfo.rowTotal?t("div",{staticClass:"crm_pagination"},[t("el-pagination",{staticClass:"page",attrs:{background:"",layout:"prev, pager, next","current-page":e.pagerInfo.current,"page-size":e.pagerInfo.row,total:e.pagerInfo.rowTotal},on:{"current-change":e.handleCurrentChange}})],1):t("div",{directives:[{name:"t",rawName:"v-t",value:"State.notDate",expression:"'State.notDate'"}],staticClass:"crm-notDate"})])])])])])])])])])]),t("el-dialog",{attrs:{visible:e.dialogAllowIb,center:"",width:"95%",title:e.$t("Ib.Custom.Btn"),"custom-class":"dialog_header_w dialogIb"},on:{"update:visible":function(t){e.dialogAllowIb=t}}},[t("div",{staticClass:"dia-content"},[t("el-form",{ref:"dialogForm",staticClass:"dialogForm",attrs:{model:e.dialogForm,rules:e.rules,"label-width":"140px"}},[t("el-form-item",{attrs:{prop:"",label:e.$t("Label.CidAccount")+":"}},[e._v(" "+e._s(e.dialogForm.cId||"--")+" ")]),t("el-form-item",{attrs:{prop:"",label:e.$t("Label.Name")+":"}},[e._v(" "+e._s(e.dialogForm.name||"--")+" ")]),t("el-form-item",{attrs:{prop:"",label:e.$t("Label.Email")+":"}},[e._v(" "+e._s(e.dialogForm.email||"--")+" ")]),t("el-form-item",{staticStyle:{"margin-bottom":"25px"},attrs:{prop:"ibInvalid",label:e.$t("Ib.Custom.Become")+":"}},[t("el-select",{staticStyle:{width:"100%","max-width":"200px"},attrs:{size:"mini",placeholder:e.$t("placeholder.choose")},on:{change:e.selectChange},model:{value:e.dialogForm.ibInvalid,callback:function(t){e.$set(e.dialogForm,"ibInvalid",t)},expression:"dialogForm.ibInvalid"}},[t("el-option",{attrs:{label:e.$t("Ib.Custom.Open"),value:0}}),t("el-option",{attrs:{label:e.$t("Ib.Custom.Close"),value:1}})],1)],1),t("div",{staticClass:"tips"},[t("p",{directives:[{name:"t",rawName:"v-t",value:"Ib.Custom.Tips",expression:"'Ib.Custom.Tips'"}],staticClass:"tips1"}),t("p",{directives:[{name:"t",rawName:"v-t",value:"Ib.Custom.Tips1",expression:"'Ib.Custom.Tips1'"}],staticClass:"tips2"}),t("p",{directives:[{name:"t",rawName:"v-t",value:"Ib.Custom.Tips2",expression:"'Ib.Custom.Tips2'"}],staticClass:"tips2"}),t("p",{directives:[{name:"t",rawName:"v-t",value:"Ib.Custom.Tips3",expression:"'Ib.Custom.Tips3'"}],staticClass:"tips2"})])],1),t("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{directives:[{name:"t",rawName:"v-t",value:"Btn.Cancel",expression:"'Btn.Cancel'"}],on:{click:e.Cancel}}),t("el-button",{directives:[{name:"t",rawName:"v-t",value:"Btn.Confirm",expression:"'Btn.Confirm'"}],attrs:{type:"primary"},on:{click:e.toAgree}})],1)],1)]),t("el-dialog",{attrs:{visible:e.dialogDocumentaryS,center:"",width:"95%",title:e.$t("Documentary.AgentBackground.item1"),"custom-class":"dialog_header_w1 dialogIb"},on:{"update:visible":function(t){e.dialogDocumentaryS=t}}},[t("div",{staticClass:"dia-content"},[t("el-form",{ref:"dialogFormS",staticClass:"dialogFormS",attrs:{model:e.dialogFormS,rules:e.rules,"label-position":"top"}},[t("el-form-item",{attrs:{prop:"",label:e.$t("Label.CidAccount")+":"}},[e._v(" "+e._s(e.dialogFormS.cId||"--")+" ")]),t("el-form-item",{staticStyle:{"margin-bottom":"25px"},attrs:{prop:"permissionDisplay",label:e.$t("Documentary.AgentBackground.item2")+":"}},[t("el-select",{staticStyle:{width:"100%"},attrs:{size:"mini",placeholder:e.$t("placeholder.choose")},on:{change:e.selectChange},model:{value:e.dialogFormS.permissionDisplay,callback:function(t){e.$set(e.dialogFormS,"permissionDisplay",t)},expression:"dialogFormS.permissionDisplay"}},[t("el-option",{attrs:{label:e.$t("Documentary.AgentBackground.item16"),value:1}}),t("el-option",{attrs:{label:e.$t("Documentary.AgentBackground.item15"),value:2}})],1)],1),t("el-form-item",{staticClass:"agree",attrs:{prop:"agree"}},[t("el-checkbox",{on:{change:e.selectChange},model:{value:e.dialogFormS.agree,callback:function(t){e.$set(e.dialogFormS,"agree",t)},expression:"dialogFormS.agree"}}),t("span",{staticStyle:{"margin-left":"10px"}},[t("span",{directives:[{name:"t",rawName:"v-t",value:"Documentary.AgentBackground.item3",expression:"'Documentary.AgentBackground.item3'"}]}),-1!=["cn","zhHant"].indexOf(e.Session.Get("lang"))?t("a",{directives:[{name:"t",rawName:"v-t",value:"Documentary.AgentBackground.item4",expression:"'Documentary.AgentBackground.item4'"}],staticStyle:{color:"#4497ff"},attrs:{href:e.$setPdfLink("assets/pdf/CopyTradeUserAgreementcn.pdf"),target:"_blank"}}):t("a",{directives:[{name:"t",rawName:"v-t",value:"Documentary.AgentBackground.item4",expression:"'Documentary.AgentBackground.item4'"}],staticStyle:{color:"#4497ff"},attrs:{href:e.$setPdfLink("assets/pdf/CopyTradeUserAgreement.pdf"),target:"_blank"}})])],1),t("el-form-item",{staticClass:"prompt",attrs:{label:e.$t("Drawer.Label.TemplatePrompt")}},[t("p",[t("span"),t("span",{directives:[{name:"t",rawName:"v-t",value:"Documentary.AgentBackground.item5",expression:"'Documentary.AgentBackground.item5'"}]})])])],1),t("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{directives:[{name:"t",rawName:"v-t",value:"Btn.Cancel",expression:"'Btn.Cancel'"}],on:{click:e.CancelDocumentaryS}}),t("el-button",{directives:[{name:"t",rawName:"v-t",value:"Btn.Confirm",expression:"'Btn.Confirm'"}],attrs:{type:"primary"},on:{click:e.toDocumentaryS}})],1)],1)]),t("el-dialog",{attrs:{visible:e.dialogDocumentaryS1,center:"",width:"95%",title:e.$t("Documentary.AgentBackground.item19"),"custom-class":"dialog_header_w1 dialogIb"},on:{"update:visible":function(t){e.dialogDocumentaryS1=t}}},[t("div",{staticClass:"dia-content"},[t("el-form",{ref:"dialogFormS",staticClass:"dialogFormS",attrs:{model:e.dialogFormS,rules:e.rules,"label-position":"top"}},[t("el-form-item",{attrs:{prop:"",label:e.$t("Label.CidAccount")+":"}},[e._v(" "+e._s(e.dialogFormS.cId||"--")+" ")]),1==e.agentAccountSetting?t("el-form-item",{staticStyle:{"margin-bottom":"25px"},attrs:{label:e.$t("Documentary.AgentBackground.ExclusionAccountType")+":"}},[t("el-select",{staticStyle:{width:"100%"},attrs:{size:"mini",multiple:"",placeholder:e.$t("placeholder.choose")},on:{change:e.selectChange},model:{value:e.dialogFormS.excludeShowLoginTypes,callback:function(t){e.$set(e.dialogFormS,"excludeShowLoginTypes",t)},expression:"dialogFormS.excludeShowLoginTypes"}},[t("el-option",{attrs:{label:e.$t("AccountType.SeniorAccount"),value:"2"}}),t("el-option",{attrs:{label:e.$t("AccountType.StandardAccount"),value:"7"}}),t("el-option",{attrs:{label:e.$t("AccountType.CentAccount"),value:"8"}})],1)],1):t("el-form-item",{staticStyle:{"margin-bottom":"25px"},attrs:{label:e.$t("Documentary.AgentBackground.ExclusionAccountType")+":"}},[t("el-select",{staticStyle:{width:"100%"},attrs:{size:"mini",multiple:"",placeholder:e.$t("placeholder.choose")},on:{change:e.selectChange},model:{value:e.dialogFormS.excludeShowLoginTypes,callback:function(t){e.$set(e.dialogFormS,"excludeShowLoginTypes",t)},expression:"dialogFormS.excludeShowLoginTypes"}},e._l(e.filteredAccountTypeOptions,(function(e){return t("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1)],1),t("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{directives:[{name:"t",rawName:"v-t",value:"Btn.Cancel",expression:"'Btn.Cancel'"}],on:{click:e.CancelDocumentaryS1}}),t("el-button",{directives:[{name:"t",rawName:"v-t",value:"Btn.Confirm",expression:"'Btn.Confirm'"}],attrs:{type:"primary"},on:{click:e.toDocumentaryS1}})],1)],1)]),t("el-dialog",{attrs:{visible:e.dialogExclusiveCommission,center:"",title:e.$t("Ib.Custom.Commit5"),"custom-class":"dialog_header_w dialogIb"},on:{"update:visible":function(t){e.dialogExclusiveCommission=t}}},[t("div",{staticClass:"dia-content"},[t("el-form",{ref:"exclusiveCommissionForm",staticClass:"dialogForm",attrs:{model:e.exclusiveCommissionForm,"label-width":"140px"}},[t("el-form-item",{attrs:{label:e.$t("Ib.Custom.Commit5")}},[t("el-select",{staticStyle:{width:"100%","max-width":"200px"},attrs:{size:"mini",placeholder:e.$t("placeholder.choose")},model:{value:e.exclusiveCommissionForm.selectedPoint,callback:function(t){e.$set(e.exclusiveCommissionForm,"selectedPoint",t)},expression:"exclusiveCommissionForm.selectedPoint"}},e._l(e.exclusiveCommissionForm.pointOptions,(function(e){return t("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1)],1),t("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{directives:[{name:"t",rawName:"v-t",value:"Btn.Cancel",expression:"'Btn.Cancel'"}],on:{click:e.cancelExclusiveCommission}}),t("el-button",{directives:[{name:"t",rawName:"v-t",value:"Btn.Confirm",expression:"'Btn.Confirm'"}],attrs:{type:"primary"},on:{click:e.confirmExclusiveCommission}})],1)],1)]),t("el-dialog",{attrs:{visible:e.dialogDocumentaryS2,center:"",width:"95%",title:e.$t("Ib.Custom.Commit4"),"custom-class":"dialog_header_w1 dialogIb"},on:{"update:visible":function(t){e.dialogDocumentaryS2=t}}},[t("div",{staticClass:"dia-content"},[t("el-form",{ref:"dialogFormS",staticClass:"dialogFormS",attrs:{model:e.dialogFormS,rules:e.rules,"label-position":"top"}},[t("el-form-item",{attrs:{prop:"",label:e.$t("Drawer.Label.IbAccount")+":"}},[e._v(" "+e._s(e.dialogFormS.ibNo||"--")+" ")]),t("el-form-item",{staticStyle:{"margin-bottom":"25px"},attrs:{label:e.$t("Ib.Custom.Commit4")+":"}},[t("el-select",{staticStyle:{width:"100%"},attrs:{size:"mini",placeholder:e.$t("placeholder.choose")},on:{change:e.selectChange},model:{value:e.dialogFormS.agentAccountSetting,callback:function(t){e.$set(e.dialogFormS,"agentAccountSetting",t)},expression:"dialogFormS.agentAccountSetting"}},[t("el-option",{attrs:{label:e.$t("Ib.Custom.Close"),value:0}}),t("el-option",{attrs:{label:e.$t("Ib.Custom.Open"),value:1}})],1)],1)],1),t("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{directives:[{name:"t",rawName:"v-t",value:"Btn.Cancel",expression:"'Btn.Cancel'"}],on:{click:e.CancelDocumentaryS1}}),t("el-button",{directives:[{name:"t",rawName:"v-t",value:"Btn.Confirm",expression:"'Btn.Confirm'"}],attrs:{type:"primary"},on:{click:e.toDocumentaryS2}})],1)],1)]),t("el-dialog",{attrs:{visible:e.dialogDocumentaryS3,center:"",width:"95%",title:e.$t("Documentary.AgentBackground.item18"),"custom-class":"dialog_header_w1 dialogIb"},on:{"update:visible":function(t){e.dialogDocumentaryS3=t}}},[t("div",{staticClass:"dia-content"},[t("el-form",{ref:"dialogFormS3",staticClass:"dialogFormS3",attrs:{model:e.dialogFormS3,rules:e.rules1,"label-position":"top"}},[t("el-form-item",{attrs:{prop:"",label:e.$t("Documentary.console.item24")+":"}},[e._v(" "+e._s(e.dialogFormS3.dealLogin||"--")+" ")]),t("el-form-item",{staticStyle:{"margin-bottom":"25px"},attrs:{prop:"permissionDisplay",label:e.$t("Documentary.AgentBackground.item2")+":"}},[t("el-select",{staticStyle:{width:"100%"},attrs:{size:"mini",placeholder:e.$t("placeholder.choose")},on:{change:e.selectChange},model:{value:e.dialogFormS3.permissionDisplay,callback:function(t){e.$set(e.dialogFormS3,"permissionDisplay",t)},expression:"dialogFormS3.permissionDisplay"}},[t("el-option",{attrs:{label:e.$t("Documentary.AgentBackground.item16"),value:1}}),t("el-option",{attrs:{label:e.$t("Documentary.AgentBackground.item15"),value:2}})],1)],1),t("el-form-item",{attrs:{prop:"",label:e.$t("Label.AgentNumber")}},[t("el-input",{attrs:{disabled:"",placeholder:e.$t("placeholder.input")},on:{change:e.selectChange},model:{value:e.dialogFormS3.ibNo,callback:function(t){e.$set(e.dialogFormS3,"ibNo","string"===typeof t?t.trim():t)},expression:"dialogFormS3.ibNo"}})],1),t("el-form-item",{attrs:{prop:"agentDistributionRatio",label:e.$t("Documentary.Report.item7")}},[t("el-input",{attrs:{placeholder:e.$t("placeholder.input")},on:{change:e.selectChange},model:{value:e.dialogFormS3.agentDistributionRatio,callback:function(t){e.$set(e.dialogFormS3,"agentDistributionRatio","string"===typeof t?t.trim():t)},expression:"dialogFormS3.agentDistributionRatio"}})],1),t("el-form-item",{staticClass:"agree",attrs:{prop:"agree3"}},[t("el-checkbox",{on:{change:e.selectChange},model:{value:e.dialogFormS3.agree3,callback:function(t){e.$set(e.dialogFormS3,"agree3",t)},expression:"dialogFormS3.agree3"}}),t("span",{staticStyle:{"margin-left":"10px"}},[t("span",{directives:[{name:"t",rawName:"v-t",value:"Documentary.AgentBackground.item3",expression:"'Documentary.AgentBackground.item3'"}]}),-1!=["cn","zhHant"].indexOf(e.Session.Get("lang"))?t("a",{directives:[{name:"t",rawName:"v-t",value:"Documentary.AgentBackground.item4",expression:"'Documentary.AgentBackground.item4'"}],staticStyle:{color:"#4497ff"},attrs:{href:e.$setPdfLink("assets/pdf/CopyTradeUserAgreementcn.pdf"),target:"_blank"}}):t("a",{directives:[{name:"t",rawName:"v-t",value:"Documentary.AgentBackground.item4",expression:"'Documentary.AgentBackground.item4'"}],staticStyle:{color:"#4497ff"},attrs:{href:e.$setPdfLink("assets/pdf/CopyTradeUserAgreement.pdf"),target:"_blank"}})])],1)],1),t("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{directives:[{name:"t",rawName:"v-t",value:"Btn.Cancel",expression:"'Btn.Cancel'"}],on:{click:e.CancelDocumentaryS3}}),t("el-button",{directives:[{name:"t",rawName:"v-t",value:"Btn.Confirm",expression:"'Btn.Confirm'"}],attrs:{type:"primary"},on:{click:e.toDocumentaryS3}})],1)],1)]),t("el-dialog",{attrs:{visible:e.dialogInfoTradingAddTc,center:"",width:"95%",title:e.$t("Ib.Custom.Btn"),"custom-class":"dialog_header_w dialogIb"},on:{"update:visible":function(t){e.dialogInfoTradingAddTc=t}}},[t("div",{staticClass:"dia-content"},[t("div",{staticStyle:{"text-align":"initial","line-height":"1.5"}},[t("p",{directives:[{name:"t",rawName:"v-t",value:"news_add_field1.CustomerManagement.item1",expression:"'news_add_field1.CustomerManagement.item1'"}],staticStyle:{"margin-bottom":"5px"}}),t("p",{directives:[{name:"t",rawName:"v-t",value:"news_add_field1.CustomerManagement.item2",expression:"'news_add_field1.CustomerManagement.item2'"}],staticStyle:{"margin-bottom":"5px"}})]),t("div",{staticClass:"agree"},[t("el-checkbox",{model:{value:e.dialogInfoTradingAddTcAgree,callback:function(t){e.dialogInfoTradingAddTcAgree=t},expression:"dialogInfoTradingAddTcAgree"}}),t("div",{staticClass:"des"},[t("p",{directives:[{name:"t",rawName:"v-t",value:"news_add_field1.CustomerManagement.item3",expression:"'news_add_field1.CustomerManagement.item3'"}],staticStyle:{"margin-bottom":"5px"}})])],1),t("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{directives:[{name:"t",rawName:"v-t",value:"Btn.Cancel",expression:"'Btn.Cancel'"}],on:{click:function(t){return e.dialogInfoTradingAddCanle()}}}),t("el-button",{directives:[{name:"t",rawName:"v-t",value:"Btn.Confirm",expression:"'Btn.Confirm'"}],attrs:{type:"primary"},on:{click:function(t){return e.dialogInfoTradingAddOpen()}}})],1)])]),t("el-dialog",{attrs:{visible:e.dialogAddAgent,center:"",title:e.isFromAgentManagement?e.$t("Ib.Custom.Commit3"):e.$t("Ib.Custom.AddAgent"),"custom-class":"dialog_header_w dialogIb dialog-add-agent",width:e.dialogWidth},on:{"update:visible":function(t){e.dialogAddAgent=t}}},[t("div",{staticClass:"dia-content"},[t("el-form",{ref:"addAgentForm",staticClass:"dialogForm",attrs:{model:e.addAgentForm,"label-width":e.formLabelWidth}},[e.isFromApplyIb||e.isFromCustomerManagement||e.isFromAgentManagement?e._e():t("el-form-item",{attrs:{label:e.$t("Ib.Custom.Manage3")+":",prop:"customerId"}},[t("el-select",{attrs:{filterable:"",remote:"","remote-method":e.searchCustomer,loading:e.customerLoading,placeholder:e.$t("placeholder.choose"),clearable:""},on:{change:e.handleCustomerChange},model:{value:e.addAgentForm.customerId,callback:function(t){e.$set(e.addAgentForm,"customerId",t)},expression:"addAgentForm.customerId"}},e._l(e.customerList,(function(a){return t("el-option",{key:a.id,attrs:{label:a.name||a.id,value:a.id}},[t("span",[e._v(e._s(a.name||""))]),e._v("- "),t("span",{staticStyle:{color:"#8492a6","font-size":"13px"}},[e._v(" "+e._s(a.cId)+" ")])])})),1)],1)],1),t("div",{staticClass:"commission-table-wrapper"},[t("el-table",{staticClass:"crm_tab commission-table",staticStyle:{width:"100%"},attrs:{data:e.commissionTemplateTableData,stripe:"","span-method":e.commissionTemplateTableSpanMethod,border:""}},[t("el-table-column",{attrs:{prop:"valid",align:"center","header-align":"center",label:e.$t("Label.State"),width:e.isMobile?"70":"80",fixed:"left"},scopedSlots:e._u([{key:"default",fn:function(a){return[t("el-switch",{attrs:{"active-value":1,"inactive-value":0},on:{change:function(t){return e.handleCommissionTemplateValueChange(t,a.row)}},model:{value:a.row.valid,callback:function(t){e.$set(a.row,"valid",t)},expression:"scope.row.valid"}})]}}])}),t("el-table-column",{attrs:{prop:"accountGroup",align:"center","header-align":"center",label:e.$t("Ib.Custom.AccountGroup"),width:e.isMobile?"100":"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.accountGroup||"--"))]}}])}),t("el-table-column",{attrs:{prop:"type",align:"center","header-align":"center",label:e.$t("Label.Type"),width:(e.isMobile,"150")},scopedSlots:e._u([{key:"default",fn:function(a){return[t("span",[e._v(" "+e._s(a.row.type||"--")+" ")])]}}])}),t("el-table-column",{attrs:{prop:"energy",align:"center","header-align":"center",label:"METAL",width:e.isMobile?"90":"110"},scopedSlots:e._u([{key:"default",fn:function(a){return[t("el-select",{staticStyle:{width:"100%"},attrs:{size:(e.isMobile,"mini")},on:{change:e.handleCommissionTemplateValueChange},model:{value:a.row.energy,callback:function(t){e.$set(a.row,"energy",t)},expression:"scope.row.energy"}},e._l(a.row.energyOptions,(function(e){return t("el-option",{key:e,attrs:{label:e,value:e}})})),1)]}}])}),t("el-table-column",{attrs:{prop:"forex",align:"center","header-align":"center",label:"FX",width:e.isMobile?"90":"110"},scopedSlots:e._u([{key:"default",fn:function(a){return[t("el-select",{staticStyle:{width:"100%"},attrs:{size:(e.isMobile,"mini")},on:{change:e.handleCommissionTemplateValueChange},model:{value:a.row.forex,callback:function(t){e.$set(a.row,"forex",t)},expression:"scope.row.forex"}},e._l(a.row.forexOptions,(function(e){return t("el-option",{key:e,attrs:{label:e,value:e}})})),1)]}}])}),t("el-table-column",{attrs:{prop:"energyProduct",align:"center","header-align":"center",label:"ENERGY",width:e.isMobile?"90":"110"},scopedSlots:e._u([{key:"default",fn:function(a){return[t("el-select",{staticStyle:{width:"100%"},attrs:{size:(e.isMobile,"mini")},on:{change:e.handleCommissionTemplateValueChange},model:{value:a.row.energyProduct,callback:function(t){e.$set(a.row,"energyProduct",t)},expression:"scope.row.energyProduct"}},e._l(a.row.energyProductOptions,(function(e){return t("el-option",{key:e,attrs:{label:e,value:e}})})),1)]}}])}),t("el-table-column",{attrs:{prop:"index",align:"center","header-align":"center",label:"CFD",width:e.isMobile?"90":"110"},scopedSlots:e._u([{key:"default",fn:function(a){return[t("el-select",{staticStyle:{width:"100%"},attrs:{size:(e.isMobile,"mini")},on:{change:e.handleCommissionTemplateValueChange},model:{value:a.row.index,callback:function(t){e.$set(a.row,"index",t)},expression:"scope.row.index"}},e._l(a.row.indexOptions,(function(e){return t("el-option",{key:e,attrs:{label:e,value:e}})})),1)]}}])}),t("el-table-column",{attrs:{prop:"metal",align:"center","header-align":"center",label:"INDEX",width:e.isMobile?"90":"110"},scopedSlots:e._u([{key:"default",fn:function(a){return[t("el-select",{staticStyle:{width:"100%"},attrs:{size:(e.isMobile,"mini")},on:{change:e.handleCommissionTemplateValueChange},model:{value:a.row.metal,callback:function(t){e.$set(a.row,"metal",t)},expression:"scope.row.metal"}},e._l(a.row.metalOptions,(function(e){return t("el-option",{key:e,attrs:{label:e,value:e}})})),1)]}}])})],1)],1),t("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{directives:[{name:"t",rawName:"v-t",value:"Btn.Cancel",expression:"'Btn.Cancel'"}],on:{click:e.handleCloseAddAgentDialog}}),t("el-button",{directives:[{name:"t",rawName:"v-t",value:"Btn.Confirm",expression:"'Btn.Confirm'"}],attrs:{type:"primary"},on:{click:e.confirmAddAgent}})],1)],1)])],1)},r=[],n=a("c057"),o=n["a"],i=(a("084b"),a("053f"),a("2877")),_=Object(i["a"])(o,s,r,!1,null,"fa7fa040",null);t["default"]=_.exports},"32a8":function(e,t,a){},"498a":function(e,t,a){"use strict";var s=a("23e7"),r=a("58a8").trim,n=a("c8d2");s({target:"String",proto:!0,forced:n("trim")},{trim:function(){return r(this)}})},"97ab":function(e,t,a){},a434:function(e,t,a){"use strict";var s=a("23e7"),r=a("7b0b"),n=a("23cb"),o=a("5926"),i=a("07fa"),_=a("3a34"),l=a("3511"),c=a("65f0"),m=a("8418"),u=a("083a"),d=a("1dde"),p=d("splice"),g=Math.max,b=Math.min;s({target:"Array",proto:!0,forced:!p},{splice:function(e,t){var a,s,d,p,h,f,v=r(this),y=i(v),C=n(e,y),D=arguments.length;for(0===D?a=s=0:1===D?(a=0,s=y-C):(a=D-2,s=b(g(o(t),0),y-C)),l(y+a-s),d=c(v,s),p=0;p<s;p++)h=C+p,h in v&&m(d,p,v[h]);if(d.length=s,a<s){for(p=C;p<y-s;p++)h=p+s,f=p+a,h in v?v[f]=v[h]:u(v,f);for(p=y;p>y-s+a;p--)u(v,p-1)}else if(a>s)for(p=y-s;p>C;p--)h=p+s-1,f=p+a-1,h in v?v[f]=v[h]:u(v,f);for(p=0;p<a;p++)v[p+C]=arguments[p+2];return _(v,y-s+a),d}})},ab43:function(e,t,a){"use strict";var s=a("23e7"),r=a("d024"),n=a("c430");s({target:"Iterator",proto:!0,real:!0,forced:n},{map:r})},c057:function(module,__webpack_exports__,__webpack_require__){"use strict";var _Users_zhangtianqi_Desktop_work_gypsy_crm_frontend_mobile_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("5530"),_Users_zhangtianqi_Desktop_work_gypsy_crm_frontend_mobile_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("c7eb"),_Users_zhangtianqi_Desktop_work_gypsy_crm_frontend_mobile_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("1da1"),core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("d9e2"),core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_3__),core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("4de4"),core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_4__),core_js_modules_es_array_find_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("7db0"),core_js_modules_es_array_find_js__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(core_js_modules_es_array_find_js__WEBPACK_IMPORTED_MODULE_5__),core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("caad"),core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_6__),core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("d81d"),core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_7__),core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("14d9"),core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_8__),core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("a434"),core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_9___default=__webpack_require__.n(core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_9__),core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("b0c0"),core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_10___default=__webpack_require__.n(core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_10__),core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("e9f5"),core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_11___default=__webpack_require__.n(core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_11__),core_js_modules_es_iterator_find_js__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__("f665"),core_js_modules_es_iterator_find_js__WEBPACK_IMPORTED_MODULE_12___default=__webpack_require__.n(core_js_modules_es_iterator_find_js__WEBPACK_IMPORTED_MODULE_12__),core_js_modules_es_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__("7d54"),core_js_modules_es_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_13___default=__webpack_require__.n(core_js_modules_es_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_13__),core_js_modules_es_iterator_map_js__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__("ab43"),core_js_modules_es_iterator_map_js__WEBPACK_IMPORTED_MODULE_14___default=__webpack_require__.n(core_js_modules_es_iterator_map_js__WEBPACK_IMPORTED_MODULE_14__),core_js_modules_es_json_stringify_js__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__("e9c4"),core_js_modules_es_json_stringify_js__WEBPACK_IMPORTED_MODULE_15___default=__webpack_require__.n(core_js_modules_es_json_stringify_js__WEBPACK_IMPORTED_MODULE_15__),core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__("a9e3"),core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_16___default=__webpack_require__.n(core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_16__),core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__("b64b"),core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_17___default=__webpack_require__.n(core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_17__),core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__("d3b7"),core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_18___default=__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_18__),core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__("ac1f"),core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_19___default=__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_19__),core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__("25f0"),core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_20___default=__webpack_require__.n(core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_20__),core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__("2532"),core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_21___default=__webpack_require__.n(core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_21__),core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__("5319"),core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_22___default=__webpack_require__.n(core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_22__),core_js_modules_es_string_search_js__WEBPACK_IMPORTED_MODULE_23__=__webpack_require__("841c"),core_js_modules_es_string_search_js__WEBPACK_IMPORTED_MODULE_23___default=__webpack_require__.n(core_js_modules_es_string_search_js__WEBPACK_IMPORTED_MODULE_23__),core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_24__=__webpack_require__("159b"),core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_24___default=__webpack_require__.n(core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_24__),_service_ib__WEBPACK_IMPORTED_MODULE_25__=__webpack_require__("1c45"),_config_index__WEBPACK_IMPORTED_MODULE_26__=__webpack_require__("f121"),_config_index__WEBPACK_IMPORTED_MODULE_26___default=__webpack_require__.n(_config_index__WEBPACK_IMPORTED_MODULE_26__),Code=_config_index__WEBPACK_IMPORTED_MODULE_26___default.a.Code;__webpack_exports__["a"]={name:"ib_ib-client-management-list",components:{},data:function(){var e=this;return{dialogAddAgent:!1,addAgentForm:{customerId:"",agentId:""},customerList:[],customerLoading:!1,commissionTemplateTableData:[],isFromApplyIb:!1,isFromCustomerManagement:!1,isFromAgentManagement:!1,applyIbRowData:null,subPoints:null,dialogExclusiveCommission:!1,exclusiveCommissionForm:{agentId:"",selectedPoint:"",pointOptions:[]},flag:!1,pictLoading:!1,openType:"",dialogInfoTradingAdd:!1,formInfoRow:{},search:{tag:0,platform:"MT4",ibNo:"",cId:"",login:"",name:"",email:"",startDate:"",endDate:"",customerStatus:""},tableData:[],statistics:{unverifiedNum:0,unDepositNum:0,depositNum:0},dialogAllowIb:!1,dialogForm:{ibInvalid:null},dialogDocumentaryS:!1,dialogDocumentaryS1:!1,dialogDocumentaryS2:!1,dialogFormS:{ibInvalid:null,id:null},dialogDocumentaryS3:!1,dialogFormS3:{dealLogin:null},dialogInfoTradingAddTc:!1,dialogInfoTradingAddTcAgree:!1,pagerInfo:{row:10,current:1,pageTotal:0,rowTotal:0},rules:{ibInvalid:[{required:!0,message:this.$i18n.t("placeholder.choose"),trigger:"change"}],permissionDisplay:[{required:!0,validator:function(t,a,s){e.dialogFormS.permissionDisplay?s():s(new Error(e.$i18n.t("vaildate.select.empty")))},trigger:"change"}],agree:[{required:!0,validator:function(t,a,s){e.dialogFormS.agree?s():s(new Error(e.$i18n.t("vaildate.agree.empty")))},trigger:"blur"}],agree3:[{required:!0,validator:function(t,a,s){e.dialogFormS3.agree3?s():s(new Error(e.$i18n.t("vaildate.agree.empty")))},trigger:"blur"}]},rules1:{agentDistributionRatio:[{required:!0,validator:function(e,t,a){t&&t>=0&&t<=30?a():a(new Error("0-30"))},trigger:"blur"}],ibNo:[{required:!0,message:this.$i18n.t("vaildate.input.empty"),trigger:"blur"}],permissionDisplay:[{required:!0,validator:function(t,a,s){e.dialogFormS3.permissionDisplay?s():s(new Error(e.$i18n.t("vaildate.select.empty")))},trigger:"change"}],agree3:[{required:!0,validator:function(t,a,s){e.dialogFormS3.agree3?s():s(new Error(e.$i18n.t("vaildate.agree.empty")))},trigger:"blur"}]}}},computed:{levelNum:function(){return JSON.parse(this.Session.Get("user",!0)).ibInfo.levelNum},fixedHide:function(){return JSON.parse(this.Session.Get("user",!0)).ibInfo.fixedHide},getDocumentary:function(){var e=JSON.parse(this.Session.Get("user",!0)).customInfo.cId.toString(),t=["830526","830527","720095","717687","701441"],a=!1;return-1!=t.indexOf(e)&&(a=!0),a},agentAccountSetting:function(){return JSON.parse(this.Session.Get("user",!0)).ibInfo.agentAccountSetting},lang:function(){return this.Session.Get("lang")},country:function(){return JSON.parse(this.Session.Get("user",!0)).customInfo.country},exclude:function(){return JSON.parse(this.Session.Get("user",!0)).customInfo.excludeShowLoginTypes},filteredAccountTypeOptions:function(){var e=this,t=[{label:this.$t("AccountType.SeniorAccount"),value:"2"},{label:this.$t("AccountType.StandardAccount"),value:"7"},{label:this.$t("AccountType.CentAccount"),value:"8"}];return 1!==this.agentAccountSetting&&this.exclude&&Array.isArray(this.exclude)?t.filter((function(t){return t.value,!e.exclude.includes(t.value)})):t.filter((function(e){return"8"!==e.value||e}))},isMobile:function(){return window.innerWidth<=768},dialogWidth:function(){return this.isMobile?"95%":"50%"},formLabelWidth:function(){return this.isMobile?"90px":"120px"}},methods:{generateOptions:function(e){for(var t=[],a=0;a<=e;a++)t.push(a);return t},handleClick:function(e){console.log(e,"item"),this.subPoints=e.subPoints[0],this.exclusiveCommissionForm.selectedPoint=e.subPoints[0].value,this.exclusiveCommissionForm.agentId=e.id;var t=e.superPoints;for(var a in t)for(var s=t[a]||0,r=0;r<=s;r++)this.exclusiveCommissionForm.pointOptions.push({label:r,value:r});this.dialogExclusiveCommission=!0},cancelExclusiveCommission:function(){this.dialogExclusiveCommission=!1,this.exclusiveCommissionForm.selectedPoint="",this.exclusiveCommissionForm.pointOptions=[]},confirmExclusiveCommission:function(){var e=this;return Object(_Users_zhangtianqi_Desktop_work_gypsy_crm_frontend_mobile_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__["a"])(Object(_Users_zhangtianqi_Desktop_work_gypsy_crm_frontend_mobile_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1__["a"])().mark((function t(){var a,s;return Object(_Users_zhangtianqi_Desktop_work_gypsy_crm_frontend_mobile_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1__["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,a={point:e.subPoints.point,value:e.exclusiveCommissionForm.selectedPoint},t.next=4,_service_ib__WEBPACK_IMPORTED_MODULE_25__["a"].agentHiddenPointAdd({agentId:e.exclusiveCommissionForm.agentId,points:[a]});case 4:s=t.sent,s.code==Code.StatusOK&&(e.cancelExclusiveCommission(),e.handleSearch()),t.next=10;break;case 8:t.prev=8,t.t0=t["catch"](0);case 10:case"end":return t.stop()}}),t,null,[[0,8]])})))()},isAfterJuly7:function(){var e=new Date,t=new Date(e.getFullYear(),6,7);return e>=t},filterExcludeShowLoginTypes:function(){if(this.dialogFormS.excludeShowLoginTypes&&Array.isArray(this.dialogFormS.excludeShowLoginTypes)){var e=this.dialogFormS.excludeShowLoginTypes.indexOf("6");e>-1&&this.dialogFormS.excludeShowLoginTypes.splice(e,1)}},selectChange:function(){this.filterExcludeShowLoginTypes(),this.$forceUpdate()},chooseLang:function(e){e!=this.search.tag&&(this.flag||(this.flag=!0,this.search.startDate="",this.search.endDate="",this.search.ibNo="",this.search.cId="",this.search.login="",this.search.name="",this.search.email="",this.search.customerStatus="",this.tableData=[],this.pagerInfo.current=1,this.search.tag=e))},handleCommandCustom1:function(e){this.$router.push({path:"/ib/customer/adjustment",query:{login:e.login,type:e.type,commission:e.comPoint,hide:e.hide||0}}).catch((function(e){return e}))},handleCommandAllow3:function(e){this.$router.push({path:"/ib/customer/adjustment",query:{login:e.login,commission:e.comPoint,hide:e.hide||0,id:e.id}}).catch((function(e){return e}))},handleCommandCustom2:function(e){this.$router.push({path:"/ib/customer/change",query:{login:e.login,ibNo:e.ibNo}}).catch((function(e){return e}))},handleCommandCustom3:function(e){this.dialogFormS3.dealLogin=e.dealLogin,this.dialogFormS3.id=e.id,this.dialogFormS3.permissionDisplay=e.permissionDisplay,this.dialogFormS3.ibNo=e.pIbNo,this.dialogFormS3.agentDistributionRatio=null==e.agentDistributionRatio?"":e.agentDistributionRatio.toString(),this.dialogFormS3=JSON.parse(JSON.stringify(this.dialogFormS3)),this.dialogInfoTradingAddTc=!0},dialogInfoTradingAddCanle:function(){this.dialogInfoTradingAddTc=!1,this.dialogInfoTradingAddTcAgree=!1},dialogInfoTradingAddOpen:function(){this.dialogInfoTradingAddTcAgree?(this.dialogInfoTradingAddTc=!1,this.dialogDocumentaryS3=!0,this.dialogInfoTradingAddTcAgree=!1):this.$pigeon.MessageWarning(this.$i18n.t("Msg.Read"))},toDocumentaryS3:function(){var e=this;return Object(_Users_zhangtianqi_Desktop_work_gypsy_crm_frontend_mobile_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__["a"])(Object(_Users_zhangtianqi_Desktop_work_gypsy_crm_frontend_mobile_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1__["a"])().mark((function t(){return Object(_Users_zhangtianqi_Desktop_work_gypsy_crm_frontend_mobile_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1__["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.$refs["dialogFormS3"].validate(function(){var t=Object(_Users_zhangtianqi_Desktop_work_gypsy_crm_frontend_mobile_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__["a"])(Object(_Users_zhangtianqi_Desktop_work_gypsy_crm_frontend_mobile_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1__["a"])().mark((function t(a){var s;return Object(_Users_zhangtianqi_Desktop_work_gypsy_crm_frontend_mobile_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1__["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!a){t.next=12;break}if(!e.flag){t.next=5;break}return t.abrupt("return");case 5:e.flag=!0;case 6:return t.next=8,_service_ib__WEBPACK_IMPORTED_MODULE_25__["a"].followDealAgentUpdate({id:e.dialogFormS3.id,permissionDisplay:e.dialogFormS3.permissionDisplay,ibNo:e.dialogFormS3.ibNo?e.dialogFormS3.ibNo:"",agentDistributionRatio:e.dialogFormS3.agentDistributionRatio});case 8:s=t.sent,s.code==Code.StatusOK?(e.$pigeon.MessageOK(e.$i18n.t("Msg.ModifySuccess")),e.CancelDocumentaryS3(),e.handleSearch(),e.flag=!1):(e.$pigeon.MessageError(s.msg),e.flag=!1),t.next=13;break;case 12:return t.abrupt("return",!1);case 13:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 1:case"end":return t.stop()}}),t)})))()},CancelDocumentaryS3:function(){this.$refs["dialogFormS3"]&&this.$refs["dialogFormS3"].resetFields(),this.dialogDocumentaryS3=!1},handleCommandIB:function(e){this.openAddAgentDialogFromAgent(e)},handleCommandAllow:function(e){this.dialogForm.cId=e.cId,this.dialogForm.id=e.id,this.dialogForm.name=e.name,this.dialogForm.email=e.email,this.dialogForm.ibInvalid=e.ibInvalid,this.dialogAllowIb=!0},toAgree:function(){var e=this;return Object(_Users_zhangtianqi_Desktop_work_gypsy_crm_frontend_mobile_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__["a"])(Object(_Users_zhangtianqi_Desktop_work_gypsy_crm_frontend_mobile_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1__["a"])().mark((function t(){return Object(_Users_zhangtianqi_Desktop_work_gypsy_crm_frontend_mobile_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1__["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.$refs["dialogForm"].validate(function(){var t=Object(_Users_zhangtianqi_Desktop_work_gypsy_crm_frontend_mobile_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__["a"])(Object(_Users_zhangtianqi_Desktop_work_gypsy_crm_frontend_mobile_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1__["a"])().mark((function t(a){var s;return Object(_Users_zhangtianqi_Desktop_work_gypsy_crm_frontend_mobile_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1__["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!a){t.next=12;break}if(!e.flag){t.next=5;break}return t.abrupt("return");case 5:e.flag=!0;case 6:return t.next=8,_service_ib__WEBPACK_IMPORTED_MODULE_25__["a"].customUpdateIbInvalid({id:e.dialogForm.id,ibInvalid:Number(e.dialogForm.ibInvalid)});case 8:s=t.sent,s.code==Code.StatusOK?(e.$pigeon.MessageOK(e.$i18n.t("Msg.ModifySuccess")),e.Cancel(),e.handleSearch(),e.flag=!1):(e.$pigeon.MessageError(s.msg),e.flag=!1),t.next=13;break;case 12:return t.abrupt("return",!1);case 13:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 1:case"end":return t.stop()}}),t)})))()},Cancel:function(){this.$refs["dialogForm"]&&this.$refs["dialogForm"].resetFields(),this.dialogAllowIb=!1},handleCommandAllow1:function(e){this.dialogFormS.cId=e.cId,this.dialogFormS.id=e.id,this.dialogFormS.permissionDisplay=e.permissionDisplay,this.dialogDocumentaryS=!0},handleCommandAllow2:function(e){this.dialogFormS.cId=e.cId,this.dialogFormS.id=e.id,this.dialogFormS.excludeShowLoginTypes=e.excludeShowLoginTypes,this.filterExcludeShowLoginTypes(),this.dialogDocumentaryS1=!0},handleCommandAllow4:function(e){this.dialogFormS.ibNo=e.ibNo,this.dialogFormS.id=e.id,this.dialogFormS.agentAccountSetting=e.agentAccountSetting||0,this.dialogDocumentaryS2=!0},toDocumentaryS:function(){var e=this;return Object(_Users_zhangtianqi_Desktop_work_gypsy_crm_frontend_mobile_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__["a"])(Object(_Users_zhangtianqi_Desktop_work_gypsy_crm_frontend_mobile_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1__["a"])().mark((function t(){return Object(_Users_zhangtianqi_Desktop_work_gypsy_crm_frontend_mobile_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1__["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.$refs["dialogFormS"].validate(function(){var t=Object(_Users_zhangtianqi_Desktop_work_gypsy_crm_frontend_mobile_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__["a"])(Object(_Users_zhangtianqi_Desktop_work_gypsy_crm_frontend_mobile_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1__["a"])().mark((function t(a){var s;return Object(_Users_zhangtianqi_Desktop_work_gypsy_crm_frontend_mobile_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1__["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!a){t.next=12;break}if(!e.flag){t.next=5;break}return t.abrupt("return");case 5:e.flag=!0;case 6:return t.next=8,_service_ib__WEBPACK_IMPORTED_MODULE_25__["a"].customUpdateFollowPermissionDisplay({id:e.dialogFormS.id,permissionDisplay:e.dialogFormS.permissionDisplay});case 8:s=t.sent,s.code==Code.StatusOK?(e.$pigeon.MessageOK(e.$i18n.t("Msg.ModifySuccess")),e.CancelDocumentaryS(),e.handleSearch(),e.flag=!1):(e.$pigeon.MessageError(s.msg),e.flag=!1),t.next=13;break;case 12:return t.abrupt("return",!1);case 13:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 1:case"end":return t.stop()}}),t)})))()},toDocumentaryS1:function(){var e=this;return Object(_Users_zhangtianqi_Desktop_work_gypsy_crm_frontend_mobile_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__["a"])(Object(_Users_zhangtianqi_Desktop_work_gypsy_crm_frontend_mobile_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1__["a"])().mark((function t(){return Object(_Users_zhangtianqi_Desktop_work_gypsy_crm_frontend_mobile_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1__["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.$refs["dialogFormS"].validate(function(){var t=Object(_Users_zhangtianqi_Desktop_work_gypsy_crm_frontend_mobile_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__["a"])(Object(_Users_zhangtianqi_Desktop_work_gypsy_crm_frontend_mobile_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1__["a"])().mark((function t(a){var s;return Object(_Users_zhangtianqi_Desktop_work_gypsy_crm_frontend_mobile_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1__["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!a){t.next=7;break}return t.next=3,_service_ib__WEBPACK_IMPORTED_MODULE_25__["a"].customAccount({id:e.dialogFormS.id,excludeShowLoginTypes:e.dialogFormS.excludeShowLoginTypes||null});case 3:s=t.sent,s.code==Code.StatusOK?(e.$pigeon.MessageOK(e.$i18n.t("Msg.ModifySuccess")),e.CancelDocumentaryS1(),e.handleSearch(),e.flag=!1):(e.$pigeon.MessageError(s.msg),e.flag=!1),t.next=8;break;case 7:return t.abrupt("return",!1);case 8:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 1:case"end":return t.stop()}}),t)})))()},toDocumentaryS2:function(){var e=this;return Object(_Users_zhangtianqi_Desktop_work_gypsy_crm_frontend_mobile_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__["a"])(Object(_Users_zhangtianqi_Desktop_work_gypsy_crm_frontend_mobile_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1__["a"])().mark((function t(){return Object(_Users_zhangtianqi_Desktop_work_gypsy_crm_frontend_mobile_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1__["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.$refs["dialogFormS"].validate(function(){var t=Object(_Users_zhangtianqi_Desktop_work_gypsy_crm_frontend_mobile_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__["a"])(Object(_Users_zhangtianqi_Desktop_work_gypsy_crm_frontend_mobile_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1__["a"])().mark((function t(a){var s;return Object(_Users_zhangtianqi_Desktop_work_gypsy_crm_frontend_mobile_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1__["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!a){t.next=7;break}return t.next=3,_service_ib__WEBPACK_IMPORTED_MODULE_25__["a"].IbAgentSetting({id:e.dialogFormS.id,agentAccountSetting:e.dialogFormS.agentAccountSetting||null});case 3:s=t.sent,s.code==Code.StatusOK?(e.$pigeon.MessageOK(e.$i18n.t("Msg.ModifySuccess")),e.CancelDocumentaryS2(),e.handleSearch(),e.flag=!1):(e.$pigeon.MessageError(s.msg),e.flag=!1),t.next=8;break;case 7:return t.abrupt("return",!1);case 8:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 1:case"end":return t.stop()}}),t)})))()},CancelDocumentaryS:function(){this.$refs["dialogFormS"]&&this.$refs["dialogFormS"].resetFields(),this.dialogDocumentaryS=!1},CancelDocumentaryS1:function(){this.$refs["dialogFormS"]&&this.$refs["dialogFormS"].resetFields(),this.dialogDocumentaryS1=!1},CancelDocumentaryS2:function(){this.$refs["dialogFormS"]&&this.$refs["dialogFormS"].resetFields(),this.dialogDocumentaryS2=!1},handleSearch:function(){var e=this.search.startDate,t=this.search.endDate,a=new Date(this.search.startDate.replace(/-/g,"/")),s=new Date(this.search.endDate.replace(/-/g,"/")),r=a.getTime(),n=s.getTime();r>n?(this.search.startDate=t,this.search.endDate=e):(this.search.startDate=e,this.search.endDate=t),this.pagerInfo.current=1,this.searchFunc()},searchFunc:function(){var e=this;return Object(_Users_zhangtianqi_Desktop_work_gypsy_crm_frontend_mobile_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__["a"])(Object(_Users_zhangtianqi_Desktop_work_gypsy_crm_frontend_mobile_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1__["a"])().mark((function t(){var a,s,r,n,o;return Object(_Users_zhangtianqi_Desktop_work_gypsy_crm_frontend_mobile_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1__["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.pictLoading=!0,1!=e.search.tag){t.next=10;break}return e.search.platform=e.search.platform?e.search.platform:"MT4",t.next=5,_service_ib__WEBPACK_IMPORTED_MODULE_25__["a"].accountSubs(Object(_Users_zhangtianqi_Desktop_work_gypsy_crm_frontend_mobile_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["a"])(Object(_Users_zhangtianqi_Desktop_work_gypsy_crm_frontend_mobile_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["a"])({},e.search),{},{page:{current:e.pagerInfo.current,row:e.pagerInfo.row}}));case 5:a=t.sent,a.code==Code.StatusOK?(e.tableData=a.data,null!=a.page?(e.pagerInfo.rowTotal=a.page.rowTotal,e.pagerInfo.pageTotal=a.page.pageTotal):(e.tableData=[],e.pagerInfo.rowTotal=0),e.$pigeon.MessageOK(e.$i18n.t("Msg.SearchSuccess")),e.flag=!1):(e.$pigeon.MessageError(a.msg),e.flag=!1),e.pictLoading=!1,t.next=37;break;case 10:if(2!=e.search.tag){t.next=19;break}return e.search.platform="",t.next=14,_service_ib__WEBPACK_IMPORTED_MODULE_25__["a"].IbSubs(Object(_Users_zhangtianqi_Desktop_work_gypsy_crm_frontend_mobile_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["a"])(Object(_Users_zhangtianqi_Desktop_work_gypsy_crm_frontend_mobile_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["a"])({},e.search),{},{page:{current:e.pagerInfo.current,row:e.pagerInfo.row}}));case 14:s=t.sent,s.code==Code.StatusOK?(e.tableData=s.data,setTimeout((function(){e.getAgentHiddenPointList()}),500),null!=s.page?(e.pagerInfo.rowTotal=s.page.rowTotal,e.pagerInfo.pageTotal=s.page.pageTotal):(e.tableData=[],e.pagerInfo.rowTotal=0),e.$pigeon.MessageOK(e.$i18n.t("Msg.SearchSuccess")),e.flag=!1):(e.$pigeon.MessageError(s.msg),e.flag=!1),e.pictLoading=!1,t.next=37;break;case 19:if(3!=e.search.tag){t.next=30;break}return e.search.platform="",r={name:e.search.name||"",email:e.search.email||"",cId:e.search.cId||"",page:{current:e.pagerInfo.current,row:e.pagerInfo.row}},e.search.customerStatus&&("unverified"===e.search.customerStatus?r.belongsType=1:"unDeposit"===e.search.customerStatus?r.belongsType=2:"deposit"===e.search.customerStatus&&(r.belongsType=3)),t.next=25,_service_ib__WEBPACK_IMPORTED_MODULE_25__["a"].customerSubs(r);case 25:n=t.sent,n.code==Code.StatusOK?(e.tableData=n.data,null!=n.page?(e.pagerInfo.rowTotal=n.page.rowTotal,e.pagerInfo.pageTotal=n.page.pageTotal):(e.tableData=[],e.pagerInfo.rowTotal=0),e.$pigeon.MessageOK(e.$i18n.t("Msg.SearchSuccess")),e.flag=!1):(e.$pigeon.MessageError(n.msg),e.flag=!1),e.pictLoading=!1,t.next=37;break;case 30:if(4!=e.search.tag){t.next=37;break}return e.search.platform="",t.next=34,_service_ib__WEBPACK_IMPORTED_MODULE_25__["a"].followDealAgentSearchList({page:{current:e.pagerInfo.current,row:e.pagerInfo.row}});case 34:o=t.sent,o.code==Code.StatusOK?(e.tableData=o.data,null!=o.page?(e.pagerInfo.rowTotal=o.page.rowTotal,e.pagerInfo.pageTotal=o.page.pageTotal):(e.tableData=[],e.pagerInfo.rowTotal=0),e.$pigeon.MessageOK(e.$i18n.t("Msg.SearchSuccess")),e.flag=!1):(e.$pigeon.MessageError(o.msg),e.flag=!1),e.pictLoading=!1;case 37:case"end":return t.stop()}}),t)})))()},handleSizeChange:function(e){this.pagerInfo.row=e,this.searchFunc()},handleCurrentChange:function(e){this.pagerInfo.current=e,this.searchFunc()},getAgentHiddenPointList:function getAgentHiddenPointList(){var _this10=this;return Object(_Users_zhangtianqi_Desktop_work_gypsy_crm_frontend_mobile_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__["a"])(Object(_Users_zhangtianqi_Desktop_work_gypsy_crm_frontend_mobile_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1__["a"])().mark((function _callee13(){var agentIds,res;return Object(_Users_zhangtianqi_Desktop_work_gypsy_crm_frontend_mobile_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1__["a"])().wrap((function _callee13$(_context13){while(1)switch(_context13.prev=_context13.next){case 0:if(_context13.prev=0,agentIds=_this10.tableData.map((function(e){return e.id})),0!==agentIds.length){_context13.next=5;break}return _this10.$pigeon.MessageWarning(_this10.$i18n.t("Msg.SearchFail")),_context13.abrupt("return");case 5:return _context13.next=7,_service_ib__WEBPACK_IMPORTED_MODULE_25__["a"].agentHiddenPointSearchList({agentIds:agentIds});case 7:res=_context13.sent,res.code==Code.StatusOK?(res.data&&res.data.length>0&&(_this10.tableData=_this10.tableData.map((function(tableItem){var matchingData=res.data.find((function(e){return e.agentId===tableItem.id}));return matchingData?Object(_Users_zhangtianqi_Desktop_work_gypsy_crm_frontend_mobile_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["a"])(Object(_Users_zhangtianqi_Desktop_work_gypsy_crm_frontend_mobile_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["a"])({},tableItem),{},{subPoints:matchingData.subPoints,superPoints:eval("("+matchingData.superPoints+")")}):tableItem}))),console.log(_this10.tableData,"this.tableData"),_this10.$pigeon.MessageOK(_this10.$i18n.t("Msg.SearchSuccess"))):_this10.$pigeon.MessageError(res.msg),_context13.next=14;break;case 11:_context13.prev=11,_context13.t0=_context13["catch"](0),console.error("获取代理隐藏点数搜索列表失败:",_context13.t0);case 14:case"end":return _context13.stop()}}),_callee13,null,[[0,11]])})))()},getCustomerStatistics:function(){var e=this;return Object(_Users_zhangtianqi_Desktop_work_gypsy_crm_frontend_mobile_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__["a"])(Object(_Users_zhangtianqi_Desktop_work_gypsy_crm_frontend_mobile_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1__["a"])().mark((function t(){var a;return Object(_Users_zhangtianqi_Desktop_work_gypsy_crm_frontend_mobile_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1__["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,_service_ib__WEBPACK_IMPORTED_MODULE_25__["a"].customerStatistics();case 3:a=t.sent,a.code==Code.StatusOK&&a.data&&(e.statistics={unverifiedNum:a.data.unverifiedNum||0,unDepositNum:a.data.unDepositNum||0,depositNum:a.data.depositNum||0}),t.next=10;break;case 7:t.prev=7,t.t0=t["catch"](0),console.error("获取客户统计数据失败:",t.t0);case 10:case"end":return t.stop()}}),t,null,[[0,7]])})))()},handleStatusChange:function(){this.pagerInfo.current=1,this.searchFunc()},handleCloseAddAgentDialog:function(){this.dialogAddAgent=!1,this.isFromApplyIb=!1,this.isFromCustomerManagement=!1,this.isFromAgentManagement=!1,this.applyIbRowData=null,this.addAgentForm.customerId="",this.addAgentForm.agentId="",this.commissionTemplateTableData=[]},openAddAgentDialog:function(){var e=this;return Object(_Users_zhangtianqi_Desktop_work_gypsy_crm_frontend_mobile_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__["a"])(Object(_Users_zhangtianqi_Desktop_work_gypsy_crm_frontend_mobile_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1__["a"])().mark((function t(){return Object(_Users_zhangtianqi_Desktop_work_gypsy_crm_frontend_mobile_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1__["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.isFromApplyIb=!1,e.isFromCustomerManagement=!1,e.isFromAgentManagement=!1,e.applyIbRowData=null,e.dialogAddAgent=!0,e.addAgentForm.customerId="",e.addAgentForm.agentId="",e.customerList=[],e.commissionTemplateTableData=[],t.next=11,e.loadCustomerList();case 11:case"end":return t.stop()}}),t)})))()},openAddAgentDialogFromCustomer:function(e){var t=this;return Object(_Users_zhangtianqi_Desktop_work_gypsy_crm_frontend_mobile_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__["a"])(Object(_Users_zhangtianqi_Desktop_work_gypsy_crm_frontend_mobile_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1__["a"])().mark((function a(){return Object(_Users_zhangtianqi_Desktop_work_gypsy_crm_frontend_mobile_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1__["a"])().wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(t.isFromApplyIb=!1,t.isFromCustomerManagement=!0,t.isFromAgentManagement=!1,t.applyIbRowData=null,t.dialogAddAgent=!0,t.addAgentForm.customerId=e.id,t.addAgentForm.agentId="",t.customerList=[],t.commissionTemplateTableData=[],!e.id){a.next=12;break}return a.next=12,t.initCommissionTemplateData(e.id,!1);case 12:case"end":return a.stop()}}),a)})))()},openAddAgentDialogFromAgent:function(e){var t=this;return Object(_Users_zhangtianqi_Desktop_work_gypsy_crm_frontend_mobile_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__["a"])(Object(_Users_zhangtianqi_Desktop_work_gypsy_crm_frontend_mobile_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1__["a"])().mark((function a(){return Object(_Users_zhangtianqi_Desktop_work_gypsy_crm_frontend_mobile_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1__["a"])().wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(t.isFromApplyIb=!1,t.isFromCustomerManagement=!1,t.isFromAgentManagement=!0,t.applyIbRowData=null,t.dialogAddAgent=!0,t.addAgentForm.customerId="",t.addAgentForm.agentId=e.id,t.customerList=[],t.commissionTemplateTableData=[],!e.id){a.next=12;break}return a.next=12,t.initCommissionTemplateData(e.id,!0);case 12:case"end":return a.stop()}}),a)})))()},loadCustomerList:function(){var e=arguments,t=this;return Object(_Users_zhangtianqi_Desktop_work_gypsy_crm_frontend_mobile_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__["a"])(Object(_Users_zhangtianqi_Desktop_work_gypsy_crm_frontend_mobile_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1__["a"])().mark((function a(){var s,r;return Object(_Users_zhangtianqi_Desktop_work_gypsy_crm_frontend_mobile_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1__["a"])().wrap((function(a){while(1)switch(a.prev=a.next){case 0:return s=e.length>0&&void 0!==e[0]?e[0]:"",t.customerLoading=!0,a.prev=2,a.next=5,_service_ib__WEBPACK_IMPORTED_MODULE_25__["a"].customerSubsList({ibStatus:1,name:s||""});case 5:r=a.sent,r.code==Code.StatusOK?t.customerList=r.data||[]:(t.$pigeon.MessageError(r.msg),t.customerList=[]),a.next=13;break;case 9:a.prev=9,a.t0=a["catch"](2),console.error("加载客户列表失败:",a.t0),t.customerList=[];case 13:return a.prev=13,t.customerLoading=!1,a.finish(13);case 16:case"end":return a.stop()}}),a,null,[[2,9,13,16]])})))()},searchCustomer:function(e){var t=this;return Object(_Users_zhangtianqi_Desktop_work_gypsy_crm_frontend_mobile_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__["a"])(Object(_Users_zhangtianqi_Desktop_work_gypsy_crm_frontend_mobile_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1__["a"])().mark((function a(){return Object(_Users_zhangtianqi_Desktop_work_gypsy_crm_frontend_mobile_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1__["a"])().wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(""===e){a.next=5;break}return a.next=3,t.loadCustomerList(e);case 3:a.next=7;break;case 5:return a.next=7,t.loadCustomerList();case 7:case"end":return a.stop()}}),a)})))()},initCommissionTemplateData:function(e){var t=arguments,a=this;return Object(_Users_zhangtianqi_Desktop_work_gypsy_crm_frontend_mobile_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__["a"])(Object(_Users_zhangtianqi_Desktop_work_gypsy_crm_frontend_mobile_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1__["a"])().mark((function s(){var r,n,o,i;return Object(_Users_zhangtianqi_Desktop_work_gypsy_crm_frontend_mobile_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1__["a"])().wrap((function(s){while(1)switch(s.prev=s.next){case 0:return r=t.length>1&&void 0!==t[1]&&t[1],s.prev=1,n=r?{agentId:e}:{customId:e},s.next=5,_service_ib__WEBPACK_IMPORTED_MODULE_25__["a"].getVietnamPoints(n);case 5:o=s.sent,o.code==Code.StatusOK&&o.data&&Array.isArray(o.data)?(i=[],o.data.forEach((function(e){var t=e.groupCategoryName||"--",s=void 0!==e.valid?e.valid:1;if(e.superRebates&&Array.isArray(e.superRebates)&&e.superRebates.length>0){var r={accountGroup:t,groupCategoryId:e.groupCategoryId,dataType:"rebates",type:e.rebateTypeName||"Point",valid:s,forex:0,index:0,metal:0,energy:0,energyProduct:0,forex1:0,index1:0,metal1:0,energy1:0,energyProduct1:0};e.rebates.forEach((function(e){1===e.symbolCategory?r.forex=e.point||0:2===e.symbolCategory?r.index=e.point||0:3===e.symbolCategory?r.metal=e.point||0:4===e.symbolCategory?r.energy=e.point||0:5===e.symbolCategory&&(r.energyProduct=e.point||0)})),e.superRebates.forEach((function(e){1===e.symbolCategory?r.forex1=e.point||0:2===e.symbolCategory?r.index1=e.point||0:3===e.symbolCategory?r.metal1=e.point||0:4===e.symbolCategory?r.energy1=e.point||0:5===e.symbolCategory&&(r.energyProduct1=e.point||0)})),r.forexOptions=a.generateOptions(r.forex1),r.indexOptions=a.generateOptions(r.index1),r.metalOptions=a.generateOptions(r.metal1),r.energyOptions=a.generateOptions(r.energy1),r.energyProductOptions=a.generateOptions(r.energyProduct1),i.push(r)}if(e.superCommissions&&Array.isArray(e.superCommissions)&&e.superCommissions.length>0){var n={accountGroup:t,groupCategoryId:e.groupCategoryId,dataType:"commissions",type:e.commissionTypeName||"Commission",valid:s,forex:0,index:0,metal:0,energy:0,energyProduct:0,forex1:0,index1:0,metal1:0,energy1:0,energyProduct1:0};e.commissions.forEach((function(e){1===e.symbolCategory?n.forex=e.point||0:2===e.symbolCategory?n.index=e.point||0:3===e.symbolCategory?n.metal=e.point||0:4===e.symbolCategory?n.energy=e.point||0:5===e.symbolCategory&&(n.energyProduct=e.point||0)})),e.superCommissions.forEach((function(e){1===e.symbolCategory?n.forex1=e.point||0:2===e.symbolCategory?n.index1=e.point||0:3===e.symbolCategory?n.metal1=e.point||0:4===e.symbolCategory?n.energy1=e.point||0:5===e.symbolCategory&&(n.energyProduct1=e.point||0)})),n.forexOptions=a.generateOptions(n.forex1),n.indexOptions=a.generateOptions(n.index1),n.metalOptions=a.generateOptions(n.metal1),n.energyOptions=a.generateOptions(n.energy1),n.energyProductOptions=a.generateOptions(n.energyProduct1),i.push(n)}})),a.commissionTemplateTableData=i):(a.commissionTemplateTableData=[],a.$pigeon.MessageError(o.msg||a.$i18n.t("Ib.Custom.MsgGetDataFail"))),s.next=14;break;case 9:s.prev=9,s.t0=s["catch"](1),console.error("获取佣金模板数据失败:",s.t0),a.commissionTemplateTableData=[],a.$pigeon.MessageError(a.$i18n.t("Ib.Custom.MsgGetDataFail"));case 14:case"end":return s.stop()}}),s,null,[[1,9]])})))()},handleCustomerChange:function(e){var t=this;return Object(_Users_zhangtianqi_Desktop_work_gypsy_crm_frontend_mobile_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__["a"])(Object(_Users_zhangtianqi_Desktop_work_gypsy_crm_frontend_mobile_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1__["a"])().mark((function a(){return Object(_Users_zhangtianqi_Desktop_work_gypsy_crm_frontend_mobile_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1__["a"])().wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(console.log(e),!e){a.next=6;break}return a.next=4,t.initCommissionTemplateData(e);case 4:a.next=7;break;case 6:t.commissionTemplateTableData=[];case 7:case"end":return a.stop()}}),a)})))()},handleCommissionTemplateValueChange:function(e,t){t&&void 0!==t.groupCategoryId&&this.commissionTemplateTableData.forEach((function(a){a.groupCategoryId===t.groupCategoryId&&(a.valid=e)}))},commissionTemplateTableSpanMethod:function(e){var t=e.row,a=e.rowIndex,s=e.columnIndex;if(0===s||1===s){for(var r=t.accountGroup,n=0,o=a,i=a;i>=0;i--){if(this.commissionTemplateTableData[i].accountGroup!==r)break;o=i}if(o===a){for(var _=a;_<this.commissionTemplateTableData.length;_++){if(this.commissionTemplateTableData[_].accountGroup!==r)break;n++}return{rowspan:n,colspan:1}}return{rowspan:0,colspan:0}}return{rowspan:1,colspan:1}},buildCommissionTemplatePoints:function(){var e=[],t={};return this.commissionTemplateTableData.forEach((function(e){var a=e.groupCategoryId;t[a]||(t[a]={groupCategoryId:a,commissions:[],rebates:[],valid:void 0!==e.valid?e.valid:1});var s="commissions"===e.dataType?t[a].commissions:t[a].rebates;void 0!==e.forex&&null!==e.forex&&s.push({symbolCategory:1,point:e.forex}),void 0!==e.index&&null!==e.index&&s.push({symbolCategory:2,point:e.index}),void 0!==e.metal&&null!==e.metal&&s.push({symbolCategory:3,point:e.metal}),void 0!==e.energy&&null!==e.energy&&s.push({symbolCategory:4,point:e.energy}),void 0!==e.energyProduct&&null!==e.energyProduct&&s.push({symbolCategory:5,point:e.energyProduct})})),Object.keys(t).forEach((function(a){var s=t[a];(s.commissions.length>0||s.rebates.length>0)&&e.push({groupCategoryId:s.groupCategoryId,commissions:s.commissions.length>0?s.commissions:void 0,rebates:s.rebates.length>0?s.rebates:void 0,valid:s.valid})})),e},saveCommissionTemplate:function(){var e=this;return Object(_Users_zhangtianqi_Desktop_work_gypsy_crm_frontend_mobile_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__["a"])(Object(_Users_zhangtianqi_Desktop_work_gypsy_crm_frontend_mobile_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1__["a"])().mark((function t(){var a,s,r,n;return Object(_Users_zhangtianqi_Desktop_work_gypsy_crm_frontend_mobile_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1__["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(a=e.addAgentForm.agentId,s=e.addAgentForm.customerId,!e.isFromAgentManagement){t.next=8;break}if(a){t.next=6;break}return e.$pigeon.MessageWarning(e.$i18n.t("Ib.Custom.MsgAgentInfoNotExist")),t.abrupt("return",!1);case 6:t.next=11;break;case 8:if(s){t.next=11;break}return e.$pigeon.MessageWarning(e.$i18n.t("Ib.Custom.MsgSelectCustomerFirst")),t.abrupt("return",!1);case 11:return t.prev=11,r=e.buildCommissionTemplatePoints(),t.next=15,_service_ib__WEBPACK_IMPORTED_MODULE_25__["a"].saveVietnamPoints(e.isFromAgentManagement?{agentId:a,points:r}:{customId:s,points:r});case 15:if(n=t.sent,n.code!=Code.StatusOK){t.next=21;break}return e.$pigeon.MessageOK(n.msg||e.$i18n.t("Ib.Custom.MsgSaveSuccess")),t.abrupt("return",!0);case 21:return e.$pigeon.MessageError(n.msg||e.$i18n.t("Ib.Custom.MsgSaveFail")),t.abrupt("return",!1);case 23:t.next=30;break;case 25:return t.prev=25,t.t0=t["catch"](11),console.error("保存佣金模板数据失败:",t.t0),e.$pigeon.MessageError(e.$i18n.t("Ib.Custom.MsgSaveFail")),t.abrupt("return",!1);case 30:case"end":return t.stop()}}),t,null,[[11,25]])})))()},confirmAddAgent:function(){var e=this;return Object(_Users_zhangtianqi_Desktop_work_gypsy_crm_frontend_mobile_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__["a"])(Object(_Users_zhangtianqi_Desktop_work_gypsy_crm_frontend_mobile_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1__["a"])().mark((function t(){var a,s,r,n,o,i,_;return Object(_Users_zhangtianqi_Desktop_work_gypsy_crm_frontend_mobile_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1__["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!e.isFromAgentManagement){t.next=6;break}return t.next=3,e.saveCommissionTemplate();case 3:return a=t.sent,a&&(e.dialogAddAgent=!1,e.isFromAgentManagement=!1,e.addAgentForm.agentId="",e.handleSearch()),t.abrupt("return");case 6:if(!e.isFromApplyIb){t.next=14;break}if(e.applyIbRowData){t.next=10;break}return e.$pigeon.MessageWarning(e.$i18n.t("Ib.Custom.MsgCustomerInfoNotExist")),t.abrupt("return");case 10:s=e.applyIbRowData.id,r=e.applyIbRowData.cId,t.next=37;break;case 14:if(!e.isFromCustomerManagement){t.next=28;break}if(e.addAgentForm.customerId){t.next=18;break}return e.$pigeon.MessageWarning(e.$i18n.t("Ib.Custom.MsgCustomerInfoNotExist")),t.abrupt("return");case 18:if(s=e.addAgentForm.customerId,n=e.tableData.find((function(e){return e.id===s})),!n){t.next=24;break}r=n.cId,t.next=26;break;case 24:return e.$pigeon.MessageWarning(e.$i18n.t("Ib.Custom.MsgCustomerNotFound")),t.abrupt("return");case 26:t.next=37;break;case 28:if(e.addAgentForm.customerId){t.next=31;break}return e.$pigeon.MessageWarning(e.$i18n.t("placeholder.choose")),t.abrupt("return");case 31:if(o=e.customerList.find((function(t){return t.id===e.addAgentForm.customerId})),o){t.next=35;break}return e.$pigeon.MessageWarning(e.$i18n.t("Ib.Custom.MsgSelectedCustomerNotFound")),t.abrupt("return");case 35:s=o.id,r=o.cId;case 37:return t.prev=37,i=e.buildCommissionTemplatePoints(),t.next=41,_service_ib__WEBPACK_IMPORTED_MODULE_25__["a"].agentApplyAddPoint({customId:s,cId:r,points:i});case 41:_=t.sent,_.code==Code.StatusOK?(e.$pigeon.MessageOK(_.msg||e.$i18n.t("Ib.Custom.MsgSubmitSuccess")),e.dialogAddAgent=!1,e.isFromApplyIb=!1,e.isFromCustomerManagement=!1,e.applyIbRowData=null,e.handleSearch()):e.$pigeon.MessageError(_.msg||e.$i18n.t("Ib.Custom.MsgSubmitFail")),t.next=49;break;case 45:t.prev=45,t.t0=t["catch"](37),console.error("新增代理失败:",t.t0),e.$pigeon.MessageError(e.$i18n.t("Ib.Custom.MsgSubmitFail"));case 49:case"end":return t.stop()}}),t,null,[[37,45]])})))()},goToAccountAdjustPage:function(e){var t={id:String(e.id),cId:null!=e.cId?String(e.cId):""};null!=e.ibId&&""!==e.ibId&&(t.ibId=String(e.ibId)),this.$router.push({path:"/ib/customer/account-opening-adjust",query:t}).catch((function(){}))}},mounted:function(){this.search.tag=this.$route.query.type?Number(this.$route.query.type):3,3==this.search.tag&&this.getCustomerStatistics()},watch:{"search.tag":function(e){var t=this;this.$refs["search"]&&this.$refs["search"].resetFields(),this.$router.push({path:"/ib/customer",query:{type:e}}).catch((function(e){return e})),3==e&&this.getCustomerStatistics(),this.pagerInfo.current=1,this.$nextTick((function(){t.searchFunc()}))}}}},c8d2:function(e,t,a){"use strict";var s=a("5e77").PROPER,r=a("d039"),n=a("5899"),o="​…᠎";e.exports=function(e){return r((function(){return!!n[e]()||o[e]()!==o||s&&n[e].name!==e}))}},d024:function(e,t,a){"use strict";var s=a("c65b"),r=a("59ed"),n=a("825a"),o=a("46c4"),i=a("c5cc"),_=a("9bdd"),l=i((function(){var e=this.iterator,t=n(s(this.next,e)),a=this.done=!!t.done;if(!a)return _(e,this.mapper,[t.value,this.counter++],!0)}));e.exports=function(e){return n(this),r(e),new l(o(this),{mapper:e})}},d81d:function(e,t,a){"use strict";var s=a("23e7"),r=a("b727").map,n=a("1dde"),o=n("map");s({target:"Array",proto:!0,forced:!o},{map:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}})}}]);