| 1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["ib-customer"],{"754d":function(e,t,a){},b787:function(e,t,a){},b811:function(e,t,a){"use strict";var n=a("754d"),o=a.n(n);o.a},d34b:function(e,t,a){"use strict";var n=a("b787"),o=a.n(n);o.a},e7ad:function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{attrs:{id:"ib_CustomerManagement"}},[a("div",{staticClass:"crm-title-box"},[a("div",{staticClass:"tit"},[a("span",{directives:[{name:"t",rawName:"v-t",value:"Ib.Custom.Title1",expression:"'Ib.Custom.Title1'"}]})])]),a("div",{staticClass:"main-content"},[a("div",{staticClass:"chooseTab"},[a("div",{staticClass:"chooseLang"},[a("span",{directives:[{name:"t",rawName:"v-t",value:"Ib.Custom.Manage3",expression:"'Ib.Custom.Manage3'"}],staticClass:"crm-cursor",class:{active:"3"==e.search.tag},on:{click:function(t){return e.chooseLang("3")}}},[e._v("3")]),a("span",{directives:[{name:"t",rawName:"v-t",value:"Ib.Custom.Manage1",expression:"'Ib.Custom.Manage1'"}],staticClass:"crm-cursor",class:{active:"1"==e.search.tag},on:{click:function(t){return e.chooseLang("1")}}},[e._v("1")]),a("span",{directives:[{name:"t",rawName:"v-t",value:"Ib.Custom.Manage2",expression:"'Ib.Custom.Manage2'"}],staticClass:"crm-cursor",class:{active:"2"==e.search.tag},on:{click:function(t){return e.chooseLang("2")}}},[e._v("2")]),a("span",{directives:[{name:"t",rawName:"v-t",value:"Documentary.console.item23",expression:"'Documentary.console.item23'"}],staticClass:"crm-cursor",class:{active:"4"==e.search.tag},on:{click:function(t){return e.chooseLang("4")}}},[e._v("4")])])]),a("div",{staticClass:"search crm_search"},[a("div",{staticClass:"search-btn"},[a("el-form",{ref:"search",attrs:{"label-position":"top",model:e.search,"label-width":"80px"}},[1==e.search.tag?a("el-form-item",{staticStyle:{"margin-right":"10px","max-width":"100px"},attrs:{prop:""}},[a("el-select",{staticClass:"crm-border-radius-no crm_select_icon",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"}},[a("el-option",{attrs:{label:"MT4",value:"MT4"},nativeOn:{click:function(t){return e.handleSearch(t)}}}),a("el-option",{attrs:{label:"MT5",value:"MT5"},nativeOn:{click:function(t){return e.handleSearch(t)}}})],1)],1):e._e(),1==e.search.tag?a("el-form-item",{staticClass:"crm-border-radius-no",staticStyle:{"margin-right":"10px"},attrs:{prop:"login"}},[a("el-input",{attrs:{size:"small",placeholder:e.$t("Label.Login")},model:{value:e.search.login,callback:function(t){e.$set(e.search,"login","string"===typeof t?t.trim():t)},expression:"search.login"}})],1):e._e(),1==e.search.tag?a("el-form-item",{staticClass:"crm-border-radius-no",staticStyle:{"margin-right":"10px"},attrs:{prop:"cId"}},[a("el-input",{attrs:{size:"small",placeholder:"CID"},model:{value:e.search.cId,callback:function(t){e.$set(e.search,"cId","string"===typeof t?t.trim():t)},expression:"search.cId"}})],1):e._e(),2==e.search.tag?a("el-form-item",{staticClass:"crm-border-radius-no",staticStyle:{"margin-right":"10px"},attrs:{prop:"ibNo"}},[a("el-input",{attrs:{size:"small",placeholder:e.$t("Label.IbAccount")},model:{value:e.search.ibNo,callback:function(t){e.$set(e.search,"ibNo","string"===typeof t?t.trim():t)},expression:"search.ibNo"}})],1):e._e(),3!=e.search.tag&&4!=e.search.tag?a("el-form-item",{attrs:{prop:"date"}},[a("el-date-picker",{staticClass:"crm_date_pick crm-border-radius-no",attrs:{type:"daterange",align:"right","unlink-panels":"","value-format":"yyyy-MM-dd","range-separator":"-",size:"small","start-placeholder":e.$t("placeholder.Start"),"end-placeholder":e.$t("placeholder.End")},model:{value:e.search.date,callback:function(t){e.$set(e.search,"date",t)},expression:"search.date"}}),a("el-button",{staticClass:"crm-border-left-no crm-border-radius-no",attrs:{size:"small",icon:"el-icon-search"},on:{click:e.handleSearch}})],1):e._e()],1)],1)]),1==e.search.tag?a("div",{staticClass:"tab"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.pictLoading,expression:"pictLoading"}],staticClass:"crm_tab",staticStyle:{width:"100%"},attrs:{data:e.tableData,stripe:"","element-loading-background":"rgba(43, 48, 67, 0.1)","element-loading-spinner":"el-icon-loading"}},[a("el-table-column",{attrs:{prop:"",align:"center","header-align":"center",label:e.$t("Label.Login")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.login||"--"))]}}],null,!1,978293022)}),a("el-table-column",{attrs:{prop:"",align:"center",label:e.$t("Label.Name")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.name||"--"))]}}],null,!1,3152988410)}),a("el-table-column",{attrs:{prop:"",align:"center",label:e.$t("Label.Platform")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.platform||"--"))]}}],null,!1,2799070434)}),a("el-table-column",{attrs:{prop:"",align:"center",label:e.$t("Label.LoginType")},scopedSlots:e._u([{key:"default",fn:function(t){return[1==t.row.type?a("span",{directives:[{name:"t",rawName:"v-t",value:"AccountType.ClassicAccount",expression:"'AccountType.ClassicAccount'"}]}):e._e(),2==t.row.type?a("span",{directives:[{name:"t",rawName:"v-t",value:"AccountType.SeniorAccount",expression:"'AccountType.SeniorAccount'"}]}):e._e(),3==t.row.type?a("span",{directives:[{name:"t",rawName:"v-t",value:"AccountType.AgencyAccount",expression:"'AccountType.AgencyAccount'"}]}):e._e(),5==t.row.type?a("span",{directives:[{name:"t",rawName:"v-t",value:"AccountType.SpeedAccount",expression:"'AccountType.SpeedAccount'"}]}):e._e(),6==t.row.type?a("span",{directives:[{name:"t",rawName:"v-t",value:"AccountType.SpeedAccount",expression:"'AccountType.SpeedAccount'"}]}):e._e(),7==t.row.type?a("span",{directives:[{name:"t",rawName:"v-t",value:"AccountType.StandardAccount",expression:"'AccountType.StandardAccount'"}]}):e._e(),8==t.row.type?a("span",{directives:[{name:"t",rawName:"v-t",value:"AccountType.CentAccount",expression:"'AccountType.CentAccount'"}]}):e._e()]}}],null,!1,418823117)}),a("el-table-column",{attrs:{prop:"",align:"center",width:e.langs?"100":"",label:e.$t("Label.Leverage")},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.leverage?a("span",[e._v("1:")]):e._e(),e._v(e._s(t.row.leverage||"--"))]}}],null,!1,3591957654)}),a("el-table-column",{attrs:{prop:"",align:"center",width:e.langs?"100":"",label:e.$t("Label.Currency")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.currency||"--"))]}}],null,!1,3478288058)}),a("el-table-column",{attrs:{prop:"",align:"center",width:e.langs?"110":"",label:e.$t("Label.OutsideCommission")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.comPoint||"0"))]}}],null,!1,2019640992)}),a("el-table-column",{attrs:{prop:"",align:"center",label:e.$t("Label.LoginBalance")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(e._f("NumberFormat")(t.row.balance||"0")))]}}],null,!1,2675699666)}),a("el-table-column",{attrs:{prop:"",align:"center",label:e.$t("Label.Country")},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(t.row.countryEnName||"--"))])]}}],null,!1,2956212245)}),a("el-table-column",{attrs:{prop:"",align:"center",width:e.langs?"110":"",label:e.$t("Label.RegistrationTime")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.registration||"--"))]}}],null,!1,889047212)}),a("el-table-column",{attrs:{align:"center",label:e.$t("Label.Action")},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-dropdown",{attrs:{trigger:"click"},on:{command:e.handleCommandCustom}},[a("span",{staticClass:"el-dropdown-link crm-cursor"},[a("i",{staticClass:"iconfont iconcaidan",staticStyle:{"font-weight":"bold","font-size":"20px"}})]),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{attrs:{command:{type:"adjustCommissions",row:t.row}}},[a("span",{directives:[{name:"t",rawName:"v-t",value:"Ib.Custom.Commit1",expression:"'Ib.Custom.Commit1'"}]})]),a("el-dropdown-item",{attrs:{command:{type:"changeOwnership",row:t.row}}},[a("span",{directives:[{name:"t",rawName:"v-t",value:"Ib.Custom.Commit2",expression:"'Ib.Custom.Commit2'"}]})])],1)],1)]}}],null,!1,829206974)})],1)],1):e._e(),2==e.search.tag?a("div",{staticClass:"tab"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.pictLoading,expression:"pictLoading"}],staticClass:"crm_tab",staticStyle:{width:"100%"},attrs:{data:e.tableData,stripe:"","element-loading-background":"rgba(43, 48, 67, 0.1)","element-loading-spinner":"el-icon-loading"}},[a("el-table-column",{attrs:{prop:"",align:"center","header-align":"center",label:e.$t("Label.IbAccount")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.ibNo||"--"))]}}],null,!1,2768751607)}),a("el-table-column",{attrs:{prop:"",align:"center",label:e.$t("Label.Name")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.name||"--"))]}}],null,!1,3152988410)}),a("el-table-column",{attrs:{prop:"",align:"center",width:e.lang?"110":"",label:e.$t("Label.CommissionMode")},scopedSlots:e._u([{key:"default",fn:function(t){return[2==t.row.pointType?a("span",[a("span",{directives:[{name:"t",rawName:"v-t",value:"Label.PercentCom",expression:"'Label.PercentCom'"}]})]):e._e(),1==t.row.pointType?a("span",[a("span",{directives:[{name:"t",rawName:"v-t",value:"Label.VarietyCom",expression:"'Label.VarietyCom'"}]})]):e._e(),t.row.pointType?e._e():a("span",[e._v(e._s("--"))])]}}],null,!1,1062956495)}),a("el-table-column",{attrs:{prop:"",align:"center",width:e.lang?"110":"",label:e.$t("Label.CommissionTemplate")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.pointName||"--"))]}}],null,!1,3784914998)}),a("el-table-column",{attrs:{prop:"",align:"center",width:e.lang?"110":"",label:e.$t("Label.Percent")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.percent||"--"))]}}],null,!1,3371454726)}),a("el-table-column",{attrs:{prop:"",align:"center",width:e.lang?"110":"",label:e.$t("Label.RegistrationTime")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.addTime||"--"))]}}],null,!1,1075803913)}),a("el-table-column",{attrs:{align:"center",label:e.$t("Label.Action")},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-dropdown",{attrs:{trigger:"click"},on:{command:e.handleCommandIB}},[a("span",{staticClass:"el-dropdown-link crm-cursor"},[a("i",{staticClass:"iconfont iconcaidan",staticStyle:{"font-weight":"bold","font-size":"20px"}})]),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{attrs:{command:{type:"distribution",row:t.row}}},[a("span",{directives:[{name:"t",rawName:"v-t",value:"Ib.Custom.Commit3",expression:"'Ib.Custom.Commit3'"}]})])],1)],1)]}}],null,!1,2445804053)})],1)],1):e._e(),3==e.search.tag?a("div",{staticClass:"tab"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.pictLoading,expression:"pictLoading"}],staticClass:"crm_tab",staticStyle:{width:"100%"},attrs:{data:e.tableData,stripe:"","element-loading-background":"rgba(43, 48, 67, 0.1)","element-loading-spinner":"el-icon-loading"}},[a("el-table-column",{attrs:{prop:"",align:"center","header-align":"center",label:e.$t("Label.CidAccount")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.cId||"--"))]}}],null,!1,2143561299)}),a("el-table-column",{attrs:{prop:"",align:"center",label:e.$t("Label.Name")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.name||"--"))]}}],null,!1,3152988410)}),a("el-table-column",{attrs:{prop:"",align:"center",label:e.$t("Label.Email")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.email||"--"))]}}],null,!1,3854243473)}),a("el-table-column",{attrs:{prop:"",align:"center",width:e.lang?"110":"",label:e.$t("Label.Nationality")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.countryEnName))]}}],null,!1,4198710073)}),a("el-table-column",{attrs:{prop:"",align:"center",width:e.lang?"110":"",label:e.$t("Label.RegistrationTime")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.addTime||"--"))]}}],null,!1,1075803913)}),a("el-table-column",{attrs:{align:"center",label:e.$t("Label.Action")},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-dropdown",{attrs:{trigger:"click"},on:{command:e.handleCommandAllow}},[a("span",{staticClass:"el-dropdown-link crm-cursor"},[a("i",{staticClass:"iconfont iconcaidan",staticStyle:{"font-weight":"bold","font-size":"20px"}})]),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{attrs:{command:{type:"allow",row:t.row},disabled:1!=t.row.ibStatus}},[a("span",{directives:[{name:"t",rawName:"v-t",value:"Ib.Custom.Btn",expression:"'Ib.Custom.Btn'"}]})]),a("el-dropdown-item",{attrs:{command:{type:"documentary",row:t.row}}},[a("span",{directives:[{name:"t",rawName:"v-t",value:"Documentary.AgentBackground.item1",expression:"'Documentary.AgentBackground.item1'"}]})])],1)],1)]}}],null,!1,828466970)})],1)],1):e._e(),4==e.search.tag?a("div",{staticClass:"tab"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.pictLoading,expression:"pictLoading"}],staticClass:"crm_tab",staticStyle:{width:"100%"},attrs:{data:e.tableData,stripe:"","element-loading-background":"rgba(43, 48, 67, 0.1)","element-loading-spinner":"el-icon-loading"}},[a("el-table-column",{attrs:{prop:"",align:"center","header-align":"center",label:e.$t("Label.CidAccount")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.dealCId||"--"))]}}],null,!1,1526374303)}),a("el-table-column",{attrs:{prop:"",align:"center",label:e.$t("Label.AgentNumber")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.pIbNo||"--"))]}}],null,!1,2147471975)}),a("el-table-column",{attrs:{prop:"",align:"center",label:e.$t("Documentary.console.item20")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.nickname||"--"))]}}],null,!1,833512117)}),a("el-table-column",{attrs:{prop:"",align:"center",label:e.$t("Documentary.tradingCenter.item18")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.dealLogin))]}}],null,!1,3271131026)}),a("el-table-column",{attrs:{prop:"",align:"center",label:e.$t("Label.Platform")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.dealPlatform||"--"))]}}],null,!1,3634577838)}),a("el-table-column",{attrs:{prop:"",align:"center",label:e.$t("Label.Leverage")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.dealLeverage||"--"))]}}],null,!1,1123679418)}),a("el-table-column",{attrs:{prop:"",align:"center",label:e.$t("Label.AccountType")},scopedSlots:e._u([{key:"default",fn:function(t){return[1==t.row.dealLoginType?a("span",{directives:[{name:"t",rawName:"v-t",value:"AccountType.ClassicAccount",expression:"'AccountType.ClassicAccount'"}]}):e._e(),2==t.row.dealLoginType?a("span",{directives:[{name:"t",rawName:"v-t",value:"AccountType.SeniorAccount",expression:"'AccountType.SeniorAccount'"}]}):e._e(),3==t.row.dealLoginType?a("span",{directives:[{name:"t",rawName:"v-t",value:"AccountType.AgencyAccount",expression:"'AccountType.AgencyAccount'"}]}):e._e(),5==t.row.dealLoginType?a("span",{directives:[{name:"t",rawName:"v-t",value:"AccountType.SpeedAccount",expression:"'AccountType.SpeedAccount'"}]}):e._e(),6==t.row.dealLoginType?a("span",{directives:[{name:"t",rawName:"v-t",value:"AccountType.SpeedAccount",expression:"'AccountType.SpeedAccount'"}]}):e._e(),7==t.row.dealLoginType?a("span",{directives:[{name:"t",rawName:"v-t",value:"AccountType.StandardAccount",expression:"'AccountType.StandardAccount'"}]}):e._e(),8==t.row.dealLoginType?a("span",{directives:[{name:"t",rawName:"v-t",value:"AccountType.CentAccount",expression:"'AccountType.CentAccount'"}]}):e._e()]}}],null,!1,50189602)}),a("el-table-column",{attrs:{prop:"",align:"center",label:e.$t("Documentary.AgentBackground.item11")},scopedSlots:e._u([{key:"default",fn:function(t){return[1==t.row.distributionType?a("span",{directives:[{name:"t",rawName:"v-t",value:"Documentary.TundManagement.item59",expression:"'Documentary.TundManagement.item59'"}]}):e._e()]}}],null,!1,307628250)}),a("el-table-column",{attrs:{prop:"",align:"center",label:e.$t("Documentary.Report.item5")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.distributionRatio||"--"))]}}],null,!1,3585343078)}),a("el-table-column",{attrs:{prop:"",align:"center",label:e.$t("Documentary.AgentBackground.item13")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.settlementCycle||"--"))]}}],null,!1,3107193824)}),a("el-table-column",{attrs:{prop:"",align:"center",label:e.$t("Label.ApplyTime")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.approveTime||"--"))]}}],null,!1,3482847367)}),a("el-table-column",{attrs:{prop:"",align:"center",label:e.$t("Documentary.AgentBackground.item14")},scopedSlots:e._u([{key:"default",fn:function(t){return[1==t.row.permissionDisplay?a("span",{directives:[{name:"t",rawName:"v-t",value:"Documentary.AgentBackground.item16",expression:"'Documentary.AgentBackground.item16'"}]}):e._e(),2==t.row.permissionDisplay?a("span",{directives:[{name:"t",rawName:"v-t",value:"Documentary.AgentBackground.item15",expression:"'Documentary.AgentBackground.item15'"}]}):e._e()]}}],null,!1,1358611863)}),a("el-table-column",{attrs:{align:"center",label:e.$t("Label.Action")},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-dropdown",{attrs:{trigger:"click"},on:{command:e.handleCommandFllow}},[a("span",{staticClass:"el-dropdown-link crm-cursor"},[a("i",{staticClass:"iconfont iconcaidan",staticStyle:{"font-weight":"bold","font-size":"20px"}})]),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},["1"==t.row.agentUpdatePurview?a("el-dropdown-item",{attrs:{command:{type:"DisplaySettings",row:t.row}}},[a("span",{directives:[{name:"t",rawName:"v-t",value:"Ib.Custom.Btn",expression:"'Ib.Custom.Btn'"}]})]):e._e()],1)],1)]}}],null,!1,3321449049)})],1)],1):e._e(),e.pagerInfo.rowTotal?a("div",{staticClass:"crm_pagination"},[a("el-pagination",{staticClass:"page",attrs:{background:"",layout:"prev, pager, next","page-size":e.pagerInfo.row,total:e.pagerInfo.rowTotal},on:{"current-change":e.handleCurrentChange}})],1):e._e()]),a("el-dialog",{attrs:{visible:e.dialogAllowIb,center:"",title:e.$t("Ib.Custom.Btn"),"custom-class":"dialog_header_w dialogIb"},on:{"update:visible":function(t){e.dialogAllowIb=t}}},[a("div",{staticClass:"dia-content"},[a("el-form",{ref:"dialogForm",staticClass:"dialogForm",attrs:{model:e.dialogForm,rules:e.rules,"label-width":"140px"}},[a("el-form-item",{attrs:{prop:"",label:e.$t("Label.CidAccount")+":"}},[e._v(" "+e._s(e.dialogForm.cId||"--")+" ")]),a("el-form-item",{attrs:{prop:"",label:e.$t("Label.Name")+":"}},[e._v(" "+e._s(e.dialogForm.name||"--")+" ")]),a("el-form-item",{attrs:{prop:"",label:e.$t("Label.Email")+":"}},[e._v(" "+e._s(e.dialogForm.email||"--")+" ")]),a("el-form-item",{staticStyle:{"margin-bottom":"25px"},attrs:{prop:"ibInvalid",label:e.$t("Ib.Custom.Become")+":"}},[a("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"}},[a("el-option",{attrs:{label:e.$t("Ib.Custom.Open"),value:0}}),a("el-option",{attrs:{label:e.$t("Ib.Custom.Close"),value:1}})],1)],1),a("div",{staticClass:"tips"},[a("p",{directives:[{name:"t",rawName:"v-t",value:"Ib.Custom.Tips",expression:"'Ib.Custom.Tips'"}],staticClass:"tips1"}),a("p",{directives:[{name:"t",rawName:"v-t",value:"Ib.Custom.Tips1",expression:"'Ib.Custom.Tips1'"}],staticClass:"tips2"}),a("p",{directives:[{name:"t",rawName:"v-t",value:"Ib.Custom.Tips2",expression:"'Ib.Custom.Tips2'"}],staticClass:"tips2"}),a("p",{directives:[{name:"t",rawName:"v-t",value:"Ib.Custom.Tips3",expression:"'Ib.Custom.Tips3'"}],staticClass:"tips2"})])],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{directives:[{name:"t",rawName:"v-t",value:"Btn.Cancel",expression:"'Btn.Cancel'"}],on:{click:e.Cancel}}),a("el-button",{directives:[{name:"t",rawName:"v-t",value:"Btn.Confirm",expression:"'Btn.Confirm'"}],attrs:{type:"primary"},on:{click:e.toAgree}})],1)],1)]),a("el-dialog",{attrs:{visible:e.dialogInfoTradingAddTc,center:"",title:e.$t("Ib.Custom.Btn"),"custom-class":"dialog_header_w dialogIb"},on:{"update:visible":function(t){e.dialogInfoTradingAddTc=t}}},[a("div",{staticClass:"dia-content"},[a("div",{staticStyle:{"text-align":"initial","line-height":"1.5"}},[a("p",{directives:[{name:"t",rawName:"v-t",value:"news_add_field1.CustomerManagement.item1",expression:"'news_add_field1.CustomerManagement.item1'"}],staticStyle:{"margin-bottom":"5px"}}),a("p",{directives:[{name:"t",rawName:"v-t",value:"news_add_field1.CustomerManagement.item2",expression:"'news_add_field1.CustomerManagement.item2'"}],staticStyle:{"margin-bottom":"5px"}})]),a("div",{staticClass:"agree"},[a("el-checkbox",{model:{value:e.dialogInfoTradingAddTcAgree,callback:function(t){e.dialogInfoTradingAddTcAgree=t},expression:"dialogInfoTradingAddTcAgree"}}),a("div",{staticClass:"des"},[a("p",{directives:[{name:"t",rawName:"v-t",value:"news_add_field1.CustomerManagement.item3",expression:"'news_add_field1.CustomerManagement.item3'"}],staticStyle:{"margin-bottom":"5px"}})])],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{directives:[{name:"t",rawName:"v-t",value:"Btn.Cancel",expression:"'Btn.Cancel'"}],on:{click:function(t){return e.dialogInfoTradingAddCanle()}}}),a("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)])]),a("drawer",{attrs:{dialogInfoTradingAdd:e.dialogInfoTradingAdd,addType:e.openType,formInfo:e.formInfoRow},on:{closeAdd:e.closeAdd,toAddTemplate:e.toAddTemplate,confirmToReload:e.confirmToReload}}),e.dialogInfoTradingAdd?a("div",{staticClass:"crm_verified_info_mask",on:{click:e.closeDiaAdd}}):e._e()],1)},o=[],r=(a("c975"),a("b0c0"),a("a9e3"),a("d3b7"),a("ac1f"),a("25f0"),a("841c"),a("5530")),i=(a("96cf"),a("1da1")),l=a("1c45"),s=a("f121"),c=a.n(s),d=a("b4f6"),u=c.a.Code,p={name:"CustomerManagement",components:{Drawer:d["a"]},data:function(){return{flag:!1,pictLoading:!1,openType:"",dialogInfoTradingAdd:!1,formInfoRow:{},search:{tag:0,platform:"MT4",cId:"",ibNo:"",login:"",date:[],startDate:"",endDate:""},tableData:[],dialogAllowIb:!1,dialogForm:{},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"}]}}},computed:{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},lang:function(){return"en"==this.Session.Get("lang")&&document.body.clientWidth<1300},langs:function(){return"en"==this.Session.Get("lang")}},methods:{selectChange:function(){this.$forceUpdate()},handleCommandCustom:function(e){"adjustCommissions"==e.type?(this.formInfoRow.login=e.row.login,this.formInfoRow.commission=e.row.comPoint,this.openType="adjustCommissions",this.dialogInfoTradingAdd=!0):"changeOwnership"==e.type&&(this.formInfoRow.login=e.row.login,this.formInfoRow.ibNo=e.row.ibNo,this.openType="changeOwnership",this.dialogInfoTradingAdd=!0)},handleCommandIB:function(e){"distribution"==e.type?(this.formInfoRow.ibNo=e.row.ibNo,this.formInfoRow.agentId=e.row.id,this.formInfoRow.pointType=e.row.pointType,this.formInfoRow.pointId=e.row.pointId,this.formInfoRow.percent=e.row.percent,this.openType="distribution",this.dialogInfoTradingAdd=!0):"SignalSourceDivision"==e.type&&(this.formInfoRow.login=e.row.login,this.formInfoRow.ibNo=e.row.ibNo,this.openType="SignalSourceDivision",this.dialogInfoTradingAdd=!0)},handleCommandAllow:function(e){"allow"==e.type?(this.dialogForm.cId=e.row.cId,this.dialogForm.id=e.row.id,this.dialogForm.name=e.row.name,this.dialogForm.email=e.row.email,this.dialogForm.ibInvalid=e.row.ibInvalid,this.dialogAllowIb=!0):"documentary"==e.type&&(this.formInfoRow.cId=e.row.cId,this.formInfoRow.id=e.row.id,this.formInfoRow.permissionDisplay=e.row.permissionDisplay,this.openType="documentary",this.dialogInfoTradingAdd=!0)},handleCommandFllow:function(e){"DisplaySettings"==e.type&&(this.formInfoRow.dealLogin=e.row.dealLogin,this.formInfoRow.id=e.row.id,this.formInfoRow.permissionDisplay=e.row.permissionDisplay,this.formInfoRow.ibNo=e.row.pIbNo,this.formInfoRow.agentDistributionRatio=null==e.row.agentDistributionRatio?"":e.row.agentDistributionRatio.toString(),this.openType="DisplaySettings",this.dialogInfoTradingAddTc=!0)},dialogInfoTradingAddCanle:function(){this.dialogInfoTradingAddTc=!1,this.dialogInfoTradingAddTcAgree=!1},dialogInfoTradingAddOpen:function(){this.dialogInfoTradingAddTcAgree?(this.dialogInfoTradingAddTc=!1,this.dialogInfoTradingAdd=!0,this.dialogInfoTradingAddTcAgree=!1):this.$pigeon.MessageWarning(this.$i18n.t("Msg.Read"))},chooseLang:function(e){e!=this.search.tag&&(this.flag||(this.flag=!0,this.search.tag=e))},toNewTemplate:function(){this.openType="addTemplate",this.dialogInfoTradingAdd=!0},closeDiaAdd:function(){this.dialogInfoTradingAdd=!1,this.editor=""},closeAdd:function(e){this.dialogInfoTradingAdd=e},confirmToReload:function(){this.dialogInfoTradingAdd=!1,this.handleSearch()},toAddTemplate:function(){this.toNewTemplate()},toAgree:function(){var e=this;return Object(i["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.$refs["dialogForm"].validate(function(){var t=Object(i["a"])(regeneratorRuntime.mark((function t(a){var n;return regeneratorRuntime.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,l["a"].customUpdateIbInvalid({id:e.dialogForm.id,ibInvalid:Number(e.dialogForm.ibInvalid)});case 8:n=t.sent,n.code==u.StatusOK?(e.$pigeon.MessageOK(e.$i18n.t("Msg.ModifySuccess")),e.Cancel(),e.handleSearch(),e.flag=!1):(e.$pigeon.MessageError(n.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},handleSearch:function(){this.pagerInfo.current=1,this.searchFunc()},searchFunc:function(){var e=this;return Object(i["a"])(regeneratorRuntime.mark((function t(){var a,n,o,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.pictLoading=!0,null==e.search.date||0==e.search.date.length?(e.search.startDate="",e.search.endDate=""):(e.search.startDate=e.search.date[0],e.search.endDate=e.search.date[1]),1!=e.search.tag){t.next=11;break}return e.search.platform=e.search.platform?e.search.platform:"MT4",t.next=6,l["a"].accountSubs(Object(r["a"])(Object(r["a"])({},e.search),{},{page:{current:e.pagerInfo.current,row:e.pagerInfo.row}}));case 6:a=t.sent,a.code==u.StatusOK?(a.data?(e.tableData=a.data,e.pagerInfo.rowTotal=a.page.rowTotal,e.pagerInfo.pageTotal=a.page.pageTotal):e.tableData=[],e.$pigeon.MessageOK(e.$i18n.t("Msg.SearchSuccess")),e.flag=!1):(e.$pigeon.MessageError(a.msg),e.flag=!1),e.pictLoading=!1,t.next=36;break;case 11:if(2!=e.search.tag){t.next=20;break}return e.search.platform="",t.next=15,l["a"].IbSubs(Object(r["a"])(Object(r["a"])({},e.search),{},{page:{current:e.pagerInfo.current,row:e.pagerInfo.row}}));case 15:n=t.sent,n.code==u.StatusOK?(n.data?(e.tableData=n.data,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=36;break;case 20:if(3!=e.search.tag){t.next=29;break}return e.search.platform="",t.next=24,l["a"].customerSubs({page:{current:e.pagerInfo.current,row:e.pagerInfo.row}});case 24:o=t.sent,o.code==u.StatusOK?(o.data?(e.tableData=o.data,e.pagerInfo.rowTotal=o.page.rowTotal,e.pagerInfo.pageTotal=o.page.pageTotal):e.tableData=[],e.$pigeon.MessageOK(e.$i18n.t("Msg.SearchSuccess")),e.flag=!1):(e.$pigeon.MessageError(o.msg),e.flag=!1),e.pictLoading=!1,t.next=36;break;case 29:if(4!=e.search.tag){t.next=36;break}return e.search.platform="",t.next=33,l["a"].followDealAgentSearchList({page:{current:e.pagerInfo.current,row:e.pagerInfo.row}});case 33:i=t.sent,i.code==u.StatusOK?(i.data?(e.tableData=i.data,e.pagerInfo.rowTotal=i.page.rowTotal,e.pagerInfo.pageTotal=i.page.pageTotal):e.tableData=[],e.$pigeon.MessageOK(e.$i18n.t("Msg.SearchSuccess")),e.flag=!1):(e.$pigeon.MessageError(i.msg),e.flag=!1),e.pictLoading=!1;case 36:case"end":return t.stop()}}),t)})))()},handleSizeChange:function(e){this.pagerInfo.row=e,this.searchFunc()},handleCurrentChange:function(e){this.pagerInfo.current=e,this.searchFunc()}},mounted:function(){this.search.tag=this.$route.query.type?Number(this.$route.query.type):3},watch:{"search.tag":function(e){this.$refs["search"]&&this.$refs["search"].resetFields(),this.$router.push({path:"/ib/customer",query:{type:e}}).catch((function(e){return e})),this.searchFunc()}}},m=p,g=(a("d34b"),a("b811"),a("2877")),f=Object(g["a"])(m,n,o,!1,null,"de032600",null);t["default"]=f.exports}}]);
|