|
|
@@ -342,6 +342,7 @@ import ExpandableText from '@/views/analysisReport/components/ExpandableText' //
|
|
|
import LineChart from '@/views/analysisReport/components/dCharts/lineChart' //折线图
|
|
|
import GaugeChart from '@/views/analysisReport/components/dCharts/GaugeChart'
|
|
|
import GotoTop from '@/views/analysisReport/components/GotoTop' //分析报告页面底部回到顶部组件
|
|
|
+import {getApiName} from '@/utils/common';
|
|
|
import { mapGetters } from 'vuex'
|
|
|
export default {
|
|
|
name: 'subjectQuality',
|
|
|
@@ -539,9 +540,7 @@ export default {
|
|
|
//学生端查询单科-我的成绩
|
|
|
QueryOneSubjectData() {
|
|
|
this.subjectLoading = true
|
|
|
- this.$api.reportStudent
|
|
|
- .queryOneSubjectData(this.reportParam)
|
|
|
- .then(res => {
|
|
|
+ this.$api.reportStudent[getApiName()].queryOneSubjectData(this.reportParam).then(res => {
|
|
|
if (res.code == 200 && res.data) {
|
|
|
this.subjectData.data = res.data
|
|
|
const academicLevelData = res.data.academicLevelData;
|
|
|
@@ -577,12 +576,10 @@ export default {
|
|
|
//查询学生答题卡带批阅痕迹的
|
|
|
FindStudentCard() {
|
|
|
this.answerCard.loading = true
|
|
|
- this.$api.reportStudent
|
|
|
- .findStudentCard({
|
|
|
+ this.$api.reportStudent[getApiName()].findStudentCard({
|
|
|
examId: this.reportParam.examId, //考试ID
|
|
|
subjectCode: this.reportParam.subjectCode //科目code
|
|
|
- })
|
|
|
- .then(res => {
|
|
|
+ }).then(res => {
|
|
|
if (res.code == 200 && res.data) {
|
|
|
this.answerCard.paperImageList = res?.data?.pageVOS || [];
|
|
|
this.answerCard.studentCode = res?.data?.studentCode ?? ''
|
|
|
@@ -622,9 +619,7 @@ export default {
|
|
|
//学生端查询单科-小题分析(表格-图表)
|
|
|
QueryOneSubjectSmallQuestionData() {
|
|
|
this.groupData.smallQuestionData.loading = true
|
|
|
- this.$api.reportStudent
|
|
|
- .queryOneSubjectSmallQuestionData(this.reportParam)
|
|
|
- .then(res => {
|
|
|
+ this.$api.reportStudent[getApiName()].queryOneSubjectSmallQuestionData(this.reportParam).then(res => {
|
|
|
if (res.code == 200 && res.data) {
|
|
|
const tableData = res.data.tableData || []
|
|
|
const titleData = res.data.titleData || []
|
|
|
@@ -704,9 +699,7 @@ export default {
|
|
|
this.groupData.bigQuestionData.loading = true
|
|
|
this.groupData.knowledgePointQuestionData.loading = true
|
|
|
this.groupData.abilityQuestionData.loading = true
|
|
|
- this.$api.reportStudent
|
|
|
- .queryOneSubjectGroupQuestionData(this.reportParam)
|
|
|
- .then(res => {
|
|
|
+ this.$api.reportStudent[getApiName()].queryOneSubjectGroupQuestionData(this.reportParam).then(res => {
|
|
|
if (res.code == 200 && res.data) {
|
|
|
const { bigQuestion, knowledgePointQuestion, abilityQuestion } = res.data
|
|
|
if (bigQuestion && bigQuestion?.tableData?.length > 0) {
|
|
|
@@ -769,7 +762,7 @@ export default {
|
|
|
},
|
|
|
//学生端查询单科-自定义分组
|
|
|
QueryOneSubjectCustomGroupQuestion() {
|
|
|
- this.$api.reportStudent.queryOneSubjectCustomGroupQuestion(this.reportParam).then(res => {
|
|
|
+ this.$api.reportStudent[getApiName()].queryOneSubjectCustomGroupQuestion(this.reportParam).then(res => {
|
|
|
if (res.code == 200 && res.data) {
|
|
|
const customQuestionData = res?.data?.customQuestionData ?? []
|
|
|
if (customQuestionData && customQuestionData.length > 0) {
|
|
|
@@ -803,9 +796,7 @@ export default {
|
|
|
//学生端查询单科-历次查询
|
|
|
QueryOneSubjectHistoryExamData() {
|
|
|
this.historyExamLoading = true
|
|
|
- this.$api.reportStudent
|
|
|
- .queryOneSubjectHistoryExamData(this.reportParam)
|
|
|
- .then(res => {
|
|
|
+ this.$api.reportStudent[getApiName()].queryOneSubjectHistoryExamData(this.reportParam).then(res => {
|
|
|
if (res.code == 200 && res.data) {
|
|
|
const detailData = (res.data?.detailData || []).reverse()
|
|
|
this.historyExamData.chartData = detailData
|
|
|
@@ -853,7 +844,7 @@ export default {
|
|
|
},
|
|
|
//学生端查询单科-总结建议
|
|
|
QueryOneSubjectSuggestionData() {
|
|
|
- this.$api.reportStudent.queryOneSubjectSuggestionData(this.reportParam).then(res => {
|
|
|
+ this.$api.reportStudent[getApiName()].queryOneSubjectSuggestionData(this.reportParam).then(res => {
|
|
|
if (res.code == 200 && res.data) {
|
|
|
const data = res.data
|
|
|
//* 1-得分显示分数,小题分显示分数,2-得分显示分数,小题分显示对错
|