|
@@ -0,0 +1,73 @@
|
|
|
+<template>
|
|
|
+ <div id="expDetail">
|
|
|
+ <el-row>
|
|
|
+ <el-col :span="24">
|
|
|
+ <data-form :data="form" :fields="formFields" :rules="{}" @save="toSave">
|
|
|
+ <template #radios="{item}">
|
|
|
+ <template v-if="item.model === 'status'">
|
|
|
+ <el-radio label="0">待审核</el-radio>
|
|
|
+ <el-radio label="1">审核通过</el-radio>
|
|
|
+ <el-radio label="2">审核拒绝</el-radio>
|
|
|
+ </template>
|
|
|
+ </template>
|
|
|
+ <template #custom="{item,form}">
|
|
|
+ <template v-if="item.model === 'img_path'">
|
|
|
+ <el-image :src="form.img_path">
|
|
|
+ <div slot="error" class="image-slot">
|
|
|
+ <i class="el-icon-picture-outline"></i></div
|
|
|
+ ></el-image>
|
|
|
+ </template>
|
|
|
+ </template>
|
|
|
+ </data-form>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script>
|
|
|
+import dataForm from '@common/src/components/frame/form.vue';
|
|
|
+import { mapState, createNamespacedHelpers } from 'vuex';
|
|
|
+export default {
|
|
|
+ name: 'expDetail',
|
|
|
+ props: { form: { type: Object } },
|
|
|
+ components: {
|
|
|
+ dataForm,
|
|
|
+ },
|
|
|
+ data: function() {
|
|
|
+ return {
|
|
|
+ formFields: [
|
|
|
+ { label: '姓名', model: 'name' },
|
|
|
+ { label: '手机号', model: 'phone' },
|
|
|
+ { label: '机构代码', model: 'code' },
|
|
|
+ { label: '头像', model: 'img_path', custom: true },
|
|
|
+ { label: '最高学历', model: 'education' },
|
|
|
+ { label: '毕业院校', model: 'school' },
|
|
|
+ { label: '出生日期', model: 'birthDate', type: 'date' },
|
|
|
+ { label: 'QQ/微信', model: 'qqwx' },
|
|
|
+ { label: '电子邮箱', model: 'email' },
|
|
|
+ { label: '工作单位', model: 'company' },
|
|
|
+ { label: '职务职称', model: 'zwzc' },
|
|
|
+ { label: '擅长领域', model: 'expertise' },
|
|
|
+ { label: '工作经历', model: 'workexperience', type: 'textarea' },
|
|
|
+ { label: '科研综述', model: 'scientific', type: 'textarea' },
|
|
|
+ { label: '承担项目', model: 'undertakingproject', type: 'textarea' },
|
|
|
+ { label: '科技奖励', model: 'scienceaward', type: 'textarea' },
|
|
|
+ { label: '社会任职', model: 'social', type: 'textarea' },
|
|
|
+ { label: '状态', model: 'status', type: 'radio' },
|
|
|
+ ],
|
|
|
+ };
|
|
|
+ },
|
|
|
+ created() {},
|
|
|
+ methods: {
|
|
|
+ toSave({ data }) {
|
|
|
+ this.$emit('toSave', data);
|
|
|
+ },
|
|
|
+ },
|
|
|
+ computed: {
|
|
|
+ ...mapState(['user']),
|
|
|
+ },
|
|
|
+ watch: {},
|
|
|
+};
|
|
|
+</script>
|
|
|
+
|
|
|
+<style lang="less" scoped></style>
|