|
@@ -4,14 +4,14 @@
|
|
|
:loading="loadingCommittedGroups"
|
|
:loading="loadingCommittedGroups"
|
|
|
:routes="[
|
|
:routes="[
|
|
|
{ name: '文档作业', path: 'document' },
|
|
{ name: '文档作业', path: 'document' },
|
|
|
- { name: `作业详情`, path: `document` }
|
|
|
|
|
|
|
+ { name: `作业详情`, path: `${$route.path}` }
|
|
|
]"
|
|
]"
|
|
|
>
|
|
>
|
|
|
<template slot="title">
|
|
<template slot="title">
|
|
|
- {{ question.name }}
|
|
|
|
|
|
|
+ {{ problem.name }}
|
|
|
</template>
|
|
</template>
|
|
|
<template slot="content">
|
|
<template slot="content">
|
|
|
- 题目描述:{{ question.description }}
|
|
|
|
|
|
|
+ 题目描述:{{ problem.description }}
|
|
|
</template>
|
|
</template>
|
|
|
<template slot="extraContent">
|
|
<template slot="extraContent">
|
|
|
题目进行阶段:{{ status }}
|
|
题目进行阶段:{{ status }}
|
|
@@ -56,8 +56,7 @@
|
|
|
<b-table-column field="difficulty" label="详情" centered
|
|
<b-table-column field="difficulty" label="详情" centered
|
|
|
><router-link
|
|
><router-link
|
|
|
:to="{
|
|
:to="{
|
|
|
- path: `${$route.path}/content`,
|
|
|
|
|
- query: { groupWorkId: props.row.id }
|
|
|
|
|
|
|
+ path: `${$route.path}/content/${props.row.id}`
|
|
|
}"
|
|
}"
|
|
|
>查看详情</router-link
|
|
>查看详情</router-link
|
|
|
>
|
|
>
|
|
@@ -123,6 +122,7 @@ import PageHeader from "@/components/PageHeader";
|
|
|
import PageBody from "@/components/PageBody/index";
|
|
import PageBody from "@/components/PageBody/index";
|
|
|
import { getSubmittedDocResultListByDocId } from "@/api/assignment";
|
|
import { getSubmittedDocResultListByDocId } from "@/api/assignment";
|
|
|
import { getUnsubmittedDocGroupsByDocId } from "@/api/assignment";
|
|
import { getUnsubmittedDocGroupsByDocId } from "@/api/assignment";
|
|
|
|
|
+import { getDocAssignmentTeacherByCrs } from "@/api/assignment";
|
|
|
import { mapState } from "vuex";
|
|
import { mapState } from "vuex";
|
|
|
import PageSectionLoading from "@/components/PageBody/PageSectionLoading/index";
|
|
import PageSectionLoading from "@/components/PageBody/PageSectionLoading/index";
|
|
|
|
|
|
|
@@ -137,20 +137,20 @@ export default {
|
|
|
PageHeader,
|
|
PageHeader,
|
|
|
PageSectionLoading
|
|
PageSectionLoading
|
|
|
},
|
|
},
|
|
|
- created() {
|
|
|
|
|
- this.docId = this.$route.query.docId;
|
|
|
|
|
- this.question = this.$route.query.question;
|
|
|
|
|
- },
|
|
|
|
|
mounted() {
|
|
mounted() {
|
|
|
|
|
+ const { documentId } = this.$route.query;
|
|
|
this.loadingCommittedGroups = true;
|
|
this.loadingCommittedGroups = true;
|
|
|
this.loadingUncommittedGroups = true;
|
|
this.loadingUncommittedGroups = true;
|
|
|
- getSubmittedDocResultListByDocId(this.docId).then(res => {
|
|
|
|
|
|
|
+ getDocAssignmentTeacherByCrs(documentId).then(res => {
|
|
|
|
|
+ this.problem = res.data.problem;
|
|
|
|
|
+ });
|
|
|
|
|
+ getSubmittedDocResultListByDocId(documentId).then(res => {
|
|
|
this.status = res.data.status;
|
|
this.status = res.data.status;
|
|
|
this.submittedData = res.data.result;
|
|
this.submittedData = res.data.result;
|
|
|
this.submitInfo.yes = "已提交:" + this.submittedData.length;
|
|
this.submitInfo.yes = "已提交:" + this.submittedData.length;
|
|
|
this.loadingCommittedGroups = false;
|
|
this.loadingCommittedGroups = false;
|
|
|
});
|
|
});
|
|
|
- getUnsubmittedDocGroupsByDocId(this.docId).then(res => {
|
|
|
|
|
|
|
+ getUnsubmittedDocGroupsByDocId(documentId).then(res => {
|
|
|
this.unsubmitedGroups = res.data;
|
|
this.unsubmitedGroups = res.data;
|
|
|
this.submitInfo.no = "未提交:" + this.unsubmitedGroups.length;
|
|
this.submitInfo.no = "未提交:" + this.unsubmitedGroups.length;
|
|
|
this.loadingUncommittedGroups = false;
|
|
this.loadingUncommittedGroups = false;
|
|
@@ -158,11 +158,14 @@ export default {
|
|
|
},
|
|
},
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
|
|
+ problem: {
|
|
|
|
|
+ id: null,
|
|
|
|
|
+ name: null,
|
|
|
|
|
+ description: null
|
|
|
|
|
+ },
|
|
|
submittedData: [],
|
|
submittedData: [],
|
|
|
unsubmitedGroups: [],
|
|
unsubmitedGroups: [],
|
|
|
status: "",
|
|
status: "",
|
|
|
- question: null,
|
|
|
|
|
- docId: null,
|
|
|
|
|
submitInfo: {
|
|
submitInfo: {
|
|
|
yes: "已提交",
|
|
yes: "已提交",
|
|
|
no: "未提交"
|
|
no: "未提交"
|