yanghao před 1 měsícem
rodič
revize
049ab2d28d
1 změnil soubory, kde provedl 42 přidání a 14 odebrání
  1. 42 14
      src/views/expert/list/index.vue

+ 42 - 14
src/views/expert/list/index.vue

@@ -167,7 +167,12 @@
 
               <div class="info-block">
                 <span class="info-label">所属团队</span>
-                <strong>{{ activeExpert.teamNames.join('、') || '-' }}</strong>
+                <strong>{{
+                  currentExpertDetail?.teams
+                    ?.map((team) => team.teamName)
+                    .filter(Boolean)
+                    .join('、') || '-'
+                }}</strong>
               </div>
 
               <div class="info-block">
@@ -215,24 +220,40 @@
 
           <section class="record-panel">
             <div class="record-header">
-              <h3>调用记录</h3>
-              <p>用于判断专家近期占用情况和评审适配度</p>
+              <h3>所在团队</h3>
             </div>
 
-            <el-table :data="activeExpert.records" class="record-table" table-layout="fixed">
-              <el-table-column prop="date" label="日期" min-width="110" />
-              <el-table-column prop="event" label="事项" min-width="130" />
-              <el-table-column
-                prop="project"
-                label="关联项目"
-                min-width="170"
-                show-overflow-tooltip
-              />
-              <el-table-column label="结果" min-width="96">
+            <el-table
+              :data="currentExpertDetail?.teams || []"
+              class="record-table"
+              table-layout="fixed"
+            >
+              <el-table-column prop="teamName" label="团队名称" min-width="120" align="center" />
+              <el-table-column label="团队所属公司" min-width="120" align="center">
+                <template #default="{ row }">
+                  {{ getDeptName(row.deptId) || '-' }}
+                </template>
+              </el-table-column>
+              <el-table-column label="团队 Logo" align="center" width="120">
                 <template #default="{ row }">
-                  <span :class="['record-badge', row.statusType]">{{ row.status }}</span>
+                  <el-image
+                    v-if="row.avatar"
+                    :src="row.avatar"
+                    fit="cover"
+                    class="team-logo"
+                    :preview-src-list="[row.avatar]"
+                    preview-teleported
+                  />
+                  <span v-else>-</span>
                 </template>
               </el-table-column>
+              <el-table-column
+                prop="summary"
+                label="团队概述"
+                min-width="240"
+                align="center"
+                show-overflow-tooltip
+              />
             </el-table>
           </section>
         </div>
@@ -1846,4 +1867,11 @@ onMounted(async () => {
     grid-template-columns: 1fr;
   }
 }
+
+.team-logo {
+  width: 52px;
+  height: 52px;
+  border-radius: 8px;
+  border: 1px solid #e5e7eb;
+}
 </style>