mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-09 10:56:44 +08:00
教师修改
This commit is contained in:
@@ -48,7 +48,7 @@
|
||||
{{scope.row.waitStatus=='0'?'在职': scope.row.waitStatus=='1' ? '离职' :''}}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="认证状态" width="90" :filters="[{ text: '未认证', value: '0'}, { text: '已认证', value: '1' }]"
|
||||
<el-table-column label="认证状态" width="90" :filters="[{ text: '未认证', value: 0}, { text: '已认证', value: 1 }]"
|
||||
:filter-method="filterCertification">
|
||||
<template slot-scope="scope">
|
||||
{{scope.row.certStatus==0 ?'未认证': scope.row.certStatus==1 ? '已认证' :''}}
|
||||
@@ -258,6 +258,7 @@
|
||||
showTeacherDetails(val) {
|
||||
if(!val) {
|
||||
this.teacherDetailsId = '';
|
||||
this.teacherDetailId = '';
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@@ -22,21 +22,21 @@
|
||||
</el-col>
|
||||
</el-form-item>
|
||||
<el-form-item label="讲师组织:" >
|
||||
<el-col :span="12">{{form.company_name}}</el-col>
|
||||
<el-col :span="12">{{form.company_name? form.company_name:'--'}}</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="初始授课时长:">{{formatSeconds(form.default_teaching_time)}}</el-form-item></el-col>
|
||||
<el-form-item label="初始授课时长:">{{form.default_teaching_time? formatSeconds(form.default_teaching_time):'--'}}</el-form-item></el-col>
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item label="讲师体系:">
|
||||
<el-col :span="12">{{form.system_name}}</el-col>
|
||||
<el-col :span="12">{{newForm.tsystemName? newForm.tsystemName:'--'}}</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="讲师级别:">
|
||||
{{form.level_name}}
|
||||
{{newForm.tlevelName? newForm.tlevelName:'--'}}
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-form-item>
|
||||
<el-form-item label="总计授课时长:">
|
||||
<el-col :span="12">{{formatSeconds(form.teaching_time)}}</el-col>
|
||||
<el-col :span="12">{{form.teaching_time? formatSeconds(form.teaching_time):'--'}}</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="认证状态:">
|
||||
{{form.is_certify == 1? '已认证':'未认证'}}
|
||||
@@ -44,10 +44,11 @@
|
||||
</el-col>
|
||||
</el-form-item>
|
||||
<el-form-item label="认证时间:">
|
||||
<el-col :span="12">{{formatsec(form.certify_at *1000)}}</el-col>
|
||||
<el-col :span="12">{{form.certify_at? formatsec(form.certify_at *1000):'--'}}</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="认证资料:">
|
||||
<i style="color:blue" title="点击下载" @click="downloadActioon(form.certification)" class="el-icon-download"></i>
|
||||
<i style="color:blue" v-if="form.certification" title="点击下载" @click="downloadActioon(form.certification)" class="el-icon-download"></i>
|
||||
<span v-else>--</span>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-form-item>
|
||||
@@ -57,12 +58,12 @@
|
||||
<!-- <el-col :span="12">--</el-col> -->
|
||||
<!-- <el-col :span="12"> -->
|
||||
<el-form-item label="讲师介绍:">
|
||||
<div v-html="form.description"></div>
|
||||
<div v-html="newForm.description"></div>
|
||||
</el-form-item>
|
||||
<!-- </el-col>
|
||||
</el-form-item> -->
|
||||
<el-form-item label="讲师备注:">
|
||||
{{form.remark}}
|
||||
{{newForm.remark}}
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
</el-col>
|
||||
@@ -311,6 +312,10 @@ export default {
|
||||
},
|
||||
mounted() {
|
||||
this.getAvatar();
|
||||
if(this.id) {
|
||||
this.getDetail();
|
||||
}
|
||||
|
||||
},
|
||||
watch:{
|
||||
id(newVal){
|
||||
@@ -485,11 +490,11 @@ export default {
|
||||
},
|
||||
getDetail() {
|
||||
//应该是自己系统的教师信息呀
|
||||
teacherApi.detail(this.newId).then(rs=>{
|
||||
if(rs.status==200){
|
||||
// teacherApi.detail(this.newId).then(rs=>{
|
||||
// if(rs.status==200){
|
||||
|
||||
}
|
||||
});
|
||||
// }
|
||||
// });
|
||||
|
||||
teacherBoeApi.teacherInfo(this.id).then(res => {
|
||||
if (res.status == 200) {
|
||||
|
||||
Reference in New Issue
Block a user