Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SuperMan
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
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
罗超
SuperMan
Commits
eba04946
Commit
eba04946
authored
Dec 05, 2019
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
40e366c1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
3 deletions
+17
-3
Diplomaticplat.vue
src/components/administrative/Diplomaticplat.vue
+17
-3
No files found.
src/components/administrative/Diplomaticplat.vue
View file @
eba04946
...
...
@@ -45,6 +45,9 @@
.DelDialog
.el-form-item__label
{
line-height
:
43px
;
}
.DelDialog
.el-form-item
{
margin-bottom
:
5px
;
}
</
style
>
<
template
>
...
...
@@ -184,7 +187,7 @@
</td>
<td>
<el-form-item
label=
"联系电话"
prop=
"ContactMobile"
>
<el-input
class=
"w217"
type=
"text"
v-model=
"addMsg.ContactMobile"
:placeholder=
"$t('pub.pleaseImport')"
></el-input>
<el-input
class=
"w217"
type=
"text"
v-model=
"addMsg.ContactMobile"
@
keyup
.
native=
"checkInteger(addMsg,'ContactMobile')"
:placeholder=
"$t('pub.pleaseImport')"
></el-input>
</el-form-item>
</td>
</tr>
...
...
@@ -273,6 +276,18 @@ export default {
callback
();
}
}
let
validatePhone
=
(
rule
,
value
,
callback
)
=>
{
let
pattern
=
/^
((
13
[
0-9
])
|
(
14
[
5|7
])
|
(
15
([
0-3
]
|
[
5-9
]))
|
(
18
[
0,5-9
])
|
(
17
[
0,5-9
])
|
(
16
[
0,5-9
]))\d{8}
$|^
((
13
[
0-9
])
|
(
14
[
5|7
])
|
(
15
([
0-3
]
|
[
5-9
]))
|
(
18
[
0,5-9
])
|
(
17
[
0,5-9
])
|
(
16
[
0,5-9
]))\d{8}
$|^0
\d{2,3}
-
?\d{7,8}
$/
;
if
(
this
.
addMsg
.
ContactMobile
==
''
)
{
return
callback
(
new
Error
(
'请填写手机号码'
));
}
else
if
(
!
pattern
.
test
(
this
.
addMsg
.
ContactMobile
)){
return
callback
(
new
Error
(
'请输入正确的号码'
));
}
else
{
callback
();
}
}
return
{
companyList
:[],
loading
:
false
,
...
...
@@ -311,7 +326,7 @@ export default {
BranchId
:
[{
required
:
true
,
validator
:
validateCompany
,
trigger
:
"change"
}],
Name
:
[{
required
:
true
,
message
:
'请输入平台名称'
,
trigger
:
"blur"
}],
Contact
:
[{
required
:
true
,
message
:
'请输入联系人'
,
trigger
:
"blur"
}],
ContactMobile
:
[{
required
:
true
,
message
:
'请输入联系电话'
,
trigger
:
"blur"
}],
ContactMobile
:
[{
required
:
true
,
validator
:
validatePhone
,
trigger
:
"blur"
}],
},
}
},
...
...
@@ -331,7 +346,6 @@ export default {
this
.
obj
,
res
=>
{
this
.
loading
=
false
;
console
.
log
(
"sadfsf"
,
res
);
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
dataList
=
res
.
data
.
data
.
pageData
;
this
.
total
=
res
.
data
.
data
.
count
;
...
...
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