import{s as a}from"./index.module-c3699557-1694073636386.js";import{o as i}from"./api-8e4a6c55-1694073636386.js";import{d as m,e as p,r as o,a as f,n as I,f as e,v as d,q as v,t as u}from"./index-b1b92161-1694073636386.js";import{C as g}from"./index-9d94adc4-1694073636386.js";import{d as b}from"./teacherIcon-b8e3946d-1694073636386.js";import{m as y,f as h}from"./maleIcon-3fe0e51e-1694073636386.js";import{P as q,E as x}from"./evaluationRecords-fecfe4e0-1694073636386.js";import"./api-6332351a-1694073636386.js";import"./useECharts-79b46892-1694073636386.js";import"./index-bfe5aa38-1694073636386.js";import"./dateFormat-d413b524-1694073636386.js";import"./index-2157b43c-1694073636386.js";import"./index-abb28f9d-1694073636386.js";import"./index-10d13301-1694073636386.js";import"./urlUtils-b7caaee8-1694073636386.js";const W=m({name:"classStudentRecode",setup(B,{emit:N}){const s=p({studentInfo:{avatar:"",nickname:"",gender:null,subjectNames:""}}),r=o("textRcode"),t=f(),l=o([{name:"班级管理",path:"/classList"},{name:t.query.name,path:"/classDetail"},{name:t.query.studentName,path:"/classStudentRecode"}]),c=async()=>{console.log(t.query.studentId);try{const n=await i({id:t.query.studentId});s.studentInfo={...n.data}}catch(n){console.log(n)}};return I(()=>{c()}),()=>e("div",null,[e(g,{list:l.value},null),e("div",{class:a.listWrap},[e("div",{class:a.teacherList},[e("div",{class:a.teacherHeader},[e("div",{class:a.teacherHeaderBorder},[e(d,{class:a.teacherHeaderImg,src:s.studentInfo.avatar?s.studentInfo.avatar:b,previewDisabled:!0},null)])]),e("div",{class:a.workafterInfo},[e("h4",{class:a.studentGender},[s.studentInfo.nickname," ",e(d,{src:s.studentInfo.gender?y:h},null)]),e("p",null,[t.query.name," ",s.studentInfo.subjectNames?"|"+s.studentInfo.subjectNames:""])])]),e(v,{class:a.customTabs,value:r.value,"onUpdate:value":n=>r.value=n,size:"large",animated:!1,"pane-wrapper-style":"margin: 0 -4px","pane-style":"padding-left: 4px; padding-right: 4px; box-sizing: border-box;"},{default:()=>[e(u,{name:"textRcode",tab:"练习记录"},{default:()=>[e(q,{classGroupId:t.query.id,studentId:t.query.studentId},null)]}),e(u,{name:"evaluatingRcode",tab:"评测记录"},{default:()=>[e(x,{classGroupId:t.query.id,studentId:t.query.studentId},null)]})]})])])}});export{W as default};
