1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2706ce08"],{"0efd":function(e,t,r){"use strict";r.r(t);var a=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"m-container"},[e._m(0),e._v(" "),r("div",{staticClass:"m-core"},[r("save-form",{ref:"searchForm",attrs:{inline:!0,model:e.searchForm},on:{submit:e.search,reset:e.onReSet}},[r("el-form-item",{attrs:{prop:"studentID"}},[r("el-input",{attrs:{clearable:"",type:"number",placeholder:"学生编号"},nativeOn:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:function(t){t.target.blur(),e.$refs.searchForm.save(),e.search()}(t)}},model:{value:e.searchForm.studentID,callback:function(t){e.$set(e.searchForm,"studentID","string"===typeof t?t.trim():t)},expression:"searchForm.studentID"}})],1),e._v(" "),r("el-form-item",{attrs:{prop:"teacherId"}},[r("remote-search",{attrs:{commit:"setTeachers",isForzenWithQueryCondition:!0},model:{value:e.searchForm.teacherId,callback:function(t){e.$set(e.searchForm,"teacherId",t)},expression:"searchForm.teacherId"}})],1),e._v(" "),r("el-form-item",{attrs:{prop:"organId"}},[r("el-select",{staticClass:"multiple",staticStyle:{width:"180px !important"},attrs:{filterable:"",clearable:"",placeholder:"请选择分部"},model:{value:e.searchForm.organId,callback:function(t){e.$set(e.searchForm,"organId","string"===typeof t?t.trim():t)},expression:"searchForm.organId"}},e._l(e.selects.branchs,(function(e,t){return r("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),r("el-form-item",{attrs:{prop:"musicGroupId"}},[r("el-input",{attrs:{type:"number",clearable:"",placeholder:"乐团编号"},nativeOn:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:function(t){t.target.blur(),e.$refs.searchForm.save(),e.search()}(t)}},model:{value:e.searchForm.musicGroupId,callback:function(t){e.$set(e.searchForm,"musicGroupId","string"===typeof t?t.trim():t)},expression:"searchForm.musicGroupId"}})],1),e._v(" "),r("el-form-item",{attrs:{prop:"courseScheduleId"}},[r("el-input",{attrs:{clearable:"",type:"number",placeholder:"课程编号"},nativeOn:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:function(t){t.target.blur(),e.$refs.searchForm.save(),e.search()}(t)}},model:{value:e.searchForm.courseScheduleId,callback:function(t){e.$set(e.searchForm,"courseScheduleId","string"===typeof t?t.trim():t)},expression:"searchForm.courseScheduleId"}})],1),e._v(" "),r("el-form-item",{attrs:{prop:"groupType"}},[r("el-select",{attrs:{placeholder:"请选择课程组类型"},model:{value:e.searchForm.groupType,callback:function(t){e.$set(e.searchForm,"groupType","string"===typeof t?t.trim():t)},expression:"searchForm.groupType"}},e._l(e.courseListType,(function(e,t){return r("el-option",{key:t,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),r("el-form-item",{attrs:{prop:"courseScheduleType"}},[r("el-select",{attrs:{clearable:"",placeholder:"请选择课程类型"},model:{value:e.searchForm.courseScheduleType,callback:function(t){e.$set(e.searchForm,"courseScheduleType","string"===typeof t?t.trim():t)},expression:"searchForm.courseScheduleType"}},e._l(e.courseType,(function(e,t){return r("el-option",{key:t,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),r("el-form-item",{attrs:{prop:"visitFlag"}},[r("el-select",{attrs:{placeholder:"请选择是否回访",clearable:""},model:{value:e.searchForm.visitFlag,callback:function(t){e.$set(e.searchForm,"visitFlag","string"===typeof t?t.trim():t)},expression:"searchForm.visitFlag"}},[r("el-option",{attrs:{label:"否",value:"0"}}),e._v(" "),r("el-option",{attrs:{label:"是",value:"1"}})],1)],1),e._v(" "),r("el-form-item",{attrs:{prop:"status"}},[r("el-select",{attrs:{placeholder:"请选择考勤状态",clearable:""},model:{value:e.searchForm.status,callback:function(t){e.$set(e.searchForm,"status","string"===typeof t?t.trim():t)},expression:"searchForm.status"}},e._l(e.attendanceStatus,(function(e,t){return r("el-option",{key:t,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),r("el-form-item",{attrs:{prop:"qualifiedFlag"}},[r("el-select",{attrs:{placeholder:"请选择是否达标",clearable:""},model:{value:e.searchForm.qualifiedFlag,callback:function(t){e.$set(e.searchForm,"qualifiedFlag","string"===typeof t?t.trim():t)},expression:"searchForm.qualifiedFlag"}},[r("el-option",{attrs:{value:"1",label:"是"}}),e._v(" "),r("el-option",{attrs:{value:"0",label:"否"}})],1)],1),e._v(" "),r("el-form-item",{attrs:{prop:"dates"}},[r("el-date-picker",{staticStyle:{width:"370px"},attrs:{type:"daterange","range-separator":"至","start-placeholder":"课程开始日期","end-placeholder":"课程结束日期"},model:{value:e.searchForm.dates,callback:function(t){e.$set(e.searchForm,"dates",t)},expression:"searchForm.dates"}})],1),e._v(" "),r("el-form-item",[r("el-button",{attrs:{"native-type":"submit",type:"danger"}},[e._v("搜索")]),e._v(" "),r("el-button",{attrs:{"native-type":"reset",type:"primary"}},[e._v("重置")]),e._v(" "),r("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"export/studentCourseAttendance",expression:"'export/studentCourseAttendance'"}],attrs:{type:"primary"},on:{click:e.onExport}},[e._v("导出")])],1)],1),e._v(" "),r("div",{staticClass:"tableWrap"},[r("el-table",{staticStyle:{width:"100%"},attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.tableList}},[r("el-table-column",{attrs:{align:"center",prop:"courseSchedule.organization.name",label:"分部"}}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"username",label:"学生姓名",width:"110px"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[e._v("\n "+e._s(t.row.username)+"\n "),r("p",{staticStyle:{color:"#f56c6c"}},[e._v("\n ("),r("copy-text",[e._v(e._s(t.row.userId))]),e._v(")\n ")],1)])]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"courseSchedule.teacherName",width:"120px",label:"老师姓名"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.courseSchedule.teacherName)+"\n "),t.row.teacherId?r("p",{staticStyle:{color:"#f56c6c"}},[e._v("\n ("),r("copy-text",[e._v(e._s(t.row.teacherId))]),e._v(")\n ")],1):e._e()]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"musicGroupId",label:"乐团编号"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[r("copy-text",[e._v(e._s(t.row.musicGroupId))])],1)]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"courseScheduleId",label:"课程编号"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[r("copy-text",[e._v(e._s(t.row.courseScheduleId))])],1)]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"subjectName",label:"专业"}}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"musicGroupName",label:"课程组名称"}}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"courseSchedule.name",label:"课程名称"}}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"startClassTime",label:"课程组类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[e._v("\n "+e._s(e._f("coursesType")(t.row.groupType))+"\n ")])]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"startClassTime",label:"课程类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[e._v("\n "+e._s(e._f("coursesType")(t.row.courseSchedule.type))+"\n ")])]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"qualifiedFlag",label:"是否达标"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[e._v("\n "+e._s(t.row.qualifiedFlag?"是":"否")+"\n ")])]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",label:"合并类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[e._v("\n "+e._s(t.row.courseSchedule.newCourseId>0&&t.row.courseSchedule.newCourseId==t.row.courseScheduleId?"合并课":null)+"\n "+e._s(t.row.courseSchedule.newCourseId>0&&t.row.courseSchedule.newCourseId!=t.row.courseScheduleId?"被合并课":null)+"\n ")])]}}])}),e._v(" "),r("el-table-column",{attrs:{width:"180px",align:"center",prop:"startClassTime",label:"上课时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[e._v("\n "+e._s(e._f("dayjsFormat")(t.row.courseSchedule.classDate))+"\n "+e._s(e._f("dayjsFormatMinute")(t.row.courseSchedule.startClassTime))+"-"+e._s(e._f("dayjsFormatMinute")(t.row.courseSchedule.endClassTime))+"\n ")])]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",label:"签到时间",width:"180px"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[e._v("\n "+e._s(t.row.signInTime)+"\n ")])]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"startClassTime",width:"180px",label:"签退时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[e._v("\n "+e._s(t.row.signOutTime)+"\n ")])]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",label:"考勤回访"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[e._v(e._s(e._f("yesOrNo")(t.row.visitFlag)))])]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",label:"考勤状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.courseSchedule&&"NOT_START"!=t.row.courseSchedule.status?r("div",[e._v("\n "+e._s(e._f("clockingIn")(t.row.status))+"\n ")]):e._e()]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",label:"来源"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[e._v("\n "+e._s(e._f("joinCourseType")(t.row.joinCourseType))+"\n ")])]}}])}),e._v(" "),e.permission(e.getFullPermission("visit/add"))?r("el-table-column",{attrs:{align:"center",fixed:"right",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[e.permission(e.getFullPermission("visit/add"))&&!t.row.visitFlag?r("el-button",{attrs:{type:"text"},on:{click:function(r){return e.addVisit(t.row)}}},[e._v("新增回访")]):e._e(),e._v(" "),t.row.visitFlag&&e.permission(e.getFullPermission("visit/queryPage"))?r("el-button",{attrs:{type:"text"},on:{click:function(r){return e.lookVisit(t.row)}}},[e._v("查看回访")]):e._e()],1)]}}],null,!1,2688460990)}):e._e()],1),e._v(" "),r("pagination",{attrs:{sync:"",total:e.rules.total,page:e.rules.page,limit:e.rules.limit,"page-sizes":e.rules.page_size},on:{"update:total":function(t){return e.$set(e.rules,"total",t)},"update:page":function(t){return e.$set(e.rules,"page",t)},"update:limit":function(t){return e.$set(e.rules,"limit",t)},pagination:e.getList}}),e._v(" "),r("el-dialog",{attrs:{title:"新增回访",width:"760px",visible:e.visitVisible},on:{"update:visible":function(t){e.visitVisible=t}}},[e.visitVisible&&e.detail?r("visit",{attrs:{detail:e.detail,username:e.detail.username,isMainGo:!0},on:{close:function(t){e.visitVisible=!1},submited:e.getList}}):e._e()],1)],1)],1)])},s=[function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("h2",[r("div",{staticClass:"squrt"}),e._v("\n 学生考勤管理\n ")])}],n=(r("386d"),r("a481"),r("5530")),o=r("15fd"),l=r("c7eb"),i=(r("96cf"),r("1da1")),c=(r("bc3a"),r("5f87"),r("333d")),u=(r("3908"),r("ed08")),d=r("4328"),p=r.n(d),m=r("ec8a"),h=r("1cc7"),f=r("adb21"),v=r("e3eb"),b=r.n(v),_=r("92e3"),g=r("4edf"),y=["dates"],F=["dates"],w={components:{pagination:c["a"],visit:g["a"]},data:function(){return{visitVisible:!1,detail:null,searchForm:{studentID:"",groupType:"MUSIC",musicGroupId:"",courseScheduleId:"",status:"",teacherId:"",courseScheduleType:"",organId:"",visitFlag:"",dates:[]},courseType:_["v"],courseListType:_["t"],attendanceStatus:_["Z"],tableList:[],organList:[],rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]}}},created:function(){var e,t=this.$route.query;if((null===(e=this.searchForm.dates)||void 0===e?void 0:e.length)<1){var r=t.start||new Date,a=t.end||new Date;this.searchForm.dates=[r,a]}},mounted:function(){var e=this.$route.query;1!=e.visitFlag&&0!=e.visitFlag||(this.searchForm.visitFlag=String(e.visitFlag)),e.status&&(this.searchForm.status=e.status),this.init()},methods:{permission:m["a"],reloadSearch:function(){this.rules.page=1,this.getList()},init:function(){var e=Object(i["a"])(Object(l["a"])().mark((function e(){return Object(l["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.$store.dispatch("setBranchs");case 2:this.getList();case 3:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),addVisit:function(e){this.visitVisible=!0,this.detail=e},onExport:function(){var e=Object(i["a"])(Object(l["a"])().mark((function e(){var t,r,a,s;return Object(l["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!(this.searchForm.studentID>999999999)){e.next=3;break}return this.$message.error("学生编号不能大于999999999"),e.abrupt("return");case 3:return t=this.searchForm,r=t.dates,a=Object(o["a"])(t,y),s=Object(n["a"])(Object(n["a"])({},a),{},{page:this.rules.page,rows:this.rules.limit,ids:this.$route.query.ids},Object(u["d"])(r,["startDateOfCourse","endDateOfCourse"],"YYYY-MM-DD")),e.next=7,Object(f["a"])(this,{url:"/api-web/export/studentCourseAttendance",fileName:"学生考勤列表.xls",method:"post",params:p.a.stringify(b()(s))},"您确定导出学员考勤列表?");case 7:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),getList:function(){var e=this;if(this.searchForm.studentID>999999999)this.$message.error("学生编号不能大于999999999");else{var t=this.searchForm,r=t.dates,a=Object(o["a"])(t,F),s=Object(n["a"])(Object(n["a"])({},a),{},{page:this.rules.page,rows:this.rules.limit},Object(u["d"])(r,["startDateOfCourse","endDateOfCourse"],"YYYY-MM-DD"));Object(h["N"])(s,{ids:this.$route.query.ids}).then((function(t){200==t.code&&(e.tableList=t.data.rows,e.rules.total=t.data.total)}))}},clearSearchUrl:function(){var e=this.$route.query;(e.status||0==e.visitFlag||1==e.visitFlag||e.start||e.end)&&this.$router.replace({status:void 0,visitFlag:void 0,start:void 0,end:void 0})},search:function(){this.rules.page=1,this.clearSearchUrl(),this.getList()},onReSet:function(){this.$refs["searchForm"].resetFields(),this.clearSearchUrl(),this.search()},lookVisit:function(e){this.$router.push({path:"/studentManager/returnVisitList",query:{search:e.id,tabrouter:"2"}})}}},k=w,S=r("2877"),x=Object(S["a"])(k,a,s,!1,null,"5b95ebb9",null);t["default"]=x.exports},adb21:function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var a=r("bc3a"),s=r.n(a),n=(r("4328"),r("5f87")),o=r("3908"),l=r("e3eb"),i=r.n(l),c=function(e,t,r,a){var l=t.url,c={method:t.method?t.method:"get",headers:{Authorization:Object(n["b"])(),tenantId:Object(n["a"])()},url:l,responseType:"blob"};"post"==c.method?c.data=t.params:c.params=t.params,e.$confirm(r||"您确定下载模板","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){o["a"].startLoading(),s()(i()(c)).then((function(r){var s=new Blob([r.data],{type:"application/vnd.ms-excel;charset=utf-8"}),n=new Response(s).text();n.then((function(r){if(-1!=r.indexOf("code")){var n=JSON.parse(r);if(403==n.code)return e.$message.error("登录过期,请重新登录!"),void setTimeout((function(){e.$store.dispatch("user/resetToken").then((function(){location.reload()}))}),1e3);200==n.code?e.$message.success(n.msg):e.$message.error(n.msg),a&&a()}else{var o=URL.createObjectURL(s),l=document.createElement("a"),i=t.fileName||"导出文件.xls";l.href=o,l.setAttribute("download",i),document.body.appendChild(l),l.click(),a&&a()}})),o["a"].endLoading()})).catch((function(t){console.log(t),e.$message.error("下载失败,请联系管理员"),o["a"].endLoading()}))})).catch((function(){}))}}}]);
|