From d8d68a0aee93073b5ec3195368ca0ed1076f66a2 Mon Sep 17 00:00:00 2001
From: 董国庆 <364620639@qq.com>
Date: 星期三, 25 六月 2025 17:58:08 +0800
Subject: [PATCH] 对接评定接口和中台待办事项

---
 laboratory/src/views/deliveryAssessment/projectTeamIntegral/index.vue |   42 ++++++++++++++++++++++++++----------------
 1 files changed, 26 insertions(+), 16 deletions(-)

diff --git a/laboratory/src/views/deliveryAssessment/projectTeamIntegral/index.vue b/laboratory/src/views/deliveryAssessment/projectTeamIntegral/index.vue
index 5e3dbe9..2fd7ca4 100644
--- a/laboratory/src/views/deliveryAssessment/projectTeamIntegral/index.vue
+++ b/laboratory/src/views/deliveryAssessment/projectTeamIntegral/index.vue
@@ -26,17 +26,21 @@
                 </el-form>
             </template>
             <template #table>
-                <el-table-column prop="name" label="项目组名称" />
-                <el-table-column prop="age" label="项目组总积分" />
-                <el-table-column prop="age" label="工艺工程师积分" />
-                <el-table-column prop="age" label="化验师积分" />
-                <el-table-column prop="age" label="实验员积分" />
-                <el-table-column prop="age" label="评定开始时间" />
-                <el-table-column prop="age" label="评定结束时间" />
-                <el-table-column prop="age" label="状态" />
-                <el-table-column prop="age" label="操作">
+                <el-table-column prop="teamName" label="项目组名称" />
+                <el-table-column prop="teamIntegral" label="项目组总积分" />
+                <el-table-column prop="engineerIntegral" label="工艺工程师积分" />
+                <el-table-column prop="chemistIntegral" label="化验师积分" />
+                <el-table-column prop="testerIntegral" label="实验员积分" />
+                <el-table-column prop="startTime" label="评定开始时间" />
+                <el-table-column prop="endTime" label="评定结束时间" />
+                <el-table-column prop="status" label="状态">
                     <template #default="{ row }">
-                        <el-button @click="goDetail" type="text">详情</el-button>
+                        <span>{{ formatStatus(row.status) }}</span>
+                    </template>
+                </el-table-column>
+                <el-table-column label="操作">
+                    <template #default="{ row }">
+                        <el-button @click="goDetail(row)" type="text">详情</el-button>
                     </template>
                 </el-table-column>
             </template>
@@ -65,9 +69,10 @@
         }
     },
     methods: {
-        goDetail() {
+        goDetail(row) {
             this.$router.push({
-                path: '/deliveryAssessment/projectTeamIntegral-detail'
+                path: '/deliveryAssessment/projectTeamIntegral-detail',
+                query: { id: row.id }
             })
         },
         handleCurrentChange(page) {
@@ -106,17 +111,22 @@
                 params.startTime = this.value1[0]
                 params.endTime = this.value1[1]
             } else {
-                params.startTime = undefined
-                params.endTime = undefined
+                params.startTime = ''
+                params.endTime = ''
             }
             try {
                 const res = await pageList(params)
-                this.tableData = res.records || []
-                this.total = res.total || 0
+                this.tableData = res.data.records || []
+                this.total = res.data.total || 0
             } catch (e) {
                 this.tableData = []
                 this.total = 0
             }
+        },
+        formatStatus(status) {
+            if (status === -1) return '草稿箱'
+            if (status === 1) return '已提交'
+            return '全部'
         }
     },
     mounted() {

--
Gitblit v1.7.1