<template>
|
<el-tabs v-model="activeName" :lazy="true" type="border-card">
|
<el-tab-pane label="人员基本信息" name="人员基本信息">
|
<PersonnelList v-if="activeName === '人员基本信息' && isShowAll" ref="personnelList"
|
:currentCompaniesList="currentCompaniesList" :departId="departId" @refreshTree="refreshTree"
|
@updatePerson="updatePerson"></PersonnelList>
|
<personnelInformation v-if="activeName === '人员基本信息' && !isShowAll" :clickNodeVal="clickNodeVal">
|
</personnelInformation>
|
</el-tab-pane>
|
<el-tab-pane label="培训计划" name="培训计划">
|
<PersonnelTraining v-if="activeName === '培训计划'" ref="personnelTraining" :flag="flag" :departId="departId"
|
:isDepartment="isDepartment"></PersonnelTraining>
|
</el-tab-pane>
|
<el-tab-pane label="监督计划" name="监督计划">
|
<Plan v-if="activeName === '监督计划'" :departId="departId"></Plan>
|
</el-tab-pane>
|
<el-tab-pane label="岗位职责" name="岗位职责">
|
<job-responsibilities v-if="activeName === '岗位职责'" ref="jobResponsibilities" :departId="departId"
|
:isDepartment="isDepartment"></job-responsibilities>
|
</el-tab-pane>
|
<el-tab-pane label="工作履历" name="工作履历">
|
<trackRecord v-if="activeName === '工作履历'" :clickNodeVal="clickNodeVal"></trackRecord>
|
</el-tab-pane>
|
<el-tab-pane label="奖惩记录" name="奖惩记录">
|
<rewardPunishmentRecord v-if="activeName === '奖惩记录'" :departId="departId" :isDepartment="isDepartment">
|
</rewardPunishmentRecord>
|
</el-tab-pane>
|
<el-tab-pane label="培训记录" name="培训记录">
|
<training-record v-if="activeName === '培训记录'" ref="trainingRecord" :departId="departId"
|
:isDepartment="isDepartment"></training-record>
|
</el-tab-pane>
|
<el-tab-pane label="监督记录" name="监督记录">
|
<Records v-if="activeName === '监督记录'" ref="recordsRef" :departId="departId" :isDepartment="isDepartment">
|
</Records>
|
</el-tab-pane>
|
<el-tab-pane label="任职授权记录" name="任职授权记录">
|
<Mandate v-if="activeName === '任职授权记录'" ref="manDateRef" :departId="departId" :isDepartment="isDepartment">
|
</Mandate>
|
</el-tab-pane>
|
<el-tab-pane label="人员能力" name="人员能力">
|
<personnel-capacity v-if="activeName === '人员能力'" ref="personnelCapacity" :departId="departId"
|
:isDepartment="isDepartment"></personnel-capacity>
|
</el-tab-pane>
|
<el-tab-pane label="沟通记录" name="沟通记录">
|
<Communicate v-if="activeName === '沟通记录'" ref="communicateRef" :departId="departId" :isDepartment="isDepartment">
|
</Communicate>
|
</el-tab-pane>
|
</el-tabs>
|
</template>
|
<script>
|
import Plan from './components/Plan/index.vue';
|
import Records from './components/Records/index.vue';
|
import Communicate from './components/Communicate/index.vue';
|
import Mandate from './components/Mandate/index.vue';
|
import PersonnelList from './components/PersonnelList/index.vue';
|
import PersonnelTraining from './components/PersonnelTraining/index.vue';
|
import JobResponsibilities from './components/JobResponsibilities/index.vue';
|
import TrainingRecord from './components/TrainingRecord/index.vue';
|
import PersonnelCapacity from './components/PersonnelCapacity/index.vue';
|
import trackRecord from "./components/trackRecord/index.vue";
|
import rewardPunishmentRecord from "./components/rewardPunishmentRecord/index.vue";
|
import PersonnelInformation from "./components/PersonnelInformation/index.vue";
|
|
export default {
|
props: {
|
clickNodeVal: {
|
type: Object,
|
default: () => {
|
return {};
|
}
|
},
|
departId: {
|
type: Number,
|
default: 0
|
},
|
isDepartment: {
|
type: Boolean,
|
default: false
|
},
|
isShowAll: {
|
type: Boolean,
|
default: false
|
},
|
currentCompaniesList: {
|
type: Array,
|
default: []
|
}
|
},
|
components: {
|
PersonnelInformation,
|
rewardPunishmentRecord,
|
trackRecord,
|
PersonnelCapacity,
|
TrainingRecord,
|
JobResponsibilities,
|
PersonnelTraining,
|
PersonnelList,
|
Plan,
|
Records,
|
Communicate,
|
Mandate
|
},
|
watch: {
|
departId: {
|
handler(newId, oldId) {
|
if (newId) {
|
switch (this.activeName) {
|
case '沟通记录':
|
this.$refs.communicateRef.getDepart(newId);
|
break;
|
case '任职授权记录':
|
this.$refs.manDateRef.getDepart(newId);
|
break;
|
default:
|
break;
|
}
|
}
|
}
|
}
|
},
|
data() {
|
return {
|
flag: true,
|
activeName: '人员基本信息',
|
}
|
},
|
created() {
|
// this.flag = isPermission('personTrainingSelect')
|
// console.log('this.flag',this.flag);
|
},
|
methods: {
|
updatePerson(row) {
|
this.$parent.updatePerson(row);
|
},
|
refreshTree() {
|
this.$parent.refreshTree();
|
},
|
}
|
};
|
</script>
|
<style scoped>
|
.el-tabs>>>.el-tabs--border-card {
|
box-shadow: unset;
|
border: unset;
|
}
|
|
.flex_column {
|
display: flex;
|
flex-direction: column;
|
justify-content: space-between;
|
}
|
</style>
|