1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0c76f8"],{5139:function(t,e,s){"use strict";s.r(e);var n=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"flex p-5 items-center justify-between bg-white"},[e("div",{staticClass:"flex items-center"},[e("van-image",{attrs:{width:"4rem",height:"4rem",src:this.$settings.logo}}),e("p",{staticClass:"text-xl pl-4"},[t._v(t._s(t.username))])],1),e("van-button",{attrs:{type:"danger",size:"small",color:"#10B981"},on:{click:t.logout}},[t._v("退出登录")])],1),e("div",{staticClass:"flex p-5 items-center justify-around bg-white shadow border-gray-300 border-t border-dashed border-opacity-90"},[e("router-link",{staticClass:"flex items-center justify-around",attrs:{to:"/statis/order"}},[e("van-icon",{staticClass:"text-green-600 text-3xl",attrs:{name:"orders-o"}}),e("span",{staticClass:"pl-2"},[t._v("工单统计")])],1),e("router-link",{staticClass:"flex items-center justify-around",attrs:{to:"/statis/comment"}},[e("van-icon",{staticClass:"text-green-600 text-3xl",attrs:{name:"comment-o"}}),e("span",{staticClass:"pl-2"},[t._v("评价统计")])],1)],1),e("div",{staticClass:"mt-3"},[e("van-cell",{attrs:{title:"手机",value:t.phone,icon:"phone-o"}}),e("van-cell",{attrs:{title:"角色",icon:"friends-o",value:t.role_name}}),e("van-cell",{attrs:{title:"监理列表",icon:"manager-o","is-link":"",to:"/supervisor/list"}}),e("van-cell",{attrs:{title:"修改密码",icon:"setting-o","is-link":"",to:"/personal/password"}})],1)])},a=[],i=(s("14d9"),{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)}))}}}),o=i,r=s("2877"),l=Object(r["a"])(o,n,a,!1,null,null,null);e["default"]=l.exports}}]);
|