接口调整
This commit is contained in:
parent
a21e880a18
commit
6b3d83979d
@ -347,9 +347,10 @@ export function queryTagList(data) {
|
|||||||
/**
|
/**
|
||||||
* 获取试卷创建者list
|
* 获取试卷创建者list
|
||||||
*/
|
*/
|
||||||
export function queryPaperCreatorList() {
|
export function queryPaperCreatorList(data) {
|
||||||
return request({
|
return request({
|
||||||
url: `/api/v2/paper/composition/list/creatorInfo`,
|
url: `/api/v2/paper/composition/list/creatorInfo`,
|
||||||
method: 'GET',
|
method: 'POST',
|
||||||
|
data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
@ -96,7 +96,12 @@ export default {
|
|||||||
},
|
},
|
||||||
onOpen() {
|
onOpen() {
|
||||||
this.creatorList = [];
|
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.creatorList = response.data;
|
||||||
});
|
});
|
||||||
this.onSubmit();
|
this.onSubmit();
|
||||||
|
@ -191,7 +191,11 @@ export default {
|
|||||||
this.mapIdList = response.data;
|
this.mapIdList = response.data;
|
||||||
});
|
});
|
||||||
this.creatorList = [];
|
this.creatorList = [];
|
||||||
queryPaperCreatorList().then(response => {
|
const data = {};
|
||||||
|
if (!this.hasTeachingDataManage()) {
|
||||||
|
data.orgId = this.orgId
|
||||||
|
}
|
||||||
|
queryPaperCreatorList(data).then(response => {
|
||||||
this.creatorList = response.data.map(item => {
|
this.creatorList = response.data.map(item => {
|
||||||
return {
|
return {
|
||||||
value: item.id,
|
value: item.id,
|
||||||
|
Loading…
Reference in New Issue
Block a user