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 24605b34
authored
Jul 08, 2026
by
江名洋
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix: 修正模板静态资源及导航链接路径
1 parent
e05eff48
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
31 additions
and
32 deletions
__pycache__/main.cpython-313.pyc
app/templates/analysis.html
app/templates/dw.html
app/templates/harmony.html
app/templates/ods.html
main.py
__pycache__/main.cpython-313.pyc
View file @
24605b3
No preview for this file type
app/templates/analysis.html
View file @
24605b3
...
@@ -4,17 +4,17 @@
...
@@ -4,17 +4,17 @@
<meta
charset=
"UTF-8"
>
<meta
charset=
"UTF-8"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
>
<title>
问界生态系数分析 - 问界门店运营数据分析平台
</title>
<title>
问界生态系数分析 - 问界门店运营数据分析平台
</title>
<link
rel=
"stylesheet"
href=
".
.
/static/css/style.css"
>
<link
rel=
"stylesheet"
href=
"./static/css/style.css"
>
</head>
</head>
<body>
<body>
<header>
<header>
<div
class=
"logo"
>
问界运营分析平台
</div>
<div
class=
"logo"
>
问界运营分析平台
</div>
<nav
class=
"nav-links"
>
<nav
class=
"nav-links"
>
<a
class=
"nav-item"
href=
".
.
/"
>
首页
</a>
<a
class=
"nav-item"
href=
"./"
>
首页
</a>
<a
class=
"nav-item"
href=
".
.
/ods"
>
ODS 同步任务
</a>
<a
class=
"nav-item"
href=
"./ods"
>
ODS 同步任务
</a>
<a
class=
"nav-item"
href=
".
.
/dw"
>
DWS/DWM/DWA 任务
</a>
<a
class=
"nav-item"
href=
"./dw"
>
DWS/DWM/DWA 任务
</a>
<a
class=
"nav-item active"
href=
".
.
/analysis"
>
问界生态系数分析
</a>
<a
class=
"nav-item active"
href=
"./analysis"
>
问界生态系数分析
</a>
<a
class=
"nav-item"
href=
".
.
/harmony"
>
鸿蒙生态分析
</a>
<a
class=
"nav-item"
href=
"./harmony"
>
鸿蒙生态分析
</a>
</nav>
</nav>
<div
class=
"user-info"
>
管理员
</div>
<div
class=
"user-info"
>
管理员
</div>
</header>
</header>
...
@@ -36,7 +36,7 @@
...
@@ -36,7 +36,7 @@
<span
style=
"font-size:16px;"
>
🏪
</span>
<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>
</div>
</div>
<a
href=
".
.
/api/analysis/template/store"
style=
"font-size:12px; color:#1890ff; text-decoration:none; white-space:nowrap;"
>
📥
下载模板
</a>
<a
href=
"./api/analysis/template/store"
style=
"font-size:12px; color:#1890ff; text-decoration:none; white-space:nowrap;"
>
📥
下载模板
</a>
</div>
</div>
<!-- 步骤2: 生态主机厂数据 -->
<!-- 步骤2: 生态主机厂数据 -->
...
@@ -79,7 +79,7 @@
...
@@ -79,7 +79,7 @@
<div
id=
"analysis-result"
style=
"display:none; background: #f6ffed; border: 1px solid #b7eb8f; padding: 20px; border-radius: 8px; text-align: center;"
>
<div
id=
"analysis-result"
style=
"display:none; background: #f6ffed; border: 1px solid #b7eb8f; padding: 20px; border-radius: 8px; text-align: center;"
>
<h3
style=
"color:#52c41a; margin:0 0 10px;"
>
✅
报表生成成功
</h3>
<h3
style=
"color:#52c41a; margin:0 0 10px;"
>
✅
报表生成成功
</h3>
<div
id=
"analysis-result-info"
style=
"font-size:13px; color:#666; margin-bottom:15px;"
></div>
<div
id=
"analysis-result-info"
style=
"font-size:13px; color:#666; margin-bottom:15px;"
></div>
<a
id=
"btn-download-report"
href=
".
.
/api/analysis/download"
<a
id=
"btn-download-report"
href=
"./api/analysis/download"
style=
"display:inline-block; padding: 10px 32px; background: #52c41a; color: white; border: none; border-radius: 4px; font-size: 14px; text-decoration: none; cursor: pointer;"
>
style=
"display:inline-block; padding: 10px 32px; background: #52c41a; color: white; border: none; border-radius: 4px; font-size: 14px; text-decoration: none; cursor: pointer;"
>
📥
下载分析报表
📥
下载分析报表
</a>
</a>
...
...
app/templates/dw.html
View file @
24605b3
...
@@ -4,17 +4,17 @@
...
@@ -4,17 +4,17 @@
<meta
charset=
"UTF-8"
>
<meta
charset=
"UTF-8"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
>
<title>
DWS/DWM/DWA 任务 - 问界门店运营数据分析平台
</title>
<title>
DWS/DWM/DWA 任务 - 问界门店运营数据分析平台
</title>
<link
rel=
"stylesheet"
href=
".
.
/static/css/style.css"
>
<link
rel=
"stylesheet"
href=
"./static/css/style.css"
>
</head>
</head>
<body>
<body>
<header>
<header>
<div
class=
"logo"
>
问界运营分析平台
</div>
<div
class=
"logo"
>
问界运营分析平台
</div>
<nav
class=
"nav-links"
>
<nav
class=
"nav-links"
>
<a
class=
"nav-item"
href=
".
.
/"
>
首页
</a>
<a
class=
"nav-item"
href=
"./"
>
首页
</a>
<a
class=
"nav-item"
href=
".
.
/ods"
>
ODS 同步任务
</a>
<a
class=
"nav-item"
href=
"./ods"
>
ODS 同步任务
</a>
<a
class=
"nav-item active"
href=
".
.
/dw"
>
DWS/DWM/DWA 任务
</a>
<a
class=
"nav-item active"
href=
"./dw"
>
DWS/DWM/DWA 任务
</a>
<a
class=
"nav-item"
href=
".
.
/analysis"
>
问界生态系数分析
</a>
<a
class=
"nav-item"
href=
"./analysis"
>
问界生态系数分析
</a>
<a
class=
"nav-item"
href=
".
.
/harmony"
>
鸿蒙生态分析
</a>
<a
class=
"nav-item"
href=
"./harmony"
>
鸿蒙生态分析
</a>
</nav>
</nav>
<div
class=
"user-info"
>
管理员
</div>
<div
class=
"user-info"
>
管理员
</div>
</header>
</header>
...
@@ -95,7 +95,7 @@
...
@@ -95,7 +95,7 @@
</div>
</div>
<script>
var
APP_ROOT
=
'..'
;
</script>
<script>
var
APP_ROOT
=
'..'
;
</script>
<script
src=
".
.
/static/js/common.js"
></script>
<script
src=
"./static/js/common.js"
></script>
<script>
<script>
const
DW_FILTER
=
item
=>
item
.
task_id
.
includes
(
'sync'
);
const
DW_FILTER
=
item
=>
item
.
task_id
.
includes
(
'sync'
);
...
...
app/templates/harmony.html
View file @
24605b3
...
@@ -4,17 +4,17 @@
...
@@ -4,17 +4,17 @@
<meta
charset=
"UTF-8"
>
<meta
charset=
"UTF-8"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
>
<title>
鸿蒙生态分析 - 问界门店运营数据分析平台
</title>
<title>
鸿蒙生态分析 - 问界门店运营数据分析平台
</title>
<link
rel=
"stylesheet"
href=
".
.
/static/css/style.css"
>
<link
rel=
"stylesheet"
href=
"./static/css/style.css"
>
</head>
</head>
<body>
<body>
<header>
<header>
<div
class=
"logo"
>
问界运营分析平台
</div>
<div
class=
"logo"
>
问界运营分析平台
</div>
<nav
class=
"nav-links"
>
<nav
class=
"nav-links"
>
<a
class=
"nav-item"
href=
".
.
/"
>
首页
</a>
<a
class=
"nav-item"
href=
"./"
>
首页
</a>
<a
class=
"nav-item"
href=
".
.
/ods"
>
ODS 同步任务
</a>
<a
class=
"nav-item"
href=
"./ods"
>
ODS 同步任务
</a>
<a
class=
"nav-item"
href=
".
.
/dw"
>
DWS/DWM/DWA 任务
</a>
<a
class=
"nav-item"
href=
"./dw"
>
DWS/DWM/DWA 任务
</a>
<a
class=
"nav-item"
href=
".
.
/analysis"
>
问界生态系数分析
</a>
<a
class=
"nav-item"
href=
"./analysis"
>
问界生态系数分析
</a>
<a
class=
"nav-item active"
href=
".
.
/harmony"
>
鸿蒙生态分析
</a>
<a
class=
"nav-item active"
href=
"./harmony"
>
鸿蒙生态分析
</a>
</nav>
</nav>
<div
class=
"user-info"
>
管理员
</div>
<div
class=
"user-info"
>
管理员
</div>
</header>
</header>
...
@@ -35,7 +35,7 @@
...
@@ -35,7 +35,7 @@
<span
style=
"font-size:16px;"
>
🏪
</span>
<span
style=
"font-size:16px;"
>
🏪
</span>
<p
id=
"hm-store-file-name"
style=
"margin:0; font-size:13px; color:#999;"
>
可选:点击选择门店兜底配置文件(不选则使用系统默认模板)
</p>
<p
id=
"hm-store-file-name"
style=
"margin:0; font-size:13px; color:#999;"
>
可选:点击选择门店兜底配置文件(不选则使用系统默认模板)
</p>
</div>
</div>
<a
href=
".
.
/api/harmony/template/store"
style=
"font-size:12px; color:#1890ff; text-decoration:none; white-space:nowrap;"
>
📥
下载模板
</a>
<a
href=
"./api/harmony/template/store"
style=
"font-size:12px; color:#1890ff; text-decoration:none; white-space:nowrap;"
>
📥
下载模板
</a>
</div>
</div>
<!-- 步骤2: 上传主机厂数据 -->
<!-- 步骤2: 上传主机厂数据 -->
...
@@ -46,7 +46,7 @@
...
@@ -46,7 +46,7 @@
<span
style=
"font-size:16px;"
>
🏭
</span>
<span
style=
"font-size:16px;"
>
🏭
</span>
<p
id=
"hm-factory-file-name"
style=
"margin:0; font-size:12px; color:#999;"
>
点击选择主机厂数据(含交付数)
</p>
<p
id=
"hm-factory-file-name"
style=
"margin:0; font-size:12px; color:#999;"
>
点击选择主机厂数据(含交付数)
</p>
</div>
</div>
<a
href=
".
.
/api/harmony/template/factory"
style=
"font-size:12px; color:#1890ff; text-decoration:none; white-space:nowrap;"
>
📥
下载模板
</a>
<a
href=
"./api/harmony/template/factory"
style=
"font-size:12px; color:#1890ff; text-decoration:none; white-space:nowrap;"
>
📥
下载模板
</a>
</div>
</div>
<!-- 步骤3: 上传产值表 -->
<!-- 步骤3: 上传产值表 -->
...
...
app/templates/ods.html
View file @
24605b3
...
@@ -4,17 +4,17 @@
...
@@ -4,17 +4,17 @@
<meta
charset=
"UTF-8"
>
<meta
charset=
"UTF-8"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
>
<title>
ODS 同步任务 - 问界门店运营数据分析平台
</title>
<title>
ODS 同步任务 - 问界门店运营数据分析平台
</title>
<link
rel=
"stylesheet"
href=
".
.
/static/css/style.css"
>
<link
rel=
"stylesheet"
href=
"./static/css/style.css"
>
</head>
</head>
<body>
<body>
<header>
<header>
<div
class=
"logo"
>
问界运营分析平台
</div>
<div
class=
"logo"
>
问界运营分析平台
</div>
<nav
class=
"nav-links"
>
<nav
class=
"nav-links"
>
<a
class=
"nav-item"
href=
".
.
/"
>
首页
</a>
<a
class=
"nav-item"
href=
"./"
>
首页
</a>
<a
class=
"nav-item active"
href=
".
.
/ods"
>
ODS 同步任务
</a>
<a
class=
"nav-item active"
href=
"./ods"
>
ODS 同步任务
</a>
<a
class=
"nav-item"
href=
".
.
/dw"
>
DWS/DWM/DWA 任务
</a>
<a
class=
"nav-item"
href=
"./dw"
>
DWS/DWM/DWA 任务
</a>
<a
class=
"nav-item"
href=
".
.
/analysis"
>
问界生态系数分析
</a>
<a
class=
"nav-item"
href=
"./analysis"
>
问界生态系数分析
</a>
<a
class=
"nav-item"
href=
".
.
/harmony"
>
鸿蒙生态分析
</a>
<a
class=
"nav-item"
href=
"./harmony"
>
鸿蒙生态分析
</a>
</nav>
</nav>
<div
class=
"user-info"
>
管理员
</div>
<div
class=
"user-info"
>
管理员
</div>
</header>
</header>
...
@@ -78,7 +78,7 @@
...
@@ -78,7 +78,7 @@
</div>
</div>
<script>
var
APP_ROOT
=
'..'
;
</script>
<script>
var
APP_ROOT
=
'..'
;
</script>
<script
src=
".
.
/static/js/common.js"
></script>
<script
src=
"./static/js/common.js"
></script>
<script>
<script>
const
ODS_FILTER
=
item
=>
item
.
task_id
.
includes
(
'ods'
);
const
ODS_FILTER
=
item
=>
item
.
task_id
.
includes
(
'ods'
);
...
...
main.py
View file @
24605b3
...
@@ -45,11 +45,10 @@ app = FastAPI(
...
@@ -45,11 +45,10 @@ app = FastAPI(
description
=
"支持 ODS/DWS/DWM/DWA 各层数据同步任务及分析模版展示"
,
description
=
"支持 ODS/DWS/DWM/DWA 各层数据同步任务及分析模版展示"
,
version
=
"1.0.0"
,
version
=
"1.0.0"
,
lifespan
=
lifespan
,
lifespan
=
lifespan
,
root_path
=
"/daw"
,
)
)
# 挂载静态文件
# 挂载静态文件
app
.
mount
(
"/static"
,
StaticFiles
(
directory
=
os
.
path
.
join
(
BASE_DIR
,
"app/static"
)),
name
=
"static"
)
app
.
mount
(
"/static"
,
StaticFiles
(
directory
=
os
.
path
.
join
(
BASE_DIR
,
"app/static"
)),
name
=
"
./
static"
)
# 配置模板引擎
# 配置模板引擎
templates
=
Jinja2Templates
(
directory
=
os
.
path
.
join
(
BASE_DIR
,
"app/templates"
))
templates
=
Jinja2Templates
(
directory
=
os
.
path
.
join
(
BASE_DIR
,
"app/templates"
))
...
...
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