Commit 98b43fc2 by liimin

lint

1 parent bc0adc2a
...@@ -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)
} }
}, },
......
...@@ -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)
} }
}, },
......
...@@ -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)
} }
}, },
......
...@@ -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)
} }
}, },
......
...@@ -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)
} }
}, },
......
...@@ -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)
} }
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!