ib-PammManager.ebabcb57.js 16 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["ib-PammManager"],{"1c45":function(t,a,s){"use strict";var e=s("ff2d");class i extends e["a"]{constructor(){super()}async MamSubsApprove(t={}){let a=await this.postAll("Host90","/mam/subs/approve",t);return a}async MamSubsApply(t={}){let a=await this.postAll("Host90","/mam/subs/apply",t);return a}async MamSubsInfo(t={}){let a=await this.postAll("Host90","/mam/subs/info",t);return a}async MamLeverageApplyAdd(t={}){let a=await this.postAll("Host90","/mam/leverage/apply/add",t);return a}async MamPwdResetAdd(t={}){let a=await this.postAll("Host90","/mam/pwd/reset/add",t);return a}async MamRepwdAdd(t={}){let a=await this.postAll("Host90","/mam/repwd/add",t);return a}async ChangeInvestorOassword(t={}){let a=await this.postAll("Host80","/account/settings/change/investor/password/add",t);return a}async MamList(t={}){let a=await this.postAll("Host90","/mam/list",t);return a}async MamApplyApprove(t={}){let a=await this.postAll("Host90","/mam/apply/approve",t);return a}async MamApplyAdd(t={}){let a=await this.postAll("Host90","/mam/apply/add",t);return a}async MamApplyData(t={}){let a=await this.postAll("Host90","/mam/apply/data",t);return a}async excludeShowLogin(t={}){let a=await this.postAll("Host80","/account/apply/exclude/show/login/type",t);return a}async TradePending(t={}){let a=await this.postAll("Host90","/trade/pending",t);return a}async TradePosition(t={}){let a=await this.postAll("Host90","/trade/position",t);return a}async TradeHistory(t={}){let a=await this.postAll("Host90","/trade/sharding/history",t);return a}async agentBalanceTransfer(t={}){let a=await this.postAll("Host90","/agent/balance/transfer/add/imd",t);return a}async agentBalanceTransferFrom(t={}){let a=await this.postAll("Host90","/agent/balance/transfer/from",t);return a}async agentTransferToList(t={}){let a=await this.postAll("Host90","/account/directAccount",t);return a}async CommissionApplyRecording(t={}){let a=await this.postAll("Host90","/custom/commission/apply/list",t);return a}async agentBalanceTransferRecording(t={}){let a=await this.postAll("Host90","/agent/balance/transfer/search/list",t);return a}async mamSubsApplyRecording(t={}){let a=await this.postAll("Host90","/mam/subs/apply/list",t);return a}async IbData(t={}){let a=await this.postAll("Host90","/ib/data",t);return a}async IbSubs(t={}){let a=await this.postAll("Host90","/ib/subs",t);return a}async accountSubs(t={}){let a=await this.postAll("Host90","/account/list",t);return a}async customerSubs(t={}){let a=await this.postAll("Host90","/custom/info/belongs",t);return a}async customerSubsList(t={}){let a=await this.postAll("Host90","/custom/info/belongs/list",t);return a}async customerSubsStatistics(t={}){let a=await this.postAll("Host90","/custom/info/belongs/statistics",t);return a}async customCommissionApply(t={}){let a=await this.postAll("Host90","/custom/commission/apply/add",t);return a}async customCommissionPoint(t={}){let a=await this.postAll("Host90","/custom/info/update/point",t);return a}async accountBelongChange(t={}){let a=await this.postAll("Host90","/account/belong/change/add",t);return a}async accountBelongChangeIb(t={}){let a=await this.postAll("Host90","/account/belong/change/agents",t);return a}async sysPointList(t={}){let a=await this.postAll("Host90","/sys/point/list",t);return a}async sysPointDelete(t={}){let a=await this.postAll("Host90","/sys/point/delete",t);return a}async sysPointUpdate(t={}){let a=await this.postAll("Host90","/sys/point/update",t);return a}async sysPointSingle(t={}){let a=await this.postAll("Host90","/sys/point/single",t);return a}async AgentPointChangeApply(t={}){let a=await this.postAll("Host90","/agent/point/change/apply",t);return a}async AgentPointChangeData(t={}){let a=await this.postAll("Host90","/agent/point/change/data",t);return a}async SysPointPoints(t={}){let a=await this.postAll("Host90","/sys/point/points",t);return a}async SysCentValid(t={}){let a=await this.postAll("Host90","/sys/point/centValid",t);return a}async SysPointAdd(t={}){let a=await this.postAll("Host90","/sys/point/add",t);return a}async getChartInfo(t={}){let a=await this.postAll("Host80","/index/chart/list",t);return a}async tradeDw(t={}){let a=await this.postAll("Host90","/trade/dw",t);return a}async tradeAccount(t={}){let a=await this.postAll("Host90","/trade/account",t);return a}async tradeAgentCommission(t={}){let a="/trade/agent/commission/vn",s=await this.postAll("Host90",a,t);return s}async tradeIb(t={}){let a=await this.postAll("Host90","/ib/report/new",t);return a}async tradePendingHistory(t={}){let a=await this.postAll("Host90","/trade/pending/history",t);return a}async tradePending(t={}){let a=await this.postAll("Host90","/trade/pending",t);return a}async tradePosition(t={}){let a=await this.postAll("Host90","/trade/position",t);return a}async tradeHistory(t={}){let a=await this.postAll("Host90","/trade/sharding/history",t);return a}async ibReportBalance(t={}){let a=await this.postAll("Host90","/ib/report/balance",t);return a}async tradeSymbolCategory(t={}){let a=await this.postAll("Host90","/trade/symbol/category",t);return a}async mamApplyList(t={}){let a=await this.postAll("Host90","/mam/apply/list",t);return a}async mamLeverageApplyList(t={}){let a=await this.postAll("Host90","/mam/leverage/apply/list",t);return a}async agentBalanceTransferList(t={}){let a=await this.postAll("Host90","/agent/balance/transfer/search/list",t);return a}async customCommissionApplyList(t={}){let a=await this.postAll("Host90","/custom/commission/apply/list",t);return a}async agentBelongChangeList(t={}){let a=await this.postAll("Host90","/account/belong/change/search/list",t);return a}async agentPointChangeList(t={}){let a=await this.postAll("Host90","/agent/point/change/list",t);return a}async agentWithdrawList(t={}){let a=await this.postAll("Host90","/finance/agent/withdraw/search/list",t);return a}async CustomRecordAccount(t={}){let a=await this.postAll("Host80","/custom/apply/list",t);return a}async reasonsRefusalList(t={}){let a=await this.postAll("Host80","/reasons/refusal/list",t);return a}async ibTree(t={}){let a=await this.postAll("Host90","/ib/tree",t);return a}async customUpdateIbInvalid(t={}){let a=await this.postAll("Host90","/custom/info/update/ibInvalid",t);return a}async CustomDropdown(t={}){let a=await this.postAll("Host80","/account/dropdown",t);return a}async accountCustomList(t={}){let a=await this.postAll("Host90","/account/custom/list",t);return a}async agentTransferApply(t={}){let a=await this.postAll("Host04","/agent/transfer/apply",t);return a}async agentTransCtaferApply(t={}){let a=await this.postAll("Host04","/agent/transfer/cta/apply",t);return a}async agentTransferList(t={}){let a=await this.postAll("Host04","/agent/transfer/list",t);return a}async mamApplyPammManagerValid(t={}){let a=await this.postAll("Host90","/mam/apply/pammManagerValid",t);return a}async mamApplyPammManagerLogins(t={}){let a=await this.postAll("Host90","/mam/apply/pamm/logins",t);return a}async mamApplyPammManagerAdd(t={}){let a=await this.postAll("Host90","/mam/apply/add",t);return a}async withdrawCancel(t={}){let a=await this.postAll("Host90","/finance/agent/withdraw/cancel",t);return a}async applyPercent(t={}){let a=await this.postAll("Host90","/pm/percent/change",t);return a}async followDealAgentSearchList(t={}){let a=await this.postAll("Host87","/follow/deal/agent/search/list",t);return a}async followDealAgentUpdate(t={}){let a=await this.postAll("Host87","/follow/deal/agent/update",t);return a}async customUpdateFollowPermissionDisplay(t={}){let a=await this.postAll("Host90","/custom/info/update/follow/permissionDisplay",t);return a}async marketAgentLinkList(t={}){let a=await this.postAll("Host90","/market/agent/link/list",t);return a}async pammListSubs(t={}){let a=await this.postAll("Host90","/pamm/subs",t);return a}async customLink(t={}){let a=await this.postAll("Host90","/custom/register/link/hash",t);return a}async customLinkCode(t={}){let a=await this.postAll("Host90","/custom/register/link/code",t);return a}async customRegisterLinkClue(t={}){let a=await this.postAll("Host90","/custom/register/link/clue",t);return a}async IbAgentSetting(t={}){let a=await this.postAll("Host90","/ib/agent/setting",t);return a}async loginTypeList(t={}){let a=await this.postAll("Host80","/login/type/search/list",t);return a}async tradeSalesHidden(t={}){let a=await this.postAll("Host90","/trade/hidden/rebate",t);return a}async getWebsdkLink1(t={}){let a=await this.postAll("Host04","/agent/withdraw/getWebsdkLink",t);return a}async agentHiddenPointSearchSingle(t={}){let a=await this.postAll("Host90","/agent/hidden/point/search/single",t);return a}async agentHiddenPointAdd(t={}){let a=await this.postAll("Host90","/agent/hidden/point/add",t);return a}async ibTreeForTransfer(t={}){let a=await this.postAll("Host90","/ib/tree",t);return a}async agentBalanceCommissionAdd(t={}){let a=await this.postAll("Host90","/agent/balance/commission/add",t);return a}async agentBalanceCommissionSearchList(t={}){let a=await this.postAll("Host90","/agent/balance/commission/search/list",t);return a}async getVietnamPoints(t={}){let a=await this.postAll("Host90","/agent/point/vn/points",t);return a}async saveVietnamPoints(t={}){let a=await this.postAll("Host90","/agent/point/vn/save",t);return a}async customLinkAdd(t={}){let a=await this.postAll("Host90","/agent/custom/link/add",t);return a}async customLinkSearchList(t={}){let a=await this.postAll("Host90","/agent/custom/link/search/list",t);return a}async customLinkTypes(t={}){let a=await this.postAll("Host90","/custom/register/link/types",t);return a}async agentApplyAddPoint(t={}){let a=await this.postAll("Host80","/agent/apply/add/point",t);return a}async realCustomerUpdatePoint(t={}){let a=await this.postAll("Host90","/custom/info/update/point",t);return a}async getLoginPoint(t={}){let a=await this.postAll("Host90","/custom/info/login/point",t);return a}async getRegisterLinkTypes(t={}){let a=await this.postAll("Host90","/custom/register/link/types",t);return a}}a["a"]=new i},"43df":function(t,a,s){"use strict";s("abe5")},"72dd":function(t,a,s){},"766b":function(t,a,s){"use strict";s("72dd")},abe5:function(t,a,s){},f03d:function(t,a,s){"use strict";s.r(a);var e=function(){var t=this,a=t._self._c;return a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.pictLoading,expression:"pictLoading"}],attrs:{id:"IB_OpenPammManager","element-loading-background":"rgba(43, 48, 67, 0.05)","element-loading-spinner":"el-icon-loading"}},[a("div",{staticClass:"crm-title-box"},[a("div",{staticClass:"tit"},[a("span",{directives:[{name:"t",rawName:"v-t",value:"Ib.PammManager.title",expression:"'Ib.PammManager.title'"}]})])]),a("div",{staticClass:"main-content"},[a("div",{staticClass:"box"},[a("p",{staticClass:"tit"}),a("p",{directives:[{name:"t",rawName:"v-t",value:"Ib.PammManager.tips4",expression:"'Ib.PammManager.tips4'"}],staticClass:"des"}),a("div",{staticClass:"b-card"},[a("el-row",{staticClass:"card-bottom"},[a("el-form",{ref:"params",staticClass:"form",attrs:{model:t.params,rules:t.rules,"label-position":"top"}},[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{prop:"accountId",label:t.$t("Ib.PammManager.accountId")}},[a("el-select",{staticClass:"crm_select_icon",attrs:{filterable:"",placeholder:t.$t("placeholder.choose")},on:{change:t.selectChange},model:{value:t.params.accountId,callback:function(a){t.$set(t.params,"accountId",a)},expression:"params.accountId"}},t._l(t.showData,(function(s,e){return a("el-option",{key:e,attrs:{label:s.login,value:s.login,disabled:s.login==t.params.ownerId||0!=s.equity}})})),1)],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{prop:"ownerId",label:t.$t("Ib.PammManager.ownerId")}},[a("el-select",{staticClass:"crm_select_icon",attrs:{filterable:"",placeholder:t.$t("placeholder.choose")},model:{value:t.params.ownerId,callback:function(a){t.$set(t.params,"ownerId",a)},expression:"params.ownerId"}},t._l(t.showData,(function(s,e){return a("el-option",{key:e,attrs:{label:s.login,value:s.login,disabled:s.login==t.params.accountId}})})),1)],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{prop:"percent",label:t.$t("Ib.PammManager.percent")}},[a("el-input",{staticClass:"m-input",attrs:{placeholder:t.$t("placeholder.input")},model:{value:t.params.percent,callback:function(a){t.$set(t.params,"percent","string"===typeof a?a.trim():a)},expression:"params.percent"}})],1)],1),a("el-col",{attrs:{span:24}},[a("el-form-item",[a("el-button",{directives:[{name:"t",rawName:"v-t",value:"Ib.PammManager.btn",expression:"'Ib.PammManager.btn'"}],staticClass:"s-btn",attrs:{type:"primary"},on:{click:function(a){return t.newAccount()}}})],1)],1)],1)],1)],1)]),a("div",{staticClass:"box"},[a("div",{staticStyle:{margin:"20px 0","font-size":"14px","line-height":"1.7"}},[a("div",{directives:[{name:"t",rawName:"v-t",value:"Ib.PammManager.tips2",expression:"'Ib.PammManager.tips2'"}],staticStyle:{"font-weight":"bold","margin-bottom":"5px"}})])])]),a("el-dialog",{attrs:{visible:t.dialogCheck,center:"","close-on-click-modal":!1,"show-close":!1,"custom-class":"dialog_header_w"},on:{"update:visible":function(a){t.dialogCheck=a}}},[t.dialogVisible?a("div",{staticClass:"dia-content"},[a("div",{staticClass:"icon"},[a("i",{staticClass:"iconfont iconchenggong"})]),a("div",{directives:[{name:"t",rawName:"v-t",value:"ApplicationDialog.Des1",expression:"'ApplicationDialog.Des1'"}],staticClass:"des1"}),a("div",{directives:[{name:"t",rawName:"v-t",value:"ApplicationDialog.Des12",expression:"'ApplicationDialog.Des12'"}],staticClass:"des2"}),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{directives:[{name:"t",rawName:"v-t",value:"Btn.Confirm",expression:"'Btn.Confirm'"}],attrs:{type:"primary"},on:{click:t.backIndex}}),a("el-button",{directives:[{name:"t",rawName:"v-t",value:"Btn.Cancel",expression:"'Btn.Cancel'"}],on:{click:t.backIndex}})],1)]):t._e(),t.dialogVisible?t._e():a("div",{staticClass:"dia-content"},[a("div",{staticClass:"icon"},[a("i",{staticClass:"iconfont iconjingshi"})]),a("div",{directives:[{name:"t",rawName:"v-t",value:"ApplicationDialog.Des43",expression:"'ApplicationDialog.Des43'"}],staticClass:"des1"}),a("div",{staticClass:"des2"},[t._v(t._s(t.RES))]),a("div",{directives:[{name:"t",rawName:"v-t",value:"ApplicationDialog.Des45",expression:"'ApplicationDialog.Des45'"}],staticClass:"des2"}),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{directives:[{name:"t",rawName:"v-t",value:"Btn.Confirm",expression:"'Btn.Confirm'"}],attrs:{type:"primary"},on:{click:t.closeDia}}),a("el-button",{directives:[{name:"t",rawName:"v-t",value:"Btn.Cancel",expression:"'Btn.Cancel'"}],on:{click:t.closeDia}})],1)])])],1)},i=[],n=(s("d9e2"),s("14d9"),s("1c45")),l=s("f121"),o=s.n(l);let{Code:r}=o.a;var c={name:"OpenPammManager",computed:{},data(){return{pictLoading:!1,flag:!1,RES:"",dialogCheck:!1,dialogVisible:!1,showData:[],params:{type:null,ownerId:null,accountId:null,percent:""},rules:{ownerId:[{required:!0,message:this.$i18n.t("vaildate.select.empty"),trigger:"change"}],accountId:[{required:!0,message:this.$i18n.t("vaildate.select.empty"),trigger:"change"}],percent:[{required:!0,validator:(t,a,s)=>{this.params.percent||0===a?/^[0-9]+([.]{1}[0-9]{1,2})?$/.test(a)?s():s(new Error("0.00-100.00")):s(new Error(this.$i18n.t("vaildate.input.empty")))},trigger:"blur"}]}}},methods:{selectChange(){this.$forceUpdate()},closeDia(){this.$refs["params"]&&this.$refs["params"].resetFields(),this.dialogCheck=!1,this.dialogVisible=!1},backIndex(){this.$refs["params"]&&this.$refs["params"].resetFields(),this.dialogCheck=!1,this.dialogVisible=!1,this.$router.push({path:"/ib/index"}).catch(t=>t)},async getMustData(){let t=await n["a"].mamApplyPammManagerLogins({});t.code==r.StatusOK?this.showData=t.data:this.$pigeon.MessageError(t.msg)},newAccount(){this.$refs["params"].validate(async t=>{if(!t)return!1;{if(this.flag)return;this.flag=!0;let t=await n["a"].mamApplyPammManagerAdd({...this.params});t.code==r.StatusOK?(this.dialogCheck=!0,this.dialogVisible=!0,this.flag=!1):(this.RES=t.msg,this.dialogCheck=!0,this.dialogVisible=!1,this.flag=!1)}})}},mounted(){this.params.type=Number(this.$route.query.type)?Number(this.$route.query.type):1,this.getMustData()}},p=c,d=(s("43df"),s("766b"),s("2877")),u=Object(d["a"])(p,e,i,!1,null,"6a917b46",null);a["default"]=u.exports}}]);