You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
EduSystem/EduSystemServer/dist/js/app.8637dce5.js

2 lines
47 KiB

(function(){"use strict";var e={5371:function(e,t,a){a.d(t,{Z:function(){return d}});var s=function(){var e=this,t=e._self._c;return t("div",[t("el-tabs",{on:{"tab-click":e.handleClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[t("el-tab-pane",{attrs:{label:"我的选课",name:"info"}}),t("el-tab-pane",{attrs:{label:"选课",name:"select"}})],1),t("router-view")],1)},l=[],r=(a(7658),{name:"course",data(){return{activeName:"info"}},methods:{handleClick(e,t){this.$router.push("/student/course/"+this.activeName)}}}),o=r,n=a(1001),i=(0,n.Z)(o,s,l,!1,null,null,null),d=i.exports},6413:function(e,t,a){a.d(t,{Z:function(){return d}});var s=function(){var e=this,t=e._self._c;return t("el-table",{ref:"tableData",staticStyle:{width:"100%"},attrs:{data:e.tableData}},[t("el-table-column",{attrs:{prop:"cid__name",label:"课程名称",width:"220"}}),t("el-table-column",{attrs:{prop:"cid__type",label:"课程类型",width:"220"}}),t("el-table-column",{attrs:{prop:"cid__tid__name",label:"任课老师",width:"150"}}),t("el-table-column",{attrs:{prop:"cid__tid__title",label:"老师职称",width:"150"}}),t("el-table-column",{attrs:{prop:"cid__tid__dept",label:"老师院系",width:"220"}}),t("el-table-column",{attrs:{prop:"cid__credit",width:"150",label:"课程学分"}}),t("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(a){return[t("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(t){return e.handleDelete(a.$index,a.row)}}},[e._v("退课")])]}}])})],1)},l=[],r={data(){return{tableData:[{}]}},methods:{getSelectCourse(){this.$axios.get("/course/getCourseById").then((e=>{0===e.data.code?this.tableData=e.data.data:this.$message({message:e.data.message,type:"error"})}))},handleDelete(e,t){console.log(e,t),this.$confirm("是否退出选课?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((()=>{this.$axios.get("/course/deleteSelectCourse?sid="+t.sid+"&cid="+t.cid).then((e=>{this.$message({type:0===e.data.code?"success":"error",message:e.data.message})})),this.getSelectCourse()})).catch((()=>{this.$message({type:"info",message:"已取消删除"})}))}},mounted(){this.getSelectCourse()}},o=r,n=a(1001),i=(0,n.Z)(o,s,l,!1,null,null,null),d=i.exports},1268:function(e,t,a){a.d(t,{Z:function(){return d}});var s=function(){var e=this,t=e._self._c;return t("div",[t("el-card",{staticClass:"box-card"},[t("el-form",{ref:"form",staticClass:"demo-form-inline",attrs:{model:e.form,"label-width":"80px",inline:!0}},[t("el-form-item",{attrs:{label:"课程名称"}},[t("el-input",{model:{value:e.form.cName,callback:function(t){e.$set(e.form,"cName",t)},expression:"form.cName"}})],1),t("el-form-item",{attrs:{label:"课程类型"}},[t("el-input",{model:{value:e.form.cType,callback:function(t){e.$set(e.form,"cType",t)},expression:"form.cType"}})],1),t("el-form-item",{attrs:{label:"老师名称"}},[t("el-input",{model:{value:e.form.tName,callback:function(t){e.$set(e.form,"tName",t)},expression:"form.tName"}})],1),t("el-form-item",{attrs:{size:"large"}},[t("el-button",{attrs:{type:"primary"},on:{click:e.search}},[e._v("查询")])],1)],1)],1),t("el-card",{staticClass:"box-card",staticStyle:{"margin-top":"20px"}},[t("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData,border:"","show-header":"",stripe:""}},[t("el-table-column",{attrs:{fixed:"",prop:"name",label:"课程名称",width:"200"}}),t("el-table-column",{attrs:{prop:"type",label:"课程类型",width:"180"}}),t("el-table-column",{attrs:{prop:"credit",label:"课程学分",width:"150"}}),t("el-table-column",{attrs:{prop:"tid__name",label:"教师名称",width:"180"}}),t("el-table-column",{attrs:{prop:"tid__title",label:"教师职称",width:"180"}}),t("el-table-column",{attrs:{prop:"tid__dept",label:"教师院系",width:"220"}}),t("el-table-column",{attrs:{label:"操作",width:"150"},scopedSlots:e._u([{key:"default",fn:function(a){return[t("el-popconfirm",{attrs:{"confirm-button-text":"选择","cancel-button-text":"取消",icon:"el-icon-info",title:"确定选择该教师开<EFBFBD><EFBFBD>
//# sourceMappingURL=app.8637dce5.js.map