项目详情页--初步更新

This commit is contained in:
Cheng Zhou
2025-12-18 19:36:47 +08:00
parent eed83cec5a
commit fb4950f8f7
17 changed files with 205 additions and 9 deletions
+14 -2
View File
@@ -9,8 +9,16 @@
<el-button type="primary" @click="openCreate">新建项目</el-button>
</div>
<el-table :data="projects" v-loading="loading" stripe>
<el-table-column prop="code" label="项目编号" width="140" />
<el-table-column prop="name" label="项目名称" min-width="200" />
<el-table-column prop="code" label="项目编号" width="140">
<template #default="scope">
<el-link type="primary" @click="goDetail(scope.row)">{{ scope.row.code }}</el-link>
</template>
</el-table-column>
<el-table-column prop="name" label="项目名称" min-width="200">
<template #default="scope">
<el-link type="primary" @click="goDetail(scope.row)">{{ scope.row.name }}</el-link>
</template>
</el-table-column>
<el-table-column prop="sponsor" label="申办方" min-width="160" />
<el-table-column prop="status" label="状态" width="120">
<template #default="scope">
@@ -84,6 +92,10 @@ const enterStudy = (row: Study) => {
router.push("/study/home");
};
const goDetail = (row: Study) => {
router.push(`/projects/${row.id}`);
};
const statusLabel = (status: string) =>
({
DRAFT: "草稿",