Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
recruiting-management
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ui
recruiting-management
Commits
04fa10e1
Commit
04fa10e1
authored
Sep 10, 2019
by
zhangderong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
节流
parent
a9cbc267
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
85 additions
and
26 deletions
+85
-26
allResume.vue
src/page/resume/allResume.vue
+24
-14
channel.vue
src/page/resume/channel.vue
+22
-12
util.js
src/service/util.js
+39
-0
No files found.
src/page/resume/allResume.vue
View file @
04fa10e1
...
...
@@ -373,6 +373,7 @@ import qs from 'qs'
import
{
sapi
}
from
'
../../config
'
import
{
_debounce
,
_throttle
}
from
'
../../service/util.js
'
import
localStorage
from
'
../../service/localstorage.service
'
import
Router
from
'
vue-router
'
;
import
ckeditor
from
'
../../components/ckeditor
'
...
...
@@ -1331,21 +1332,30 @@ import ckeditor from '../../components/ckeditor'
this
.
uploadFileList
=
[]
this
.
SouSuo
(
this
.
pageT
)
},
getEditorValue
(
value
){
this
.
emailContent
=
value
this
.
sad
=
value
// if(this.sad==''){this.$Notice.error({
// title: '提示',
// desc: '正文不能为空'
// });
// }
// if(this.emailContent==''){
// this.isDisable=false
//
getEditorValue(value){
//
this.emailContent=value
//
this.sad = value
//
//
if(this.sad==''){this.$Notice.error({
//
//
title: '提示',
//
//
desc: '正文不能为空'
//
//
});
//
//
}
//
// if(this.emailContent==''){
//
// this.isDisable=false
// }else{
// this.isDisable=true
// }
},
// // }else{
// // this.isDisable=true
// // }
// },
getEditorValue
:
_debounce
(()
=>
{
this
.
emailContent
=
this
.
sad
this
.
sad
=
value
if
(
this
.
emailContent
==
''
){
this
.
isDisable
=
false
}
else
{
this
.
isDisable
=
true
}
}),
delateFile
(
index
){
this
.
fileList
.
splice
(
index
,
1
)
this
.
uploadFileList
.
splice
(
index
,
1
)
...
...
src/page/resume/channel.vue
View file @
04fa10e1
...
...
@@ -365,6 +365,7 @@ import {adoptOneSeeResumeList, serchList,downloadone,sousuoList,seedetail,PASS,O
import
{
sapi
}
from
'
../../config
'
import
{
_debounce
,
_throttle
}
from
'
../../service/util.js
'
import
ckeditor
from
'
../../components/ckeditor
'
import
localStorage
from
'
../../service/localstorage.service
'
export
default
{
...
...
@@ -1224,19 +1225,28 @@ export default {
this
.
uploadFileList
=
[]
this
.
SouSuo
(
this
.
pageT
)
},
getEditorValue
(
value
){
this
.
emailContent
=
value
// getEditorValue(value){
// this.emailContent=value
// this.sad = value
// // if(this.emailContent==''){
// // this.isDisable=false
// // this.$Notice.error({
// // title: '提示',
// // desc: '请填写完整的信息'
// // });
// // }else{
// // this.isDisable=true
// // }
// },
getEditorValue
:
_debounce
(()
=>
{
this
.
emailContent
=
this
.
sad
this
.
sad
=
value
// if(this.emailContent==''){
// this.isDisable=false
// this.$Notice.error({
// title: '提示',
// desc: '请填写完整的信息'
// });
// }else{
// this.isDisable=true
// }
},
if
(
this
.
emailContent
==
''
){
this
.
isDisable
=
false
}
else
{
this
.
isDisable
=
true
}
}),
delateFile
(
index
){
this
.
fileList
.
splice
(
index
,
1
)
this
.
uploadFileList
.
splice
(
index
,
1
)
...
...
src/service/util.js
0 → 100644
View file @
04fa10e1
export
function
_debounce
(
fn
,
delay
)
{
let
timer
=
null
delay
=
delay
||
200
return
function
()
{
let
args
=
arguments
if
(
timer
)
{
clearTimeout
(
timer
)
}
timer
=
setTimeout
(
function
()
{
timer
=
null
fn
.
apply
(
this
,
args
)
}.
bind
(
this
),
delay
)
}
}
export
function
_throttle
(
fn
,
interval
)
{
let
last
=
null
let
timer
=
null
interval
=
interval
||
200
return
function
()
{
let
self
=
this
let
args
=
arguments
let
now
=
+
new
Date
()
if
(
last
&&
now
-
last
<
interval
)
{
clearTimeout
(
timer
)
timer
=
setTimeout
(
function
()
{
last
=
now
fn
.
apply
(
self
,
args
)
},
interval
)
}
else
{
last
=
now
fn
.
apply
(
self
,
args
)
}
}
}
\ No newline at end of file
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