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
5d8b76d7
Commit
5d8b76d7
authored
Jul 25, 2025
by
nningxx
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://git.rokedata.com/dws/dwsproject
parents
3d6611a7
15f1b20f
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
2 deletions
+11
-2
jnzg_project/static/src/view/equipment_status_jnzg.html
+0
-0
tht_project/controllers/controllers.py
+11
-2
tht_project/static/html/abnormal_alarm/view/index.html
+0
-0
No files found.
jnzg_project/static/src/view/equipment_status_jnzg.html
View file @
5d8b76d7
This diff is collapsed.
Click to expand it.
tht_project/controllers/controllers.py
View file @
5d8b76d7
...
@@ -2,12 +2,13 @@
...
@@ -2,12 +2,13 @@
from
odoo
import
http
from
odoo
import
http
from
odoo.http
import
request
from
odoo.http
import
request
from
odoo.addons.roke_mes_three_colour_light.controller.main
import
RokeMesThreeColourLight
from
odoo.addons.roke_mes_three_colour_light.controller.main
import
RokeMesThreeColourLight
from
odoo.addons.roke_workstation_api.controllers.abnormal
import
RokeWorkstationAbnormal
import
os
import
os
import
math
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
):
...
@@ -54,7 +55,7 @@ class RokeMesThreeColourLightExt(RokeMesThreeColourLight):
...
@@ -54,7 +55,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
,
...
@@ -113,3 +114,11 @@ class RokeMesThreeColourLightExt(RokeMesThreeColourLight):
...
@@ -113,3 +114,11 @@ class RokeMesThreeColourLightExt(RokeMesThreeColourLight):
'code'
:
200
,
'code'
:
200
,
'data'
:
equipment_list
'data'
:
equipment_list
}
}
class
RokeWorkstationAbnormalExt
(
RokeWorkstationAbnormal
):
@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
tht_project/static/html/abnormal_alarm/view/index.html
0 → 100644
View file @
5d8b76d7
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