项目管理界面显示异常优化

This commit is contained in:
Cheng Zhou
2025-12-18 22:16:48 +08:00
parent 7137665410
commit 8fc8bb88d2
3 changed files with 12 additions and 3 deletions
+4 -1
View File
@@ -25,7 +25,9 @@
<el-tag :type="statusTag(scope.row.status)">{{ statusLabel(scope.row.status) }}</el-tag>
</template>
</el-table-column>
<el-table-column prop="created_at" label="创建时间" width="200" />
<el-table-column prop="created_at" label="创建时间" width="200">
<template #default="scope">{{ displayDateTime(scope.row.created_at) }}</template>
</el-table-column>
<el-table-column label="操作" width="320" fixed="right">
<template #default="scope">
<el-button link type="primary" size="small" @click="openEdit(scope.row)">编辑</el-button>
@@ -48,6 +50,7 @@ import { fetchStudies } from "../../api/studies";
import type { Study } from "../../types/api";
import ProjectForm from "./ProjectForm.vue";
import { useStudyStore } from "../../store/study";
import { displayDateTime } from "../../utils/display";
const projects = ref<Study[]>([]);
const loading = ref(false);