|
@@ -142,13 +142,13 @@
|
|
<!-- 添加或修改继任者清单对话框 -->
|
|
<!-- 添加或修改继任者清单对话框 -->
|
|
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
|
|
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
|
|
- <el-form-item label="培养员工编号" prop="staffId">
|
|
|
|
|
|
+ <el-form-item label="培养员工" prop="staffId">
|
|
<el-select v-model="form.staffId" filterable :placeholder="$t('请选择')+$t('学员')">
|
|
<el-select v-model="form.staffId" filterable :placeholder="$t('请选择')+$t('学员')">
|
|
<el-option
|
|
<el-option
|
|
v-for="item in userOption"
|
|
v-for="item in userOption"
|
|
- :key="item.userId"
|
|
|
|
- :label="item.nickName"
|
|
|
|
- :value="item.userId"
|
|
|
|
|
|
+ :key="item.staffId"
|
|
|
|
+ :label="item.name +' '+ item.deptName"
|
|
|
|
+ :value="item.staffId"
|
|
:disabled="item.disabled">
|
|
:disabled="item.disabled">
|
|
</el-option>
|
|
</el-option>
|
|
</el-select>
|
|
</el-select>
|
|
@@ -166,13 +166,13 @@
|
|
></el-option>
|
|
></el-option>
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
- <el-form-item label="导师员工编号" prop="mentorStaffId">
|
|
|
|
|
|
+ <el-form-item label="导师员工" prop="mentorStaffId">
|
|
<el-select v-model="form.mentorStaffId" filterable :placeholder="$t('请选择')+$t('导师')">
|
|
<el-select v-model="form.mentorStaffId" filterable :placeholder="$t('请选择')+$t('导师')">
|
|
<el-option
|
|
<el-option
|
|
- v-for="item in userOption"
|
|
|
|
- :key="item.userId"
|
|
|
|
- :label="item.nickName"
|
|
|
|
- :value="item.userId"
|
|
|
|
|
|
+ v-for="item in userMentorOption"
|
|
|
|
+ :key="item.staffId"
|
|
|
|
+ :label="item.name +' '+ item.deptName"
|
|
|
|
+ :value="item.staffId"
|
|
:disabled="item.disabled">
|
|
:disabled="item.disabled">
|
|
</el-option>
|
|
</el-option>
|
|
</el-select>
|
|
</el-select>
|
|
@@ -231,13 +231,12 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
-import { listSuccessor, getSuccessor, delSuccessor, addSuccessor, updateSuccessor, exportSuccessor, importTemplate} from "@/api/training/spec/successor";
|
|
|
|
|
|
+import { listSuccessor, getSuccessor, delSuccessor, addSuccessor, updateSuccessor, exportSuccessor, importTemplate ,listPostStaff,listPostMentorStaff} from "@/api/training/spec/successor";
|
|
import { treeselect } from "@/api/system/dept";
|
|
import { treeselect } from "@/api/system/dept";
|
|
import { getToken } from "@/utils/auth";
|
|
import { getToken } from "@/utils/auth";
|
|
import Treeselect from "@riophae/vue-treeselect";
|
|
import Treeselect from "@riophae/vue-treeselect";
|
|
import "@riophae/vue-treeselect/dist/vue-treeselect.css";
|
|
import "@riophae/vue-treeselect/dist/vue-treeselect.css";
|
|
import StaffResume from "./staffResume"
|
|
import StaffResume from "./staffResume"
|
|
-import {listPostUser} from "@/api/system/user";
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
name: "Successor",
|
|
name: "Successor",
|
|
@@ -251,6 +250,7 @@ export default {
|
|
// 选中数组
|
|
// 选中数组
|
|
ids: [],
|
|
ids: [],
|
|
userOption:[],
|
|
userOption:[],
|
|
|
|
+ userMentorOption: [],
|
|
// 非单个禁用
|
|
// 非单个禁用
|
|
single: true,
|
|
single: true,
|
|
// 非多个禁用
|
|
// 非多个禁用
|
|
@@ -324,8 +324,11 @@ export default {
|
|
this.getDicts("st_successor_status").then(response => {
|
|
this.getDicts("st_successor_status").then(response => {
|
|
this.stSuccessorStatusOptions = response.data;
|
|
this.stSuccessorStatusOptions = response.data;
|
|
});
|
|
});
|
|
- listPostUser(this.queryParams).then(response => {
|
|
|
|
- this.userOption = response;
|
|
|
|
|
|
+ listPostStaff(this.queryParams).then(response => {
|
|
|
|
+ this.userOption = response.data;
|
|
|
|
+ });
|
|
|
|
+ listPostMentorStaff(this.queryParams).then(response => {
|
|
|
|
+ this.userMentorOption = response.data;
|
|
});
|
|
});
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|