dedsudiyu 4 月之前
父節點
當前提交
5c7b327b01

+ 4 - 4
src/views/hierarchicalControl/gradeManage/addPage.vue

@@ -225,7 +225,7 @@
     laboratoryGradeManageUpdate,
   } from "@/api/hierarchicalControl/index";
   import {
-    getDeptDropList,
+    systemDeptGetLoginUserByDeptList,
     laboratoryClassLevelGetList,
     laboratoryClassTypeGetList,
     laboratoryClassMoldGetList,
@@ -338,7 +338,7 @@
 
     },
     mounted(){
-      this.getDeptDropList();
+      this.systemDeptGetLoginUserByDeptList();
       this.laboratoryClassLevelGetList();
       this.laboratoryClassTypeGetList();
       this.laboratoryClassMoldGetList();
@@ -372,8 +372,8 @@
         this.$set(this,'total',this.tableUserList.length);
       },
       //获取学院
-      getDeptDropList(){
-        getDeptDropList({level: 2, deptType: 1 }).then(response => {
+      systemDeptGetLoginUserByDeptList(){
+        systemDeptGetLoginUserByDeptList({}).then(response => {
           this.$set(this,'deptList',response.data);
         });
       },

+ 5 - 5
src/views/hierarchicalControl/gradeManage/userList.vue

@@ -62,7 +62,7 @@
 
 <script>
   import {
-    getDeptDropList,
+    systemDeptGetLoginUserByDeptList,
     systemUserSelectByPage,
   } from '@/api/commonality/permission'
   export default {
@@ -103,7 +103,7 @@
 
     },
     mounted(){
-      this.getDeptDropList();
+      this.systemDeptGetLoginUserByDeptList();
     },
     methods:{
       //确定按钮
@@ -117,7 +117,7 @@
       show(data){
         let self = this;
         this.resetQuery();
-        this.getDeptDropList();
+        this.systemDeptGetLoginUserByDeptList();
         this.userOpen = !this.userOpen;
         if(data){
           this.addUserList = data;
@@ -125,8 +125,8 @@
         self.getList();
       },
       //获取学院
-      getDeptDropList(){
-        getDeptDropList({level: 2, deptType: 1 }).then(response => {
+      systemDeptGetLoginUserByDeptList(){
+        systemDeptGetLoginUserByDeptList({level: 2, deptType: 1 }).then(response => {
           this.$set(this,'deptList',response.data);
         });
       },