Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
new-socketemulator
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
李远洪
new-socketemulator
Commits
3c3c3047
Commit
3c3c3047
authored
Apr 23, 2020
by
liyuanhong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化了新车机地理位置消息界面
parent
cfee6b52
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
418 additions
and
135 deletions
+418
-135
lib/protocol/message/data/SaloonCarOBD_data.py
lib/protocol/message/data/SaloonCarOBD_data.py
+116
-64
templates/messageTools/message/heartBeat_msg_page.html
templates/messageTools/message/heartBeat_msg_page.html
+1
-1
templates/messageTools/message/location_msg_page.html
templates/messageTools/message/location_msg_page.html
+272
-58
templates/protocolTools/report/M_carSimulater_page.html
templates/protocolTools/report/M_carSimulater_page.html
+29
-12
No files found.
lib/protocol/message/data/SaloonCarOBD_data.py
View file @
3c3c3047
This diff is collapsed.
Click to expand it.
templates/messageTools/message/heartBeat_msg_page.html
View file @
3c3c3047
...
...
@@ -37,7 +37,7 @@
<li
role=
"presentation"
><a
id=
"terminalVersionInfoUpload_msg"
{%
if
arg.path[2]=
="terminalVersionInfoUpload_msg_page"
%}
class=
"link-tab"
{%
endif
%}
onclick=
"messageManTab(this)"
>
终端版本信息主动上报
</b></a></li>
<li
role=
"presentation"
><a
id=
"dataUpstreamTransport_msg"
{%
if
arg.path[2]=
="dataUpstreamTransport_msg_page"
or
arg.path[2]=
="dataUpstreamTransport_msg_f2_page"
or
arg.path[2]=
="dataUpstreamTransport_msg_f3_page"
or
arg.path[2]=
="dataUpstreamTransport_msg_f4_page"
%}
class=
"link-tab"
{%
endif
%}
onclick=
"messageManTab(this)"
>
数据上行透传
</b></a></li>
<li
role=
"presentation"
><a
id=
"location_msg"
{%
if
arg.path[2]=
="location_msg_page"
%}
class=
"link-tab"
{%
endif
%}
onclick=
"messageManTab(this)"
>
位置信息汇报
</b></a></li>
<li
role=
"presentation"
><a
id=
"style_index2"
{%
if
arg.path[2]=
="2"
%}
class=
"link-tab"
{%
endif
%}
onclick=
"messageManTab(this)"
>
其他报文
</b></a></li
>
<!-- <li role="presentation"><a id="style_index2" {% if arg.path[2]=="2" %} class="link-tab" {% endif %} onclick="messageManTab(this)">其他报文</b></a></li>--
>
</ul>
{% endblock %}
{% block content_1 %}
...
...
templates/messageTools/message/location_msg_page.html
View file @
3c3c3047
This diff is collapsed.
Click to expand it.
templates/protocolTools/report/M_carSimulater_page.html
View file @
3c3c3047
...
...
@@ -47,7 +47,13 @@
<div
style=
"width:100%;padding-bottom:10px;border-bottom: 1px solid #eee;"
>
<h4>
点击登录按钮发送报文:
</h4>
<div
style=
"display: block; width: 100%; border-width: 1px; border-style: solid; border-color: darkgray; border-radius: 10px; padding: 2px; margin-top: 5px;"
>
<h5><b>
登录报文数据:
</b></h5>
<h5><b>
登录报文数据:
</b>
<span
style=
"border-width:1px;border-style:solid;border-color:darkgray;border-radius:10px;padding:1px 10px;"
>
<label><input
name=
"login"
type=
"radio"
value=
"0"
checked=
"checked"
onclick=
"isShowLoginArea(this)"
/>
隐藏
</label>
<label
style=
"margin-left:10px;"
><input
name=
"login"
type=
"radio"
value=
"1"
onclick=
"isShowLoginArea(this)"
/>
显示
</label>
</span>
</h5>
<div
id=
"login_area"
style=
"display:none;"
>
<ul
class=
"protocol_content"
style=
"padding:0px;"
>
<li
style=
"width:320px;"
><label>
CPU-ID:
</label><input
style=
"width:220px;"
id=
"cpuId"
type=
"text"
class=
"form-control"
value=
"CPU-ID001122334455667788"
></li>
<li><label
style=
"word-break:break-all;font-size:12px;"
>
SIM卡IMSI号:
</label><input
id=
"imsi"
type=
"text"
class=
"form-control"
value=
"IMSI13145678902"
></li>
...
...
@@ -62,6 +68,7 @@
</ul>
</div>
</div>
</div>
<div
style=
"display: block; width: 100%; border-width: 1px; border-style: solid; border-color: darkgray; border-radius: 10px; padding: 2px; margin-top: 5px;"
>
<h5><b>
GPS行驶轨迹设置:
</b></h5>
<div
class=
"input-group"
style=
"width:380px;padding-bottom:10px;margin-left:10px;display:inline;"
>
...
...
@@ -279,6 +286,16 @@ function sendjson(data,url){
}
});
}
//控制登录数据区域的显示与隐藏
function
isShowLoginArea
(
e
){
var
value
=
$
(
e
).
val
()
if
(
value
==
"
0
"
){
$
(
"
#login_area
"
).
css
(
"
display
"
,
"
none
"
)
}
else
{
$
(
"
#login_area
"
).
css
(
"
display
"
,
"
block
"
)
}
}
///////////////////////////////// websocket 代码开始 /////////////////////////////////
client
=
"
0
"
ws
=
null
;
...
...
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