(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-41006aeb"],{1303:function(e,t,a){},"8e3e":function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[e._m(0),a("div",{staticClass:"app-container--bd clearfix"},[a("el-row",{attrs:{gutter:10}},[a("el-col",{staticClass:"el-col",attrs:{xs:24,sm:12,md:10,lg:8,xl:6}},[a("el-card",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"box-card",nativeOn:{click:function(t){return e.handleFnAgent.apply(null,arguments)}}},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("span",[e._v("业务")])]),e._l(e.routes,(function(t,n){return a("div",{key:n,class:["text",t.id&&t.meta&&t.meta.title&&!t.hidden?"item":"",e.second_route_id==t.id?"active":""],attrs:{"data-id":t.id}},[t.id&&t.meta&&t.meta.title&&!t.hidden?a("span",{attrs:{slot:"title","data-id":t.id},slot:"title"},[e._v(e._s(t.meta.title))]):e._e()])}))],2)],1),a("el-col",{staticClass:"el-col",attrs:{xs:24,sm:12,md:10,lg:8,xl:6}},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("span",[e._v("功能")])]),e._l(e.three_level_list,(function(t){return a("div",{key:t.id,class:["text",t.meta&&t.meta.title&&!t.hidden?"item":""]},[2!=t.auth_level||t.hidden?e._e():a("el-checkbox",{attrs:{checked:1==t.is_work},on:{change:function(a){return e.change(t)}}},[e._v("\n              "+e._s(t.meta.title)+"\n            ")])],1)}))],2)],1)],1)],1)])},i=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container--hd pb-20"},[a("h3",[e._v("工作台快捷入口授权")])])}],r=(a("2397"),a("96cf"),a("1da1")),s=a("d4ec"),c=a("bee2"),l=a("99de"),o=a("7e84"),u=a("262e"),d=a("9ab4"),h=a("60a3"),v=a("9459"),_=a("f727");function f(e,t,a){return t=Object(o["a"])(t),Object(l["a"])(e,p()?Reflect.construct(t,a||[],Object(o["a"])(e).constructor):t.apply(e,a))}function p(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(p=function(){return!!e})()}var m=function(e){function t(){var e;return Object(s["a"])(this,t),e=f(this,t,arguments),e.second_route_id=0,e.three_level_list=[],e.routes=[],e.loading=!1,e}return Object(u["a"])(t,e),Object(c["a"])(t,[{key:"handleFnAgent",value:function(e){this.second_route_id=+e.target.dataset.id}},{key:"getThreeLevel",value:function(){this.three_level_list=[];for(var e=0;e<this.routes.length;e++){if(this.second_route_id===this.routes[e].id)return this.three_level_list=this.routes[e].children,void(this.loading=!1);this.loading=!1}}},{key:"created",value:function(){this.GetStadiumMenu()}},{key:"change",value:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(t){var a,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a={is_work:1===t.is_work?2:1,auth_id:t.id},e.next=3,Object(_["i"])(a);case 3:n=e.sent,n.data,this.GetStadiumMenu();case 6:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"GetStadiumMenu",value:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){var t,a,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.loading=!0,t={root_id:2,sales_id:JSON.parse(sessionStorage.getItem("SALES_ID"))},e.next=4,Object(_["ab"])(t);case 4:a=e.sent,n=a.data,this.routes=JSON.parse(JSON.stringify(n)),this.getThreeLevel();case 8:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()}]),t}(Object(h["d"])(v["a"]));Object(d["a"])([Object(h["j"])("second_route_id")],m.prototype,"getThreeLevel",null),m=Object(d["a"])([Object(h["a"])({components:{}})],m);var g=m,b=g,O=(a("9c93"),a("2877")),k=Object(O["a"])(b,n,i,!1,null,"9574c244",null);t["default"]=k.exports},"9c93":function(e,t,a){"use strict";a("1303")}}]);