Prechádzať zdrojové kódy

测试详细信息页面

Prevalence 7 rokov pred
rodič
commit
d30b301876

+ 5 - 5
src/views/teacher/DlWork/DLWorkDetail/DLBuildDetail.vue

@@ -5,13 +5,13 @@
       <!--空数据处理-->
       <div
         class="page-section"
-        v-if="!(dlDetail.buildList && dlDetail.buildList.length > 0)"
+        v-if="!(projectDetail.buildList && projectDetail.buildList.length > 0)"
         style="height: 60vh;"
       >
         <no-data-svg></no-data-svg>
       </div>
       <div
-        v-for="(item, index) in dlDetail.buildList"
+        v-for="(item, index) in projectDetail.buildList"
         :key="item.id"
         class="gap-section"
       >
@@ -60,7 +60,7 @@ export default {
   name: "BuildDetail",
   components: { BuildTag, PageSectionLoading, NoDataSvg },
   props: {
-    dlDetail: {
+    projectDetail: {
       type: Object,
       default: () => {}
     },
@@ -71,13 +71,13 @@ export default {
   },
   computed: {},
   watch: {
-    dlDetail: function(newVal) {
+    projectDetail: function(newVal) {
       let buildMessageIsOpen = [];
       for (let i = 0; i < newVal.buildList.length; i++) {
         let buildInfo = newVal.buildList[i];
         buildInfo.buildTime = buildInfo.buildTime.replace("T", " ") + "ms";
         buildMessageIsOpen.push(false);
-        this.dlDetail.buildList[i] = buildInfo;
+        this.projectDetail.buildList[i] = buildInfo;
       }
       this.buildMessageIsOpen = buildMessageIsOpen;
     }

+ 2 - 2
src/views/teacher/DlWork/DLWorkDetail/DLTestDetail.vue

@@ -36,7 +36,7 @@ import PageSectionLoading from "@/components/PageBody/PageSectionLoading/index";
 export default {
   components: { PageSectionLoading },
   props: {
-    dlDetail: {
+    projectDetail: {
       type: Object,
       default: () => ({
         dlTestList: []
@@ -49,7 +49,7 @@ export default {
   },
   computed: {
     dlTestList() {
-      return this.sortTestList(this.dlDetail.dlTestList);
+      return this.sortTestList(this.projectDetail.dlTestList);
     }
   },
   data() {