Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
data_report
/
daw
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 20e6a81d
authored
Jun 26, 2026
by
江名洋
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
style(ui): 压缩数据分析步骤布局并兼容旧CPU
1 parent
c5a86c74
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
26 deletions
app/api/__pycache__/endpoints.cpython-313.pyc
app/templates/index.html
docker/Dockerfile
requirements.txt
app/api/__pycache__/endpoints.cpython-313.pyc
View file @
20e6a81
No preview for this file type
app/templates/index.html
View file @
20e6a81
...
@@ -95,48 +95,42 @@
...
@@ -95,48 +95,42 @@
<!-- 数据分析部分 -->
<!-- 数据分析部分 -->
<div
id=
"data-analysis-section"
style=
"display:none;"
>
<div
id=
"data-analysis-section"
style=
"display:none;"
>
<div
style=
"display: flex; flex-direction: column; gap:
2
0px; margin-bottom: 20px;"
>
<div
style=
"display: flex; flex-direction: column; gap:
1
0px; margin-bottom: 20px;"
>
<!-- 步骤1: 上传门店列表 -->
<!-- 步骤1: 上传门店列表 -->
<div
style=
"background: #f8f9fa; padding:
20px; border-radius: 8px; border: 1px solid #e8e8e8
;"
>
<div
style=
"background: #f8f9fa; padding:
8px 16px; border-radius: 6px; border: 1px solid #e8e8e8; display: flex; align-items: center; gap: 16px
;"
>
<
h3
style=
"margin:0 0 12px; font-size:16px; color:#333;"
>
步骤1: 上传门店列表
</h3
>
<
span
style=
"font-size:14px; font-weight:600; color:#333; white-space:nowrap;"
>
步骤1: 门店列表
</span
>
<div
id=
"store-drop-zone"
style=
"
border: 1px dashed #d9d9d9; padding: 20px; text-align: center; border-radius: 4px; cursor: pointer; background: #fff
;"
>
<div
id=
"store-drop-zone"
style=
"
flex:1; border: 1px dashed #d9d9d9; padding: 6px 12px; border-radius: 4px; cursor: pointer; background: #fff; display: flex; align-items: center; gap: 8px
;"
>
<input
type=
"file"
id=
"store-file-input"
style=
"display:none;"
accept=
".xlsx,.xls"
>
<input
type=
"file"
id=
"store-file-input"
style=
"display:none;"
accept=
".xlsx,.xls"
>
<
div
style=
"font-size:30px; margin-bottom:8px;"
>
🏪
</div
>
<
span
style=
"font-size:16px;"
>
🏪
</span
>
<p
id=
"store-file-name"
style=
"margin:0; font-size:13px; color:#999;"
>
点击选择门店列表文件
</p>
<p
id=
"store-file-name"
style=
"margin:0; font-size:13px; color:#999;"
>
点击选择门店列表文件
</p>
<a
href=
"api/analysis/template/store"
style=
"font-size:12px; color:#1890ff; text-decoration:none; margin-top:8px; display:inline-block;"
>
📥 下载门店列表模板
</a>
</div>
</div>
<a
href=
"api/analysis/template/store"
style=
"font-size:12px; color:#1890ff; text-decoration:none; white-space:nowrap;"
>
📥 下载模板
</a>
</div>
</div>
<!-- 步骤2: 生态主机厂数据(26日周期) -->
<!-- 步骤2: 生态主机厂数据(26日周期) -->
<div
style=
"background: #f8f9fa; padding:
20px; border-radius: 8px; border: 1px solid #e8e8e8
;"
>
<div
style=
"background: #f8f9fa; padding:
8px 16px; border-radius: 6px; border: 1px solid #e8e8e8; display: flex; align-items: center; gap: 12px
;"
>
<
h3
style=
"margin:0 0 12px; font-size:16px; color:#333;"
>
步骤2: 主机厂数据-生态(26日)
</h3
>
<
span
style=
"font-size:14px; font-weight:600; color:#333; white-space:nowrap;"
>
步骤2: 生态(26日)
</span
>
<div
id=
"ecology-drop-zone"
style=
"border: 1px dashed #d9d9d9; padding:
14px; text-align: center; border-radius: 4px; cursor: pointer; background: #fff; margin-bottom: 12
px;"
>
<div
id=
"ecology-drop-zone"
style=
"border: 1px dashed #d9d9d9; padding:
6px 12px; border-radius: 4px; cursor: pointer; background: #fff; display: flex; align-items: center; gap: 8
px;"
>
<input
type=
"file"
id=
"ecology-factory-input"
style=
"display:none;"
accept=
".xlsx,.xls"
>
<input
type=
"file"
id=
"ecology-factory-input"
style=
"display:none;"
accept=
".xlsx,.xls"
>
<
div
style=
"font-size:24px; margin-bottom:4px;"
>
🏭
</div
>
<
span
style=
"font-size:16px;"
>
🏭
</span
>
<p
id=
"ecology-file-name"
style=
"margin:0; font-size:12px; color:#999;"
>
点击选择生态主机厂数据
</p>
<p
id=
"ecology-file-name"
style=
"margin:0; font-size:12px; color:#999;"
>
点击选择生态主机厂数据
</p>
</div>
</div>
<div
style=
"display: flex; gap: 8px; align-items: center;"
>
<input
type=
"date"
id=
"ecology-start-date"
style=
"width:130px; padding: 4px 6px; border: 1px solid #d9d9d9; border-radius: 4px; font-size:12px;"
placeholder=
"开始"
>
<input
type=
"date"
id=
"ecology-start-date"
style=
"flex:1; padding: 5px; border: 1px solid #d9d9d9; border-radius: 4px; font-size:12px;"
placeholder=
"开始"
>
<span
style=
"color:#999; font-size:12px;"
>
~
</span>
<span
style=
"color:#999;"
>
~
</span>
<input
type=
"date"
id=
"ecology-end-date"
style=
"width:130px; padding: 4px 6px; border: 1px solid #d9d9d9; border-radius: 4px; font-size:12px;"
placeholder=
"结束"
>
<input
type=
"date"
id=
"ecology-end-date"
style=
"flex:1; padding: 5px; border: 1px solid #d9d9d9; border-radius: 4px; font-size:12px;"
placeholder=
"结束"
>
</div>
</div>
</div>
<!-- 步骤3: 自然月主机厂数据(1日周期) -->
<!-- 步骤3: 自然月主机厂数据(1日周期) -->
<div
style=
"background: #f8f9fa; padding:
20px; border-radius: 8px; border: 1px solid #e8e8e8
;"
>
<div
style=
"background: #f8f9fa; padding:
8px 16px; border-radius: 6px; border: 1px solid #e8e8e8; display: flex; align-items: center; gap: 12px
;"
>
<
h3
style=
"margin:0 0 12px; font-size:16px; color:#333;"
>
步骤3: 主机厂数据-自然月(1日)
</h3
>
<
span
style=
"font-size:14px; font-weight:600; color:#333; white-space:nowrap;"
>
步骤3: 自然月(1日)
</span
>
<div
id=
"nature-drop-zone"
style=
"border: 1px dashed #d9d9d9; padding:
14px; text-align: center; border-radius: 4px; cursor: pointer; background: #fff; margin-bottom: 12
px;"
>
<div
id=
"nature-drop-zone"
style=
"border: 1px dashed #d9d9d9; padding:
6px 12px; border-radius: 4px; cursor: pointer; background: #fff; display: flex; align-items: center; gap: 8
px;"
>
<input
type=
"file"
id=
"nature-factory-input"
style=
"display:none;"
accept=
".xlsx,.xls"
>
<input
type=
"file"
id=
"nature-factory-input"
style=
"display:none;"
accept=
".xlsx,.xls"
>
<
div
style=
"font-size:24px; margin-bottom:4px;"
>
📅
</div
>
<
span
style=
"font-size:16px;"
>
📅
</span
>
<p
id=
"nature-file-name"
style=
"margin:0; font-size:12px; color:#999;"
>
点击选择自然月主机厂数据
</p>
<p
id=
"nature-file-name"
style=
"margin:0; font-size:12px; color:#999;"
>
点击选择自然月主机厂数据
</p>
</div>
</div>
<div
style=
"display: flex; gap: 8px; align-items: center;"
>
<input
type=
"date"
id=
"nature-start-date"
style=
"width:130px; padding: 4px 6px; border: 1px solid #d9d9d9; border-radius: 4px; font-size:12px;"
placeholder=
"开始"
>
<input
type=
"date"
id=
"nature-start-date"
style=
"flex:1; padding: 5px; border: 1px solid #d9d9d9; border-radius: 4px; font-size:12px;"
placeholder=
"开始"
>
<span
style=
"color:#999; font-size:12px;"
>
~
</span>
<span
style=
"color:#999;"
>
~
</span>
<input
type=
"date"
id=
"nature-end-date"
style=
"width:130px; padding: 4px 6px; border: 1px solid #d9d9d9; border-radius: 4px; font-size:12px;"
placeholder=
"结束"
>
<input
type=
"date"
id=
"nature-end-date"
style=
"flex:1; padding: 5px; border: 1px solid #d9d9d9; border-radius: 4px; font-size:12px;"
placeholder=
"结束"
>
</div>
</div>
</div>
</div>
</div>
...
...
docker/Dockerfile
View file @
20e6a81
FROM
python:3.11-slim
FROM
python:3.11-slim
# 兼容旧 CPU 的 NumPy 环境设置
ENV
OPENBLAS_CORETYPE=Haswell
WORKDIR
/app
WORKDIR
/app
COPY requirements.txt .
COPY requirements.txt .
...
...
requirements.txt
View file @
20e6a81
...
@@ -8,6 +8,7 @@ pydantic-settings>=2.2.0
...
@@ -8,6 +8,7 @@ pydantic-settings>=2.2.0
sqlalchemy>=2.0.0
sqlalchemy>=2.0.0
pymysql>=1.1.0
pymysql>=1.1.0
pandas>=2.2.0
pandas>=2.2.0
numpy>=1.26.0,<2
openpyxl>=3.1.0
openpyxl>=3.1.0
python-dotenv>=1.0.0
python-dotenv>=1.0.0
jinja2>=3.1.0
jinja2>=3.1.0
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment