接口调整

This commit is contained in:
fan 2024-04-11 11:45:51 +08:00
parent a21e880a18
commit 6b3d83979d
3 changed files with 14 additions and 4 deletions

View File

@ -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
})
}

View File

@ -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();

View File

@ -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,