提交修改

This commit is contained in:
daihh
2022-06-06 20:54:17 +08:00
parent c3a61d1272
commit 8739a879fb
2 changed files with 20 additions and 29 deletions

View File

@@ -158,12 +158,8 @@
<el-button :loading="saveLoading" type="primary" @click="saveHandle"> </el-button>
</span>
</el-dialog>
<el-dialog
title="教师详情"
:close-on-click-modal="false"
:visible.sync="showTeacherDetails"
width="800px">
<teacher-details v-if="teacherDetailsId != ''" :id="teacherDetailsId" :newId="teacherDetailId"></teacher-details>
<el-dialog title="教师详情" :close-on-click-modal="false" :visible.sync="showTeacherDetails" width="800px">
<teacher-details v-if="teacherDetailId != ''" :id="teacherDetailsId" :newId="teacherDetailId"></teacher-details>
<span slot="footer" class="dialog-footer">
<el-button @click="handleCloseOne()"> </el-button>
<!-- <el-button type="primary" @click="showTeacherDetails = false"> </el-button> -->

View File

@@ -146,28 +146,11 @@
</div> -->
</el-tab-pane>
<el-tab-pane label="授课资格" name="third">
<el-table height="430"
:data="qualify.list"
style="width: 100%">
<el-table-column
prop="courseCode"
label="课程编号"
width="180">
</el-table-column>
<el-table-column
prop="courseName" show-overflow-tooltip
label="课程名称"
width="250">
</el-table-column>
<el-table-column
prop="dictionaryName"
label="课程分类"
width="180">
</el-table-column>
<el-table-column
prop="courseType"
label="课程类型"
width="100">
<el-table height="430" :data="qualify.list" style="width: 100%">
<el-table-column prop="courseCode" label="课程编号" width="180"> </el-table-column>
<el-table-column prop="courseName" show-overflow-tooltip label="课程名称" width="250"> </el-table-column>
<el-table-column prop="dictionaryName" label="课程分类" width="180"> </el-table-column>
<el-table-column prop="courseType" label="课程类型" width="100">
<template slot-scope="scope">
<span v-if="scope.row.courseType == '0'">录播</span>
<span v-if="scope.row.courseType == '1'">面授</span>
@@ -327,9 +310,15 @@ export default {
};
},
mounted() {
this.getDetail(this.id);
this.getAvatar();
},
watch:{
id(newVal){
if(newVal){
this.getDetail(newVal);
}
}
},
computed: {
...mapGetters(["userInfo"])
},
@@ -496,6 +485,12 @@ export default {
},
getDetail() {
//应该是自己系统的教师信息呀
teacherApi.detail(this.newId).then(rs=>{
if(rs.status==200){
}
});
teacherBoeApi.teacherInfo(this.id).then(res => {
if (res.status == 200) {
const result = res.result;