浏览代码

LY 离职逻辑修改

ly 3 年之前
父节点
当前提交
59f2ecd8f1
共有 1 个文件被更改,包括 5 次插入3 次删除
  1. 5 3
      ui/src/views/training/training/trainingNew.vue

+ 5 - 3
ui/src/views/training/training/trainingNew.vue

@@ -73,7 +73,7 @@
 
 <script>
 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 {
   name: "TrainingNew",
@@ -122,6 +122,8 @@ export default {
   methods: {
     init (row) {
       this.queryParams.trainingId = row.id || 0
+      this.staffmgrQueryParams.leftYear = row.year
+      this.trainingStaffQueryParams.leftYear = row.year
       this.staffmgrQueryParams.units = row.unitid
       this.staffmgrQueryParams.actualposts = row.positionid
       if (row.designatedStaff != null) {
@@ -134,7 +136,7 @@ export default {
     },
     //获取人员表
     getStaffmar() {
-      listStaffmgr(this.staffmgrQueryParams).then(response => {
+      listAllStaffmgr(this.staffmgrQueryParams).then(response => {
         this.stffmgrOptions = response.rows;
         if (this.designatedStaffs.length > 0) {
           selectByStaffId(this.designatedStaffs).then(response => {
@@ -142,7 +144,7 @@ export default {
           })
         }
       });
-      listStaffmgr(this.trainingStaffQueryParams).then(response => {
+      listAllStaffmgr(this.trainingStaffQueryParams).then(response => {
         this.trainingstaffOptions = response.rows;
       });
       this.$nextTick(() => {