cus-index.e779b3de.js 32 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["cus-index"],{"051f":function(t,e,a){"use strict";a("cbb1")},"06c5":function(t,e,a){"use strict";a.d(e,"a",(function(){return i}));a("a630"),a("fb6a"),a("b0c0"),a("d3b7"),a("ac1f"),a("00b4"),a("25f0"),a("3ca3");var n=a("6b75");function i(t,e){if(t){if("string"==typeof t)return Object(n["a"])(t,e);var a={}.toString.call(t).slice(8,-1);return"Object"===a&&t.constructor&&(a=t.constructor.name),"Map"===a||"Set"===a?Array.from(t):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?Object(n["a"])(t,e):void 0}}},"23d6":function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t._self._c;return e("div",{staticClass:"views",attrs:{id:"custom_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",{attrs:{label:t.$t("Label.TradingAccount")}},[e("el-select",{staticClass:"crm_select_icon_w",attrs:{filterable:"",placeholder:t.$t("placeholder.choose")},model:{value:t.ChartSet.login,callback:function(e){t.$set(t.ChartSet,"login",e)},expression:"ChartSet.login"}},t._l(t.dropDown,(function(t){return e("el-option",{key:t.login,attrs:{label:t.login,value:t.login}})})),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+2 "+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()]),t.ChartSet.login?e("div",{staticClass:"account"},[e("span",{directives:[{name:"t",rawName:"v-t",value:"Custom.Index.TradingAccount",expression:"'Custom.Index.TradingAccount'"}]}),e("span",[t._v(" — ")]),e("span",[t._v(t._s(t.ChartSet.login))])]):t._e(),e("div",{staticClass:"date"},[e("el-date-picker",{attrs:{type:"daterange",size:"small","unlink-panels":"","value-format":"yyyy-MM-dd","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:"myChart"}})]),e("div",{staticClass:"account-summary"},[e("el-row",[e("el-col",{attrs:{span:12}},[e("div",{staticClass:"custom-number"},[e("div",{staticClass:"title"},[e("div",{staticStyle:{display:"flex","align-items":"center"}},[e("img",{staticStyle:{width:"16px"},attrs:{src:a("8868"),alt:""}}),e("span",{directives:[{name:"t",rawName:"v-t",value:"wallet.item4",expression:"'wallet.item4'"}],staticClass:"tit"})])]),e("div",{staticClass:"content"},[e("div",{staticClass:"con crm-cursor"},[e("div",{staticClass:"num"},[t._v("CID:"+t._s(t.cId))])])])])]),e("el-col",{attrs:{span:12}},[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:"wallet.item5",expression:"'wallet.item5'"}],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:"wallet.item6",expression:"'wallet.item6'"}]})]),e("el-dropdown-item",{attrs:{command:"2"}},[e("span",{directives:[{name:"t",rawName:"v-t",value:"wallet.item7",expression:"'wallet.item7'"}]})])],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._f("NumberDecimal")(t.walletbalance||"0"))))])])]),e("div",{staticClass:"con crm-cursor",on:{click:t.toPaymentHistory}},[e("div",{staticClass:"num pending-withdraw"},[t._v(" $ "),e("span",[t._v(t._s(t._f("NumberFormat")(t._f("NumberDecimal")(t.pendingWithdrawAmount||"0"))))])]),e("div",{directives:[{name:"t",rawName:"v-t",value:"wallet.pendingWithdraw",expression:"'wallet.pendingWithdraw'"}],staticClass:"des"})])])])])],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:"Custom.Index.AccountList",expression:"'Custom.Index.AccountList'"}]})]),e("span",{staticClass:"btn crm-cursor",on:{click:t.toNewAccount}},[e("i",{staticClass:"el-icon-plus"}),e("span",{directives:[{name:"t",rawName:"v-t",value:"Custom.Index.AddAccount",expression:"'Custom.Index.AddAccount'"}]})])]),e("div",{staticClass:"search-container"},[e("div",{staticClass:"search"},[e("span",{staticClass:"crm-cursor",class:{active:"MT4"==t.platform},on:{click:function(e){return t.tableSearch("MT4")}}},[t._v("MT4")]),e("span",{staticClass:"crm-cursor",class:{active:"MT5"==t.platform},on:{click:function(e){return t.tableSearch("MT5")}}},[t._v("MT5")])]),e("div",{staticClass:"delete-account"},[e("el-button",{attrs:{type:"danger",size:"small"},on:{click:t.showDeleteDialog}},[e("i",{staticClass:"el-icon-delete"}),e("span",{directives:[{name:"t",rawName:"v-t",value:"Tips.DeleteAccount",expression:"'Tips.DeleteAccount'"}]})])],1)]),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",label:t.$t("PersonalManagement.Label.State"),width:"100"},scopedSlots:t._u([{key:"default",fn:function(a){return[1==a.row.del?e("el-popover",{attrs:{placement:"top",trigger:"hover"}},[e("div",[t._v(" "+t._s(t.$t("Tips.item1"))),e("span",{staticStyle:{color:"red"}},[t._v(t._s(a.row.markDelTime))]),t._v(t._s(t.$t("Tips.item2"))+" ")]),e("i",{staticClass:"el-icon-error",style:{color:"#F56C6C",cursor:"pointer"},attrs:{slot:"reference"},slot:"reference"})]):e("i",{staticClass:"el-icon-success",style:{color:"#67C23A"}})]}}])}),e("el-table-column",{attrs:{align:"center","header-align":"center",label:t.$t("Label.TradingAccount")},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.login||"-"))]}}])}),e("el-table-column",{attrs:{align:"center",label:t.$t("Label.AccountType")},scopedSlots:t._u([{key:"default",fn:function(a){return[1==a.row.type?e("span",{directives:[{name:"t",rawName:"v-t",value:"AccountType.ClassicAccount",expression:"'AccountType.ClassicAccount'"}]}):t._e(),2==a.row.type?e("span",{directives:[{name:"t",rawName:"v-t",value:"AccountType.SeniorAccount",expression:"'AccountType.SeniorAccount'"}]}):t._e(),3!=a.row.type||t.isAfterJuly28()?t._e():e("span",{directives:[{name:"t",rawName:"v-t",value:"AccountType.AgencyAccount",expression:"'AccountType.AgencyAccount'"}]}),5==a.row.type?e("span",{directives:[{name:"t",rawName:"v-t",value:"AccountType.SpeedAccount",expression:"'AccountType.SpeedAccount'"}]}):t._e(),6==a.row.type?e("span",{directives:[{name:"t",rawName:"v-t",value:"AccountType.SpeedAccount",expression:"'AccountType.SpeedAccount'"}]}):t._e(),7==a.row.type?e("span",{directives:[{name:"t",rawName:"v-t",value:"AccountType.StandardAccount",expression:"'AccountType.StandardAccount'"}]}):t._e(),8==a.row.type?e("span",{directives:[{name:"t",rawName:"v-t",value:"AccountType.CentAccount",expression:"'AccountType.CentAccount'"}]}):t._e()]}}])}),e("el-table-column",{attrs:{align:"center",width:t.lang?"100":"",label:t.$t("Label.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("Label.Equity")},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(e.row.equityWithSymbol||"0"))]}}])}),e("el-table-column",{attrs:{align:"center",label:t.$t("Label.Credit")},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.creditWithSymbol||"0"))]}}])}),e("el-table-column",{attrs:{align:"center",label:t.$t("Label.Balance")},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(e.row.balanceWithSymbol||"0"))]}}])}),e("el-table-column",{attrs:{align:"center",label:t.$t("Label.Action"),width:"220"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("div",{staticClass:"tab-act-btn"},["-1"==a.row.closeFunctions.indexOf("1")?e("span",{staticClass:"crm-font-btn",on:{click:function(e){return t.toDeposit(a.row)}}},[e("i",{staticClass:"el-icon-arrow-right"}),e("span",{directives:[{name:"t",rawName:"v-t",value:"Custom.Index.Deposit",expression:"'Custom.Index.Deposit'"}]})]):e("span",{staticClass:"crm-font-btn",on:{click:t.tips}},[e("i",{staticClass:"el-icon-arrow-right",staticStyle:{opacity:"0.6 !important"}}),e("span",{directives:[{name:"t",rawName:"v-t",value:"Custom.Index.Deposit",expression:"'Custom.Index.Deposit'"}],staticStyle:{color:"#909399",opacity:"1 !important"}})]),"-1"==a.row.closeFunctions.indexOf("2")?e("span",{staticClass:"crm-font-btn",on:{click:function(e){return t.toWithdraw(a.row)}}},[e("i",{staticClass:"el-icon-arrow-left"}),e("span",{directives:[{name:"t",rawName:"v-t",value:"Custom.Index.Withdrawals",expression:"'Custom.Index.Withdrawals'"}]})]):e("span",{staticClass:"crm-font-btn",on:{click:t.tips}},[e("i",{staticClass:"el-icon-arrow-left",staticStyle:{opacity:"0.6 !important"}}),e("span",{directives:[{name:"t",rawName:"v-t",value:"Custom.Index.Withdrawals",expression:"'Custom.Index.Withdrawals'"}],staticStyle:{color:"#909399",opacity:"1 !important"}})])]),e("div",{staticClass:"tab-act-btn"},[-1===a.row.closeFunctions.indexOf("3")&&-1===a.row.closeFunctions.indexOf("6")?e("span",{staticClass:"crm-font-btn",on:{click:function(e){return t.toTransfer(a.row)}}},[e("i",{staticClass:"el-icon-sort"}),e("span",{directives:[{name:"t",rawName:"v-t",value:"Custom.Index.Transfer",expression:"'Custom.Index.Transfer'"}]})]):e("span",{staticClass:"crm-font-btn",on:{click:t.tips}},[e("i",{staticClass:"el-icon-sort",staticStyle:{opacity:"0.6 !important"}}),e("span",{directives:[{name:"t",rawName:"v-t",value:"Custom.Index.Transfer",expression:"'Custom.Index.Transfer'"}],staticStyle:{color:"#909399",opacity:"1 !important"}})]),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:"Custom.Index.Settings",expression:"'Custom.Index.Settings'"}]})])]),e("div",{staticClass:"tab-act-btn"},[7==a.row.type?e("span",{staticClass:"crm-font-btn",on:{click:function(e){return t.toStandardRebate(a.row)}}},[e("i",{staticClass:"el-icon-s-order"}),e("span",{directives:[{name:"t",rawName:"v-t",value:"standardRebate.item1",expression:"'standardRebate.item1'"}]})]):t._e()])]}}])})],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.dialogCheck,center:"","show-close":!1,"custom-class":"dialog_header_w"},on:{"update:visible":function(e){t.dialogCheck=e}}},[e("div",{staticClass:"dia-content"},[e("div",{directives:[{name:"t",rawName:"v-t",value:"Home.msg.content1",expression:"'Home.msg.content1'"}],staticClass:"des1"}),e("div",{staticClass:"icon"},[e("i",{staticClass:"iconfont iconziliaobuchong",staticStyle:{"font-size":"60px"}})]),e("div",{directives:[{name:"t",rawName:"v-t",value:"Home.msg.content2",expression:"'Home.msg.content2'"}],staticClass:"des2"}),e("div",{directives:[{name:"t",rawName:"v-t",value:"Home.msg.content3",expression:"'Home.msg.content3'"}],staticClass:"des2"}),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.dialogCheck=!1}}}),e("el-button",{directives:[{name:"t",rawName:"v-t",value:"Home.msg.btnImmediately",expression:"'Home.msg.btnImmediately'"}],attrs:{type:"primary"},on:{click:t.immediately}})],1)])]),e("el-dialog",{attrs:{title:t.$t("Tips.DeleteAccount"),visible:t.deleteDialogVisible,width:"50%","before-close":t.handleClose},on:{"update:visible":function(e){t.deleteDialogVisible=e}}},[e("div",{staticClass:"delete-account-list",staticStyle:{height:"40vh","overflow-y":"auto"}},[e("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.deleteLoading,expression:"deleteLoading"}],staticStyle:{width:"100%"},attrs:{data:t.tableData1}},[e("el-table-column",{attrs:{prop:"login",label:t.$t("Label.TradingAccount"),align:"center"}}),e("el-table-column",{attrs:{prop:"platform",label:t.$t("Label.PlatformType"),align:"center"}}),e("el-table-column",{attrs:{prop:"type",label:t.$t("Label.AccountType"),align:"center"},scopedSlots:t._u([{key:"default",fn:function(a){return[1==a.row.type?e("span",{directives:[{name:"t",rawName:"v-t",value:"AccountType.ClassicAccount",expression:"'AccountType.ClassicAccount'"}]}):t._e(),2==a.row.type?e("span",{directives:[{name:"t",rawName:"v-t",value:"AccountType.SeniorAccount",expression:"'AccountType.SeniorAccount'"}]}):t._e(),3!=a.row.type||t.isAfterJuly28()?t._e():e("span",{directives:[{name:"t",rawName:"v-t",value:"AccountType.AgencyAccount",expression:"'AccountType.AgencyAccount'"}]}),5==a.row.type?e("span",{directives:[{name:"t",rawName:"v-t",value:"AccountType.SpeedAccount",expression:"'AccountType.SpeedAccount'"}]}):t._e(),6==a.row.type?e("span",{directives:[{name:"t",rawName:"v-t",value:"AccountType.SpeedAccount",expression:"'AccountType.SpeedAccount'"}]}):t._e(),7==a.row.type?e("span",{directives:[{name:"t",rawName:"v-t",value:"AccountType.StandardAccount",expression:"'AccountType.StandardAccount'"}]}):t._e(),8==a.row.type?e("span",{directives:[{name:"t",rawName:"v-t",value:"AccountType.CentAccount",expression:"'AccountType.CentAccount'"}]}):t._e()]}}])}),e("el-table-column",{attrs:{align:"center",label:t.$t("Label.Action"),width:"220"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("el-button",{attrs:{type:"danger",size:"small"},on:{click:function(e){return t.doDetail(a.row)}}},[t._v(t._s(t.$t("Tips.TransactionRecord")))])]}}])})],1)],1),t.pagerInfo1.rowTotal?e("div",{staticClass:"crm_pagination"},[e("el-pagination",{staticClass:"page",attrs:{background:"",layout:"prev, pager, next","page-size":t.pagerInfo1.row,total:t.pagerInfo1.rowTotal},on:{"current-change":t.handleCurrentChange1}})],1):t._e()]),e("el-dialog",{attrs:{title:t.$t("Tips.TransactionRecord"),visible:t.transactionDialogVisible,width:"50%","before-close":t.handleTransactionClose},on:{"update:visible":function(e){t.transactionDialogVisible=e}}},[e("div",{staticClass:"transaction-history-list",staticStyle:{height:"40vh","overflow-y":"auto"}},[e("div",{staticClass:"date-filter"},[e("el-date-picker",{attrs:{type:"daterange",size:"small","unlink-panels":"","value-format":"yyyy-MM-dd","range-separator":"—","picker-options":t.pickerOptions,"start-placeholder":t.$t("placeholder.Start"),"end-placeholder":t.$t("placeholder.End")},model:{value:t.transactionDate,callback:function(e){t.transactionDate=e},expression:"transactionDate"}}),e("el-button",{staticStyle:{"margin-left":"10px"},attrs:{type:"primary",size:"small"},on:{click:t.handleTransactionSearch}},[t._v(" "+t._s(t.$t("placeholder.searchAcc"))+" ")])],1),e("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.pictLoading,expression:"pictLoading"}],staticStyle:{width:"100%"},attrs:{data:t.tableData2}},[e("el-table-column",{attrs:{prop:"login",label:t.$t("Label.TradingAccount"),align:"center"}}),e("el-table-column",{attrs:{prop:"openPrice",label:t.$t("Label.OpenPrice"),align:"center"}}),e("el-table-column",{attrs:{prop:"closePrice",label:t.$t("Label.ClosePrice"),align:"center"}}),e("el-table-column",{attrs:{prop:"openTime",label:t.$t("Label.OpenTime"),align:"center"}}),e("el-table-column",{attrs:{prop:"closeTime",label:t.$t("Label.CloseTime"),align:"center"}})],1)],1),t.pagerInfo2.rowTotal?e("div",{staticClass:"crm_pagination"},[e("el-pagination",{staticClass:"page",attrs:{background:"",layout:"prev, pager, next","page-size":t.pagerInfo2.row,total:t.pagerInfo2.rowTotal},on:{"current-change":t.handleTransactionPageChange}})],1):t._e()])],1)},i=[],s=a("3835"),r=a("5530"),o=a("c7eb"),c=a("1da1"),l=(a("14d9"),a("e9f5"),a("7d54"),a("b64b"),a("d3b7"),a("25f0"),a("159b"),a("fa1c")),u=a("eec4"),d=a.n(u),p=a("6df7"),m=a("18a4"),h=a("f121"),g=a.n(h),f=g.a.Code,v={name:"Customer",components:{},inject:["reload"],data:function(){return{flag:!1,flag1:!1,pictLoading:!1,deleteDialogVisible:!1,deleteLoading:!1,selectedAccounts:[],currentRow:null,platform:"MT4",ChartSet:{type:4,platform:"MT4",login:"",startDate:"",endDate:""},isChart:!1,isDate:[],dropDown:[],time:"",value:"",input:"",tableData:[],tableData1:[],tableData2:[],form:{},chartDates:[],chartTimes:[],dialogCheck:!1,walletbalance:"",pendingWithdrawAmount:"",pagerInfo:{row:10,current:1,pageTotal:0,rowTotal:0},pagerInfo1:{row:10,current:1,pageTotal:0,rowTotal:0},pagerInfo2:{row:10,current:1,pageTotal:0,rowTotal:0},transactionDialogVisible:!1,transactionDate:[],pickerOptions:{shortcuts:[],disabledDate:function(t){return t.getTime()>Date.now()}}}},computed:{cId:function(){return JSON.parse(this.Session.Get("user",!0)).customInfo.cId.toString()},lang:function(){return"en"==this.Session.Get("lang")&&document.body.clientWidth<1300}},methods:{isAfterJuly28:function(){return Object(l["a"])()},groupCurrency:function(t){return"GBP"==t?": £":"USD"==t?": $":"EUR"==t?": €":"USC"==t?": ¢":": $"},groupCurrency1:function(t){return"GBP"==t?"£":"USD"==t?"$":"EUR"==t?"€":"USC"==t?"¢":"$"},toStandardRebate:function(t){this.$router.push({path:"/customer/standard/rebate",query:{login:t.login}}).catch((function(t){return t}))},tableSearch:function(t){this.platform=t,this.tableData=[],this.pagerInfo.rowTotal=0,this.pagerInfo.current=1,this.getDateList()},getSearchDate:function(t){this.ChartSet.startDate=t[0],this.ChartSet.endDate=t[1],this.getChart()},getDateList:function(){var t=Object(c["a"])(Object(o["a"])().mark((function t(){var e;return Object(o["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this.pictLoading=!0,t.next=3,p["a"].AccountList({platform:this.platform,page:{current:this.pagerInfo.current,row:this.pagerInfo.row}});case 3:e=t.sent,e.code==f.StatusOK?null!=e.data?(this.tableData=e.data,this.tableData.forEach((function(t){if(t.markDelTime){var e=new Date(t.markDelTime),a=new Date,n=Math.abs(a-e),i=Math.ceil(n/864e5);t.markDelTime=i}})),console.log(this.tableData,"000"),this.pagerInfo.rowTotal=e.page.rowTotal,this.pagerInfo.pageTotal=e.page.pageTotal,this.pictLoading=!1):(this.tableData=e.data,this.pictLoading=!1):(this.$pigeon.MessageError(e.msg),this.pictLoading=!1);case 5:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),getAccountList:function(){var t=Object(c["a"])(Object(o["a"])().mark((function t(){var e;return Object(o["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,p["a"].CustomDropdown({platform:this.ChartSet.platform});case 2:e=t.sent,e.code==f.StatusOK?this.dropDown=e.data:this.$pigeon.MessageError(e.msg);case 4:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),getChart:function(){var t=Object(c["a"])(Object(o["a"])().mark((function t(){var e,a=this;return Object(o["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!this.flag){t.next=4;break}return t.abrupt("return");case 4:this.flag=!0;case 5:return this.chartDates=[],this.chartTimes=[],t.next=9,p["a"].getChartInfo(Object(r["a"])({},this.ChartSet));case 9:e=t.sent,e.code==f.StatusOK?(e.data.forEach((function(t){a.chartDates.push(t.amount),a.chartTimes.push(t.date.split(" ")[0])})),this.drawLine(),this.$pigeon.MessageOK(this.$i18n.t("Msg.SearchSuccess")),this.flag=!1):(this.$pigeon.MessageError(e.msg),this.flag=!1);case 11:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),getLoginInfo:function(){var t=this;return Object(c["a"])(Object(o["a"])().mark((function e(){var a;return Object(o["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,p["a"].CustomLoginInfo();case 2:a=e.sent,a.code==f.StatusOK?(t.$store.commit("InitInfo",a.data),2==a.data.customInfo.status&&2==a.data.customInfo.applyRealStatus?(t.$router.push({path:"/customer/new"}).catch((function(t){return t})),t.$store.commit("isActiveTab","0")):t.dialogCheck=!0):t.$pigeon.MessageError(t.$i18n.t("Msg.SystemError"));case 4:case"end":return e.stop()}}),e)})))()},immediately:function(){this.$router.push({path:"/improve/immediately"}).catch((function(t){return t})),this.dialogCheck=!1},tips:function(){this.$pigeon.MessageWarning(this.$i18n.t("news_add_field.Des.item1"))},toNewAccount:function(){this.getLoginInfo()},toSettings:function(t){var e=0;t.closeFunctions&&"-1"!=t.closeFunctions.indexOf("4")&&(e=1),this.$router.push({path:"/customer/settings",query:{login:t.login,platform:t.platform,type:t.type,currency:t.currency,leverage:t.leverage,close:e}}).catch((function(t){return t})),this.$store.commit("isActiveTab","0")},toDeposit:function(t){this.$router.push({path:"/customer/deposit",query:{login:t.login}}).catch((function(t){return t})),this.$store.commit("isActiveTab","2")},toWithdraw:function(t){this.$router.push({path:"/customer/withdraw",query:{login:t.login}}).catch((function(t){return t})),this.$store.commit("isActiveTab","3")},toTransfer:function(t){this.$router.push({path:"/customer/transfer",query:{login:t.login}}).catch((function(t){return t})),this.$store.commit("isActiveTab","5")},toWalletTransfer:function(){this.$router.push({path:"/customer/wallet/transfer"}).catch((function(t){return t}))},toWalletHistory:function(){this.$router.push({path:"/customer/wallet/history"}).catch((function(t){return t}))},toPaymentHistory:function(){this.$router.push({path:"/customer/history",query:{fromPending:"true"}}).catch((function(t){return t})),this.$store.commit("isActiveTab","4")},getDate:function(){var t,e=2,a=(new Date).getTimezoneOffset(),n=(new Date).getTime(),i=new Date(n+60*a*1e3+60*e*60*1e3),s=i.getMonth()+1,r=i.getDate(),o=i.getHours(),c=i.getMinutes();s<10&&(s="0"+s),r<10&&(r="0"+r),o<10&&(o="0"+o),c<10&&(c="0"+c),t=" "+o+":"+c+" "+s+"/"+r,this.time=t},goTime:function(){this.getDate();var t=2,e=(new Date).getTimezoneOffset(),a=(new Date).getTime(),n=new Date(a+60*e*1e3+60*t*60*1e3),i=n.setDate(1),s=n.setMonth(n.getMonth()+1),r=new Date(i).getFullYear(),o=new Date(i).getMonth()+1,c=new Date(i).getDate(),l=new Date(s).getFullYear(),u=new Date(s).getMonth()+1,d=1;this.ChartSet.startDate=r+"-"+(o<10?"0"+o:o)+"-"+(c<10?"0"+c:c),this.ChartSet.endDate=l+"-"+(u<10?"0"+u:u)+"-"+(d<10?"0"+d:d),this.isDate=[this.ChartSet.startDate,this.ChartSet.endDate],this.getChart()},toReload:function(){var t=this;this.flag1||(this.flag1=!0,this.goTime(),this.getDateList(),this.getWalletList(),this.getPendingWithdrawAmount(),this.getAccountList(),this.divInit(),setTimeout((function(){t.flag1=!1}),2e3))},drawLine:function(){var t=this.$echarts.init(document.getElementById("myChart")),e=this.chartTimes,a=this.chartDates,n={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(n)},divInit:function(){var t=this,e=d()({strategy:"scroll"});e.listenTo(document.getElementById("custom_index"),(function(){t.$nextTick((function(){t.chart=t.$echarts.init(document.getElementById("myChart")),t.chart.resize()}))}))},handleSizeChange:function(t){this.pagerInfo.row=t,this.getDateList()},handleCurrentChange:function(t){this.pagerInfo.current=t,this.getDateList()},handleCurrentChange1:function(t){this.pagerInfo1.current=t,this.showDeleteDialog()},getWalletList:function(){var t=Object(c["a"])(Object(o["a"])().mark((function t(){var e;return Object(o["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,m["a"].walletbalance({});case 2:e=t.sent,e.code==f.StatusOK?null!=e.data&&(this.walletbalance=e.data):this.$pigeon.MessageError(e.msg);case 4:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),getPendingWithdrawAmount:function(){var t=Object(c["a"])(Object(o["a"])().mark((function t(){var e;return Object(o["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,m["a"].pendingWithdrawAmount({});case 2:e=t.sent,e.code==f.StatusOK?null!=e.data&&(this.pendingWithdrawAmount=e.data):this.$pigeon.MessageError(e.msg);case 4:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),handleCommand:function(t){1==t?this.toWalletTransfer():2==t&&this.toWalletHistory()},showDeleteDialog:function(){var t=Object(c["a"])(Object(o["a"])().mark((function t(){var e;return Object(o["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,p["a"].deleteAccountList({page:{current:this.pagerInfo1.current,row:this.pagerInfo1.row}});case 2:e=t.sent,e.code==f.StatusOK?(this.deleteDialogVisible=!0,null!=e.data?(this.tableData1=e.data,this.pagerInfo1.rowTotal=e.page.rowTotal,this.pagerInfo1.pageTotal=e.page.pageTotal,this.pictLoading=!1):(this.tableData1=e.data,this.pictLoading=!1)):this.$pigeon.MessageError(e.msg);case 4:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),doDetail:function(){var t=Object(c["a"])(Object(o["a"])().mark((function t(e){var a,n,i,s;return Object(o["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this.currentRow=e,this.transactionDialogVisible=!0,this.transactionDate&&0!==this.transactionDate.length||(a=new Date,n=new Date(a.getFullYear(),a.getMonth(),1),i=new Date(a.getFullYear(),a.getMonth()+1,0),this.transactionDate=[n.toISOString().split("T")[0],i.toISOString().split("T")[0]]),t.next=5,p["a"].historyList({login:e.login,platform:e.platform,startDate:this.transactionDate[0],endDate:this.transactionDate[1],page:{current:this.pagerInfo2.current,row:this.pagerInfo2.row}});case 5:s=t.sent,s.code==f.StatusOK?null!=s.data?(this.tableData2=s.data,this.pagerInfo2.rowTotal=s.page.rowTotal,this.pagerInfo2.pageTotal=s.page.pageTotal,this.pictLoading=!1):(this.tableData2=s.data,this.pictLoading=!1):this.$pigeon.MessageError(s.msg);case 7:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}(),handleTransactionClose:function(t){t()},handleTransactionPageChange:function(t){this.pagerInfo2.current=t,this.doDetail(this.currentRow)},handleClose:function(t){t()},handleTransactionSearch:function(){var t=Object(s["a"])(this.transactionDate,2),e=t[0],a=t[1],n=new Date(e),i=new Date(a);n.getMonth()===i.getMonth()&&n.getFullYear()===i.getFullYear()&&(this.pagerInfo2.current=1,this.doDetail(this.currentRow))}},mounted:function(){this.goTime(),this.getDateList(),this.getWalletList(),this.getPendingWithdrawAmount(),this.getAccountList(),this.divInit()},beforeDestroy:function(){this.getDate&&clearInterval(this.getDate)},watch:{"ChartSet.platform":function(){this.ChartSet.login="",this.getAccountList()}}},w=v,b=(a("051f"),a("a253"),a("2877")),C=Object(b["a"])(w,n,i,!1,null,"4796cde6",null);e["default"]=C.exports},3835:function(t,e,a){"use strict";function n(t){if(Array.isArray(t))return t}a.d(e,"a",(function(){return o}));a("a4d3"),a("e01a"),a("d28b"),a("14d9"),a("d3b7"),a("3ca3"),a("ddb0");function i(t,e){var a=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=a){var n,i,s,r,o=[],c=!0,l=!1;try{if(s=(a=a.call(t)).next,0===e){if(Object(a)!==a)return;c=!1}else for(;!(c=(n=s.call(a)).done)&&(o.push(n.value),o.length!==e);c=!0);}catch(t){l=!0,i=t}finally{try{if(!c&&null!=a["return"]&&(r=a["return"](),Object(r)!==r))return}finally{if(l)throw i}}return o}}var s=a("06c5");a("d9e2");function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function o(t,e){return n(t)||i(t,e)||Object(s["a"])(t,e)||r()}},"4df4":function(t,e,a){"use strict";var n=a("0366"),i=a("c65b"),s=a("7b0b"),r=a("9bdd"),o=a("e95a"),c=a("68ee"),l=a("07fa"),u=a("8418"),d=a("9a1f"),p=a("35a1"),m=Array;t.exports=function(t){var e=s(t),a=c(this),h=arguments.length,g=h>1?arguments[1]:void 0,f=void 0!==g;f&&(g=n(g,h>2?arguments[2]:void 0));var v,w,b,C,y,A,T=p(e),x=0;if(!T||this===m&&o(T))for(v=l(e),w=a?new this(v):m(v);v>x;x++)A=f?g(e[x],x):e[x],u(w,x,A);else for(w=a?new this:[],C=d(e,T),y=C.next;!(b=i(y,C)).done;x++)A=f?r(C,g,[b.value,x],!0):b.value,u(w,x,A);return w.length=x,w}},"6b75":function(t,e,a){"use strict";function n(t,e){(null==e||e>t.length)&&(e=t.length);for(var a=0,n=Array(e);a<e;a++)n[a]=t[a];return n}a.d(e,"a",(function(){return n}))},8868:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAArBJREFUaEPtWW1y6jAMjLlY2xsQLlS4EOEGTS+GO87EGVdI3vUHpcyQP++VJLZ2tfqI7IYnv9yT2z+8ADzag909sN/v3yOo3W63/f96vc7h98vlsvzb6+oCIBjtnPschmEzOGegc+4U7p/P52MrkCYAh8Ph6L0PhldfAUwLkCoAgPFNIs6574jMe/+W81AtkGIAButzMDboHGk8gA+xoXmuBkQRgHEcvwSLs/f+hIy29GWRMU3TB6tJGsA4jj5dtIatEiDTNFG2UQ9J5nsaH0Ep3pgZT0AAcmHv/UeUTLzXC9CaHIJMl4tZNwtAGi8XTGXFuhxpO0eY9m4WQGqgxkZvDxhyykrJBCCZ6MUw8kC8n8ZdTkomAMR+2CiAjBum1TT9XTOYqbwyHiwCVQAs+1YMyJRrsY6CNPVCmjx+pXNt8RRAbpNWAOveZjEURKqxoHogNcxCHjZnAMTOMyVKayM0iTAyugHAvJQE2ladUwOY9MoWLiQjBCCbwhgP5LKXJEvzdjEAVv+shFD6Reny3wMQXrjxOCL0RkLohTQYWyWEYinWmhj0WkZ8aAwEA7t7AC3Y2wPI48Ux8NcAUMuCatLdC1kuC6GWhalJFoDt27e1lZAA4uBLzpFy7Xru40YFwMqIyUJM+2yRhOS1ALM2QNpjCxkCYPVaSF7bZ6e1AdMJVnpgGXyhcQzDftYDK8NULCCWS++z7EMANVOCUmPl82iQIJ9vGqu0GivfryEMApBSyqW0FkDs90GxB7SGqzcIbUaK2nCYhTQ2leEuNT2zPGOM6amRYhUA2d6mhoViVDhevzkvQFMKjQgqBlCmUBZezgvi7+vhRvxTO4aqHtNXAYiWPO0Rk+aRtbqy52XVjFdnITZFxm5TO2INa9Se5lj7N0mIBXXP514A7skus/bTe+AHlN32T3NvoJUAAAAASUVORK5CYII="},a253:function(t,e,a){"use strict";a("b9d1")},a630:function(t,e,a){"use strict";var n=a("23e7"),i=a("4df4"),s=a("1c7e"),r=!s((function(t){Array.from(t)}));n({target:"Array",stat:!0,forced:r},{from:i})},b9d1:function(t,e,a){},cbb1:function(t,e,a){},fa1c:function(t,e,a){"use strict";function n(){var t=new Date,e=new Date(2025,6,28,0,0,0);return t>=e}a.d(e,"a",(function(){return n}))}}]);