Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
founder_vue
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
常超
founder_vue
Commits
38932b3b
Commit
38932b3b
authored
Dec 06, 2021
by
liyuhang19990520
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
合并代码
parent
ab5c93df
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
2 deletions
+21
-2
src/plugins/axios.js
+2
-1
src/views/cxyrd/modules/TTPlam.vue
+19
-1
No files found.
src/plugins/axios.js
View file @
38932b3b
/*
/*
* @Author: your name
* @Author: your name
* @Date: 2021-09-07 09:57:48
* @Date: 2021-09-07 09:57:48
* @LastEditTime: 2021-12-0
3 20:45:45
* @LastEditTime: 2021-12-0
6 10:47:24
* @LastEditors: Please set LastEditors
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @Description: In User Settings Edit
* @FilePath: \指纹系统\founder_vue\src\plugins\axios.js
* @FilePath: \指纹系统\founder_vue\src\plugins\axios.js
...
@@ -80,6 +80,7 @@ _axios.interceptors.response.use(
...
@@ -80,6 +80,7 @@ _axios.interceptors.response.use(
if
(
response
.
data
.
code
==
401
)
{
if
(
response
.
data
.
code
==
401
)
{
if
(
resTimer
)
clearTimeout
(
resTimer
)
if
(
resTimer
)
clearTimeout
(
resTimer
)
resTimer
=
setTimeout
(()
=>
{
resTimer
=
setTimeout
(()
=>
{
CancelToken
MessageBox
.
confirm
(
'登陆超时请重新登录, 是否继续?'
,
'提示'
,
{
MessageBox
.
confirm
(
'登陆超时请重新登录, 是否继续?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
cancelButtonText
:
'取消'
,
...
...
src/views/cxyrd/modules/TTPlam.vue
View file @
38932b3b
<!--
<!--
* @Author: your name
* @Author: your name
* @Date: 2021-10-23 17:43:14
* @Date: 2021-10-23 17:43:14
* @LastEditTime: 2021-12-0
3 16:03:12
* @LastEditTime: 2021-12-0
6 10:01:49
* @LastEditors: Please set LastEditors
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @Description: In User Settings Edit
* @FilePath: \指纹系统\founder_vue\src\views\cxyrd\modules\TTPlam.vue
* @FilePath: \指纹系统\founder_vue\src\views\cxyrd\modules\TTPlam.vue
...
@@ -14,7 +14,9 @@
...
@@ -14,7 +14,9 @@
<span>
目标数据
</span>
<span>
目标数据
</span>
</p>
</p>
<el-carousel
<el-carousel
@
mousewheel
.
native=
"rollScroll($event)"
direction=
"vertical"
direction=
"vertical"
ref=
"carousel"
:autoplay=
"false"
:autoplay=
"false"
trigger=
"click"
trigger=
"click"
v-if=
"isPlam"
v-if=
"isPlam"
...
@@ -146,6 +148,7 @@ export default {
...
@@ -146,6 +148,7 @@ export default {
targetSrc
:
""
,
targetSrc
:
""
,
isShowDetail
:
false
,
isShowDetail
:
false
,
checkItem
:
{},
checkItem
:
{},
timeOut
:
null
,
arr
:
[
arr
:
[
{
{
id
:
"31"
,
id
:
"31"
,
...
@@ -176,6 +179,21 @@ export default {
...
@@ -176,6 +179,21 @@ export default {
});
});
},
},
methods
:
{
methods
:
{
rollScroll
(
event
)
{
let
_that
=
this
;
// chrome、ie使用的wheelDelta,火狐使用detail
let
scrollVal
=
event
.
wheelDelta
||
event
.
detail
;
// 节流
if
(
!
_that
.
timeOut
)
{
_that
.
timeOut
=
setTimeout
(()
=>
{
_that
.
timeOut
=
null
;
scrollVal
>
0
?
_that
.
$refs
.
carousel
.
prev
()
:
_that
.
$refs
.
carousel
.
next
();
},
300
);
}
else
{
}
},
showDetail
(
item
)
{
showDetail
(
item
)
{
this
.
checkItem
=
item
;
this
.
checkItem
=
item
;
console
.
log
(
this
.
checkItem
);
console
.
log
(
this
.
checkItem
);
...
...
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