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
0b9411ce
authored
2023-06-14 10:36:42 +0800
by
xiaomiao
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'dev' of
http://yun.pashanhoo.com:9090/bdc/bdcdj-web
into dev
2 parents
933c8c1c
524cc4e6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
19 deletions
src/utils/request.js
src/views/components/imagePreview.vue
src/views/workflow/components/qlrCommonTable.vue
src/utils/request.js
View file @
0b9411c
...
...
@@ -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/components/imagePreview.vue
View file @
0b9411c
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-06-1
2 15:18:07
* @LastEditTime: 2023-06-1
4 09:25:12
-->
<
template
>
<div
class=
"rlPopup"
>
...
...
@@ -109,8 +109,18 @@
* @author: renchao
*/
handleOpenScan
()
{
this
.
isScan
=
true
this
.
scanTitle
=
'关闭高拍仪'
this
.
isScan
=
!
this
.
isScan
if
(
this
.
isScan
)
{
this
.
$message
({
message
:
'正在启动程序请稍等'
,
type
:
'success'
})
setTimeout
(()
=>
{
this
.
scanTitle
=
'关闭高拍仪'
},
4000
)
}
else
{
this
.
scanTitle
=
'打开高拍仪'
}
},
/**
* @description: 拍照
...
...
src/views/workflow/components/qlrCommonTable.vue
View file @
0b9411c
<!--
* @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