Files
vps_web/templates/admin/import.html
ddrwode 3a61598b59 哈哈
2026-02-09 14:18:42 +08:00

38 lines
1.6 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>导入 Excel - 后台</title>
<link rel="stylesheet" href="/static/css/style.css">
<link rel="stylesheet" href="/static/css/admin.css">
</head>
<body class="admin-page">
<header class="admin-header">
<h1>导入 Excel全量</h1>
<nav>
<a href="{{ url_for('admin_dashboard') }}">返回总览</a>
<a href="{{ url_for('admin_export_excel') }}">导出 Excel</a>
<a href="{{ url_for('index') }}">查看前台</a>
<a href="{{ url_for('admin_logout') }}">退出</a>
</nav>
</header>
<main class="admin-main">
<p class="hint">上传与导出格式一致的 .xlsx系统会与现有数据比对<strong>仅将「厂商+配置+价格」在库中不存在的行</strong>列为待确认;确认后才会写入数据库并展示。</p>
{% if error %}
<p class="error">{{ error }}</p>
{% endif %}
<form method="post" enctype="multipart/form-data" class="admin-form">
<div class="form-group">
<label for="file">选择 .xlsx 文件</label>
<input type="file" id="file" name="file" accept=".xlsx" required>
</div>
<div class="form-actions">
<button type="submit">上传并预览待新增</button>
<a href="{{ url_for('admin_dashboard') }}" class="btn-cancel">取消</a>
</div>
</form>
</main>
</body>
</html>