38 lines
1.6 KiB
HTML
38 lines
1.6 KiB
HTML
<!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>和<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>
|