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
17 KiB
1 line
17 KiB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-38fba4c0"],{1205:function(e,t,s){},5112:function(e,t,s){"use strict";s("c358")},"69ed":function(e,t,s){"use strict";s("1205")},"7a50":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:"reason",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-input",{attrs:{type:"textarea",rows:5,placeholder:"请输入备注(展示给学员查看)"},model:{value:e.form.reason,callback:function(t){e.$set(e.form,"reason",t)},expression:"form.reason"}})],1)])]},proxy:!0}])})],1)},n=[],i=s("260e"),l={components:{},data:function(){return{isShow:!1,id:"",form:{reason:""},ids_obj:{ids:"",status:2,course_id:""},rules:{reason:[{required:!0,message:"请输入备注"}]}}},created:function(){},methods:{setIds:function(e){this.ids_obj=e},submit:function(){var e=this;this.base.isNull(this.form.reason)?this.$message({type:"warning",message:"请输入备注"}):(console.log(this.ids_obj,this.form.reason),Object(i["g"])({course_id:this.ids_obj.course_id,ids:this.ids_obj.ids,status:this.ids_obj.status,reason:this.form.reason}).then((function(t){e.$message({type:"success",message:"批量审核不通过,设置成功"}),e.isShow=!1,e.$emit("refresh")})))}},watch:{isShow:function(e){e||(this.ids_obj={ids:"",status:2,course_id:""},this.$refs["dialog"].reset())}}},o=l,c=(s("5112"),s("2877")),r=Object(c["a"])(o,a,n,!1,null,"f7920eb4",null);t["default"]=r.exports},"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:{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:{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:{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:{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,(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:{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:{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:{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-popconfirm",{attrs:{title:"确定要批量审核吗?"},on:{confirm:function(t){return e.updateAllStatus(1)}}},[s("el-button",{staticStyle:{"margin-right":"10px"},attrs:{slot:"reference",type:"primary",size:"small"},slot:"reference"},[e._v("批量审核通过")])],1),s("el-button",{attrs:{slot:"reference",type:"warning",size:"small"},on:{click:function(t){return e.updateAllStatus(2)}},slot:"reference"},[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:"240","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",[s("div",[e._v(e._s(a+1)+"、"+e._s(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("updateStaturReason",{ref:"updateStaturReason",on:{refresh:e.getList}})],1)},n=[],i=s("c14f"),l=s("1da1"),o=(s("7db0"),s("a15b"),s("d81d"),s("b0c0"),s("d3b7"),s("0643"),s("fffc"),s("a573"),s("6204")),c=s("be84"),r=s("3cb3"),u=s("b0ed"),p=s("260e"),d=s("7c2f"),y=s("7a50"),m={mixins:[c["default"],r["a"]],components:{studentDetail:o["default"],imports:u["default"],updateStaturReason:y["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.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:"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(l["a"])(Object(i["a"])().m((function t(){var s;return Object(i["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=[]},updateAllStatus:function(e){var t=this;if(this.selectids.length<1)this.$message.warning("请先选择要审核的学员");else{var s=this.selectids.join(",");if(2==e)return this.$refs.updateStaturReason.setIds({course_id:this.select.course_id,ids:s,status:e}),void(this.$refs.updateStaturReason.isShow=!0);Object(p["g"])({course_id:this.select.course_id,ids:s,status:e}).then((function(e){t.$Message.success("审核成功"),t.getList()}))}},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,f=(s("69ed"),s("2877")),_=Object(f["a"])(h,a,n,!1,null,"53e7736a",null);t["default"]=_.exports},a15b:function(e,t,s){"use strict";var a=s("23e7"),n=s("44ad"),i=s("fc6a"),l=s("a640"),o=[].join,c=n!=Object,r=l("join",",");a({target:"Array",proto:!0,forced:c||!r},{join:function(e){return o.call(i(this),void 0===e?",":e)}})},b85c:function(e,t,s){"use strict";s.d(t,"a",(function(){return n}));s("a4d3"),s("e01a"),s("d28b"),s("d3b7"),s("3ca3"),s("ddb0");var a=s("06c5");function n(e,t){var s="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!s){if(Array.isArray(e)||(s=Object(a["a"])(e))||t&&e&&"number"==typeof e.length){s&&(e=s);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var l,o=!0,c=!1;return{s:function(){s=s.call(e)},n:function(){var e=s.next();return o=e.done,e},e:function(e){c=!0,l=e},f:function(){try{o||null==s["return"]||s["return"]()}finally{if(c)throw l}}}}},c358:function(e,t,s){}}]); |