-
版本资源库(元数据)
+
+
版本资源库(元数据)
+
+ 模板导出
+
+ Excel 导入
+
+
+
+
@@ -318,6 +394,38 @@ onMounted(fetchData)
保存
+
+
+
+
+
+ {{ importResult.total }}解析行数
+
+
+ {{ importResult.inserted }}新增
+
+
+ {{ importResult.updated }}更新
+
+
+ {{ importResult.failed }}失败
+
+
+
+
+
+ 全部数据导入成功。
+
+
+
+ 知道了
+
+
@@ -327,10 +435,107 @@ onMounted(fetchData)
justify-content: flex-end;
}
+.table-head {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ gap: 16px;
+ margin-bottom: 16px;
+
+ .page-title {
+ margin: 0;
+ }
+}
+
+.head-actions {
+ display: flex;
+ align-items: center;
+ gap: 10px;
+}
+
+.file-input {
+ display: none;
+}
+
+/* 导入结果 */
+.imp-summary {
+ display: grid;
+ grid-template-columns: repeat(4, 1fr);
+ gap: 10px;
+ margin-bottom: 16px;
+}
+
+.imp-item {
+ padding: 14px 8px;
+ text-align: center;
+ background: var(--brand-light);
+ border: 1px solid var(--card-border);
+ border-radius: var(--radius-sm);
+
+ b {
+ display: block;
+ font-family: 'Noto Serif SC', 'Songti SC', serif;
+ font-size: 22px;
+ line-height: 1.3;
+ color: var(--brand-primary-deep);
+ }
+
+ em {
+ font-style: normal;
+ font-size: 12px;
+ color: var(--text-muted);
+ }
+
+ &.ok b {
+ color: #3f7d5c;
+ }
+
+ &.upd b {
+ color: #a3703f;
+ }
+
+ &.err b {
+ color: #c0392b;
+ }
+}
+
+.imp-errors {
+ max-height: 220px;
+ overflow-y: auto;
+ padding: 10px 12px;
+ background: #fdf6f4;
+ border: 1px solid #f2dcd6;
+ border-radius: var(--radius-sm);
+
+ .imp-errors-title {
+ margin-bottom: 6px;
+ font-size: 13px;
+ font-weight: 600;
+ color: #b03a2e;
+ }
+
+ ul {
+ margin: 0;
+ padding-left: 18px;
+ }
+
+ li {
+ font-size: 12px;
+ line-height: 1.9;
+ color: #8a5a50;
+ }
+}
+
+.imp-ok-tip {
+ margin: 0;
+ font-size: 13px;
+ color: #3f7d5c;
+}
+
.special-tag {
margin-right: 6px;
- background: var(--brand-gold-deep);
- border-color: var(--brand-gold-deep);
+ background: var(--brand-primary);
+ border-color: var(--brand-primary);
color: #fff;
}