Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dwsproject
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dws
dwsproject
Commits
78a4a8b1
Commit
78a4a8b1
authored
Jul 11, 2025
by
guibin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新安灯数据看板
parent
be33b028
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
tht_project/controllers/controllers.py
+8
-2
tht_project/static/html/abnormal_alarm/view/index.html
+0
-0
No files found.
tht_project/controllers/controllers.py
View file @
78a4a8b1
...
@@ -7,10 +7,16 @@ import math
...
@@ -7,10 +7,16 @@ import math
from
datetime
import
datetime
,
time
from
datetime
import
datetime
,
time
from
jinja2
import
Environment
,
FileSystemLoader
from
jinja2
import
Environment
,
FileSystemLoader
BASE_DIR
=
os
.
path
.
dirname
(
os
.
path
.
dirname
(
__file__
))
BASE_DIR
=
os
.
path
.
dirname
(
os
.
path
.
dirname
(
__file__
))
templateloader
=
FileSystemLoader
(
searchpath
=
BASE_DIR
+
"/static
/src/view
"
)
templateloader
=
FileSystemLoader
(
searchpath
=
BASE_DIR
+
"/static"
)
env
=
Environment
(
loader
=
templateloader
)
env
=
Environment
(
loader
=
templateloader
)
class
ThtProject
(
http
.
Controller
):
class
ThtProject
(
http
.
Controller
):
@http.route
(
'/roke/abnormal_alarm/census'
,
type
=
'http'
,
auth
=
'public'
,
csrf
=
False
,
cors
=
"*"
)
def
roke_index_demo_module
(
self
,
**
kwargs
):
template
=
env
.
get_template
(
'html/abnormal_alarm/view/index.html'
)
html
=
template
.
render
({})
return
html
@http.route
(
'/tht/get/equipment/working_time'
,
type
=
'json'
,
auth
=
"none"
,
csrf
=
False
,
cors
=
'*'
)
@http.route
(
'/tht/get/equipment/working_time'
,
type
=
'json'
,
auth
=
"none"
,
csrf
=
False
,
cors
=
'*'
)
def
get_equipment_working_time
(
self
,
**
kwargs
):
def
get_equipment_working_time
(
self
,
**
kwargs
):
"""获取车间工作时间"""
"""获取车间工作时间"""
...
@@ -54,7 +60,7 @@ class RokeMesThreeColourLightExt(RokeMesThreeColourLight):
...
@@ -54,7 +60,7 @@ class RokeMesThreeColourLightExt(RokeMesThreeColourLight):
"override"
:
True
# 添加额外字段
"override"
:
True
# 添加额外字段
}
}
}
}
template
=
env
.
get_template
(
'equipment_status.html'
)
template
=
env
.
get_template
(
'
src/view/
equipment_status.html'
)
return
template
.
render
(
data
)
return
template
.
render
(
data
)
@http.route
(
'/roke/equipment/search'
,
type
=
'json'
,
methods
=
[
'POST'
,
'OPTIONS'
],
auth
=
"none"
,
csrf
=
False
,
@http.route
(
'/roke/equipment/search'
,
type
=
'json'
,
methods
=
[
'POST'
,
'OPTIONS'
],
auth
=
"none"
,
csrf
=
False
,
...
...
tht_project/static/html/abnormal_alarm/view/index.html
0 → 100644
View file @
78a4a8b1
This diff is collapsed.
Click to expand it.
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