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
0b5aac00
Commit
0b5aac00
authored
Sep 20, 2019
by
FE-安焕焕
👣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
引入文件问题
parent
c1a37cf3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
92 additions
and
5 deletions
+92
-5
allResume.vue
src/page/resume/allResume.vue
+2
-2
channel.vue
src/page/resume/channel.vue
+2
-2
util.js
src/service/util.js
+88
-1
No files found.
src/page/resume/allResume.vue
View file @
0b5aac00
...
@@ -444,12 +444,12 @@ import qs from 'qs'
...
@@ -444,12 +444,12 @@ import qs from 'qs'
import
{
import
{
sapi
sapi
}
from
'
../../config
'
}
from
'
../../config
'
import
{
_debounce
,
_throttle
}
from
'
../../service/util.js
'
import
{
_debounce
,
_throttle
,
emailValidata
,
emailRule
,
vidte
,
validator
}
from
'
../../service/util.js
'
import
localStorage
from
'
../../service/localstorage.service
'
import
localStorage
from
'
../../service/localstorage.service
'
import
Router
from
'
vue-router
'
;
import
Router
from
'
vue-router
'
;
import
ckeditor
from
'
../../components/ckeditor
'
import
ckeditor
from
'
../../components/ckeditor
'
import
{
mapState
}
from
'
vuex
'
import
{
mapState
}
from
'
vuex
'
import
{
emailValidata
,
emailRule
,
vidte
,
validator
}
from
'
../../service/validte.js
'
//
import {emailValidata, emailRule, vidte, validator} from '../../service/validte.js'
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
...
...
src/page/resume/channel.vue
View file @
0b5aac00
...
@@ -439,11 +439,11 @@ import {Serchinterviewor} from '../../api/interview.server.js'
...
@@ -439,11 +439,11 @@ import {Serchinterviewor} from '../../api/interview.server.js'
import
{
import
{
sapi
sapi
}
from
'
../../config
'
}
from
'
../../config
'
import
{
_debounce
,
_throttle
}
from
'
../../service/util.js
'
import
{
_debounce
,
_throttle
,
emailValidata
,
emailRule
,
vidte
,
validator
}
from
'
../../service/util.js
'
import
ckeditor
from
'
../../components/ckeditor
'
import
ckeditor
from
'
../../components/ckeditor
'
import
{
mapState
}
from
'
vuex
'
import
{
mapState
}
from
'
vuex
'
import
localStorage
from
'
../../service/localstorage.service
'
import
localStorage
from
'
../../service/localstorage.service
'
import
{
emailValidata
,
emailRule
,
vidte
,
validator
}
from
'
../../service/validte.js
'
//
import {emailValidata, emailRule, vidte, validator} from '../../service/validte.js'
export
default
{
export
default
{
data
(){
data
(){
return
{
return
{
...
...
src/service/util.js
View file @
0b5aac00
...
@@ -36,4 +36,91 @@ export function _throttle (fn, interval) {
...
@@ -36,4 +36,91 @@ export function _throttle (fn, interval) {
fn
.
apply
(
self
,
args
)
fn
.
apply
(
self
,
args
)
}
}
}
}
}
}
\ No newline at end of file
export
function
emailValidata
(
rule
,
value
,
callback
){
let
field
=
rule
.
field
let
reg
=
rule
.
pattern
switch
(
field
){
case
'
receiveEmail
'
:
if
(
!
value
)
{
this
.
tip
=
true
this
.
isDisable
=
false
callback
(
new
Error
(
'
收件人不能为空
'
))
}
else
if
(
rule
.
pattern
&&!
rule
.
pattern
.
test
(
value
))
{
this
.
tip
=
true
this
.
isDisable
=
false
callback
(
new
Error
(
'
请输入正确收件人地址
'
))
}
else
{
this
.
tip
=
false
this
.
isDisable
=
true
callback
()
}
break
;
case
'
theme
'
:
if
(
!
value
)
{
this
.
isDisable
=
false
callback
(
new
Error
(
'
主题能为空
'
))
}
else
{
this
.
isDisable
=
true
callback
()
}
break
;
case
'
copyname
'
:
if
(
value
&&
reg
&&!
reg
.
test
(
value
))
{
this
.
isDisable
=
false
callback
(
new
Error
(
'
请输入正确抄送地址
'
))
}
else
{
this
.
isDisable
=
true
callback
()
}
break
;
case
'
UpdateOWER
'
:
if
(
!
value
)
{
this
.
isDisable
=
false
callback
(
new
Error
(
'
邀约人不能为空
'
))
}
else
{
this
.
isDisable
=
true
callback
()
}
break
;
case
'
UpdateTIME
'
:
if
(
!
value
)
{
this
.
isDisable
=
false
callback
(
new
Error
(
'
面试时间不能为空
'
))
}
else
{
this
.
isDisable
=
true
callback
()
}
break
;
case
'
UpdateVIEW
'
:
if
(
!
value
)
{
this
.
isDisable
=
false
callback
(
new
Error
(
'
面试官不能为空
'
))
}
else
{
this
.
isDisable
=
true
callback
()
}
break
;
default
:
callback
()
break
;
}
}
export
const
emailRule
=
/^
((([
a-z0-9_
\.
-
]
+
)
@
([\d
a-z
\.
-
]
+
)\.([
a-z
\.]{2,6}\;))
*
(([
a-z0-9_
\.
-
]
+
)
@
([\d
a-z
\.
-
]
+
)\.([
a-z
\.]{2,6})))
$/
export
function
vidte
(
rule
,
value
,
callback
){
if
(
this
.
emailMassage
==
true
){
callback
(
new
Error
(
'
你尚未选择简历,请先选择简历
'
))
}
else
if
(
this
.
allEmailVilitor
==
true
){
callback
(
new
Error
(
'
不能选择多份简历,请选择单份简历
'
))
}
else
{
callback
()
}
}
export
function
validator
(
rule
,
value
,
callback
){
if
(
!
value
)
this
.
$Notice
.
warning
({
title
:
'
提示
'
,
desc
:
'
请输入您要通知的面试官
'
})
callback
()
}
\ 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