|
@@ -3,23 +3,45 @@
|
|
|
<div class="column">
|
|
<div class="column">
|
|
|
<div class="page-section">
|
|
<div class="page-section">
|
|
|
<h5 class="title is-5">单元测试:</h5>
|
|
<h5 class="title is-5">单元测试:</h5>
|
|
|
- <div
|
|
|
|
|
|
|
+ <router-link
|
|
|
class="test-item"
|
|
class="test-item"
|
|
|
:key="item.id"
|
|
:key="item.id"
|
|
|
|
|
+ :to="`${$route.path}/unit/${item.id}`"
|
|
|
v-for="item in projectDetail.unitTestList"
|
|
v-for="item in projectDetail.unitTestList"
|
|
|
|
|
+ tag="div"
|
|
|
>
|
|
>
|
|
|
<div><strong>UNIT TEST : #</strong> {{ item.id }}</div>
|
|
<div><strong>UNIT TEST : #</strong> {{ item.id }}</div>
|
|
|
<pass-tag :pass="item.isPassAll" />
|
|
<pass-tag :pass="item.isPassAll" />
|
|
|
- <span>{{ item.time }}</span>
|
|
|
|
|
- </div>
|
|
|
|
|
|
|
+ <span style="padding-left: 10px">{{
|
|
|
|
|
+ displayUnixTime(item.time)
|
|
|
|
|
+ }}</span>
|
|
|
|
|
+ </router-link>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="column">
|
|
|
|
|
+ <div class="page-section">
|
|
|
|
|
+ <h5 class="title is-5">页面测试:</h5>
|
|
|
|
|
+ <router-link
|
|
|
|
|
+ class="test-item"
|
|
|
|
|
+ :key="item.id"
|
|
|
|
|
+ :to="`${$route.path}/functional/${item.id}`"
|
|
|
|
|
+ v-for="item in projectDetail.functionTestList"
|
|
|
|
|
+ tag="div"
|
|
|
|
|
+ >
|
|
|
|
|
+ <div><strong>FUNCTIONAL TEST : #</strong> {{ item.id }}</div>
|
|
|
|
|
+ <pass-tag :pass="item.isPassAll" />
|
|
|
|
|
+ <span style="padding-left: 10px">{{
|
|
|
|
|
+ displayUnixTime(item.time)
|
|
|
|
|
+ }}</span>
|
|
|
|
|
+ </router-link>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
- <div class="column"><div class="page-section">b</div></div>
|
|
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
import PassTag from "@/views/student/Code/ProjectDetail/components/PassTag";
|
|
import PassTag from "@/views/student/Code/ProjectDetail/components/PassTag";
|
|
|
|
|
+import timeMixins from "@/mixins/time";
|
|
|
export default {
|
|
export default {
|
|
|
components: { PassTag },
|
|
components: { PassTag },
|
|
|
props: {
|
|
props: {
|
|
@@ -30,7 +52,8 @@ export default {
|
|
|
functionTestList: []
|
|
functionTestList: []
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
- }
|
|
|
|
|
|
|
+ },
|
|
|
|
|
+ mixins: [timeMixins]
|
|
|
};
|
|
};
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|
|
@@ -39,9 +62,15 @@ export default {
|
|
|
.test-item {
|
|
.test-item {
|
|
|
padding: $default-margin $default-margin-between;
|
|
padding: $default-margin $default-margin-between;
|
|
|
margin: 0 -#{$default-margin-between};
|
|
margin: 0 -#{$default-margin-between};
|
|
|
|
|
+ cursor: pointer;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+.test-item:hover,
|
|
|
|
|
+.test-item:nth-child(even):hover {
|
|
|
|
|
+ background-color: #dde3ef;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-.test-item:nth-child(odd) {
|
|
|
|
|
- background-color: blue;
|
|
|
|
|
|
|
+.test-item:nth-child(even) {
|
|
|
|
|
+ background-color: rgba(244, 247, 252, 0.6);
|
|
|
}
|
|
}
|
|
|
</style>
|
|
</style>
|