|  | @@ -5,66 +5,121 @@
 | 
	
		
			
				|  |  |          <h4>基本信息</h4>
 | 
	
		
			
				|  |  |          <el-form :model="topForm"
 | 
	
		
			
				|  |  |                   :inline="true">
 | 
	
		
			
				|  |  | -          <el-form-item label="老师编号">
 | 
	
		
			
				|  |  | -            <el-input v-model="topForm.teacher"></el-input>
 | 
	
		
			
				|  |  | -          </el-form-item>
 | 
	
		
			
				|  |  | -          <el-form-item label="性别">
 | 
	
		
			
				|  |  | -            <el-input v-model="topForm.sex"></el-input>
 | 
	
		
			
				|  |  | -          </el-form-item>
 | 
	
		
			
				|  |  | -          <el-form-item label="出生日期">
 | 
	
		
			
				|  |  | -            <el-input v-model="topForm.sex"></el-input>
 | 
	
		
			
				|  |  | -          </el-form-item>
 | 
	
		
			
				|  |  | -          <el-form-item label="工作类别">
 | 
	
		
			
				|  |  | -            <el-input v-model="topForm.sex"></el-input>
 | 
	
		
			
				|  |  | -          </el-form-item>
 | 
	
		
			
				|  |  | -          <el-form-item label="入职日期">
 | 
	
		
			
				|  |  | -            <el-input v-model="topForm.sex"></el-input>
 | 
	
		
			
				|  |  | -          </el-form-item>
 | 
	
		
			
				|  |  | -          <el-form-item label="教学点1">
 | 
	
		
			
				|  |  | -            <el-input v-model="topForm.sex"></el-input>
 | 
	
		
			
				|  |  | -          </el-form-item>
 | 
	
		
			
				|  |  | -          <el-form-item label="所属分部">
 | 
	
		
			
				|  |  | -            <el-input v-model="topForm.sex"></el-input>
 | 
	
		
			
				|  |  | -          </el-form-item>
 | 
	
		
			
				|  |  | -          <el-form-item label="教学点2">
 | 
	
		
			
				|  |  | -            <el-input v-model="topForm.sex"></el-input>
 | 
	
		
			
				|  |  | -          </el-form-item>
 | 
	
		
			
				|  |  | -          <el-form-item label="流动范围">
 | 
	
		
			
				|  |  | -            <el-input v-model="topForm.sex"></el-input>
 | 
	
		
			
				|  |  | -          </el-form-item>
 | 
	
		
			
				|  |  | -          <br />
 | 
	
		
			
				|  |  | -          <el-form-item label="老师简介">
 | 
	
		
			
				|  |  | -            <el-input type='textarea'
 | 
	
		
			
				|  |  | -                      v-model="topForm.sex"></el-input>
 | 
	
		
			
				|  |  | -          </el-form-item>
 | 
	
		
			
				|  |  | -        </el-form>
 | 
	
		
			
				|  |  | -        <h4>资料学历</h4>
 | 
	
		
			
				|  |  | -        <el-form :model="dataInfo"
 | 
	
		
			
				|  |  | -                 :inline="true">
 | 
	
		
			
				|  |  | -          <el-form-item label="手机号">
 | 
	
		
			
				|  |  | -            <el-input v-model="dataInfo.phone"></el-input>
 | 
	
		
			
				|  |  | -          </el-form-item>
 | 
	
		
			
				|  |  | -          <el-form-item label="毕业学校">
 | 
	
		
			
				|  |  | -            <el-input v-model="dataInfo.phone"></el-input>
 | 
	
		
			
				|  |  | -          </el-form-item>
 | 
	
		
			
				|  |  | -          <el-form-item label="电子邮箱">
 | 
	
		
			
				|  |  | -            <el-input v-model="dataInfo.phone"></el-input>
 | 
	
		
			
				|  |  | -          </el-form-item>
 | 
	
		
			
				|  |  | -          <el-form-item label="最高学历">
 | 
	
		
			
				|  |  | -            <el-input v-model="dataInfo.phone"></el-input>
 | 
	
		
			
				|  |  | -          </el-form-item>
 | 
	
		
			
				|  |  | -          <el-form-item label="专业技能">
 | 
	
		
			
				|  |  | -            <el-input v-model="dataInfo.phone"></el-input>
 | 
	
		
			
				|  |  | -          </el-form-item>
 | 
	
		
			
				|  |  | -          <el-form-item label="职称">
 | 
	
		
			
				|  |  | -            <el-input v-model="dataInfo.phone"></el-input>
 | 
	
		
			
				|  |  | -          </el-form-item>
 | 
	
		
			
				|  |  | -          <el-form-item label="证件类型">
 | 
	
		
			
				|  |  | -            <el-input v-model="dataInfo.phone"></el-input>
 | 
	
		
			
				|  |  | -          </el-form-item>
 | 
	
		
			
				|  |  | -          <el-form-item label="证件号码">
 | 
	
		
			
				|  |  | -            <el-input v-model="dataInfo.phone"></el-input>
 | 
	
		
			
				|  |  | -          </el-form-item>
 | 
	
		
			
				|  |  | +          <el-row>
 | 
	
		
			
				|  |  | +            <el-col :span="8">
 | 
	
		
			
				|  |  | +              <el-form-item label="老师编号">
 | 
	
		
			
				|  |  | +                <el-input disabled v-model="topForm.id"></el-input>
 | 
	
		
			
				|  |  | +              </el-form-item>
 | 
	
		
			
				|  |  | +            </el-col>
 | 
	
		
			
				|  |  | +            <el-col :span="8">
 | 
	
		
			
				|  |  | +              <el-form-item label="性别">
 | 
	
		
			
				|  |  | +                <el-input disabled v-model="topForm.gender"></el-input>
 | 
	
		
			
				|  |  | +              </el-form-item>
 | 
	
		
			
				|  |  | +            </el-col>
 | 
	
		
			
				|  |  | +            <el-col :span="8">
 | 
	
		
			
				|  |  | +              <el-form-item label="出生日期">
 | 
	
		
			
				|  |  | +                <el-input disabled v-model="topForm.birthdate"></el-input>
 | 
	
		
			
				|  |  | +              </el-form-item>
 | 
	
		
			
				|  |  | +            </el-col>
 | 
	
		
			
				|  |  | +          </el-row>
 | 
	
		
			
				|  |  | +          <el-row>
 | 
	
		
			
				|  |  | +            <el-col :span="8">
 | 
	
		
			
				|  |  | +              <el-form-item label="工作类别">
 | 
	
		
			
				|  |  | +                <el-input disabled v-model="topForm.jobNature "></el-input>
 | 
	
		
			
				|  |  | +              </el-form-item>
 | 
	
		
			
				|  |  | +            </el-col>
 | 
	
		
			
				|  |  | +            <el-col :span="8">
 | 
	
		
			
				|  |  | +              <el-form-item label="入职日期">
 | 
	
		
			
				|  |  | +                <el-input disabled v-model="topForm.entryDate"></el-input>
 | 
	
		
			
				|  |  | +              </el-form-item>
 | 
	
		
			
				|  |  | +            </el-col>
 | 
	
		
			
				|  |  | +            <el-col :span="8">
 | 
	
		
			
				|  |  | +              <el-form-item label="教学点1">
 | 
	
		
			
				|  |  | +                <el-input disabled v-model="topForm.teacherSchools[0]"></el-input>
 | 
	
		
			
				|  |  | +              </el-form-item>
 | 
	
		
			
				|  |  | +            </el-col>
 | 
	
		
			
				|  |  | +          </el-row>
 | 
	
		
			
				|  |  | +          <el-row>
 | 
	
		
			
				|  |  | +            <el-col :span="8">
 | 
	
		
			
				|  |  | +              <el-form-item label="所属分部">
 | 
	
		
			
				|  |  | +                <el-input disabled v-model="topForm.organName"></el-input>
 | 
	
		
			
				|  |  | +              </el-form-item>
 | 
	
		
			
				|  |  | +            </el-col>
 | 
	
		
			
				|  |  | +            <el-col :span="8">
 | 
	
		
			
				|  |  | +              <el-form-item label="教学点2">
 | 
	
		
			
				|  |  | +                <el-input disabled v-model="topForm.teacherSchools[1]"></el-input>
 | 
	
		
			
				|  |  | +              </el-form-item>
 | 
	
		
			
				|  |  | +            </el-col>
 | 
	
		
			
				|  |  | +            <el-col :span="8">
 | 
	
		
			
				|  |  | +              <el-form-item label="流动范围">
 | 
	
		
			
				|  |  | +                <el-input disabled v-model="topForm.flowOrganRange"></el-input>
 | 
	
		
			
				|  |  | +              </el-form-item>
 | 
	
		
			
				|  |  | +            </el-col>
 | 
	
		
			
				|  |  | +          </el-row>
 | 
	
		
			
				|  |  | +          <el-row>
 | 
	
		
			
				|  |  | +            <el-col :span="8">
 | 
	
		
			
				|  |  | +              <el-form-item label="老师简介">
 | 
	
		
			
				|  |  | +                <el-input disabled type='textarea'
 | 
	
		
			
				|  |  | +                          v-model="topForm.introduction"></el-input>
 | 
	
		
			
				|  |  | +              </el-form-item>
 | 
	
		
			
				|  |  | +            </el-col>
 | 
	
		
			
				|  |  | +          </el-row>
 | 
	
		
			
				|  |  | +          
 | 
	
		
			
				|  |  | +          <h4>资料学历</h4>
 | 
	
		
			
				|  |  | +          <el-row>
 | 
	
		
			
				|  |  | +            <el-col :span="8">
 | 
	
		
			
				|  |  | +              <el-form-item label="手机号">
 | 
	
		
			
				|  |  | +                <el-input disabled v-model="topForm.phone"></el-input>
 | 
	
		
			
				|  |  | +              </el-form-item>
 | 
	
		
			
				|  |  | +            </el-col>
 | 
	
		
			
				|  |  | +            <el-col :span="8">
 | 
	
		
			
				|  |  | +              <el-form-item label="毕业学校">
 | 
	
		
			
				|  |  | +                <el-input disabled v-model="topForm.graduateSchool"></el-input>
 | 
	
		
			
				|  |  | +              </el-form-item>
 | 
	
		
			
				|  |  | +            </el-col>
 | 
	
		
			
				|  |  | +            <el-col :span="8">
 | 
	
		
			
				|  |  | +              <el-form-item label="电子邮箱">
 | 
	
		
			
				|  |  | +                <el-input disabled v-model="topForm.email"></el-input>
 | 
	
		
			
				|  |  | +              </el-form-item>
 | 
	
		
			
				|  |  | +            </el-col>
 | 
	
		
			
				|  |  | +          </el-row>
 | 
	
		
			
				|  |  | +          <el-row>
 | 
	
		
			
				|  |  | +            <el-col :span="8">
 | 
	
		
			
				|  |  | +              <el-form-item label="最高学历">
 | 
	
		
			
				|  |  | +                <el-input disabled v-model="topForm.educationBackground"></el-input>
 | 
	
		
			
				|  |  | +              </el-form-item>
 | 
	
		
			
				|  |  | +            </el-col>
 | 
	
		
			
				|  |  | +            <el-col :span="8">
 | 
	
		
			
				|  |  | +              <el-form-item label="专业技能">
 | 
	
		
			
				|  |  | +                <el-input disabled v-model="topForm.subjectName"></el-input>
 | 
	
		
			
				|  |  | +              </el-form-item>
 | 
	
		
			
				|  |  | +            </el-col>
 | 
	
		
			
				|  |  | +            <el-col :span="8">
 | 
	
		
			
				|  |  | +              <el-form-item label="职称">
 | 
	
		
			
				|  |  | +                <el-input disabled v-model="topForm.technicalTitles"></el-input>
 | 
	
		
			
				|  |  | +              </el-form-item>
 | 
	
		
			
				|  |  | +            </el-col>
 | 
	
		
			
				|  |  | +          </el-row>
 | 
	
		
			
				|  |  | +          <el-row>
 | 
	
		
			
				|  |  | +            <el-col :span="8">
 | 
	
		
			
				|  |  | +              <el-form-item label="证件类型">
 | 
	
		
			
				|  |  | +                <el-input disabled v-model="topForm.certificateType"></el-input>
 | 
	
		
			
				|  |  | +              </el-form-item>
 | 
	
		
			
				|  |  | +            </el-col>
 | 
	
		
			
				|  |  | +            <el-col :span="8">
 | 
	
		
			
				|  |  | +              <el-form-item label="证件号码">
 | 
	
		
			
				|  |  | +                <el-input disabled v-model="topForm.certificateNum"></el-input>
 | 
	
		
			
				|  |  | +              </el-form-item>
 | 
	
		
			
				|  |  | +            </el-col>
 | 
	
		
			
				|  |  | +          </el-row>
 | 
	
		
			
				|  |  | +          
 | 
	
		
			
				|  |  | +          
 | 
	
		
			
				|  |  | +          
 | 
	
		
			
				|  |  | +          
 | 
	
		
			
				|  |  | +          
 | 
	
		
			
				|  |  | +          
 | 
	
		
			
				|  |  | +          
 | 
	
		
			
				|  |  | +          
 | 
	
		
			
				|  |  |          </el-form>
 | 
	
		
			
				|  |  |        </div>
 | 
	
		
			
				|  |  |        <div class="right">
 | 
	
	
		
			
				|  | @@ -79,16 +134,57 @@
 | 
	
		
			
				|  |  |    </div>
 | 
	
		
			
				|  |  |  </template>
 | 
	
		
			
				|  |  |  <script>
 | 
	
		
			
				|  |  | +import { teacherGet } from '@/api/teacherManager'
 | 
	
		
			
				|  |  |  export default {
 | 
	
		
			
				|  |  |    data () {
 | 
	
		
			
				|  |  |      return {
 | 
	
		
			
				|  |  | +      teacherId: this.$route.query.teacherId,
 | 
	
		
			
				|  |  |        topForm: {
 | 
	
		
			
				|  |  | -        teacher: '',
 | 
	
		
			
				|  |  | -        sex: ''
 | 
	
		
			
				|  |  | -      },
 | 
	
		
			
				|  |  | -      dataInfo: {
 | 
	
		
			
				|  |  | -        phone: ''
 | 
	
		
			
				|  |  | +        teacherSchools: ["", ""]
 | 
	
		
			
				|  |  | +      }
 | 
	
		
			
				|  |  | +    }
 | 
	
		
			
				|  |  | +  },
 | 
	
		
			
				|  |  | +  mounted() {
 | 
	
		
			
				|  |  | +    this.teacherGet()
 | 
	
		
			
				|  |  | +  },
 | 
	
		
			
				|  |  | +  methods: {
 | 
	
		
			
				|  |  | +    teacherGet() {
 | 
	
		
			
				|  |  | +      teacherGet({ id: this.teacherId }).then(res => {
 | 
	
		
			
				|  |  | +        if(res.code == 200) {
 | 
	
		
			
				|  |  | +          let tempData = res.data
 | 
	
		
			
				|  |  | +          tempData.subjectName = this.joinArray(tempData.subjectName)
 | 
	
		
			
				|  |  | +          tempData.entryDate = this.formatTimer(tempData.entryDate)
 | 
	
		
			
				|  |  | +          tempData.jobNature = this.jobNature(tempData.jobNature)
 | 
	
		
			
				|  |  | +          tempData.birthdate = this.jobNature(tempData.birthdate)
 | 
	
		
			
				|  |  | +          tempData.gender = tempData.birthdate ? '女' : '男'
 | 
	
		
			
				|  |  | +          this.topForm = res.data
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +      })
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  | +    joinArray(value, type) {
 | 
	
		
			
				|  |  | +      if (!type) {
 | 
	
		
			
				|  |  | +          type = ' '
 | 
	
		
			
				|  |  | +      }
 | 
	
		
			
				|  |  | +      if (typeof value == 'object' && value != null) {
 | 
	
		
			
				|  |  | +          return value.join(type)
 | 
	
		
			
				|  |  | +      } else {
 | 
	
		
			
				|  |  | +          return value
 | 
	
		
			
				|  |  | +      }
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  | +    formatTimer(value) {
 | 
	
		
			
				|  |  | +      if (value) {
 | 
	
		
			
				|  |  | +          return value.split(' ')[0]
 | 
	
		
			
				|  |  | +      } else {
 | 
	
		
			
				|  |  | +          return value
 | 
	
		
			
				|  |  | +      }
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  | +    jobNature(value) {
 | 
	
		
			
				|  |  | +      let template = {
 | 
	
		
			
				|  |  | +        PART_TIME: "兼职",
 | 
	
		
			
				|  |  | +        FULL_TIME: "全职",
 | 
	
		
			
				|  |  | +        TEMPORARY: "零时工"
 | 
	
		
			
				|  |  |        }
 | 
	
		
			
				|  |  | +      return template[value]
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |    }
 | 
	
		
			
				|  |  |  }
 | 
	
	
		
			
				|  | @@ -103,6 +199,7 @@ export default {
 | 
	
		
			
				|  |  |      justify-content: flex-start;
 | 
	
		
			
				|  |  |      .left {
 | 
	
		
			
				|  |  |        max-width: 1000px;
 | 
	
		
			
				|  |  | +      width: 100%;
 | 
	
		
			
				|  |  |        h4 {
 | 
	
		
			
				|  |  |          margin-bottom: 20px;
 | 
	
		
			
				|  |  |        }
 |