项目管理界面显示异常优化
This commit is contained in:
@@ -30,7 +30,9 @@
|
|||||||
</el-tag>
|
</el-tag>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="added_at" label="加入时间" width="200" />
|
<el-table-column prop="added_at" label="加入时间" width="200">
|
||||||
|
<template #default="scope">{{ displayDateTime(scope.row.added_at) }}</template>
|
||||||
|
</el-table-column>
|
||||||
<el-table-column label="操作" width="360" fixed="right">
|
<el-table-column label="操作" width="360" fixed="right">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<el-select
|
<el-select
|
||||||
@@ -104,6 +106,7 @@ import type { Study, StudyMember, UserInfo } from "../../types/api";
|
|||||||
import { useAuthStore } from "../../store/auth";
|
import { useAuthStore } from "../../store/auth";
|
||||||
import { evaluateAction } from "../../guards/actionGuard";
|
import { evaluateAction } from "../../guards/actionGuard";
|
||||||
import { logAudit } from "../../audit";
|
import { logAudit } from "../../audit";
|
||||||
|
import { displayDateTime } from "../../utils/display";
|
||||||
|
|
||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
const projectId = computed(() => route.params.projectId as string);
|
const projectId = computed(() => route.params.projectId as string);
|
||||||
|
|||||||
@@ -25,7 +25,9 @@
|
|||||||
<el-tag :type="statusTag(scope.row.status)">{{ statusLabel(scope.row.status) }}</el-tag>
|
<el-tag :type="statusTag(scope.row.status)">{{ statusLabel(scope.row.status) }}</el-tag>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</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">
|
<el-table-column label="操作" width="320" fixed="right">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<el-button link type="primary" size="small" @click="openEdit(scope.row)">编辑</el-button>
|
<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 type { Study } from "../../types/api";
|
||||||
import ProjectForm from "./ProjectForm.vue";
|
import ProjectForm from "./ProjectForm.vue";
|
||||||
import { useStudyStore } from "../../store/study";
|
import { useStudyStore } from "../../store/study";
|
||||||
|
import { displayDateTime } from "../../utils/display";
|
||||||
|
|
||||||
const projects = ref<Study[]>([]);
|
const projects = ref<Study[]>([]);
|
||||||
const loading = ref(false);
|
const loading = ref(false);
|
||||||
|
|||||||
@@ -16,7 +16,9 @@
|
|||||||
<el-tag type="danger" v-else>已禁用</el-tag>
|
<el-tag type="danger" v-else>已禁用</el-tag>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</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">
|
<el-table-column label="操作" width="320" fixed="right">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<el-button link type="primary" size="small" @click="openEdit(scope.row)">编辑</el-button>
|
<el-button link type="primary" size="small" @click="openEdit(scope.row)">编辑</el-button>
|
||||||
@@ -65,6 +67,7 @@ import type { UserInfo } from "../../types/api";
|
|||||||
import UserForm from "./UserForm.vue";
|
import UserForm from "./UserForm.vue";
|
||||||
import UserResetPassword from "./UserResetPassword.vue";
|
import UserResetPassword from "./UserResetPassword.vue";
|
||||||
import { useAuthStore } from "../../store/auth";
|
import { useAuthStore } from "../../store/auth";
|
||||||
|
import { displayDateTime } from "../../utils/display";
|
||||||
|
|
||||||
const users = ref<UserInfo[]>([]);
|
const users = ref<UserInfo[]>([]);
|
||||||
const total = ref(0);
|
const total = ref(0);
|
||||||
|
|||||||
Reference in New Issue
Block a user