(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6bbf78ea"],{"0fea":function(t,e,n){"use strict";n.d(e,"R",(function(){return u})),n.d(e,"S",(function(){return a})),n.d(e,"v",(function(){return i})),n.d(e,"u",(function(){return s})),n.d(e,"w",(function(){return o})),n.d(e,"y",(function(){return c})),n.d(e,"j",(function(){return l})),n.d(e,"r",(function(){return f})),n.d(e,"t",(function(){return p})),n.d(e,"o",(function(){return h})),n.d(e,"l",(function(){return m})),n.d(e,"m",(function(){return y})),n.d(e,"x",(function(){return T})),n.d(e,"c",(function(){return E})),n.d(e,"b",(function(){return q})),n.d(e,"q",(function(){return v})),n.d(e,"p",(function(){return g})),n.d(e,"d",(function(){return I})),n.d(e,"k",(function(){return O})),n.d(e,"h",(function(){return P})),n.d(e,"i",(function(){return k})),n.d(e,"e",(function(){return G})),n.d(e,"a",(function(){return b})),n.d(e,"g",(function(){return w})),n.d(e,"f",(function(){return R})),n.d(e,"s",(function(){return L})),n.d(e,"n",(function(){return S})),n.d(e,"X",(function(){return C})),n.d(e,"C",(function(){return D})),n.d(e,"U",(function(){return U})),n.d(e,"F",(function(){return B})),n.d(e,"N",(function(){return A})),n.d(e,"O",(function(){return K})),n.d(e,"A",(function(){return _})),n.d(e,"H",(function(){return x})),n.d(e,"G",(function(){return F})),n.d(e,"I",(function(){return N})),n.d(e,"J",(function(){return W})),n.d(e,"E",(function(){return J})),n.d(e,"W",(function(){return j})),n.d(e,"V",(function(){return M})),n.d(e,"K",(function(){return z})),n.d(e,"L",(function(){return $})),n.d(e,"P",(function(){return H})),n.d(e,"Q",(function(){return Q})),n.d(e,"B",(function(){return V})),n.d(e,"z",(function(){return X})),n.d(e,"D",(function(){return Y})),n.d(e,"M",(function(){return Z})),n.d(e,"T",(function(){return tt}));n("ac1f"),n("5319"),n("2ca0");var r=n("4667"),u={list:function(t,e){return r["a"].request({url:t,method:"GET",params:e},!0,!0,!1)},add:function(t,e){return r["a"].request({url:t,method:"POST",data:e},!0,!0,!1)},getById:function(t,e){return r["a"].request({url:t+"/"+e,method:"GET"},!0,!0,!1)},updateById:function(t,e,n){return r["a"].request({url:t+"/"+e,method:"PUT",data:n},!0,!0,!1)},delById:function(t,e){return r["a"].request({url:t+"/"+e,method:"DELETE"},!0,!0,!1)}},a={list:function(t,e){return r["a"].request({url:t,method:"GET",params:e},!0,!0,!0)},add:function(t,e){return r["a"].request({url:t,method:"POST",data:e},!0,!0,!0)},getById:function(t,e){return r["a"].request({url:t+"/"+e,method:"GET"},!0,!0,!0)},updateById:function(t,e,n){return r["a"].request({url:t+"/"+e,method:"PUT",data:n},!0,!0,!0)},delById:function(t,e){return r["a"].request({url:t+"/"+e,method:"DELETE"},!0,!0,!0)}},i="/api/sysRoles",s="/api/sysRoleEntRelas",o="/api/sysUsers",c="/api/sysUserRoleRelas",d="api/mainChart",l="/api/mchApps",f="/api/payOrder",p="/api/refundOrder",h="/api/payWays",m="/api/mch/payConfigs",y="/api/mch/payPassages",T="/api/transferOrders",E="/api/divisionReceiverGroups",q="/api/divisionReceivers",v="/api/division/records",g="/api/mchBalance",I="/api/mchBalance/getMerchantWallet",O="/api/mchWalletLog",P="/api/merchant/withdrawal/list",k="/api/merchant/withdrawal/save",G="/api/merchant/settlement/list",b="/api/blacklist",w="/api/blacklist/save",R="/api/blacklist",L="/api/recharge",S="/api/offline",C={avatar:r["a"].baseUrl+"/api/ossFiles/avatar",cert:r["a"].baseUrl+"/api/ossFiles/cert"};function D(){return r["a"].request({url:"/api/sysEnts/showTree",method:"GET"})}function U(t,e){return r["a"].request({url:"api/sysUserRoleRelas/relas/"+t,method:"POST",data:{roleIdListStr:JSON.stringify(e)}})}function B(t,e){return r["a"].request({url:"/api/mch/payConfigs/"+t+"/"+e,method:"get"})}function A(t){return r["a"].request({url:"api/paytest/payways/"+t,method:"GET"})}function K(t){return r["a"].request({url:"/api/paytest/payOrders",method:"POST",data:t})}function _(t,e){return r["a"].request({url:"/api/mch/payPassages/availablePayInterface/"+t+"/"+e,method:"GET"})}function x(){return r["a"].request({url:d+"/payAmountWeek",method:"GET"})}function F(){return r["a"].request({url:d+"/numCount",method:"GET"})}function N(t){return r["a"].request({url:d+"/payCount",method:"GET",params:t})}function W(t){return r["a"].request({url:d+"/payTypeCount",method:"GET",params:t})}function J(){return r["a"].request({url:d,method:"GET"})}function j(t){return r["a"].request({url:"/api/current/modifyPwd",method:"put",data:t})}function M(t){return r["a"].request({url:"/api/current/user",method:"put",data:t})}function z(){return r["a"].request({url:"/api/current/user",method:"get"})}function $(){var t=document.location.protocol+"//"+document.location.host;return t.startsWith("https:")?"wss://"+t.replace("https://",""):"ws://"+t.replace("http://","")}function H(t){return r["a"].request({url:"/api/mch/payConfigs/alipayIsvsubMchAuthUrls/"+t,method:"GET"})}function Q(t){return r["a"].request({url:"api/mchTransfers/ifCodes/"+t,method:"GET"})}function V(t,e,n){return r["a"].request({url:"/api/mchTransfers/channelUserId",method:"GET",params:{ifCode:t,appId:e,extParam:n}})}function X(t){return r["a"].request({url:"/api/mchTransfers/doTransfer",method:"POST",data:t},!0,!0,!0)}function Y(t){return r["a"].request({url:"/api/mch/payConfigs/ifCodes/"+t,method:"GET"},!0,!0,!0)}function Z(t,e,n){return r["a"].request({url:"/api/payOrder/refunds/"+t,method:"POST",data:{refundAmount:e,refundReason:n}})}function tt(t){return r["a"].request({url:"/api/division/records/resend/"+t,method:"POST"})}},"440a":function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t._self._c;return e("div",{staticStyle:{"padding-bottom":"50px"}},[t.hasEnt?e("p",[t._v(t._s(t.$t("Please select permissions"))+"： ")]):t._e(),e("a-tree",{attrs:{"tree-data":t.treeData,replaceFields:t.replaceFields,checkable:!0},model:{value:t.checkedKeys,callback:function(e){t.checkedKeys=e},expression:"checkedKeys"}})],1)},u=[],a=(n("d81d"),n("0fea")),i=n("8938"),s=(i["a"].messages[i["a"].locale],{data:function(){return{hasEnt:this.$access("ENT_UR_ROLE_DIST"),recordId:null,treeData:[],replaceFields:{key:"entId",title:"entName"},checkedKeys:[],allEntList:{}}},methods:{initTree:function(t){var e=this,n=this;if(!this.hasEnt)return!1;n.checkedKeys=[],n.treeData=[],n.allEntList={},n.recordId=t,Object(a["C"])().then((function(r){n.treeData=r,e.recursionTreeData(r,(function(t){n.allEntList[t.entId]={pid:t.pid,children:t.children||[]}})),a["R"].list(a["u"],{roleId:t||"NONE",pageSize:-1}).then((function(t){var e=[];t.records.map((function(t){n.allEntList[t.entId]&&n.allEntList[t.entId].children.length<=0&&e.push(t.entId)})),n.checkedKeys=e}))}))},getSelectedEntIdList:function(){if(!this.hasEnt)return!1;var t=this,e=[];return this.checkedKeys.map((function(n){var r=[];t.getAllPid(n,r),r.map((function(t){e.indexOf(t)<0&&e.push(t)}))})),e},recursionTreeData:function(t,e){for(var n=0;n<t.length;n++){var r=t[n];r.children&&r.children.length>0&&this.recursionTreeData(r.children,e),e(r)}},getAllPid:function(t,e){this.allEntList[t]&&"ROOT"!==t&&(e.push(t),this.getAllPid(this.allEntList[t].pid,e))}}}),o=s,c=n("2877"),d=Object(c["a"])(o,r,u,!1,null,null,null);e["default"]=d.exports}}]);