wolyshaw 4 years ago
parent
commit
b2d4aadf81
1 changed files with 7 additions and 3 deletions
  1. 7 3
      src/views/HumanResources/index.vue

+ 7 - 3
src/views/HumanResources/index.vue

@@ -295,6 +295,7 @@ export default {
   },
   activated() {
     this.getList();
+    this.getSubjectList()
     // this.getTreeList()
   },
   computed: {
@@ -323,7 +324,11 @@ export default {
         this.organList = res.data;
       }
     })
-    getSubject({
+    this.getSubjectList()
+  },
+  methods: {
+    getSubjectList() {
+      getSubject({
         delFlag: 0,
         tenantId: 1,
       }).then(res => {
@@ -347,8 +352,7 @@ export default {
           this.subjectList = result
         }
       })
-  },
-  methods: {
+    },
     openEducation(row) {
       try {
         this.educationList = JSON.parse(row.educationalBackground)