From 1a7fa21afabfd85bc760390dd4cb734a9cb2c703 Mon Sep 17 00:00:00 2001
From: zhangzengfei <zhangzengfei@smartai.com>
Date: 星期三, 08 十二月 2021 18:09:30 +0800
Subject: [PATCH] 添加算法打包的判断

---
 src/views/project/index.vue |   24 +++++++++++++++++++-----
 1 files changed, 19 insertions(+), 5 deletions(-)

diff --git a/src/views/project/index.vue b/src/views/project/index.vue
index 1a909eb..0430bb5 100644
--- a/src/views/project/index.vue
+++ b/src/views/project/index.vue
@@ -74,7 +74,6 @@
       stripe
       :data="list"
       :element-loading-text="elementLoadingText"
-      :height="height"
       @selection-change="setSelectRows"
       @expand-change="expandChange"
     >
@@ -84,7 +83,10 @@
             :data="props.row.pkgList"
             :show-header="false"
             style="width: 100%"
+            row-class-name="expand-row"
+            :highlight-current-row="false"
           >
+            >
             <el-table-column prop="fileName"></el-table-column>
             <el-table-column prop="version" width="150"></el-table-column>
             <el-table-column prop="commit" width="150"></el-table-column>
@@ -100,7 +102,7 @@
             <el-table-column width="300">
               <template #default="scope">
                 <el-button
-                  v-show="props.row.type == 'os'"
+                  v-show="props.row.type == 'os' || props.row.type == 'algo'"
                   size="small"
                   @click="handlePublish(scope.row)"
                   >鍙戝竷</el-button
@@ -126,15 +128,22 @@
       <el-table-column
         show-overflow-tooltip
         prop="name"
-        label="椤圭洰鍚嶇О"
+        label="鍚嶇О"
         width="150"
       ></el-table-column>
       <el-table-column
         show-overflow-tooltip
+        prop="desc"
+        label="鎻忚堪"
+      ></el-table-column>
+      <el-table-column
+        show-overflow-tooltip
         prop="srcUrl"
-        label="椤圭洰鍦板潃"
+        label="鍦板潃"
         width="500"
       ></el-table-column>
+      <el-table-column show-overflow-tooltip prop="branch" label="鍒嗘敮">
+      </el-table-column>
       <el-table-column show-overflow-tooltip prop="type" label="绫诲瀷">
         <template #default="{ row }">
           <el-tag>{{ typeOptions[row.type] }}</el-tag>
@@ -156,7 +165,7 @@
       <el-table-column
         label="鍒涘缓鏃堕棿"
         prop="createdAt"
-        width="200"
+        width="150"
       ></el-table-column>
       <el-table-column label="鎿嶄綔" width="180px">
         <template #default="{ row }">
@@ -363,3 +372,8 @@
   },
 };
 </script>
+<style>
+.el-table .expand-row {
+  background-color: oldlace;
+}
+</style>

--
Gitblit v1.8.0