Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
thermal-control-system
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
luwei
thermal-control-system
Commits
4601d53b
Commit
4601d53b
authored
May 10, 2026
by
luwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
d8561934
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
33 additions
and
25 deletions
+33
-25
package_management_service.py
backend/app/services/package_management_service.py
+18
-19
pkg_12_20260510191259513395.csv
backend/uploads/packages/pkg_12_20260510191259513395.csv
+11
-0
ModelEvaluation-D27Aus9X.css
frontend/dist/assets/ModelEvaluation-D27Aus9X.css
+0
-1
ModelList-CHRYisJa.css
frontend/dist/assets/ModelList-CHRYisJa.css
+0
-1
index.html
frontend/dist/index.html
+4
-4
No files found.
backend/app/services/package_management_service.py
View file @
4601d53b
...
...
@@ -441,26 +441,25 @@ class PackageManagementService:
if
not
pkg
:
raise
ValueError
(
'数据包不存在'
)
stored_clean_rules
=
pkg
.
clean_rules
stored_row_start
=
pkg
.
row_start
stored_row_end
=
pkg
.
row_end
pf_rows
=
(
session
.
query
(
DataPackageFile
)
.
filter
(
DataPackageFile
.
package_id
==
db_id
)
.
order_by
(
DataPackageFile
.
sort_order
.
asc
())
.
all
()
)
file_ids
=
[
pf
.
file_id
for
pf
in
pf_rows
]
files
=
session
.
query
(
DataFile
)
.
filter
(
DataFile
.
id
.
in_
(
file_ids
))
.
all
()
file_map
=
{
f
.
id
:
f
for
f
in
files
}
if
not
(
pkg
.
stored_name
or
pkg
.
file_path
):
raise
ValueError
(
'数据包内容文件不存在'
)
return
self
.
_merge_records
(
file_ids
,
file_map
,
limit
,
clean_rules
=
stored_clean_rules
,
smooth
=
stored_clean_rules
.
get
(
'smooth'
)
if
stored_clean_rules
else
None
,
row_start
=
stored_row_start
,
row_end
=
stored_row_end
,
)
normalized
=
(
pkg
.
file_path
or
''
)
.
replace
(
'
\\
'
,
'/'
)
if
'/app/uploads/packages/'
in
normalized
:
file_name
=
normalized
.
split
(
'/app/uploads/packages/'
,
1
)[
1
]
file_name
=
Path
(
file_name
)
.
name
else
:
file_name
=
pkg
.
stored_name
or
Path
(
normalized
)
.
name
pkg_path
=
self
.
_dm
.
_upload_dir
/
'packages'
/
file_name
if
not
pkg_path
.
exists
():
raise
ValueError
(
'数据包内容文件不存在'
)
records
,
total_count
=
self
.
_dm
.
_read_records
(
pkg_path
,
limit
=
limit
)
return
{
'records'
:
records
,
'count'
:
total_count
,
}
def
preview_records
(
self
,
...
...
backend/uploads/packages/pkg_12_20260510191259513395.csv
0 → 100644
View file @
4601d53b
time,current,voltage,set_temperature,actual_temperature
2026/1/22 9:04,0.0,0.09,19.06,19.06
2026/1/22 9:05,0.0,0.09,19.06,19.053
2026/1/22 9:05,0.0,0.09,19.06,19.047
2026/1/22 9:05,0.0,0.09,19.06,19.072
2026/1/22 9:05,0.0,0.09,19.06,19.061
2026/1/22 9:05,0.0,0.09,19.06,19.082
2026/1/22 9:05,0.0,0.09,19.06,19.064
2026/1/22 9:05,0.0,0.09,19.06,19.062
2026/1/22 9:05,0.0,0.09,19.06,19.059
2026/1/22 9:05,0.0,0.09,19.06,19.067
frontend/dist/assets/ModelEvaluation-D27Aus9X.css
deleted
100644 → 0
View file @
d8561934
.eval-page
[
data-v-ec2828d6
]
{
flex-direction
:
column
;
gap
:
12px
;
height
:
100%
;
display
:
flex
;
overflow-y
:
auto
}
.config-card
[
data-v-ec2828d6
],
.records-card
[
data-v-ec2828d6
]
{
flex-shrink
:
0
}
.config-card
[
data-v-ec2828d6
]
.el-card__header
,
.records-card
[
data-v-ec2828d6
]
.el-card__header
{
border-bottom
:
1px
solid
#e8edf3
;
padding
:
12px
20px
}
.config-card
[
data-v-ec2828d6
]
.el-card__body
,
.records-card
[
data-v-ec2828d6
]
.el-card__body
{
padding
:
16px
20px
}
.records-card
[
data-v-ec2828d6
]
{
flex
:
1
;
min-height
:
200px
}
.card-title
[
data-v-ec2828d6
]
{
color
:
#0f172a
;
font-size
:
14px
;
font-weight
:
600
}
.card-header-row
[
data-v-ec2828d6
]
{
justify-content
:
space-between
;
align-items
:
center
;
display
:
flex
}
.eval-form
[
data-v-ec2828d6
]
.el-form-item
{
margin-bottom
:
0
;
margin-right
:
16px
}
.eval-loading
[
data-v-ec2828d6
]
{
color
:
#64748b
;
align-items
:
center
;
gap
:
10px
;
padding
:
24px
0
8px
;
font-size
:
14px
;
display
:
flex
}
.metrics-row
[
data-v-ec2828d6
]
{
flex-wrap
:
wrap
;
gap
:
10px
;
padding
:
16px
0
12px
;
display
:
flex
}
.metric-chip
[
data-v-ec2828d6
]
{
background
:
#f8fafc
;
border
:
1px
solid
#e2e8f0
;
border-radius
:
8px
;
flex-direction
:
column
;
align-items
:
flex-start
;
gap
:
2px
;
min-width
:
100px
;
padding
:
8px
16px
;
display
:
flex
}
.metric-label
[
data-v-ec2828d6
]
{
color
:
#94a3b8
;
text-transform
:
uppercase
;
letter-spacing
:
.5px
;
font-size
:
11px
;
font-weight
:
500
}
.metric-value
[
data-v-ec2828d6
]
{
color
:
#0f172a
;
font-size
:
15px
;
font-weight
:
600
}
.metric-cell
[
data-v-ec2828d6
]
{
color
:
#0f766e
;
font-size
:
13px
;
font-weight
:
500
}
frontend/dist/assets/ModelList-CHRYisJa.css
deleted
100644 → 0
View file @
d8561934
.model-list-page
[
data-v-c204d828
]
{
background
:
var
(
--bg-page
);
height
:
100%
;
overflow
:
hidden
}
.list-card
[
data-v-c204d828
]
{
border
:
1px
solid
var
(
--border-color
);
border-radius
:
4px
;
height
:
100%
;
overflow
:
hidden
;
box-shadow
:
var
(
--shadow-card
)
!important
}
.list-card
[
data-v-c204d828
]
.el-card__header
{
border-bottom
:
1px
solid
var
(
--border-color
);
background
:
#f7f8fa
;
align-items
:
center
;
height
:
44px
;
padding
:
0
20px
;
display
:
flex
}
.list-card
[
data-v-c204d828
]
.el-card__body
{
height
:
calc
(
100%
-
44px
);
padding
:
16px
20px
;
overflow
:
hidden
}
.card-title
[
data-v-c204d828
]
{
color
:
var
(
--text-primary
);
font-size
:
14px
;
font-weight
:
600
}
.card-header-row
[
data-v-c204d828
]
{
justify-content
:
space-between
;
align-items
:
center
;
width
:
100%
;
display
:
flex
}
.params-text
[
data-v-c204d828
],
.loss-text
[
data-v-c204d828
]
{
color
:
var
(
--text-secondary
);
white-space
:
nowrap
;
text-overflow
:
ellipsis
;
font-size
:
12px
;
display
:
block
;
overflow
:
hidden
}
.loss-text
[
data-v-c204d828
]
{
color
:
var
(
--primary
);
font-weight
:
500
}
frontend/dist/index.html
View file @
4601d53b
...
...
@@ -5,10 +5,10 @@
<link
rel=
"icon"
href=
"/favicon.ico"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
>
<title>
热实验温度控制系统
</title>
<script
type=
"module"
crossorigin
src=
"/assets/index-B
uprtPJ
P.js"
></script>
<link
rel=
"modulepreload"
crossorigin
href=
"/assets/_plugin-vue_export-helper-
BeNqMkde
.js"
>
<link
rel=
"modulepreload"
crossorigin
href=
"/assets/vue-router-D
ixiVDJx
.js"
>
<link
rel=
"stylesheet"
crossorigin
href=
"/assets/index-
pfQxyObg
.css"
>
<script
type=
"module"
crossorigin
src=
"/assets/index-B
0hY3Zm
P.js"
></script>
<link
rel=
"modulepreload"
crossorigin
href=
"/assets/_plugin-vue_export-helper-
Cfb64gbu
.js"
>
<link
rel=
"modulepreload"
crossorigin
href=
"/assets/vue-router-D
C92Hzt7
.js"
>
<link
rel=
"stylesheet"
crossorigin
href=
"/assets/index-
CW-Nj4Bz
.css"
>
</head>
<body>
<div
id=
"app"
></div>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment