| 1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["ib-custom-link-list"],{"1c45":function(t,e,s){"use strict";var a=s("ff2d");class n extends a["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",s=await this.postAll("Host90",e,t);return s}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 n},"33e7":function(t,e,s){},8e3:function(t,e,s){"use strict";s.r(e);var a=function(){var t=this,e=t._self._c;return e("div",{attrs:{id:"ib_CustomLinkList"}},[e("div",{staticClass:"crm-title-box"},[e("div",{staticClass:"tit"},[e("span",{directives:[{name:"t",rawName:"v-t",value:"Ib.Index.CreateLink",expression:"'Ib.Index.CreateLink'"}]})]),e("span",{staticClass:"btn crm-cursor",on:{click:t.openAddDialog}},[e("i",{staticClass:"el-icon-plus"}),e("span",{directives:[{name:"t",rawName:"v-t",value:"Ib.Index.CreateLink",expression:"'Ib.Index.CreateLink'"}]})])]),e("div",{staticClass:"main-content"},[e("div",{staticClass:"tab"},[e("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.pictLoading,expression:"pictLoading"}],staticClass:"crm_tab",staticStyle:{width:"100%"},attrs:{data:t.tableData,stripe:"","element-loading-background":"rgba(43, 48, 67, 0.1)","element-loading-spinner":"el-icon-loading"}},[e("el-table-column",{attrs:{prop:"name",align:"center","header-align":"center",label:t.$t("Ib.Custom.NameLabel")},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.name||"--"))]}}])}),e("el-table-column",{attrs:{prop:"link",align:"center",width:"400px","header-align":"center",label:t.$t("Ib.Index.Link")},scopedSlots:t._u([{key:"default",fn:function(s){return[e("div",{staticStyle:{display:"flex","align-items":"center","justify-content":"center",gap:"10px","white-space":"nowrap"}},[e("el-input",{staticStyle:{"max-width":"400px","white-space":"nowrap",overflow:"hidden","text-overflow":"ellipsis",flex:"1"},attrs:{readonly:"",size:"mini",id:"custom_link_"+s.row.id},model:{value:s.row.link,callback:function(e){t.$set(s.row,"link","string"===typeof e?e.trim():e)},expression:"scope.row.link"}}),e("div",{staticClass:"crm-cursor qr-code-icon",staticStyle:{"white-space":"nowrap","line-height":"28px",display:"flex","align-items":"center",padding:"0 8px"},on:{click:function(e){return t.showQrCodeDialog(s.row.link)}}},[e("svg",{staticStyle:{width:"18px",height:"18px",fill:"#409eff","vertical-align":"middle"},attrs:{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M3 3h8v8H3V3zm2 2v4h4V5H5zm8-2h8v8h-8V3zm2 2v4h4V5h-4zM3 13h8v8H3v-8zm2 2v4h4v-4H5zm13-2h3v2h-3v-2zm0 4h3v2h-3v-2zm-4-4h2v6h-2v-6zm4-8h2v2h-2V3zm0 4h2v2h-2V7zm-4 0h2v2h-2V7z"}})])]),e("span",{directives:[{name:"t",rawName:"v-t",value:"Ib.Index.Copy",expression:"'Ib.Index.Copy'"}],staticClass:"crm-cursor",staticStyle:{"white-space":"nowrap","line-height":"28px"},on:{click:function(e){return t.CopyShareLink("custom_link_"+s.row.id)}}})],1)]}}])}),e("el-table-column",{attrs:{prop:"linkValue",align:"center",width:"300px","header-align":"center",label:t.$t("Ib.Index.LinkValue")},scopedSlots:t._u([{key:"default",fn:function(s){return[s.row.linkValue?[e("div",{staticStyle:{display:"flex","align-items":"center","justify-content":"center",gap:"10px","white-space":"nowrap"}},[e("el-input",{staticStyle:{"max-width":"400px","white-space":"nowrap",overflow:"hidden","text-overflow":"ellipsis",flex:"1"},attrs:{readonly:"",size:"mini",id:"custom_linkValue_"+s.row.id},model:{value:s.row.linkValue,callback:function(e){t.$set(s.row,"linkValue","string"===typeof e?e.trim():e)},expression:"scope.row.linkValue"}}),e("span",{directives:[{name:"t",rawName:"v-t",value:"Ib.Index.Copy",expression:"'Ib.Index.Copy'"}],staticClass:"crm-cursor",staticStyle:{"white-space":"nowrap","line-height":"28px"},on:{click:function(e){return t.CopyShareLink("custom_linkValue_"+s.row.id)}}})],1)]:e("span",[t._v("--")])]}}])}),e("el-table-column",{attrs:{prop:"customNum",align:"center","header-align":"center",label:t.$t("Ib.Index.CustomNum")},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.customNum||"--"))]}}])}),e("el-table-column",{attrs:{prop:"comPoint",align:"center","header-align":"center",label:t.$t("AccountType.StandardAccount")},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(t.getGroupNameByLoginType(e.row.loginConfig,7)||"--"))]}}])}),e("el-table-column",{attrs:{prop:"hide",align:"center","header-align":"center",label:"ECN"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(t.getGroupNameByLoginType(e.row.loginConfig,2)||"--"))]}}])}),e("el-table-column",{attrs:{prop:"loginTypes",align:"center","header-align":"center",label:t.$t("AccountType.CentAccount")},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(t.getGroupNameByLoginType(e.row.loginConfig,8)||"--")+" ")]}}])})],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"},[e("div",{staticClass:"form-item"},[e("div",{staticClass:"form-label"},[t._v(t._s(t.$t("Ib.Custom.NameLabelColon")))]),e("el-input",{staticClass:"form-input",attrs:{size:"small",placeholder:t.$t("Ib.Custom.NameLabel")},model:{value:t.linkName,callback:function(e){t.linkName=e},expression:"linkName"}})],1),e("div",{staticClass:"form-section"},[e("div",{staticClass:"section-title"},[t._v(t._s(t.$t("Ib.Index.Spread5"))+":")]),e("div",{staticClass:"account-type-group"},[e("div",{staticClass:"account-type-label"},[t._v(" "+t._s(t.$t("AccountType.StandardAccount"))+" ")]),e("el-select",{staticClass:"account-select",attrs:{size:"small",placeholder:t.$t("placeholder.choose")},on:{change:function(e){return t.handleAccountTypeChange("standard","7")}},model:{value:t.accountTypeSettings.standard.selectedIndex,callback:function(e){t.$set(t.accountTypeSettings.standard,"selectedIndex",e)},expression:"accountTypeSettings.standard.selectedIndex"}},t._l(t.getAvailableSpreads("7"),(function(s,a){return e("el-option",{key:a,attrs:{label:t.getSpreadLabel(s),value:a}})})),1)],1),e("div",{staticClass:"account-type-group"},[e("div",{staticClass:"account-type-label"},[t._v(" "+t._s(t.$t("AccountType.SeniorAccount"))+" ")]),e("el-select",{staticClass:"account-select",attrs:{size:"small",placeholder:t.$t("placeholder.choose")},on:{change:function(e){return t.handleAccountTypeChange("ecn","2")}},model:{value:t.accountTypeSettings.ecn.selectedIndex,callback:function(e){t.$set(t.accountTypeSettings.ecn,"selectedIndex",e)},expression:"accountTypeSettings.ecn.selectedIndex"}},t._l(t.getAvailableSpreads("2"),(function(s,a){return e("el-option",{key:a,attrs:{label:t.getSpreadLabel(s),value:a}})})),1)],1),e("div",{staticClass:"account-type-group"},[e("div",{staticClass:"account-type-label"},[t._v(" "+t._s(t.$t("AccountType.CentAccount"))+" ")]),e("el-select",{staticClass:"account-select",attrs:{size:"small",placeholder:t.$t("placeholder.choose")},on:{change:function(e){return t.handleAccountTypeChange("cent","8")}},model:{value:t.accountTypeSettings.cent.selectedIndex,callback:function(e){t.$set(t.accountTypeSettings.cent,"selectedIndex",e)},expression:"accountTypeSettings.cent.selectedIndex"}},t._l(t.getAvailableSpreads("8"),(function(s,a){return e("el-option",{key:a,attrs:{label:t.getSpreadLabel(s),value:a}})})),1)],1)]),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(),t.link?e("div",{staticClass:"link"},[e("el-input",{attrs:{readonly:"",size:"mini",placeholder:"",id:"custom_link_dialog"},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_dialog")}}})])],1):t._e()])]),e("div",{staticClass:"account-adjust-notes-panel"},[e("div",{staticClass:"account-adjust-notes-section"},[e("div",{staticClass:"account-adjust-notes-title"},[e("i",{staticClass:"el-icon-info account-adjust-notes-title-icon"}),e("span",{staticClass:"account-adjust-notes-title-text"},[t._v(t._s(t.$t("Ib.Custom.AccountAdjustNotesSection1Title")))])]),e("ol",{staticClass:"account-adjust-notes-list"},[e("li",[t._v(t._s(t.$t("Ib.Custom.AccountAdjustNotesSection1Item1")))]),e("li",[t._v(t._s(t.$t("Ib.Custom.AccountAdjustNotesSection1Item2")))])])])]),e("div",{staticClass:"dialog-footer",staticStyle:{"text-align":"center",padding:"20px 0"},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.dialogLink=!1}}}),e("el-button",{directives:[{name:"t",rawName:"v-t",value:"Btn.Confirm",expression:"'Btn.Confirm'"}],attrs:{type:"primary",disabled:!t.link},on:{click:t.saveLink}})],1)]),e("el-dialog",{attrs:{visible:t.qrCodeDialogVisible,center:"",title:t.$t("Ib.Index.QrCode"),"custom-class":"dialog_header_w qr-code-dialog",width:"400px"},on:{"update:visible":function(e){t.qrCodeDialogVisible=e}}},[e("div",{staticClass:"qr-code-dialog-content"},[t.currentQrCodeLink?e("QrCode",{ref:"dialogQrCode",attrs:{text:t.currentQrCodeLink,width:300,height:300}}):t._e()],1),e("div",{staticStyle:{"margin-top":"16px","text-align":"center"}},[e("el-button",{directives:[{name:"t",rawName:"v-t",value:"Btn.item9",expression:"'Btn.item9'"}],attrs:{type:"primary"},on:{click:t.downloadDialogQrCode}})],1),e("div",{staticClass:"dialog-footer",staticStyle:{"text-align":"center",padding:"20px 0"},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.qrCodeDialogVisible=!1}}})],1)])],1)},n=[],i=(s("14d9"),s("e9f5"),s("910d"),s("f665"),s("7d54"),s("ab43"),s("fa1c")),l=s("1c45"),o=s("5d41"),r=s("f121"),c=s.n(r);let{Code:u,Host80:d}=c.a;var p={name:"CustomLinkList",components:{QrCode:o["a"]},data(){return{pictLoading:!1,dialogLink:!1,tableData:[],linkName:"",excludeList:[],excludeLists:[],excludeListVN:[],spreadList:[],excludeShowLoginTypes:[],selectedSpreadId:"",loginTypes:"",ibInvalid:"B0",link:"",linkValue:"",accountTypeSettings:{ecn:{selectedIndex:null,selectedItem:null,loginType:"2"},standard:{selectedIndex:null,selectedItem:null,loginType:"7"},cent:{selectedIndex:null,selectedItem:null,loginType:"8"}},accountTypeData:{ecn:[],standard:[],cent:[]},pagerInfo:{row:10,current:1,pageTotal:0,rowTotal:10},qrCodeDialogVisible:!1,currentQrCodeLink:""}},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},agentAccountSetting(){return JSON.parse(this.Session.Get("user",!0)).ibInfo.agentAccountSetting||0},lang(){return this.Session.Get("lang")},country(){return JSON.parse(this.Session.Get("user",!0)).customInfo.country}},methods:{isAfterJuly28(){return Object(i["a"])()},async openAddDialog(){await this.getCustomLinkTypes(),this.getAgentAccountSetting(),this.selectedSpreadId="",this.linkName="",this.link="",this.linkValue="",this.accountTypeSettings={ecn:{selectedIndex:null,selectedItem:null,loginType:"2"},standard:{selectedIndex:null,selectedItem:null,loginType:"7"},cent:{selectedIndex:null,selectedItem:null,loginType:"8"}},this.dialogLink=!0},async getCustomLinkTypes(){let t=await l["a"].customLinkTypes();if(t.code==u.StatusOK){const e=t.data||[];console.log(e,"123"),this.accountTypeData={ecn:e.filter(t=>2===t.loginType||"2"===t.loginType),standard:e.filter(t=>7===t.loginType||"7"===t.loginType),cent:e.filter(t=>8===t.loginType||"8"===t.loginType)}}else this.$pigeon.MessageError(t.msg),this.accountTypeData={ecn:[],standard:[],cent:[]}},getAvailableSpreads(t){return"2"===t?this.accountTypeData.ecn||[]:"7"===t?this.accountTypeData.standard||[]:"8"===t&&this.accountTypeData.cent||[]},handleAccountTypeChange(t,e){const s=this.accountTypeSettings[t],a=this.getAvailableSpreads(e);null!==s.selectedIndex&&void 0!==s.selectedIndex?s.selectedItem=a[s.selectedIndex]||null:s.selectedItem=null,this.$forceUpdate()},getSpreadLabel(t){return t.groupName||""},async getList(){this.pictLoading=!0;let t=await l["a"].customLinkSearchList({page:{current:this.pagerInfo.current,row:this.pagerInfo.row}});t.code==u.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)},getAgentAccountSetting(){if("VN"===this.country){const t=this.excludeLists.find(t=>"7"===t.value),e=this.excludeLists.find(t=>"8"===t.value),s=this.excludeLists.find(t=>"2"===t.value);this.excludeListVN=[t,e,s].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},async loginTypeList(){let t=await l["a"].loginTypeList({page:{current:1,row:100}});t.code==u.StatusOK?this.spreadList=t.data:this.$pigeon.MessageError(t.msg)},getValidAccountTypes(t,e){const s=this.spreadList.find(t=>t.id===e);let a={hide:"",commission:"",excludeShowLoginTypes:[]};if(!s)return a;const n=t.filter(t=>s.loginTypes.includes(t)),i=t.filter(t=>!s.loginTypes.includes(t)),l=this.excludeList.filter(t=>i.includes(t.value)).map(t=>t.label),o=this.excludeLists.filter(t=>!n.includes(t.value)).map(t=>t.value);return this.loginTypes=l.join("、"),{hide:s.hide,commission:s.comPoint,excludeShowLoginTypes:o,invalidLabels:l,invalidValues:i}},async getLink1(){const t=[],e=[];if(Object.keys(this.accountTypeSettings).forEach(s=>{const a=this.accountTypeSettings[s];a.selectedItem&&(t.push(a.loginType),e.push(a.selectedItem))}),0===t.length)return this.$pigeon.MessageWarning(this.$i18n.t("Ib.Index.Spread5")),void(this.link="");const s={loginConfig:e},a=await l["a"].customLinkCode(s);return a.code===u.StatusOK?(this.$pigeon.MessageOK(a.msg),a.data):(this.$pigeon.MessageError(a.msg),"")},async CreateLink(){if(!this.linkName)return void this.$pigeon.MessageWarning(this.$i18n.t("Ib.Custom.NameLabel"));const t=await this.getLink1();t&&(this.linkValue=t,this.link=`${d}/#/signup/${this.getInfoId}/${t}/${this.ibInvalid}`,await this.checkRegisterLinkClue(t))},async checkRegisterLinkClue(t){const e=await l["a"].customRegisterLinkClue({linkValue:t});if(e.code!==u.StatusOK)return;const s=e.data;!1!==s&&"false"!==s||this.$alert(this.$i18n.t("Ib.Custom.RegisterLinkRegionClueVu"),"",{confirmButtonText:this.$i18n.t("Btn.Confirm")})},async saveLink(){if(!this.linkName)return void this.$pigeon.MessageWarning(this.$i18n.t("Ib.Custom.NameLabel"));if(!this.link)return void this.$pigeon.MessageWarning(this.$i18n.t("Ib.Index.CreateLink"));const t=[];if(Object.keys(this.accountTypeSettings).forEach(e=>{const s=this.accountTypeSettings[e];s.selectedItem&&t.push(s.selectedItem)}),0===t.length)return void this.$pigeon.MessageWarning(this.$i18n.t("Ib.Index.Spread5"));const e=await l["a"].customLinkAdd({name:this.linkName,link:this.link,linkValue:this.linkValue,loginConfig:t});e.code===u.StatusOK?(this.$pigeon.MessageOK(e.msg),this.dialogLink=!1,this.linkName="",this.link="",this.linkValue="",this.excludeShowLoginTypes=[],this.selectedSpreadId="",this.accountTypeSettings={ecn:{selectedIndex:null,selectedItem:null,loginType:"2"},standard:{selectedIndex:null,selectedItem:null,loginType:"7"},cent:{selectedIndex:null,selectedItem:null,loginType:"8"}},this.getList()):this.$pigeon.MessageError(e.msg)},CopyShareLink(t){let e=document.getElementById(t);e&&(e.select(),document.execCommand("Copy"),this.$pigeon.MessageOK(this.$i18n.t("card.Msg.m8")))},downloadQrCode(){this.$refs.qrCode&&this.$refs.qrCode.downloadQrCode()},showQrCodeDialog(t){t&&(this.currentQrCodeLink=t,this.qrCodeDialogVisible=!0)},downloadDialogQrCode(){this.$refs.dialogQrCode&&this.$refs.dialogQrCode.downloadQrCode()},handleCurrentChange(t){this.pagerInfo.current=t,this.getList()},getGroupNameByLoginType(t,e){if(!t)return"";let s=t;if("string"===typeof t)try{s=JSON.parse(t)}catch(n){return""}if(!Array.isArray(s))return"";const a=s.find(t=>t.loginType===e||t.loginType===String(e)||String(t.loginType)===String(e));return a&&a.groupName||""},formatLoginTypes(t){if(!t)return"--";let e=t;if("string"===typeof t)try{e=JSON.parse(t)}catch(n){e=t.split(",").map(t=>t.trim())}Array.isArray(e)||(e=[e]);const s={1:this.$i18n.t("AccountType.ClassicAccount"),2:this.$i18n.t("AccountType.SeniorAccount"),3:this.$i18n.t("AccountType.AgencyAccount"),5:this.$i18n.t("AccountType.SpeedAccount"),6:this.$i18n.t("AccountType.SpeedAccount"),7:this.$i18n.t("AccountType.StandardAccount"),8:this.$i18n.t("AccountType.CentAccount")},a=e.map(t=>s[String(t)]||t).filter(Boolean);return a.length>0?a.join("、"):"--"}},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.getList()}},g=p,h=(s("b4e4"),s("2877")),m=Object(h["a"])(g,a,n,!1,null,"edfd1c0e",null);e["default"]=m.exports},ab43:function(t,e,s){"use strict";var a=s("23e7"),n=s("c65b"),i=s("59ed"),l=s("825a"),o=s("46c4"),r=s("c5cc"),c=s("9bdd"),u=s("2a62"),d=s("f99f"),p=s("c430"),g=!p&&d("map",TypeError),h=r((function(){var t=this.iterator,e=l(n(this.next,t)),s=this.done=!!e.done;if(!s)return c(t,this.mapper,[e.value,this.counter++],!0)}));a({target:"Iterator",proto:!0,real:!0,forced:p||g},{map:function(t){l(this);try{i(t)}catch(e){u(this,"throw",e)}return g?n(g,this,t):new h(o(this),{mapper:t})}})},b4e4:function(t,e,s){"use strict";s("33e7")},fa1c:function(t,e,s){"use strict";function a(){const t=new Date,e=new Date(2025,6,28,0,0,0);return t>=e}s.d(e,"a",(function(){return a}))}}]);
|