Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
bdc
/
bdcdj-web
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
fa26cc0a
authored
2023-06-14 09:04:18 +0800
by
renchao@pashanhoo.com
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
style:身份证读卡器
1 parent
4f1755d2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
16 deletions
src/utils/request.js
src/views/workflow/components/qlrCommonTable.vue
src/utils/request.js
View file @
fa26cc0
...
...
@@ -2,7 +2,7 @@
/*
* @Description: 此文件主要创建 axios 实例,然后添加请求拦截器和响应拦截器
* @Autor: renchao
* @LastEditTime: 2023-06-13 1
6:28:57
* @LastEditTime: 2023-06-13 1
7:16:13
*/
import
axios
from
'axios'
import
Router
from
'@/router'
...
...
@@ -34,14 +34,6 @@ service.interceptors.request.use(
}
else
{
config
.
headers
.
delete
(
'Authorization'
)
}
}
else
{
const
token
=
Cookies
.
get
(
'ACCESS_TOKEN'
)
// 添加请求头
if
(
token
)
{
config
.
headers
[
'Authorization'
]
=
'Bearer '
+
token
}
else
{
config
.
headers
.
delete
(
'Authorization'
)
}
}
return
config
},
...
...
src/views/workflow/components/qlrCommonTable.vue
View file @
fa26cc0
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-06-1
3 15:05:35
* @LastEditTime: 2023-06-1
4 09:01:30
-->
<
template
>
<div>
...
...
@@ -198,16 +198,20 @@
var
httpurl
=
"http://127.0.0.1:33088/"
;
var
url
=
httpurl
+
"function=get_idcard&readnew=0"
axios
.
post
(
url
).
then
(
res
=>
{
if
(
res
.
data
.
code
==
1
)
{
this
.
$message
({
message
:
res
.
data
.
message
,
type
:
'warning'
})
}
else
{
if
(
res
.
data
.
code
==
0
)
{
let
data
=
res
.
data
.
IDCardInfo
row
.
sqrmc
=
data
.
name
row
.
zjzl
=
1
row
.
zjh
=
data
.
cardID
this
.
$message
({
message
:
'读取成功!'
,
type
:
'success'
})
}
else
{
this
.
$message
({
message
:
res
.
data
.
message
,
type
:
'warning'
})
}
})
},
...
...
Please
register
or
sign in
to post a comment