1 |
- webpackJsonp([8],{"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}},Pod6:function(e,t,n){(t=n("yGwj")(!0)).push([e.i,"\n.demo {\n font-size: 32px;\n}\n.el-form-item {\n /*max-height: 120px !important;*/\n}\n","",{version:3,sources:["UserDetail.vue"],names:[],mappings:";AACA;EACE,eAAe;AACjB;AACA;EACE,gCAAgC;AAClC",file:"UserDetail.vue",sourcesContent:["\n.demo {\n font-size: 32px;\n}\n.el-form-item {\n /*max-height: 120px !important;*/\n}\n"]}]),e.exports=t},Tuln:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n("bOdI"),r=n.n(a),i=n("SQ4B"),o=n("b9vf"),s=n("qI5z"),u=n("vGYV"),l={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(),i.a.get(o.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(s.a)("error","打开详情失败:"+t.data)})},setUserInfo:function(){this.user=Object(u.M)("user")},showLoading:function(){this.loading=!0},hideLoading:function(){this.loading=!1}},watch:{userType:function(e){this.userType=e}}},d=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)])};d._withStripped=!0;var c={render:d,staticRenderFns:[]},f=c;var p=!1;var m=n("VU/8")(l,f,!1,function(e){p||n("l4RW")},null,null);m.options.__file="src/pages/DetailPage/UserDetail.vue";t.default=m.exports},bOdI:function(e,t,n){"use strict";t.__esModule=!0;var a,r=n("C4MV"),i=(a=r)&&a.__esModule?a:{default:a};t.default=function(e,t,n){return t in e?(0,i.default)(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},l4RW:function(e,t,n){var a=n("Pod6");"string"==typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);n("rjj0")("755bd174",a,!1,{})},mClu:function(e,t,n){var a=n("kM2E");a(a.S+a.F*!n("+E39"),"Object",{defineProperty:n("evD5").f})}});
|