webpackJsonp([37],{"Xk+v":function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var n=e("FevL"),i=e("2JP9");n.default.component(i.Badge.name,i.Badge);var o={data:()=>({title:"控制台",token:"",data:{}}),created(){var t=this.$store.getters.getToken;t&&(this.token=t,this.autoLogin())},methods:{goPage(t,a){a?this.$router.push({name:t,query:a}):this.$router.push({name:t})},autoLogin(){this.$axios.post(this.api.adminLogin,{attr:{token:this.token},type:"3"},{withCredentials:!0}).then(t=>{1==t.data.code&&this.getOverview()},t=>{this.$dialog.toast({mes:"管理员登录失败",timeout:1e3})})},getOverview(){this.$axios.get(this.api.adminInfoOverview,{withCredentials:!0}).then(t=>{if(1==t.data.code){var a=t.data.data;this.data=a}},t=>{})}},components:{}},s={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("section",[e("v-title",{attrs:{title:t.title}}),t._v(" "),e("div",{staticClass:"cards p-sm"},[e("div",{staticClass:"card"},[e("h2",[t._v("信息管理")]),t._v(" "),e("p",{on:{click:function(a){t.goPage("adminInfoIndex",{status:"待审核"})}}},[e("i",{staticClass:"iconfont icon-label"}),t._v("待审核 "),t.data.count?e("yd-badge",{attrs:{type:"warning"}},[t._v(t._s(t.data.count.review))]):t._e()],1),t._v(" "),e("p",{on:{click:function(a){t.goPage("adminInfoIndex")}}},[e("i",{staticClass:"iconfont icon-label"}),t._v("全部信息 "),t.data.count?e("yd-badge",{attrs:{type:"warning"}},[t._v(t._s(t.data.count.info))]):t._e()],1),t._v(" "),e("p",{on:{click:function(a){t.goPage("adminInfoRecycle")}}},[e("i",{staticClass:"iconfont icon-label"}),t._v("回收站")])]),t._v(" "),e("div",{staticClass:"card card1 mt-sm"},[e("h2",[t._v("财务管理")]),t._v(" "),e("p",{on:{click:function(a){t.goPage("adminFinanceAdd")}}},[e("i",{staticClass:"iconfont icon-label"}),t._v("添加财务")]),t._v(" "),e("p",{on:{click:function(a){t.goPage("adminFinanceIndex")}}},[e("i",{staticClass:"iconfont icon-label"}),t._v("财务明细")])])])],1)},staticRenderFns:[]};var c=e("D8HT")(o,s,!1,function(t){e("ybXn")},"data-v-014fdfb0",null);a.default=c.exports},ybXn:function(t,a){}});