|
@@ -36,7 +36,7 @@
|
|
|
</el-form>
|
|
</el-form>
|
|
|
|
|
|
|
|
<el-table :data="treeData" v-loading="loading" row-key="id" :tree-props="{ children: 'children' }" default-expand-all>
|
|
<el-table :data="treeData" v-loading="loading" row-key="id" :tree-props="{ children: 'children' }" default-expand-all>
|
|
|
- <el-table-column label="序号" width="72" header-align="right" align="right">
|
|
|
|
|
|
|
+ <el-table-column label="序号" width="72" header-align="right" align="right" class-name="col-seq">
|
|
|
<template #default="{ row }">{{ row.seq }}</template>
|
|
<template #default="{ row }">{{ row.seq }}</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
<el-table-column label="项目名称" min-width="200">
|
|
<el-table-column label="项目名称" min-width="200">
|
|
@@ -46,7 +46,7 @@
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
<el-table-column prop="ownerName" label="负责人" width="100" />
|
|
<el-table-column prop="ownerName" label="负责人" width="100" />
|
|
|
- <el-table-column prop="resourceCount" label="关联资源数" width="110" header-align="right" align="right" />
|
|
|
|
|
|
|
+ <el-table-column prop="resourceCount" label="关联资源数" width="110" header-align="right" align="right" class-name="col-res" />
|
|
|
<el-table-column label="状态" width="100">
|
|
<el-table-column label="状态" width="100">
|
|
|
<template #default="{ row }">
|
|
<template #default="{ row }">
|
|
|
<span :class="['status-badge', row.status === 1 ? 'status-badge--success' : 'status-badge--disabled']">
|
|
<span :class="['status-badge', row.status === 1 ? 'status-badge--success' : 'status-badge--disabled']">
|
|
@@ -203,4 +203,14 @@ onMounted(async () => {
|
|
|
margin: 4px 0 16px;
|
|
margin: 4px 0 16px;
|
|
|
}
|
|
}
|
|
|
.muted-tip { color: var(--color-text-placeholder); font-size: 12px; }
|
|
.muted-tip { color: var(--color-text-placeholder); font-size: 12px; }
|
|
|
|
|
+/* 单元格内容垂直居中: 解决树形子行序号(裸文本)与同行为 el-button/el-tag 不对齐 */
|
|
|
|
|
+:deep(.el-table .cell) {
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ align-items: center;
|
|
|
|
|
+}
|
|
|
|
|
+/* flex 下 text-align 失效, 右对齐列需补 justify-content */
|
|
|
|
|
+:deep(.col-seq .cell),
|
|
|
|
|
+:deep(.col-res .cell) {
|
|
|
|
|
+ justify-content: flex-end;
|
|
|
|
|
+}
|
|
|
</style>
|
|
</style>
|