12 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-97c86020"],{"21bb":function(t,e,n){"use strict";n("68aa")},"68aa":function(t,e,n){},bb51:function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-container",[n("el-header",[n("div",{staticClass:"header"},[n("div",{staticClass:"siteTitle"},[t._v("泰德合众四封审读工作平台")])]),n("div",{staticClass:"nav"},[n("a",[t._v("审读管理")]),n("div",{staticClass:"setting"},[n("i",{staticClass:"el-icon-message-solid"}),n("el-dropdown",[n("span",{staticClass:"el-dropdown-link"},[t._v("\n\t\t\t\t\t\t"+t._s(t.info.name)),n("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),n("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[n("el-dropdown-item",[t._v("修改密码")])],1)],1),n("span",{staticClass:"logout",on:{click:t.logout}},[t._v("退出登陆")])],1)])]),n("el-container",{staticClass:"main"},[n("el-aside",{staticClass:"left-aside",attrs:{width:"210px"}},[n("el-menu",{staticClass:"left-menue",attrs:{"background-color":"#ffffff","text-color":"#666666","unique-opened":!1,"default-active":"/"+t.$route.path.split("/")[1],router:"","active-text-color":"#3895FE"}},[t._l(t.$router.options.routes,(function(e,a){return[e.show&&e.isLeaf&&e.role==t.info.role?n("el-menu-item",{key:a,attrs:{index:e.path}},[n("i",{class:e.icon}),n("span",{attrs:{slot:"title"},slot:"title"},[t._v(t._s(e.name))])]):t._e()]}))],2)],1),n("el-container",[n("el-main",[n("transition",{attrs:{name:"fade",mode:"out-in"}},[n("router-view")],1)],1)],1)],1)],1)},o=[],i={name:"home",data:function(){return{info:{},role:1}},methods:{getDate:function(){this.now=(new Date).toLocaleDateString()+" "+(new Date).toLocaleTimeString()},logout:function(){var t=this;this.$api.logout().then((function(e){t.$router.push({path:"/"})}))},getData:function(){var t=this;this.$api.getAccountInfo().then((function(e){e.code||(t.info=e.data.data)}))}},created:function(){this.getData()}},s=i,l=(n("21bb"),n("5d22")),r=Object(l["a"])(s,a,o,!1,null,null,null);e["default"]=r.exports}}]);
- //# sourceMappingURL=chunk-97c86020.0d670a4d.js.map
|