简单汉化
This commit is contained in:
@@ -2,9 +2,9 @@
|
||||
<div class="page">
|
||||
<el-card class="mb-12">
|
||||
<div class="actions">
|
||||
<h3>里程碑</h3>
|
||||
<h3>伦理与启动管理</h3>
|
||||
<PermissionAction action="milestone.create">
|
||||
<el-button type="primary" @click="openCreate">新增里程碑</el-button>
|
||||
<el-button type="primary" @click="openCreate">新建节点</el-button>
|
||||
</PermissionAction>
|
||||
</div>
|
||||
</el-card>
|
||||
@@ -12,10 +12,18 @@
|
||||
<el-card>
|
||||
<el-table :data="milestones" v-loading="loading" style="width: 100%">
|
||||
<el-table-column prop="name" label="名称" />
|
||||
<el-table-column prop="type" label="类型" width="160" />
|
||||
<el-table-column label="类型" width="160">
|
||||
<template #default="scope">
|
||||
{{ typeLabel(scope.row.type) }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="planned_date" label="计划日期" width="140" />
|
||||
<el-table-column prop="actual_date" label="实际日期" width="140" />
|
||||
<el-table-column prop="status" label="状态" width="140" />
|
||||
<el-table-column label="状态" width="140">
|
||||
<template #default="scope">
|
||||
{{ statusLabel(scope.row.status) }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="owner_id" label="负责人" width="160" />
|
||||
<el-table-column label="操作" width="120">
|
||||
<template #default="scope">
|
||||
@@ -74,6 +82,25 @@ const openEdit = (row: any) => {
|
||||
onMounted(() => {
|
||||
loadMilestones();
|
||||
});
|
||||
|
||||
const typeLabel = (v: string) =>
|
||||
({
|
||||
ETHICS_SUBMISSION: "伦理递交",
|
||||
ETHICS_APPROVAL: "伦理批件",
|
||||
SIV: "启动会",
|
||||
FPI: "首例入组",
|
||||
LPI: "末例入组",
|
||||
DBL: "揭盲",
|
||||
CSR: "总结报告",
|
||||
}[v] || v);
|
||||
|
||||
const statusLabel = (v: string) =>
|
||||
({
|
||||
NOT_STARTED: "未开始",
|
||||
IN_PROGRESS: "进行中",
|
||||
DONE: "已完成",
|
||||
BLOCKED: "阻塞",
|
||||
}[v] || v);
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
Reference in New Issue
Block a user