(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["ProhibitedGroupType"],{"083a":function(e,t,a){"use strict";var r=a("0d51"),n=TypeError;e.exports=function(e,t){if(!delete e[t])throw new n("Cannot delete property "+r(t)+" of "+r(e))}},"54e8":function(e,t,a){"use strict";a("8475")},"5a59":function(e,t,a){},"6d1f":function(e,t,a){"use strict";a("e7ec")},8475:function(e,t,a){},a434:function(e,t,a){"use strict";var r=a("23e7"),n=a("7b0b"),o=a("23cb"),i=a("5926"),s=a("07fa"),l=a("3a34"),c=a("3511"),d=a("65f0"),u=a("8418"),p=a("083a"),m=a("1dde"),f=m("splice"),g=Math.max,h=Math.min;r({target:"Array",proto:!0,forced:!f},{splice:function(e,t){var a,r,m,f,v,b,w=n(this),y=s(w),T=o(e,y),A=arguments.length;for(0===A?a=r=0:1===A?(a=0,r=y-T):(a=A-2,r=h(g(i(t),0),y-T)),c(y+a-r),m=d(w,r),f=0;fy-r+a;f--)p(w,f-1)}else if(a>r)for(f=y-r;f>T;f--)v=f+r-1,b=f+a-1,v in w?w[b]=w[v]:p(w,b);for(f=0;fNumber(e.form.rules[n].maxAmount)&&0!==Number(e.form.rules[n].maxAmount)?r(new Error(e.$i18n.t("vaildate.amount.greater"))):r()}else r(new Error(e.$i18n.t("vaildate.amount.NonNegInt")))};return{flag:!1,form:{platform:"",login:"",rules:[{minAmount:"",maxAmount:"",groupType:""}]},rules:{groupCode:[{required:!0,message:this.$i18n.t("vaildate.select.empty"),trigger:"change"}],platform:[{required:!0,message:this.$i18n.t("vaildate.select.empty"),trigger:"change"}],login:[{required:!0,message:this.$i18n.t("vaildate.input.empty"),trigger:"blur"}]},validateMinAmount:{required:!0,validator:t,trigger:"blur"},validateMaxAmount:{required:!0,validator:a,trigger:"blur"},GroupCode:[],loginList:[],LoginCode:[]}},methods:{selectChange:function(){this.$forceUpdate()},rulesAdd:function(e){var t={minAmount:"",maxAmount:"",groupType:""};e.push(t)},rulesDelete:function(e,t){1!=e.length?e.splice(t,1):this.$pigeon.MessageWarning(this.$i18n.t("news_add_field.Des.item9"))},close:function(){this.$emit("closeAdd",!1)},confirmToReload:function(){this.$emit("confirmToReload",!0)},confirm:function(){var e=this;this.$refs["form"].validate((function(t){if(!t)return!1;e.toConfirm()}))},toConfirm:function(){this.editor?1==this.editor?this.AutomaGroupUpdate():2==this.editor&&this.AutomaGroupAdd():this.AutomaGroupAdd()},AutomaGroupAdd:function(){var e=this;return Object(s["a"])(Object(i["a"])().mark((function t(){var a;return Object(i["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return console.log(e.form),t.next=3,l["a"].ProhibitedGroupTypeAdd({login:e.form.login,platform:e.form.platform,rules:e.form.rules});case 3:a=t.sent,a.code==m.StatusOK?(e.confirmToReload(),e.$refs["form"].resetFields(),e.$pigeon.MessageOK(e.$i18n.t("Msg.Success"))):e.$pigeon.MessageError(a.msg);case 5:case"end":return t.stop()}}),t)})))()},AutomaGroupUpdate:function(){var e=this;return Object(s["a"])(Object(i["a"])().mark((function t(){var a;return Object(i["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,l["a"].ProhibitedGroupTypeUpdate(Object(o["a"])({},e.form));case 2:a=t.sent,a.code==m.StatusOK?(e.confirmToReload(),e.close(),e.$refs["form"].resetFields(),e.$pigeon.MessageOK(e.$i18n.t("Msg.Success"))):e.$pigeon.MessageError(a.msg);case 4:case"end":return t.stop()}}),t)})))()},getAutomaGroupUpdate:function(){var e=this;return Object(s["a"])(Object(i["a"])().mark((function t(){var a;return Object(i["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,l["a"].ProhibitedGroupTypeAddGroupList({});case 2:a=t.sent,a.code==m.StatusOK?e.GroupCode=a.data:e.$pigeon.MessageError(a.msg);case 4:case"end":return t.stop()}}),t)})))()}},mounted:function(){},watch:{dialogInfoTradingAdd:function(e){0==e&&this.$refs["form"]&&this.$refs["form"].resetFields(),1==e&&(this.GroupCode=[],this.getAutomaGroupUpdate(),this.editor||(this.form={platform:"",login:"",rules:[{minAmount:"",maxAmount:"",groupType:""}]}))},formList:function(e){this.form=e}}},g=f,h=(a("c0dd"),a("2877")),v=Object(h["a"])(g,u,p,!1,null,"51af680c",null),b=v.exports,w=a("5011"),y=d.a.Code,T={name:"AutomaticBalanceAdjustmentGroup",components:{AutomaticBalanceGroup:b,TradingSingle:w["a"]},data:function(){return{imgUrl:d.a.Host85,pictLoading:!1,mock_tableData:[],search:{valid:null,platform:"MT4",login:"",date:[],startDate:"",endDate:""},multipleSelection:[],dialogInfoTradingAdd:!1,editor:"",addType:"",myInfo:{},formList:{},dialogInfoTrading:!1,formInfoTrading:{},formLists:{},infoType:"",formInfo:{},pagerInfo:{row:10,current:1,pageTotal:0,rowTotal:0}}},computed:{display:function(){return JSON.parse(this.Session.Get("display",!0))}},methods:{handleCommand:function(e){"editor"==e.type?(this.editor=1,this.getSymbolSingle(e.row.id)):"delete"==e.type?this.delete(e.id):"detailed"==e.type?this.getSingle(e.row.id,1):"copy"==e.type&&this.getSingle(e.row.id,2)},closeDiaAdd:function(){this.dialogInfoTradingAdd=!1,this.editor=""},closeAdd:function(e){this.dialogInfoTradingAdd=e},addVarieties:function(){this.editor="",this.dialogInfoTradingAdd=!0},confirmToReload:function(){this.closeDiaAdd(),this.searchFunc()},closeDiaTrading:function(){this.dialogInfoTrading=!1},closeTrading:function(e){this.dialogInfoTrading=e},openInfo:function(e){this.searchSingle(e)},handleSelectionChange:function(e){var t=this;this.multipleSelection=[],e.forEach((function(e){t.multipleSelection.push(e.id)}))},daleteAll:function(){var e=this;return Object(s["a"])(Object(i["a"])().mark((function t(){var a;return Object(i["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:a=e,e.$pigeon.MessageConfirm(e.$i18n.t("Msg.Delete"),e.$i18n.t("Msg.SystemPrompt"),e.$i18n.t("Btn.Confirm"),e.$i18n.t("Btn.Cancel"),Object(s["a"])(Object(i["a"])().mark((function e(){var t;return Object(i["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,l["a"].ProhibitedGroupTypeDelete({ids:a.multipleSelection});case 2:t=e.sent,t.code==y.StatusOK?(a.$pigeon.MessageOK(a.$i18n.t("Msg.DeleteSuccess")),a.searchFunc()):a.$pigeon.MessageError(t.msg);case 4:case"end":return e.stop()}}),e)}))),(function(){}));case 2:case"end":return t.stop()}}),t)})))()},delete:function(){var e=Object(s["a"])(Object(i["a"])().mark((function e(t){var a,r;return Object(i["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:a=[],a.push(t),r=this,this.$pigeon.MessageConfirm(this.$i18n.t("Msg.Delete"),this.$i18n.t("Msg.SystemPrompt"),this.$i18n.t("Btn.Confirm"),this.$i18n.t("Btn.Cancel"),Object(s["a"])(Object(i["a"])().mark((function e(){var t;return Object(i["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,l["a"].ProhibitedGroupTypeDelete({ids:a});case 2:t=e.sent,t.code==y.StatusOK?(r.$pigeon.MessageOK(r.$i18n.t("Msg.DeleteSuccess")),r.searchFunc()):r.$pigeon.MessageError(t.msg);case 4:case"end":return e.stop()}}),e)}))),(function(){}));case 4:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),choosePla:function(e){this.search.platform=e,this.toSearch()},getSymbolSingle:function(e){var t=this;return Object(s["a"])(Object(i["a"])().mark((function a(){var r;return Object(i["a"])().wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.next=2,l["a"].ProhibitedGroupTypeSingle({id:e});case 2:r=a.sent,r.code==y.StatusOK?(t.formList=r.data,t.editor=1,t.dialogInfoTradingAdd=!0,t.$pigeon.MessageOK(t.$i18n.t("Msg.SearchSuccess"))):t.$pigeon.MessageError(r.msg);case 4:case"end":return a.stop()}}),a)})))()},getSingle:function(e,t){var a=this;return Object(s["a"])(Object(i["a"])().mark((function r(){var n;return Object(i["a"])().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return r.next=2,l["a"].ProhibitedGroupTypeSingle({id:e});case 2:n=r.sent,n.code==y.StatusOK?1==t?a.getAutomaGroupUpdate(n.data):(n.data.login="",a.formList=n.data,a.editor=2,a.dialogInfoTradingAdd=!0):a.$pigeon.MessageError(n.msg);case 4:case"end":return r.stop()}}),r)})))()},getAutomaGroupUpdate:function(e){var t=this;return Object(s["a"])(Object(i["a"])().mark((function a(){var r,n;return Object(i["a"])().wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.next=2,l["a"].ProhibitedGroupTypeAddGroupList({});case 2:r=a.sent,r.code==y.StatusOK?(n=e,e.rules.forEach((function(e,a){r.data.forEach((function(r){e.groupType==r.id&&(n.rules[a].groupTypeName="cn"==t.Session.Get("lang")?r.name:r.enName)}))})),t.formInfoTrading=n,t.infoType="Risk-ProhibitedGroupType-Group",t.dialogInfoTrading=!0):t.$pigeon.MessageError(r.msg);case 4:case"end":return a.stop()}}),a)})))()},searchFunc:function(){var e=this;return Object(s["a"])(Object(i["a"])().mark((function t(){var a;return Object(i["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.pictLoading=!0,e.display["R-Risk-ProhibitedGroupType-Group-Search"].show){t.next=5;break}return e.$pigeon.MessageWarning(e.$i18n.t("Msg.NotDisplay")),e.pictLoading=!1,t.abrupt("return");case 5:return null==e.search.date||0==e.search.date.length?(e.search.startDate="",e.search.endDate=""):(e.search.startDate=e.search.date[0],e.search.endDate=e.search.date[1]),t.next=8,l["a"].ProhibitedGroupTypeList(Object(o["a"])(Object(o["a"])({},e.search),{},{page:{current:e.pagerInfo.current,row:e.pagerInfo.row}}));case 8:a=t.sent,a.code==y.StatusOK?(e.mock_tableData=a.data,null!=a.page?(e.pagerInfo.rowTotal=a.page.rowTotal,e.pagerInfo.pageTotal=a.page.pageTotal):e.pagerInfo.rowTotal=0,e.$pigeon.MessageOK(e.$i18n.t("Msg.SearchSuccess"))):e.$pigeon.MessageError(a.msg),e.pictLoading=!1;case 11:case"end":return t.stop()}}),t)})))()},getSearchDate:function(e){this.search.date=e},toSearch:function(){this.pagerInfo.current=1,this.searchFunc()},handleSizeChange:function(e){this.pagerInfo.row=e,this.searchFunc()},handleCurrentChange:function(e){this.pagerInfo.current=e,this.searchFunc()}},mounted:function(){this.searchFunc()}},A=T,C=(a("54e8"),a("6d1f"),Object(h["a"])(A,r,n,!1,null,"60d7e7ae",null));t["default"]=C.exports},c0dd:function(e,t,a){"use strict";a("5a59")},e7ec:function(e,t,a){}}]);