classStudentRecode-f0a433a1.js 2.1 KB

1
  1. import{s as a}from"./index.module-f8aa9be5.js";import{n as i}from"./api-4e080393.js";import{d as m,e as p,r as o,a as f,n as I,f as e,y as u,p as v,q as d}from"./index-4e30efe5.js";import{C as g}from"./index-50d09a35.js";import{d as y}from"./teacherIcon-b8e3946d.js";import{m as b,f as h}from"./maleIcon-3fe0e51e.js";import{P as q,E as x}from"./evaluationRecords-53063de0.js";import"./api-1d3862b5.js";import"./useECharts-fff2b9c0.js";import"./index-dac4bfce.js";import"./dateFormat-9c2d8392.js";import"./index-3f7409da.js";import"./index-c97d8b66.js";import"./index-33821455.js";import"./searchs-1f038725.js";import"./urlUtils-b7caaee8.js";const M=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(u,{class:a.teacherHeaderImg,src:s.studentInfo.avatar?s.studentInfo.avatar:y,previewDisabled:!0},null)])]),e("div",{class:a.workafterInfo},[e("h4",{class:a.studentGender},[s.studentInfo.nickname," ",e(u,{src:s.studentInfo.gender?b: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:!0,"pane-wrapper-style":"margin: 0 -4px","pane-style":"padding-left: 4px; padding-right: 4px; box-sizing: border-box;"},{default:()=>[e(d,{name:"textRcode",tab:"练习记录"},{default:()=>[e(q,{classGroupId:t.query.id,studentId:t.query.studentId},null)]}),e(d,{name:"evaluatingRcode",tab:"评测记录"},{default:()=>[e(x,{classGroupId:t.query.id,studentId:t.query.studentId},null)]})]})])])}});export{M as default};