1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3ef1bb70"],{"0557":function(e,t,a){},"09f4":function(e,t,a){"use strict";a.d(t,"a",(function(){return r})),Math.easeInOutQuad=function(e,t,a,l){return e/=l/2,e<1?a/2*e*e+t:(e--,-a/2*(e*(e-2)-1)+t)};var l=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}();function n(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}function i(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function r(e,t,a){var r=i(),s=e-r,u=20,o=0;t="undefined"===typeof t?500:t;var c=function e(){o+=u;var i=Math.easeInOutQuad(o,r,s,t);n(i),o<t?l(e):a&&"function"===typeof a&&a()};c()}},"1cfc":function(e,t,a){},"22bb":function(e,t,a){"use strict";var l=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[e.title||e.content?a("div",{staticClass:"workTitle"},[e._v("\n "+e._s(e.title)+":"),a("span",[e._v(e._s(e.content))])]):a("div",{staticClass:"workTitle"},[e._v("暂未布置作业")]),e._v(" "),a("el-form",{staticClass:"workForm",staticStyle:{padding:"0 25px"},attrs:{inline:!0}},[a("el-form-item",{attrs:{label:"应交学生数"}},[a("div",{staticClass:"inputStyle"},[e._v(e._s(e.homeworkStudentNum))])]),e._v(" "),a("el-form-item",{attrs:{label:"已交学生数"}},[a("div",{staticClass:"inputStyle"},[e._v(e._s(e.homeworkNum))])]),e._v(" "),a("el-form-item",{attrs:{label:"已回复数"}},[a("div",{staticClass:"inputStyle"},[e._v(e._s(e.repliedNum))])])],1),e._v(" "),a("div",{staticClass:"tableWrap"},[a("el-table",{attrs:{data:e.tableList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[a("el-table-column",{attrs:{align:"center",prop:"studentName",width:"160",label:"学生姓名"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(t.row.studentName)+"\n "),a("span",{staticStyle:{color:"#f56c6c"}},[e._v("("+e._s(t.row.studentId)+")")])])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"phone",label:"手机号",width:"120"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"subjectNames",label:"声部名称"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"submitTime",width:"150",label:"提交训练时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(e._f("dateForMinFormat")(t.row.submitTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"isView",label:"是否提交"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(t.row.submitTime?"是":"否"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"isView",label:"是否查看"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(t.row.isView?"是":"否"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"isReplied",label:"是否回复"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(t.row.isReplied?"是":"否"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"查看训练",width:"100px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[t.row.urlList&&t.row.submitTime?a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.lookWork(t.row)}}},[e._v("查看训练")]):e._e()],1)]}}])})],1),e._v(" "),a("pagination",{attrs:{total:e.rules.total,page:e.rules.page,limit:e.rules.limit},on:{"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}})],1),e._v(" "),e.workVisible?a("el-dialog",{attrs:{title:"查看训练",width:"940px","append-to-body":"",visible:e.workVisible},on:{close:e.closeWorkVisible,"update:visible":function(t){e.workVisible=t}}},[a("div",{staticClass:"sliderWrap"},[a("div",{staticClass:"swiperWrap"},[a("swiper",{ref:"mySwiper",attrs:{options:e.swiperOptions,"auto-update":!0,"auto-destroy":!1,"delete-instance-on-destroy":!1,"cleanup-styles-on-destroy":!1}},[e._l(e.activeRow.urlList,(function(t,l){return a("swiper-slide",{key:l,staticClass:"swiper-no-swiping"},[e.activeIndex==l?a("div",{staticClass:"videoWrap"},[a("video",{ref:"dialogVideo",refInFor:!0,staticStyle:{width:"480px"},attrs:{src:t,controls:"controls"}},[e._v("\n 您的浏览器不支持视频播放\n ")])]):e._e()])})),e._v(" "),a("div",{staticClass:"swiper-pagination",attrs:{slot:"pagination"},slot:"pagination"}),e._v(" "),e.activeRow.urlList.length>1?a("div",{staticClass:"swiper-button-prev swiper-button-white",attrs:{slot:"button-prev"},on:{click:e.prev},slot:"button-prev"}):e._e(),e._v(" "),e.activeRow.urlList.length>1?a("div",{staticClass:"swiper-button-next swiper-button-white",attrs:{slot:"button-next"},on:{click:e.next},slot:"button-next"}):e._e()],2)],1),e._v(" "),a("div",[a("p",{staticClass:"workContainer"},[e._v("训练回复内容:")]),e._v(" "),a("div",{staticClass:"msgWrap"},[e.activeCommit.length>0?a("div",{class:e.activeCommit.length>0?"":"flex"},[e._l(e.activeCommit,(function(e,t){return a("messageBox",{key:t,attrs:{item:e}})})),e._v(" "),e.activeCommit.length<=0?a("p",{staticClass:"nomore"},[e._v("暂无回复内容")]):e._e()],2):e._e()])])])]):e._e()],1)},n=[],i=(a("28a5"),a("ac6a"),a("7212")),r=(a("bbe3"),a("333d")),s=a("1cc7"),u=a("dc1e"),o=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"box",class:{teacher:e.item.isTeacher}},[a("span",{staticClass:"name"},[e._v(e._s(e.item.userName))]),e._v(" "),a("div",{staticClass:"container"},[a("span",{staticClass:"time"},[e._v(e._s(e.item.createTime))]),e._v(" "),"TXT"===e.item.msgType?a("div",{staticClass:"content"},[e._v(e._s(e.item.content))]):e._e(),e._v(" "),"IMG"===e.item.msgType?a("div",{staticClass:"content"},[a("el-image",{staticStyle:{width:"100px",height:"100px"},attrs:{src:e.item.content,fit:"cover","preview-src-list":[e.item.content]}})],1):e._e(),e._v(" "),"VC"===e.item.msgType?a("div",{staticClass:"content"},[a("audio",{ref:"dialogVideo",staticStyle:{width:"240px"},attrs:{controls:"",src:e.item.content}},[e._v("您的浏览器不支持音频播放")])]):e._e()])])},c=[],d={name:"message-box",props:["item"],mounted:function(){}},b=d,v=(a("797d"),a("2877")),p=Object(v["a"])(b,o,c,!1,null,"38aec66e",null),m=p.exports,f={props:["courseScheduleId"],components:{pagination:r["a"],Swiper:i["Swiper"],SwiperSlide:i["SwiperSlide"],messageBox:m},directives:{swiper:i["directive"]},data:function(){var e=this;return{tableList:[],rules:{limit:10,page:1,total:0},workVisible:!1,repliedVisible:!1,studentNum:null,homeworkStudentNum:null,homeworkNum:null,repliedNum:null,activeUrl:null,content:null,title:null,activeRow:null,activeIndex:0,swiperOptions:{noSwiping:!0,observer:!0,observeParents:!0,speed:300,loop:!0,pagination:".swiper-pagination",navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"},on:{slideChange:function(t){e.activeIndex=t.realIndex}}},comUrl:"",comVisible:!1,activeCommit:[]}},computed:{swiper:function(){return this.$refs.mySwiper.$swiper}},mounted:function(){this.init()},activated:function(){this.init()},methods:{init:function(){var e=this;Object(s["Oc"])({courseScheduleId:this.courseScheduleId}).then((function(t){200==t.code&&(e.studentNum=t.data.studentNum,e.homeworkStudentNum=t.data.homeworkStudentNum,e.homeworkNum=t.data.homeworkNum,e.repliedNum=t.data.repliedNum)})),Object(s["db"])({courseScheduleId:this.courseScheduleId}).then((function(t){200==t.code&&(t.data&&(e.content=t.data.content,e.title=t.data.title),e.content?e.content:e.content="")})),this.getList()},getList:function(){var e=this;Object(s["O"])({search:this.courseScheduleId,rows:this.rules.limit,page:this.rules.page}).then((function(t){200==t.code&&(e.rules.total=t.data.total,e.tableList=t.data.rows.map((function(e){return e.urlList=[],e.url&&e.url.split(",").forEach((function(t){t&&e.urlList.push(t)})),e})))}))},lookWork:function(e){var t=this;this.activeRow=e,Object(u["b"])({studentCourseHomeworkId:e.studentCourseHomeworkId,rows:9999}).then((function(e){200==e.code&&(t.activeCommit=e.data.rows,t.workVisible=!0)}))},closeWorkVisible:function(){this.activeUrl=""},prev:function(e){var t=this;this.$nextTick((function(){t.$refs.mySwiper.$swiper.slidePrev()}))},next:function(e){var t=this;this.$nextTick((function(){t.$refs.mySwiper.$swiper.slideNext()}))},lookReplied:function(e){},openAideo:function(e){this.comUrl=e,this.comVisible=!0}},watch:{courseScheduleId:function(e){e&&this.init()}}},h=f,_=(a("6038"),Object(v["a"])(h,l,n,!1,null,"4287e3fd",null));t["a"]=_.exports},4789:function(e,t,a){"use strict";a("0557")},"4f20":function(e,t,a){"use strict";a.d(t,"b",(function(){return i})),a.d(t,"a",(function(){return r})),a.d(t,"c",(function(){return s})),a.d(t,"d",(function(){return u}));var l=a("b775"),n=(a("4328"),"/api-web");function i(e){return Object(l["a"])({url:n+"/webCurseHomework/queryHomePage",method:"get",params:e})}function r(e){return Object(l["a"])({url:n+"/teacher/findCourseHomeworkDetail",method:"get",params:e})}function s(e){return Object(l["a"])({url:n+"/teacher/findCourseStudentsPublic/v2",method:"post",data:e,requestType:"json"})}function u(e){return Object(l["a"])({url:n+"/teacher/findCourseStudentsSubjectPublic/v2",method:"post",data:e,requestType:"json"})}},6038:function(e,t,a){"use strict";a("1cfc")},"797d":function(e,t,a){"use strict";a("b346")},"7c28":function(e,t,a){e.exports=a.p+"static/img/woman.9995a81d.png"},8129:function(e,t,a){"use strict";a("af10")},"92e3":function(e,t,a){"use strict";a.d(t,"u",(function(){return u})),a.d(t,"H",(function(){return o})),a.d(t,"s",(function(){return c})),a.d(t,"c",(function(){return d})),a.d(t,"D",(function(){return b})),a.d(t,"Y",(function(){return v})),a.d(t,"X",(function(){return p})),a.d(t,"d",(function(){return m})),a.d(t,"L",(function(){return f})),a.d(t,"w",(function(){return h})),a.d(t,"ab",(function(){return _})),a.d(t,"t",(function(){return g})),a.d(t,"o",(function(){return S})),a.d(t,"Z",(function(){return I})),a.d(t,"P",(function(){return E})),a.d(t,"cb",(function(){return w})),a.d(t,"db",(function(){return y})),a.d(t,"O",(function(){return T})),a.d(t,"T",(function(){return N})),a.d(t,"B",(function(){return O})),a.d(t,"l",(function(){return C})),a.d(t,"W",(function(){return L})),a.d(t,"bb",(function(){return k})),a.d(t,"I",(function(){return R})),a.d(t,"m",(function(){return j})),a.d(t,"v",(function(){return x})),a.d(t,"M",(function(){return A})),a.d(t,"f",(function(){return D})),a.d(t,"e",(function(){return M})),a.d(t,"K",(function(){return G})),a.d(t,"J",(function(){return V})),a.d(t,"S",(function(){return P})),a.d(t,"G",(function(){return U})),a.d(t,"a",(function(){return F})),a.d(t,"x",(function(){return H})),a.d(t,"p",(function(){return W})),a.d(t,"n",(function(){return Y})),a.d(t,"q",(function(){return $})),a.d(t,"g",(function(){return B})),a.d(t,"F",(function(){return X})),a.d(t,"r",(function(){return q})),a.d(t,"C",(function(){return K})),a.d(t,"A",(function(){return z})),a.d(t,"z",(function(){return J})),a.d(t,"h",(function(){return Q})),a.d(t,"k",(function(){return Z})),a.d(t,"i",(function(){return ee})),a.d(t,"j",(function(){return te})),a.d(t,"R",(function(){return ae})),a.d(t,"N",(function(){return le})),a.d(t,"E",(function(){return ne})),a.d(t,"y",(function(){return ie})),a.d(t,"Q",(function(){return re})),a.d(t,"U",(function(){return se})),a.d(t,"V",(function(){return ue})),a.d(t,"b",(function(){return ce}));var l=a("2d63"),n=a("768b"),i=a("267e"),r=sessionStorage.getItem("tenantConfig");r=r?JSON.parse(r):{};var s=r.tenantId,u=null,o=null;1==s?(o=[{label:"声部课",value:"SINGLE"},{label:"合奏课",value:"MIX"},{label:"基础技能课",value:"HIGH"},{label:"线上基础技能课",value:"HIGH_ONLINE"},{label:"乐团网管课",value:"MUSIC_NETWORK"},{label:"集训声部课",value:"TRAINING_SINGLE"},{label:"集训合奏课",value:"TRAINING_MIX"},{label:"课堂课",value:"CLASSROOM"},{label:"综合课",value:"COMPREHENSIVE"}],u=[{label:"声部课",value:"SINGLE"},{label:"合奏课",value:"MIX"},{label:"基础技能课",value:"HIGH"},{label:"线上基础技能课",value:"HIGH_ONLINE"},{label:"vip课",value:"VIP"},{label:"试听课",value:"DEMO"},{label:"综合课",value:"COMPREHENSIVE"},{label:"网管课",value:"PRACTICE"},{label:"乐团网管课",value:"MUSIC_NETWORK"},{label:"启蒙课",value:"ENLIGHTENMENT"},{label:"集训声部课",value:"TRAINING_SINGLE"},{label:"集训合奏课",value:"TRAINING_MIX"},{label:"课堂课",value:"CLASSROOM"},{label:"对外课",value:"COMM"},{label:"直播课",value:"LIVE"}]):(o=[{label:"声部课",value:"SINGLE"},{label:"合奏课",value:"MIX"},{label:"基础技能课",value:"HIGH"},{label:"集训声部课",value:"TRAINING_SINGLE"},{label:"集训合奏课",value:"TRAINING_MIX"},{label:"课堂课",value:"CLASSROOM"},{label:"综合课",value:"COMPREHENSIVE"}],u=[{label:"声部课",value:"SINGLE"},{label:"合奏课",value:"MIX"},{label:"vip课",value:"VIP"},{label:"试听课",value:"DEMO"},{label:"综合课",value:"COMPREHENSIVE"},{label:"网管课",value:"PRACTICE"},{label:"启蒙课",value:"ENLIGHTENMENT"},{label:"集训声部课",value:"TRAINING_SINGLE"},{label:"集训合奏课",value:"TRAINING_MIX"},{label:"课堂课",value:"CLASSROOM"},{label:"对外课",value:"COMM"},{label:"直播课",value:"LIVE"}]);var c=[{label:"乐团课",value:"MUSIC"},{label:"VIP课",value:"VIP"},{label:"网管课",value:"PRACTICE"},{label:"直播课",value:"LIVE"}],d=[{label:"正常签到",value:1},{label:"异常签到",value:0}],b=[{label:"兼职",value:"PART_TIME"},{label:"全职",value:"FULL_TIME"},{label:"劳务",value:"LABOUR"}],v=[{label:"正常",value:"0"},{label:"冻结",value:"1"},{label:"锁定",value:"9"}],p=[{value:"NORMAL",label:"正常"},{value:"TRUANT",label:"旷课"},{value:"LEAVE",label:"请假"}],m=[].concat(p,[{value:"QUIT_SCHOOL",label:"休学"},{value:"DROP_OUT",label:"退学"},{value:"LATE",label:"迟到"}]),f=[{value:"APPLY",label:"报名"},{value:"RENEW",label:"续费"},{value:"MEMBER",label:"会员购买"},{value:"SMALL_CLASS_TO_BUY",label:"VIP购买"},{value:"SPORADIC",label:"零星收费"},{value:"LUCK",label:"福袋活动"},{value:"DEGREE_REGISTRATION",label:"考级报名"},{value:"DOUBLE_ELEVEN2020",label:"2020双十一活动"},{value:"DOUBLE_ELEVEN2021",label:"2021双十一活动"},{value:"DEGREE",label:"儿童节活动"},{value:"PRACTICE_GROUP_BUY",label:"网管课"},{value:"PRACTICE_GROUP_RENEW",label:"网管课续费"},{value:"REPAIR",label:"乐器维修"},{value:"OUTORDER",label:"外部收入"},{value:"GOODS_SELL",label:"商品销售"},{value:"MALL_BUY",label:"商城销售"},{value:"SUBJECT_CHANGE",label:"声部更换"},{value:"MAINTENANCE",label:"乐器保养"},{value:"ADD_STUDENT",label:"乐团报名"},{value:"REPLACEMENT",label:"乐器置换"},{value:"SCHOOL",label:"学校订单"},{value:"PERSONAL",label:"个人订单"},{value:"OTHER",label:"其他"},{value:"ACTIVITY",label:"活动购买"},{value:"LIVE_BUY",label:"直播购物"},{value:"LIVE_GROUP_BUY",label:"直播课购买"}],h=[{value:"ING",label:"交易中"},{value:"SUCCESS",label:"成功交易"},{value:"FAILED",label:"交易失败"},{value:"CLOSE",label:"交易关闭"}],_=[{value:"0",text:"未开始"},{value:"1",text:"报名中"},{value:"2",text:"进行中"},{value:"4",text:"已结束"},{value:"3",text:"取消"}],g=[{value:"NOT_START",label:"未开始"},{value:"UNDERWAY",label:"进行中"},{value:"OVER",label:"已结束"}],S=[{value:"NORMAL",label:"进行中"},{value:"FINISH",label:"结束"},{value:"CANCEL",label:"关闭"},{value:"LOCK",label:"锁定"}],I=[{value:"RECHARGE",label:"充值"},{value:"CONSUME",label:"建课"},{value:"RETURN",label:"退课"},{value:"MANUAL_ADD",label:"系统充值"},{value:"MANUAL_SUB",label:"系统扣除"}],E=[{value:"FREE",label:"免费"},{value:"CHARGE",label:"收费"},{value:"TRIAL",label:"试听课"},{value:"CARE_PACKAGE",label:"关心包"},{value:"COME_ON_PACKAGE",label:"加油包"}],w=[{value:"课程推荐",label:"课程推荐",children:[{value:"新课推荐",label:"新课推荐"},{value:"续费提醒",label:"续费提醒"}]},{value:"常规回访",label:"常规回访",children:[{value:"课后及训练回访",label:"课后及训练回访"},{value:"练习及乐团表现",label:"练习及乐团表现"}]},{value:"其它",label:"其它",children:[{value:"其它",label:"其它"}]}],y=[{value:"课程推荐",label:"课程推荐",children:[{value:"新课推荐",label:"新课推荐"},{value:"续费提醒",label:"续费提醒"}]},{value:"常规回访",label:"常规回访",children:[{value:"课后及训练回访",label:"课后及训练回访"},{value:"练习及乐团表现",label:"练习及乐团表现"},{label:"考勤申诉",value:"考勤申诉"},{value:"异常请假回访",label:"异常请假回访"}]},{value:"小课回访",label:"小课回访",children:[{value:"续费类回访",label:"续费类回访"},{value:"服务回访",label:"服务回访"},{value:"其他",label:"其他"}]},{value:"云教练",label:"云教练",children:[{value:"体验回访",label:"体验回访"}]},{value:"其它",label:"其它",children:[{value:"其它",label:"其它"},{value:"会员续费",label:"会员续费"}]}],T=[{value:"YQPAY",label:"双乾"},{value:"BALANCE",label:"余额"},{value:"ADAPAY",label:"汇付"},{value:"YEEPAY",label:"易宝"}],N=[{value:"INSTRUMENT",label:"乐器销售"},{value:"ACCESSORIES",label:"配件销售"},{value:"SCHOOL_BUY",label:"学校采购"},{value:"OTHER",label:"其它"}],O=[{value:"INSTRUMENT",label:"乐器"},{value:"ACCESSORIES",label:"辅件"},{value:"TEACHING",label:"教材"},{value:"STAFF",label:"教谱"},{value:"OTHER",label:"其它"}],C=[{value:"1",label:"一年级"},{value:"2",label:"二年级"},{value:"3",label:"三年级"},{value:"4",label:"四年级"},{value:"5",label:"五年级"},{value:"6",label:"六年级"},{value:"7",label:"初一"},{value:"8",label:"初二"},{value:"9",label:"初三"},{value:"10",label:"高一"},{value:"11",label:"高二"},{value:"12",label:"高三"}],L=[{value:"INTERNAL",label:"内部"},{value:"EXTERNAL",label:"外部"},{value:"ALL",label:"全部"}],k=[{label:"不限制",value:"1"},{label:"线上不可调为线下",value:"0"},{label:"线下不可调为线上",value:"2"},{label:"线上线下不可互调",value:"3"}],R=oe(i["musicGroupType"]),j=oe(i["classTime"]),x=[{label:"课程收费",value:0},{label:"会员收费",value:2},{label:"免费",value:3}],A=oe(i["payOrderType"]),D=oe(i["auditType"]),M=oe(i["auditPaymentType"]),G=oe(i["orderServerType"]),V=oe(i["orderAuditType"]),P=oe(i["rewardModeType"]),U=oe(i["musicClassType"]),F=oe(i["ProbationPeriodStatus"]),H=oe(i["downListType"]),W=oe(i["conclusion"]),Y=oe(i["clientType"]),$=oe(i["couponType"]),B=oe(i["backType"]),X=oe(i["memberEnum"]),q=oe(i["coupontypeDetail"]),K=oe(i["issue"]),z=oe(i["feedbackType"]),J=oe(i["feedbackTypeDesc"]),Q=oe(i["campState"]),Z=oe(i["catgGoupType"]),ee=oe(i["catRole"]),te=oe(i["catType"]),ae=oe(i["quiteReason"]),le=oe(i["payUserType"]),ne=oe(i["levelStatus"]),ie=oe(i["evaluateStatus"]),re=oe(i["problemType"]),se=oe(i["schoolUserType"]),ue=oe(i["shareLiveType"]);function oe(e){var t=[];for(var a in e)t.push({label:e[a],value:a});return t}var ce=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["value","label"],a=Object(n["a"])(t,2),i=a[0],r=a[1],s={};if(e&&e.length){var u,o=Object(l["a"])(e);try{for(o.s();!(u=o.n()).done;){var c=u.value;s[c[i]]=c[r]}}catch(d){o.e(d)}finally{o.f()}}return s}},"9a35":function(e,t,a){"use strict";a("d84b")},a7920:function(e,t,a){"use strict";a.r(t);var l=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"m-container"},[e._m(0),e._v(" "),a("div",{staticClass:"m-core"},[a("save-form",{ref:"saveForm",attrs:{inline:!0,model:e.searchForm},on:{submit:e.search,reset:e.onReSet}},[a("el-form-item",[a("el-input",{staticClass:"search",attrs:{clearable:"",placeholder:"课程编号/名称/乐团名称/老师"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:function(t){t.target.blur(),e.$refs.saveForm.save(),e.search()}(t)}},model:{value:e.searchForm.search,callback:function(t){e.$set(e.searchForm,"search","string"===typeof t?t.trim():t)},expression:"searchForm.search"}})],1),e._v(" "),a("el-form-item",{attrs:{prop:"organId"}},[a("el-select",{staticClass:"multiple",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 a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),a("el-form-item",[a("el-date-picker",{staticStyle:{width:"420px"},attrs:{type:"daterange","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"上课开始日期","end-placeholder":"上课结束日期","picker-options":{firstDayOfWeek:1}},model:{value:e.searchForm.courseTimer,callback:function(t){e.$set(e.searchForm,"courseTimer","string"===typeof t?t.trim():t)},expression:"searchForm.courseTimer"}})],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{"native-type":"submit",type:"danger"}},[e._v("搜索")]),e._v(" "),a("el-button",{attrs:{"native-type":"reset",type:"primary"}},[e._v("重置")])],1)],1),e._v(" "),a("div",{staticClass:"tableWrap"},[a("el-table",{staticStyle:{width:"100%"},attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.tableList}},[a("el-table-column",{attrs:{align:"center",prop:"courseScheduleId",label:"课程编号"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"courseScheduleName",label:"课程名称"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"organName",label:"分部"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"groupName",label:"乐团"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"布置时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(t.row.createTime?t.row.createTime.substr(0,16):"")+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"actualTeacherName",label:"布置老师"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"expectNum",label:"应交人数"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"completedNum",label:"完成人数"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"studentId",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[a("auth",{attrs:{auths:"/teamCourseListDetailWorkList/attendanceList"}},[a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.lookDetail(t.row)}}},[e._v("查看")])],1)],1)]}}])})],1),e._v(" "),a("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(" "),e.classVisible?a("el-dialog",{attrs:{title:"详情",visible:e.classVisible,width:"1000px"},on:{"update:visible":function(t){e.classVisible=t}}},["v1"==e.activeRow.versionTag?a("studentWork",{attrs:{courseScheduleId:e.activeRow.courseScheduleId}}):a("courseWorkeDetail",{attrs:{courseScheduleId:e.activeRow.courseScheduleId}})],1):e._e()],1)],1)])},n=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("h2",[a("div",{staticClass:"squrt"}),e._v("\n 课后练习\n ")])}],i=(a("386d"),a("db72")),r=a("a8db"),s=a("333d"),u=a("92e3"),o=a("22bb"),c=a("4f20"),d=a("ed08"),b=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("div",{staticClass:"teacherWrap"},[a("div",{staticClass:"teacherHeader"},[a("el-image",{staticStyle:{width:"50px",height:"50px"},attrs:{src:e.courseDetail.teacherImg?e.courseDetail.teacherImg:e.tetacherIcon}})],1),e._v(" "),a("div",{staticClass:"courseInfo"},[a("h4",[e._v("\n "+e._s(e.courseDetail.courseScheduleName)+"\n ")]),e._v(" "),a("span",[e._v(e._s(e.courseDetail.teacherName))])])]),e._v(" "),a("el-descriptions",{staticClass:"margin-top",attrs:{column:3,direction:"vertical"}},[a("el-descriptions-item",{attrs:{label:"乐团","label-class-name":"my-label","content-class-name":"my-content"}},[e._v(e._s(e.courseDetail.musicGroupName))]),e._v(" "),a("el-descriptions-item",{attrs:{label:"课程编号","label-class-name":"my-label","content-class-name":"my-content"}},[e._v(e._s(e.courseDetail.courseScheduleId))]),e._v(" "),a("el-descriptions-item",{attrs:{label:"上课时间","label-class-name":"my-label","content-class-name":"my-content"}},[e._v("\n "+e._s(e._f("dayjsFormat")(e.courseDetail.classDate))+"\n "+e._s(e._f("dayjsFormatMinute")(e.courseDetail.startTime))+"-"+e._s(e._f("dayjsFormatMinute")(e.courseDetail.endTime)))]),e._v(" "),a("el-descriptions-item",{attrs:{label:"布置时间","label-class-name":"my-label","content-class-name":"my-content"}},[e._v(e._s(e.courseDetail.assignTime))]),e._v(" "),a("el-descriptions-item",{attrs:{label:"截止时间","label-class-name":"my-label","content-class-name":"my-content"}},[e._v(e._s(e.courseDetail.expiryDate))]),e._v(" "),a("el-descriptions-item",{attrs:{label:"完成情况","label-class-name":"my-label","content-class-name":"my-content"}},[e._v(e._s(e.courseDetail.finishNum)+" /\n "+e._s(e.courseDetail.studentNum))])],1),e._v(" "),a("el-tabs",{model:{value:e.activeName,callback:function(t){e.activeName="string"===typeof t?t.trim():t},expression:"activeName"}},[e.permission("/teamCourseListDetailStudnetList")?a("el-tab-pane",{attrs:{label:"学员列表",name:"first"}},["first"==e.activeName?a("div",[a("studentWroks",{ref:"studentWroksRef",attrs:{courseScheduleId:e.courseScheduleId}})],1):e._e()]):e._e(),e._v(" "),e.permission("/teamCourseListDetailStudnetList")?a("el-tab-pane",{attrs:{label:"练习内容",name:"second"}},["second"==e.activeName?a("div",[a("textConment",{attrs:{trainingDetailList:e.trainingGroupList,courseScheduleId:e.courseScheduleId}})],1):e._e()]):e._e()],1)],1)},v=[],p=a("c80c"),m=(a("96cf"),a("3b8d")),f=a("7c28"),h=a.n(f),_=a("ec8a"),g=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",e._l(e.fitterTraining,(function(t,l){return a("div",{key:l},[a("el-alert",{attrs:{title:"练习组"+(l+1),closable:!1}},[e._v("\n "+e._s(t.subjectName)+"\n ")]),e._v(" "),a("el-table",{staticStyle:{width:"100%","margin-bottom":"12px"},attrs:{data:t.trainingDetailList,"show-header":!1,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[a("el-table-column",{attrs:{prop:"musicScoreName"}}),e._v(" "),a("el-table-column",{attrs:{prop:"trainingSpeed"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.trainingSpeed)+"速度")]}}],null,!0)}),e._v(" "),a("el-table-column",{attrs:{prop:"times"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.times)+"次")]}}],null,!0)})],1)],1)})),0)},S=[],I={props:["trainingDetailList","courseScheduleId"],data:function(){return{subjectId:[],list:[],subjectList:[],fitterTraining:[]}},mounted:function(){console.log(this.trainingDetailList),this.fitterTraining=this.trainingDetailList.map((function(e){return e})),this.getPublicSubject()},methods:{getPublicSubject:function(){var e=Object(m["a"])(Object(p["a"])().mark((function e(){var t;return Object(p["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(c["d"])({courseScheduleId:this.courseScheduleId,type:"HOMEWORK"});case 3:t=e.sent,this.subjectList=t.data,e.next=10;break;case 7:e.prev=7,e.t0=e["catch"](0),console.log(e.t0);case 10:case"end":return e.stop()}}),e,this,[[0,7]])})));function t(){return e.apply(this,arguments)}return t}(),checkSubject:function(e){var t=this;console.log(e[0],this.trainingDetailList),this.subjectId.length>1&&this.subjectId.shift(),this.subjectId?this.fitterTraining=this.trainingDetailList.filter((function(e){return e.subjectId==t.subjectId[0]})):this.fitterTraining=this.trainingDetailList.map((function(e){return e}))}}},E=I,w=(a("9a35"),a("2877")),y=Object(w["a"])(E,g,S,!1,null,"60f2df50",null),T=y.exports,N=a("da46"),O={props:["courseScheduleId"],components:{studentWroks:N["a"],textConment:T},data:function(){return{tetacherIcon:h.a,activeName:"first",courseDetail:{assignTime:"",classDate:"",startTime:"",endTime:"",classGroupName:"",courseScheduleName:"",musicGroupName:"",expiryDate:"",subjectName:"",teacherName:"",teacherImg:"",courseScheduleId:"",finishNum:"",studentNum:""},trainingDetailList:[],trainingGroupList:[]}},mounted:function(){this.getWorkerDetail()},methods:{getWorkerDetail:function(){var e=Object(m["a"])(Object(p["a"])().mark((function e(){var t;return Object(p["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(c["a"])({courseScheduleId:this.courseScheduleId});case 3:t=e.sent,this.courseDetail=Object(i["a"])({},t.data),this.trainingDetailList=t.data.trainingDetailList,this.trainingGroupList=t.data.trainingGroupList||[],e.next=12;break;case 9:e.prev=9,e.t0=e["catch"](0),console.log(e.t0);case 12:case"end":return e.stop()}}),e,this,[[0,9]])})));function t(){return e.apply(this,arguments)}return t}(),permission:function(e,t){return Object(_["a"])(e,t)}}},C=O,L=(a("b489"),Object(w["a"])(C,b,v,!1,null,"def37d22",null)),k=L.exports,R=["courseTimer"],j={components:{pagination:s["a"],studentWork:o["a"],courseWorkeDetail:k},data:function(){return{courseListType:u["s"],searchForm:{search:null,organId:null,groupType:"MUSIC",courseTimer:[]},teacherList:[],tableList:[],organList:[],rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]},activeRow:null,classVisible:!1}},created:function(){},mounted:function(){this.$store.dispatch("setBranchs"),this.init()},activated:function(){this.init()},methods:{init:function(){this.getList()},getList:function(){var e=this,t=this.searchForm,a=t.courseTimer,l=Object(r["a"])(t,R),n=Object(i["a"])(Object(i["a"])({},l),{},{page:this.rules.page,rows:this.rules.limit},Object(d["b"])(a,["classStartDate","classEndDate"]));Object(c["b"])(n).then((function(t){200==t.code&&(e.tableList=t.data.rows,e.rules.total=t.data.total)}))},search:function(){this.rules.page=1,this.getList()},onReSet:function(){this.searchForm={search:null,organId:null,groupType:"MUSIC",courseTimer:[],cloudHomeworkFlag:""},this.search()},lookDetail:function(e){this.activeRow=e,this.classVisible=!0}}},x=j,A=(a("4789"),Object(w["a"])(x,l,n,!1,null,"49304bd7",null));t["default"]=A.exports},af10:function(e,t,a){},b346:function(e,t,a){},b489:function(e,t,a){"use strict";a("deb5")},d84b:function(e,t,a){},da46:function(e,t,a){"use strict";var l=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"studentWroks"},[e.subjectList.length>1?a("el-checkbox-group",{staticStyle:{"margin-bottom":"20px"},attrs:{size:"medium"},on:{change:e.checkSubject},model:{value:e.subjectId,callback:function(t){e.subjectId=t},expression:"subjectId"}},e._l(e.subjectList,(function(t,l){return a("el-checkbox-button",{key:l,class:1==e.subjectList.length?"one":"",attrs:{label:t.id}},[e._v(e._s(t.name))])})),1):e._e(),e._v(" "),a("el-table",{attrs:{"max-height":"300px","header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.list}},[a("el-table-column",{attrs:{type:"expand"},scopedSlots:e._u([{key:"default",fn:function(t){return e._l(t.row.studentLessonTrainingDetail,(function(t,l){return a("el-row",{key:l,attrs:{gutter:20}},[a("el-col",{attrs:{span:12}},[a("div",{staticClass:"rowFirst"},[e._v(e._s(t.musicScoreName))])]),e._v(" "),a("el-col",{attrs:{span:6}},[a("div",{staticClass:"rowSecond"},[a("span",[e._v(e._s(t.trainingSpeed))]),e._v(" 速度\n ")])]),e._v(" "),a("el-col",{attrs:{span:6}},[a("div",{staticClass:"rowlast"},[a("span",{class:t.trainingTimes>=t.times?"":"red"},[e._v(e._s(t.trainingTimes))]),e._v("\n / "+e._s(t.times)+" 次\n ")])])],1)}))}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"userName",align:"left",label:"学生姓名"}}),e._v(" "),a("el-table-column",{attrs:{prop:"phone",align:"left",label:"手机号"}}),e._v(" "),a("el-table-column",{attrs:{prop:"subjectName",align:"left",label:"声部名称"}}),e._v(" "),a("el-table-column",{attrs:{prop:"submitTime",align:"left",label:"完成时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(e._f("dateForMinFormat")(t.row.submitTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"finishFlag",align:"right",label:"训练情况"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(t.row.finishFlag?"已完成":"未完成"))])]}}])})],1)],1)},n=[],i=a("c80c"),r=(a("96cf"),a("3b8d")),s=a("4f20"),u={props:["courseScheduleId"],data:function(){return{subjectId:[],list:[],subjectList:[]}},mounted:function(){console.log(this.courseScheduleId,"mounted"),this.courseScheduleId&&(this.getStudentList(this.courseScheduleId),this.getPublicSubject())},methods:{getStudentList:function(){var e=Object(r["a"])(Object(i["a"])().mark((function e(){var t;return Object(i["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(s["c"])({courseScheduleId:this.courseScheduleId,type:"HOMEWORK",subjectId:this.subjectId[0]?this.subjectId[0]:""});case 3:t=e.sent,this.list=t.data,e.next=10;break;case 7:e.prev=7,e.t0=e["catch"](0),console.log(e.t0);case 10:case"end":return e.stop()}}),e,this,[[0,7]])})));function t(){return e.apply(this,arguments)}return t}(),getPublicSubject:function(){var e=Object(r["a"])(Object(i["a"])().mark((function e(){var t;return Object(i["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(s["d"])({courseScheduleId:this.courseScheduleId,type:"HOMEWORK"});case 3:t=e.sent,this.subjectList=t.data,e.next=10;break;case 7:e.prev=7,e.t0=e["catch"](0),console.log(e.t0);case 10:case"end":return e.stop()}}),e,this,[[0,7]])})));function t(){return e.apply(this,arguments)}return t}(),checkSubject:function(e){this.subjectId.length>1&&this.subjectId.shift(),this.getStudentList()}}},o=u,c=(a("8129"),a("2877")),d=Object(c["a"])(o,l,n,!1,null,"11683d60",null);t["a"]=d.exports},dc1e:function(e,t,a){"use strict";a.d(t,"c",(function(){return i})),a.d(t,"d",(function(){return r})),a.d(t,"a",(function(){return s})),a.d(t,"b",(function(){return u}));var l=a("b775"),n=(a("4328"),"/api-web");function i(e){return Object(l["a"])({url:n+"/studentManage/getOperatingStudents",method:"GET",params:e})}function r(e){return Object(l["a"])({url:n+"/teacherCourseReward/queryPage",method:"GET",params:e})}function s(e){return Object(l["a"])({url:n+"/exercisesSituation/findServiceStudentDetail",method:"GET",params:e})}function u(e){return Object(l["a"])({url:n+"/exercisesSituation/findStudentHomeworkComments",method:"GET",params:e})}},deb5:function(e,t,a){},ed08:function(e,t,a){"use strict";a.d(t,"c",(function(){return r})),a.d(t,"b",(function(){return s})),a.d(t,"a",(function(){return u}));var l=a("bd86"),n=(a("c5f6"),a("28a5"),a("a481"),a("6b54"),a("7618"),a("5a0c")),i=a.n(n);var r=function(e){var t=[];for(var a in e)if(e.hasOwnProperty(a)){var l=e[a],n=a.toLocaleUpperCase();t.push({label:l,value:"TRUE"===n||"FALSE"===n?"TRUE"===n:a})}return t},s=function(e){var t,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"YYYY-MM-DD";return e&&e.length?(t={},Object(l["a"])(t,a[0]||"start",i()(e[0]).isValid()?i()(e[0]).format(n):""),Object(l["a"])(t,a[1]||"end",i()(e[1]).isValid()?i()(e[1]).format(n):""),t):{}},u=function(e){var t,a,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"YYYY-MM-DD";return e&&e.length?"YYYY-MM-DD"===r?(t={},Object(l["a"])(t,n[0]||"start",i()(e[0]).isValid()?i()(e[0]).format(r)+" 00:00:00":""),Object(l["a"])(t,n[1]||"end",i()(e[1]).isValid()?i()(e[1]).format(r)+" 23:59:59":""),t):(a={},Object(l["a"])(a,n[0]||"start",i()(e[0]).isValid()?i()(e[0]).format(r):""),Object(l["a"])(a,n[1]||"end",i()(e[1]).isValid()?i()(e[1]).format(r):""),a):{}}}}]);
|