﻿<template>
	<transition name="el-zoom-in-center">
		<div class="NCC-preview-main">
			<div class="NCC-common-page-header">
				<el-page-header @back="goBack" :content="'详情'"/>
				<div class="options">
					<el-button @click="goBack">取 消</el-button>
				</div>
			</div>
			<el-row :gutter="15"  class="main" :style="{margin: '0 auto',width:'100%'}">
				<el-form ref="elForm" :model="dataForm" size="small" label-width="100px" label-position="right" :disabled="!!isDetail" :rules="rules">
					<el-col :span="24">
						<el-form-item label-width="0">
							<groupTitle content-position="left" content="基本信息"></groupTitle>
						</el-form-item>
					</el-col>
					<el-col :span="12" >
						<el-form-item label="姓名" prop="realName">
							{{dataForm.realName}}
						</el-form-item>
					</el-col>
					<el-col :span="12" >
						<el-form-item label="性别" prop="gender">
							{{dataForm.gender}}
						</el-form-item>
					</el-col>
					<el-col :span="12" >
						<el-form-item label="证件类型" prop="certificatesType">
							{{dataForm.certificatesType}}
						</el-form-item>
					</el-col>
					<el-col :span="12" >
						<el-form-item label="证件号码" prop="certificatesNumber">
							{{dataForm.certificatesNumber}}
						</el-form-item>
					</el-col>
					<el-col :span="12" >
						<el-form-item label="联系电话" prop="mobilePhone">
								{{dataForm.mobilePhone}}
						</el-form-item>
					</el-col>
					<el-col :span="12" >
						<el-form-item label="邮箱" prop="email">
							{{dataForm.email}}
						</el-form-item>
					</el-col>
					<el-col :span="12" >
						<el-form-item label="学历" prop="education">
						    {{dataForm.education}}
						</el-form-item>
					</el-col>
					<el-col :span="12" >
						<el-form-item label="民族" prop="nation">
							{{dataForm.nation}}
						</el-form-item>
					</el-col>
					<el-col :span="12" >
						<el-form-item label="毕业院校" prop="school">
							{{dataForm.school}}
						</el-form-item>
					</el-col>
					<el-col :span="12" >
						<el-form-item label="所学专业" prop="specialty">
							{{dataForm.specialty}}
						</el-form-item>
					</el-col>
					<el-col :span="12" >
						<el-form-item label="银行账号" prop="school">
							{{dataForm.bankAccount}}
						</el-form-item>
					</el-col>
					<el-col :span="12" >
						<el-form-item label="开户行" prop="specialty">
							{{dataForm.bank}}
						</el-form-item>
					</el-col>
					<el-col :span="24" >
						<el-form-item label="通讯地址" prop="postalAddress">
						    {{dataForm.postalAddress}}
						</el-form-item>
					</el-col>
					<el-col :span="24">
						<el-form-item label-width="0">
							<groupTitle content-position="left" content="技能能力"></groupTitle>
						</el-form-item>
					</el-col>
					<el-col :span="12" >
						<el-form-item label="擅长领域" prop="field">
							{{dataForm.field}}
						</el-form-item>
					</el-col>
					<el-col :span="12" >
						<el-form-item label="技术资格/职称" prop="professional">
							    {{dataForm.professional}}
						</el-form-item>
					</el-col>
					<el-col :span="12" >
						<el-form-item label="工作单位" prop="workUnit">
							 {{dataForm.workUnit}}
						</el-form-item>
					</el-col>
					<el-col :span="12" >
						<el-form-item label="工作日期" prop="workDate">
							{{dataForm.workDate| toDate("yyyy-MM-dd")}}
						</el-form-item>
					</el-col>
					<el-col :span="24" >
						<el-form-item label="证件/资料" prop="appendix">
							<NCC-UploadFz v-model="dataForm.appendix" disabled>
							</NCC-UploadFz>
						</el-form-item>
					</el-col>
					<el-col :span="24" >
						<el-form-item label="备注" prop="remark">
							 {{dataForm.remark}}
						</el-form-item>
					</el-col>
					<el-col :span="6" v-if="false" >
						<el-form-item label="创建用户" prop="creatorUserId">
							<el-input v-model="dataForm.creatorUserId" placeholder="系统自动生成" readonly >
							</el-input>
						</el-form-item>
					</el-col>
					<el-col :span="6" v-if="false" >
						<el-form-item label="创建时间" prop="creatorTime">
							<el-input v-model="dataForm.creatorTime" placeholder="系统自动生成" readonly >
							</el-input>
						</el-form-item>
					</el-col>
					<el-col :span="6" v-if="false" >
						<el-form-item label="修改用户" prop="lastModifyUserId">
							<el-input v-model="dataForm.lastModifyUserId" placeholder="系统自动生成" readonly >
							</el-input>
						</el-form-item>
					</el-col>
					<el-col :span="6" v-if="false" >
						<el-form-item label="修改时间" prop="lastModifyTime">
							<el-input v-model="dataForm.lastModifyTime" placeholder="系统自动生成" readonly >
							</el-input>
						</el-form-item>
					</el-col>
				</el-form>
			</el-row>
		</div>
	</transition>
</template>
<script>
	import request from '@/utils/request'
	import { getDictionaryDataSelector } from '@/api/systemData/dictionary'
	import { previewDataInterface } from '@/api/systemData/dataInterface'
	export default {
		components: {},
		props: [],
		data() {
			return {
				loading: false,
				visible: false,
				isDetail: false,
				dataForm: {
					id:'',
					realName:undefined,
					gender:undefined,
					certificatesType:undefined,
					certificatesNumber:undefined,
					mobilePhone:undefined,
					email:undefined,
					education:undefined,
					nation:undefined,
					school:undefined,
					specialty:undefined,
					bankAccount:undefined,
					bank:undefined,
					postalAddress:undefined,
					field:undefined,
					professional:undefined,
					workUnit:undefined,
					workDate:undefined,
					appendix:[],
					remark:undefined,
					creatorUserId:undefined,
					creatorTime:undefined,
					lastModifyUserId:undefined,
					lastModifyTime:undefined,
				},
				genderOptions : [],
				certificatesTypeOptions : [],
				educationOptions : [],
				nationOptions : [],
				fieldOptions : [],
			}
		},
		computed: {},
        watch: {},
        created() {
		},
		mounted() {
        },
		methods: {
			goBack() {
                this.$emit('detailRefresh')
            },
			init(id) {
				this.dataForm.id = id || 0;
                this.visible = true;
				this.$nextTick(() => {
					this.$refs['elForm'].resetFields();
					if (this.dataForm.id) {
						request({
							url: '/api/SubDev/ZyZbExpert/Actions/GetExpertInfo/' + this.dataForm.id,
							method: 'get'
						}).then(res =>{
							this.dataForm = res.data;
						})
					}
				})
			},
		}
	}
</script>
