|
-import{s as t}from"./index.module-22da3a5f.js";import{n as i}from"./api-1723cb91.js";import{d as m,e as p,r as o,a as f,q as I,f as e,o as d,m as v,n as u}from"./index-ec07520e.js";import{C as g}from"./index-849dd4b3.js";import{d as b}from"./teacherIcon-b8e3946d.js";import{m as y,f as h}from"./maleIcon-3fe0e51e.js";import{P as q,E as x}from"./evaluationRecords-1ab8fefb.js";import"./urlUtils-763653c7.js";import"./useECharts-3ca8e965.js";import"./index-af7a1db3.js";import"./dateFormat-4085ea86.js";import"./index-c99b42bd.js";import"./index-2f28b088.js";const W=m({name:"classStudentRecode",setup(N,{emit:R}){const a=p({studentInfo:{avatar:"",nickname:"",gender:null,subjectNames:""}}),r=o("textRcode"),s=f(),l=o([{name:"班级管理",path:"/classList"},{name:s.query.name,path:"/classDetail"},{name:s.query.studentName,path:"/classStudentRecode"}]),c=async()=>{console.log(s.query.studentId);try{const n=await i({id:s.query.studentId});a.studentInfo={...n.data}}catch(n){console.log(n)}};return I(()=>{c()}),()=>e("div",null,[e(g,{list:l.value},null),e("div",{class:t.listWrap},[e("div",{class:t.teacherList},[e("div",{class:t.teacherHeader},[e("div",{class:t.teacherHeaderBorder},[e(d,{class:t.teacherHeaderImg,src:a.studentInfo.avatar?a.studentInfo.avatar:b,previewDisabled:!0},null)])]),e("div",{class:t.workafterInfo},[e("h4",{class:t.studentGender},[a.studentInfo.nickname," ",e(d,{src:a.studentInfo.gender?y:h},null)]),e("p",null,[s.query.name," ",a.studentInfo.subjectNames?"|"+a.studentInfo.subjectNames:""])])]),e(v,{class:t.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(u,{name:"textRcode",tab:"练习记录"},{default:()=>[e(q,{studentId:s.query.studentId},null)]}),e(u,{name:"evaluatingRcode",tab:"评测记录"},{default:()=>[e(x,{studentId:s.query.studentId},null)]})]})])])}});export{W as default};
|
|
|