diff --git a/src/api/management/exam.js b/src/api/management/exam.js index 5513e743d..7b70d9b23 100644 --- a/src/api/management/exam.js +++ b/src/api/management/exam.js @@ -347,9 +347,10 @@ export function queryTagList(data) { /** * 获取试卷创建者list */ -export function queryPaperCreatorList() { +export function queryPaperCreatorList(data) { return request({ url: `/api/v2/paper/composition/list/creatorInfo`, - method: 'GET', + method: 'POST', + data }) } diff --git a/src/views/newMap/display/exam/selectExam.vue b/src/views/newMap/display/exam/selectExam.vue index f6843a2cb..ee58e47a4 100644 --- a/src/views/newMap/display/exam/selectExam.vue +++ b/src/views/newMap/display/exam/selectExam.vue @@ -96,7 +96,12 @@ export default { }, onOpen() { this.creatorList = []; - queryPaperCreatorList().then(response => { + const data = { + orgId: this.$store.state.user.companyId, + mapId: this.$route.query.mapId, + findState: 3 + } + queryPaperCreatorList(data).then(response => { this.creatorList = response.data; }); this.onSubmit(); diff --git a/src/views/organization/examManage/index.vue b/src/views/organization/examManage/index.vue index 37766afbb..b8e57ed56 100644 --- a/src/views/organization/examManage/index.vue +++ b/src/views/organization/examManage/index.vue @@ -191,7 +191,11 @@ export default { this.mapIdList = response.data; }); this.creatorList = []; - queryPaperCreatorList().then(response => { + const data = {}; + if (!this.hasTeachingDataManage()) { + data.orgId = this.orgId + } + queryPaperCreatorList(data).then(response => { this.creatorList = response.data.map(item => { return { value: item.id,