"use strict";(self["webpackChunkstudent_information_sys"]=self["webpackChunkstudent_information_sys"]||[]).push([[158],{158:function(e,t,s){s.r(t),s.d(t,{default:function(){return d}});var a=function(){var e=this,t=e._self._c;return t("div",[t("el-tabs",{on:{"tab-click":e.changeTab},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[t("el-tab-pane",{attrs:{label:"学生成绩",name:"stu"}},[t("el-row",{attrs:{gutter:30}},[t("el-col",{attrs:{span:8}},[t("el-input",{attrs:{placeholder:"学号"},model:{value:e.studentCode,callback:function(t){e.studentCode=t},expression:"studentCode"}})],1),t("el-col",{attrs:{span:3}},[t("el-button",{attrs:{type:"primary"},on:{click:e.searchByStu}},[e._v("查询")])],1)],1),t("br"),t("br"),t("el-descriptions",{attrs:{title:"查询结果："}},[t("el-descriptions-item",{attrs:{label:"学生姓名"}},[e._v(e._s(e.studentScore.name))]),t("el-descriptions-item",{attrs:{label:"学号"}},[e._v(e._s(e.studentScore.code))]),t("el-descriptions-item",{attrs:{label:"学分"}},[e._v(e._s(e.studentScore.score))]),t("el-descriptions-item",{attrs:{label:"课程数"}},[e._v(e._s(e.studentScore.count))])],1)],1),t("el-tab-pane",{attrs:{label:"课程成绩",name:"cou"}},[t("el-form-item",{attrs:{label:"课程名称"}},[t("el-input",{attrs:{placeholder:"课程名称"},model:{value:e.studentCode,callback:function(t){e.studentCode=t},expression:"studentCode"}})],1),t("el-button",{attrs:{type:"primary"},on:{click:e.searchByCou}},[e._v("查询")]),t("el-table",{attrs:{data:e.scoreList}})],1)],1)],1)},o=[],n=s(1728),r=s.n(n),l={data(){return{activeName:"stu",studentCode:"",studentScore:{name:"",code:"",score:"",count:0},scoreList:{}}},methods:{handleClick(e,t){console.log(e,t)},searchByStu(){r().ajax({url:this.$apiUrl+"/scoreAction/getByStu",method:"GET",data:{studentCode:this.studentCode},success:e=>{e.success?(this.studentScore.code=this.studentCode,this.studentScore.name=e.msg,this.studentScore.score=e.data,this.studentScore.count=e.count):this.$message({type:"error",message:"查询失败",showClose:!0})},error:e=>{this.$message({type:"error",message:"请求数据失败，code="+e.status,showClose:!0})}})},searchByCou(){}},mounted(){}},c=l,u=s(8126),i=(0,u.A)(c,a,o,!1,null,null,null),d=i.exports}}]);
//# sourceMappingURL=158.b09d1e82.js.map