|
@@ -73,7 +73,7 @@
|
|
|
|
|
|
<script>
|
|
<script>
|
|
import { listTrainingNon, getTrainingNon, delTrainingNon, addTrainingNon, updateTrainingNon, exportTrainingNon, importTemplate} from "@/api/training/trainingNon";
|
|
import { listTrainingNon, getTrainingNon, delTrainingNon, addTrainingNon, updateTrainingNon, exportTrainingNon, importTemplate} from "@/api/training/trainingNon";
|
|
-import { listStaffmgr, selectByStaffId } from "@/api/plant/staffmgr";
|
|
|
|
|
|
+import { listStaffmgr,listAllStaffmgr, selectByStaffId } from "@/api/plant/staffmgr";
|
|
|
|
|
|
export default {
|
|
export default {
|
|
name: "TrainingNon",
|
|
name: "TrainingNon",
|
|
@@ -97,9 +97,12 @@ export default {
|
|
staffmgrQueryParams: {
|
|
staffmgrQueryParams: {
|
|
staffid: null,
|
|
staffid: null,
|
|
unit: null,
|
|
unit: null,
|
|
- actualposts: null
|
|
|
|
|
|
+ actualposts: null,
|
|
|
|
+ leftYear: null
|
|
|
|
+ },
|
|
|
|
+ trainingStaffQueryParams: {
|
|
|
|
+ leftYear: null
|
|
},
|
|
},
|
|
- trainingStaffQueryParams: {},
|
|
|
|
// 培训计划未参加人员表格数据
|
|
// 培训计划未参加人员表格数据
|
|
trainingNonList: [],
|
|
trainingNonList: [],
|
|
//人员表联查
|
|
//人员表联查
|
|
@@ -122,6 +125,8 @@ export default {
|
|
methods: {
|
|
methods: {
|
|
init (row) {
|
|
init (row) {
|
|
this.queryParams.trainingId = row.id || 0
|
|
this.queryParams.trainingId = row.id || 0
|
|
|
|
+ this.staffmgrQueryParams.leftYear = row.year
|
|
|
|
+ this.trainingStaffQueryParams.leftYear = row.year
|
|
this.staffmgrQueryParams.units = row.unitid
|
|
this.staffmgrQueryParams.units = row.unitid
|
|
this.staffmgrQueryParams.actualposts = row.positionid
|
|
this.staffmgrQueryParams.actualposts = row.positionid
|
|
if (row.designatedStaff != null) {
|
|
if (row.designatedStaff != null) {
|
|
@@ -134,7 +139,7 @@ export default {
|
|
},
|
|
},
|
|
//获取人员表
|
|
//获取人员表
|
|
getStaffmar() {
|
|
getStaffmar() {
|
|
- listStaffmgr(this.staffmgrQueryParams).then(response => {
|
|
|
|
|
|
+ listAllStaffmgr(this.staffmgrQueryParams).then(response => {
|
|
this.stffmgrOptions = response.rows;
|
|
this.stffmgrOptions = response.rows;
|
|
if (this.designatedStaffs.length > 0) {
|
|
if (this.designatedStaffs.length > 0) {
|
|
selectByStaffId(this.designatedStaffs).then(response => {
|
|
selectByStaffId(this.designatedStaffs).then(response => {
|
|
@@ -142,7 +147,7 @@ export default {
|
|
})
|
|
})
|
|
}
|
|
}
|
|
});
|
|
});
|
|
- listStaffmgr(this.trainingStaffQueryParams).then(response => {
|
|
|
|
|
|
+ listAllStaffmgr(this.trainingStaffQueryParams).then(response => {
|
|
this.trainingstaffOptions = response.rows;
|
|
this.trainingstaffOptions = response.rows;
|
|
});
|
|
});
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|