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
dec8403f
Commit
dec8403f
authored
Mar 06, 2020
by
liyuanhong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
备份提交
parent
3edd93c9
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
193 additions
and
16 deletions
+193
-16
lib/multiThread/SendMultMsgThread_m500.py
lib/multiThread/SendMultMsgThread_m500.py
+3
-4
lib/protocol/message/Location_msg.py
lib/protocol/message/Location_msg.py
+4
-4
lib/protocol/message/data/SaloonCarOBD_data.py
lib/protocol/message/data/SaloonCarOBD_data.py
+4
-4
templates/messageTools/message/location_msg_page.html
templates/messageTools/message/location_msg_page.html
+182
-4
No files found.
lib/multiThread/SendMultMsgThread_m500.py
View file @
dec8403f
...
...
@@ -18,7 +18,7 @@ class SendMultMsgThread():
self
.
msg
=
msg
self
.
timeOut
=
60
#socket超时时间
self
.
BUF_SIZE
=
1024
#接收消息缓存
self
.
threadCount
=
5
000
#并发线程数
self
.
threadCount
=
1
000
#并发线程数
self
.
totalTime
=
0
#所有线程的运行总和
self
.
threadArr
=
{}
#保存每个线程的信息
self
.
failThreadCount
=
0
#失败线程数
...
...
@@ -110,7 +110,6 @@ class SendMultMsgThread():
self
.
connectTimeoutNum
=
self
.
connectTimeoutNum
+
1
print
(
threadName
+
":"
+
"连接超时,socket断开"
)
return
while
(
endTime
-
startTime
)
<
self
.
durTime
:
msg
=
self
.
getRandomMsg
(
carId
)
try
:
...
...
@@ -203,7 +202,6 @@ class SendMultMsgThread():
print
(
"接收失败:"
+
str
(
self
.
reviceTimeoutNum
))
self
.
writeToFile
(
"../../data/threadDetailsContinuous.json"
,
self
.
threadArr
)
def
writeToFile
(
self
,
path
,
data
):
with
open
(
path
,
"w"
,
encoding
=
'utf-8'
)
as
fi
:
json
.
dump
(
data
,
fi
)
...
...
@@ -269,7 +267,8 @@ class SendMultMsgThread():
if
__name__
==
"__main__"
:
t
=
SendMultMsgThread
()
t
.
setHost
(
"10.100.12.32"
)
# t.setHost("10.100.12.32")
t
.
setHost
(
"10.100.5.251"
)
t
.
setPort
(
9008
)
# t.startThread()
t
.
startThreadContinuous
()
\ No newline at end of file
lib/protocol/message/Location_msg.py
View file @
dec8403f
...
...
@@ -174,7 +174,7 @@ class Location_msg(MessageBase):
extra_FA
=
"FA"
+
self
.
int2hexStringByBytes
(
int
(
len
(
AlarmEvent_data
()
.
generateAlarmEvent_data
())
/
2
))
+
AlarmEvent_data
()
.
generateAlarmEvent_data
()
# data = extra_01 + extra_02 + extra_11 + extra_31 + extra_EA + extra_EB + extra_FA
data
=
extra_11
+
extra_31
+
extra_EA
+
extra_EB
data
=
extra_11
+
extra_31
+
extra_EA
+
extra_EB
+
extra_FA
# data = extra_01 + extra_02 + extra_11 + extra_12 + extra_13
# data = data + extra_2A + extra_30 + extra_31 + extra_EA + extra_EB
...
...
@@ -666,10 +666,10 @@ class Location_msg(MessageBase):
# 获取状态
#######################################################
def
getStatus
(
self
):
ACCStatus
=
0
#0:ACC 关;1: ACC 开 (1)
ACCStatus
=
1
#0:ACC 关;1: ACC 开 (1)
locationStatus
=
2
#0:未定位;1:定位 (2)
latitudeStatus
=
1
#0:北纬;1:南纬 (4)
longitudeStatus
=
1
#0:东经;1:西经 (8)
latitudeStatus
=
4
#0:北纬;1:南纬 (4)
longitudeStatus
=
0
#0:东经;1:西经 (8)
runStatus
=
0
#0:运营状态;1:停运状态 (16)
isLocationEncrypt
=
0
#0:经纬度未经保密插件加密;1:经纬度已经保密插件加密 (32)
retain6_7
=
0
...
...
lib/protocol/message/data/SaloonCarOBD_data.py
View file @
dec8403f
...
...
@@ -37,13 +37,13 @@ class SaloonCarOBD_data(MessageBase):
#燃油压力 , 0 - 500kpa
oilPressure
=
"60A0"
+
self
.
int2hexStringByBytes
(
2
)
+
self
.
int2hexStringByBytes
(
276
,
2
)
#故障码状态 , 发动机故障码状态
troubleCodeStatus
=
"6014"
+
self
.
int2hexStringByBytes
(
1
)
+
self
.
int2hexStringByBytes
(
1
)
troubleCodeStatus
=
"6014"
+
self
.
int2hexStringByBytes
(
1
)
+
self
.
int2hexStringByBytes
(
0
)
#故障码个数
troubleCodeNum
=
"6010"
+
self
.
int2hexStringByBytes
(
1
)
+
self
.
int2hexStringByBytes
(
2
)
#空气流量 , 0.1 实际值为上传值/10 0.1g/s
airFlow
=
"6100"
+
self
.
int2hexStringByBytes
(
2
)
+
self
.
int2hexStringByBytes
(
550
,
2
)
#绝对气门位置
valveLocation
=
"6110"
+
self
.
int2hexStringByBytes
(
2
)
+
self
.
int2hexStringByBytes
(
5
0
1
,
2
)
valveLocation
=
"6110"
+
self
.
int2hexStringByBytes
(
2
)
+
self
.
int2hexStringByBytes
(
51
,
2
)
#自发动机启动运行时间 sec
engineRunTime
=
"61F0"
+
self
.
int2hexStringByBytes
(
2
)
+
self
.
int2hexStringByBytes
(
3700
,
2
)
#故障行驶里程 , Km
...
...
@@ -51,9 +51,9 @@ class SaloonCarOBD_data(MessageBase):
#计算负荷值
calculateLoadValue
=
"6040"
+
self
.
int2hexStringByBytes
(
1
)
+
self
.
int2hexStringByBytes
(
44
)
#长期燃油修正(气缸列 1 和 3)
fuelTrim
=
"6070"
+
self
.
int2hexStringByBytes
(
2
)
+
self
.
int2hexStringByBytes
(
230
,
2
)
fuelTrim
=
"6070"
+
self
.
int2hexStringByBytes
(
2
)
+
self
.
int2hexStringByBytes
(
89
,
2
)
#第一缸点火正时提前角 ,显示值为上传值-64
fireAngle
=
"60E0"
+
self
.
int2hexStringByBytes
(
2
)
+
self
.
int2hexStringByBytes
(
800
,
2
)
fireAngle
=
"60E0"
+
self
.
int2hexStringByBytes
(
2
)
+
self
.
int2hexStringByBytes
(
154
,
2
)
#前刹车片磨损 , 0 正常/否则,显示对应数据,单位:级
frontBrakeBlockAbrasion
=
"6701"
+
self
.
int2hexStringByBytes
(
1
)
+
self
.
int2hexStringByBytes
(
0
)
#后刹车片磨损 , 0 正常/否则,显示对应数据,单位:级
...
...
templates/messageTools/message/location_msg_page.html
View file @
dec8403f
...
...
@@ -57,14 +57,186 @@
<li
style=
"width:160px;"
><label>
摄像头故障:
</label><select
style=
"width:65px;"
id=
"cameraTrouble"
class=
"form-control"
>
<option
value=
"0"
>
否
</option>
<option
value=
"2048"
>
是
</option></select></li>
<li
style=
"width:160px;"
><label
style=
"word-break:break-all;font-size:10px;"
>
道路运输证IC卡模块故障:
</label><select
style=
"width:65px;"
id=
"ICTrouble"
class=
"form-control"
>
<option
value=
"0"
>
否
</option>
<option
value=
"4096"
>
是
</option></select></li>
<li
style=
"width:160px;"
><label>
超速预警:
</label><select
style=
"width:65px;"
id=
"speedEarlyWarning"
class=
"form-control"
>
<option
value=
"0"
>
否
</option>
<option
value=
"8192"
>
是
</option></select></li>
<li
style=
"width:160px;"
><label
style=
"word-break:break-all;font-size:10px;"
>
疲劳驾驶预警:
</label><select
style=
"width:65px;"
id=
"fatigueDrivingearlyWarning"
class=
"form-control"
>
<option
value=
"0"
>
否
</option>
<option
value=
"16384"
>
是
</option></select></li>
<li
style=
"width:160px;"
><label
style=
"word-break:break-all;font-size:10px;"
>
当天累计驾驶超时:
</label><select
style=
"width:65px;"
id=
"drivingOverTime"
class=
"form-control"
>
<option
value=
"0"
>
否
</option>
<option
value=
"262144"
>
是
</option></select></li>
<li
style=
"width:160px;"
><label>
超时停车:
</label><select
style=
"width:65px;"
id=
"stoppingOverTime"
class=
"form-control"
>
<option
value=
"0"
>
否
</option>
<option
value=
"524288"
>
是
</option></select></li>
<li
style=
"width:160px;"
><label>
进出区域:
</label><select
style=
"width:65px;"
id=
"InOutArea"
class=
"form-control"
>
<option
value=
"0"
>
否
</option>
<option
value=
"1048576"
>
是
</option></select></li>
<li
style=
"width:160px;"
><label>
进出路线:
</label><select
style=
"width:65px;"
id=
"InOutRouting"
class=
"form-control"
>
<option
value=
"0"
>
否
</option>
<option
value=
"2097152"
>
是
</option></select></li>
<li
style=
"width:160px;"
><label
style=
"word-break:break-all;font-size:10px;"
>
路段行驶时间不足/过长:
</label><select
style=
"width:65px;"
id=
"drivingLongOrShort"
class=
"form-control"
>
<option
value=
"0"
>
否
</option>
<option
value=
"4194304"
>
是
</option></select></li>
<li
style=
"width:160px;"
><label
style=
"word-break:break-all;font-size:10px;"
>
路线偏离报警:
</label><select
style=
"width:65px;"
id=
"routingDivergeAlarm"
class=
"form-control"
>
<option
value=
"0"
>
否
</option>
<option
value=
"8388608"
>
是
</option></select></li>
<li
style=
"width:160px;"
><label
style=
"word-break:break-all;font-size:10px;"
>
车辆VSS故障:
</label><select
style=
"width:65px;"
id=
"VSSTrouble"
class=
"form-control"
>
<option
value=
"0"
>
否
</option>
<option
value=
"16777216"
>
是
</option></select></li>
<li
style=
"width:160px;"
><label
style=
"word-break:break-all;font-size:10px;"
>
车辆油量异常:
</label><select
style=
"width:65px;"
id=
"oilException"
class=
"form-control"
>
<option
value=
"0"
>
否
</option>
<option
value=
"33554432"
>
是
</option></select></li>
<li
style=
"width:160px;"
><label
style=
"word-break:break-all;font-size:10px;"
>
车辆被盗(通过车辆防盗器):
</label><select
style=
"width:65px;"
id=
"carLost"
class=
"form-control"
>
<option
value=
"0"
>
否
</option>
<option
value=
"67108864"
>
是
</option></select></li>
<li
style=
"width:160px;"
><label
style=
"word-break:break-all;font-size:10px;"
>
车辆非法点火:
</label><select
style=
"width:65px;"
id=
"illegalFire"
class=
"form-control"
>
<option
value=
"0"
>
否
</option>
<option
value=
"134217728"
>
是
</option></select></li>
<li
style=
"width:160px;"
><label
style=
"word-break:break-all;font-size:10px;"
>
车辆非法位移(拖车告警):
</label><select
style=
"width:65px;"
id=
"illegalMoving"
class=
"form-control"
>
<option
value=
"0"
>
否
</option>
<option
value=
"268435456"
>
是
</option></select></li>
<li
style=
"width:160px;"
><label>
碰撞预警:
</label><select
style=
"width:65px;"
id=
"collisionAlarm"
class=
"form-control"
>
<option
value=
"0"
>
否
</option>
<option
value=
"536870912"
>
是
</option></select></li>
<li
style=
"width:160px;"
><label>
侧翻预警:
</label><select
style=
"width:65px;"
id=
"rollOverAlarm"
class=
"form-control"
>
<option
value=
"0"
>
否
</option>
<option
value=
"1073741824"
>
是
</option></select></li>
<li
style=
"width:160px;"
><label
style=
"word-break:break-all;font-size:10px;"
>
非法开门报警:
</label><select
style=
"width:65px;"
id=
"illegalOpenDoor"
class=
"form-control"
>
<option
value=
"0"
>
否
</option>
<option
value=
"2147483648"
>
是
</option></select></li>
</ul>
</div>
<div
style=
"width:100%;border-width:1px;border-style:solid;border-color:darkgray;border-radius:10px;padding:2px;margin-top:5px;"
>
<label>
状态位:
</label><br>
<ul
class=
"protocol_content"
style=
"padding:0px;"
>
<li
style=
"width:110px;"
><select
style=
"width:100px;"
id=
"ACCStatus"
class=
"form-control"
>
<option
value=
"0"
>
ACC 关
</option>
<option
value=
"1"
>
ACC 开
</option></select></li>
<li
style=
"width:110px;"
><select
style=
"width:100px;"
id=
"locationStatus"
class=
"form-control"
>
<option
value=
"0"
>
未定位
</option>
<option
value=
"2"
selected=
"selected"
>
定位
</option></select></li>
<li
style=
"width:110px;"
><select
style=
"width:100px;"
id=
"latitudeStatus"
class=
"form-control"
>
<option
value=
"0"
>
北纬
</option>
<option
value=
"4"
>
南纬
</option></select></li>
<li
style=
"width:110px;"
><select
style=
"width:100px;"
id=
"longitudeStatus"
class=
"form-control"
>
<option
value=
"0"
>
东经
</option>
<option
value=
"8"
>
西经
</option></select></li>
<li
style=
"width:120px;"
><select
style=
"width:110px;"
id=
"runStatus"
class=
"form-control"
>
<option
value=
"0"
>
运营状态
</option>
<option
value=
"16"
>
停运状态
</option></select></li>
<li
style=
"width:220px;"
><select
style=
"width:210px;"
id=
"isLocationEncrypt"
class=
"form-control"
>
<option
value=
"0"
>
经纬度未经保密插件加密
</option>
<option
value=
"32"
>
经纬度已经保密插件加密
</option></select></li>
<li
style=
"width:90px;"
><select
style=
"width:80px;"
id=
"isFull"
class=
"form-control"
>
<option
value=
"0"
>
空车
</option>
<option
value=
"256"
selected=
"selected"
>
半载
</option>
<option
value=
"512"
>
保留
</option>
<option
value=
"768"
>
满载
</option></select></li>
<li
style=
"width:150px;"
><select
style=
"width:140px;"
id=
"oilRouteStatus"
class=
"form-control"
>
<option
value=
"0"
>
车辆油路正常
</option>
<option
value=
"1024"
>
车辆油路断开
</option></select></li>
<li
style=
"width:150px;"
><select
style=
"width:140px;"
id=
"powerStatus"
class=
"form-control"
>
<option
value=
"0"
>
车辆电路正常
</option>
<option
value=
"2048"
>
车辆电路断开
</option></select></li>
<li
style=
"width:120px;"
><select
style=
"width:110px;"
id=
"doorLockStatus"
class=
"form-control"
>
<option
value=
"0"
>
车门解锁
</option>
<option
value=
"4096"
>
车门加锁
</option></select></li>
<li
style=
"width:120px;"
><select
style=
"width:110px;"
id=
"frontDoor"
class=
"form-control"
>
<option
value=
"0"
>
前门 关
</option>
<option
value=
"8192"
>
前门 开
</option></select></li>
<li
style=
"width:120px;"
><select
style=
"width:110px;"
id=
"middleDoor"
class=
"form-control"
>
<option
value=
"0"
>
中门 关
</option>
<option
value=
"16384"
>
中门 开
</option></select></li>
<li
style=
"width:120px;"
><select
style=
"width:110px;"
id=
"backDoor"
class=
"form-control"
>
<option
value=
"0"
>
后门 关
</option>
<option
value=
"32768"
>
后门 开
</option></select></li>
<li
style=
"width:140px;"
><select
style=
"width:130px;"
id=
"drivingDoor"
class=
"form-control"
>
<option
value=
"0"
>
驾驶席门 关
</option>
<option
value=
"65536"
>
驾驶席门 开
</option></select></li>
<li
style=
"width:140px;"
><select
style=
"width:130px;"
id=
"otherDoor"
class=
"form-control"
>
<option
value=
"0"
>
自定义门 关
</option>
<option
value=
"131072"
>
自定义门 开
</option></select>
<li
style=
"width:230px;"
><select
style=
"width:220px;"
id=
"GPSStatus"
class=
"form-control"
>
<option
value=
"0"
>
未使用 GPS 卫星进行定位
</option>
<option
value=
"262144"
selected=
"selected"
>
使用 GPS 卫星进行定位
</option></select></li>
<li
style=
"width:230px;"
><select
style=
"width:220px;"
id=
"beidouStatus"
class=
"form-control"
>
<option
value=
"0"
>
未使用北斗卫星进行定位
</option>
<option
value=
"524288"
>
使用北斗卫星进行定位
</option></select></li>
<li
style=
"width:270px;"
><select
style=
"width:260px;"
id=
"GLONSSStatus"
class=
"form-control"
>
<option
value=
"0"
>
未使用 GLONASS 卫星进行定位
</option>
<option
value=
"1048576"
>
使用 GLONASS 卫星进行定位
</option></select></li>
<li
style=
"width:270px;"
><select
style=
"width:260px;"
id=
"GalileoStatus"
class=
"form-control"
>
<option
value=
"0"
>
未使用 Galileo 卫星进行定位
</option>
<option
value=
"2097152"
>
使用 Galileo 卫星进行定位
</option></select></li>
</ul>
</div>
<ul
class=
"protocol_content"
style=
"padding:0px;"
>
<li><label>
纬度:
</label><input
id=
"latitude"
type=
"text"
class=
"form-control"
value=
"29.40268"
></li>
<li><label>
经度:
</label><input
id=
"longtitude"
type=
"text"
class=
"form-control"
value=
"106.54041"
></li>
<li><label>
海拔高度:
</label><input
id=
"elevation"
type=
"text"
class=
"form-control"
value=
"521"
></li>
<li><label>
速度:
</label><input
id=
"speed"
type=
"text"
class=
"form-control"
value=
"66"
></li>
<li><label>
方向角度:
</label><input
id=
"directionAngle"
type=
"text"
class=
"form-control"
value=
"59"
></li>
<li><label>
获取时间:
</label><input
id=
"infoTime"
type=
"text"
class=
"form-control"
></li>
</ul>
<H3
style=
"border-bottom: 1px solid #eee;"
>
附加消息内容:
</H3>
<div
style=
"width:100%;border-width:1px;border-style:solid;border-color:darkgray;border-radius:10px;padding:2px;background:skyblue;"
>
<label>
选择附加消息:
</label><br>
<ul
class=
"protocol_content"
style=
"padding:0px;"
>
<li
style=
"width:50px;"
><label><input
name=
"Fruit"
type=
"checkbox"
id=
"01"
/>
里程
</label>
</li>
<li
style=
"width:60px;"
><label><input
name=
"Fruit"
type=
"checkbox"
id=
"02"
/>
油量
</label>
</li>
<li
style=
"width:140px;"
><label
style=
"width: 130px;"
><input
name=
"Fruit"
type=
"checkbox"
id=
"11"
/>
超速报警附加信息
</label>
</li>
<li
style=
"width:200px;"
><label
style=
"width: 190px;"
><input
name=
"Fruit"
type=
"checkbox"
id=
"12"
/>
进出区域/路线报警附加信息
</label>
</li>
<li
style=
"width:260px;"
><label
style=
"width: 250px;"
><input
name=
"Fruit"
type=
"checkbox"
id=
"13"
/>
路段行驶时间不足/过长报警附加信息
</label>
</li>
<li
style=
"width:80px;"
><label
style=
"width: 70px;"
><input
name=
"Fruit"
type=
"checkbox"
id=
"2A"
/>
IO状态位
</label>
</li>
<li
style=
"width:170px;"
><label
style=
"width: 160px;"
><input
name=
"Fruit"
type=
"checkbox"
id=
"30"
/>
无线通信网络信号强度
</label>
</li>
<li
style=
"width:200px;"
><label
style=
"width: 150px;"
><input
name=
"Fruit"
type=
"checkbox"
id=
"31"
/>
GNSS 定位卫星数
</label>
</li>
<li
style=
"width:120px;"
><label
style=
"width: 120px;"
><input
name=
"Fruit"
type=
"checkbox"
id=
"EA"
/>
基础数据项列表
</label>
</li>
<li
style=
"width:145px;"
><label
style=
"width: 140px;"
><input
name=
"Fruit"
type=
"checkbox"
id=
"EB"
/>
轿车 OBD 数据流
</label>
</li>
<li
style=
"width:200px;"
><label
style=
"width: 150px;"
><input
name=
"Fruit"
type=
"checkbox"
id=
"FA"
/>
报警事件 ID 数据项
</label>
</li>
</ul>
</div>
<div
style=
"width:100%;border-width:1px;border-style:solid;border-color:darkgray;border-radius:10px;padding:2px;margin-top:5px;"
>
<ul
class=
"protocol_content"
style=
"padding:0px;"
>
<li><label>
里程:
</label><input
id=
"extra_01"
type=
"text"
class=
"form-control"
value=
"20202020"
></li>
</ul>
</div>
<div
style=
"width:100%;border-width:1px;border-style:solid;border-color:darkgray;border-radius:10px;padding:2px;margin-top:5px;"
>
<ul
class=
"protocol_content"
style=
"padding:0px;"
>
<li><label>
省域ID:
</label><input
id=
"provinceId2"
type=
"text"
class=
"form-control"
value=
"50"
></li>
<li><label>
市县域ID:
</label><input
id=
"countyId2"
type=
"text"
class=
"form-control"
value=
"103"
></li>
<li><label>
油量:
</label><input
id=
"extra_02"
type=
"text"
class=
"form-control"
value=
"5200"
></li>
</ul>
</div>
<div
style=
"width:100%;border-width:1px;border-style:solid;border-color:darkgray;border-radius:10px;padding:2px;margin-top:5px;"
>
<label>
超速报警附加信息:
</label><br>
<ul
class=
"protocol_content"
style=
"padding:0px;"
>
<li><label>
位置类型:
</label><select
id=
"extra_11"
class=
"form-control"
>
<option
value=
"0"
>
无特定位置
</option>
<option
value=
"1"
>
圆形区域
</option>
<option
value=
"2"
>
矩形区域
</option>
<option
value=
"3"
>
多边形区域
</option>
<option
value=
"4"
>
路段
</option></select></li>
<li><label
style=
"word-break:break-all;font-size:10px;"
>
区域或路段ID:
</label><input
id=
"areaId_1"
type=
"text"
class=
"form-control"
value=
"2020"
></li>
</ul>
</div>
<div
style=
"width:100%;border-width:1px;border-style:solid;border-color:darkgray;border-radius:10px;padding:2px;margin-top:5px;"
>
<label>
进出区域/路线报警附加信息:
</label><br>
<ul
class=
"protocol_content"
style=
"padding:0px;"
>
<li><label>
位置类型:
</label><select
id=
"extra_12"
class=
"form-control"
>
<option
value=
"0"
>
无特定位置
</option>
<option
value=
"1"
>
圆形区域
</option>
<option
value=
"2"
>
矩形区域
</option>
<option
value=
"3"
>
多边形区域
</option>
<option
value=
"4"
>
路段
</option></select></li>
<li><label
style=
"word-break:break-all;font-size:10px;"
>
区域或路段ID:
</label><input
id=
"areaId_2"
type=
"text"
class=
"form-control"
value=
"2020"
></li>
<li
style=
"width:170px;"
><label>
方向:
</label><select
id=
"direction"
class=
"form-control"
style=
"width:80px;"
>
<option
value=
"0"
>
进
</option>
<option
value=
"1"
>
出
</option></select></li>
</ul>
</div>
<H3
style=
"border-bottom: 1px solid #eee;"
>
控制:
</H3>
<div
style=
"width:100%;padding:5px;margin-top:10px;"
>
<button
type=
"button"
class=
"btn btn-primary"
id=
"sendMsgBtn"
>
发送消息
</button>
...
...
@@ -145,5 +317,11 @@ function hasSubPkg(){
$
(
"
#pkgCounts
"
).
attr
(
"
disabled
"
,
"
disabled
"
)
}
}
//设置当前时间到时间输入框
(
function
(){
var
curTime
=
getCurTime
();
$
(
"
#infoTime
"
).
val
(
curTime
);
})();
</script>
{% endblock %}
\ No newline at end of file
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