(window.webpackJsonp=window.webpackJsonp||[]).push([[44],{262:function(t,i,e){"use strict";e.r(i);var s=e(533),n=e(351);for(var a in n)"default"!==a&&function(t){e.d(i,t,(function(){return n[t]}))}(a);e(482);var r=e(7),l=Object(r.a)(n.default,s.a,s.b,!1,null,"7d2ab5c8",null);i.default=l.exports},351:function(t,i,e){"use strict";e.r(i);var s=e(352),n=e.n(s);for(var a in s)"default"!==a&&function(t){e.d(i,t,(function(){return s[t]}))}(a);i.default=n.a},352:function(t,i,e){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var s,n=e(113),a=(s=n)&&s.__esModule?s:{default:s};i.default={components:{},data:function(){var t=window.G.UserInfo;return console.log(t),{imgUrl:t.avatar||"",user:{student_no:t.student_info.sno,student_name:t.student_info.personal_name,student_id:t.student_info.id,sso_id:t.id},file:{id:"WU_FILE_0",name:"",type:"",lastModifiedDate:"",size:"",avatar:""},filesArr:[]}},methods:{handleChange:function(t,i){this.file.name=t.raw.name,this.file.type=t.raw.type,this.file.lastModifiedDate=t.raw.lastModifiedDate,this.file.size=t.raw.size,this.file.avatar=t.raw},uploadFile:function(){var t=this;if(!/\.(jpg|jpeg|gif|png|bmp)$/gi.test(this.file.name))return this.$message.error("文件格式不对，请重新上传"),void this.filesArr.pop();var i=this.$loading({lock:!0,text:"",spinner:"",background:"rgba(255, 255, 255, 0.9)"});a.default.Other.uploadFile(this.file).then((function(i){t.imgUrl=i.avatar,window.G.UserInfo.avatar=i.avatar,t.filesArr.pop()})).catch((function(){t.filesArr.pop()})).finally((function(){i.close()}))}}}},353:function(t,i,e){},482:function(t,i,e){"use strict";var s=e(353);e.n(s).a},533:function(t,i,e){"use strict";e.d(i,"a",(function(){return s})),e.d(i,"b",(function(){return n}));var s=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",[e("div",{staticClass:"con-title"},[t._v("修改头像")]),t._v(" "),e("div",{staticClass:"con-box"},[e("el-row",{attrs:{justify:"center"}},[e("el-col",{attrs:{xs:24,sm:9,md:8,lg:7,xl:6}},[e("div",{staticClass:"pic-show"},[e("img",{attrs:{src:t.imgUrl,alt:""}})])]),t._v(" "),e("el-col",{attrs:{xs:24,sm:15,md:16,lg:17,xl:18}},[e("div",{staticClass:"info"},[t._v("\n          学员姓名：\n          "),e("b",[t._v(t._s(t.user.student_name))])]),t._v(" "),e("div",{staticClass:"info"},[t._v("学员学号："+t._s(t.user.student_no))]),t._v(" "),e("div",{staticClass:"info",staticStyle:{display:"none"}},[t._v("学员sid："+t._s(t.user.student_id))]),t._v(" "),e("div",{staticClass:"info",staticStyle:{display:"none"}},[t._v("学员sso_id："+t._s(t.user.sso_id))]),t._v(" "),e("div",{staticClass:"info"},[t._v("支持jpg、gif、png或bmp格式的图片，建议文件小于5M")]),t._v(" "),e("el-upload",{ref:"upFile",staticClass:"upload-demo",attrs:{action:"",multiple:!1,limit:1,"show-file-list":!1,"on-change":t.handleChange,"http-request":t.uploadFile,"file-list":t.filesArr}},[e("el-button",{attrs:{type:"primary"}},[t._v("点击上传")])],1)],1)],1)],1)])},n=[]}}]);