(window.webpackJsonp=window.webpackJsonp||[]).push([[33],{276:function(t,e,i){"use strict";i.r(e);var s=i(488),a=i(351);for(var n in a)"default"!==n&&function(t){i.d(e,t,(function(){return a[t]}))}(n);i(445);var r=i(3),l=Object(r.a)(a.default,s.a,s.b,!1,null,"daee8424",null);l.options.__file="src/pages/other/updatePic.vue",e.default=l.exports},351:function(t,e,i){"use strict";i.r(e);var s=i(352),a=i.n(s);for(var n in s)"default"!==n&&function(t){i.d(e,t,(function(){return s[t]}))}(n);e.default=a.a},352:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s,a=i(117),n=(s=a)&&s.__esModule?s:{default:s};e.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,e){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 e=this.$loading({lock:!0,text:"",spinner:"",background:"rgba(255, 255, 255, 0.9)"});n.default.Other.uploadFile(this.file).then((function(e){t.imgUrl=e.avatar,window.G.UserInfo.avatar=e.avatar,t.filesArr.pop()})).catch((function(){t.filesArr.pop()})).finally((function(){e.close()}))}}}},353:function(t,e,i){},445:function(t,e,i){"use strict";var s=i(353);i.n(s).a},488:function(t,e,i){"use strict";i.d(e,"a",(function(){return s})),i.d(e,"b",(function(){return a}));var s=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("div",{staticClass:"con-title"},[t._v("修改头像")]),t._v(" "),i("div",{staticClass:"con-box"},[i("el-row",{attrs:{justify:"center"}},[i("el-col",{attrs:{xs:24,sm:9,md:8,lg:7,xl:6}},[i("div",{staticClass:"pic-show"},[i("img",{attrs:{src:t.imgUrl,alt:""}})])]),t._v(" "),i("el-col",{attrs:{xs:24,sm:15,md:16,lg:17,xl:18}},[i("div",{staticClass:"info"},[t._v("\n          学员姓名：\n          "),i("b",[t._v(t._s(t.user.student_name))])]),t._v(" "),i("div",{staticClass:"info"},[t._v("学员学号："+t._s(t.user.student_no))]),t._v(" "),i("div",{staticClass:"info",staticStyle:{display:"none"}},[t._v("学员sid："+t._s(t.user.student_id))]),t._v(" "),i("div",{staticClass:"info",staticStyle:{display:"none"}},[t._v("学员sso_id："+t._s(t.user.sso_id))]),t._v(" "),i("div",{staticClass:"info"},[t._v("支持jpg、gif、png或bmp格式的图片，建议文件小于5M")]),t._v(" "),i("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}},[i("el-button",{attrs:{type:"primary"}},[t._v("点击上传")])],1)],1)],1)],1)])},a=[];s._withStripped=!0}}]);