Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
SHR
/
tFIMS
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 98b43fc2
authored
Sep 10, 2019
by
liimin
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
lint
1 parent
bc0adc2a
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
10 additions
and
10 deletions
src/views/maintainManagement/index.vue
src/views/materiaOrderManagement/index.vue
src/views/reportingLogs/index.vue
src/views/subSysManagement/index.vue
src/views/systemMonitor/index.vue
src/views/trafficManagement/index.vue
src/views/maintainManagement/index.vue
View file @
98b43fc
...
@@ -356,14 +356,14 @@ export default {
...
@@ -356,14 +356,14 @@ export default {
// }
// }
// })
// })
},
},
// 防抖
// 防抖
debounce
(
fn
,
delay
=
50
)
{
debounce
(
fn
,
delay
=
50
)
{
let
timer
=
null
let
timer
=
null
return
(...
args
)
=>
{
return
(...
args
)
=>
{
clearTimeout
(
timer
)
clearTimeout
(
timer
)
timer
=
setTimeout
(()
=>
{
timer
=
setTimeout
(()
=>
{
fn
.
apply
(
this
.
args
)
fn
.
apply
(
this
.
args
)
},
delay
)
},
delay
)
}
}
},
},
...
...
src/views/materiaOrderManagement/index.vue
View file @
98b43fc
...
@@ -103,8 +103,8 @@
...
@@ -103,8 +103,8 @@
>
>
<template
slot-scope=
"scope"
>
<template
slot-scope=
"scope"
>
<template
v-if=
"item.prop === 'status'"
>
<template
v-if=
"item.prop === 'status'"
>
<el-tag
<el-tag
style=
"width:80px; font-size: 14px;"
style=
"width:80px; font-size: 14px;"
:type=
"tag.type[scope.row.status]"
:type=
"tag.type[scope.row.status]"
>
{{
tag
.
label
[
scope
.
row
.
status
]
}}
</el-tag>
>
{{
tag
.
label
[
scope
.
row
.
status
]
}}
</el-tag>
</
template
>
</
template
>
...
@@ -251,7 +251,7 @@ export default {
...
@@ -251,7 +251,7 @@ export default {
return
(...
args
)
=>
{
return
(...
args
)
=>
{
clearTimeout
(
timer
)
clearTimeout
(
timer
)
timer
=
setTimeout
(()
=>
{
timer
=
setTimeout
(()
=>
{
fn
.
apply
(
this
.
args
)
fn
.
apply
(
this
.
args
)
},
delay
)
},
delay
)
}
}
},
},
...
...
src/views/reportingLogs/index.vue
View file @
98b43fc
...
@@ -188,7 +188,7 @@ export default {
...
@@ -188,7 +188,7 @@ export default {
return
(...
args
)
=>
{
return
(...
args
)
=>
{
clearTimeout
(
timer
)
clearTimeout
(
timer
)
timer
=
setTimeout
(()
=>
{
timer
=
setTimeout
(()
=>
{
fn
.
apply
(
this
.
args
)
fn
.
apply
(
this
.
args
)
},
delay
)
},
delay
)
}
}
},
},
...
...
src/views/subSysManagement/index.vue
View file @
98b43fc
...
@@ -257,7 +257,7 @@ export default {
...
@@ -257,7 +257,7 @@ export default {
return
(...
args
)
=>
{
return
(...
args
)
=>
{
clearTimeout
(
timer
)
clearTimeout
(
timer
)
timer
=
setTimeout
(()
=>
{
timer
=
setTimeout
(()
=>
{
fn
.
apply
(
this
.
args
)
fn
.
apply
(
this
.
args
)
},
delay
)
},
delay
)
}
}
},
},
...
...
src/views/systemMonitor/index.vue
View file @
98b43fc
...
@@ -296,7 +296,7 @@ export default {
...
@@ -296,7 +296,7 @@ export default {
return
(...
args
)
=>
{
return
(...
args
)
=>
{
clearTimeout
(
timer
)
clearTimeout
(
timer
)
timer
=
setTimeout
(()
=>
{
timer
=
setTimeout
(()
=>
{
fn
.
apply
(
this
.
args
)
fn
.
apply
(
this
.
args
)
},
delay
)
},
delay
)
}
}
},
},
...
...
src/views/trafficManagement/index.vue
View file @
98b43fc
...
@@ -145,7 +145,7 @@ import { BaseData } from '@/common/constants'
...
@@ -145,7 +145,7 @@ import { BaseData } from '@/common/constants'
// import { mapActions } from 'vuex'
// import { mapActions } from 'vuex'
import
{
getListApi
,
methods
,
editApi
,
removeApi
}
from
'@api/trafficManagement'
import
{
getListApi
,
methods
,
editApi
,
removeApi
}
from
'@api/trafficManagement'
import
notice
from
'@/common/notice'
import
notice
from
'@/common/notice'
import
{
clearTimeout
,
setTimeout
}
from
'timers'
;
import
{
clearTimeout
,
setTimeout
}
from
'timers'
// import { debounce } from 'lodash';
// import { debounce } from 'lodash';
export
default
{
export
default
{
name
:
'fimsTrafficManagement'
,
name
:
'fimsTrafficManagement'
,
...
@@ -233,7 +233,7 @@ export default {
...
@@ -233,7 +233,7 @@ export default {
return
(...
args
)
=>
{
return
(...
args
)
=>
{
clearTimeout
(
timer
)
clearTimeout
(
timer
)
timer
=
setTimeout
(()
=>
{
timer
=
setTimeout
(()
=>
{
fn
.
apply
(
this
.
args
)
fn
.
apply
(
this
.
args
)
},
delay
)
},
delay
)
}
}
},
},
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment