dedsudiyu %!s(int64=2) %!d(string=hai) anos
pai
achega
f64296e921

+ 9 - 0
src/api/system/dept.js

@@ -118,3 +118,12 @@ export function treeselectByUser(data) {
     data: data
   })
 }
+
+//查询学院列表(根据数据权限)
+export function getDeptNoAuthList(data) {
+  return request({
+    url: '/system/dept/getDeptNoAuthList?deptType=1',
+    method: 'get',
+    data: data
+  })
+}

+ 2 - 2
src/views/safetyEducationExam/safeLearning/el_course/edit.vue

@@ -453,7 +453,7 @@
 <script>
   import { listQu } from "@/api/exam/qu";
   import { list_option } from "@/api/exam/el_classify";
-  import { listDepartments } from "@/api/system/dept";
+  import { getDeptNoAuthList } from "@/api/system/dept";
   import { listEl_resources } from "@/api/exam/el_resources";
   import { getEl_course,addEl_course, updateEl_course,add_el_chapter,edit_el_chapter,del_el_chapter,queryChapterQu } from "@/api/exam/el_course";
   import { listEl_category} from "@/api/exam/el_category";
@@ -675,7 +675,7 @@
       /******************基本信息-开始******************/
       /* 查询学院列表 */
       getDeptList(){
-        listDepartments().then(response => {
+        getDeptNoAuthList().then(response => {
           // this.deptOptions = response.data;
           this.$set(this, 'deptOptions', response.data)
         });