(window.webpackJsonp=window.webpackJsonp||[]).push([[21],{283:function(t,i,a){"use strict";a.r(i);var e=a(512),s=a(370);for(var n in s)"default"!==n&&function(t){a.d(i,t,function(){return s[t]})}(n);a(458);var l=a(0),r=Object(l.a)(s.default,e.a,e.b,!1,null,"6e3d1ad2",null);i.default=r.exports},370:function(t,i,a){"use strict";a.r(i);var e=a(371),s=a.n(e);for(var n in e)"default"!==n&&function(t){a.d(i,t,function(){return e[t]})}(n);i.default=s.a},371:function(t,i,a){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var e=a(48);i.default={components:{},data:function(){var t=this.$GlobalVariable.UserInfo;return{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 i=this;if(!/\.(jpg|jpeg|gif|png|bmp)$/gi.test(this.file.name))return this.$message.error("文件格式不对，请重新上传"),void this.filesArr.pop();var t=this.$loading({lock:!0,text:"",spinner:"",background:"rgba(255, 255, 255, 0.9)"});(0,e.request)({component:this,actionName:"loginAction",functionName:"updatePic",data:this.file,thenCallback:function(t){i.imgUrl=t.avatar,i.$GlobalVariable.UserInfo.avatar=t.avatar,i.filesArr.pop()},catchCallback:function(){i.filesArr.pop()},finallyCallback:function(){t.close()}})}}}},372:function(t,i,a){},458:function(t,i,a){"use strict";var e=a(372);a.n(e).a},512:function(t,i,a){"use strict";function e(){var t=this,i=t.$createElement,a=t._self._c||i;return a("div",[a("div",{staticClass:"con-title"},[t._v("修改头像")]),t._v(" "),a("div",{staticClass:"con-box"},[a("el-row",{attrs:{justify:"center"}},[a("el-col",{attrs:{xs:24,sm:9,md:8,lg:7,xl:6}},[a("div",{staticClass:"pic-show"},[a("img",{attrs:{src:t.imgUrl,alt:""}})])]),t._v(" "),a("el-col",{attrs:{xs:24,sm:15,md:16,lg:17,xl:18}},[a("div",{staticClass:"info"},[t._v("学员姓名："),a("b",[t._v(t._s(t.user.student_name))])]),t._v(" "),a("div",{staticClass:"info"},[t._v("学员学号："+t._s(t.user.student_no))]),t._v(" "),a("div",{staticClass:"info",staticStyle:{display:"none"}},[t._v("学员sid："+t._s(t.user.student_id))]),t._v(" "),a("div",{staticClass:"info",staticStyle:{display:"none"}},[t._v("学员sso_id："+t._s(t.user.sso_id))]),t._v(" "),a("div",{staticClass:"info"},[t._v("支持jpg、gif、png或bmp格式的图片，建议文件小于5M")]),t._v(" "),a("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}},[a("el-button",{attrs:{type:"primary"}},[t._v("点击上传")])],1)],1)],1)],1)])}var s=[];a.d(i,"a",function(){return e}),a.d(i,"b",function(){return s})}}]);