webpackJsonp([10],{"9bBU":function(e,t,n){n("mClu");var a=n("FeBl").Object;e.exports=function(e,t,n){return a.defineProperty(e,t,n)}},C4MV:function(e,t,n){e.exports={default:n("9bBU"),__esModule:!0}},D5PT:function(e,t){},Tuln:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n("bOdI"),r=n.n(a),o=n("SQ4B"),s=n("b9vf"),i=n("qI5z"),u=n("vGYV"),d={name:"UserDetail",components:{},data:function(){return r()({user:{},loading:!1,defaultValue:u.c,id:0},"user",{name:"",photo:"",taskCount:"",address:"",gender:""})},mounted:function(){var e=this;this.$nextTick(function(){e.init()})},methods:{init:function(){this.id=this.$route.query.id,this.loadData()},back:function(){this.$router.go(-1)},loadData:function(){var e=this;this.showLoading(),o.a.get(s.a.USER.GET_DETAIL.replace("{userId}",this.id)).then(function(t){console.log(t),e.user.name=t.data.name,e.user.photo=t.data.photoUrl,e.user.gender=t.data.gender,e.user.taskCount=t.data.taskCount,e.user.address=t.data.address,e.hideLoading()}).catch(function(t){e.hideLoading(),Object(i.a)("error","打开详情失败:"+t.data)})},setUserInfo:function(){this.user=Object(u.K)("user")},showLoading:function(){this.loading=!0},hideLoading:function(){this.loading=!1}},watch:{userType:function(e){this.userType=e}}},l={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"create-container"},[n("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"create-body"},[n("el-form",{staticClass:"demo",attrs:{model:e.user,"label-width":"12%"}},[n("el-form-item",{attrs:{label:"用户名称",prop:"name"}},[n("span",[e._v(e._s(e.user.name))])]),e._v(" "),n("el-form-item",{attrs:{label:"用户图标",prop:"photo"}},[n("img",{staticStyle:{width:"50px",height:"50px"},attrs:{src:null==e.user.photo?e.defaultValue.image:e.user.photo}})]),e._v(" "),null!=e.user.gender&&""!=e.user.gender?n("el-form-item",{attrs:{label:"性别",prop:"gender"}},[n("span",[e._v(e._s(e.user.gender))])]):e._e(),e._v(" "),n("el-form-item",{attrs:{label:"接包次数",prop:"count"}},[n("span",[e._v(e._s(e.user.taskCount))])]),e._v(" "),n("el-form-item",[n("div",{staticClass:"btn btn-medium",on:{click:function(t){return e.back()}}},[e._v("返回")])])],1)],1)])},staticRenderFns:[]};var c=n("VU/8")(d,l,!1,function(e){n("D5PT")},null,null);t.default=c.exports},bOdI:function(e,t,n){"use strict";t.__esModule=!0;var a,r=n("C4MV"),o=(a=r)&&a.__esModule?a:{default:a};t.default=function(e,t,n){return t in e?(0,o.default)(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},mClu:function(e,t,n){var a=n("kM2E");a(a.S+a.F*!n("+E39"),"Object",{defineProperty:n("evD5").f})}});