(window.webpackJsonp=window.webpackJsonp||[]).push([[33],{260:function(t,i,e){"use strict";e.r(i);var s=e(521),a=e(333);for(var n in a)"default"!==n&&function(t){e.d(i,t,(function(){return a[t]}))}(n);e(448);var r=e(7),l=Object(r.a)(a.default,s.a,s.b,!1,null,"daee8424",null);l.options.__file="src/pages/other/updatePic.vue",i.default=l.exports},333:function(t,i,e){"use strict";e.r(i);var s=e(334),a=e.n(s);for(var n in s)"default"!==n&&function(t){e.d(i,t,(function(){return s[t]}))}(n);i.default=a.a},334:function(t,i,e){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var s=e(113);i.default={components:{},data:function(){var t=this.$GLOBAL.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 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)"});(0,s.request)({component:this,actionName:"Other",functionName:"updatePic",data:this.file,thenCallback:function(i){t.imgUrl=i.avatar,t.$GLOBAL.UserInfo.avatar=i.avatar,t.filesArr.pop()},catchCallback:function(){t.filesArr.pop()},finallyCallback:function(){i.close()}})}}}},335:function(t,i,e){},448:function(t,i,e){"use strict";var s=e(335);e.n(s).a},521:function(t,i,e){"use strict";e.d(i,"a",(function(){return s})),e.d(i,"b",(function(){return a}));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("学员姓名："),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)])},a=[];s._withStripped=!0}}]);