|
@@ -30,6 +30,7 @@ import { useExamStore } from '@/store/exam'
|
|
|
import { useAnalysisStore } from '@/store/analysis'
|
|
import { useAnalysisStore } from '@/store/analysis'
|
|
|
import { queryQuestionGroupByAiId } from '@/api/analysis'
|
|
import { queryQuestionGroupByAiId } from '@/api/analysis'
|
|
|
import {getExamProcess } from '@/api/exam'
|
|
import {getExamProcess } from '@/api/exam'
|
|
|
|
|
+import { ElMessage } from 'element-plus'
|
|
|
|
|
|
|
|
const examStore = useExamStore()
|
|
const examStore = useExamStore()
|
|
|
const analysisStore = useAnalysisStore()
|
|
const analysisStore = useAnalysisStore()
|
|
@@ -73,45 +74,46 @@ const menuList = computed(() => {
|
|
|
if(examType.value==1)
|
|
if(examType.value==1)
|
|
|
{
|
|
{
|
|
|
//选择题判分
|
|
//选择题判分
|
|
|
- if(stepFlow.value < 2){
|
|
|
|
|
- list = [
|
|
|
|
|
- { name: '试题结构', number: '1', path: 'question', desc: '建立考试试题结构、设置标答、分组等信息', status:0 },
|
|
|
|
|
- { name: '扫描学生', number: '2', path: 'scanList', desc: '扫描学生,处理扫描异常学生等', status: 0 },
|
|
|
|
|
|
|
+ let analysisMenu = []
|
|
|
|
|
+ if(isShowGroupAnalysis.value){
|
|
|
|
|
+ analysisMenu = [
|
|
|
|
|
+ { name: '成绩单',number: '4', path: 'score' },
|
|
|
|
|
+ { name: '错题分析',number: '5', path: 'errorAnalysis' },
|
|
|
|
|
+ { name: '选项明细',number: '6', path: 'optionDetail' },
|
|
|
|
|
+ { name: '水平分布',number: '7', path: 'levelDistribution' },
|
|
|
|
|
+ { name: '班级对比',number: '8', path: 'classComparison' },
|
|
|
|
|
+ { name: '小题分析',number: '9', path: 'questionAnalysis' },
|
|
|
|
|
+ { name: '分组分析',number: '10', path: 'groupAnalysis' },
|
|
|
|
|
+ { name: '选项分析',number: '11', path: 'optionAnalysis' },
|
|
|
|
|
+ { name: '命题分析',number: '12', path: 'propositionAnalysis' },
|
|
|
];
|
|
];
|
|
|
}else{
|
|
}else{
|
|
|
- let analysisMenu = []
|
|
|
|
|
- if(isShowGroupAnalysis.value){
|
|
|
|
|
- analysisMenu = [
|
|
|
|
|
- { name: '成绩单',number: '4', path: 'score' },
|
|
|
|
|
- { name: '错题分析',number: '5', path: 'errorAnalysis' },
|
|
|
|
|
- { name: '选项明细',number: '6', path: 'optionDetail' },
|
|
|
|
|
- { name: '水平分布',number: '7', path: 'levelDistribution' },
|
|
|
|
|
- { name: '班级对比',number: '8', path: 'classComparison' },
|
|
|
|
|
- { name: '小题分析',number: '9', path: 'questionAnalysis' },
|
|
|
|
|
- { name: '分组分析',number: '10', path: 'groupAnalysis' },
|
|
|
|
|
- { name: '选项分析',number: '11', path: 'optionAnalysis' },
|
|
|
|
|
- { name: '命题分析',number: '12', path: 'propositionAnalysis' },
|
|
|
|
|
- ];
|
|
|
|
|
- }else{
|
|
|
|
|
- analysisMenu = [
|
|
|
|
|
- { name: '成绩单',number: '4', path: 'score' },
|
|
|
|
|
- { name: '错题分析',number: '5', path: 'errorAnalysis' },
|
|
|
|
|
- { name: '选项明细',number: '6', path: 'optionDetail' },
|
|
|
|
|
- { name: '水平分布',number: '7', path: 'levelDistribution' },
|
|
|
|
|
- { name: '班级对比',number: '8', path: 'classComparison' },
|
|
|
|
|
- { name: '小题分析',number: '9', path: 'questionAnalysis' },
|
|
|
|
|
- { name: '选项分析',number: '11', path: 'optionAnalysis' },
|
|
|
|
|
- { name: '命题分析',number: '12', path: 'propositionAnalysis' },
|
|
|
|
|
- ];
|
|
|
|
|
- }
|
|
|
|
|
- list = [
|
|
|
|
|
- { name: '试题结构', number: '1', path: 'question', desc: '建立考试试题结构、设置标答、分组等信息', status: 0 },
|
|
|
|
|
- { name: '扫描学生', number: '2', path: 'scanList', desc: '扫描学生,处理扫描异常学生等', status: 0 },
|
|
|
|
|
- { name: '成绩查询', number: '3', path: 'analysis/score', desc: '设置每个主观题下的划分区信息及位置', status: 0 ,
|
|
|
|
|
- menu:analysisMenu
|
|
|
|
|
- },
|
|
|
|
|
|
|
+ analysisMenu = [
|
|
|
|
|
+ { name: '成绩单',number: '4', path: 'score' },
|
|
|
|
|
+ { name: '错题分析',number: '5', path: 'errorAnalysis' },
|
|
|
|
|
+ { name: '选项明细',number: '6', path: 'optionDetail' },
|
|
|
|
|
+ { name: '水平分布',number: '7', path: 'levelDistribution' },
|
|
|
|
|
+ { name: '班级对比',number: '8', path: 'classComparison' },
|
|
|
|
|
+ { name: '小题分析',number: '9', path: 'questionAnalysis' },
|
|
|
|
|
+ { name: '选项分析',number: '11', path: 'optionAnalysis' },
|
|
|
|
|
+ { name: '命题分析',number: '12', path: 'propositionAnalysis' },
|
|
|
];
|
|
];
|
|
|
}
|
|
}
|
|
|
|
|
+ list = [
|
|
|
|
|
+ { name: '试题结构', number: '1', path: 'question', desc: '建立考试试题结构、设置标答、分组等信息', status: 0 },
|
|
|
|
|
+ { name: '扫描学生', number: '2', path: 'scanList', desc: '扫描学生,处理扫描异常学生等', status: 0 },
|
|
|
|
|
+ { name: '成绩查询', number: '3', path: 'analysis/score', desc: '设置每个主观题下的划分区信息及位置', status: 0 ,
|
|
|
|
|
+ menu:analysisMenu
|
|
|
|
|
+ },
|
|
|
|
|
+ ];
|
|
|
|
|
+ // if(stepFlow.value < 2){
|
|
|
|
|
+ // list = [
|
|
|
|
|
+ // { name: '试题结构', number: '1', path: 'question', desc: '建立考试试题结构、设置标答、分组等信息', status:0 },
|
|
|
|
|
+ // { name: '扫描学生', number: '2', path: 'scanList', desc: '扫描学生,处理扫描异常学生等', status: 0 },
|
|
|
|
|
+ // ];
|
|
|
|
|
+ // }else{
|
|
|
|
|
+
|
|
|
|
|
+ // }
|
|
|
}
|
|
}
|
|
|
else if(examType.value==2)
|
|
else if(examType.value==2)
|
|
|
{
|
|
{
|
|
@@ -204,6 +206,10 @@ const GetExamState = () => {
|
|
|
// 菜单点击事件
|
|
// 菜单点击事件
|
|
|
const MenuChange = (index: number, item: any) => {
|
|
const MenuChange = (index: number, item: any) => {
|
|
|
console.log('点击菜单', index, item)
|
|
console.log('点击菜单', index, item)
|
|
|
|
|
+ if(stepFlow.value < 2 && item.number == '3'){
|
|
|
|
|
+ ElMessage.error('当前任务暂未发布!');
|
|
|
|
|
+ return
|
|
|
|
|
+ }
|
|
|
stepOnIndex.value = index
|
|
stepOnIndex.value = index
|
|
|
childMenuPath.value = ''
|
|
childMenuPath.value = ''
|
|
|
// 触发父组件事件
|
|
// 触发父组件事件
|
|
@@ -214,6 +220,10 @@ const MenuChange = (index: number, item: any) => {
|
|
|
//子级菜单选择事件
|
|
//子级菜单选择事件
|
|
|
const MenuSelect = (menu: any) => {
|
|
const MenuSelect = (menu: any) => {
|
|
|
console.log('选择的子菜单', menu)
|
|
console.log('选择的子菜单', menu)
|
|
|
|
|
+ if(stepFlow.value < 2){
|
|
|
|
|
+ ElMessage.error('当前任务暂未发布!');
|
|
|
|
|
+ return
|
|
|
|
|
+ }
|
|
|
stepOnIndex.value = 2;
|
|
stepOnIndex.value = 2;
|
|
|
childMenuPath.value = menu.path;
|
|
childMenuPath.value = menu.path;
|
|
|
analysisStore.setChildMenuPath(menu.path);
|
|
analysisStore.setChildMenuPath(menu.path);
|