(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["proxyManage"],{"0cb2":function(e,t,n){var a=n("7b0b"),r=Math.floor,i="".replace,o=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,s=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,c,u,d){var l=n+e.length,f=c.length,p=s;return void 0!==u&&(u=a(u),p=o),i.call(d,p,(function(a,i){var o;switch(i.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,n);case"'":return t.slice(l);case"<":o=u[i.slice(1,-1)];break;default:var s=+i;if(0===s)return a;if(s>f){var d=r(s/10);return 0===d?a:d<=f?void 0===c[d-1]?i.charAt(1):c[d-1]+i.charAt(1):a}o=c[s-1]}return void 0===o?"":o}))}},"14c3":function(e,t,n){var a=n("c6b6"),r=n("9263");e.exports=function(e,t){var n=e.exec;if("function"===typeof n){var i=n.call(e,t);if("object"!==typeof i)throw TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==a(e))throw TypeError("RegExp#exec called on incompatible receiver");return r.call(e,t)}},"16e0":function(e,t,n){"use strict";n.d(t,"m",(function(){return i})),n.d(t,"v",(function(){return o})),n.d(t,"Q",(function(){return s})),n.d(t,"U",(function(){return c})),n.d(t,"h",(function(){return u})),n.d(t,"f",(function(){return d})),n.d(t,"w",(function(){return l})),n.d(t,"P",(function(){return f})),n.d(t,"O",(function(){return p})),n.d(t,"S",(function(){return g})),n.d(t,"x",(function(){return h})),n.d(t,"F",(function(){return m})),n.d(t,"E",(function(){return v})),n.d(t,"L",(function(){return b})),n.d(t,"k",(function(){return x})),n.d(t,"G",(function(){return S})),n.d(t,"H",(function(){return y})),n.d(t,"C",(function(){return w})),n.d(t,"B",(function(){return k})),n.d(t,"I",(function(){return E})),n.d(t,"D",(function(){return C})),n.d(t,"y",(function(){return I})),n.d(t,"K",(function(){return _})),n.d(t,"A",(function(){return N})),n.d(t,"J",(function(){return R})),n.d(t,"z",(function(){return A})),n.d(t,"u",(function(){return D})),n.d(t,"q",(function(){return O})),n.d(t,"p",(function(){return T})),n.d(t,"T",(function(){return L})),n.d(t,"r",(function(){return P})),n.d(t,"t",(function(){return U})),n.d(t,"s",(function(){return F})),n.d(t,"g",(function(){return z})),n.d(t,"b",(function(){return $})),n.d(t,"e",(function(){return M})),n.d(t,"M",(function(){return j})),n.d(t,"c",(function(){return G})),n.d(t,"N",(function(){return V})),n.d(t,"d",(function(){return q})),n.d(t,"i",(function(){return K})),n.d(t,"V",(function(){return B})),n.d(t,"a",(function(){return Y})),n.d(t,"l",(function(){return J})),n.d(t,"n",(function(){return X})),n.d(t,"j",(function(){return H})),n.d(t,"o",(function(){return Q})),n.d(t,"R",(function(){return W})),n.d(t,"Y",(function(){return Z})),n.d(t,"Z",(function(){return ee})),n.d(t,"X",(function(){return te})),n.d(t,"W",(function(){return ne}));var a=n("284b"),r=n("f121"),i=r["a"]+"/admin/dealer/invitation-code/excel/excelDownload",o=function(e){return a["a"].post("/admin/dealer/invitation-code/queryDealerInvitationCodeResult",e)},s=function(e){return a["a"].post("/admin/dealer/invitation-code/saveDealerInvitationCode",e)},c=function(e){return a["a"].post("/admin/dealer/invitation-code/updDealerInvitationCode",e)},u=function(e){return a["a"].get("/admin/dealer/invitation-code/getDealerInvitationCodeResult",{params:e})},d=function(){return a["a"].get("/admin/agent/select/users")},l=function(e){return a["a"].get("/admin/dealer/invitation-code/disabled",{params:e})},f=function(e){return a["a"].post("/admin/dealer/invitation-code/queryDealerInvitationRecordResult",e)},p=function(e){return a["a"].post("/adminv2/dealer/queryInvitationCode",e)},g=function(e){return a["a"].post("/admin/files/getQRCodeBase64",e)},h=function(e){return a["a"].post("/admin/dealer/invitation-record/setStatus",e)},m=function(e){return a["a"].post("/admin/dealer/invitation-code/generateDealerInvitationCode",e)},v=function(e){return a["a"].post("/admin/dealer/invitation-code/queryAgentDealerInvitationRecordResult",e)},b=function(e){return a["a"].get("/admin/agent/goods/lists/".concat(e.agentUserId),{params:e})},x=function(e){return a["a"].post("/admin/course/info/tab/queryCourseInfoAll",e)},S=function(e){return a["a"].post("/admin/member/tab",e)},y=function(e){return a["a"].post("/adminv2/member/lists",e)},w=function(e){return a["a"].post("/adminv2/member/enable",e)},k=function(e){return a["a"].post("/adminv2/member/disable",e)},E=function(e){return a["a"].post("/admin/member/record",e)},C=function(e){return a["a"].get("/admin/member/invalidate",{params:e})},I=function(e){return a["a"].post("/adminv2/member/add",e)},_=function(e){return a["a"].post("/adminv2/member/update",e)},N=function(e){return a["a"].post("/adminv2/member/detail",e)},R=function(e){return a["a"].post("/admin/member/sort",e)},A=function(e){return a["a"].post("/admin/member/delay",e)},D=function(e){return a["a"].post("/admin/agent/users",e)},O=function(e){return a["a"].post("/admin/agent/enable/".concat(e.agentUserId),e)},T=function(e){return a["a"].post("/admin/agent/disable/".concat(e.agentUserId),e)},L=function(e){return a["a"].post("/admin/sys/user/tab",e)},P=function(e){return a["a"].get("/admin/agent/select/label",{params:e})},U=function(e){return a["a"].get("/admin/agent/user/info/".concat(e.agentUserId),{params:e})},F=function(e){return a["a"].post("/admin/agent/setting",e)},z=function(e){return a["a"].post("/admin/agent/update",e)},$=function(e){return a["a"].post("/admin/agent",e)},M=r["a"]+"/admin/agent/export",j=function(e){return a["a"].get("/admin/agent/order/codes/".concat(e.agentUserId),{params:e})},G=function(e){return a["a"].post("/admin/agent/configs",e)},V=function(e){return a["a"].get("/admin/agent/config/".concat(e.id),{params:e})},q=function(e){return a["a"].post("/admin/agent/config/update/".concat(e.id),e)},K=function(e){return a["a"].post("/adminv2/getCouponList",e)},B=function(e){return a["a"].post("/adminv2/upCouponStatus",e)},Y=function(e){return a["a"].post("/adminv2/addCoupon",e)},J=function(e){return a["a"].post("/adminv2/editCoupon",e)},X=function(e){return a["a"].post("/adminv2/getCouponInfo",e)},H=function(e){return a["a"].post("/adminv2/getCouponUseInfo",e)},Q=function(e){return a["a"].post("/adminv2/getMemberAppShow ",e)},W=function(e){return a["a"].post("/adminv2/setMemberAppShow ",e)},Z=function(e){return a["a"].post("/adminv2/shoptask/lists",e)},ee=function(e){return a["a"].post("/adminv2/shoptask/removed",e)},te=function(e){return a["a"].post("/adminv2/shoptask/getOne",e)},ne=function(e){return a["a"].post("/adminv2/shoptask/edit",e)}},"23ed":function(e,t,n){"use strict";n("d952")},"25f0":function(e,t,n){"use strict";var a=n("6eeb"),r=n("825a"),i=n("d039"),o=n("ad6d"),s="toString",c=RegExp.prototype,u=c[s],d=i((function(){return"/a/b"!=u.call({source:"a",flags:"b"})})),l=u.name!=s;(d||l)&&a(RegExp.prototype,s,(function(){var e=r(this),t=String(e.source),n=e.flags,a=String(void 0===n&&e instanceof RegExp&&!("flags"in c)?o.call(e):n);return"/"+t+"/"+a}),{unsafe:!0})},"44e7":function(e,t,n){var a=n("861d"),r=n("c6b6"),i=n("b622"),o=i("match");e.exports=function(e){var t;return a(e)&&(void 0!==(t=e[o])?!!t:"RegExp"==r(e))}},"4d63":function(e,t,n){var a=n("83ab"),r=n("da84"),i=n("94ca"),o=n("7156"),s=n("9bf2").f,c=n("241c").f,u=n("44e7"),d=n("ad6d"),l=n("9f7f"),f=n("6eeb"),p=n("d039"),g=n("69f3").set,h=n("2626"),m=n("b622"),v=m("match"),b=r.RegExp,x=b.prototype,S=/a/g,y=/a/g,w=new b(S)!==S,k=l.UNSUPPORTED_Y,E=a&&i("RegExp",!w||k||p((function(){return y[v]=!1,b(S)!=S||b(y)==y||"/a/i"!=b(S,"i")})));if(E){var C=function(e,t){var n,a=this instanceof C,r=u(e),i=void 0===t;if(!a&&r&&e.constructor===C&&i)return e;w?r&&!i&&(e=e.source):e instanceof C&&(i&&(t=d.call(e)),e=e.source),k&&(n=!!t&&t.indexOf("y")>-1,n&&(t=t.replace(/y/g,"")));var s=o(w?new b(e,t):b(e,t),a?this:x,C);return k&&n&&g(s,{sticky:n}),s},I=function(e){e in C||s(C,e,{configurable:!0,get:function(){return b[e]},set:function(t){b[e]=t}})},_=c(b),N=0;while(_.length>N)I(_[N++]);x.constructor=C,C.prototype=x,f(r,"RegExp",C)}h("RegExp")},"4d6a":function(e,t,n){},5130:function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"padding24 color_white",attrs:{id:"proxy_manage"}},[e.$route.meta.isShow?n("div",[n("a-tabs",{attrs:{activeKey:e.activeKey},on:{change:e.changeTabs}},[n("a-tab-pane",{key:"1",attrs:{tab:"代理列表"}},[1==e.activeKey?n("ProxyList"):e._e()],1),n("a-tab-pane",{key:"2",attrs:{tab:"代理配置"}},[2==e.activeKey?n("ProxyConfig"):e._e()],1)],1),n("a-back-top",{attrs:{target:e.targetFn,visibilityHeight:100}})],1):e._e(),n("router-view")],1)},r=[],i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("div",{staticClass:"top"},[n("div",{staticClass:"top_rigiht"},[n("span",[e._v("代理状态 "),n("a-select",{staticStyle:{width:"120px"},attrs:{getPopupContainer:function(t){return t.parentNode||e.document.body}},on:{change:e.changeForbiddenStatus},model:{value:e.forbiddenStatus,callback:function(t){e.forbiddenStatus=t},expression:"forbiddenStatus"}},e._l(e.forbiddenStatusArr,(function(t){return n("a-select-option",{key:t.key},[e._v(" "+e._s(t.value)+" ")])})),1)],1),n("span",[e._v("代理等级 "),n("a-select",{staticStyle:{width:"120px"},attrs:{getPopupContainer:function(t){return t.parentNode||e.document.body}},on:{change:e.changeAgentLevel},model:{value:e.agentId,callback:function(t){e.agentId=t},expression:"agentId"}},e._l(e.agentLevelArr,(function(t){return n("a-select-option",{key:t.level},[e._v(" "+e._s(t.text)+" ")])})),1)],1),n("span",[e._v(" 手机号 "),n("a-input",{staticStyle:{width:"200px"},attrs:{placeholder:"请输入代理手机号"},on:{pressEnter:e.searchClick},model:{value:e.searchVal,callback:function(t){e.searchVal=t},expression:"searchVal"}})],1),n("p",{staticClass:"s-padded-top"},[n("span",[e._v(" 代理姓名: "),n("a-input",{staticStyle:{width:"200px"},attrs:{placeholder:"请输入代理姓名"},on:{pressEnter:e.searchClick},model:{value:e.searchVal,callback:function(t){e.searchVal=t},expression:"searchVal"}})],1),n("span",[e._v(" 到期时间: "),n("a-range-picker",{on:{change:e.onRangeDateChange}})],1),n("a-button",{attrs:{icon:"search",type:"primary",disabled:e.isDisableSearch},on:{click:e.searchClick}},[e._v("搜索")])],1)])]),n("div",{staticClass:"s-padded-top"},[n("a-button",{directives:[{name:"show",rawName:"v-show",value:e.isShowAdd,expression:"isShowAdd"}],attrs:{icon:"plus",type:"primary"},on:{click:e.addProxy}},[e._v(" 添加代理 ")])],1),n("a-table",{attrs:{columns:e.columns,"data-source":e.tableData,pagination:!1,loading:e.tableLoading,scroll:{x:2100}},scopedSlots:e._u([{key:"agentLevel",fn:function(t,n){return[e._v(" "+e._s(e.renderAgentLevel(t))+" ")]}},{key:"parentAgentName",fn:function(t,n){return[e._v(" "+e._s(t||"无")+" ")]}},{key:"membershipGeneratedNumber",fn:function(t,a){return n("span",{},[n("span",{staticClass:"mr10"},[e._v(e._s(a.membershipGeneratedNumber))]),n("a",{on:{click:function(t){return e.membershipGeneratedNumberClick(a)}}},[e._v("详情")])])}},{key:"orderCount",fn:function(t,a){return n("span",{},[n("span",{staticClass:"mr10"},[e._v(e._s(a.orderCount))]),n("a",{directives:[{name:"show",rawName:"v-show",value:a.orderCount>0,expression:"record.orderCount > 0"}],on:{click:function(t){return e.orderCountClick(a)}}},[e._v("详情")])])}},{key:"commissionSum",fn:function(t,a){return n("span",{},[n("span",{staticClass:"mr10"},[e._v(e._s(a.commissionSum))]),n("a",{directives:[{name:"show",rawName:"v-show",value:a.commissionSum>0&&e.isShowAgent,expression:"record.commissionSum > 0 && isShowAgent"}],on:{click:function(t){return e.commissionClick(a)}}},[e._v("详情")])])}},{key:"forbiddenStatus",fn:function(t,a){return n("span",{},[n("span",{directives:[{name:"show",rawName:"v-show",value:1==a.forbiddenStatus,expression:"record.forbiddenStatus == 1"}]},[e._v("正常")]),n("span",{directives:[{name:"show",rawName:"v-show",value:2==a.forbiddenStatus,expression:"record.forbiddenStatus == 2"}]},[e._v("停用")])])}},{key:"operation",fn:function(t,a){return n("span",{},[n("a",{directives:[{name:"show",rawName:"v-show",value:1==a.forbiddenStatus&&e.isShowDisable,expression:"record.forbiddenStatus == 1 && isShowDisable"}],staticClass:"margin_right20",on:{click:function(t){return e.disableClick(a)}}},[e._v(" 停用 ")]),n("a",{directives:[{name:"show",rawName:"v-show",value:2==a.forbiddenStatus&&e.isShowEnable,expression:"record.forbiddenStatus == 2 && isShowEnable"}],staticClass:"margin_right20",on:{click:function(t){return e.enableClick(a)}}},[e._v(" 启用 ")]),n("a",{directives:[{name:"show",rawName:"v-show",value:e.isShowEdit,expression:"isShowEdit"}],attrs:{disabled:e.isDisabledEdit},on:{click:function(t){return e.editClick(a)}}},[e._v("编辑")])])}}])}),n("MyPagination",{directives:[{name:"show",rawName:"v-show",value:!e.tableLoading,expression:"!tableLoading"}],attrs:{count:e.count,pageNo:e.pageNo},on:{showSizeChangeFn:e.showSizeChangeFn}})],1)},o=[],s=n("ade3"),c=(n("99af"),n("159b"),n("d81d"),n("b64b"),n("6ffe")),u=n("16e0"),d=n("ed3b"),l=n("f64c"),f=n("b893"),p=n("c9d9"),g={components:{MyPagination:c["a"]},created:function(){this.GgentUsersFn(),this.GgentSelectlabelFn(),Object(f["a"])("/admin/agent/setting")&&(this.isShowAdd=!0),Object(f["a"])("/admin/agent/enable/{agentUserId}")&&(this.isShowEnable=!0),Object(f["a"])("/admin/agent/disable/{agentUserId}")&&(this.isShowDisable=!0),Object(f["a"])("/admin/agent")&&(this.isShowAgent=!0),Object(f["a"])("/admin/agent/update")&&(this.isShowEdit=!0)},data:function(){return{isDisableSearch:!1,searchVal:"",tableLoading:!0,pageNo:1,pageSize:20,count:0,forbiddenStatus:"",forbiddenStatusArr:[{key:"",value:"全部状态"},{key:"1",value:"正常"},{key:"2",value:"停用"}],agentId:"",agentLevel:"",dateRange:[],agentLevelArr:[{level:"",text:"全部等级"}],columns:[{title:"账号",fixed:"left",dataIndex:"userName",key:"userName",width:"100px",scopedSlots:{customRender:"userName"}},{title:"姓名",fixed:"left",dataIndex:"realName",key:"realName",width:"100px",scopedSlots:{customRender:"realName"}},{title:"手机号码",dataIndex:"phone",key:"phone",width:"120px",scopedSlots:{customRender:"phone"}},{title:"代理等级",dataIndex:"agentLevel",key:"agentLevel",width:"100px",scopedSlots:{customRender:"agentLevel"}},{title:"上级代理",dataIndex:"parentAgentName",key:"parentAgentName",width:"100px",scopedSlots:{customRender:"parentAgentName"}},{title:"代理区域",dataIndex:"agentRegion",key:"agentRegion",width:"100px",scopedSlots:{customRender:"agentRegion"}},{title:"保证金",dataIndex:"securityDeposit",key:"securityDeposit",width:"100px",scopedSlots:{customRender:"securityDeposit"}},{title:"会员卡预购数",dataIndex:"membershipNumber",key:"membershipNumber",width:"100px",scopedSlots:{customRender:"membershipNumber"}},{title:"已生成会员卡",dataIndex:"membershipGeneratedNumber",key:"membershipGeneratedNumber",width:"100px",scopedSlots:{customRender:"membershipGeneratedNumber"}},{title:"会员卡订单数",dataIndex:"membershipOrderNumber",key:"membershipOrderNumber",width:"100px",scopedSlots:{customRender:"membershipOrderNumber"}},{title:"分成比例",dataIndex:"ratio",key:"ratio",width:"100px",scopedSlots:{customRender:"ratio"}},{title:"精品馆订单数量",dataIndex:"boutiqueOrderNumber",key:"boutiqueOrderNumber",width:"100px",scopedSlots:{customRender:"boutiqueOrderNumber"}},{title:"代理订单数量",dataIndex:"orderCount",key:"orderCount",width:"100px",scopedSlots:{customRender:"orderCount"}},{title:"累计收益",dataIndex:"commissionSum",key:"commissionSum",width:"100px",scopedSlots:{customRender:"commissionSum"}},{title:"可提现收益",dataIndex:"cashableIncome",key:"cashableIncome",width:"100px",scopedSlots:{customRender:"cashableIncome"}},{title:"代理状态",dataIndex:"forbiddenStatus",key:"forbiddenStatus",width:"100px",scopedSlots:{customRender:"forbiddenStatus"}},Object(s["a"])({title:"加入时间",dataIndex:"createTime",width:"12%",sorter:!0,key:"createTime"},"sorter",(function(e,t){var n=new Date(e.createTime).getTime(),a=new Date(t.createTime).getTime();return n-a})),Object(s["a"])({title:"开始时间",dataIndex:"validPeriodStart",width:"12%",sorter:!0,key:"validPeriodStart"},"sorter",(function(e,t){var n=new Date(e.validPeriodStart).getTime(),a=new Date(t.validPeriodStart).getTime();return n-a})),Object(s["a"])({title:"结束时间",dataIndex:"validPeriodEnd",width:"12%",sorter:!0,key:"validPeriodEnd"},"sorter",(function(e,t){var n=new Date(e.validPeriodEnd).getTime(),a=new Date(t.validPeriodEnd).getTime();return n-a})),{title:"操作",key:"operation",dataIndex:"operation",fixed:"right",scopedSlots:{customRender:"operation"}}],tableData:[],isDisabledEdit:!1,isShowAdd:!1,isShowEnable:!1,isShowDisable:!1,isShowAgent:!1,isShowEdit:!1}},methods:{renderAgentLevel:function(e){return p["a"][e]},addProxy:function(){this.$router.push("/marketingCenter/proxyManage/addProxy/0")},changeForbiddenStatus:function(e){this.forbiddenStatus=e,this.GgentUsersFn()},changeAgentLevel:function(e){this.agentLevel=e,this.GgentUsersFn()},onRangeDateChange:function(e,t){this.dateRange=t,this.GgentUsersFn()},searchClick:function(){var e=this;this.tableLoading=!0,this.pageNo=1,this.isDisableSearch=!0,setTimeout((function(){e.isDisableSearch=!1}),3e3),this.GgentUsersFn()},membershipGeneratedNumberClick:function(e){this.$router.push({path:"/marketingCenter/InviteMember",query:{agentUserId:e.agentUserId}})},orderCountClick:function(e){Object(u["M"])({agentUserId:e.agentUserId}).then((function(e){var t=e.code,n=e.data;200==t&&(sessionStorage.setItem("orders",JSON.stringify(n)),location.href="/orderformManage/orderformList")}))},commissionClick:function(e){location.href="/marketingCenter/proxyManage/proxycommission/".concat(e.agentUserId,"/").concat(e.realName,"/").concat(e.agentRegion,"/").concat(e.agentLevel,"/").concat(e.createTime,"/").concat(e.commissionSum)},disableClick:function(e){d["a"].confirm({title:"提示",content:"停用代理后, 相关权限会被取消,是否停用",okText:"确认",okType:"danger",cancelText:"取消",width:"500px",onOk:function(){Object(u["p"])({agentUserId:e.key}).then((function(t){var n=t.code;200==n&&(l["a"].success("停用成功",1),e.forbiddenStatus=2)}))}})},enableClick:function(e){Object(u["q"])({agentUserId:e.key}).then((function(t){var n=t.code;200==n&&(l["a"].success("启用成功",1),e.forbiddenStatus=1)}))},editClick:function(e){var t=this;this.isDisabledEdit=!0,setTimeout((function(){t.isDisabledEdit=!1}),3e3),location.href="/marketingCenter/proxyManage/addProxy/".concat(e.key)},showSizeChangeFn:function(e,t){this.pageNo=e,this.pageSize=t,this.GgentUsersFn()},GgentUsersFn:function(){var e=this;Object(u["u"])({pageNo:this.pageNo,pageSize:this.pageSize,forbiddenStatus:this.forbiddenStatus,agentLevel:this.agentLevel,keyword:this.searchVal}).then((function(t){var n=t.code,a=t.data;200==n&&(e.tableLoading=!1,a.data.forEach((function(e){e.key=e.agentUserId})),e.tableData=a.data,e.count=a.count)}))},GgentSelectlabelFn:function(){var e=Object.keys(p["a"]).map((function(e){return{level:e,text:p["a"][e]}}));this.agentLevelArr=this.agentLevelArr.concat(e)}}},h=g,m=(n("8df2"),n("2877")),v=Object(m["a"])(h,i,o,!1,null,"422c4ad6",null),b=v.exports,x=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("div",{staticClass:"top"},[n("div",{staticClass:"top_left"}),n("div",{staticClass:"top_rigiht"},[n("a-input",{staticStyle:{width:"200px"},attrs:{placeholder:"请输入代理等级名称"},on:{pressEnter:e.searchClick},model:{value:e.searchVal,callback:function(t){e.searchVal=t},expression:"searchVal"}},[n("a-icon",{attrs:{slot:"prefix",type:"search"},slot:"prefix"})],1),n("a-button",{attrs:{icon:"search",type:"primary",disabled:e.isDisableSearch},on:{click:e.searchClick}},[e._v("搜索")])],1)]),n("a-table",{attrs:{columns:e.columns,"data-source":e.tableData,pagination:!1,loading:e.tableLoading},scopedSlots:e._u([{key:"remark",fn:function(t,a){return n("span",{},[n("a-popover",{attrs:{placement:"topLeft"}},[n("template",{slot:"content"},[n("p",{class:a.remark.length>30?"width400":"width_auto"},[e._v(" "+e._s(a.remark)+" ")])]),n("span",[e._v(e._s(a.remark))])],2)],1)}},{key:"operation",fn:function(t,a){return n("span",{},[n("a",{directives:[{name:"show",rawName:"v-show",value:e.isShowEdit,expression:"isShowEdit"}],attrs:{disabled:e.isDisabledEdit},on:{click:function(t){return e.editClick(a)}}},[e._v("编辑")])])}}])}),n("MyPagination",{directives:[{name:"show",rawName:"v-show",value:!e.tableLoading,expression:"!tableLoading"}],attrs:{count:e.count,pageNo:e.pageNo},on:{showSizeChangeFn:e.showSizeChangeFn}})],1)},S=[],y={components:{MyPagination:c["a"]},created:function(){this.AgentConfigsFn(),Object(f["a"])("/admin/agent/config/update/{id}")&&(this.isShowEdit=!0)},data:function(){return{isDisabledEdit:!1,tableLoading:!0,isDisableSearch:!1,searchVal:"",pageNo:1,pageSize:20,count:0,columns:[{title:"代理等级",dataIndex:"agentName",key:"agentName"},{title:"返佣奖励",dataIndex:"commission",key:"commission"},{title:"说明",dataIndex:"remark",key:"remark",width:"50%",ellipsis:!0,scopedSlots:{customRender:"remark"}},{title:"操作",key:"operation",dataIndex:"operation",scopedSlots:{customRender:"operation"}}],tableData:[],isShowEdit:!1}},methods:{editClick:function(e){this.$router.push("/marketingCenter/proxyManage/addProxyConfig/".concat(e.key))},searchClick:function(){var e=this;this.tableLoading=!0,this.pageNo=1,this.isDisableSearch=!0,setTimeout((function(){e.isDisableSearch=!1}),3e3),this.AgentConfigsFn()},showSizeChangeFn:function(e,t){this.pageNo=e,this.pageSize=t,this.AgentConfigsFn()},AgentConfigsFn:function(){var e=this;Object(u["c"])({pageNo:this.pageNo,pageSize:this.pageSize,keyword:this.searchVal}).then((function(t){var n=t.code,a=t.data;200==n&&(e.tableLoading=!1,a.data.forEach((function(e){e.key=e.id,e.remark=""==e.remark?"——":e.remark})),e.tableData=a.data,e.count=a.count)}))}}},w=y,k=(n("23ed"),Object(m["a"])(w,x,S,!1,null,"02b7f4fd",null)),E=k.exports,C={created:function(){var e=localStorage.getItem("proxyActiveKey");this.activeKey=e||"1"},components:{ProxyList:b,ProxyConfig:E},data:function(){return{activeKey:"1"}},methods:{targetFn:function(){return document.querySelector("#proxy_manage")},changeTabs:function(e){this.activeKey=e}}},I=C,_=(n("c9e3"),Object(m["a"])(I,a,r,!1,null,"b09446f2",null));t["default"]=_.exports},5319:function(e,t,n){"use strict";var a=n("d784"),r=n("825a"),i=n("50c4"),o=n("a691"),s=n("1d80"),c=n("8aa5"),u=n("0cb2"),d=n("14c3"),l=Math.max,f=Math.min,p=function(e){return void 0===e?e:String(e)};a("replace",2,(function(e,t,n,a){var g=a.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,h=a.REPLACE_KEEPS_$0,m=g?"$":"$0";return[function(n,a){var r=s(this),i=void 0==n?void 0:n[e];return void 0!==i?i.call(n,r,a):t.call(String(r),n,a)},function(e,a){if(!g&&h||"string"===typeof a&&-1===a.indexOf(m)){var s=n(t,e,this,a);if(s.done)return s.value}var v=r(e),b=String(this),x="function"===typeof a;x||(a=String(a));var S=v.global;if(S){var y=v.unicode;v.lastIndex=0}var w=[];while(1){var k=d(v,b);if(null===k)break;if(w.push(k),!S)break;var E=String(k[0]);""===E&&(v.lastIndex=c(b,i(v.lastIndex),y))}for(var C="",I=0,_=0;_=I&&(C+=b.slice(I,R)+L,I=R+N.length)}return C+b.slice(I)}]}))},5899:function(e,t){e.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},"58a8":function(e,t,n){var a=n("1d80"),r=n("5899"),i="["+r+"]",o=RegExp("^"+i+i+"*"),s=RegExp(i+i+"*$"),c=function(e){return function(t){var n=String(a(t));return 1&e&&(n=n.replace(o,"")),2&e&&(n=n.replace(s,"")),n}};e.exports={start:c(1),end:c(2),trim:c(3)}},"6ffe":function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"pagination"},[n("a-pagination",{attrs:{"page-size-options":e.pageSizeOptions,total:e.count,"show-total":function(e,t){return"总共"+e+"条"},"page-size":e.pageSize,showQuickJumper:"",showSizeChanger:e.showSizeChanger},on:{showSizeChange:e.onShowSizeChange,change:e.onchange},scopedSlots:e._u([{key:"buildOptionText",fn:function(t){return["99"!==t.value?n("span",[e._v(e._s(t.value)+"条/页")]):e._e()]}}]),model:{value:e.current,callback:function(t){e.current=t},expression:"current"}})],1)},r=[],i=(n("a9e3"),{props:{count:{type:Number,defaule:0},pageNo:{type:Number,default:1},showSizeChanger:{type:Boolean,default:!0}},data:function(){return{pageSizeOptions:["20","30","40","50","100","200"],current:1,pageSize:20}},watch:{pageNo:function(e){this.current=e}},created:function(){this.current=this.pageNo},methods:{onShowSizeChange:function(e,t){this.current=1,this.$emit("showSizeChangeFn",e,t),this.pageSize=t},onchange:function(e,t){this.$emit("showSizeChangeFn",e,t)}}}),o=i,s=(n("ae61"),n("2877")),c=Object(s["a"])(o,a,r,!1,null,"ae5bacaa",null);t["a"]=c.exports},7156:function(e,t,n){var a=n("861d"),r=n("d2bb");e.exports=function(e,t,n){var i,o;return r&&"function"==typeof(i=t.constructor)&&i!==n&&a(o=i.prototype)&&o!==n.prototype&&r(e,o),e}},"8aa5":function(e,t,n){"use strict";var a=n("6547").charAt;e.exports=function(e,t,n){return t+(n?a(e,t).length:1)}},"8df2":function(e,t,n){"use strict";n("4d6a")},9263:function(e,t,n){"use strict";var a=n("ad6d"),r=n("9f7f"),i=n("5692"),o=RegExp.prototype.exec,s=i("native-string-replace",String.prototype.replace),c=o,u=function(){var e=/a/,t=/b*/g;return o.call(e,"a"),o.call(t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),d=r.UNSUPPORTED_Y||r.BROKEN_CARET,l=void 0!==/()??/.exec("")[1],f=u||l||d;f&&(c=function(e){var t,n,r,i,c=this,f=d&&c.sticky,p=a.call(c),g=c.source,h=0,m=e;return f&&(p=p.replace("y",""),-1===p.indexOf("g")&&(p+="g"),m=String(e).slice(c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&"\n"!==e[c.lastIndex-1])&&(g="(?: "+g+")",m=" "+m,h++),n=new RegExp("^(?:"+g+")",p)),l&&(n=new RegExp("^"+g+"$(?!\\s)",p)),u&&(t=c.lastIndex),r=o.call(f?n:c,m),f?r?(r.input=r.input.slice(h),r[0]=r[0].slice(h),r.index=c.lastIndex,c.lastIndex+=r[0].length):c.lastIndex=0:u&&r&&(c.lastIndex=c.global?r.index+r[0].length:t),l&&r&&r.length>1&&s.call(r[0],n,(function(){for(i=1;i2)if(u=m(u),t=u.charCodeAt(0),43===t||45===t){if(n=u.charCodeAt(2),88===n||120===n)return NaN}else if(48===t){switch(u.charCodeAt(1)){case 66:case 98:a=2,r=49;break;case 79:case 111:a=8,r=55;break;default:return+u}for(i=u.slice(2),o=i.length,s=0;sr)return NaN;return parseInt(i,a)}return+u};if(i(v,!b(" 0o1")||!b("0b1")||b("+0x1"))){for(var w,k=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof k&&(S?l((function(){x.valueOf.call(n)})):c(n)!=v)?u(new b(y(t)),n,k):y(t)},E=a?p(b):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,fromString,range".split(","),C=0;E.length>C;C++)s(b,w=E[C])&&!s(k,w)&&h(k,w,g(b,w));k.prototype=x,x.constructor=k,o(r,v,k)}},ac1f:function(e,t,n){"use strict";var a=n("23e7"),r=n("9263");a({target:"RegExp",proto:!0,forced:/./.exec!==r},{exec:r})},ad6d:function(e,t,n){"use strict";var a=n("825a");e.exports=function(){var e=a(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},ade3:function(e,t,n){"use strict";function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",(function(){return a}))},ae61:function(e,t,n){"use strict";n("96b4")},b64b:function(e,t,n){var a=n("23e7"),r=n("7b0b"),i=n("df75"),o=n("d039"),s=o((function(){i(1)}));a({target:"Object",stat:!0,forced:s},{keys:function(e){return i(r(e))}})},b893:function(e,t,n){"use strict";n.d(t,"e",(function(){return o})),n.d(t,"b",(function(){return c})),n.d(t,"d",(function(){return u})),n.d(t,"a",(function(){return d})),n.d(t,"c",(function(){return l}));n("ac1f"),n("5319"),n("4d63"),n("25f0"),n("d81d"),n("159b");var a,r=n("c1df"),i=n.n(r),o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;a||(a=!0,setTimeout((function(){a=!1,"function"===typeof e&&e()}),t))},s=null,c=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;null!==s&&clearTimeout(s),s=setTimeout((function(){"function"===typeof e&&e()}),t)},u=function(e,t){var n={"M+":e.getMonth()+1,"d+":e.getDate(),"H+":e.getHours(),"m+":e.getMinutes(),"s+":e.getSeconds(),"q+":Math.floor((e.getMonth()+3)/3),S:e.getMilliseconds()};for(var a in/(y+)/.test(t)&&(t=t.replace(RegExp.$1,(e.getFullYear()+"").substr(4-RegExp.$1.length))),n)new RegExp("("+a+")").test(t)&&(t=t.replace(RegExp.$1,1==RegExp.$1.length?n[a]:("00"+n[a]).substr((""+n[a]).length)));return t},d=function(e){var t=JSON.parse(localStorage.getItem("powerListArr")),n="";return t.map((function(t){t.children.forEach((function(t){t.code==e&&(n=e),t.children.forEach((function(t){t.code==e&&(n=e)}))}))})),n},l=function(e){return e&&e")})),u=function(){return"$0"==="a".replace(/./,"$0")}(),d=i("replace"),l=function(){return!!/./[d]&&""===/./[d]("a","$0")}(),f=!r((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));e.exports=function(e,t,n,d){var p=i(e),g=!r((function(){var t={};return t[p]=function(){return 7},7!=""[e](t)})),h=g&&!r((function(){var t=!1,n=/a/;return"split"===e&&(n={},n.constructor={},n.constructor[s]=function(){return n},n.flags="",n[p]=/./[p]),n.exec=function(){return t=!0,null},n[p](""),!t}));if(!g||!h||"replace"===e&&(!c||!u||l)||"split"===e&&!f){var m=/./[p],v=n(p,""[e],(function(e,t,n,a,r){return t.exec===RegExp.prototype.exec?g&&!r?{done:!0,value:m.call(t,n,a)}:{done:!0,value:e.call(n,t,a)}:{done:!1}}),{REPLACE_KEEPS_$0:u,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:l}),b=v[0],x=v[1];a(String.prototype,e,b),a(RegExp.prototype,p,2==t?function(e,t){return x.call(e,this,t)}:function(e){return x.call(e,this)})}d&&o(RegExp.prototype[p],"sham",!0)}},d952:function(e,t,n){}}]); //# sourceMappingURL=proxyManage.0b98bc94.js.map