|
|
@@ -22,7 +22,7 @@
|
|
|
<page-section-loading :show="loadingCommittedGroups" />
|
|
|
<b-table
|
|
|
v-if="!loadingCommittedGroups"
|
|
|
- :data="codeProcedureList"
|
|
|
+ :data="dlProcedureList"
|
|
|
detailed
|
|
|
detail-key="id"
|
|
|
>
|
|
|
@@ -35,42 +35,22 @@
|
|
|
sortable
|
|
|
centered
|
|
|
>
|
|
|
- {{ props.row.group.id }}
|
|
|
+ {{ props.row.userId }}
|
|
|
</b-table-column>
|
|
|
<b-table-column label="构建" centered>
|
|
|
- <span :class="geneTag(props.row.buildStatus.key)">
|
|
|
+ <span :class="geneTag(props.row.buildStatus)">
|
|
|
{{
|
|
|
- props.row.buildStatus.key === 0
|
|
|
+ props.row.buildStatus === 0
|
|
|
? "未构建"
|
|
|
- : props.row.buildStatus.key === -1
|
|
|
- ? "失败"
|
|
|
- : "成功"
|
|
|
- }}
|
|
|
- </span>
|
|
|
- </b-table-column>
|
|
|
-
|
|
|
- <b-table-column label="部署" centered>
|
|
|
- <span :class="geneTag(props.row.deployStatus.key)">
|
|
|
- {{
|
|
|
- props.row.deployStatus.key === 0
|
|
|
- ? "未部署"
|
|
|
- : props.row.deployStatus.key === -1
|
|
|
+ : props.row.buildStatus === -1
|
|
|
? "失败"
|
|
|
: "成功"
|
|
|
}}
|
|
|
</span>
|
|
|
</b-table-column>
|
|
|
<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 :class="geneAccuracyTag(props.row.accuracy)">
|
|
|
+ {{ props.row.accuracy }}
|
|
|
</span>
|
|
|
</b-table-column>
|
|
|
<b-table-column label="详情" centered>
|
|
|
@@ -147,8 +127,8 @@ export default {
|
|
|
this.problemInfo = res.data.problem;
|
|
|
});
|
|
|
getDLProcedureListById(dlworkId).then(res => {
|
|
|
- this.codeProcedureList = res.data;
|
|
|
- this.submitInfo.yes = "已提交:" + this.codeProcedureList.length;
|
|
|
+ this.dlProcedureList = res.data;
|
|
|
+ this.submitInfo.yes = "已提交:" + this.dlProcedureList.length;
|
|
|
this.loadingCommittedGroups = false;
|
|
|
});
|
|
|
getUnsubmittedList(dlworkId).then(res => {
|
|
|
@@ -160,7 +140,7 @@ export default {
|
|
|
data() {
|
|
|
return {
|
|
|
codeId: null,
|
|
|
- codeProcedureList: [],
|
|
|
+ dlProcedureList: [],
|
|
|
unsubmitedUser: [],
|
|
|
problemInfo: {
|
|
|
id: null,
|
|
|
@@ -179,6 +159,7 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
geneTag(state) {
|
|
|
+ console.log("the state is " + state);
|
|
|
let showTag = "";
|
|
|
if (state === -1) {
|
|
|
showTag = tag.failed;
|
|
|
@@ -188,6 +169,15 @@ export default {
|
|
|
showTag = tag.success;
|
|
|
}
|
|
|
return showTag;
|
|
|
+ },
|
|
|
+ geneAccuracyTag(accuracy) {
|
|
|
+ let accuracyTag = "";
|
|
|
+ if (accuracy >= 0.95) {
|
|
|
+ accuracyTag = tag.success;
|
|
|
+ } else {
|
|
|
+ accuracyTag = tag.failed;
|
|
|
+ }
|
|
|
+ return accuracyTag;
|
|
|
}
|
|
|
}
|
|
|
};
|