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
034c2a08
Commit
034c2a08
authored
Sep 23, 2022
by
huangqy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
11
parent
80c60c58
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
10 行增加
和
6 行删除
+10
-6
bjgl.vue
src/views/student/bjgl.vue
+2
-1
xygl.vue
src/views/student/xygl.vue
+8
-5
没有找到文件。
src/views/student/bjgl.vue
View file @
034c2a08
...
@@ -40,7 +40,7 @@
...
@@ -40,7 +40,7 @@
name=
"file"
name=
"file"
:multiple=
"false"
:multiple=
"false"
:showUploadList=
"false"
:showUploadList=
"false"
action=
"http://192.168.3.123:10026/JX/student/readExce
l"
:action=
"actionUr
l"
@
change=
"handleUpload"
@
change=
"handleUpload"
>
>
<a-button
type=
"primary"
icon=
"upload"
ghost
round
>
导入
</a-button>
<a-button
type=
"primary"
icon=
"upload"
ghost
round
>
导入
</a-button>
...
@@ -150,6 +150,7 @@ export default {
...
@@ -150,6 +150,7 @@ export default {
data
()
{
data
()
{
return
{
return
{
height
:
document
.
documentElement
.
clientHeight
-
176
,
height
:
document
.
documentElement
.
clientHeight
-
176
,
actionUrl
:
window
.
_CONFIG
[
'domianURL'
]
+
'/student/readExcel'
,
data
:
[],
data
:
[],
dialogVisible
:
false
,
dialogVisible
:
false
,
title
:
''
,
title
:
''
,
...
...
src/views/student/xygl.vue
View file @
034c2a08
...
@@ -163,7 +163,6 @@ export default {
...
@@ -163,7 +163,6 @@ export default {
created
()
{
created
()
{
this
.
initData
()
this
.
initData
()
this
.
initClass
()
this
.
initClass
()
this
.
initWbSocket
()
},
},
mounted
()
{
mounted
()
{
...
@@ -187,6 +186,7 @@ export default {
...
@@ -187,6 +186,7 @@ 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
=
{
...
@@ -272,7 +272,7 @@ export default {
...
@@ -272,7 +272,7 @@ export default {
this
.
selectRow
.
epc
=
this
.
selectRow
.
studentNo
this
.
selectRow
.
epc
=
this
.
selectRow
.
studentNo
const
{
data
:
res
}
=
await
this
.
$axios
.
post
(
'/jxStudentCard/makeCard'
,
this
.
selectRow
)
const
{
data
:
res
}
=
await
this
.
$axios
.
post
(
'/jxStudentCard/makeCard'
,
this
.
selectRow
)
if
(
!
res
.
data
)
return
this
.
$message
.
error
(
res
.
message
)
if
(
!
res
.
data
)
return
this
.
$message
.
error
(
res
.
message
)
this
.
$message
.
success
(
'写入成功'
)
this
.
$message
.
success
(
res
.
message
)
},
},
initWbSocket
()
{
initWbSocket
()
{
this
.
websock
=
new
WebSocket
(
'ws://127.0.0.1:8081'
);
this
.
websock
=
new
WebSocket
(
'ws://127.0.0.1:8081'
);
...
@@ -285,15 +285,18 @@ export default {
...
@@ -285,15 +285,18 @@ export default {
console
.
log
(
'WebSocket连接建立'
);
console
.
log
(
'WebSocket连接建立'
);
},
},
websocketOnerror
:
function
(
e
)
{
websocketOnerror
:
function
(
e
)
{
this
.
$message
.
warning
(
'写入服务连接发生错误'
)
console
.
log
(
"WebSocket连接发生错误"
);
console
.
log
(
"WebSocket连接发生错误"
);
},
},
websocketOnmessage
:
function
(
e
)
{
websocketOnmessage
:
function
(
e
)
{
var
backMessObj
=
JSON
.
parse
(
e
.
data
);
var
backMessObj
=
JSON
.
parse
(
e
.
data
);
console
.
log
(
backMessObj
)
console
.
log
(
backMessObj
)
if
(
backMessObj
.
CmdType
==
4
)
{
if
(
backMessObj
.
CmdType
==
4
)
{
this
.
saveCard
()
if
(
backMessObj
.
Content
!==
'操作失败,设备未连接'
)
{
}
else
if
(
!
[
0
,
1
,
2
,
5
].
includes
(
backMessObj
.
CmdType
))
{
this
.
saveCard
()
}
else
{
this
.
$message
.
error
(
backMessObj
.
Content
)
}
}
else
if
(
!
[
2
,
3
,
5
].
includes
(
backMessObj
.
CmdType
))
{
this
.
$message
.
error
(
backMessObj
.
Content
)
this
.
$message
.
error
(
backMessObj
.
Content
)
}
}
},
},
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论