|
@@ -518,7 +518,7 @@
|
|
import { listTraining, getTraining, delTraining, addTraining, updateTraining, exportTraining } from "@/api/training/training";
|
|
import { listTraining, getTraining, delTraining, addTraining, updateTraining, exportTraining } from "@/api/training/training";
|
|
import nonAdd from './trainingNon'
|
|
import nonAdd from './trainingNon'
|
|
import newAdd from './trainingNew'
|
|
import newAdd from './trainingNew'
|
|
-import { listStaffmgr } from "@/api/plant/staffmgr";
|
|
|
|
|
|
+import {listStaffmgrAll, listStaffmgr } from "@/api/plant/staffmgr";
|
|
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";
|
|
@@ -579,6 +579,8 @@ export default {
|
|
haveDesignated: '',
|
|
haveDesignated: '',
|
|
//人员表联查
|
|
//人员表联查
|
|
stffmgrOptions: undefined,
|
|
stffmgrOptions: undefined,
|
|
|
|
+ //人员表联查-包含离职
|
|
|
|
+ stffmgrAllOptions: undefined,
|
|
// 用户导入参数
|
|
// 用户导入参数
|
|
upload: {
|
|
upload: {
|
|
downloadAction: process.env.VUE_APP_BASE_API + '/common/template',
|
|
downloadAction: process.env.VUE_APP_BASE_API + '/common/template',
|
|
@@ -735,6 +737,7 @@ export default {
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
this.getStaffmar();
|
|
this.getStaffmar();
|
|
|
|
+ this.getStaffmarAll();
|
|
//设置表格高度对应屏幕高度
|
|
//设置表格高度对应屏幕高度
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
this.clientHeight = (document.body.clientHeight - 80) * 0.8
|
|
this.clientHeight = (document.body.clientHeight - 80) * 0.8
|
|
@@ -801,7 +804,7 @@ export default {
|
|
if (value.trainer != null) {
|
|
if (value.trainer != null) {
|
|
let staffId = value.trainer.split(",");
|
|
let staffId = value.trainer.split(",");
|
|
staffId.forEach(function (id, index) {
|
|
staffId.forEach(function (id, index) {
|
|
- _this.stffmgrOptions.forEach(function (item) {
|
|
|
|
|
|
+ _this.stffmgrAllOptions.forEach(function (item) {
|
|
if (item.staffid === id) {
|
|
if (item.staffid === id) {
|
|
if (index === 0) {
|
|
if (index === 0) {
|
|
parentName = item.name
|
|
parentName = item.name
|
|
@@ -860,6 +863,12 @@ export default {
|
|
getStaffmar() {
|
|
getStaffmar() {
|
|
listStaffmgr(this.staffmgrQueryParams).then(response => {
|
|
listStaffmgr(this.staffmgrQueryParams).then(response => {
|
|
this.stffmgrOptions = response.rows;
|
|
this.stffmgrOptions = response.rows;
|
|
|
|
+ });
|
|
|
|
+ },
|
|
|
|
+ //获取人员表--包含离职
|
|
|
|
+ getStaffmarAll() {
|
|
|
|
+ listStaffmgrAll(this.staffmgrQueryParams).then(response => {
|
|
|
|
+ this.stffmgrAllOptions = response.rows;
|
|
this.getList();
|
|
this.getList();
|
|
});
|
|
});
|
|
},
|
|
},
|