|
|
@@ -174,18 +174,19 @@ export default {
|
|
|
PageSectionLoading
|
|
|
},
|
|
|
mounted() {
|
|
|
- this.codeId = this.$route.params;
|
|
|
+ const { codeId } = this.$route.params;
|
|
|
+ this.codeId = codeId;
|
|
|
this.loadingUncommittedGroups = true;
|
|
|
this.loadingCommittedGroups = true;
|
|
|
- getCodeAssignmentByTeacher(this.codeId).then(res => {
|
|
|
+ getCodeAssignmentByTeacher(codeId).then(res => {
|
|
|
this.problemInfo = res.data.problem;
|
|
|
});
|
|
|
- getCodeProcedureListByCodeId(this.codeId).then(res => {
|
|
|
+ getCodeProcedureListByCodeId(codeId).then(res => {
|
|
|
this.codeProcedureList = res.data;
|
|
|
this.submitInfo.yes = "已提交:" + this.codeProcedureList.length;
|
|
|
this.loadingCommittedGroups = false;
|
|
|
});
|
|
|
- getUnsubmittedCodeGroupsList(this.codeId).then(res => {
|
|
|
+ getUnsubmittedCodeGroupsList(codeId).then(res => {
|
|
|
this.unsubmitedGroups = res.data;
|
|
|
this.submitInfo.no = "未提交:" + this.unsubmitedGroups.length;
|
|
|
this.loadingUncommittedGroups = false;
|