ib-index.93c21c52.js 43 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["ib-index"],{"15fd":function(t,e,a){},"1c45":function(t,e,a){"use strict";var s=a("ff2d");class i extends s["a"]{constructor(){super()}async MamSubsApprove(t={}){let e=await this.postAll("Host90","/mam/subs/approve",t);return e}async MamSubsApply(t={}){let e=await this.postAll("Host90","/mam/subs/apply",t);return e}async MamSubsInfo(t={}){let e=await this.postAll("Host90","/mam/subs/info",t);return e}async MamLeverageApplyAdd(t={}){let e=await this.postAll("Host90","/mam/leverage/apply/add",t);return e}async MamPwdResetAdd(t={}){let e=await this.postAll("Host90","/mam/pwd/reset/add",t);return e}async MamRepwdAdd(t={}){let e=await this.postAll("Host90","/mam/repwd/add",t);return e}async ChangeInvestorOassword(t={}){let e=await this.postAll("Host80","/account/settings/change/investor/password/add",t);return e}async MamList(t={}){let e=await this.postAll("Host90","/mam/list",t);return e}async MamApplyApprove(t={}){let e=await this.postAll("Host90","/mam/apply/approve",t);return e}async MamApplyAdd(t={}){let e=await this.postAll("Host90","/mam/apply/add",t);return e}async MamApplyData(t={}){let e=await this.postAll("Host90","/mam/apply/data",t);return e}async excludeShowLogin(t={}){let e=await this.postAll("Host80","/account/apply/exclude/show/login/type",t);return e}async TradePending(t={}){let e=await this.postAll("Host90","/trade/pending",t);return e}async TradePosition(t={}){let e=await this.postAll("Host90","/trade/position",t);return e}async TradeHistory(t={}){let e=await this.postAll("Host90","/trade/sharding/history",t);return e}async agentBalanceTransfer(t={}){let e=await this.postAll("Host90","/agent/balance/transfer/add/imd",t);return e}async agentBalanceTransferFrom(t={}){let e=await this.postAll("Host90","/agent/balance/transfer/from",t);return e}async agentTransferToList(t={}){let e=await this.postAll("Host90","/account/directAccount",t);return e}async CommissionApplyRecording(t={}){let e=await this.postAll("Host90","/custom/commission/apply/list",t);return e}async agentBalanceTransferRecording(t={}){let e=await this.postAll("Host90","/agent/balance/transfer/search/list",t);return e}async mamSubsApplyRecording(t={}){let e=await this.postAll("Host90","/mam/subs/apply/list",t);return e}async IbData(t={}){let e=await this.postAll("Host90","/ib/data",t);return e}async IbSubs(t={}){let e=await this.postAll("Host90","/ib/subs",t);return e}async accountSubs(t={}){let e=await this.postAll("Host90","/account/list",t);return e}async customerSubs(t={}){let e=await this.postAll("Host90","/custom/info/belongs",t);return e}async customerSubsList(t={}){let e=await this.postAll("Host90","/custom/info/belongs/list",t);return e}async customerSubsStatistics(t={}){let e=await this.postAll("Host90","/custom/info/belongs/statistics",t);return e}async customCommissionApply(t={}){let e=await this.postAll("Host90","/custom/commission/apply/add",t);return e}async customCommissionPoint(t={}){let e=await this.postAll("Host90","/custom/info/update/point",t);return e}async accountBelongChange(t={}){let e=await this.postAll("Host90","/account/belong/change/add",t);return e}async accountBelongChangeIb(t={}){let e=await this.postAll("Host90","/account/belong/change/agents",t);return e}async sysPointList(t={}){let e=await this.postAll("Host90","/sys/point/list",t);return e}async sysPointDelete(t={}){let e=await this.postAll("Host90","/sys/point/delete",t);return e}async sysPointUpdate(t={}){let e=await this.postAll("Host90","/sys/point/update",t);return e}async sysPointSingle(t={}){let e=await this.postAll("Host90","/sys/point/single",t);return e}async AgentPointChangeApply(t={}){let e=await this.postAll("Host90","/agent/point/change/apply",t);return e}async AgentPointChangeData(t={}){let e=await this.postAll("Host90","/agent/point/change/data",t);return e}async SysPointPoints(t={}){let e=await this.postAll("Host90","/sys/point/points",t);return e}async SysCentValid(t={}){let e=await this.postAll("Host90","/sys/point/centValid",t);return e}async SysPointAdd(t={}){let e=await this.postAll("Host90","/sys/point/add",t);return e}async getChartInfo(t={}){let e=await this.postAll("Host80","/index/chart/list",t);return e}async tradeDw(t={}){let e=await this.postAll("Host90","/trade/dw",t);return e}async tradeAccount(t={}){let e=await this.postAll("Host90","/trade/account",t);return e}async tradeAgentCommission(t={}){let e="/trade/agent/commission/vn",a=await this.postAll("Host90",e,t);return a}async tradeIb(t={}){let e=await this.postAll("Host90","/ib/report/new",t);return e}async tradePendingHistory(t={}){let e=await this.postAll("Host90","/trade/pending/history",t);return e}async tradePending(t={}){let e=await this.postAll("Host90","/trade/pending",t);return e}async tradePosition(t={}){let e=await this.postAll("Host90","/trade/position",t);return e}async tradeHistory(t={}){let e=await this.postAll("Host90","/trade/sharding/history",t);return e}async ibReportBalance(t={}){let e=await this.postAll("Host90","/ib/report/balance",t);return e}async tradeSymbolCategory(t={}){let e=await this.postAll("Host90","/trade/symbol/category",t);return e}async mamApplyList(t={}){let e=await this.postAll("Host90","/mam/apply/list",t);return e}async mamLeverageApplyList(t={}){let e=await this.postAll("Host90","/mam/leverage/apply/list",t);return e}async agentBalanceTransferList(t={}){let e=await this.postAll("Host90","/agent/balance/transfer/search/list",t);return e}async customCommissionApplyList(t={}){let e=await this.postAll("Host90","/custom/commission/apply/list",t);return e}async agentBelongChangeList(t={}){let e=await this.postAll("Host90","/account/belong/change/search/list",t);return e}async agentPointChangeList(t={}){let e=await this.postAll("Host90","/agent/point/change/list",t);return e}async agentWithdrawList(t={}){let e=await this.postAll("Host90","/finance/agent/withdraw/search/list",t);return e}async CustomRecordAccount(t={}){let e=await this.postAll("Host80","/custom/apply/list",t);return e}async reasonsRefusalList(t={}){let e=await this.postAll("Host80","/reasons/refusal/list",t);return e}async ibTree(t={}){let e=await this.postAll("Host90","/ib/tree",t);return e}async customUpdateIbInvalid(t={}){let e=await this.postAll("Host90","/custom/info/update/ibInvalid",t);return e}async CustomDropdown(t={}){let e=await this.postAll("Host80","/account/dropdown",t);return e}async accountCustomList(t={}){let e=await this.postAll("Host90","/account/custom/list",t);return e}async agentTransferApply(t={}){let e=await this.postAll("Host04","/agent/transfer/apply",t);return e}async agentTransCtaferApply(t={}){let e=await this.postAll("Host04","/agent/transfer/cta/apply",t);return e}async agentTransferList(t={}){let e=await this.postAll("Host04","/agent/transfer/list",t);return e}async mamApplyPammManagerValid(t={}){let e=await this.postAll("Host90","/mam/apply/pammManagerValid",t);return e}async mamApplyPammManagerLogins(t={}){let e=await this.postAll("Host90","/mam/apply/pamm/logins",t);return e}async mamApplyPammManagerAdd(t={}){let e=await this.postAll("Host90","/mam/apply/add",t);return e}async withdrawCancel(t={}){let e=await this.postAll("Host90","/finance/agent/withdraw/cancel",t);return e}async applyPercent(t={}){let e=await this.postAll("Host90","/pm/percent/change",t);return e}async followDealAgentSearchList(t={}){let e=await this.postAll("Host87","/follow/deal/agent/search/list",t);return e}async followDealAgentUpdate(t={}){let e=await this.postAll("Host87","/follow/deal/agent/update",t);return e}async customUpdateFollowPermissionDisplay(t={}){let e=await this.postAll("Host90","/custom/info/update/follow/permissionDisplay",t);return e}async marketAgentLinkList(t={}){let e=await this.postAll("Host90","/market/agent/link/list",t);return e}async pammListSubs(t={}){let e=await this.postAll("Host90","/pamm/subs",t);return e}async customLink(t={}){let e=await this.postAll("Host90","/custom/register/link/hash",t);return e}async customLinkCode(t={}){let e=await this.postAll("Host90","/custom/register/link/code",t);return e}async customRegisterLinkClue(t={}){let e=await this.postAll("Host90","/custom/register/link/clue",t);return e}async IbAgentSetting(t={}){let e=await this.postAll("Host90","/ib/agent/setting",t);return e}async loginTypeList(t={}){let e=await this.postAll("Host80","/login/type/search/list",t);return e}async tradeSalesHidden(t={}){let e=await this.postAll("Host90","/trade/hidden/rebate",t);return e}async getWebsdkLink1(t={}){let e=await this.postAll("Host04","/agent/withdraw/getWebsdkLink",t);return e}async agentHiddenPointSearchSingle(t={}){let e=await this.postAll("Host90","/agent/hidden/point/search/single",t);return e}async agentHiddenPointAdd(t={}){let e=await this.postAll("Host90","/agent/hidden/point/add",t);return e}async ibTreeForTransfer(t={}){let e=await this.postAll("Host90","/ib/tree",t);return e}async agentBalanceCommissionAdd(t={}){let e=await this.postAll("Host90","/agent/balance/commission/add",t);return e}async agentBalanceCommissionSearchList(t={}){let e=await this.postAll("Host90","/agent/balance/commission/search/list",t);return e}async getVietnamPoints(t={}){let e=await this.postAll("Host90","/agent/point/vn/points",t);return e}async saveVietnamPoints(t={}){let e=await this.postAll("Host90","/agent/point/vn/save",t);return e}async customLinkAdd(t={}){let e=await this.postAll("Host90","/agent/custom/link/add",t);return e}async customLinkSearchList(t={}){let e=await this.postAll("Host90","/agent/custom/link/search/list",t);return e}async customLinkTypes(t={}){let e=await this.postAll("Host90","/custom/register/link/types",t);return e}async agentApplyAddPoint(t={}){let e=await this.postAll("Host80","/agent/apply/add/point",t);return e}async realCustomerUpdatePoint(t={}){let e=await this.postAll("Host90","/custom/info/update/point",t);return e}async getLoginPoint(t={}){let e=await this.postAll("Host90","/custom/info/login/point",t);return e}async getRegisterLinkTypes(t={}){let e=await this.postAll("Host90","/custom/register/link/types",t);return e}}e["a"]=new i},"73b1":function(t,e,a){},ab43:function(t,e,a){"use strict";var s=a("23e7"),i=a("c65b"),n=a("59ed"),l=a("825a"),o=a("46c4"),r=a("c5cc"),c=a("9bdd"),d=a("2a62"),u=a("f99f"),p=a("c430"),m=!p&&u("map",TypeError),h=r((function(){var t=this.iterator,e=l(i(this.next,t)),a=this.done=!!e.done;if(!a)return c(t,this.mapper,[e.value,this.counter++],!0)}));s({target:"Iterator",proto:!0,real:!0,forced:p||m},{map:function(t){l(this);try{n(t)}catch(e){d(this,"throw",e)}return m?i(m,this,t):new h(o(this),{mapper:t})}})},ac0c:function(t,e,a){"use strict";a("15fd")},b839:function(t,e,a){"use strict";a.r(e);var s=function(){var t=this,e=t._self._c;return e("div",{staticClass:"views",attrs:{id:"ib_index"}},[e("div",{staticClass:"chartSetting",class:{active:t.isChart}},[e("div",[e("i",{staticClass:"el-icon-close crm-cursor",on:{click:function(e){t.isChart=!1}}})]),e("div",{staticClass:"tit"},[e("span",{directives:[{name:"t",rawName:"v-t",value:"Custom.Index.ChartSet",expression:"'Custom.Index.ChartSet'"}]})]),e("el-form",{ref:"form",staticClass:"form",attrs:{model:t.ChartSet,"label-width":"0","label-position":"top"}},[e("el-form-item",{attrs:{label:t.$t("Label.ChartType")}},[e("el-select",{staticClass:"crm_select_icon_w",attrs:{filterable:"",placeholder:t.$t("placeholder.choose")},model:{value:t.ChartSet.type,callback:function(e){t.$set(t.ChartSet,"type",e)},expression:"ChartSet.type"}},[e("el-option",{attrs:{label:t.$t("Custom.Index.TradingVolumeStatistics"),value:4}}),e("el-option",{attrs:{label:t.$t("Custom.Index.DepositStatistical"),value:2}}),e("el-option",{attrs:{label:t.$t("Custom.Index.WithdrawalsStatistical"),value:3}}),e("el-option",{attrs:{label:t.$t("Custom.Index.ProfitLoss"),value:6}})],1)],1),e("el-form-item",{attrs:{label:t.$t("Label.PlatformType")}},[e("el-select",{staticClass:"crm_select_icon_w",attrs:{filterable:"",placeholder:t.$t("placeholder.choose")},model:{value:t.ChartSet.platform,callback:function(e){t.$set(t.ChartSet,"platform",e)},expression:"ChartSet.platform"}},[e("el-option",{attrs:{label:"MT4",value:"MT4"}}),e("el-option",{attrs:{label:"MT5",value:"MT5"}})],1)],1),e("el-form-item",[e("el-button",{directives:[{name:"t",rawName:"v-t",value:"Btn.Confirm",expression:"'Btn.Confirm'"}],staticClass:"s-btn",attrs:{type:"primary"},on:{click:t.getChart}})],1)],1)],1),e("div",{staticClass:"chart-box crm-border-radius"},[e("div",{staticClass:"chart-title"},[e("div",{staticClass:"time",on:{click:t.toReload}},[e("i",{staticClass:"el-icon-refresh crm-cursor"}),e("span",{staticClass:"crm-cursor"},[t._v(" GMT+3 "+t._s(t.time))])]),e("div",{staticClass:"title"},[e("div",{staticClass:"name"},[4==t.ChartSet.type?e("span",{directives:[{name:"t",rawName:"v-t",value:"Custom.Index.TradingVolumeStatistics",expression:"'Custom.Index.TradingVolumeStatistics'"}]}):t._e(),2==t.ChartSet.type?e("span",{directives:[{name:"t",rawName:"v-t",value:"Custom.Index.DepositStatistical",expression:"'Custom.Index.DepositStatistical'"}]}):t._e(),3==t.ChartSet.type?e("span",{directives:[{name:"t",rawName:"v-t",value:"Custom.Index.WithdrawalsStatistical",expression:"'Custom.Index.WithdrawalsStatistical'"}]}):t._e(),6==t.ChartSet.type?e("span",{directives:[{name:"t",rawName:"v-t",value:"Custom.Index.ProfitLoss",expression:"'Custom.Index.ProfitLoss'"}]}):t._e()]),e("div",{staticClass:"date"},[e("el-date-picker",{attrs:{type:"daterange",size:"small","unlink-panels":"","range-separator":"—","start-placeholder":t.$t("placeholder.Start"),"end-placeholder":t.$t("placeholder.End")},on:{change:t.getSearchDate},model:{value:t.isDate,callback:function(e){t.isDate=e},expression:"isDate"}})],1)]),e("div",{staticClass:"operation"},[e("span",{directives:[{name:"t",rawName:"v-t",value:"Custom.Index.Parameter",expression:"'Custom.Index.Parameter'"}],staticStyle:{"font-size":"14px"}}),e("i",{staticClass:"iconfont iconcanshu crm-cursor",on:{click:function(e){t.isChart=!0}}})])]),e("div",{attrs:{id:"myChartIB"}})]),e("div",{staticClass:"account-summary"},[e("el-row",[e("el-col",{attrs:{span:8}},[e("div",{staticClass:"custom-number"},[e("div",{staticClass:"title"},[e("div",[e("i",{staticClass:"icon iconfont iconyonghu"}),e("span",{directives:[{name:"t",rawName:"v-t",value:"Ib.Index.NameCustom",expression:"'Ib.Index.NameCustom'"}],staticClass:"tit"})])]),e("div",{staticClass:"content"},[e("div",{staticClass:"con crm-cursor",on:{click:t.toCustomManagement}},[e("div",{staticClass:"num"},[t._v(" "+t._s(t._f("NumberFormat")(t.ibData.customAmount||"0"))+" ")]),e("div",{directives:[{name:"t",rawName:"v-t",value:"Ib.Index.Custom",expression:"'Ib.Index.Custom'"}],staticClass:"des"})]),e("div",{staticClass:"con crm-cursor",on:{click:t.toIbManagement}},[e("div",{staticClass:"num"},[t._v(" "+t._s(t._f("NumberFormat")(t.ibData.ibAmount||"0"))+" ")]),e("div",{directives:[{name:"t",rawName:"v-t",value:"Ib.Index.Agent",expression:"'Ib.Index.Agent'"}],staticClass:"des"})])])])]),e("el-col",{attrs:{span:8}},[e("div",{staticClass:"custom-link"},[e("div",{staticClass:"title"},[e("div",[e("i",{staticClass:"icon el-icon-share"}),e("span",{directives:[{name:"t",rawName:"v-t",value:"Ib.Index.Link",expression:"'Ib.Index.Link'"}],staticClass:"tit"})])]),e("div",{staticClass:"content"},[e("div",{staticClass:"con con-link"},[e("div",[e("span",{directives:[{name:"t",rawName:"v-t",value:"Ib.Index.CreateLink",expression:"'Ib.Index.CreateLink'"}],staticClass:"btn crm-cursor",on:{click:t.LinkActivity1}})])])])])]),e("el-col",{attrs:{span:8}},[e("div",{staticClass:"custom-money"},[e("div",{staticClass:"title"},[e("div",[e("i",{staticClass:"icon iconfont iconwallet"}),e("span",{directives:[{name:"t",rawName:"v-t",value:"news_add_field.Label.Balance",expression:"'news_add_field.Label.Balance'"}],staticClass:"tit"})]),e("div",[e("el-dropdown",{attrs:{trigger:"click"},on:{command:t.handleCommand}},[e("i",{staticClass:"el-icon-more crm-cursor"}),e("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[e("el-dropdown-item",{attrs:{command:"1"}},[e("span",{directives:[{name:"t",rawName:"v-t",value:"Custom.Index.Withdrawals",expression:"'Custom.Index.Withdrawals'"}]})]),e("el-dropdown-item",{attrs:{command:"2"}},[e("span",{directives:[{name:"t",rawName:"v-t",value:"Home.page_ib.item4",expression:"'Home.page_ib.item4'"}]})]),e("el-dropdown-item",{attrs:{command:"3"}},[e("span",{directives:[{name:"t",rawName:"v-t",value:"Ib.Transfer.CommissionIssue",expression:"'Ib.Transfer.CommissionIssue'"}]})])],1)],1)],1)]),e("div",{staticClass:"content"},[e("div",{staticClass:"con"},[e("div",{staticClass:"num"},[t._v(" $ "),e("span",[t._v(t._s(t._f("NumberFormat")(t.ibData.balance||"0")))])]),e("div",{staticClass:"des"},[e("span",{directives:[{name:"t",rawName:"v-t",value:"Ib.Index.TotalRevenue",expression:"'Ib.Index.TotalRevenue'"}]}),t._v("$ "),e("span",[t._v(t._s(t._f("NumberFormat")(t.ibData.all||"0")))])])])])])])],1)],1),e("div",{staticClass:"accounts"},[e("div",{staticClass:"account-top crm-title-box"},[e("span",{staticClass:"tit"},[e("span",{directives:[{name:"t",rawName:"v-t",value:"Ib.Index.MAMList",expression:"'Ib.Index.MAMList'"}]})])]),e("div",{staticClass:"tab"},[e("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.pictLoading,expression:"pictLoading"}],staticClass:"crm_tab_header",staticStyle:{width:"100%"},attrs:{data:t.tableData,"element-loading-background":"rgba(43, 48, 67, 0.05)","element-loading-spinner":"el-icon-loading"}},[e("el-table-column",{attrs:{align:"center","header-align":"center",label:t.$t("Ib.Index.MAMAccount")},scopedSlots:t._u([{key:"default",fn:function(a){return[1==a.row.type||2==a.row.type?e("span",[t._v(t._s(a.row.login||"-"))]):t._e(),3==a.row.type?e("div",[e("span",{directives:[{name:"t",rawName:"v-t",value:"Ib.PammManager.ownerId",expression:"'Ib.PammManager.ownerId'"}]}),t._v(": "),e("span",[t._v(t._s(a.row.ownerId))])]):t._e(),3==a.row.type?e("div",[e("span",{directives:[{name:"t",rawName:"v-t",value:"Ib.PammManager.accountId",expression:"'Ib.PammManager.accountId'"}]}),t._v(": "),e("span",[t._v(t._s(a.row.accountId))])]):t._e(),3==a.row.type?e("div",[e("span",{directives:[{name:"t",rawName:"v-t",value:"Ib.PammManager.percent",expression:"'Ib.PammManager.percent'"}]}),t._v(": "),e("span",[t._v(t._s(a.row.percent)+"%")])]):t._e()]}}])}),e("el-table-column",{attrs:{align:"center",label:t.$t("Label.Type")},scopedSlots:t._u([{key:"default",fn:function(a){return[1==a.row.type?e("span",[t._v("MAM")]):t._e(),2==a.row.type?e("span",[t._v("Money Manager")]):t._e(),3==a.row.type?e("span",{directives:[{name:"t",rawName:"v-t",value:"Ib.PammManager.title1",expression:"'Ib.PammManager.title1'"}]}):t._e()]}}])}),e("el-table-column",{attrs:{align:"center",label:t.$t("Ib.Index.LoginType")},scopedSlots:t._u([{key:"default",fn:function(a){return[1==a.row.accountType?e("span",{directives:[{name:"t",rawName:"v-t",value:"AccountType.ClassicAccount",expression:"'AccountType.ClassicAccount'"}]}):t._e(),2==a.row.accountType?e("span",{directives:[{name:"t",rawName:"v-t",value:"AccountType.SeniorAccount",expression:"'AccountType.SeniorAccount'"}]}):t._e(),3!=a.row.accountType||t.isAfterJuly28()?t._e():e("span",{directives:[{name:"t",rawName:"v-t",value:"AccountType.AgencyAccount",expression:"'AccountType.AgencyAccount'"}]}),5==a.row.accountType?e("span",{directives:[{name:"t",rawName:"v-t",value:"AccountType.SpeedAccount",expression:"'AccountType.SpeedAccount'"}]}):t._e(),6==a.row.accountType?e("span",{directives:[{name:"t",rawName:"v-t",value:"AccountType.SpeedAccount",expression:"'AccountType.SpeedAccount'"}]}):t._e(),7==a.row.accountType?e("span",{directives:[{name:"t",rawName:"v-t",value:"AccountType.StandardAccount",expression:"'AccountType.StandardAccount'"}]}):t._e(),8==a.row.accountType?e("span",{directives:[{name:"t",rawName:"v-t",value:"AccountType.CentAccount",expression:"'AccountType.CentAccount'"}]}):t._e(),a.row.accountType?t._e():e("span",[t._v("--")])]}}])}),e("el-table-column",{attrs:{align:"center",label:t.$t("Ib.Index.Platform")},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.platform||"-"))]}}])}),e("el-table-column",{attrs:{align:"center",width:"en"==t.lang?"100":"",label:t.$t("Ib.Index.Currency")},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.currency||"-"))]}}])}),e("el-table-column",{attrs:{align:"center",width:"en"==t.lang?"100":"",label:t.$t("Ib.Index.Leverage")},scopedSlots:t._u([{key:"default",fn:function(a){return[a.row.leverage?e("span",[t._v("1:")]):t._e(),t._v(t._s(a.row.leverage||"-"))]}}])}),e("el-table-column",{attrs:{align:"center",label:t.$t("Ib.Index.Balance")},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(t._f("NumberFormat")(e.row.balance||"0")))]}}])}),e("el-table-column",{attrs:{align:"center",label:t.$t("Ib.Index.Equity")},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(t._f("NumberFormat")(e.row.equity||"0")))]}}])}),e("el-table-column",{attrs:{align:"center",width:"en"==t.lang?"110":"",label:t.$t("Ib.Index.Commission")},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.commission||"0"))]}}])}),e("el-table-column",{attrs:{align:"center",label:t.$t("Ib.Index.Operation"),width:"160"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("div",{staticClass:"tab-act-btn"},[1==a.row.type||2==a.row.type?e("span",{staticClass:"crm-font-btn",on:{click:function(e){return t.toSettings(a.row)}}},[e("i",{staticClass:"el-icon-setting"}),e("span",{directives:[{name:"t",rawName:"v-t",value:"Ib.Index.Settings",expression:"'Ib.Index.Settings'"}]})]):t._e(),3==a.row.type?e("span",{staticClass:"crm-font-btn",on:{click:function(e){return t.toSettings(a.row)}}},[e("i",{staticClass:"el-icon-s-operation"}),e("span",{directives:[{name:"t",rawName:"v-t",value:"Ib.PammManager.btn1",expression:"'Ib.PammManager.btn1'"}]})]):t._e(),3==a.row.type?e("span",{staticClass:"crm-font-btn",on:{click:function(e){return t.toDialogPercent(a.row)}}},[e("i",{staticClass:"el-icon-edit-outline"}),e("span",{directives:[{name:"t",rawName:"v-t",value:"Ib.PammManager.percent",expression:"'Ib.PammManager.percent'"}]})]):t._e(),e("span",{staticClass:"crm-font-btn",on:{click:function(e){return t.toDialogSubs(a.row)}}},[e("i",{staticClass:"el-icon-view"}),e("span",{directives:[{name:"t",rawName:"v-t",value:"blockchain.item1",expression:"'blockchain.item1'"}]})])])]}}])})],1),t.pagerInfo.rowTotal?e("div",{staticClass:"crm_pagination"},[e("el-pagination",{staticClass:"page",attrs:{background:"",layout:"prev, pager, next","page-size":t.pagerInfo.row,total:t.pagerInfo.rowTotal},on:{"current-change":t.handleCurrentChange}})],1):t._e()],1)]),e("el-dialog",{attrs:{visible:t.dialogLink,center:"",title:t.$t("Ib.Index.CreateLink"),"custom-class":"dialog_header_w dialogLink"},on:{"update:visible":function(e){t.dialogLink=e}}},[e("div",{staticClass:"dia-content"},[e("div",{staticClass:"content",staticStyle:{"font-size":"14px","text-align":"left"}},[e("div",{staticClass:"label"},[t._v(t._s(t.$t("Ib.Index.Spread5"))+" :")]),e("el-select",{staticStyle:{width:"100%"},attrs:{multiple:"",size:"mini",placeholder:t.$t("placeholder.choose")},model:{value:t.excludeShowLoginTypes,callback:function(e){t.excludeShowLoginTypes=e},expression:"excludeShowLoginTypes"}},t._l("VN"===t.country?t.excludeListVN:t.excludeList,(function(t,a){return e("el-option",{key:a,attrs:{label:t.label,value:t.value}})})),1),e("div",{staticClass:"label"},[t._v(t._s(t.$t("Ib.Index.Spread4"))+" :")]),"VN"!==t.country?e("el-select",{staticStyle:{width:"100%"},attrs:{size:"mini",placeholder:t.$t("placeholder.choose")},model:{value:t.selectedSpreadId,callback:function(e){t.selectedSpreadId=e},expression:"selectedSpreadId"}},t._l(t.spreadList,(function(a,s){return e("el-option",{key:s,attrs:{label:t.$t("Ib.Index.Commission")+":"+a.comPoint+(1===t.levelNum?"-"+t.$t("Ib.Index.Hide")+":"+a.hide:1===t.fixedHide?"":"-"+t.$t("Ib.Index.Hide")+":"+a.hide),value:a.id}})})),1):e("el-select",{staticStyle:{width:"100%"},attrs:{size:"mini",placeholder:t.$t("placeholder.choose")},model:{value:t.selectedSpreadId,callback:function(e){t.selectedSpreadId=e},expression:"selectedSpreadId"}},t._l(t.spreadList,(function(a,s){return e("el-option",{key:s,attrs:{label:1===t.levelNum?t.$t("Ib.Index.Hide")+":"+a.hide:1===t.fixedHide?"":t.$t("Ib.Index.Hide")+":"+a.hide,value:a.id}})})),1),e("div",{directives:[{name:"t",rawName:"v-t",value:"Ib.Index.IbInvalid",expression:"'Ib.Index.IbInvalid'"}],staticClass:"label"}),e("el-select",{staticStyle:{width:"100%"},attrs:{size:"mini",placeholder:t.$t("placeholder.choose")},model:{value:t.ibInvalid,callback:function(e){t.ibInvalid=e},expression:"ibInvalid"}},[e("el-option",{attrs:{label:t.$t("Ib.Custom.Allow"),value:"B0"}}),e("el-option",{attrs:{label:t.$t("Ib.Custom.NotAllow"),value:"B1"}})],1),e("div",[e("span",{directives:[{name:"t",rawName:"v-t",value:"ApplicationDialog.item1",expression:"'ApplicationDialog.item1'"}],staticStyle:{"line-height":"1.5"}})]),e("div",[e("span",{directives:[{name:"t",rawName:"v-t",value:"ApplicationDialog.item2",expression:"'ApplicationDialog.item2'"}],staticStyle:{"line-height":"1.5"}}),"NG"==t.country||"TH"==t.country||"LA"==t.country?e("a",{directives:[{name:"t",rawName:"v-t",value:"ApplicationDialog.item3",expression:"'ApplicationDialog.item3'"}],attrs:{href:`pdf/pdf6/all/Account Type Allocation Table - ${t.lang}.pdf`,target:"_blank"}}):e("a",{directives:[{name:"t",rawName:"v-t",value:"ApplicationDialog.item3",expression:"'ApplicationDialog.item3'"}],attrs:{href:`pdf/pdf6/no/Account Type Allocation Table-${t.lang}.pdf`,target:"_blank"}})]),e("div",{staticClass:"btn"},[e("span",{directives:[{name:"t",rawName:"v-t",value:"Ib.Index.CreateLink",expression:"'Ib.Index.CreateLink'"}],staticClass:"crm-cursor",on:{click:t.CreateLink}})]),t.link?e("div",{staticClass:"link qrCode"},[e("QrCode",{ref:"qrCode",attrs:{text:t.link,width:200,height:200}}),e("div",{staticClass:"btn"},[e("span",{directives:[{name:"t",rawName:"v-t",value:"Btn.item9",expression:"'Btn.item9'"}],staticClass:"crm-cursor",staticStyle:{height:"16px"},on:{click:t.downloadQrCode}})])],1):t._e(),e("div",{staticClass:"link"},[e("el-input",{attrs:{readonly:"",size:"mini",placeholder:"",id:"custom_link"},model:{value:t.link,callback:function(e){t.link="string"===typeof e?e.trim():e},expression:"link"}}),e("div",{staticClass:"btn"},[e("span",{directives:[{name:"t",rawName:"v-t",value:"Ib.Index.Copy",expression:"'Ib.Index.Copy'"}],staticClass:"crm-cursor",on:{click:function(e){return t.CopyShareLink("custom_link")}}})])],1)],1)])]),e("el-dialog",{attrs:{visible:t.dialogLinkActivity,center:"",title:t.$t("Ib.Index.CreateLinkActiv"),"custom-class":"dialog_header_w dialogLink"},on:{"update:visible":function(e){t.dialogLinkActivity=e}}},[e("div",{staticClass:"dia-content"},[e("div",{staticClass:"content",staticStyle:{"font-size":"14px","text-align":"left"}},[e("div",{directives:[{name:"t",rawName:"v-t",value:"Ib.Index.ChooseActiv",expression:"'Ib.Index.ChooseActiv'"}],staticClass:"label"}),e("el-select",{staticStyle:{width:"100%"},attrs:{size:"mini",placeholder:t.$t("Ib.Index.ChooseActiv")},model:{value:t.activityLing,callback:function(e){t.activityLing=e},expression:"activityLing"}},t._l(t.agentLinkList,(function(t){return e("el-option",{key:t.id,attrs:{label:t.name,value:t.link}})})),1),e("div",{staticClass:"label"},[t._v(t._s(t.$t("Ib.Index.Spread5"))+" :")]),e("el-select",{staticStyle:{width:"100%"},attrs:{multiple:"",size:"mini",placeholder:t.$t("placeholder.choose")},model:{value:t.excludeShowLoginTypes,callback:function(e){t.excludeShowLoginTypes=e},expression:"excludeShowLoginTypes"}},t._l(t.excludeList,(function(t,a){return e("el-option",{key:a,attrs:{label:t.label,value:t.value}})})),1),e("div",{staticClass:"label"},[t._v(t._s(t.$t("Ib.Index.Spread4"))+" :")]),e("el-select",{staticStyle:{width:"100%"},attrs:{size:"mini",placeholder:t.$t("placeholder.choose")},model:{value:t.selectedSpreadId,callback:function(e){t.selectedSpreadId=e},expression:"selectedSpreadId"}},t._l(t.spreadList,(function(a,s){return e("el-option",{key:s,attrs:{label:t.$t("Ib.Index.Commission")+":"+a.comPoint+(1===t.levelNum?"-"+t.$t("Ib.Index.Hide")+":"+a.hide:1===t.fixedHide?"":"-"+t.$t("Ib.Index.Hide")+":"+a.hide),value:a.id}})})),1),e("div",{directives:[{name:"t",rawName:"v-t",value:"Ib.Index.IbInvalid",expression:"'Ib.Index.IbInvalid'"}],staticClass:"label"}),e("el-select",{staticStyle:{width:"100%"},attrs:{size:"mini",placeholder:t.$t("placeholder.choose")},model:{value:t.ibInvalid,callback:function(e){t.ibInvalid=e},expression:"ibInvalid"}},[e("el-option",{attrs:{label:t.$t("Ib.Custom.Allow"),value:"B0"}}),e("el-option",{attrs:{label:t.$t("Ib.Custom.NotAllow"),value:"B1"}})],1),e("div",[e("span",{directives:[{name:"t",rawName:"v-t",value:"ApplicationDialog.item1",expression:"'ApplicationDialog.item1'"}],staticStyle:{"line-height":"1.5"}})]),e("div",[e("span",{directives:[{name:"t",rawName:"v-t",value:"ApplicationDialog.item2",expression:"'ApplicationDialog.item2'"}],staticStyle:{"line-height":"1.5"}}),"NG"==t.country||"TH"==t.country||"LA"==t.country?e("a",{directives:[{name:"t",rawName:"v-t",value:"ApplicationDialog.item3",expression:"'ApplicationDialog.item3'"}],attrs:{href:`pdf/pdf6/all/Account Type Allocation Table - ${t.lang}.pdf`,target:"_blank"}}):e("a",{directives:[{name:"t",rawName:"v-t",value:"ApplicationDialog.item3",expression:"'ApplicationDialog.item3'"}],attrs:{href:`pdf/pdf6/no/Account Type Allocation Table-${t.lang}.pdf`,target:"_blank"}})]),e("div",{staticClass:"btn"},[e("span",{directives:[{name:"t",rawName:"v-t",value:"Ib.Index.CreateLinkActivity",expression:"'Ib.Index.CreateLinkActivity'"}],staticClass:"crm-cursor",on:{click:t.CreateActivityLink}})]),t.linkActivity?e("div",{staticClass:"link qrCode"},[e("QrCode",{ref:"qrCode",attrs:{text:t.linkActivity,width:200,height:200}}),e("div",{staticClass:"btn"},[e("span",{directives:[{name:"t",rawName:"v-t",value:"Btn.item9",expression:"'Btn.item9'"}],staticClass:"crm-cursor",staticStyle:{height:"16px"},on:{click:t.downloadQrCode}})])],1):t._e()],1)])]),e("el-dialog",{attrs:{visible:t.dialogPercent,center:"",title:t.$t("Ib.PammManager.percent"),"custom-class":"dialog_header_w dialogLink"},on:{"update:visible":function(e){t.dialogPercent=e}}},[e("div",{staticClass:"dia-content"},[e("div",{staticClass:"content",staticStyle:{"font-size":"14px","text-align":"left"}},[e("el-form",{ref:"form",attrs:{model:t.dialogPercentData,"label-width":"150px"}},[e("el-form-item",{attrs:{label:t.$t("Ib.PammManager.ownerId")+":"}},[t._v(" "+t._s(t.dialogPercentData.oldOwnerId||"--")+" ")]),e("el-form-item",{attrs:{label:t.$t("Ib.PammManager.accountId")+":"}},[t._v(" "+t._s(t.dialogPercentData.oldAccountId||"--")+" ")]),e("el-form-item",{attrs:{label:t.$t("Ib.PammManager.percent")+":"}},[t._v(" "+t._s(t.dialogPercentData.oldPercent)+"% ")]),e("el-form-item",{attrs:{label:t.$t("Ib.PammManager.percentNew")+":"}},[e("el-input",{attrs:{size:"small"},model:{value:t.dialogPercentData.percent,callback:function(e){t.$set(t.dialogPercentData,"percent",e)},expression:"dialogPercentData.percent"}})],1)],1),e("div",{staticClass:"dialog-footer",staticStyle:{display:"flex","justify-content":"center"},attrs:{slot:"footer"},slot:"footer"},[e("el-button",{directives:[{name:"t",rawName:"v-t",value:"Btn.Cancel",expression:"'Btn.Cancel'"}],on:{click:function(e){t.dialogPercent=!1}}}),e("el-button",{directives:[{name:"t",rawName:"v-t",value:"Btn.Confirm",expression:"'Btn.Confirm'"}],attrs:{type:"primary"},on:{click:t.applyPercent}})],1)],1)])]),e("el-dialog",{attrs:{title:t.$t("blockchain.item1"),visible:t.dialogCheck1level,center:"","custom-class":"dialog_header_w"},on:{"update:visible":function(e){t.dialogCheck1level=e}}},[e("div",{staticClass:"dia-content"},[e("el-table",{staticStyle:{width:"100%","margin-bottom":"20px"},attrs:{data:t.agentId_level,stripe:""}},[e("el-table-column",{attrs:{align:"center",prop:"",label:t.$i18n.t("Ib.Index.TradingAccount")},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(e.row.login||"--")+" ")]}}])}),e("el-table-column",{attrs:{align:"center",prop:"",label:t.$i18n.t("Ib.Index.Balance")},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(e.row.balance||"--")+" ")]}}])})],1),e("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e("el-button",{directives:[{name:"t",rawName:"v-t",value:"Btn.Cancel",expression:"'Btn.Cancel'"}],on:{click:function(e){t.dialogCheck1level=!1}}}),e("el-button",{directives:[{name:"t",rawName:"v-t",value:"Btn.Confirm",expression:"'Btn.Confirm'"}],attrs:{type:"primary"},on:{click:function(e){t.dialogCheck1level=!1}}})],1)],1)])],1)},i=[],n=(a("14d9"),a("e9f5"),a("910d"),a("f665"),a("7d54"),a("ab43"),a("fa1c")),l=a("eec4"),o=a.n(l),r=a("1c45"),c=a("5d41"),d=a("f121"),u=a.n(d);let{Code:p,Host80:m}=u.a;var h={name:"Index",components:{QrCode:c["a"]},inject:["reload"],data(){return{flag:!1,flag1:!1,Host80:m,dialogLink:!1,dialogLinkActivity:!1,agentLinkList:[],pictLoading:!1,ChartSet:{type:4,platform:"MT4",startDate:"",endDate:""},isChart:!1,isDate:[],time:"",value:"",input:"",tableData:[],pammManagerValid:{},dialogPercent:!1,dialogPercentData:{},form:{},activityLing:"",linkActivity:"",hide:0,commission:0,excludeList:[],excludeLists:[],excludeListVN:[],spreadList:[],excludeShowLoginTypes:[],selectedSpreadId:"",loginTypes:"",ibInvalid:"B0",link:"",ibData:{customAmount:"",ibAmount:""},chartDates:[],chartTimes:[],dialogCheck1level:!1,agentId_level:[],pagerInfo:{row:10,current:1,pageTotal:0,rowTotal:10}}},computed:{levelNum(){return JSON.parse(this.Session.Get("user",!0)).ibInfo.levelNum},fixedHide(){return JSON.parse(this.Session.Get("user",!0)).ibInfo.fixedHide},getInfoId(){return JSON.parse(this.Session.Get("user",!0)).ibInfo.id},CommissionApproval(){return JSON.parse(this.Session.Get("user",!0)).ibInfo.commissionApproval},agentAccountSetting(){return JSON.parse(this.Session.Get("user",!0)).ibInfo.agentAccountSetting||0},lang(){return this.Session.Get("lang")},pointChoose(){let t=[];return t=null==JSON.parse(this.Session.Get("user",!0)).ibInfo.pointChoose||""==JSON.parse(this.Session.Get("user",!0)).ibInfo.pointChoose?[]:JSON.parse(this.Session.Get("user",!0)).ibInfo.pointChoose.split(","),t},country(){return JSON.parse(this.Session.Get("user",!0)).customInfo.country}},methods:{isAfterJuly28(){return Object(n["a"])()},isAfterJuly7(){const t=new Date,e=new Date(t.getFullYear(),6,7);return t>=e},LinkActivity:async function(){if(this.flag)return void this.$pigeon.MessageW(t.msg);this.flag=!0;let t=await r["a"].marketAgentLinkList({});t.code==p.StatusOK?(this.agentLinkList=t.data,await this.loginTypeList(),this.getAgentAccountSetting(),this.activityLing="",this.linkActivity="",this.commission=0,this.hide=0,this.ibInvalid="B0",this.dialogLinkActivity=!0,this.flag=!1):(this.$pigeon.MessageError(t.msg),this.flag=!1)},LinkActivity1:function(){this.$router.push({path:"/ib/custom/link/list"}).catch(t=>t),this.$store.commit("isActiveTab","0")},downloadQrCode(){this.$refs.qrCode.downloadQrCode()},getAgentAccountSetting(){if(console.log("222",this.excludeLists),"VN"===this.country){const t=this.excludeLists.find(t=>"7"===t.value),e=this.excludeLists.find(t=>"8"===t.value),a=this.excludeLists.find(t=>"2"===t.value);this.excludeListVN=[t,e,a].filter(Boolean),this.excludeShowLoginTypes=[]}else if(0==this.agentAccountSetting){const e=JSON.parse(this.Session.Get("user",!0)).customInfo.excludeShowLoginTypes;try{const t=this.excludeLists.filter(t=>!e.includes(t.value));this.excludeList=t,this.excludeShowLoginTypes=[]}catch(t){this.excludeShowLoginTypes=[],this.excludeList=this.excludeLists}}else this.excludeShowLoginTypes=[],this.excludeList=this.excludeLists},CreateActivityLink(){this.activityLing?this.getLink1().then(t=>{t&&(this.linkValue=t,this.activityLing.indexOf("http")>-1?this.activityLing.indexOf("?")>-1?this.linkActivity=this.activityLing+"&mmdi="+this.getInfoId+"&mmF="+this.linkValue+"&mmB="+this.ibInvalid:this.linkActivity=this.activityLing+"?mmdi="+this.getInfoId+"&mmF="+this.linkValue+"&mmB="+this.ibInvalid:this.activityLing.indexOf("?")>-1?this.linkActivity=m+"/"+this.activityLing+"&mmdi="+this.getInfoId+"&mmF="+this.linkValue+"&mmB="+this.ibInvalid:this.linkActivity=m+"/"+this.activityLing+"?mmdi="+this.getInfoId+"&mmF="+this.linkValue+"&mmB="+this.ibInvalid)}):this.$pigeon.MessageWarning(this.$i18n.t("Ib.Index.ChooseActiv"))},CopyShareLink(t){let e=document.getElementById(t);e.select(),document.execCommand("Copy")},async CreateLink(){const t=await this.getLink1();t&&(this.linkValue=t,this.link=`${m}/#/signup/${this.getInfoId}/${t}/${this.ibInvalid}`)},async loginTypeList(){let t=await r["a"].loginTypeList({page:{current:1,row:100}});t.code==p.StatusOK?this.spreadList=t.data:this.$pigeon.MessageError(t.msg)},getValidAccountTypes(t,e){const a=this.spreadList.find(t=>t.id===e);let s={hide:"",commission:"",excludeShowLoginTypes:[]};if(!a)return s;const i=t.filter(t=>a.loginTypes.includes(t)),n=t.filter(t=>!a.loginTypes.includes(t)),l=this.excludeList.filter(t=>n.includes(t.value)).map(t=>t.label),o=this.excludeLists.filter(t=>!i.includes(t.value)).map(t=>t.value);return this.loginTypes=l.join("、"),{hide:a.hide,commission:a.comPoint,excludeShowLoginTypes:o,invalidLabels:l,invalidValues:n}},async getLink1(){if(0===this.excludeShowLoginTypes.length)return this.$pigeon.MessageWarning(this.$i18n.t("Ib.Index.Spread5")),void(this.link="");if(!this.selectedSpreadId)return this.$pigeon.MessageWarning(this.$i18n.t("Ib.Index.Spread4")),void(this.link="");const t=this.getValidAccountTypes(this.excludeShowLoginTypes,this.selectedSpreadId);if(console.log("validList",t),t.invalidLabels.length>0)return new Promise(e=>{this.$pigeon.MessageConfirm(`${this.$i18n.t("Ib.Index.Spread1")}${this.loginTypes}${this.$i18n.t("")}`,this.$i18n.t("Msg.SystemPrompt"),this.$i18n.t("Btn.Confirm"),this.$i18n.t("Btn.Cancel"),async()=>{const a=await r["a"].customLink(t);a.code===p.StatusOK?(this.$pigeon.MessageOK(a.msg),e(a.data)):(this.$pigeon.MessageError(a.msg),e(""))},()=>e(""))});{const e=await r["a"].customLink(t);return e.code===p.StatusOK?(this.$pigeon.MessageOK(e.msg),e.data):(this.$pigeon.MessageError(e.msg),"")}},handleCommand(t){1==t?this.toWithdraw():2==t?this.toTransfer():3==t&&this.toCommissionIssue()},toDialogPercent(t){this.dialogPercentData.oldPercent=t.percent,this.dialogPercentData.mamListId=t.id,this.dialogPercentData.oldOwnerId=t.ownerId,this.dialogPercentData.oldAccountId=t.accountId,this.dialogPercent=!0},applyPercent:async function(){if(this.flag)return;this.flag=!0;let t=await r["a"].applyPercent({mamListId:this.dialogPercentData.mamListId,percent:this.dialogPercentData.percent});t.code==p.StatusOK?(this.$pigeon.MessageOK(t.msg),this.dialogPercent=!1,this.flag=!1):(this.$pigeon.MessageError(t.msg),this.flag=!1)},toDialogSubs(t){this.agentId_level=[],this.dialogCheck1level=!0,this.pammListSubs(t.id)},pammListSubs:async function(t){let e=await r["a"].pammListSubs({id:t});e.code==p.StatusOK?null!=e.data&&(this.agentId_level=e.data||[]):this.$pigeon.MessageError(e.msg)},getSearchDate(t){t?(this.ChartSet.startDate=t[0],this.ChartSet.endDate=t[1],this.getChart()):this.getDate()},getDateList:async function(){let t=await r["a"].IbData({});t.code==p.StatusOK?null!=t.data&&(this.ibData=t.data):this.$pigeon.MessageError(t.msg)},getPammManagerValid:async function(){let t=await r["a"].mamApplyPammManagerValid({});t.code==p.StatusOK?null!=t.data&&(this.pammManagerValid=t.data):this.$pigeon.MessageError(t.msg)},getChart:async function(){if(this.flag)return;this.flag=!0,this.chartDates=[],this.chartTimes=[];let t=await r["a"].getChartInfo({...this.ChartSet});t.code==p.StatusOK?(t.data.forEach(t=>{this.chartDates.push(t.amount),this.chartTimes.push(t.date.split(" ")[0])}),this.drawLine(),this.$pigeon.MessageOK(this.$i18n.t("Msg.SearchSuccess")),this.flag=!1):(this.$pigeon.MessageError(t.msg),this.flag=!1)},searchFunc:async function(){this.pictLoading=!0;let t=await r["a"].MamList({page:{current:this.pagerInfo.current,row:this.pagerInfo.row}});t.code==p.StatusOK?(null!=t.data&&(this.tableData=t.data,this.pagerInfo.rowTotal=t.page.rowTotal,this.pagerInfo.pageTotal=t.page.pageTotal),this.pictLoading=!1):(this.$pigeon.MessageError(t.msg),this.pictLoading=!1)},toInfo(){this.$router.push({path:"/about"})},toNewAccount(t){3==t?this.$router.push({path:"/ib/news/PammManager",query:{type:t}}).catch(t=>t):this.$router.push({path:"/ib/news",query:{type:t}}).catch(t=>t),this.$store.commit("isActiveTab","0")},toSettings(t){if(3==t.type)this.$router.push({path:"/ib/setting/PammManager",query:{login:t.accountId,id:t.id}}).catch(t=>t);else{let e=0;t.closeFunctions&&"-1"!=t.closeFunctions.indexOf("4")&&(e=1),this.$router.push({path:"/ib/setting",query:{login:t.login,type:t.accountType,id:t.id,leverage:t.leverage,close:e}}).catch(t=>t)}this.$store.commit("isActiveTab","0")},toWithdraw(){this.$router.push({path:"/ib/withdraw"}).catch(t=>t),this.$store.commit("isActiveTab","5")},toTransfer(){this.$router.push({path:"/ib/transfer"}).catch(t=>t),this.$store.commit("isActiveTab","4")},toCommissionIssue(){this.$router.push({path:"/ib/transfer",query:{tab:"commissionIssue"}}).catch(t=>t),this.$store.commit("isActiveTab","4")},toCustomManagement(){this.$router.push({path:"/ib/customer",query:{type:3}}).catch(t=>t),this.$store.commit("isActiveTab","2")},toIbManagement(){this.$router.push({path:"/ib/customer",query:{type:2}}).catch(t=>t),this.$store.commit("isActiveTab","2")},getDate(){let t,e=2,a=(new Date).getTimezoneOffset(),s=(new Date).getTime(),i=new Date(s+60*a*1e3+60*e*60*1e3),n=i.getMonth()+1,l=i.getDate(),o=i.getHours(),r=i.getMinutes();n<10&&(n="0"+n),l<10&&(l="0"+l),o<10&&(o="0"+o),r<10&&(r="0"+r),t=" "+o+":"+r+" "+n+"/"+l,this.time=t},goTime(){this.getDate();let t=2,e=(new Date).getTimezoneOffset(),a=(new Date).getTime(),s=new Date(a+60*e*1e3+60*t*60*1e3),i=s.setDate(1),n=s.setMonth(s.getMonth()+1),l=new Date(i).getFullYear(),o=new Date(i).getMonth()+1,r=new Date(i).getDate(),c=new Date(n).getFullYear(),d=new Date(n).getMonth()+1,u=1;this.ChartSet.startDate=l+"-"+(o<10?"0"+o:o)+"-"+(r<10?"0"+r:r),this.ChartSet.endDate=c+"-"+(d<10?"0"+d:d)+"-"+(u<10?"0"+u:u),this.isDate=[this.ChartSet.startDate,this.ChartSet.endDate],this.getChart()},toReload(){this.flag1||(this.flag1=!0,this.goTime(),this.getDateList(),this.searchFunc(),this.drawLine(),this.divInit(),setTimeout(()=>{this.flag1=!1},2e3))},drawLine(){let t=this.$echarts.init(document.getElementById("myChartIB")),e=this.chartTimes,a=this.chartDates,s={title:{text:"",subtext:"",left:"center"},tooltip:{trigger:"axis",axisPointer:{animation:!1}},axisPointer:{link:{xAxisIndex:"all"}},grid:[{left:50,right:50,bottom:50,height:"75%"}],xAxis:[{type:"category",boundaryGap:!1,axisLine:{onZero:!0},data:e}],yAxis:[{name:"",type:"value"}],series:[{name:"",type:"line",symbolSize:8,hoverAnimation:!1,data:a}]};t.setOption(s)},divInit(){const t=this,e=o()({strategy:"scroll"});e.listenTo(document.getElementById("ib_index"),()=>{t.$nextTick(()=>{t.chart=t.$echarts.init(document.getElementById("myChartIB")),t.chart.resize()})})},handleSizeChange(t){this.pagerInfo.row=t,this.searchFunc()},handleCurrentChange(t){this.pagerInfo.current=t,this.searchFunc()}},created(){this.$nextTick(()=>{this.excludeLists=[{label:this.$i18n.t("AccountType.SeniorAccount"),value:"2"},{label:this.$i18n.t("AccountType.AgencyAccount"),value:"3",hidden:this.isAfterJuly28()},{label:this.$i18n.t("AccountType.StandardAccount"),value:"7"},{label:this.$i18n.t("AccountType.CentAccount"),value:"8"}],this.excludeLists=this.excludeLists.filter(t=>!t.hidden)}),this.goTime(),this.getDateList(),this.getPammManagerValid(),this.searchFunc(),this.$nextTick(()=>{this.drawLine(),this.divInit()})},watch:{commission:function(){this.link=""},ibInvalid:function(){this.link=""},"$i18n.locale":{handler(t){console.log("Language changed to:",t)},immediate:!0}},beforeDestroy:function(){this.getDate&&clearInterval(this.getDate)}},g=h,v=(a("ac0c"),a("d03b"),a("2877")),y=Object(v["a"])(g,s,i,!1,null,"1766324e",null);e["default"]=y.exports},d03b:function(t,e,a){"use strict";a("73b1")},fa1c:function(t,e,a){"use strict";function s(){const t=new Date,e=new Date(2025,6,28,0,0,0);return t>=e}a.d(e,"a",(function(){return s}))}}]);