元数据模板导出 excel导入 带五条实例

This commit is contained in:
2026-10-23 19:17:09 +08:00
parent ddc0864f06
commit b522734c92
4 changed files with 80 additions and 2 deletions
+2
View File
@@ -92,6 +92,8 @@ export interface ImportResult {
inserted: number
updated: number
failed: number
/** 自动跳过的模板示例行数 */
skipped: number
errors: string[]
}
@@ -412,6 +412,10 @@ onMounted(fetchData)
</div>
</div>
<p v-if="importResult?.skipped" class="imp-skip-tip">
已自动跳过 {{ importResult.skipped }} 行模板示例数据。
</p>
<div v-if="importResult?.errors?.length" class="imp-errors">
<div class="imp-errors-title">失败明细</div>
<ul>
@@ -532,6 +536,12 @@ onMounted(fetchData)
color: #3f7d5c;
}
.imp-skip-tip {
margin: 0 0 12px;
font-size: 12px;
color: var(--text-muted);
}
.special-tag {
margin-right: 6px;
background: var(--brand-primary);