(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-04c0ef89"],{"1e37":function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e._self._c;return t("div",[t("el-form",{ref:"form",attrs:{"label-width":"100px"},model:{value:e.form,callback:function(t){e.form=t},expression:"form"}},[t("div",{staticClass:"flexStart formItemFlex"},[t("el-form-item",{staticClass:"flex1",attrs:{label:"姓名：",required:""}},[t("el-input",{staticStyle:{width:"100%"},attrs:{clearable:"",placeholder:"请输入"},model:{value:e.form.student_name,callback:function(t){e.$set(e.form,"student_name",t)},expression:"form.student_name"}})],1),t("el-form-item",{staticClass:"flex1",attrs:{label:"手机号码：",required:""}},[t("el-input",{attrs:{clearable:"",placeholder:"请输入"},model:{value:e.form.student_phone,callback:function(t){e.$set(e.form,"student_phone",t)},expression:"form.student_phone"}})],1)],1),t("div",{staticClass:"flexStart formItemFlex"},[t("el-form-item",{staticClass:"flex1",attrs:{label:"邮箱：",required:""}},[t("el-input",{attrs:{clearable:"",placeholder:"请输入"},model:{value:e.form.student_email,callback:function(t){e.$set(e.form,"student_email",t)},expression:"form.student_email"}})],1),t("el-form-item",{staticClass:"flex1",attrs:{label:"毕业院校：",required:""}},[t("el-input",{attrs:{value:e.form.graduated_from,clearable:"",placeholder:"请选择"},on:{focus:function(t){return e.getSchool("getStuSchool")}}})],1)],1),t("div",{staticClass:"flexStart formItemFlex"},[t("el-form-item",{staticClass:"flex1",attrs:{label:"所学专业：",required:""}},[t("el-input",{attrs:{value:e.form.major,clearable:"",placeholder:"请选择"},on:{focus:function(t){return e.getSchool("getStuMajor")}}})],1),t("el-form-item",{staticClass:"flex1",attrs:{label:"报考类型：",required:""}},[t("el-radio-group",{model:{value:e.form.type,callback:function(t){e.$set(e.form,"type",t)},expression:"form.type"}},e._l(e.typeList,(function(r){return t("el-radio",{key:r.id,attrs:{label:r.id}},[e._v(e._s(r.name))])})),1)],1)],1),t("el-form-item",{attrs:{label:"个人简历：",required:""}},[t("div",{staticClass:"flexStart"},[t("el-button",{attrs:{type:"default",icon:"el-icon-upload2"},on:{click:function(t){return e.uploadClick("file_jl")}}},[e._v("上传附件")]),t("div",{staticClass:"flexStart ml10"},e._l(e.form.file_jl,(function(r,n){return t("div",{key:n,staticClass:"file_item mr10"},[e._v(e._s(r.name)+" "),t("i",{staticClass:"el-icon-close",on:{click:function(t){return e.form.file_jl.splice(n,1)}}})])})),0)],1)]),t("el-form-item",{attrs:{label:"成绩单：",required:""}},[t("div",{staticClass:"flexStart"},[t("el-button",{attrs:{type:"default",icon:"el-icon-upload2"},on:{click:function(t){return e.uploadClick("file_score")}}},[e._v("上传附件")]),t("div",{staticClass:"flexStart ml10"},e._l(e.form.file_score,(function(r,n){return t("div",{key:n,staticClass:"file_item mr10"},[e._v(e._s(r.name)+" "),t("i",{staticClass:"el-icon-close",on:{click:function(t){return e.form.file_score.splice(n,1)}}})])})),0)],1)]),t("el-form-item",{attrs:{label:"其他材料："}},[t("div",{staticClass:"flexStart"},[t("el-button",{attrs:{type:"default",icon:"el-icon-upload2"},on:{click:function(t){return e.uploadClick("file_other")}}},[e._v("上传附件")]),t("div",{staticClass:"flexStart ml10"},e._l(e.form.file_other,(function(r,n){return t("div",{key:n,staticClass:"file_item mr10"},[e._v(e._s(r.name)+" "),t("i",{staticClass:"el-icon-close",on:{click:function(t){return e.form.file_other.splice(n,1)}}})])})),0)],1)]),t("el-form-item",{attrs:{label:"备注："}},[t("el-input",{attrs:{clearable:"",placeholder:"",type:"textarea"},model:{value:e.form.remark,callback:function(t){e.$set(e.form,"remark",t)},expression:"form.remark"}})],1)],1),t("div",{staticClass:"flexCenter"},[t("el-button",{attrs:{type:"primary"},on:{click:e.submit}},[e._v("提交")])],1),t("el-dialog",{attrs:{title:"getStuMajor"==e.selectType?"所学专业":"毕业院校",width:"700px",visible:e.showVisible,"append-to-body":"","before-close":e.showClose,"close-on-press-escape":!1},on:{"update:visible":function(t){e.showVisible=t}}},[t("div",{staticClass:"mb20"},[t("el-input",{staticStyle:{width:"300px"},attrs:{size:"small",placeholder:"搜索关键词","suffix-icon":"el-icon-search",clearable:""},on:{change:function(t){return e.pageChange(1)},clear:function(t){return e.pageChange(1)}},model:{value:e.search.keywords,callback:function(t){e.$set(e.search,"keywords",t)},expression:"search.keywords"}})],1),t("el-table",{ref:"selectTable",attrs:{data:e.selectList,size:"mini",border:"","default-expand-all":!1,width:"100%","header-cell-style":{backgroundColor:"#f5f7fa",color:"#000"}},on:{"selection-change":e.handleSelectionChange}},[t("el-table-column",{attrs:{type:"index",label:"序号",index:e.setIndex,width:"55",align:"center"}}),t("el-table-column",{attrs:{label:"编码",prop:"code",width:"120"}}),t("el-table-column",{attrs:{label:"名称",prop:"name"}}),t("el-table-column",{attrs:{type:"selection",width:"55",align:"center"}})],1),t("div",{staticClass:"mt20"},[e.total>e.pagesize?t("el-pagination",{staticClass:"pgt",attrs:{align:"center",background:"",layout:"total,prev, pager, next,jumper",total:e.total,"page-size":e.pagesize,"current-page":e.page},on:{"current-change":e.pageChange}}):e._e()],1)],1),t("input",{ref:"fileInput",staticStyle:{display:"none"},attrs:{type:"file",name:"file",accept:"*"},on:{change:e.handleFileUpload}})],1)},o=[];function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */i=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},l="function"==typeof Symbol?Symbol:{},s=l.iterator||"@@iterator",c=l.asyncIterator||"@@asyncIterator",u=l.toStringTag||"@@toStringTag";function f(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{f({},"")}catch(e){f=function(e,t,r){return e[t]=r}}function p(e,t,r,n){var a=t&&t.prototype instanceof b?t:b,i=Object.create(a.prototype),l=new T(n||[]);return o(i,"_invoke",{value:O(e,r,l)}),i}function h(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=p;var m="suspendedStart",d="suspendedYield",y="executing",v="completed",g={};function b(){}function w(){}function x(){}var _={};f(_,s,(function(){return this}));var k=Object.getPrototypeOf,j=k&&k(k(F([])));j&&j!==r&&n.call(j,s)&&(_=j);var S=x.prototype=b.prototype=Object.create(_);function C(e){["next","throw","return"].forEach((function(t){f(e,t,(function(e){return this._invoke(t,e)}))}))}function L(e,t){function r(o,i,l,s){var c=h(e[o],e,i);if("throw"!==c.type){var u=c.arg,f=u.value;return f&&"object"==a(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,l,s)}),(function(e){r("throw",e,l,s)})):t.resolve(f).then((function(e){u.value=e,l(u)}),(function(e){return r("throw",e,l,s)}))}s(c.arg)}var i;o(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return i=i?i.then(o,o):o()}})}function O(t,r,n){var o=m;return function(a,i){if(o===y)throw new Error("Generator is already running");if(o===v){if("throw"===a)throw i;return{value:e,done:!0}}for(n.method=a,n.arg=i;;){var l=n.delegate;if(l){var s=$(l,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===m)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=y;var c=h(t,r,n);if("normal"===c.type){if(o=n.done?v:d,c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(o=v,n.method="throw",n.arg=c.arg)}}}function $(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,$(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var a=h(o,t.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,g;var i=a.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,g):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function F(t){if(t||""===t){var r=t[s];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}throw new TypeError(a(t)+" is not iterable")}return w.prototype=x,o(S,"constructor",{value:x,configurable:!0}),o(x,"constructor",{value:w,configurable:!0}),w.displayName=f(x,u,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===w||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,x):(e.__proto__=x,f(e,u,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},C(L.prototype),f(L.prototype,c,(function(){return this})),t.AsyncIterator=L,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new L(p(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},C(S),f(S,u,"Generator"),f(S,s,(function(){return this})),f(S,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=F,T.prototype={constructor:T,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(P),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return l.type="throw",l.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],l=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var s=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=e,i.arg=t,a?(this.method="next",this.next=a.finallyLoc,g):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),P(r),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;P(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:F(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),g}},t}function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach((function(t){c(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function c(e,t,r){return t=u(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function u(e){var t=f(e,"string");return"symbol"===a(t)?t:String(t)}function f(e,t){if("object"!==a(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function p(e,t,r,n,o,a,i){try{var l=e[a](i),s=l.value}catch(c){return void r(c)}l.done?t(s):Promise.resolve(s).then(n,o)}function h(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var a=e.apply(t,r);function i(e){p(a,n,o,i,l,"next",e)}function l(e){p(a,n,o,i,l,"throw",e)}i(void 0)}))}}var m={props:["id","detail"],components:{},data:function(){return{parmsM:{m:"jwApi_admin_advisor",t:"advisorStudentSelection"},config:{},form:{file_jl:[],file_score:[],file_other:[]},showVisible:!1,selectType:"",page:1,pagesize:10,total:0,search:{keywords:""},selectList:[],typeList:[{id:1,name:"博士"},{id:2,name:"硕士"}],fileType:""}},mounted:function(){},methods:{submit:function(){var e=this;return h(i().mark((function t(){var r;return i().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.form.student_name){t.next=2;break}return t.abrupt("return",e.$message.error("请输入姓名"));case 2:if(e.form.student_phone){t.next=4;break}return t.abrupt("return",e.$message.error("请输入手机号码"));case 4:if(e.form.student_email){t.next=6;break}return t.abrupt("return",e.$message.error("请输入邮箱"));case 6:if(e.form.graduated_from){t.next=8;break}return t.abrupt("return",e.$message.error("请选择毕业院校"));case 8:if(e.form.major){t.next=10;break}return t.abrupt("return",e.$message.error("请选择所学专业"));case 10:if(e.form.type){t.next=12;break}return t.abrupt("return",e.$message.error("请选择报考类型"));case 12:if(e.form.file_jl.length){t.next=14;break}return t.abrupt("return",e.$message.error("请上传个人简历"));case 14:if(e.form.file_score.length){t.next=16;break}return t.abrupt("return",e.$message.error("请上传成绩单"));case 16:return e.$loadingLayer(),t.next=19,e.$service.post("",s(s({m:"jwApi_web",t:"index",c:"updateStuMess"},e.form),{},{file_jl:e.form.file_jl.map((function(e){return e.id})).join(","),file_score:e.form.file_score.map((function(e){return e.id})).join(","),file_other:e.form.file_other.map((function(e){return e.id})).join(","),advisor_id:e.id,college:e.detail.college}));case 19:r=t.sent,e.$LayerClose(),r.status?(e.$message.success(r.msg),e.form={file_jl:[],file_score:[],file_other:[]}):e.$message.error(r.msg);case 22:case"end":return t.stop()}}),t)})))()},getSchool:function(e){var t=this;return h(i().mark((function r(){var n;return i().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return t.selectType=e||t.selectType,t.$loadingLayer(),r.next=4,t.$service("",{params:s(s({},t.parmsM),{},{c:t.selectType,page:t.page,pageSize:t.pagesize},t.search)});case 4:n=r.sent,t.total=Number(n.total),t.$LayerClose(),n.status?t.selectList=n.data:t.selectList=[],t.showVisible=!0;case 9:case"end":return r.stop()}}),r)})))()},setIndex:function(e){return(this.page-1)*this.pagesize+e+1},pageChange:function(e){this.page=e,this.getSchool()},handleSelectionChange:function(e){e.length>1&&(this.$refs.selectTable.clearSelection(),this.$refs.selectTable.toggleRowSelection(e[e.length-1],!0)),1==e.length&&(this.form["getStuMajor"==this.selectType?"major":"graduated_from"]=e[0].name)},showClose:function(){this.selectList=[],this.page=1,this.total=0,this.search.keywords="",this.showVisible=!1},uploadClick:function(e){this.$refs.fileInput.click(),this.fileType=e},handleFileUpload:function(e){var t=this;return h(i().mark((function r(){var n,o;return i().wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(n=e.target.files[0],!n){r.next=9;break}return t.$loadingLayer("文件上传中。。。"),r.next=5,t.$uploadFile(n);case 5:o=r.sent,t.$LayerClose(),t.form[t.fileType].push({id:o.data,path:o.path,name:n.name}),t.$refs.fileInput.value="";case 9:case"end":return r.stop()}}),r)})))()}}},d=m,y=(r("9d59"),r("2877")),v=Object(y["a"])(d,n,o,!1,null,"0841cdc6",null);t["default"]=v.exports},"9d59":function(e,t,r){"use strict";r("a9f5")},a9f5:function(e,t,r){}}]);