import{d as u,aM as o,b as p,c as t,F as n,aZ as h,bi as m,a as c,aO as g,aP as s}from"./index.cae74add.js";import{C as r}from"./index.8c3312a2.js";import{P as f}from"./index.7d2496a2.js";import{I as v}from"./index.8bc0e094.js";import{E as S,a as i}from"./index2.522d17b4.js";import"./index2.269c01f7.js";import"./index2.82b1a26f.js";const I="_liveClass_1u6h7_1",N="_items_1u6h7_21",d={liveClass:I,items:N},l=u({name:"list",props:{auditStatus:{type:String,default:""}},data(){return{pageInfo:{limit:9,page:1,total:0,page_size:[10,20,40,50]},list:[],loading:!0,dataShow:!1}},mounted(){var a;(a=o.user.data)!=null&&a.entryFlag&&this.getList()},methods:{async getList(){var a;this.loading=!0;try{const{data:e}=await p.post("/api-website/videoLessonGroup/page",{data:{auditStatus:this.auditStatus,page:this.pageInfo.page,rows:this.pageInfo.limit,teacherId:(a=o.user.data)==null?void 0:a.userId}});this.list=e.rows||[],this.pageInfo.total=e.total,e.total<=0&&(this.dataShow=!0)}catch{}this.dataShow?this.loading=!1:setTimeout(()=>{this.loading=!1},200)},onDetail(a){if(this.auditStatus==="UNPASS"){this.$router.push({path:"/userInfo/videoOperation",query:{type:"edit",groupId:a.id}});return}}},render(){var a;return t(n,null,[(a=o.user.data)!=null&&a.entryFlag?t(n,null,[t("div",{class:"flex flex-wrap"},[t(S,{loading:this.loading,animated:!0,class:"flex justify-between",count:3},{default:()=>[this.list.map(e=>t("div",{class:["w-1/3 pt-8",d.items],onClick:()=>this.onDetail(e)},[t(v,{item:{type:"video",id:e.id,backgroundPic:e.lessonCoverUrl,courseGroupName:e.lessonName,studentCount:e.countStudent,avatar:e.avatar,teacherName:e.username,coursePrice:e.lessonPrice,courseNum:e.lessonCount,shelvesFlag:e.shelvesFlag}},null)]))],template:()=>t("div",{class:"w-[218px]"},[t("div",{class:"flex flex-col pt-8 w-[218px] rounded-[10px] overflow-hidden m-auto"},[t(i,{variant:"image",style:{width:"100%",height:"122px"}},null),t("div",{class:"text-base px-2.5 pt-2 text-[#666666] leading-none font-semibold whitespace-nowrap overflow-hidden text-ellipsis"},[t(i,{variant:"h3"},null)]),t("div",{class:"mx-2.5 pt-1.5 pb-2 flex items-center justify-between"},[t(i,{variant:"p",style:{width:"20%"}},null),t("p",{style:{width:"60%"}},null),t(i,{variant:"p",style:{width:"20%"}},null)])])])})]),t(f,{total:this.pageInfo.total,page:this.pageInfo.page,"onUpdate:page":e=>this.pageInfo.page=e,limit:this.pageInfo.limit,"onUpdate:limit":e=>this.pageInfo.limit=e,pageSizes:this.pageInfo.page_size,pagination:this.getList},null),this.dataShow&&t(r,null,null)]):t(r,{type:"teacherCert",message:"\u60A8\u8FD8\u672A\u5B8C\u6210\u8FBE\u4EBA\u8BA4\u8BC1\uFF0C\u8BA4\u8BC1\u540E\u624D\u53EF\u521B\u5EFA\u89C6\u9891\u8BFE\u54E6~",buttonVisibility:!0,buttonText:"\u53BB\u8BA4\u8BC1",onDetail:()=>{this.$router.push("/teacherAuth")}},null)])}}),E=u({name:"video-class",data(){const a=sessionStorage.getItem("videoActiveName");return sessionStorage.removeItem("videoActiveName"),{activeName:a||"PASS"}},render(){return t("div",{class:[d.liveClass,"relative px-[25px]"]},[t(h,{round:!0,type:"primary",class:"absolute right-11 top-3 z-10",onClick:()=>{var a;if((a=o.user.data)!=null&&a.entryFlag)this.$router.push("/userInfo/videoOperation");else{m.error("\u60A8\u8FD8\u672A\u5B8C\u6210\u8FBE\u4EBA\u8BA4\u8BC1\uFF0C\u8BA4\u8BC1\u540E\u624D\u53EF\u521B\u5EFA\u89C6\u9891\u8BFE");return}}},{default:()=>[c("\u65B0\u5EFA\u8BFE\u7A0B")]}),t(g,{modelValue:this.activeName,"onUpdate:modelValue":a=>this.activeName=a},{default:()=>[t(s,{label:"\u5DF2\u4E0A\u67B6",name:"PASS"},{default:()=>[this.activeName==="PASS"&&t(l,{auditStatus:"PASS"},null)]}),t(s,{label:"\u5BA1\u6838\u4E2D",name:"DOING"},{default:()=>[this.activeName==="DOING"&&t(l,{auditStatus:"DOING"},null)]}),t(s,{label:"\u5BA1\u6838\u5931\u8D25",name:"UNPASS"},{default:()=>[this.activeName==="UNPASS"&&t(l,{auditStatus:"UNPASS"},null)]}),t(s,{label:"\u5DF2\u4E0B\u67B6",name:"OUT_SALE"},{default:()=>[this.activeName==="OUT_SALE"&&t(l,{auditStatus:"OUT_SALE"},null)]})]})])}});export{E as default};
