You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1 line
24 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-499bb84a"],{"21a6":function(e,t,s){(function(s){var a,i,n;(function(s,o){i=[],a=o,n="function"===typeof a?a.apply(t,i):a,void 0===n||(e.exports=n)})(0,(function(){"use strict";function t(e,t){return"undefined"==typeof t?t={autoBom:!1}:"object"!=typeof t&&(console.warn("Deprecated: Expected third argument to be a object"),t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\ufeff",e],{type:e.type}):e}function a(e,t,s){var a=new XMLHttpRequest;a.open("GET",e),a.responseType="blob",a.onload=function(){r(a.response,t,s)},a.onerror=function(){console.error("could not download file")},a.send()}function i(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(e){}return 200<=t.status&&299>=t.status}function n(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(a){var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var o="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof s&&s.global===s?s:void 0,l=o.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),r=o.saveAs||("object"!=typeof window||window!==o?function(){}:"download"in HTMLAnchorElement.prototype&&!l?function(e,t,s){var l=o.URL||o.webkitURL,r=document.createElement("a");t=t||e.name||"download",r.download=t,r.rel="noopener","string"==typeof e?(r.href=e,r.origin===location.origin?n(r):i(r.href)?a(e,t,s):n(r,r.target="_blank")):(r.href=l.createObjectURL(e),setTimeout((function(){l.revokeObjectURL(r.href)}),4e4),setTimeout((function(){n(r)}),0))}:"msSaveOrOpenBlob"in navigator?function(e,s,o){if(s=s||e.name||"download","string"!=typeof e)navigator.msSaveOrOpenBlob(t(e,o),s);else if(i(e))a(e,s,o);else{var l=document.createElement("a");l.href=e,l.target="_blank",setTimeout((function(){n(l)}))}}:function(e,t,s,i){if(i=i||open("","_blank"),i&&(i.document.title=i.document.body.innerText="downloading..."),"string"==typeof e)return a(e,t,s);var n="application/octet-stream"===e.type,r=/constructor/i.test(o.HTMLElement)||o.safari,c=/CriOS\/[\d]+/.test(navigator.userAgent);if((c||n&&r||l)&&"undefined"!=typeof FileReader){var u=new FileReader;u.onloadend=function(){var e=u.result;e=c?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),i?i.location.href=e:location=e,i=null},u.readAsDataURL(e)}else{var p=o.URL||o.webkitURL,d=p.createObjectURL(e);i?i.location=d:location.href=d,i=null,setTimeout((function(){p.revokeObjectURL(d)}),4e4)}});o.saveAs=r.saveAs=r,e.exports=r}))}).call(this,s("c8ba"))},"3d29":function(e,t,s){"use strict";s("4a34")},"431a":function(e,t,s){"use strict";s.r(t);var a=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",[s("xy-dialog",{ref:"dialog",attrs:{width:60,"is-show":e.isShow,type:"form",title:"批量审核",form:e.form,rules:e.rules},on:{"update:isShow":function(t){e.isShow=t},"update:is-show":function(t){e.isShow=t},submit:e.submit},scopedSlots:e._u([{key:"status",fn:function(){return[s("div",{staticClass:"xy-table-item"},[s("div",{staticClass:"xy-table-item-label",staticStyle:{"font-weight":"bold"}},[s("span",{staticStyle:{color:"red","font-weight":"bold","padding-right":"4px"}},[e._v("*")]),e._v("审核: ")]),s("div",{staticClass:"xy-table-item-content"},[s("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:"请选择",clearable:""},model:{value:e.form.status,callback:function(t){e.$set(e.form,"status",t)},expression:"form.status"}},e._l(e.apply_status_list,(function(e){return s("el-option",{key:e.id,attrs:{label:e.value,value:e.id}})})),1)],1)])]},proxy:!0},{key:"score",fn:function(){return[s("div",{staticClass:"xy-table-item"},[s("div",{staticClass:"xy-table-item-label",staticStyle:{"font-weight":"bold"}},[e._v("评分:")]),s("div",{staticClass:"xy-table-item-content"},[s("el-input",{staticStyle:{width:"100%"},attrs:{type:"number",placeholder:"请输入评分",clearable:""},model:{value:e.form.score,callback:function(t){e.$set(e.form,"score",t)},expression:"form.score"}})],1)])]},proxy:!0},{key:"giveup_reason",fn:function(){return[5===e.form.status?s("div",{staticClass:"xy-table-item"},[s("div",{staticClass:"xy-table-item-label",staticStyle:{"font-weight":"bold"}},[s("span",{staticStyle:{color:"red","font-weight":"bold","padding-right":"4px"}},[e._v("*")]),e._v("放弃原因: ")]),s("div",{staticClass:"xy-table-item-content"},[s("el-input",{staticStyle:{width:"100%"},attrs:{type:"textarea",placeholder:"请输入放弃原因"},model:{value:e.form.giveup_reason,callback:function(t){e.$set(e.form,"giveup_reason",t)},expression:"form.giveup_reason"}})],1)]):e._e()]},proxy:!0},{key:"file_ids",fn:function(){return[1===e.form.status?s("div",{staticClass:"xy-table-item"},[s("div",{staticClass:"xy-table-item-label",staticStyle:{"font-weight":"bold"}},[e._v("录取通知书:")]),s("div",{staticClass:"xy-table-item-content"},[s("el-upload",{ref:"pictureUpload",staticClass:"upload-demo",attrs:{action:e.action,"file-list":e.fileList,"auto-upload":!0,limit:1,"on-success":e.uploadSuccess,"on-remove":e.uploadRemove}},[s("el-button",{attrs:{size:"small",type:"primary"}},[e._v("点击上传")]),s("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[e._v("可上传各类格式文件")])],1)],1)]):e._e()]},proxy:!0},{key:"reason",fn:function(){return[s("div",{staticClass:"xy-table-item"},[s("div",{staticClass:"xy-table-item-label",staticStyle:{"font-weight":"bold"}},[2===e.form.status?s("span",{staticStyle:{color:"red","font-weight":"bold","padding-right":"4px"}},[e._v("*")]):e._e(),e._v("备注: ")]),s("div",{staticClass:"xy-table-item-content"},[s("el-input",{staticStyle:{width:"100%"},attrs:{type:"textarea",rows:4,placeholder:"请输入备注(展示给学员查看)"},model:{value:e.form.reason,callback:function(t){e.$set(e.form,"reason",t)},expression:"form.reason"}})],1)])]},proxy:!0}])})],1)},i=[],n=s("5530"),o=(s("d3b7"),s("498a"),s("0643"),s("4e3e"),s("159b"),s("be84")),l=s("260e"),r={mixins:[o["default"]],data:function(){return{isShow:!1,action:"".concat("/api/admin/upload-file"),ids_obj:{ids:"",course_id:""},form:{status:"",score:"",giveup_reason:"",file_ids:[],reason:""},fileList:[],rules:{status:[{required:!0,message:"请选择审核结果",trigger:"change"}]}}},methods:{setIds:function(e){this.ids_obj=Object(n["a"])({},e)},uploadSuccess:function(e,t,s){this.fileList=s},uploadRemove:function(e,t){this.fileList=t},submit:function(){var e=this;if(0===this.form.status||null!=this.form.status&&""!==this.form.status){var t=this.form.status;if(2!==t||this.form.reason&&String(this.form.reason).trim())if(5!==t||this.form.giveup_reason&&String(this.form.giveup_reason).trim()){var s=[];this.fileList&&this.fileList.length>0&&this.fileList.forEach((function(e){e.response&&e.response.id?s.push(e.response.id):e.id&&s.push(e.id)}));var a={course_id:this.ids_obj.course_id,ids:this.ids_obj.ids,status:this.form.status,reason:this.form.reason||"",score:this.form.score||"",giveup_reason:this.form.giveup_reason||"",file_ids:s};Object(l["g"])(a).then((function(t){e.$message.success("批量审核成功"),e.isShow=!1,e.$emit("refresh")})).catch((function(t){e.$message.error(t&&(t.message||t.msg)?t.message||t.msg:"批量审核失败")}))}else this.$message.warning("主动放弃时,请填写放弃原因");else this.$message.warning("审核不通过时,请填写备注")}else this.$message.warning("请选择审核结果")}},watch:{isShow:function(e){e||(this.ids_obj={ids:"",course_id:""},this.form={status:"",score:"",giveup_reason:"",file_ids:[],reason:""},this.fileList=[],this.$refs.dialog&&this.$refs.dialog.reset())}}},c=r,u=(s("3d29"),s("2877")),p=Object(u["a"])(c,a,i,!1,null,"aacf303a",null);t["default"]=p.exports},"466d":function(e,t,s){"use strict";var a=s("d784"),i=s("825a"),n=s("50c4"),o=s("1d80"),l=s("8aa5"),r=s("14c3");a("match",1,(function(e,t,s){return[function(t){var s=o(this),a=void 0==t?void 0:t[e];return void 0!==a?a.call(t,s):new RegExp(t)[e](String(s))},function(e){var a=s(t,e,this);if(a.done)return a.value;var o=i(e),c=String(this);if(!o.global)return r(o,c);var u=o.unicode;o.lastIndex=0;var p,d=[],f=0;while(null!==(p=r(o,c))){var m=String(p[0]);d[f]=m,""===m&&(o.lastIndex=l(c,n(o.lastIndex),u)),f++}return 0===f?null:d}]}))},"4a34":function(e,t,s){},"7b89":function(e,t,s){},"7c36":function(e,t,s){"use strict";s.r(t);var a=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",[s("div",[s("div",{ref:"lxHeader"},[s("lx-header",{staticStyle:{"margin-bottom":"10px",border:"0px","margin-top":"15px"},attrs:{icon:"md-apps",text:e.$route.meta.title}},[s("div",{staticStyle:{"padding-left":"0"},attrs:{slot:"content"},slot:"content"},[s("div",{staticClass:"searchwrap",staticStyle:{display:"flex","align-items":"center"}},[s("div",[s("div",[s("el-input",{attrs:{placeholder:"请输入姓名"},model:{value:e.select.name,callback:function(t){e.$set(e.select,"name",t)},expression:"select.name"}})],1),s("xy-selectors",{staticStyle:{width:"auto"},on:{reset:e.resetSelect,search:function(t){e.select.page=1,e.getList()}},scopedSlots:e._u([{key:"selected",fn:function(){return[s("div",{staticClass:"selected-wrap"},[s("div",[s("el-input",{attrs:{placeholder:"请输入手机号"},model:{value:e.select.mobile,callback:function(t){e.$set(e.select,"mobile",t)},expression:"select.mobile"}})],1),s("div",{staticStyle:{width:"200px"}},[s("el-select",{attrs:{filterable:"",placeholder:"请选择个人荣誉",multiple:"","collapse-tags":"",clearable:""},on:{change:function(t){e.changeSelectType(t,"type")}},model:{value:e.typeSelect,callback:function(t){e.typeSelect=t},expression:"typeSelect"}},e._l(e.formSelect.type,(function(e){return s("el-option",{key:e.id,attrs:{label:e.value,value:e.value}})})),1)],1),s("div",[s("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"",multiple:"","collapse-tags":"",placeholder:"请选择学历",clearable:""},on:{change:function(t){e.changeSelectType(t,"education")}},model:{value:e.educationType,callback:function(t){e.educationType=t},expression:"educationType"}},e._l(e.formSelect.education,(function(e){return s("el-option",{key:e.id,attrs:{label:e.value,value:e.value}})})),1)],1),s("div",[s("el-input",{attrs:{placeholder:"请输入公司名称"},model:{value:e.select.company_name,callback:function(t){e.$set(e.select,"company_name",t)},expression:"select.company_name"}})],1),s("div",[s("el-input",{attrs:{placeholder:"请输入职务"},model:{value:e.select.company_position,callback:function(t){e.$set(e.select,"company_position",t)},expression:"select.company_position"}})],1),s("div",{staticStyle:{width:"200px"}},[s("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"",multiple:"","collapse-tags":"",placeholder:"请选择所属区域",clearable:""},on:{change:function(t){e.changeSelectType(t,"company_area")}},model:{value:e.companyArea,callback:function(t){e.companyArea=t},expression:"companyArea"}},e._l(e.formSelect.company_area,(function(e){return s("el-option",{key:e.id,attrs:{label:e.value,value:e.value}})})),1)],1),s("div",{staticStyle:{width:"250px"}},[s("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"",multiple:"","collapse-tags":"",placeholder:"请选择企业资质",clearable:""},on:{change:function(t){e.changeSelectType(t,"company_type")}},model:{value:e.companyType,callback:function(t){e.companyType=t},expression:"companyType"}},e._l(e.formSelect.company_type_all,(function(e,t){return s("el-option",{key:t,attrs:{label:e,value:e}})})),1)],1),s("div",{staticStyle:{width:"250px"}},[s("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"",multiple:"","collapse-tags":"",placeholder:"请选择所属领域",clearable:""},on:{change:function(t){e.changeSelectType(t,"company_industry")}},model:{value:e.companyIndustry,callback:function(t){e.companyIndustry=t},expression:"companyIndustry"}},e._l(e.formSelect.company_industry,(function(e){return s("el-option",{key:e.id,attrs:{label:e.value,value:e.value}})})),1)],1),s("div",[s("el-select",{attrs:{filterable:"",placeholder:"请选择状态",clearable:""},model:{value:e.select.status,callback:function(t){e.$set(e.select,"status",t)},expression:"select.status"}},e._l(e.apply_status_list,(function(e){return s("el-option",{key:e.id,attrs:{label:e.value,value:e.id}})})),1)],1),s("div",[s("el-select",{attrs:{filterable:"",placeholder:"请选择评分排序",clearable:""},model:{value:e.select.sort_type,callback:function(t){e.$set(e.select,"sort_type",t)},expression:"select.sort_type"}},e._l(e.sortList,(function(e){return s("el-option",{key:e.id,attrs:{label:e.value,value:e.id}})})),1)],1)])]},proxy:!0}])}),s("div",[s("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(t){e.select.page=1,e.getList()}}},[e._v("查询")]),s("el-button",{attrs:{type:"primary",size:"small"},on:{click:e.resetSelect}},[e._v("重置")]),s("el-button",{attrs:{type:"primary",size:"small"},on:{click:e.importTable}},[e._v("导入")]),s("el-button",{staticStyle:{"margin-right":"10px"},attrs:{type:"primary",size:"small"},on:{click:e.exportExcel}},[e._v("导出")]),s("el-button",{attrs:{type:"primary",size:"small"},on:{click:e.openBatchAudit}},[e._v("批量审核")])],1)],1)])])])],1)]),s("div",[s("div",{staticClass:"txl"},[s("div",[e._v("课程名称:"+e._s(e.subjectObj.title))]),s("div",[e._v("开课日期:"+e._s(e.subjectObj.date?e.subjectObj.date:"开课待定"))]),s("div",[e._v("课程体系:"+e._s(e.subjectObj.leibie))])]),s("xy-table",{attrs:{list:e.list,total:e.total,showIndex:!1,"table-item":e.table_item},on:{pageIndexChange:e.pageIndexChange,pageSizeChange:e.pageSizeChange,"selection-change":e.selectionChange},scopedSlots:e._u([{key:"index",fn:function(){return[s("el-table-column",{attrs:{align:"center",fixed:"left",label:"",width:"50","header-align":"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(e.getIndex(t.$index))+" ")]}}])})]},proxy:!0},{key:"course_signs",fn:function(){return[s("el-table-column",{attrs:{align:"left",label:"历史报名信息",width:"380","header-align":"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.user&&t.row.user.course_signs&&t.row.user.course_signs.length>0?s("div",e._l(t.row.user.course_signs,(function(t,a){return s("div",[t.course?s("div",{staticStyle:{width:"100%",display:"flex","justify-content":"space-between","align-items":"center","margin-bottom":"5px"}},[s("div",[e._v(" "+e._s(a+1)+"、"+e._s(t.course.year?t.course.year:"")+e._s(t.course.type_detail&&t.course.type_detail.name?t.course.type_detail.name:"")+" | "+e._s(t.course.name)+" ")]),e._l(e.apply_status_list,(function(a){return[t.status===a.id?s("el-tag",{staticStyle:{"margin-left":"20px"},attrs:{type:a.type}},[e._v(e._s(a.value))]):e._e()]}))],2):s("div",[e._v(" "+e._s(a+1)+"、"+e._s(t.course&&t.course.name?t.course.name:"")+" ")])])})),0):e._e()]}}])})]},proxy:!0},{key:"username",fn:function(){return[s("el-table-column",{attrs:{align:"center",label:"姓名",width:"120","header-align":"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e.getPropValueIfExists(t.row.change_data,"username")?s("div",{staticStyle:{color:"red"}},[e._v(" "+e._s(e.getPropValueIfExists(t.row.change_data,"username"))+" ")]):s("div",[e._v(" "+e._s(t.row.user.username)+" ")])]}}])})]},proxy:!0},{key:"status",fn:function(){return[s("el-table-column",{attrs:{align:"center",label:"状态",width:"120","header-align":"center"},scopedSlots:e._u([{key:"default",fn:function(t){return e._l(e.apply_status_list,(function(a){return s("div",[t.row.status==a.id?s("el-tag",{attrs:{type:a.type}},[e._v(e._s(a.value))]):e._e()],1)}))}}])})]},proxy:!0},{key:"btns",fn:function(){return[s("el-table-column",{attrs:{align:"left",fixed:"right",label:"操作",width:"220","header-align":"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(s){return e.showDetail("check",t.row)}}},[e._v("审核")]),s("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(s){return e.showDetail("checkshow",t.row)}}},[e._v("查看")]),4===t.row.status?s("el-popconfirm",{staticStyle:{margin:"0 10px"},attrs:{title:"确定删除吗?"},on:{confirm:function(s){return e.deleteList(t.row.id)}}},[s("el-button",{attrs:{slot:"reference",type:"danger",size:"small"},slot:"reference"},[e._v("删除")])],1):e._e()]}}])})]},proxy:!0}])})],1),s("student-detail",{ref:"studentDetail",on:{refresh:e.getList}}),s("imports",{ref:"imports",attrs:{course_id:e.subjectObj.id,status:0,"table-name":"course_signs"},on:{refresh:e.getList}}),s("batch-audit-dialog",{ref:"batchAuditDialog",on:{refresh:e.getList}})],1)},i=[],n=s("c14f"),o=s("1da1"),l=(s("7db0"),s("a15b"),s("d81d"),s("b0c0"),s("d3b7"),s("0643"),s("fffc"),s("a573"),s("6204")),r=s("be84"),c=s("3cb3"),u=s("b0ed"),p=s("260e"),d=s("7c2f"),f=s("431a"),m={mixins:[r["default"],c["a"]],components:{studentDetail:l["default"],imports:u["default"],BatchAuditDialog:f["default"]},data:function(){var e=this,t=this.$createElement;return{subjectObj:{},companyType:[],typeSelect:[],educationType:[],companyIndustry:[],companyArea:[],select:{name:"",mobile:"",course_id:"",company_name:"",company_position:"",company_area:"",company_type:"",company_industry:"",education:"",type:"",status:"",page:1,page_size:10,sort_type:"ASC"},selectids:[],list:[],total:0,table_item:[{type:"selection",width:50,fixed:"left",prop:"selection"},{prop:"index",label:"",align:"center",width:50,fixed:"left"},{prop:"course_signs",label:"历史报名信息",align:"center",width:120,fixed:"left"},{prop:"user.is_schoolmate_text",label:"校友",align:"center",width:120},{prop:"username",label:"姓名",align:"center",width:120},{prop:"user.mobile",label:"联系方式",align:"center",width:120,customFn:function(s){return e.getPropValueIfExists(s.change_data,"mobile")?t("div",{style:"color:red"},[e.getPropValueIfExists(s.change_data,"mobile")]):t("div",[s.user.mobile])}},{prop:"user.is_company_schoolmate_text",label:"是否校友企业",align:"center",width:120},{prop:"user.company_name",label:"公司名称",align:"left",width:240,customFn:function(s){return e.getPropValueIfExists(s.change_data,"company_name")?t("div",{style:"color:red"},[e.getPropValueIfExists(s.change_data,"company_name")]):t("div",[s.user.company_name])}},{prop:"user.company.company_name",label:"企查查名称",align:"left",width:200},{prop:"is_yh_invested",label:"集团标签",align:"center",width:120,customFn:function(e){if(e.company)return t("div",[e.company.is_yh_invested?"被投企业":""])}},{prop:"user.company_position",label:"职务",align:"center",width:120,customFn:function(s){return e.getPropValueIfExists(s.change_data,"company_position")?t("div",{style:"color:red"},[e.getPropValueIfExists(s.change_data,"company_position")]):t("div",[s.user.company_position])}},{prop:"user.sex",label:"性别",align:"center",width:120,customFn:function(s){return e.getPropValueIfExists(s.change_data,"sex")?t("div",{style:"color:red"},[e.getPropValueIfExists(s.change_data,"sex")]):t("div",[s.user.sex])}},{prop:"user.birthday",label:"出生年月",align:"center",width:120,customFn:function(s){return e.getPropValueIfExists(s.change_data,"birthday")?t("div",{style:"color:red"},[e.getPropValueIfExists(s.change_data,"birthday")]):t("div",[s.user.birthday])}},{prop:"user.email",label:"邮箱",align:"center",width:180,customFn:function(s){return e.getPropValueIfExists(s.change_data,"email")?t("div",{style:"color:red"},[e.getPropValueIfExists(s.change_data,"email")]):t("div",[s.user.email])}},{prop:"created_at",label:"报名时间",align:"center",width:180},{prop:"status",label:"审核状态",align:"center",width:180}]}},created:function(){this.subjectObj=this.$route.query,console.log("this.$route.query",this.$route.query),this.select.course_id=this.subjectObj.id,0===this.subjectObj.status?this.select.status=0:this.select.status=this.subjectObj.status?parseInt(this.subjectObj.status):"",this.getList()},methods:{getPropValueIfExists:function(e,t){if(!e||!Array.isArray(e))return!1;var s=e.find((function(e){return t in e}));return console.log("itemWithProp",s),!!s&&s[t]},changeSelectType:function(e,t){this.select[t]=e?e.join(","):""},pageIndexChange:function(e){this.select.page=e,this.getList()},pageSizeChange:function(e){this.select.page_size=e,this.select.page=1,this.getList()},getIndex:function(e){var t=(this.select.page-1)*this.select.page_size,s=t+e+1;return s},deleteList:function(e){var t=this;Object(p["a"])({id:e}).then((function(e){t.$Message.success("删除成功"),t.getList()})).catch((function(e){console.log(e),reject(e)}))},resetSelect:function(){this.companyType=[],this.typeSelect=[],this.educationType=[],this.companyIndustry=[],this.companyArea=[],this.select.name="",this.select.mobile="",this.select.company_name="",this.select.company_position="",this.select.company_area="",this.select.company_type="",this.select.company_industry="",this.select.education="",this.select.type="",this.select.status="",this.select.page=1,this.getList()},getList:function(){var e=this;return Object(o["a"])(Object(n["a"])().m((function t(){var s;return Object(n["a"])().w((function(t){while(1)switch(t.n){case 0:return t.n=1,Object(p["b"])({page:e.select.page,page_size:e.select.page_size,name:e.select.name,mobile:e.select.mobile,company_name:e.select.company_name,company_position:e.select.company_position,company_area:e.select.company_area,company_type:e.select.company_type,company_industry:e.select.company_industry,education:e.select.education,type:e.select.type,sort_name:"score",sort_type:e.select.sort_type,filter:[{key:"course_id",op:"eq",value:e.select.course_id},{key:"status",op:"eq",value:e.select.status}]});case 1:s=t.v,e.list=s.data,e.total=s.total;case 2:return t.a(2)}}),t)})))()},selectionChange:function(e){if(e&&e.length>0){var t=[];e.map((function(e){t.push(e.id)})),this.selectids=t}else this.selectids=[]},openBatchAudit:function(){if(this.selectids.length<1)this.$message.warning("请先选择要审核的学员");else{var e=this.selectids.join(",");this.$refs.batchAuditDialog.setIds({course_id:this.select.course_id,ids:e}),this.$refs.batchAuditDialog.isShow=!0}},showDetail:function(e,t){this.$refs.studentDetail.subjectObj=this.subjectObj,this.$refs.studentDetail.id=t.id,this.$refs.studentDetail.row=t,this.$refs.studentDetail.type=e,this.$refs.studentDetail.isShow=!0},importTable:function(e){this.$refs.imports.show()},exportExcel:function(){var e={};this.table_item.map((function(t){"status"===t.prop?e["status_text"]=t.label:"created_at"===t.prop&&(e[t.prop]=t.label)})),e["user.idcard"]="身份证号",e["score"]="评分",Object(d["a"])("/api/admin/course-signs/index","get",{name:this.select.name,mobile:this.select.mobile,company_name:this.select.company_name,company_position:this.select.company_position,company_area:this.select.company_area,company_type:this.select.company_type,company_industry:this.select.company_industry,education:this.select.education,type:this.select.type,sort_name:"score",sort_type:this.select.sort_type,export_fields:e,filter:[{key:"course_id",op:"eq",value:this.select.course_id},{key:"status",op:"eq",value:this.select.status}],is_export:1,page:1,page_size:999},"".concat(this.subjectObj.title,"报名信息.xlsx"))}}},h=m,y=(s("b591"),s("2877")),b=Object(y["a"])(h,a,i,!1,null,"38a3d5b0",null);t["default"]=b.exports},"8a79":function(e,t,s){"use strict";var a=s("23e7"),i=s("06cf").f,n=s("50c4"),o=s("5a34"),l=s("1d80"),r=s("ab13"),c=s("c430"),u="".endsWith,p=Math.min,d=r("endsWith"),f=!c&&!d&&!!function(){var e=i(String.prototype,"endsWith");return e&&!e.writable}();a({target:"String",proto:!0,forced:!f&&!d},{endsWith:function(e){var t=String(l(this));o(e);var s=arguments.length>1?arguments[1]:void 0,a=n(t.length),i=void 0===s?a:p(n(s),a),r=String(e);return u?u.call(t,r,i):t.slice(i-r.length,i)===r}})},a15b:function(e,t,s){"use strict";var a=s("23e7"),i=s("44ad"),n=s("fc6a"),o=s("a640"),l=[].join,r=i!=Object,c=o("join",",");a({target:"Array",proto:!0,forced:r||!c},{join:function(e){return l.call(n(this),void 0===e?",":e)}})},b591:function(e,t,s){"use strict";s("7b89")}}]);