|
|
@@ -86,8 +86,8 @@
|
|
|
</b-tab-item>
|
|
|
|
|
|
<b-tab-item :label="submitInfo.no">
|
|
|
- <page-section-loading :show="loadingUncommittedGroups" />
|
|
|
- <b-table v-if="!loadingUncommittedGroups" :data="unsubmitedGroups">
|
|
|
+ <page-section-loading :show="loadingUncommittedUser" />
|
|
|
+ <b-table v-if="!loadingUncommittedUser" :data="unsubmitedUser">
|
|
|
<template slot-scope="props">
|
|
|
<b-table-column
|
|
|
field="id"
|
|
|
@@ -97,10 +97,10 @@
|
|
|
sortable
|
|
|
centered
|
|
|
>
|
|
|
- {{ props.row.id }}
|
|
|
+ {{ props.row.userId }}
|
|
|
</b-table-column>
|
|
|
<b-table-column label="用户昵称" centered>
|
|
|
- {{ props.row.name }}
|
|
|
+ {{ props.row.userName }}
|
|
|
</b-table-column>
|
|
|
</template>
|
|
|
</b-table>
|
|
|
@@ -114,8 +114,8 @@
|
|
|
<script>
|
|
|
import PageHeader from "@/components/PageHeader";
|
|
|
import PageBody from "@/components/PageBody/index";
|
|
|
-import { getCodeProcedureListByCodeId } from "@/api/assignment";
|
|
|
-import { getUnsubmittedCodeGroupsList } from "@/api/assignment";
|
|
|
+import { getDLProcedureListById } from "@/api/dlwork";
|
|
|
+import { getUnsubmittedList } from "@/api/dlwork";
|
|
|
import { getDLAssignmentById } from "@/api/dlwork";
|
|
|
|
|
|
import PageSectionLoading from "@/components/PageBody/PageSectionLoading/index";
|
|
|
@@ -139,29 +139,29 @@ export default {
|
|
|
PageSectionLoading
|
|
|
},
|
|
|
mounted() {
|
|
|
- const { codeId } = this.$route.params;
|
|
|
- this.codeId = codeId;
|
|
|
- this.loadingUncommittedGroups = true;
|
|
|
+ const { dlworkId } = this.$route.params;
|
|
|
+ this.codeId = dlworkId;
|
|
|
+ this.loadingUncommittedUser = true;
|
|
|
this.loadingCommittedGroups = true;
|
|
|
- getDLAssignmentById(codeId).then(res => {
|
|
|
+ getDLAssignmentById(dlworkId).then(res => {
|
|
|
this.problemInfo = res.data.problem;
|
|
|
});
|
|
|
- getCodeProcedureListByCodeId(codeId).then(res => {
|
|
|
+ getDLProcedureListById(dlworkId).then(res => {
|
|
|
this.codeProcedureList = res.data;
|
|
|
this.submitInfo.yes = "已提交:" + this.codeProcedureList.length;
|
|
|
this.loadingCommittedGroups = false;
|
|
|
});
|
|
|
- getUnsubmittedCodeGroupsList(codeId).then(res => {
|
|
|
- this.unsubmitedGroups = res.data;
|
|
|
- this.submitInfo.no = "未提交:" + this.unsubmitedGroups.length;
|
|
|
- this.loadingUncommittedGroups = false;
|
|
|
+ getUnsubmittedList(dlworkId).then(res => {
|
|
|
+ this.unsubmitedUser = res.data;
|
|
|
+ this.submitInfo.no = "未提交:" + this.unsubmitedUser.length;
|
|
|
+ this.loadingUncommittedUser = false;
|
|
|
});
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
codeId: null,
|
|
|
codeProcedureList: [],
|
|
|
- unsubmitedGroups: [],
|
|
|
+ unsubmitedUser: [],
|
|
|
problemInfo: {
|
|
|
id: null,
|
|
|
name: null,
|
|
|
@@ -174,7 +174,7 @@ export default {
|
|
|
no: "未提交"
|
|
|
},
|
|
|
loadingCommittedGroups: false,
|
|
|
- loadingUncommittedGroups: false
|
|
|
+ loadingUncommittedUser: false
|
|
|
};
|
|
|
},
|
|
|
methods: {
|