index.ef4cb252.js 2.9 KB

1
  1. import{P as o,C as r}from"./index.29a17ea4.js";import{r as d,a as u}from"./index.b0469f01.js";import{I as p}from"./index.a5d8b1f9.js";import{d as n,c as t,F as h,a4 as m,a5 as e,f as c,a as g,q as f,t as i}from"./vendor.e6623967.js";import"./icon_teacher.c6352c6e.js";const v="_liveClass_kwizm_1";var S={liveClass:v},l=n({name:"list",props:{auditStatus:{type:String,default:""}},data(){return{pageInfo:{limit:10,page:1,total:0,page_size:[10,20,40,50]},list:[],loading:!0,dataShow:!1}},mounted(){this.getList()},methods:{async getList(){var a;this.loading=!0;try{const{data:s}=await d.post("/api-website/videoLessonGroup/page",{data:{auditStatus:this.auditStatus,page:this.pageInfo.page,rows:this.pageInfo.limit,teacherId:(a=u.user.data)==null?void 0:a.userId}});this.list=s.rows||[],this.pageInfo.total=s.total,s.total<=0&&(this.dataShow=!0)}catch{}this.dataShow?this.loading=!1:setTimeout(()=>{this.loading=!1},500)}},render(){return t(h,null,[t("div",{class:"flex flex-wrap px-10"},[t(m,{loading:this.loading,animated:!0,class:"flex",count:3},{default:()=>[this.list.map(a=>t("div",{class:"w-1/3 pt-8"},[t(p,{item:{backgroundPic:a.lessonCoverUrl,courseGroupName:a.lessonName,studentCount:a.countStudent,avatar:a.avatar,teacherName:a.username,coursePrice:a.lessonPrice,courseNum:a.lessonCount}},null)]))],template:()=>t("div",{class:"w-1/3"},[t("div",{class:"flex flex-col pt-8 w-[262px] m-auto"},[t(e,{variant:"image",style:{width:"100%",height:"175px"}},null),t("div",{class:"mx-2.5 py-3.5 border-b border-b-[#F2F2F2]"},[t("div",{class:"text-lg leading-none font-medium whitespace-nowrap overflow-hidden text-ellipsis"},[t(e,{variant:"h3"},null)]),t("div",{class:"text-sm text-[#999] pt-2.5"},[t(e,{variant:"p",style:{width:"50%"}},null)])]),t("div",{class:"mx-2.5 py-4 flex items-center"},[t(e,{variant:"circle",style:{width:"22px",height:"22px",marginRight:"5px"}},null),t(e,{variant:"p",style:{width:"20%"}},null),t("p",{style:{width:"45%"}},null),t(e,{variant:"p",style:{width:"20%"}},null)])])])})]),t(o,{total:this.pageInfo.total,page:this.pageInfo.page,"onUpdate:page":a=>this.pageInfo.page=a,limit:this.pageInfo.limit,pageSizes:this.pageInfo.page_size,pagination:this.getList},null),this.dataShow&&t(r,null,null)])}}),b=n({name:"video-class",data(){return{activeName:"DOING"}},render(){return t("div",{class:[S.liveClass,"relative"]},[t(c,{round:!0,type:"primary",class:"absolute right-11 top-4 z-10",onClick:()=>{this.$router.push("/userInfo/videoOperation")}},{default:()=>[g("\u65B0\u5EFA\u89C6\u9891\u8BFE")]}),t(f,{modelValue:this.activeName,"onUpdate:modelValue":a=>this.activeName=a},{default:()=>[t(i,{label:"\u5DF2\u4E0A\u67B6",name:"DOING"},{default:()=>[this.activeName==="DOING"&&t(l,{auditStatus:"DOING"},null)]}),t(i,{label:"\u5BA1\u6838\u4E2D",name:"PASS"},{default:()=>[this.activeName==="PASS"&&t(l,{auditStatus:"PASS"},null)]}),t(i,{label:"\u5BA1\u6838\u5931\u8D25",name:"UNPASS"},{default:()=>[this.activeName==="UNPASS"&&t(l,{auditStatus:"UNPASS"},null)]})]})])}});export{b as default};