ib-customer.741e9c93.js 59 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["ib-customer"],{2934:function(e,t,a){},"784b":function(e,t,a){"use strict";a("c5f8")},c5f8:function(e,t,a){},d8a9:function(module,__webpack_exports__,__webpack_require__){"use strict";var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("14d9"),core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0__),core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("e9f5"),core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_1__),core_js_modules_es_iterator_find_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("f665"),core_js_modules_es_iterator_find_js__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(core_js_modules_es_iterator_find_js__WEBPACK_IMPORTED_MODULE_2__),core_js_modules_es_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("7d54"),core_js_modules_es_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(core_js_modules_es_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_3__),_service_ib__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("1c45"),_config_index__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("f121"),_config_index__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(_config_index__WEBPACK_IMPORTED_MODULE_5__),_views_global_Drawer__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("b4f6");let{Code:Code}=_config_index__WEBPACK_IMPORTED_MODULE_5___default.a;__webpack_exports__["a"]={name:"CustomerManagement",components:{Drawer:_views_global_Drawer__WEBPACK_IMPORTED_MODULE_6__["a"]},data(){return{subPoints:null,flag:!1,pictLoading:!1,openType:"",dialogInfoTradingAdd:!1,formInfoRow:{},search:{tag:0,platform:"MT4",cId:"",ibNo:"",login:"",name:"",email:"",date:[],startDate:"",endDate:"",belongsType:null},tableData:[],statistics:{unverifiedNum:0,unDepositNum:0,depositNum:0},dialogAllowIb:!1,dialogForm:{},dialogInfoTradingAddTc:!1,dialogInfoTradingAddTcAgree:!1,dialogExclusiveCommission:!1,exclusiveCommissionForm:{agentId:"",selectedPoint:"",pointOptions:[]},dialogVietnamDistribution:!1,vietnamDistributionTableData:[],currentVietnamAgentId:null,dialogAddAgent:!1,addAgentForm:{customerId:""},customerList:[],customerLoading:!1,commissionTemplateTableData:[],isFromApplyIb:!1,applyIbRowData:null,pagerInfo:{row:10,current:1,pageTotal:0,rowTotal:0},rules:{ibInvalid:[{required:!0,message:this.$i18n.t("placeholder.choose"),trigger:"change"}]}}},computed:{levelNum(){return JSON.parse(this.Session.Get("user",!0)).ibInfo.levelNum},fixedHide(){return JSON.parse(this.Session.Get("user",!0)).ibInfo.fixedHide},getDocumentary(){let e=JSON.parse(this.Session.Get("user",!0)).customInfo.cId.toString(),t=["830526","830527","720095","717687","701441"],a=!1;return-1!=t.indexOf(e)&&(a=!0),a},agentAccountSetting(){return JSON.parse(this.Session.Get("user",!0)).ibInfo.agentAccountSetting},lang(){return"en"==this.Session.Get("lang")&&document.body.clientWidth<1300},langs(){return"en"==this.Session.Get("lang")},country(){return JSON.parse(this.Session.Get("user",!0)).customInfo.country}},methods:{handleClick(e){console.log(e)},async getExclusiveCommissionData(row){try{let res=await _service_ib__WEBPACK_IMPORTED_MODULE_4__["a"].agentHiddenPointSearchSingle({agentIds:[row.id]});if(res.data.superPoints=eval("("+res.data.superPoints+")"),res.code==Code.StatusOK&&res.data){res.data.subPoints&&res.data.subPoints.length>0?res.data.subPoints=res.data.subPoints[0]:res.data.subPoints={point:Number(Object.keys(res.data.superPoints)[0]),value:0};const e=res.data.subPoints;this.subPoints=e,this.exclusiveCommissionForm.selectedPoint=e.value;const t=res.data.superPoints,a=[];this.$set(row,"subPoints",e),this.$set(row,"superPoints",t);for(const o in t){const e=t[o]||0;for(let t=0;t<=e;t++)a.push({label:t,value:t})}this.$set(row,"exclusiveCommissionOptions",a)}else this.$set(row,"exclusiveCommissionOptions",[]),this.$set(row,"subPoints",null),this.$set(row,"superPoints",null)}catch(error){console.error("获取专属手续费分配数据失败:",error),this.$set(row,"exclusiveCommissionOptions",[]),this.$set(row,"subPoints",null),this.$set(row,"superPoints",null)}},cancelExclusiveCommission(){this.dialogExclusiveCommission=!1,this.exclusiveCommissionForm.selectedPoint="",this.exclusiveCommissionForm.pointOptions=[]},async confirmExclusiveCommission(){try{const e={point:this.subPoints.point,value:this.exclusiveCommissionForm.selectedPoint},t=await _service_ib__WEBPACK_IMPORTED_MODULE_4__["a"].agentHiddenPointAdd({agentId:this.exclusiveCommissionForm.agentId,points:[e]});t.code==Code.StatusOK&&(this.cancelExclusiveCommission(),this.handleSearch())}catch(e){console.error("专属手续费分配失败:",e)}},selectChange(){this.$forceUpdate()},generateOptions(e){const t=[];for(let a=0;a<=e;a++)t.push(a);return t},handleValueChange(e,t){t&&void 0!==t.groupCategoryId&&this.vietnamDistributionTableData.forEach(a=>{a.groupCategoryId===t.groupCategoryId&&(a.valid=e)})},async saveVietnamDistribution(){try{const e=[],t={};this.vietnamDistributionTableData.forEach(e=>{const a=e.groupCategoryId;t[a]||(t[a]={groupCategoryId:a,commissions:[],rebates:[],valid:void 0!==e.valid?e.valid:1});const o="commissions"===e.dataType?t[a].commissions:t[a].rebates;void 0!==e.forex&&null!==e.forex&&o.push({symbolCategory:1,point:e.forex}),void 0!==e.index&&null!==e.index&&o.push({symbolCategory:2,point:e.index}),void 0!==e.metal&&null!==e.metal&&o.push({symbolCategory:3,point:e.metal}),void 0!==e.energy&&null!==e.energy&&o.push({symbolCategory:4,point:e.energy}),void 0!==e.energy2&&null!==e.energy2&&o.push({symbolCategory:5,point:e.energy2})}),Object.keys(t).forEach(a=>{const o=t[a];(o.commissions.length>0||o.rebates.length>0)&&e.push({groupCategoryId:o.groupCategoryId,commissions:o.commissions.length>0?o.commissions:void 0,rebates:o.rebates.length>0?o.rebates:void 0,valid:o.valid})});const a=await _service_ib__WEBPACK_IMPORTED_MODULE_4__["a"].saveVietnamPoints({agentId:this.currentVietnamAgentId,points:e});a.code==Code.StatusOK?(this.$pigeon.MessageOK(a.msg||this.$t("Ib.Custom.SaveSuccess")),this.dialogVietnamDistribution=!1):this.$pigeon.MessageError(a.msg||this.$t("Ib.Custom.SaveFailed"))}catch(e){console.error("保存越南分配数据失败:",e),this.$pigeon.MessageError(this.$t("Ib.Custom.SaveFailed"))}},async initVietnamDistributionData(e){console.log(e);try{const t=await _service_ib__WEBPACK_IMPORTED_MODULE_4__["a"].getVietnamPoints({agentId:e.id||e.agentId});if(t.code==Code.StatusOK&&t.data&&Array.isArray(t.data)){const e=[];t.data.forEach(t=>{const a=t.groupCategoryName||"--",o=void 0!==t.valid?t.valid:1;if(t.superRebates&&Array.isArray(t.superRebates)&&t.superRebates.length>0){const s={accountGroup:a,groupCategoryId:t.groupCategoryId,dataType:"rebates",type:t.rebateTypeName||"Point",valid:o,forex:0,index:0,metal:0,energy:0,energy2:0,energy2Max:0,forex1:0,index1:0,metal1:0,energy1:0};t.rebates.forEach(e=>{1===e.symbolCategory?s.forex=e.point||0:2===e.symbolCategory?s.index=e.point||0:3===e.symbolCategory?s.metal=e.point||0:4===e.symbolCategory?s.energy=e.point||0:5===e.symbolCategory&&(s.energy2=e.point||0)}),t.superRebates.forEach(e=>{1===e.symbolCategory?s.forex1=e.point||0:2===e.symbolCategory?s.index1=e.point||0:3===e.symbolCategory?s.metal1=e.point||0:4===e.symbolCategory?s.energy1=e.point||0:5===e.symbolCategory&&(s.energy2Max=e.point||0)}),s.forexOptions=this.generateOptions(s.forex1),s.indexOptions=this.generateOptions(s.index1),s.metalOptions=this.generateOptions(s.metal1),s.energyOptions=this.generateOptions(s.energy1),s.energy2Options=this.generateOptions(s.energy2Max),e.push(s)}if(t.superCommissions&&Array.isArray(t.superCommissions)&&t.superCommissions.length>0){const s={accountGroup:a,groupCategoryId:t.groupCategoryId,dataType:"commissions",type:t.commissionTypeName||"Commission",valid:o,forex:0,index:0,metal:0,energy:0,energy2:0,energy2Max:0,forex1:0,index1:0,metal1:0,energy1:0};t.commissions.forEach(e=>{1===e.symbolCategory?s.forex=e.point||0:2===e.symbolCategory?s.index=e.point||0:3===e.symbolCategory?s.metal=e.point||0:4===e.symbolCategory?s.energy=e.point||0:5===e.symbolCategory&&(s.energy2=e.point||0)}),t.superCommissions.forEach(e=>{1===e.symbolCategory?s.forex1=e.point||0:2===e.symbolCategory?s.index1=e.point||0:3===e.symbolCategory?s.metal1=e.point||0:4===e.symbolCategory?s.energy1=e.point||0:5===e.symbolCategory&&(s.energy2Max=e.point||0)}),s.forexOptions=this.generateOptions(s.forex1),s.indexOptions=this.generateOptions(s.index1),s.metalOptions=this.generateOptions(s.metal1),s.energyOptions=this.generateOptions(s.energy1),s.energy2Options=this.generateOptions(s.energy2Max),e.push(s)}}),this.vietnamDistributionTableData=e}else this.vietnamDistributionTableData=[],this.$pigeon.MessageError(t.msg||this.$t("Ib.Custom.GetDataFailed"))}catch(t){console.error("获取越南分配数据失败:",t),this.vietnamDistributionTableData=[],this.$pigeon.MessageError(this.$t("Ib.Custom.GetDataFailed"))}},vietnamTableSpanMethod({row:e,rowIndex:t,columnIndex:a}){if(0===a||1===a){const a=e.accountGroup;let o=0,s=t;for(let e=t;e>=0;e--){if(this.vietnamDistributionTableData[e].accountGroup!==a)break;s=e}if(s===t){for(let e=t;e<this.vietnamDistributionTableData.length;e++){if(this.vietnamDistributionTableData[e].accountGroup!==a)break;o++}return{rowspan:o,colspan:1}}return{rowspan:0,colspan:0}}return{rowspan:1,colspan:1}},handleCommandCustom(e){"adjustCommissions"==e.type?(this.formInfoRow.login=e.row.login,this.formInfoRow.commission=e.row.comPoint,this.formInfoRow.comPoint=e.row.comPoint,this.formInfoRow.oldHide=e.row.hide,this.formInfoRow.type=e.row.type,this.openType="adjustCommissions",this.dialogInfoTradingAdd=!0):"changeOwnership"==e.type&&(this.formInfoRow.login=e.row.login,this.formInfoRow.ibNo=e.row.ibNo,this.openType="changeOwnership",this.dialogInfoTradingAdd=!0)},handleCommandIB(e){"distribution"==e.type?(this.formInfoRow.ibNo=e.row.ibNo,this.formInfoRow.agentId=e.row.id,this.formInfoRow.pointType=e.row.pointType,this.formInfoRow.pointId=e.row.pointId,this.formInfoRow.pointPercent=e.row.pointPercent,this.openType="distribution",this.dialogInfoTradingAdd=!0):"vietnamDistribution"==e.type?(this.currentVietnamAgentId=e.row.id||e.row.agentId,this.dialogVietnamDistribution=!0,this.initVietnamDistributionData(e.row)):"SignalSourceDivision"==e.type?(this.formInfoRow.login=e.row.login,this.formInfoRow.ibNo=e.row.ibNo,this.openType="SignalSourceDivision",this.dialogInfoTradingAdd=!0):"ibAccount"==e.type?(this.formInfoRow.ibNo=e.row.ibNo,this.formInfoRow.id=e.row.id,this.formInfoRow.agentAccountSetting=e.row.agentAccountSetting||0,this.openType="ibAccount",this.dialogInfoTradingAdd=!0):"exclusiveCommission"==e.type&&(this.exclusiveCommissionForm.agentId=e.row.id,this.exclusiveCommissionForm.pointOptions=e.row.exclusiveCommissionOptions||[],this.dialogExclusiveCommission=!0)},async handleCommandAllow(e){"allow"==e.type?(this.dialogForm.cId=e.row.cId,this.dialogForm.id=e.row.id,this.dialogForm.name=e.row.name,this.dialogForm.email=e.row.email,this.dialogForm.ibInvalid=e.row.ibInvalid,this.dialogAllowIb=!0):"documentary"==e.type?(this.formInfoRow.cId=e.row.cId,this.formInfoRow.id=e.row.id,this.formInfoRow.permissionDisplay=e.row.permissionDisplay,this.openType="documentary",this.dialogInfoTradingAdd=!0):"account"==e.type?(this.formInfoRow.cId=e.row.cId,this.formInfoRow.id=e.row.id,this.formInfoRow.excludeShowLoginTypes=e.row.excludeShowLoginTypes,this.openType="account",this.dialogInfoTradingAdd=!0):"adjustCommissions1"==e.type?(this.formInfoRow.id=e.row.id,this.formInfoRow.commission=e.row.comPoint,this.formInfoRow.oldHide=e.row.hide,this.openType="adjustCommissions1",this.dialogInfoTradingAdd=!0):"applyIb"==e.type&&(this.isFromApplyIb=!0,this.applyIbRowData=e.row,this.addAgentForm.customerId=e.row.id,this.dialogAddAgent=!0,this.commissionTemplateTableData=[],await this.initCommissionTemplateData(e.row.id))},handleCommandFllow(e){"DisplaySettings"==e.type&&(this.formInfoRow.dealLogin=e.row.dealLogin,this.formInfoRow.id=e.row.id,this.formInfoRow.permissionDisplay=e.row.permissionDisplay,this.formInfoRow.ibNo=e.row.pIbNo,this.formInfoRow.agentDistributionRatio=null==e.row.agentDistributionRatio?"":e.row.agentDistributionRatio.toString(),this.openType="DisplaySettings",this.dialogInfoTradingAddTc=!0)},dialogInfoTradingAddCanle(){this.dialogInfoTradingAddTc=!1,this.dialogInfoTradingAddTcAgree=!1},dialogInfoTradingAddOpen(){this.dialogInfoTradingAddTcAgree?(this.dialogInfoTradingAddTc=!1,this.dialogInfoTradingAdd=!0,this.dialogInfoTradingAddTcAgree=!1):this.$pigeon.MessageWarning(this.$i18n.t("Msg.Read"))},chooseLang(e){console.log(e),e!=this.search.tag&&(this.flag||(this.flag=!0,this.pagerInfo.current=1,this.search.tag=e,this.search.cId="",this.search.ibNo="",this.search.login="",this.search.name="",this.search.email="",this.search.date=[],this.search.startDate="",this.search.endDate="",this.search.platform=1==e?"MT4":"",3==e?(this.search.belongsType=null,this.getStatistics()):this.search.belongsType=null))},chooseBelongsType(e){this.pagerInfo.current=1,this.$nextTick(()=>{this.search.belongsType==e?this.search.belongsType=null:this.search.belongsType=e,this.handleSearch()})},async getStatistics(){try{let e=await _service_ib__WEBPACK_IMPORTED_MODULE_4__["a"].customerSubsStatistics({});e.code==Code.StatusOK&&e.data&&(this.statistics={unverifiedNum:e.data.unverifiedNum||0,unDepositNum:e.data.unDepositNum||0,depositNum:e.data.depositNum||0})}catch(e){console.error("获取统计数据失败:",e)}},toNewTemplate(){this.openType="addTemplate",this.dialogInfoTradingAdd=!0},closeDiaAdd(){this.dialogInfoTradingAdd=!1,this.editor=""},closeAdd(e){this.dialogInfoTradingAdd=e},confirmToReload(){this.dialogInfoTradingAdd=!1,this.handleSearch()},toAddTemplate(){this.toNewTemplate()},async toAgree(){this.$refs["dialogForm"].validate(async e=>{if(!e)return!1;{if(this.flag)return;this.flag=!0;let e=await _service_ib__WEBPACK_IMPORTED_MODULE_4__["a"].customUpdateIbInvalid({id:this.dialogForm.id,ibInvalid:Number(this.dialogForm.ibInvalid)});e.code==Code.StatusOK?(this.$pigeon.MessageOK(this.$i18n.t("Msg.ModifySuccess")),this.Cancel(),this.handleSearch(),this.flag=!1):(this.$pigeon.MessageError(e.msg),this.flag=!1)}})},Cancel(){this.$refs["dialogForm"]&&this.$refs["dialogForm"].resetFields(),this.dialogAllowIb=!1},handleSearch(){this.pagerInfo.current=1,this.searchFunc()},async searchFunc(){if(this.pictLoading=!0,null==this.search.date||0==this.search.date.length?(this.search.startDate="",this.search.endDate=""):(this.search.startDate=this.search.date[0],this.search.endDate=this.search.date[1]),1==this.search.tag){this.search.platform=this.search.platform?this.search.platform:"MT4";let e=await _service_ib__WEBPACK_IMPORTED_MODULE_4__["a"].accountSubs({...this.search,page:{current:this.pagerInfo.current,row:this.pagerInfo.row}});e.code==Code.StatusOK?(e.data?(this.tableData=e.data,this.pagerInfo.rowTotal=e.page.rowTotal,this.pagerInfo.pageTotal=e.page.pageTotal):this.tableData=[],this.$pigeon.MessageOK(this.$i18n.t("Msg.SearchSuccess")),this.flag=!1):(this.$pigeon.MessageError(e.msg),this.flag=!1),this.pictLoading=!1}else if(2==this.search.tag){this.search.platform="";let e=await _service_ib__WEBPACK_IMPORTED_MODULE_4__["a"].IbSubs({...this.search,page:{current:this.pagerInfo.current,row:this.pagerInfo.row}});e.code==Code.StatusOK?(e.data?(this.tableData=e.data,this.pagerInfo.rowTotal=e.page.rowTotal,this.pagerInfo.pageTotal=e.page.pageTotal):(this.tableData=[],this.pagerInfo.rowTotal=0),this.$pigeon.MessageOK(this.$i18n.t("Msg.SearchSuccess")),this.flag=!1):(this.$pigeon.MessageError(e.msg),this.flag=!1),this.pictLoading=!1}else if(3==this.search.tag){this.search.platform="";let e={...this.search};e.belongsType||delete e.belongsType;let t=await _service_ib__WEBPACK_IMPORTED_MODULE_4__["a"].customerSubs({...e,page:{current:this.pagerInfo.current,row:this.pagerInfo.row}});t.code==Code.StatusOK?(t.data?(this.tableData=t.data,this.pagerInfo.rowTotal=t.page.rowTotal,this.pagerInfo.pageTotal=t.page.pageTotal):this.tableData=[],this.$pigeon.MessageOK(this.$i18n.t("Msg.SearchSuccess")),this.flag=!1):(this.$pigeon.MessageError(t.msg),this.flag=!1),this.pictLoading=!1}else if(4==this.search.tag){this.search.platform="";let e=await _service_ib__WEBPACK_IMPORTED_MODULE_4__["a"].followDealAgentSearchList({...this.search,page:{current:this.pagerInfo.current,row:this.pagerInfo.row}});e.code==Code.StatusOK?(e.data?(this.tableData=e.data,this.pagerInfo.rowTotal=e.page.rowTotal,this.pagerInfo.pageTotal=e.page.pageTotal):this.tableData=[],this.$pigeon.MessageOK(this.$i18n.t("Msg.SearchSuccess")),this.flag=!1):(this.$pigeon.MessageError(e.msg),this.flag=!1),this.pictLoading=!1}},handleSizeChange(e){this.pagerInfo.row=e,this.searchFunc()},handleCurrentChange(e){this.pagerInfo.current=e,this.searchFunc()},handleCloseAddAgentDialog(){this.dialogAddAgent=!1,this.isFromApplyIb=!1,this.applyIbRowData=null,this.addAgentForm.customerId="",this.commissionTemplateTableData=[]},async openAddAgentDialog(){this.isFromApplyIb=!1,this.applyIbRowData=null,this.dialogAddAgent=!0,this.addAgentForm.customerId="",this.customerList=[],this.commissionTemplateTableData=[],await this.loadCustomerList()},async loadCustomerList(e=""){this.customerLoading=!0;try{let t=await _service_ib__WEBPACK_IMPORTED_MODULE_4__["a"].customerSubsList({ibStatus:1,name:e||""});t.code==Code.StatusOK?this.customerList=t.data||[]:(this.$pigeon.MessageError(t.msg),this.customerList=[])}catch(t){console.error("加载客户列表失败:",t),this.customerList=[]}finally{this.customerLoading=!1}},async searchCustomer(e){""!==e?await this.loadCustomerList(e):await this.loadCustomerList()},async handleCustomerChange(e){console.log(e),e?await this.initCommissionTemplateData(e):this.commissionTemplateTableData=[]},async initCommissionTemplateData(e){try{const t=await _service_ib__WEBPACK_IMPORTED_MODULE_4__["a"].getVietnamPoints({customId:e});if(t.code==Code.StatusOK&&t.data&&Array.isArray(t.data)){const e=[];t.data.forEach(t=>{const a=t.groupCategoryName||"--",o=void 0!==t.valid?t.valid:1;if(t.superRebates&&Array.isArray(t.superRebates)&&t.superRebates.length>0){const s={accountGroup:a,groupCategoryId:t.groupCategoryId,dataType:"rebates",type:t.rebateTypeName||"Point",valid:o,forex:0,index:0,metal:0,energy:0,energy2:0,energy2Max:0,forex1:0,index1:0,metal1:0,energy1:0};t.rebates.forEach(e=>{1===e.symbolCategory?s.forex=e.point||0:2===e.symbolCategory?s.index=e.point||0:3===e.symbolCategory?s.metal=e.point||0:4===e.symbolCategory?s.energy=e.point||0:5===e.symbolCategory&&(s.energy2=e.point||0)}),t.superRebates.forEach(e=>{1===e.symbolCategory?s.forex1=e.point||0:2===e.symbolCategory?s.index1=e.point||0:3===e.symbolCategory?s.metal1=e.point||0:4===e.symbolCategory?s.energy1=e.point||0:5===e.symbolCategory&&(s.energy2Max=e.point||0)}),s.forexOptions=this.generateOptions(s.forex1),s.indexOptions=this.generateOptions(s.index1),s.metalOptions=this.generateOptions(s.metal1),s.energyOptions=this.generateOptions(s.energy1),s.energy2Options=this.generateOptions(s.energy2Max),e.push(s)}if(t.superCommissions&&Array.isArray(t.superCommissions)&&t.superCommissions.length>0){const s={accountGroup:a,groupCategoryId:t.groupCategoryId,dataType:"commissions",type:t.commissionTypeName||"Commission",valid:o,forex:0,index:0,metal:0,energy:0,energy2:0,energy2Max:0,forex1:0,index1:0,metal1:0,energy1:0};t.commissions.forEach(e=>{1===e.symbolCategory?s.forex=e.point||0:2===e.symbolCategory?s.index=e.point||0:3===e.symbolCategory?s.metal=e.point||0:4===e.symbolCategory?s.energy=e.point||0:5===e.symbolCategory&&(s.energy2=e.point||0)}),t.superCommissions.forEach(e=>{1===e.symbolCategory?s.forex1=e.point||0:2===e.symbolCategory?s.index1=e.point||0:3===e.symbolCategory?s.metal1=e.point||0:4===e.symbolCategory?s.energy1=e.point||0:5===e.symbolCategory&&(s.energy2Max=e.point||0)}),s.forexOptions=this.generateOptions(s.forex1),s.indexOptions=this.generateOptions(s.index1),s.metalOptions=this.generateOptions(s.metal1),s.energyOptions=this.generateOptions(s.energy1),s.energy2Options=this.generateOptions(s.energy2Max),e.push(s)}}),this.commissionTemplateTableData=e}else this.commissionTemplateTableData=[],this.$pigeon.MessageError(t.msg||this.$t("Ib.Custom.GetDataFailed"))}catch(t){console.error("获取佣金模板数据失败:",t),this.commissionTemplateTableData=[],this.$pigeon.MessageError(this.$t("Ib.Custom.GetDataFailed"))}},handleCommissionTemplateValueChange(e,t){t&&void 0!==t.groupCategoryId&&this.commissionTemplateTableData.forEach(a=>{a.groupCategoryId===t.groupCategoryId&&(a.valid=e)})},commissionTemplateTableSpanMethod({row:e,rowIndex:t,columnIndex:a}){if(0===a||1===a){const a=e.accountGroup;let o=0,s=t;for(let e=t;e>=0;e--){if(this.commissionTemplateTableData[e].accountGroup!==a)break;s=e}if(s===t){for(let e=t;e<this.commissionTemplateTableData.length;e++){if(this.commissionTemplateTableData[e].accountGroup!==a)break;o++}return{rowspan:o,colspan:1}}return{rowspan:0,colspan:0}}return{rowspan:1,colspan:1}},buildCommissionTemplatePoints(){const e=[],t={};return this.commissionTemplateTableData.forEach(e=>{const a=e.groupCategoryId;t[a]||(t[a]={groupCategoryId:a,commissions:[],rebates:[],valid:void 0!==e.valid?e.valid:1});const o="commissions"===e.dataType?t[a].commissions:t[a].rebates;void 0!==e.forex&&null!==e.forex&&o.push({symbolCategory:1,point:e.forex}),void 0!==e.index&&null!==e.index&&o.push({symbolCategory:2,point:e.index}),void 0!==e.metal&&null!==e.metal&&o.push({symbolCategory:3,point:e.metal}),void 0!==e.energy&&null!==e.energy&&o.push({symbolCategory:4,point:e.energy}),void 0!==e.energy2&&null!==e.energy2&&o.push({symbolCategory:5,point:e.energy2})}),Object.keys(t).forEach(a=>{const o=t[a];(o.commissions.length>0||o.rebates.length>0)&&e.push({groupCategoryId:o.groupCategoryId,commissions:o.commissions.length>0?o.commissions:void 0,rebates:o.rebates.length>0?o.rebates:void 0,valid:o.valid})}),e},async saveCommissionTemplate(){if(this.addAgentForm.customerId)try{const e=this.buildCommissionTemplatePoints(),t=await _service_ib__WEBPACK_IMPORTED_MODULE_4__["a"].saveVietnamPoints({customId:this.addAgentForm.customerId,points:e});return t.code==Code.StatusOK?(this.$pigeon.MessageOK(t.msg||this.$t("Ib.Custom.SaveSuccess")),!0):(this.$pigeon.MessageError(t.msg||this.$t("Ib.Custom.SaveFailed")),!1)}catch(e){return console.error("保存佣金模板数据失败:",e),this.$pigeon.MessageError(this.$t("Ib.Custom.SaveFailed")),!1}else this.$pigeon.MessageWarning(this.$t("Ib.Custom.PleaseSelectCustomer"))},async confirmAddAgent(){let e,t;if(this.isFromApplyIb){if(!this.applyIbRowData)return void this.$pigeon.MessageWarning(this.$t("Ib.Custom.CustomerNotExist"));e=this.applyIbRowData.id,t=this.applyIbRowData.cId}else{if(!this.addAgentForm.customerId)return void this.$pigeon.MessageWarning(this.$i18n.t("placeholder.choose"));const a=this.customerList.find(e=>e.id===this.addAgentForm.customerId);if(!a)return void this.$pigeon.MessageWarning(this.$t("Ib.Custom.CustomerNotFound"));e=a.id,t=a.cId}try{const a=this.buildCommissionTemplatePoints(),o=await _service_ib__WEBPACK_IMPORTED_MODULE_4__["a"].agentApplyAddPoint({customId:e,cId:t,points:a});o.code==Code.StatusOK?(this.$pigeon.MessageOK(o.msg||this.$t("Ib.Custom.SubmitSuccess")),this.dialogAddAgent=!1,this.isFromApplyIb=!1,this.applyIbRowData=null,this.handleSearch()):this.$pigeon.MessageError(o.msg||this.$t("Ib.Custom.SubmitFailed"))}catch(a){console.error("新增代理失败:",a),this.$pigeon.MessageError(this.$t("Ib.Custom.SubmitFailed"))}}},mounted(){this.search.tag=this.$route.query.type?Number(this.$route.query.type):3,3==this.search.tag&&(this.search.belongsType=null,this.getStatistics())},watch:{"search.tag":function(e){this.$refs["search"]&&(this.search.tag=e),this.$router.push({path:"/ib/customer",query:{type:e}}).catch(e=>e),3==e&&this.getStatistics(),this.pagerInfo.current=1,this.$nextTick(()=>{this.searchFunc()})}}}},e4bf:function(e,t,a){"use strict";a("eed3")},e7ad:function(e,t,a){"use strict";a.r(t);var o=function(){var e=this,t=e._self._c;return t("div",{attrs:{id:"ib_CustomerManagement"}},[t("div",{staticClass:"crm-title-box"},[t("div",{staticClass:"tit"},[t("span",{directives:[{name:"t",rawName:"v-t",value:"Ib.Custom.Title1",expression:"'Ib.Custom.Title1'"}]})])]),t("div",{staticClass:"main-content"},[t("div",{staticClass:"chooseTab"},[t("div",{staticClass:"chooseLang"},[t("span",{directives:[{name:"t",rawName:"v-t",value:"Ib.Custom.Manage3",expression:"'Ib.Custom.Manage3'"}],staticClass:"crm-cursor",class:{active:3==e.search.tag},on:{click:function(t){return e.chooseLang(3)}}},[e._v("3")]),t("span",{directives:[{name:"t",rawName:"v-t",value:"Ib.Custom.Manage1",expression:"'Ib.Custom.Manage1'"}],staticClass:"crm-cursor",class:{active:1==e.search.tag},on:{click:function(t){return e.chooseLang(1)}}},[e._v("1")]),t("span",{directives:[{name:"t",rawName:"v-t",value:"Ib.Custom.Manage2",expression:"'Ib.Custom.Manage2'"}],staticClass:"crm-cursor",class:{active:2==e.search.tag},on:{click:function(t){return e.chooseLang(2)}}},[e._v("2")]),t("span",{directives:[{name:"t",rawName:"v-t",value:"Documentary.console.item23",expression:"'Documentary.console.item23'"}],staticClass:"crm-cursor",class:{active:4==e.search.tag},on:{click:function(t){return e.chooseLang(4)}}},[e._v("4")])])]),t("div",{staticClass:"search crm_search"},[t("div",{staticClass:"search-btn",class:{"search-with-tabs":3==e.search.tag||2==e.search.tag}},[t("el-form",{ref:"search",style:2==e.search.tag?"display: flex; align-items: flex-start;":"",attrs:{"label-position":"top",model:e.search,"label-width":"80px"}},[1==e.search.tag?t("el-form-item",{staticStyle:{"margin-right":"10px","max-width":"100px"},attrs:{prop:""}},[t("el-select",{staticClass:"crm-border-radius-no crm_select_icon",attrs:{size:"small",placeholder:e.$t("placeholder.choose")},model:{value:e.search.platform,callback:function(t){e.$set(e.search,"platform",t)},expression:"search.platform"}},[t("el-option",{attrs:{label:"MT4",value:"MT4"},nativeOn:{click:function(t){return e.handleSearch.apply(null,arguments)}}}),t("el-option",{attrs:{label:"MT5",value:"MT5"},nativeOn:{click:function(t){return e.handleSearch.apply(null,arguments)}}})],1)],1):e._e(),1==e.search.tag?t("el-form-item",{staticClass:"crm-border-radius-no",staticStyle:{"margin-right":"10px"},attrs:{prop:"login"}},[t("el-input",{attrs:{size:"small",placeholder:e.$t("Label.Login")},model:{value:e.search.login,callback:function(t){e.$set(e.search,"login","string"===typeof t?t.trim():t)},expression:"search.login"}})],1):e._e(),1==e.search.tag||3==e.search.tag?t("el-form-item",{staticClass:"crm-border-radius-no",staticStyle:{"margin-right":"10px"},attrs:{prop:"cId"}},[t("el-input",{attrs:{size:"small",placeholder:"CID"},model:{value:e.search.cId,callback:function(t){e.$set(e.search,"cId","string"===typeof t?t.trim():t)},expression:"search.cId"}})],1):e._e(),2==e.search.tag?t("el-form-item",{staticClass:"crm-border-radius-no",staticStyle:{"margin-right":"10px"},attrs:{prop:"ibNo"}},[t("el-input",{attrs:{size:"small",placeholder:e.$t("Label.IbAccount")},model:{value:e.search.ibNo,callback:function(t){e.$set(e.search,"ibNo","string"===typeof t?t.trim():t)},expression:"search.ibNo"}})],1):e._e(),2==e.search.tag?t("el-form-item",{staticClass:"crm-border-radius-no",staticStyle:{"margin-right":"10px"},attrs:{prop:"name"}},[t("el-input",{attrs:{size:"small",placeholder:e.$t("Ib.Custom.NameLabel")},model:{value:e.search.name,callback:function(t){e.$set(e.search,"name","string"===typeof t?t.trim():t)},expression:"search.name"}})],1):e._e(),2==e.search.tag?t("el-form-item",{staticClass:"crm-border-radius-no",staticStyle:{"margin-right":"10px"},attrs:{prop:"cId"}},[t("el-input",{attrs:{size:"small",placeholder:"CID"},model:{value:e.search.cId,callback:function(t){e.$set(e.search,"cId","string"===typeof t?t.trim():t)},expression:"search.cId"}})],1):e._e(),3!=e.search.tag&&4!=e.search.tag?t("el-form-item",{attrs:{prop:"date"}},[t("el-date-picker",{staticClass:"crm_date_pick crm-border-radius-no",attrs:{type:"daterange",align:"right","unlink-panels":"","value-format":"yyyy-MM-dd","range-separator":"-",size:"small","start-placeholder":e.$t("placeholder.Start"),"end-placeholder":e.$t("placeholder.End")},model:{value:e.search.date,callback:function(t){e.$set(e.search,"date",t)},expression:"search.date"}}),t("el-button",{staticClass:"crm-border-left-no crm-border-radius-no",attrs:{size:"small",icon:"el-icon-search"},on:{click:e.handleSearch}})],1):e._e(),2==e.search.tag?t("el-form-item",{staticStyle:{"margin-left":"auto"}},[t("el-button",{attrs:{type:"primary",size:"small",icon:"el-icon-plus"},on:{click:e.openAddAgentDialog}},[t("span",{directives:[{name:"t",rawName:"v-t",value:"Ib.Report.Title5",expression:"'Ib.Report.Title5'"}]})])],1):e._e(),1!=e.search.tag&&2!=e.search.tag?t("el-form-item",{staticClass:"crm-border-radius-no",staticStyle:{"margin-right":"10px"},attrs:{prop:"name"}},[t("el-input",{attrs:{size:"small",placeholder:e.$t("Ib.Custom.NameLabel")},model:{value:e.search.name,callback:function(t){e.$set(e.search,"name","string"===typeof t?t.trim():t)},expression:"search.name"}})],1):e._e(),3==e.search.tag?t("el-form-item",{staticClass:"crm-border-radius-no",attrs:{prop:"email"}},[t("el-input",{attrs:{size:"small",placeholder:e.$t("Label.Email")},model:{value:e.search.email,callback:function(t){e.$set(e.search,"email","string"===typeof t?t.trim():t)},expression:"search.email"}})],1):e._e(),1!=e.search.tag&&2!=e.search.tag?t("el-form-item",[t("el-button",{staticClass:"crm-border-left-no crm-border-radius-no",attrs:{size:"small",icon:"el-icon-search"},on:{click:e.handleSearch}})],1):e._e()],1),3==e.search.tag?t("div",{staticClass:"chooseLang subTabs"},[t("span",{staticClass:"crm-cursor",class:{active:1==e.search.belongsType},on:{click:function(t){return e.chooseBelongsType(1)}}},[e._v(" "+e._s(e.$t("Ib.Custom.Unverified"))+" "),void 0!==e.statistics.unverifiedNum?t("span",{staticClass:"count-badge"},[e._v("("+e._s(e.statistics.unverifiedNum)+")")]):e._e()]),t("span",{staticClass:"crm-cursor",class:{active:2==e.search.belongsType},on:{click:function(t){return e.chooseBelongsType(2)}}},[e._v(" "+e._s(e.$t("Ib.Custom.UnDeposit"))+" "),void 0!==e.statistics.unDepositNum?t("span",{staticClass:"count-badge"},[e._v("("+e._s(e.statistics.unDepositNum)+")")]):e._e()]),t("span",{staticClass:"crm-cursor",class:{active:3==e.search.belongsType},on:{click:function(t){return e.chooseBelongsType(3)}}},[e._v(" "+e._s(e.$t("Ib.Custom.Deposited"))+" "),void 0!==e.statistics.depositNum?t("span",{staticClass:"count-badge"},[e._v("("+e._s(e.statistics.depositNum)+")")]):e._e()])]):e._e()],1)]),1==e.search.tag?t("div",{staticClass:"tab"},[t("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.pictLoading,expression:"pictLoading"}],staticClass:"crm_tab",staticStyle:{width:"100%"},attrs:{data:e.tableData,stripe:"","element-loading-background":"rgba(43, 48, 67, 0.1)","element-loading-spinner":"el-icon-loading"}},[t("el-table-column",{attrs:{prop:"",align:"center","header-align":"center",label:e.$t("Label.Login")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.login||"--"))]}}],null,!1,2369587966)}),t("el-table-column",{attrs:{prop:"",align:"center",label:e.$t("Ib.Custom.NameLabel")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.name||"--"))]}}],null,!1,3701363226)}),t("el-table-column",{attrs:{prop:"",align:"center",label:e.$t("Label.Platform")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.platform||"--"))]}}],null,!1,2871219458)}),t("el-table-column",{attrs:{prop:"groupName",align:"center",label:e.$t("Label.GroupName")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.groupName||"--"))]}}],null,!1,1224693765)}),t("el-table-column",{attrs:{prop:"",align:"center",label:e.$t("Label.LoginType")},scopedSlots:e._u([{key:"default",fn:function(a){return[1==a.row.type?t("span",{directives:[{name:"t",rawName:"v-t",value:"AccountType.ClassicAccount",expression:"'AccountType.ClassicAccount'"}]}):e._e(),2==a.row.type?t("span",{directives:[{name:"t",rawName:"v-t",value:"AccountType.SeniorAccount",expression:"'AccountType.SeniorAccount'"}]}):e._e(),5==a.row.type?t("span",{directives:[{name:"t",rawName:"v-t",value:"AccountType.SpeedAccount",expression:"'AccountType.SpeedAccount'"}]}):e._e(),6==a.row.type?t("span",{directives:[{name:"t",rawName:"v-t",value:"AccountType.SpeedAccount",expression:"'AccountType.SpeedAccount'"}]}):e._e(),7==a.row.type?t("span",{directives:[{name:"t",rawName:"v-t",value:"AccountType.StandardAccount",expression:"'AccountType.StandardAccount'"}]}):e._e(),8==a.row.type?t("span",{directives:[{name:"t",rawName:"v-t",value:"AccountType.CentAccount",expression:"'AccountType.CentAccount'"}]}):e._e()]}}],null,!1,3767327451)}),t("el-table-column",{attrs:{prop:"",align:"center",width:e.langs?"100":"",label:e.$t("Label.Leverage")},scopedSlots:e._u([{key:"default",fn:function(a){return[a.row.leverage?t("span",[e._v("1:")]):e._e(),e._v(e._s(a.row.leverage||"--"))]}}],null,!1,3785726582)}),t("el-table-column",{attrs:{prop:"",align:"center",width:e.langs?"100":"",label:e.$t("Label.Currency")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.currency||"--"))]}}],null,!1,1406697946)}),e._e(),e._e(),t("el-table-column",{attrs:{prop:"",align:"center",label:e.$t("Label.LoginBalance")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(e._f("NumberFormat")(t.row.balance||"0")))]}}],null,!1,847567570)}),t("el-table-column",{attrs:{prop:"",align:"center",label:e.$t("Label.Country")},scopedSlots:e._u([{key:"default",fn:function(a){return[t("div",[e._v(e._s(a.row.countryEnName||"--"))])]}}],null,!1,2181719413)}),t("el-table-column",{attrs:{prop:"",align:"center",width:e.langs?"110":"",label:e.$t("Label.RegistrationTime")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.registration||"--"))]}}],null,!1,3433116364)})],1)],1):e._e(),2==e.search.tag?t("div",{staticClass:"tab"},[t("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.pictLoading,expression:"pictLoading"}],staticClass:"crm_tab",staticStyle:{width:"100%"},attrs:{data:e.tableData,stripe:"","element-loading-background":"rgba(43, 48, 67, 0.1)","element-loading-spinner":"el-icon-loading"}},[t("el-table-column",{attrs:{prop:"cId",align:"center","header-align":"center",label:e.$t("Label.CidAccount")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.cId||"--"))]}}],null,!1,2759313139)}),t("el-table-column",{attrs:{prop:"",align:"center","header-align":"center",label:e.$t("Label.IbAccount")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.ibNo||"--"))]}}],null,!1,959952599)}),t("el-table-column",{attrs:{prop:"",align:"center",label:e.$t("Ib.Custom.NameLabel")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.name||"--"))]}}],null,!1,3701363226)}),t("el-table-column",{attrs:{prop:"agentNum",align:"center",label:e.$t("Ib.Custom.AgentNum")},scopedSlots:e._u([{key:"default",fn:function(t){var a;return[e._v(e._s(null!==(a=t.row.agentNum)&&void 0!==a?a:"--"))]}}],null,!1,1667450386)}),t("el-table-column",{attrs:{prop:"customNum",align:"center",label:e.$t("Ib.Custom.CustomerNum")},scopedSlots:e._u([{key:"default",fn:function(t){var a;return[e._v(e._s(null!==(a=t.row.customNum)&&void 0!==a?a:"--"))]}}],null,!1,2286195800)}),e._e(),e._e(),e._e(),t("el-table-column",{attrs:{prop:"",align:"center",width:e.lang?"110":"",label:e.$t("Label.RegistrationTime")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.addTime||"--"))]}}],null,!1,2916603049)}),t("el-table-column",{attrs:{prop:"lastTime",align:"center",label:e.$t("Ib.Custom.LastActiveTime")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.lastTime||"--"))]}}],null,!1,3318487426)}),t("el-table-column",{attrs:{align:"center",label:e.$t("Label.Action")},scopedSlots:e._u([{key:"default",fn:function(a){return[t("el-dropdown",{attrs:{trigger:"click"},on:{command:e.handleCommandIB}},[t("span",{staticClass:"el-dropdown-link crm-cursor"},[t("i",{staticClass:"iconfont iconcaidan",staticStyle:{"font-weight":"bold","font-size":"20px"},on:{click:function(t){return e.handleClick(a.row)}}})]),t("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[t("el-dropdown-item",{attrs:{command:{type:"vietnamDistribution",row:a.row}}},[t("span",{directives:[{name:"t",rawName:"v-t",value:"Ib.Custom.Commit3",expression:"'Ib.Custom.Commit3'"}]})]),1==e.agentAccountSetting?t("el-dropdown-item",{attrs:{command:{type:"ibAccount",row:a.row}}},[t("span",{directives:[{name:"t",rawName:"v-t",value:"Ib.Custom.Commit4",expression:"'Ib.Custom.Commit4'"}]})]):e._e(),a.row.exclusiveCommissionOptions&&a.row.exclusiveCommissionOptions.length>0?t("el-dropdown-item",{attrs:{command:{type:"exclusiveCommission",row:a.row}}},[t("span",{directives:[{name:"t",rawName:"v-t",value:"Ib.Custom.Commit5",expression:"'Ib.Custom.Commit5'"}]})]):e._e()],1)],1)]}}],null,!1,3681749040)})],1)],1):e._e(),3==e.search.tag?t("div",{staticClass:"tab"},[t("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.pictLoading,expression:"pictLoading"}],staticClass:"crm_tab",staticStyle:{width:"100%"},attrs:{data:e.tableData,stripe:"","element-loading-background":"rgba(43, 48, 67, 0.1)","element-loading-spinner":"el-icon-loading"}},[t("el-table-column",{attrs:{prop:"",align:"center","header-align":"center",label:e.$t("Label.CidAccount")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.cId||"--"))]}}],null,!1,2759313139)}),t("el-table-column",{attrs:{prop:"",align:"center",label:e.$t("Ib.Custom.NameLabel")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.name||"--"))]}}],null,!1,3701363226)}),t("el-table-column",{attrs:{prop:"",align:"center",label:e.$t("Label.Email")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.email||"--"))]}}],null,!1,2699250801)}),t("el-table-column",{attrs:{prop:"",align:"center",width:e.lang?"110":"",label:e.$t("Label.Nationality")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.countryEnName))]}}],null,!1,4198710073)}),t("el-table-column",{attrs:{prop:"",align:"center",width:e.lang?"110":"",label:e.$t("Label.RegistrationTime")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.addTime||"--"))]}}],null,!1,2916603049)}),t("el-table-column",{attrs:{prop:"",align:"center",label:e.$t("Ib.Custom.CustomerStatus")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(1==t.row.belongsType?e.$t("Ib.Custom.Unverified"):2==t.row.belongsType?e.$t("Ib.Custom.UnDeposit"):3==t.row.belongsType?e.$t("Ib.Custom.Deposited"):"--"))]}}],null,!1,3304169760)}),t("el-table-column",{attrs:{prop:"",align:"center",label:e.$t("Ib.Custom.ApplyAgent")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(2==t.row.ibStatus?e.$t("Ib.Custom.Yes"):e.$t("Ib.Custom.No")))]}}],null,!1,2700856795)}),t("el-table-column",{attrs:{align:"center",label:e.$t("Label.Action")},scopedSlots:e._u([{key:"default",fn:function(a){return[t("el-dropdown",{attrs:{trigger:"click"},on:{command:e.handleCommandAllow}},[t("span",{staticClass:"el-dropdown-link crm-cursor"},[t("i",{staticClass:"iconfont iconcaidan",staticStyle:{"font-weight":"bold","font-size":"20px"}})]),t("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[t("el-dropdown-item",{attrs:{command:{type:"documentary",row:a.row}}},[t("span",{directives:[{name:"t",rawName:"v-t",value:"Documentary.AgentBackground.item1",expression:"'Documentary.AgentBackground.item1'"}]})]),1==a.row.ibStatus&&1!=a.row.belongsType?t("el-dropdown-item",{attrs:{command:{type:"applyIb",row:a.row}}},[t("span",{directives:[{name:"t",rawName:"v-t",value:"Home.msg.ibTitle",expression:"'Home.msg.ibTitle'"}]})]):e._e()],1)],1)]}}],null,!1,3799229202)})],1)],1):e._e(),4==e.search.tag?t("div",{staticClass:"tab"},[t("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.pictLoading,expression:"pictLoading"}],staticClass:"crm_tab",staticStyle:{width:"100%"},attrs:{data:e.tableData,stripe:"","element-loading-background":"rgba(43, 48, 67, 0.1)","element-loading-spinner":"el-icon-loading"}},[t("el-table-column",{attrs:{prop:"",align:"center","header-align":"center",label:e.$t("Label.CidAccount")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.dealCId||"--"))]}}],null,!1,693084927)}),t("el-table-column",{attrs:{prop:"",align:"center",label:e.$t("Label.AgentNumber")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.pIbNo||"--"))]}}],null,!1,2414119111)}),t("el-table-column",{attrs:{prop:"",align:"center",label:e.$t("Documentary.console.item20")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.nickname||"--"))]}}],null,!1,3393669845)}),t("el-table-column",{attrs:{prop:"",align:"center",label:e.$t("Documentary.tradingCenter.item18")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.dealLogin))]}}],null,!1,3271131026)}),t("el-table-column",{attrs:{prop:"",align:"center",label:e.$t("Label.Platform")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.dealPlatform||"--"))]}}],null,!1,3192014862)}),t("el-table-column",{attrs:{prop:"",align:"center",label:e.$t("Label.Leverage")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.dealLeverage||"--"))]}}],null,!1,1971626522)}),t("el-table-column",{attrs:{prop:"",align:"center",label:e.$t("Label.AccountType")},scopedSlots:e._u([{key:"default",fn:function(a){return[1==a.row.dealLoginType?t("span",{directives:[{name:"t",rawName:"v-t",value:"AccountType.ClassicAccount",expression:"'AccountType.ClassicAccount'"}]}):e._e(),2==a.row.dealLoginType?t("span",{directives:[{name:"t",rawName:"v-t",value:"AccountType.SeniorAccount",expression:"'AccountType.SeniorAccount'"}]}):e._e(),5==a.row.dealLoginType?t("span",{directives:[{name:"t",rawName:"v-t",value:"AccountType.SpeedAccount",expression:"'AccountType.SpeedAccount'"}]}):e._e(),6==a.row.dealLoginType?t("span",{directives:[{name:"t",rawName:"v-t",value:"AccountType.SpeedAccount",expression:"'AccountType.SpeedAccount'"}]}):e._e(),7==a.row.dealLoginType?t("span",{directives:[{name:"t",rawName:"v-t",value:"AccountType.StandardAccount",expression:"'AccountType.StandardAccount'"}]}):e._e(),8==a.row.dealLoginType?t("span",{directives:[{name:"t",rawName:"v-t",value:"AccountType.CentAccount",expression:"'AccountType.CentAccount'"}]}):e._e()]}}],null,!1,1686683931)}),t("el-table-column",{attrs:{prop:"",align:"center",label:e.$t("Documentary.AgentBackground.item11")},scopedSlots:e._u([{key:"default",fn:function(a){return[1==a.row.distributionType?t("span",{directives:[{name:"t",rawName:"v-t",value:"Documentary.TundManagement.item59",expression:"'Documentary.TundManagement.item59'"}]}):e._e()]}}],null,!1,307628250)}),t("el-table-column",{attrs:{prop:"",align:"center",label:e.$t("Documentary.Report.item5")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.distributionRatio||"--"))]}}],null,!1,2694370438)}),t("el-table-column",{attrs:{prop:"",align:"center",label:e.$t("Documentary.AgentBackground.item13")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.settlementCycle||"--"))]}}],null,!1,1894308480)}),t("el-table-column",{attrs:{prop:"",align:"center",label:e.$t("Label.ApplyTime")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.approveTime||"--"))]}}],null,!1,1907542567)}),t("el-table-column",{attrs:{prop:"",align:"center",label:e.$t("Documentary.AgentBackground.item14")},scopedSlots:e._u([{key:"default",fn:function(a){return[1==a.row.permissionDisplay?t("span",{directives:[{name:"t",rawName:"v-t",value:"Documentary.AgentBackground.item16",expression:"'Documentary.AgentBackground.item16'"}]}):e._e(),2==a.row.permissionDisplay?t("span",{directives:[{name:"t",rawName:"v-t",value:"Documentary.AgentBackground.item15",expression:"'Documentary.AgentBackground.item15'"}]}):e._e()]}}],null,!1,1358611863)}),t("el-table-column",{attrs:{align:"center",label:e.$t("Label.Action")},scopedSlots:e._u([{key:"default",fn:function(a){return[t("el-dropdown",{attrs:{trigger:"click"},on:{command:e.handleCommandFllow}},[t("span",{staticClass:"el-dropdown-link crm-cursor"},[t("i",{staticClass:"iconfont iconcaidan",staticStyle:{"font-weight":"bold","font-size":"20px"}})]),t("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},["1"==a.row.agentUpdatePurview?t("el-dropdown-item",{attrs:{command:{type:"DisplaySettings",row:a.row}}},[t("span",{directives:[{name:"t",rawName:"v-t",value:"Ib.Custom.Btn",expression:"'Ib.Custom.Btn'"}]})]):e._e()],1)],1)]}}],null,!1,3906870169)})],1)],1):e._e(),e.pagerInfo.rowTotal?t("div",{staticClass:"crm_pagination"},[t("el-pagination",{staticClass:"page",attrs:{background:"",layout:"prev, pager, next","current-page":e.pagerInfo.current,"page-size":e.pagerInfo.row,total:e.pagerInfo.rowTotal},on:{"current-change":e.handleCurrentChange}})],1):e._e()]),t("el-dialog",{attrs:{visible:e.dialogAllowIb,center:"",title:e.$t("Ib.Custom.Btn"),"custom-class":"dialog_header_w dialogIb"},on:{"update:visible":function(t){e.dialogAllowIb=t}}},[t("div",{staticClass:"dia-content"},[t("el-form",{ref:"dialogForm",staticClass:"dialogForm",attrs:{model:e.dialogForm,rules:e.rules,"label-width":"140px"}},[t("el-form-item",{attrs:{prop:"",label:e.$t("Label.CidAccount")+":"}},[e._v(" "+e._s(e.dialogForm.cId||"--")+" ")]),t("el-form-item",{attrs:{prop:"",label:e.$t("Ib.Custom.NameLabelColon")}},[e._v(" "+e._s(e.dialogForm.name||"--")+" ")]),t("el-form-item",{attrs:{prop:"",label:e.$t("Label.Email")+":"}},[e._v(" "+e._s(e.dialogForm.email||"--")+" ")]),t("el-form-item",{staticStyle:{"margin-bottom":"25px"},attrs:{prop:"ibInvalid",label:e.$t("Ib.Custom.Become")+":"}},[t("el-select",{staticStyle:{width:"100%","max-width":"200px"},attrs:{size:"mini",placeholder:e.$t("placeholder.choose")},on:{change:e.selectChange},model:{value:e.dialogForm.ibInvalid,callback:function(t){e.$set(e.dialogForm,"ibInvalid",t)},expression:"dialogForm.ibInvalid"}},[t("el-option",{attrs:{label:e.$t("Ib.Custom.Open"),value:0}}),t("el-option",{attrs:{label:e.$t("Ib.Custom.Close"),value:1}})],1)],1),t("div",{staticClass:"tips"},[t("p",{directives:[{name:"t",rawName:"v-t",value:"Ib.Custom.Tips",expression:"'Ib.Custom.Tips'"}],staticClass:"tips1"}),t("p",{directives:[{name:"t",rawName:"v-t",value:"Ib.Custom.Tips1",expression:"'Ib.Custom.Tips1'"}],staticClass:"tips2"}),t("p",{directives:[{name:"t",rawName:"v-t",value:"Ib.Custom.Tips2",expression:"'Ib.Custom.Tips2'"}],staticClass:"tips2"}),t("p",{directives:[{name:"t",rawName:"v-t",value:"Ib.Custom.Tips3",expression:"'Ib.Custom.Tips3'"}],staticClass:"tips2"})])],1),t("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{directives:[{name:"t",rawName:"v-t",value:"Btn.Cancel",expression:"'Btn.Cancel'"}],on:{click:e.Cancel}}),t("el-button",{directives:[{name:"t",rawName:"v-t",value:"Btn.Confirm",expression:"'Btn.Confirm'"}],attrs:{type:"primary"},on:{click:e.toAgree}})],1)],1)]),t("el-dialog",{attrs:{visible:e.dialogInfoTradingAddTc,center:"",title:e.$t("Ib.Custom.Btn"),"custom-class":"dialog_header_w dialogIb"},on:{"update:visible":function(t){e.dialogInfoTradingAddTc=t}}},[t("div",{staticClass:"dia-content"},[t("div",{staticStyle:{"text-align":"initial","line-height":"1.5"}},[t("p",{directives:[{name:"t",rawName:"v-t",value:"news_add_field1.CustomerManagement.item1",expression:"'news_add_field1.CustomerManagement.item1'"}],staticStyle:{"margin-bottom":"5px"}}),t("p",{directives:[{name:"t",rawName:"v-t",value:"news_add_field1.CustomerManagement.item2",expression:"'news_add_field1.CustomerManagement.item2'"}],staticStyle:{"margin-bottom":"5px"}})]),t("div",{staticClass:"agree"},[t("el-checkbox",{model:{value:e.dialogInfoTradingAddTcAgree,callback:function(t){e.dialogInfoTradingAddTcAgree=t},expression:"dialogInfoTradingAddTcAgree"}}),t("div",{staticClass:"des"},[t("p",{directives:[{name:"t",rawName:"v-t",value:"news_add_field1.CustomerManagement.item3",expression:"'news_add_field1.CustomerManagement.item3'"}],staticStyle:{"margin-bottom":"5px"}})])],1),t("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{directives:[{name:"t",rawName:"v-t",value:"Btn.Cancel",expression:"'Btn.Cancel'"}],on:{click:function(t){return e.dialogInfoTradingAddCanle()}}}),t("el-button",{directives:[{name:"t",rawName:"v-t",value:"Btn.Confirm",expression:"'Btn.Confirm'"}],attrs:{type:"primary"},on:{click:function(t){return e.dialogInfoTradingAddOpen()}}})],1)])]),t("drawer",{attrs:{dialogInfoTradingAdd:e.dialogInfoTradingAdd,addType:e.openType,formInfo:e.formInfoRow},on:{closeAdd:e.closeAdd,toAddTemplate:e.toAddTemplate,confirmToReload:e.confirmToReload}}),t("el-dialog",{attrs:{visible:e.dialogExclusiveCommission,center:"",title:e.$t("Ib.Custom.Commit5"),"custom-class":"dialog_header_w dialogIb"},on:{"update:visible":function(t){e.dialogExclusiveCommission=t}}},[t("div",{staticClass:"dia-content"},[t("el-form",{ref:"exclusiveCommissionForm",staticClass:"dialogForm",attrs:{model:e.exclusiveCommissionForm,"label-width":"240px"}},[t("el-form-item",{attrs:{label:e.$t("Ib.Custom.Commit5")}},[t("el-select",{staticStyle:{width:"100%","max-width":"200px"},attrs:{size:"mini",placeholder:e.$t("placeholder.choose")},model:{value:e.exclusiveCommissionForm.selectedPoint,callback:function(t){e.$set(e.exclusiveCommissionForm,"selectedPoint",t)},expression:"exclusiveCommissionForm.selectedPoint"}},e._l(e.exclusiveCommissionForm.pointOptions,(function(e){return t("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1)],1),t("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{on:{click:e.cancelExclusiveCommission}},[e._v(e._s(e.$t("Btn.Cancel")))]),t("el-button",{attrs:{type:"primary"},on:{click:e.confirmExclusiveCommission}},[e._v(e._s(e.$t("Btn.Confirm")))])],1)],1)]),t("el-dialog",{attrs:{visible:e.dialogVietnamDistribution,center:"",title:e.$t("Ib.Custom.Commit3"),"custom-class":"dialog_header_w dialogIb",width:"50%"},on:{"update:visible":function(t){e.dialogVietnamDistribution=t}}},[t("div",{staticClass:"dia-content"},[t("el-table",{staticClass:"crm_tab vietnam-distribution-table",staticStyle:{width:"100%"},attrs:{data:e.vietnamDistributionTableData,size:"small","span-method":e.vietnamTableSpanMethod,"cell-style":{padding:"4px 0"},"header-cell-style":{padding:"4px 0"},border:""}},[t("el-table-column",{attrs:{prop:"valid",align:"center","header-align":"center",label:e.$t("Ib.Custom.Status"),width:"80"},scopedSlots:e._u([{key:"default",fn:function(a){return[t("el-switch",{attrs:{"active-value":1,"inactive-value":0,"active-color":"#67C23A"},on:{change:t=>e.handleValueChange(t,a.row)},model:{value:a.row.valid,callback:function(t){e.$set(a.row,"valid",t)},expression:"scope.row.valid"}})]}}])}),t("el-table-column",{attrs:{prop:"accountGroup",align:"center","header-align":"center",label:""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.accountGroup||"--"))]}}])}),t("el-table-column",{attrs:{prop:"type",align:"center","header-align":"center",label:"",width:"160"},scopedSlots:e._u([{key:"default",fn:function(a){return[t("span",[e._v(" "+e._s(a.row.type||"--")+" ")])]}}])}),t("el-table-column",{attrs:{prop:"energy",align:"center","header-align":"center",label:"METAL"},scopedSlots:e._u([{key:"default",fn:function(a){return[t("el-select",{staticClass:"commission-select-no-border",staticStyle:{width:"100%"},attrs:{size:"mini"},on:{change:e.handleValueChange},model:{value:a.row.energy,callback:function(t){e.$set(a.row,"energy",t)},expression:"scope.row.energy"}},e._l(a.row.energyOptions,(function(e){return t("el-option",{key:e,attrs:{label:e,value:e}})})),1)]}}])}),t("el-table-column",{attrs:{prop:"forex",align:"center","header-align":"center",label:"FX"},scopedSlots:e._u([{key:"default",fn:function(a){return[t("el-select",{staticClass:"commission-select-no-border",staticStyle:{width:"100%"},attrs:{size:"mini"},on:{change:e.handleValueChange},model:{value:a.row.forex,callback:function(t){e.$set(a.row,"forex",t)},expression:"scope.row.forex"}},e._l(a.row.forexOptions,(function(e){return t("el-option",{key:e,attrs:{label:e,value:e}})})),1)]}}])}),t("el-table-column",{attrs:{prop:"energy2",align:"center","header-align":"center",label:"ENERGY"},scopedSlots:e._u([{key:"default",fn:function(a){return[t("el-select",{staticClass:"commission-select-no-border",staticStyle:{width:"100%"},attrs:{size:"mini"},on:{change:e.handleValueChange},model:{value:a.row.energy2,callback:function(t){e.$set(a.row,"energy2",t)},expression:"scope.row.energy2"}},e._l(a.row.energy2Options,(function(e){return t("el-option",{key:e,attrs:{label:e,value:e}})})),1)]}}])}),t("el-table-column",{attrs:{prop:"index",align:"center","header-align":"center",label:"CFD"},scopedSlots:e._u([{key:"default",fn:function(a){return[t("el-select",{staticClass:"commission-select-no-border",staticStyle:{width:"100%"},attrs:{size:"mini"},on:{change:e.handleValueChange},model:{value:a.row.index,callback:function(t){e.$set(a.row,"index",t)},expression:"scope.row.index"}},e._l(a.row.indexOptions,(function(e){return t("el-option",{key:e,attrs:{label:e,value:e}})})),1)]}}])}),t("el-table-column",{attrs:{prop:"metal",align:"center","header-align":"center",label:"INDEX"},scopedSlots:e._u([{key:"default",fn:function(a){return[t("el-select",{staticClass:"commission-select-no-border",staticStyle:{width:"100%"},attrs:{size:"mini"},on:{change:e.handleValueChange},model:{value:a.row.metal,callback:function(t){e.$set(a.row,"metal",t)},expression:"scope.row.metal"}},e._l(a.row.metalOptions,(function(e){return t("el-option",{key:e,attrs:{label:e,value:e}})})),1)]}}])})],1),t("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{on:{click:function(t){e.dialogVietnamDistribution=!1}}},[e._v(e._s(e.$t("Ib.Custom.Close")))]),t("el-button",{attrs:{type:"primary"},on:{click:e.saveVietnamDistribution}},[e._v(e._s(e.$t("Btn.Save")))])],1)],1)]),e.dialogInfoTradingAdd?t("div",{staticClass:"crm_verified_info_mask",on:{click:e.closeDiaAdd}}):e._e(),t("el-dialog",{attrs:{visible:e.dialogAddAgent,center:"",title:e.$t("Ib.Report.Title5"),"custom-class":"dialog_header_w dialogIb",width:"50%"},on:{"update:visible":function(t){e.dialogAddAgent=t}}},[t("div",{staticClass:"dia-content"},[t("el-form",{ref:"addAgentForm",staticClass:"dialogForm",attrs:{model:e.addAgentForm,"label-width":"120px"}},[e.isFromApplyIb?e._e():t("el-form-item",{attrs:{label:e.$t("Ib.Custom.Manage3")+":",prop:"customerId"}},[t("el-select",{attrs:{filterable:"",remote:"","remote-method":e.searchCustomer,loading:e.customerLoading,placeholder:e.$t("placeholder.choose"),clearable:""},on:{change:e.handleCustomerChange},model:{value:e.addAgentForm.customerId,callback:function(t){e.$set(e.addAgentForm,"customerId",t)},expression:"addAgentForm.customerId"}},e._l(e.customerList,(function(a){return t("el-option",{key:a.id,attrs:{label:a.name||a.id,value:a.id}},[t("span",[e._v(e._s(a.name||""))]),e._v("- "),t("span",{staticStyle:{color:"#8492a6","font-size":"13px"}},[e._v(" "+e._s(a.cId)+" ")])])})),1)],1)],1),t("div",{staticStyle:{"margin-top":"20px"}},[t("el-table",{staticClass:"crm_tab commission-template-table",staticStyle:{width:"100%"},attrs:{data:e.commissionTemplateTableData,size:"small","span-method":e.commissionTemplateTableSpanMethod,"cell-style":{padding:"4px 0"},"header-cell-style":{padding:"4px 0"},border:""}},[t("el-table-column",{attrs:{prop:"valid",align:"center","header-align":"center",label:e.$t("Ib.Custom.Status"),width:"80"},scopedSlots:e._u([{key:"default",fn:function(a){return[t("el-switch",{attrs:{"active-value":1,"inactive-value":0,"active-color":"#67C23A"},on:{change:t=>e.handleCommissionTemplateValueChange(t,a.row)},model:{value:a.row.valid,callback:function(t){e.$set(a.row,"valid",t)},expression:"scope.row.valid"}})]}}])}),t("el-table-column",{attrs:{prop:"accountGroup",align:"center","header-align":"center",label:""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.accountGroup||"--"))]}}])}),t("el-table-column",{attrs:{prop:"type",align:"center","header-align":"center",label:"",width:"160"},scopedSlots:e._u([{key:"default",fn:function(a){return[t("span",[e._v(" "+e._s(a.row.type||"--")+" ")])]}}])}),t("el-table-column",{attrs:{prop:"energy",align:"center","header-align":"center",label:"METAL"},scopedSlots:e._u([{key:"default",fn:function(a){return[t("el-select",{staticClass:"commission-select-no-border",staticStyle:{width:"100%"},attrs:{size:"mini"},on:{change:e.handleCommissionTemplateValueChange},model:{value:a.row.energy,callback:function(t){e.$set(a.row,"energy",t)},expression:"scope.row.energy"}},e._l(a.row.energyOptions,(function(e){return t("el-option",{key:e,attrs:{label:e,value:e}})})),1)]}}])}),t("el-table-column",{attrs:{prop:"forex",align:"center","header-align":"center",label:"FX"},scopedSlots:e._u([{key:"default",fn:function(a){return[t("el-select",{staticClass:"commission-select-no-border",staticStyle:{width:"100%"},attrs:{size:"mini"},on:{change:e.handleCommissionTemplateValueChange},model:{value:a.row.forex,callback:function(t){e.$set(a.row,"forex",t)},expression:"scope.row.forex"}},e._l(a.row.forexOptions,(function(e){return t("el-option",{key:e,attrs:{label:e,value:e}})})),1)]}}])}),t("el-table-column",{attrs:{prop:"energy2",align:"center","header-align":"center",label:"ENERGY"},scopedSlots:e._u([{key:"default",fn:function(a){return[t("el-select",{staticClass:"commission-select-no-border",staticStyle:{width:"100%"},attrs:{size:"mini"},on:{change:e.handleCommissionTemplateValueChange},model:{value:a.row.energy2,callback:function(t){e.$set(a.row,"energy2",t)},expression:"scope.row.energy2"}},e._l(a.row.energy2Options,(function(e){return t("el-option",{key:e,attrs:{label:e,value:e}})})),1)]}}])}),t("el-table-column",{attrs:{prop:"index",align:"center","header-align":"center",label:"CFD"},scopedSlots:e._u([{key:"default",fn:function(a){return[t("el-select",{staticClass:"commission-select-no-border",staticStyle:{width:"100%"},attrs:{size:"mini"},on:{change:e.handleCommissionTemplateValueChange},model:{value:a.row.index,callback:function(t){e.$set(a.row,"index",t)},expression:"scope.row.index"}},e._l(a.row.indexOptions,(function(e){return t("el-option",{key:e,attrs:{label:e,value:e}})})),1)]}}])}),t("el-table-column",{attrs:{prop:"metal",align:"center","header-align":"center",label:"INDEX"},scopedSlots:e._u([{key:"default",fn:function(a){return[t("el-select",{staticClass:"commission-select-no-border",staticStyle:{width:"100%"},attrs:{size:"mini"},on:{change:e.handleCommissionTemplateValueChange},model:{value:a.row.metal,callback:function(t){e.$set(a.row,"metal",t)},expression:"scope.row.metal"}},e._l(a.row.metalOptions,(function(e){return t("el-option",{key:e,attrs:{label:e,value:e}})})),1)]}}])})],1)],1),t("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{directives:[{name:"t",rawName:"v-t",value:"Btn.Cancel",expression:"'Btn.Cancel'"}],on:{click:e.handleCloseAddAgentDialog}}),t("el-button",{directives:[{name:"t",rawName:"v-t",value:"Btn.Confirm",expression:"'Btn.Confirm'"}],attrs:{type:"primary"},on:{click:e.confirmAddAgent}})],1)],1)])],1)},s=[],i=a("d8a9"),n=i["a"],r=(a("f6e5"),a("784b"),a("e4bf"),a("2877")),l=Object(r["a"])(n,o,s,!1,null,"0d31718f",null);t["default"]=l.exports},eed3:function(e,t,a){},f6e5:function(e,t,a){"use strict";a("2934")}}]);