Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
T
teach-ltk-ui
概览
Overview
Details
Activity
Cycle Analytics
版本库
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
问题
0
Issues
0
列表
Board
标记
里程碑
合并请求
0
Merge Requests
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
Snippets
成员
Members
Collapse sidebar
Close sidebar
活动
图像
聊天
创建新问题
作业
提交
Issue Boards
Open sidebar
黄麒宇
teach-ltk-ui
Commits
a9669159
Commit
a9669159
authored
Feb 21, 2023
by
huangqy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
11
parent
68ed092e
显示空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
6 行增加
和
2 行删除
+6
-2
xygl.vue
src/views/student/xygl.vue
+6
-2
没有找到文件。
src/views/student/xygl.vue
View file @
a9669159
...
@@ -201,7 +201,6 @@ export default {
...
@@ -201,7 +201,6 @@ export default {
if
(
res
.
code
!==
99200
)
return
this
.
$message
(
res
.
message
)
if
(
res
.
code
!==
99200
)
return
this
.
$message
(
res
.
message
)
this
.
total
=
res
.
data
.
totalRows
-
0
this
.
total
=
res
.
data
.
totalRows
-
0
this
.
data
=
res
.
data
.
records
this
.
data
=
res
.
data
.
records
this
.
initWbSocket
()
},
},
resClick
()
{
resClick
()
{
this
.
searchData
=
{
this
.
searchData
=
{
...
@@ -283,7 +282,8 @@ export default {
...
@@ -283,7 +282,8 @@ export default {
},
},
makeCard
(
row
)
{
makeCard
(
row
)
{
this
.
selectRow
=
row
this
.
selectRow
=
row
this
.
websock
.
send
(
JSON
.
stringify
(
{
CmdType
:
4
,
Content
:
JSON
.
stringify
(
{
epc
:
row
.
studentNo
,
len
:
4
,
offset
:
1
,
password
:
'00000000'
})
}))
console
.
log
(
JSON
.
stringify
(
{
CmdType
:
4
,
Content
:
JSON
.
stringify
(
{
epc
:
row
.
studentNo
,
len
:
4
,
offset
:
1
,
password
:
'00000000'
})
}))
this
.
initWbSocket
()
},
},
async
saveCard
()
{
async
saveCard
()
{
this
.
selectRow
.
epc
=
this
.
selectRow
.
studentNo
this
.
selectRow
.
epc
=
this
.
selectRow
.
studentNo
...
@@ -300,6 +300,7 @@ export default {
...
@@ -300,6 +300,7 @@ export default {
},
},
websocketOnopen
(
e
)
{
websocketOnopen
(
e
)
{
console
.
log
(
'WebSocket连接建立'
);
console
.
log
(
'WebSocket连接建立'
);
this
.
websock
.
send
(
JSON
.
stringify
(
{
CmdType
:
4
,
Content
:
JSON
.
stringify
(
{
epc
:
row
.
studentNo
,
len
:
4
,
offset
:
1
,
password
:
'00000000'
})
}))
},
},
websocketOnerror
:
function
(
e
)
{
websocketOnerror
:
function
(
e
)
{
console
.
log
(
"WebSocket连接发生错误"
);
console
.
log
(
"WebSocket连接发生错误"
);
...
@@ -316,6 +317,9 @@ export default {
...
@@ -316,6 +317,9 @@ export default {
}
else
if
(
!
[
2
,
3
,
5
].
includes
(
backMessObj
.
CmdType
))
{
}
else
if
(
!
[
2
,
3
,
5
].
includes
(
backMessObj
.
CmdType
))
{
this
.
$message
.
error
(
backMessObj
.
Content
)
this
.
$message
.
error
(
backMessObj
.
Content
)
}
}
setTimeout
(()
=>
{
this
.
websock
.
close
()
},
1000
)
},
},
websocketOnclose
:
function
(
e
)
{
websocketOnclose
:
function
(
e
)
{
console
.
log
(
"connection closed ("
+
e
+
")"
);
console
.
log
(
"connection closed ("
+
e
+
")"
);
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论