(window.webpackJsonp=window.webpackJsonp||[]).push([[13],{266:function(t,i,e){"use strict";e.r(i);var a=e(416),s=e(336);for(var n in s)"default"!==n&&function(t){e.d(i,t,function(){return s[t]})}(n);e(395);var l=e(3),r=Object(l.a)(s.default,a.a,a.b,!1,null,"6e3d1ad2",null);r.options.__file="updatePic.vue",i.default=r.exports},336:function(t,i,e){"use strict";e.r(i);var a=e(337),s=e.n(a);for(var n in a)"default"!==n&&function(t){e.d(i,t,function(){return a[t]})}(n);i.default=s.a},337:function(t,i,e){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var a=e(68);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,a.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()}})}}}},338:function(t,i,e){},395:function(t,i,e){"use strict";var a=e(338);e.n(a).a},416:function(t,i,e){"use strict";var a=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("学员姓名："),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)])},s=[];e.d(i,"a",function(){return a}),e.d(i,"b",function(){return s})}}]);