Ver Fonte

显示构建成功率

ChenYizong há 7 anos atrás
pai
commit
ce8d6b2eff

+ 5 - 0
src/views/student/DlWork/detail.vue

@@ -27,6 +27,11 @@
         <strong>git 地址 : </strong>
         <strong>git 地址 : </strong>
         <a :href="dlTestDetail.url">{{ dlTestDetail.url }}</a>
         <a :href="dlTestDetail.url">{{ dlTestDetail.url }}</a>
       </template>
       </template>
+      <template slot="content">
+        <strong
+          ><br /><br />当前构建成功率 :{{ dlTestDetail.rateofsuccess }}</strong
+        >
+      </template>
     </page-header>
     </page-header>
     <page-body>
     <page-body>
       <router-view
       <router-view

+ 5 - 1
src/views/teacher/DlWork/test.vue

@@ -24,6 +24,11 @@
         <strong>git 地址 : </strong>
         <strong>git 地址 : </strong>
         <a :href="dlDetail.url">{{ dlDetail.url }}</a>
         <a :href="dlDetail.url">{{ dlDetail.url }}</a>
       </template>
       </template>
+      <template slot="content">
+        <strong
+          ><br /><br />当前构建成功率 :{{ dlDetail.rateofsuccess }}</strong
+        >
+      </template>
     </page-header>
     </page-header>
     <page-body>
     <page-body>
       <router-view :project-detail="dlDetail" :detail-loading="detailLoading" />
       <router-view :project-detail="dlDetail" :detail-loading="detailLoading" />
@@ -54,7 +59,6 @@ export default {
     const detail = await getStudentDLProjectDetail(dlworkId, userId);
     const detail = await getStudentDLProjectDetail(dlworkId, userId);
     this.dlDetail = detail.data;
     this.dlDetail = detail.data;
     console.log(this.dlDetail);
     console.log(this.dlDetail);
-
     this.detailLoading = false;
     this.detailLoading = false;
   }
   }
 };
 };

+ 2 - 2
vue.config.js

@@ -2,8 +2,8 @@ module.exports = {
   devServer: {
   devServer: {
     proxy: {
     proxy: {
       "^/api": {
       "^/api": {
-        // target: "http://localhost:18080/",
-        target: "http://localhost:4000/",
+        target: "http://localhost:18080/",
+        // target: "http://localhost:4000/",
 
 
         // target: "http://10.1.1.198:8080/",
         // target: "http://10.1.1.198:8080/",
         //target: "http://192.168.0.101:8080",
         //target: "http://192.168.0.101:8080",