考试管理调整

This commit is contained in:
fan 2024-04-10 14:33:10 +08:00
parent d1f8927355
commit 6c3b06c4a0
2 changed files with 38 additions and 3 deletions

View File

@ -344,3 +344,12 @@ export function queryTagList(data) {
data
});
}
/**
* 获取试卷创建者list
*/
export function queryPaperCreatorList() {
return request({
url: `/api/v2/paper/composition/list/creatorInfo`,
method: 'GET',
})
}

View File

@ -12,7 +12,7 @@
<script>
import config from '@/scripts/ConstConfig';
import { getPapaerListOfOrg, getAllPapaerListOfOrg, lockPaper, invalidPaper, deletePaper } from '@/api/management/exam';
import { getPapaerListOfOrg, getAllPapaerListOfOrg, lockPaper, invalidPaper, deletePaper, queryPaperCreatorList } from '@/api/management/exam';
import { getPublishMapListOnline } from '@/api/jmap/map';
const { paperStateArr, paperStateQueryMap } = config.ConstSelect;
@ -25,6 +25,7 @@ export default {
pageSize: 'pageSize',
pageIndex: 'pageNum'
},
creatorList: [],
mapIdList: [],
examQueryForm: {
leftSpan: 14,
@ -48,7 +49,12 @@ export default {
}))
},
noClearable: true
}
},
creatorId: {
type: 'select',
label: '创建人:',
config: {},
}
}
},
examQueryList: {
@ -63,6 +69,16 @@ export default {
{
title: '简介',
prop: 'profile'
},
{
title: '地图',
prop: 'mapId',
type: 'tag',
width: '120',
columnValue: row => {
return this.mapIdList.find(item => item.id == row.mapId) ? this.mapIdList.find(item => item.id == row.mapId).name : ''
},
tagType: row => ''
},
{
title: '状态',
@ -157,7 +173,7 @@ export default {
]
}
],
actions: [{ text: '新建试卷', handler: this.examCreate }]
actions: [{ text: '新建试卷1', handler: this.examCreate }]
}
};
},
@ -174,6 +190,16 @@ export default {
getPublishMapListOnline().then(response => {
this.mapIdList = response.data;
});
this.creatorList = [];
queryPaperCreatorList().then(response => {
this.creatorList = response.data.map(item => {
return {
value: item.id,
label: item.name
}
});
this.examQueryForm.queryObject.creatorId.config.data = this.creatorList;
});
},
methods: {
hasTeachingDataManage() {