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:
@@ -39,6 +39,9 @@
|
||||
<!-- <el-table-column label="创建时间" sortable prop="sysCreateTime"></el-table-column> -->
|
||||
<el-table-column label="修改时间" sortable width="155" prop="sysUpdateTime"></el-table-column>
|
||||
<el-table-column label="授课时长" prop="teaching"></el-table-column>
|
||||
<el-table-column label="教师体系" prop="tsystemName"></el-table-column>
|
||||
<el-table-column label="教师级别" prop="tlevelName"></el-table-column>
|
||||
<el-table-column label="发薪地" prop="salaryName"></el-table-column>
|
||||
<el-table-column label="在职状态" width="90" :filters="[{ text: '在职', value: '0'}, { text: '离职', value: '1' }]"
|
||||
:filter-method="filterWork">
|
||||
<template slot-scope="scope">
|
||||
@@ -143,7 +146,8 @@
|
||||
</el-radio-group>
|
||||
</el-form-item>
|
||||
<el-form-item label="备注">
|
||||
<el-input v-model="form.description" clearable type="textarea" :autosize='{ minRows: 3, maxRows: 6 }'></el-input>
|
||||
<!-- <el-input v-model="form.description" clearable type="textarea" :autosize='{ minRows: 3, maxRows: 6 }'></el-input> -->
|
||||
<WxEditor v-model="form.description" :minHeight="50"></WxEditor>
|
||||
</el-form-item>
|
||||
<el-form-item label="擅长课程">
|
||||
<el-input v-model="form.courses" clearable placeholder="请输入"></el-input>
|
||||
@@ -169,6 +173,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import WxEditor from '@/components/Editor/index.vue';
|
||||
import teacherApi from "@/api/modules/teacher";
|
||||
import teacherBoeApi from "@/api/boe/teacher";
|
||||
import userApi from "@/api/system/user";
|
||||
@@ -177,7 +182,7 @@
|
||||
import { mapGetters } from 'vuex';
|
||||
export default {
|
||||
name: 'teacher',
|
||||
components:{imageUpload,teacherDetails},
|
||||
components:{imageUpload,teacherDetails,WxEditor},
|
||||
data(){
|
||||
return {
|
||||
query:{
|
||||
@@ -368,6 +373,9 @@
|
||||
waitStatus:0,//在职
|
||||
certStatus:0,//未认证
|
||||
}
|
||||
this.tSystemData = {};
|
||||
this.tLevelData= {};
|
||||
this.coverImage = '';
|
||||
this.dialogVisible=true
|
||||
},
|
||||
filterWork(value,row){
|
||||
@@ -436,8 +444,8 @@
|
||||
if (res.status == 200 && res.result != null) {
|
||||
this.havaInfo = true;
|
||||
this.form.account = res.result.account;
|
||||
if(res.result.photo != '') {
|
||||
this.coverImage = this.fileBaseUrl+res.result.photo;
|
||||
if(res.result.account.avatar != '') {
|
||||
this.coverImage = this.fileBaseUrl+res.result.account.avatar;
|
||||
}
|
||||
this.form.user = res.result;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user