1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d2259db"],{e4c9:function(t,e,s){"use strict";s.r(e);var n=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("div",{staticClass:"flex p-5 items-center justify-between bg-white"},[s("div",{staticClass:"flex items-center"},[s("van-image",{attrs:{width:"4rem",height:"4rem",src:this.$settings.logo}}),s("p",{staticClass:"text-xl pl-4"},[t._v(t._s(t.username))])],1),s("van-button",{attrs:{type:"danger",size:"small",color:"#10B981"},on:{click:t.logout}},[t._v("退出登录")])],1),s("div",{staticClass:"flex p-5 items-center justify-around bg-white shadow border-gray-300 border-t border-dashed border-opacity-90"},[s("router-link",{staticClass:"flex items-center justify-around",attrs:{to:"/statis/order"}},[s("van-icon",{staticClass:"text-green-600 text-3xl",attrs:{name:"orders-o"}}),s("span",{staticClass:"pl-2"},[t._v("工单统计")])],1),s("router-link",{staticClass:"flex items-center justify-around",attrs:{to:"/statis/comment"}},[s("van-icon",{staticClass:"text-green-600 text-3xl",attrs:{name:"comment-o"}}),s("span",{staticClass:"pl-2"},[t._v("评价统计")])],1)],1),s("div",{staticClass:"mt-3"},[s("van-cell",{attrs:{title:"手机",value:t.phone,icon:"phone-o"}}),s("van-cell",{attrs:{title:"角色",icon:"friends-o",value:t.role_name}}),s("van-cell",{attrs:{title:"修改密码",icon:"setting-o","is-link":"",to:"/personal/password"}})],1)])},a=[],o={data:function(){return{username:"",role_name:"",phone:""}},mounted:function(){this.username=this.$store.getters.username,this.phone=this.$store.getters.phone,this.role_name=this.$store.getters.role_name},methods:{logout:function(){var t=this;this.$dialog.confirm({title:"提示",message:"确定要退出登录吗?"}).then((function(){t.$store.dispatch("user/logout").then((function(){t.$router.push("/login?redirect=".concat(t.$route.fullPath))}))})).catch((function(t){console.log(t)}))}}},i=o,r=s("2877"),l=Object(r["a"])(i,n,a,!1,null,null,null);e["default"]=l.exports}}]);
|