| 1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["ib-settings"],{"1c45":function(t,s,a){"use strict";var e=a("ff2d");class i extends e["a"]{constructor(){super()}async MamSubsApprove(t={}){let s=await this.postAll("Host90","/mam/subs/approve",t);return s}async MamSubsApply(t={}){let s=await this.postAll("Host90","/mam/subs/apply",t);return s}async MamSubsInfo(t={}){let s=await this.postAll("Host90","/mam/subs/info",t);return s}async MamLeverageApplyAdd(t={}){let s=await this.postAll("Host90","/mam/leverage/apply/add",t);return s}async MamPwdResetAdd(t={}){let s=await this.postAll("Host90","/mam/pwd/reset/add",t);return s}async MamRepwdAdd(t={}){let s=await this.postAll("Host90","/mam/repwd/add",t);return s}async ChangeInvestorOassword(t={}){let s=await this.postAll("Host80","/account/settings/change/investor/password/add",t);return s}async MamList(t={}){let s=await this.postAll("Host90","/mam/list",t);return s}async MamApplyApprove(t={}){let s=await this.postAll("Host90","/mam/apply/approve",t);return s}async MamApplyAdd(t={}){let s=await this.postAll("Host90","/mam/apply/add",t);return s}async MamApplyData(t={}){let s=await this.postAll("Host90","/mam/apply/data",t);return s}async excludeShowLogin(t={}){let s=await this.postAll("Host80","/account/apply/exclude/show/login/type",t);return s}async TradePending(t={}){let s=await this.postAll("Host90","/trade/pending",t);return s}async TradePosition(t={}){let s=await this.postAll("Host90","/trade/position",t);return s}async TradeHistory(t={}){let s=await this.postAll("Host90","/trade/sharding/history",t);return s}async agentBalanceTransfer(t={}){let s=await this.postAll("Host90","/agent/balance/transfer/add/imd",t);return s}async agentBalanceTransferFrom(t={}){let s=await this.postAll("Host90","/agent/balance/transfer/from",t);return s}async agentTransferToList(t={}){let s=await this.postAll("Host90","/account/directAccount",t);return s}async CommissionApplyRecording(t={}){let s=await this.postAll("Host90","/custom/commission/apply/list",t);return s}async agentBalanceTransferRecording(t={}){let s=await this.postAll("Host90","/agent/balance/transfer/search/list",t);return s}async mamSubsApplyRecording(t={}){let s=await this.postAll("Host90","/mam/subs/apply/list",t);return s}async IbData(t={}){let s=await this.postAll("Host90","/ib/data",t);return s}async IbSubs(t={}){let s=await this.postAll("Host90","/ib/subs",t);return s}async accountSubs(t={}){let s=await this.postAll("Host90","/account/list",t);return s}async customerSubs(t={}){let s=await this.postAll("Host90","/custom/info/belongs",t);return s}async customerSubsList(t={}){let s=await this.postAll("Host90","/custom/info/belongs/list",t);return s}async customerSubsStatistics(t={}){let s=await this.postAll("Host90","/custom/info/belongs/statistics",t);return s}async customCommissionApply(t={}){let s=await this.postAll("Host90","/custom/commission/apply/add",t);return s}async customCommissionPoint(t={}){let s=await this.postAll("Host90","/custom/info/update/point",t);return s}async accountBelongChange(t={}){let s=await this.postAll("Host90","/account/belong/change/add",t);return s}async accountBelongChangeIb(t={}){let s=await this.postAll("Host90","/account/belong/change/agents",t);return s}async sysPointList(t={}){let s=await this.postAll("Host90","/sys/point/list",t);return s}async sysPointDelete(t={}){let s=await this.postAll("Host90","/sys/point/delete",t);return s}async sysPointUpdate(t={}){let s=await this.postAll("Host90","/sys/point/update",t);return s}async sysPointSingle(t={}){let s=await this.postAll("Host90","/sys/point/single",t);return s}async AgentPointChangeApply(t={}){let s=await this.postAll("Host90","/agent/point/change/apply",t);return s}async AgentPointChangeData(t={}){let s=await this.postAll("Host90","/agent/point/change/data",t);return s}async SysPointPoints(t={}){let s=await this.postAll("Host90","/sys/point/points",t);return s}async SysCentValid(t={}){let s=await this.postAll("Host90","/sys/point/centValid",t);return s}async SysPointAdd(t={}){let s=await this.postAll("Host90","/sys/point/add",t);return s}async getChartInfo(t={}){let s=await this.postAll("Host80","/index/chart/list",t);return s}async tradeDw(t={}){let s=await this.postAll("Host90","/trade/dw",t);return s}async tradeAccount(t={}){let s=await this.postAll("Host90","/trade/account",t);return s}async tradeAgentCommission(t={},s=!1){let a="/trade/agent/commission";s&&(a+="/vn");let e=await this.postAll("Host90",a,t);return e}async tradeIb(t={}){let s=await this.postAll("Host90","/ib/report/new",t);return s}async tradePendingHistory(t={}){let s=await this.postAll("Host90","/trade/pending/history",t);return s}async tradePending(t={}){let s=await this.postAll("Host90","/trade/pending",t);return s}async tradePosition(t={}){let s=await this.postAll("Host90","/trade/position",t);return s}async tradeHistory(t={}){let s=await this.postAll("Host90","/trade/sharding/history",t);return s}async ibReportBalance(t={}){let s=await this.postAll("Host90","/ib/report/balance",t);return s}async tradeSymbolCategory(t={}){let s=await this.postAll("Host90","/trade/symbol/category",t);return s}async mamApplyList(t={}){let s=await this.postAll("Host90","/mam/apply/list",t);return s}async mamLeverageApplyList(t={}){let s=await this.postAll("Host90","/mam/leverage/apply/list",t);return s}async agentBalanceTransferList(t={}){let s=await this.postAll("Host90","/agent/balance/transfer/search/list",t);return s}async customCommissionApplyList(t={}){let s=await this.postAll("Host90","/custom/commission/apply/list",t);return s}async agentBelongChangeList(t={}){let s=await this.postAll("Host90","/account/belong/change/search/list",t);return s}async agentPointChangeList(t={}){let s=await this.postAll("Host90","/agent/point/change/list",t);return s}async agentWithdrawList(t={}){let s=await this.postAll("Host90","/finance/agent/withdraw/search/list",t);return s}async CustomRecordAccount(t={}){let s=await this.postAll("Host80","/custom/apply/list",t);return s}async reasonsRefusalList(t={}){let s=await this.postAll("Host80","/reasons/refusal/list",t);return s}async ibTree(t={}){let s=await this.postAll("Host90","/ib/tree",t);return s}async customUpdateIbInvalid(t={}){let s=await this.postAll("Host90","/custom/info/update/ibInvalid",t);return s}async CustomDropdown(t={}){let s=await this.postAll("Host80","/account/dropdown",t);return s}async accountCustomList(t={}){let s=await this.postAll("Host90","/account/custom/list",t);return s}async agentTransferApply(t={}){let s=await this.postAll("Host04","/agent/transfer/apply",t);return s}async agentTransCtaferApply(t={}){let s=await this.postAll("Host04","/agent/transfer/cta/apply",t);return s}async agentTransferList(t={}){let s=await this.postAll("Host04","/agent/transfer/list",t);return s}async mamApplyPammManagerValid(t={}){let s=await this.postAll("Host90","/mam/apply/pammManagerValid",t);return s}async mamApplyPammManagerLogins(t={}){let s=await this.postAll("Host90","/mam/apply/pamm/logins",t);return s}async mamApplyPammManagerAdd(t={}){let s=await this.postAll("Host90","/mam/apply/add",t);return s}async withdrawCancel(t={}){let s=await this.postAll("Host90","/finance/agent/withdraw/cancel",t);return s}async applyPercent(t={}){let s=await this.postAll("Host90","/pm/percent/change",t);return s}async followDealAgentSearchList(t={}){let s=await this.postAll("Host87","/follow/deal/agent/search/list",t);return s}async followDealAgentUpdate(t={}){let s=await this.postAll("Host87","/follow/deal/agent/update",t);return s}async customUpdateFollowPermissionDisplay(t={}){let s=await this.postAll("Host90","/custom/info/update/follow/permissionDisplay",t);return s}async marketAgentLinkList(t={}){let s=await this.postAll("Host90","/market/agent/link/list",t);return s}async pammListSubs(t={}){let s=await this.postAll("Host90","/pamm/subs",t);return s}async customLink(t={}){let s=await this.postAll("Host90","/custom/register/link/hash",t);return s}async customLinkCode(t={}){let s=await this.postAll("Host90","/custom/register/link/code",t);return s}async IbAgentSetting(t={}){let s=await this.postAll("Host90","/ib/agent/setting",t);return s}async loginTypeList(t={}){let s=await this.postAll("Host80","/login/type/search/list",t);return s}async tradeSalesHidden(t={}){let s=await this.postAll("Host90","/trade/hidden/rebate",t);return s}async getWebsdkLink1(t={}){let s=await this.postAll("Host04","/agent/withdraw/getWebsdkLink",t);return s}async agentHiddenPointSearchSingle(t={}){let s=await this.postAll("Host90","/agent/hidden/point/search/single",t);return s}async agentHiddenPointAdd(t={}){let s=await this.postAll("Host90","/agent/hidden/point/add",t);return s}async ibTreeForTransfer(t={}){let s=await this.postAll("Host90","/ib/tree",t);return s}async agentBalanceCommissionAdd(t={}){let s=await this.postAll("Host90","/agent/balance/commission/add",t);return s}async agentBalanceCommissionSearchList(t={}){let s=await this.postAll("Host90","/agent/balance/commission/search/list",t);return s}async getVietnamPoints(t={}){let s=await this.postAll("Host90","/agent/point/vn/points",t);return s}async saveVietnamPoints(t={}){let s=await this.postAll("Host90","/agent/point/vn/save",t);return s}async customLinkAdd(t={}){let s=await this.postAll("Host90","/agent/custom/link/add",t);return s}async customLinkSearchList(t={}){let s=await this.postAll("Host90","/agent/custom/link/search/list",t);return s}async customLinkTypes(t={}){let s=await this.postAll("Host90","/custom/register/link/types",t);return s}async agentApplyAddPoint(t={}){let s=await this.postAll("Host80","/agent/apply/add/point",t);return s}}s["a"]=new i},2828:function(t,s,a){"use strict";a.r(s);var e=function(){var t=this,s=t._self._c;return s("div",{attrs:{id:"ib_AccountSettings"}},[s("div",{staticClass:"crm-title-box"},[s("div",{staticClass:"tit"},[s("span",[t._v(" "+t._s(t.row.login)+" - "),1==t.row.type?s("span",{directives:[{name:"t",rawName:"v-t",value:"AccountType.ClassicAccount",expression:"'AccountType.ClassicAccount'"}]}):t._e(),2==t.row.type?s("span",{directives:[{name:"t",rawName:"v-t",value:"AccountType.SeniorAccount",expression:"'AccountType.SeniorAccount'"}]}):t._e(),7==t.row.type?s("span",{directives:[{name:"t",rawName:"v-t",value:"AccountType.StandardAccount",expression:"'AccountType.StandardAccount'"}]}):t._e(),8==t.row.type?s("span",{directives:[{name:"t",rawName:"v-t",value:"AccountType.CentAccount",expression:"'AccountType.CentAccount'"}]}):t._e()])]),s("div",{staticClass:"btn crm-cursor",on:{click:t.backIndex}},[s("i",{staticClass:"el-icon-back"}),s("span",{directives:[{name:"t",rawName:"v-t",value:"Ib.Settings.Title",expression:"'Ib.Settings.Title'"}]})])]),s("div",{staticClass:"main-content"},[s("el-tabs",{attrs:{"tab-position":"left"},on:{"tab-click":t.isTabs},model:{value:t.activeName,callback:function(s){t.activeName=s},expression:"activeName"}},[s("el-tab-pane",{attrs:{name:"1",label:t.$t("Ib.Settings.TitHang")}},[s("div",{staticClass:"search"},[s("span",{directives:[{name:"t",rawName:"v-t",value:"Ib.Settings.Hang",expression:"'Ib.Settings.Hang'"}],staticClass:"crm-cursor",class:{active:"1"==t.subs},on:{click:function(s){return t.tableSearch("1")}}}),s("span",{directives:[{name:"t",rawName:"v-t",value:"Ib.Settings.Undo",expression:"'Ib.Settings.Undo'"}],staticClass:"crm-cursor",class:{active:"2"==t.subs},on:{click:function(s){return t.tableSearch("2")}}})]),1==t.activeName&&1==t.subs?s("el-transfer",{attrs:{titles:t.titles1,filterable:"","filter-method":t.filterMethod,"filter-placeholder":t.$t("placeholder.input"),data:t.transData1},model:{value:t.transValue1,callback:function(s){t.transValue1=s},expression:"transValue1"}}):t._e(),1==t.activeName&&2==t.subs?s("el-transfer",{attrs:{filterable:"","filter-method":t.filterMethod,"filter-placeholder":t.$t("placeholder.input"),titles:t.titles2,data:t.transData},model:{value:t.transValue,callback:function(s){t.transValue=s},expression:"transValue"}}):t._e(),s("el-col",{attrs:{span:24}},[1==t.activeName&&1==t.subs?s("el-button",{directives:[{name:"t",rawName:"v-t",value:"Btn.Confirm",expression:"'Btn.Confirm'"}],staticClass:"s-btn",attrs:{type:"primary"},on:{click:t.applyOnto}}):t._e()],1),s("el-col",{attrs:{span:24}},[1==t.activeName&&2==t.subs?s("el-button",{directives:[{name:"t",rawName:"v-t",value:"Btn.Confirm",expression:"'Btn.Confirm'"}],staticClass:"s-btn",attrs:{type:"primary"},on:{click:t.applyCancel}}):t._e()],1)],1),s("el-tab-pane",{attrs:{name:"2",label:t.$t("Ib.Settings.TitLever")}},[2==t.activeName?s("el-form",{ref:"params",staticClass:"form",attrs:{model:t.params,rules:t.rules,"label-position":"top"}},[s("el-row",[s("el-col",{attrs:{span:12}},[s("el-form-item",{attrs:{prop:"",label:t.$t("Ib.Settings.OldLeverage")}},[s("el-input",{staticClass:"m-input",attrs:{disabled:""},model:{value:t.row.leverage,callback:function(s){t.$set(t.row,"leverage","string"===typeof s?s.trim():s)},expression:"row.leverage"}})],1)],1),s("el-col",{attrs:{span:12}},[s("el-form-item",{attrs:{prop:"newLeverage",label:t.$t("Ib.Settings.NewLeverage")}},[s("el-select",{staticClass:"crm_select_icon",attrs:{filterable:"",placeholder:t.$t("placeholder.choose")},model:{value:t.params.newLeverage,callback:function(s){t.$set(t.params,"newLeverage",s)},expression:"params.newLeverage"}},t._l(t.options,(function(t,a){return s("el-option",{key:a,attrs:{label:t,value:t}})})),1)],1)],1),s("el-col",{attrs:{span:24}},[s("el-form-item",[s("div",{staticClass:"tips"},[s("div",{directives:[{name:"t",rawName:"v-t",value:"Custom.Settings.Tips",expression:"'Custom.Settings.Tips'"}],staticClass:"title"}),s("div",{directives:[{name:"t",rawName:"v-t",value:"Custom.Settings.Tips1",expression:"'Custom.Settings.Tips1'"}]}),s("div",{directives:[{name:"t",rawName:"v-t",value:"Custom.Settings.Tips2",expression:"'Custom.Settings.Tips2'"}]}),s("div",{directives:[{name:"t",rawName:"v-t",value:"Custom.Settings.Tips3",expression:"'Custom.Settings.Tips3'"}]}),s("div",{directives:[{name:"t",rawName:"v-t",value:"Custom.Settings.Tips4",expression:"'Custom.Settings.Tips4'"}]})])])],1),s("el-col",{attrs:{span:24}},[s("el-form-item",[s("el-button",{directives:[{name:"t",rawName:"v-t",value:"Btn.Confirm",expression:"'Btn.Confirm'"}],staticClass:"s-btn",attrs:{type:"primary"},on:{click:t.updateLeverage}})],1)],1)],1)],1):t._e()],1),0==this.row.close?s("el-tab-pane",{attrs:{label:t.$t("Ib.Settings.TitUpdate"),name:"3"}},[s("div",{staticClass:"search"},[s("span",{directives:[{name:"t",rawName:"v-t",value:"Ib.Settings.LoginPwd",expression:"'Ib.Settings.LoginPwd'"}],staticClass:"crm-cursor",class:{active:"1"==t.pwd},on:{click:function(s){return t.tableSearchPwd("1")}}}),s("span",{directives:[{name:"t",rawName:"v-t",value:"Ib.Settings.InvestorPwd",expression:"'Ib.Settings.InvestorPwd'"}],staticClass:"crm-cursor",class:{active:"2"==t.pwd},on:{click:function(s){return t.tableSearchPwd("2")}}})]),3==t.activeName?s("el-form",{ref:"params1",staticClass:"form",attrs:{model:t.params1,rules:t.rules,"label-position":"top"}},[s("el-row",[s("el-col",{attrs:{span:12}},[s("el-form-item",{attrs:{prop:"oldPassword",label:1==t.pwd?t.$t("Ib.Settings.LoginPwdOld"):t.$t("Ib.Settings.InvestorPwdOld")}},[s("el-input",{staticClass:"m-input",attrs:{"show-password":"",autocomplete:"off",placeholder:1==t.pwd?t.$t("Ib.Settings.LoginPwdOld"):t.$t("Ib.Settings.InvestorPwdOld")},model:{value:t.params1.oldPassword,callback:function(s){t.$set(t.params1,"oldPassword","string"===typeof s?s.trim():s)},expression:"params1.oldPassword"}})],1)],1),s("el-col",{attrs:{span:12}},[s("el-form-item",{attrs:{prop:"newPassword",label:t.$t("Ib.Settings.NewPwd")}},[s("el-input",{staticClass:"m-input",attrs:{"show-password":"",autocomplete:"off",placeholder:t.$t("Ib.Settings.NewPwd")},model:{value:t.params1.newPassword,callback:function(s){t.$set(t.params1,"newPassword","string"===typeof s?s.trim():s)},expression:"params1.newPassword"}})],1)],1),s("el-col",{attrs:{span:12}},[s("el-form-item",[s("el-button",{directives:[{name:"t",rawName:"v-t",value:"Btn.Confirm",expression:"'Btn.Confirm'"}],staticClass:"s-btn",attrs:{type:"primary"},on:{click:t.updatePwd}})],1)],1),s("el-col",{attrs:{span:12}},[s("el-form-item",[s("ul",{staticClass:"pwd"},[s("li",{directives:[{name:"t",rawName:"v-t",value:"signup.form.rules.1st",expression:"'signup.form.rules.1st'"}],class:{fit:t.rule1}}),s("li",{directives:[{name:"t",rawName:"v-t",value:"signup.form.rules.2nd",expression:"'signup.form.rules.2nd'"}],class:{fit:t.rule2}}),s("li",{directives:[{name:"t",rawName:"v-t",value:"signup.form.rules.4rd",expression:"'signup.form.rules.4rd'"}],class:{fit:t.rule4}})])])],1)],1)],1):t._e()],1):t._e(),0==this.row.close?s("el-tab-pane",{attrs:{name:"4",label:t.$t("Ib.Settings.TitReset")}},[4==t.activeName?s("el-form",{ref:"params",staticClass:"form",attrs:{model:t.params,rules:t.rules,"label-position":"top"}},[s("el-row",[s("el-col",{attrs:{span:12}},[s("el-form-item",{attrs:{prop:"",label:t.$t("Ib.Settings.Login")}},[s("el-input",{staticClass:"m-input",attrs:{disabled:"",placeholder:t.$t("placeholder.input")},model:{value:t.row.login,callback:function(s){t.$set(t.row,"login","string"===typeof s?s.trim():s)},expression:"row.login"}})],1)],1),s("el-col",{attrs:{span:24}},[s("el-form-item",[s("el-button",{directives:[{name:"t",rawName:"v-t",value:"Btn.ResetPassword",expression:"'Btn.ResetPassword'"}],staticClass:"s-btn",attrs:{type:"primary"},on:{click:t.resetPwd}})],1)],1)],1)],1):t._e()],1):t._e()],1)],1),s("el-dialog",{attrs:{visible:t.dialogCheck,center:"","close-on-click-modal":!1,"show-close":!1,"custom-class":"dialog_header_w"},on:{"update:visible":function(s){t.dialogCheck=s}}},[t.dialogVisible?s("div",{staticClass:"dia-content"},[s("div",{staticClass:"icon"},[s("i",{staticClass:"iconfont iconchenggong"})]),s("div",{directives:[{name:"t",rawName:"v-t",value:"ApplicationDialog.Des1",expression:"'ApplicationDialog.Des1'"}],staticClass:"des1"}),s("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{directives:[{name:"t",rawName:"v-t",value:"Btn.Confirm",expression:"'Btn.Confirm'"}],attrs:{type:"primary"},on:{click:t.closeDia}}),s("el-button",{directives:[{name:"t",rawName:"v-t",value:"Btn.Cancel",expression:"'Btn.Cancel'"}],on:{click:t.closeDia}})],1)]):t._e(),t.dialogVisible?t._e():s("div",{staticClass:"dia-content"},[s("div",{staticClass:"icon"},[s("i",{staticClass:"iconfont iconjingshi"})]),s("div",{staticClass:"des1"},[t._v(t._s(t.RES))]),s("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{directives:[{name:"t",rawName:"v-t",value:"Btn.Confirm",expression:"'Btn.Confirm'"}],attrs:{type:"primary"},on:{click:t.closeDia}}),s("el-button",{directives:[{name:"t",rawName:"v-t",value:"Btn.Cancel",expression:"'Btn.Cancel'"}],on:{click:t.closeDia}})],1)])])],1)},i=[],n=(a("d9e2"),a("14d9"),a("e9f5"),a("7d54"),a("1c45")),l=a("f121"),r=a.n(l);let{Code:o}=r.a;var c={name:"Transfer",computed:{rule1:function(){return!!this.params1.newPassword&&/^.{8,15}$/.test(this.params1.newPassword)},rule2:function(){return/^(?=.*?[a-z])(?=.*?[A-Z]).*$/.test(this.params1.newPassword)},rule4:function(){return/^(?=.*[A-Z])(?=.*[a-z])(?=.*[0-9])(?=.*[~!@&%$^*./\\(\\)\\+\\=#_-])[A-Za-z0-9~!@&%$^*./\\(\\)\\+\\=#_-]{8,16}$/.test(this.params1.newPassword)}},data(){return{flag:!1,RES:"",dialogCheck:!1,dialogVisible:!1,activeName:"1",pwd:"1",subs:"1",titles1:[this.$i18n.t("Ib.Settings.NotHang"),this.$i18n.t("Ib.Settings.HaveHang")],titles2:[this.$i18n.t("Ib.Settings.NotUndo"),this.$i18n.t("Ib.Settings.HaveUndo")],transData:[],transValue:[],transData1:[],transValue1:[],row:{close:0},filterMethod(t,s){return s.key.indexOf(t)>-1},isSettings:0,options:[],params:{},params1:{oldPassword:"",newPassword:""},rules:{oldPassword:[{validator:(t,s,a)=>{/^(?=.*[A-Z])(?=.*[a-z])(?=.*[0-9])(?=.*[~!@&%$^*./\\(\\)\\+\\=#_-])[A-Za-z0-9~!@&%$^*./\\(\\)\\+\\=#_-]{8,16}$/.test(s)?a():a(new Error(this.$i18n.t("vaildate.password.format")))},trigger:"blur"}],newPassword:[{validator:(t,s,a)=>{/^(?=.*[A-Z])(?=.*[a-z])(?=.*[0-9])(?=.*[~!@&%$^*./\\(\\)\\+\\=#_-])[A-Za-z0-9~!@&%$^*./\\(\\)\\+\\=#_-]{8,16}$/.test(s)?a():a(new Error(this.$i18n.t("vaildate.password.format")))},trigger:"blur"}],password2:[{validator:(t,s,a)=>{""===s?a(new Error(this.$i18n.t("vaildate.password.again"))):s!==this.params.newPassword?a(new Error(this.$i18n.t("vaildate.password.same"))):a()},trigger:"blur"}],newLeverage:[{required:!0,message:this.$i18n.t("vaildate.leverage.empty"),trigger:"change"}]}}},methods:{closeDia(){this.$refs["params"]&&this.$refs["params"].resetFields(),this.$refs["params1"]&&this.$refs["params1"].resetFields(),this.dialogCheck=!1,this.dialogVisible=!1},backIndex(){this.$router.push({path:"/ib/index"}).catch(t=>t)},isTabs(t){this.activeName=t.name,1!=t.name&&5!=t.name||(this.getSubs(),this.getSubs1()),this.$refs["params"]&&this.$refs["params"].resetFields(),this.$refs["params1"]&&this.$refs["params1"].resetFields()},tableSearch(t){this.subs=t},async getMustData(){let t=await n["a"].MamApplyData({});t.code==o.StatusOK?t.data.forEach(t=>{t.type==this.row.type&&(this.options=t.leverage)}):this.$pigeon.MessageError(t.msg)},getSubs:async function(){let t=await n["a"].MamSubsInfo({mamId:Number(this.row.mamId),type:1});if(t.code==o.StatusOK){this.transData1=[];for(let s=0;s<t.data.length;s++)this.transData1.push({key:t.data[s],label:t.data[s]})}else this.$pigeon.MessageError(t.msg)},getSubs1:async function(){let t=await n["a"].MamSubsInfo({mamId:Number(this.row.mamId),type:2});if(t.code==o.StatusOK){this.transData=[];for(let s=0;s<t.data.length;s++)this.transData.push({key:t.data[s],label:t.data[s]})}else this.$pigeon.MessageError(t.msg)},applyOnto:async function(){if(this.flag)return;if(this.flag=!0,!this.transValue1||null==this.transValue1||!this.transValue1.length)return this.flag=!1,void this.$pigeon.MessageWarning(this.$i18n.t("placeholder.choose"));let t=await n["a"].MamSubsApply({mamId:Number(this.row.mamId),type:1,subs:this.transValue1});t.code==o.StatusOK?(this.dialogCheck=!0,this.dialogVisible=!0,this.flag=!1):(this.RES=t.msg,this.dialogCheck=!0,this.dialogVisible=!1,this.flag=!1)},applyCancel:async function(){if(this.flag)return;if(this.flag=!0,!this.transValue||null==this.transValue||!this.transValue.length)return this.flag=!1,void this.$pigeon.MessageWarning(this.$i18n.t("placeholder.choose"));let t=await n["a"].MamSubsApply({mamId:Number(this.row.mamId),type:2,subs:this.transValue});t.code==o.StatusOK?(this.dialogCheck=!0,this.dialogVisible=!0,this.flag=!1):(this.RES=t.msg,this.dialogCheck=!0,this.dialogVisible=!1,this.flag=!1)},resetPwd:async function(){if(this.flag)return;this.flag=!0;let t=await n["a"].MamPwdResetAdd({login:this.row.login});t.code==o.StatusOK?(this.dialogCheck=!0,this.dialogVisible=!0,this.flag=!1):(this.RES=t.msg,this.dialogCheck=!0,this.dialogVisible=!1,this.flag=!1)},updatePwd:async function(){this.$refs["params1"].validate(async t=>{if(!t)return!1;if(!this.flag)if(this.flag=!0,1==this.pwd){let t=await n["a"].MamRepwdAdd({login:this.row.login,...this.params1});t.code==o.StatusOK?(this.dialogCheck=!0,this.dialogVisible=!0,this.flag=!1):(this.RES=t.msg,this.dialogCheck=!0,this.dialogVisible=!1,this.flag=!1)}else{let t=await n["a"].ChangeInvestorOassword({login:this.row.login,...this.params1});t.code==o.StatusOK?(this.dialogCheck=!0,this.dialogVisible=!0,this.flag=!1):(this.RES=t.msg,this.dialogCheck=!0,this.dialogVisible=!1,this.flag=!1)}})},updateLeverage:async function(){this.$refs["params"].validate(async t=>{if(!t)return!1;{if(this.flag)return;this.flag=!0;let t=await n["a"].MamLeverageApplyAdd({login:this.row.login,oldLeverage:this.row.leverage,...this.params});t.code==o.StatusOK?(this.dialogCheck=!0,this.dialogVisible=!0,this.flag=!1):(this.RES=t.msg,this.dialogCheck=!0,this.dialogVisible=!1,this.flag=!1)}})},tableSearchPwd(t){this.pwd=t}},mounted(){this.row.login=this.$route.query.login,this.row.mamId=this.$route.query.id,this.row.leverage=this.$route.query.leverage,this.row.type=this.$route.query.type,this.row.close=this.$route.query.close||0,this.getMustData(),this.getSubs(),this.getSubs1()}},p=c,u=(a("38b4"),a("5ddf"),a("2877")),d=Object(u["a"])(p,e,i,!1,null,"4ea288e5",null);s["default"]=d.exports},"38b4":function(t,s,a){"use strict";a("843b")},"5ddf":function(t,s,a){"use strict";a("e80b")},"843b":function(t,s,a){},e80b:function(t,s,a){}}]);
|