From adb7e954f61b5b2ad438c4b6d07cbb6ecfb5c56a Mon Sep 17 00:00:00 2001
From: xiangpei <xiangpei@timesnew.cn>
Date: 星期二, 04 六月 2024 09:14:03 +0800
Subject: [PATCH] 发布试卷时部门选择是全部部门
---
src/api/department.js | 2 +-
src/views/exam/personalRandomTemplate/edit.vue | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/api/department.js b/src/api/department.js
index 1156c7e..6962299 100644
--- a/src/api/department.js
+++ b/src/api/department.js
@@ -1,7 +1,7 @@
import { post, get } from '@/utils/request'
export default {
- list: query => post('/api/admin/education/department/list'),
+ list: query => post('/api/admin/department/list'),
pageList: query => post('/api/admin/department/page/list', query),
edit: query => post('/api/admin/department/update', query),
select: id => post('/api/admin/department/get/' + id),
diff --git a/src/views/exam/personalRandomTemplate/edit.vue b/src/views/exam/personalRandomTemplate/edit.vue
index ad21ee9..c92bf12 100644
--- a/src/views/exam/personalRandomTemplate/edit.vue
+++ b/src/views/exam/personalRandomTemplate/edit.vue
@@ -285,7 +285,7 @@
console.log(res);
this.subjectFilter = res.response;
});
- departmentApi.getDeptAdmins().then(res => {
+ departmentApi.list().then(res => {
this.depts = res.response;
});
},
--
Gitblit v1.8.0