ChenYizong пре 7 година
родитељ
комит
ce8d6b2eff
3 измењених фајлова са 12 додато и 3 уклоњено
  1. 5 0
      src/views/student/DlWork/detail.vue
  2. 5 1
      src/views/teacher/DlWork/test.vue
  3. 2 2
      vue.config.js

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

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

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

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

+ 2 - 2
vue.config.js

@@ -2,8 +2,8 @@ module.exports = {
   devServer: {
     proxy: {
       "^/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://192.168.0.101:8080",