diff --git a/src/views/newMap/display/exam/selectExam.vue b/src/views/newMap/display/exam/selectExam.vue index ee58e47a4..9b975d66c 100644 --- a/src/views/newMap/display/exam/selectExam.vue +++ b/src/views/newMap/display/exam/selectExam.vue @@ -107,12 +107,16 @@ export default { this.onSubmit(); }, onSubmit() { - getPapaerListOfOrg({ + const data = { orgId: this.$store.state.user.companyId, mapId: this.$route.query.mapId, creatorId: this.form.creatorId, findState: 3 - }).then(resp => { + }; + if(!data.creatorId) { + delete data.creatorId; + } + getPapaerListOfOrg(data).then(resp => { this.paperList = resp.data.list; }); }, diff --git a/src/views/organization/examManage/index.vue b/src/views/organization/examManage/index.vue index b8e57ed56..4a92a53ef 100644 --- a/src/views/organization/examManage/index.vue +++ b/src/views/organization/examManage/index.vue @@ -193,7 +193,7 @@ export default { this.creatorList = []; const data = {}; if (!this.hasTeachingDataManage()) { - data.orgId = this.orgId + data.orgId = this.orgId; } queryPaperCreatorList(data).then(response => { this.creatorList = response.data.map(item => { @@ -210,6 +210,9 @@ export default { return this.$route.path.includes('/teachingDataManage/'); }, getListApi(obj) { + if(!obj.creatorId) { + delete obj.creatorId; + } if (this.hasTeachingDataManage()) { return getAllPapaerListOfOrg({ ...obj }); } else {