|
@@ -38,39 +38,55 @@
|
|
|
{{ props.row.group.id }}
|
|
{{ props.row.group.id }}
|
|
|
</b-table-column>
|
|
</b-table-column>
|
|
|
<b-table-column label="构建" centered>
|
|
<b-table-column label="构建" centered>
|
|
|
- <span :class="geneTitleAndTag(props.row.buildStatus.key).tag">
|
|
|
|
|
- {{ geneTitleAndTag(props.row.buildStatus.key).title }}
|
|
|
|
|
|
|
+ <span :class="geneTag(props.row.buildStatus.key)">
|
|
|
|
|
+ {{
|
|
|
|
|
+ props.row.buildStatus.key === 0
|
|
|
|
|
+ ? "未构建"
|
|
|
|
|
+ : props.row.buildStatus.key === -1
|
|
|
|
|
+ ? "失败"
|
|
|
|
|
+ : "成功"
|
|
|
|
|
+ }}
|
|
|
</span>
|
|
</span>
|
|
|
</b-table-column>
|
|
</b-table-column>
|
|
|
|
|
|
|
|
<b-table-column label="部署" centered>
|
|
<b-table-column label="部署" centered>
|
|
|
- <span
|
|
|
|
|
- :class="geneTitleAndTag(props.row.deployStatus.key).tag"
|
|
|
|
|
- >
|
|
|
|
|
- {{ geneTitleAndTag(props.row.deployStatus.key).title }}
|
|
|
|
|
|
|
+ <span :class="geneTag(props.row.deployStatus.key)">
|
|
|
|
|
+ {{
|
|
|
|
|
+ props.row.deployStatus.key === 0
|
|
|
|
|
+ ? "未部署"
|
|
|
|
|
+ : props.row.deployStatus.key === -1
|
|
|
|
|
+ ? "失败"
|
|
|
|
|
+ : "成功"
|
|
|
|
|
+ }}
|
|
|
</span>
|
|
</span>
|
|
|
</b-table-column>
|
|
</b-table-column>
|
|
|
- <b-table-column label="单元测试">
|
|
|
|
|
- <span
|
|
|
|
|
- :class="geneTitleAndTag(props.row.unitTestStatus.key).tag"
|
|
|
|
|
- >
|
|
|
|
|
- {{ props.row.unitTestStatus.passCount }}/{{
|
|
|
|
|
- props.row.unitTestStatus.testCount
|
|
|
|
|
|
|
+ <b-table-column label="单元测试" centered>
|
|
|
|
|
+ <span :class="geneTag(props.row.unitTestStatus.key)">
|
|
|
|
|
+ {{
|
|
|
|
|
+ props.row.unitTestStatus.key === 0
|
|
|
|
|
+ ? "未测试"
|
|
|
|
|
+ : props.row.unitTestStatus.key === -1
|
|
|
|
|
+ ? "构建失败"
|
|
|
|
|
+ : props.row.unitTestStatus.passCount +
|
|
|
|
|
+ "/" +
|
|
|
|
|
+ props.row.unitTestStatus.testCount
|
|
|
}}
|
|
}}
|
|
|
</span>
|
|
</span>
|
|
|
</b-table-column>
|
|
</b-table-column>
|
|
|
- <b-table-column label="功能测试">
|
|
|
|
|
- <span
|
|
|
|
|
- :class="
|
|
|
|
|
- geneTitleAndTag(props.row.functionTestStatus.key).tag
|
|
|
|
|
- "
|
|
|
|
|
- >
|
|
|
|
|
- {{ props.row.functionTestStatus.passCount }}/{{
|
|
|
|
|
- props.row.functionTestStatus.testCount
|
|
|
|
|
|
|
+ <b-table-column label="功能测试" centered>
|
|
|
|
|
+ <span :class="geneTag(props.row.functionTestStatus.key)">
|
|
|
|
|
+ {{
|
|
|
|
|
+ props.row.functionTestStatus.key === 0
|
|
|
|
|
+ ? "未测试"
|
|
|
|
|
+ : props.row.functionTestStatus.key === -1
|
|
|
|
|
+ ? "未知状态"
|
|
|
|
|
+ : props.row.functionTestStatus.passCount +
|
|
|
|
|
+ "/" +
|
|
|
|
|
+ props.row.functionTestStatus.testCount
|
|
|
}}
|
|
}}
|
|
|
</span>
|
|
</span>
|
|
|
</b-table-column>
|
|
</b-table-column>
|
|
|
- <b-table-column label="详情">
|
|
|
|
|
|
|
+ <b-table-column label="详情" centered>
|
|
|
<router-link
|
|
<router-link
|
|
|
:to="{
|
|
:to="{
|
|
|
path: `/course-teacher/:courseId/code/detail/test`,
|
|
path: `/course-teacher/:courseId/code/detail/test`,
|
|
@@ -117,7 +133,7 @@
|
|
|
<b-table-column label="小组名称" centered>
|
|
<b-table-column label="小组名称" centered>
|
|
|
{{ props.row.name }}
|
|
{{ props.row.name }}
|
|
|
</b-table-column>
|
|
</b-table-column>
|
|
|
- <b-table-column label="小组成员" centered>
|
|
|
|
|
|
|
+ <b-table-column label="小组a成员" centered>
|
|
|
<span v-for="member in props.row.members" :key="member.id"
|
|
<span v-for="member in props.row.members" :key="member.id"
|
|
|
>{{ member.username }} </span
|
|
>{{ member.username }} </span
|
|
|
>
|
|
>
|
|
@@ -168,12 +184,12 @@ export default {
|
|
|
this.loadingUncommittedGroups = true;
|
|
this.loadingUncommittedGroups = true;
|
|
|
this.loadingCommittedGroups = true;
|
|
this.loadingCommittedGroups = true;
|
|
|
this.assignmentInfo = this.$route.query.assignmentInfo;
|
|
this.assignmentInfo = this.$route.query.assignmentInfo;
|
|
|
- getCodeProcedureListByCodeId(123).then(res => {
|
|
|
|
|
|
|
+ getCodeProcedureListByCodeId(this.$route.params.codeId).then(res => {
|
|
|
this.codeProcedureList = res.data;
|
|
this.codeProcedureList = res.data;
|
|
|
this.submitInfo.yes = "已提交:" + this.codeProcedureList.length;
|
|
this.submitInfo.yes = "已提交:" + this.codeProcedureList.length;
|
|
|
this.loadingCommittedGroups = false;
|
|
this.loadingCommittedGroups = false;
|
|
|
});
|
|
});
|
|
|
- getUnsubmittedCodeGroupsList(123).then(res => {
|
|
|
|
|
|
|
+ getUnsubmittedCodeGroupsList(this.$route.params.codeId).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;
|
|
@@ -196,6 +212,17 @@ export default {
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
+ geneTag(state) {
|
|
|
|
|
+ let showTag = "";
|
|
|
|
|
+ if (state === -1) {
|
|
|
|
|
+ showTag = tag.failed;
|
|
|
|
|
+ } else if (state === 0) {
|
|
|
|
|
+ showTag = tag.uncommitted;
|
|
|
|
|
+ } else {
|
|
|
|
|
+ showTag = tag.success;
|
|
|
|
|
+ }
|
|
|
|
|
+ return showTag;
|
|
|
|
|
+ },
|
|
|
geneTitleAndTag(state) {
|
|
geneTitleAndTag(state) {
|
|
|
let data = {
|
|
let data = {
|
|
|
title: "",
|
|
title: "",
|