Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
party-build-cloud
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
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
wangqinghua
party-build-cloud
Commits
fa77a0b2
Commit
fa77a0b2
authored
Aug 07, 2019
by
wangqinghua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
初始化参数
parent
49f08228
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
room-apply.html
src/pages/serve-pages/meet-room/room-apply/room-apply.html
+1
-1
room-apply.ts
src/pages/serve-pages/meet-room/room-apply/room-apply.ts
+9
-2
No files found.
src/pages/serve-pages/meet-room/room-apply/room-apply.html
View file @
fa77a0b2
...
@@ -73,7 +73,7 @@
...
@@ -73,7 +73,7 @@
<ion-label
class=
"item-left"
><span
class=
"color-red"
>
*
</span>
参会人数:
</ion-label>
<ion-label
class=
"item-left"
><span
class=
"color-red"
>
*
</span>
参会人数:
</ion-label>
<ion-input
[(
ngModel
)]="
obj
.
participantAmount
"
type=
"text"
maxlength=
"20"
<ion-input
[(
ngModel
)]="
obj
.
participantAmount
"
type=
"text"
maxlength=
"20"
[
placeholder
]="
roomMax
"
></ion-input>
[
placeholder
]="
roomMax
"
></ion-input>
<ion-label
*
ngIf=
"check.participantAmount"
class=
"check-tips"
>
请输入参会人数
</ion-label>
<ion-label
style=
"max-width: 100%"
*
ngIf=
"check.participantAmount"
class=
"check-tips"
>
参会人数不可大于会议室可容纳数({{roomMax}})
</ion-label>
</ion-item>
</ion-item>
<div
class=
"item-box"
>
<div
class=
"item-box"
>
<div
class=
"left"
><span
class=
"color-red"
>
*
</span>
参会人员:
<div
class=
"left"
><span
class=
"color-red"
>
*
</span>
参会人员:
...
...
src/pages/serve-pages/meet-room/room-apply/room-apply.ts
View file @
fa77a0b2
...
@@ -26,7 +26,7 @@ export class RoomApplyPage {
...
@@ -26,7 +26,7 @@ export class RoomApplyPage {
personList
:
[],
personList
:
[],
remark
:
''
,
remark
:
''
,
participant
:
''
,
participant
:
''
,
participantAmount
:
''
,
participantAmount
:
null
,
equipmervice
:
[],
equipmervice
:
[],
};
};
...
@@ -185,7 +185,7 @@ export class RoomApplyPage {
...
@@ -185,7 +185,7 @@ export class RoomApplyPage {
handler
:
()
=>
{
handler
:
()
=>
{
this
.
obj
.
roomId
=
e
.
id
;
this
.
obj
.
roomId
=
e
.
id
;
this
.
obj
.
roomText
=
e
.
name
;
this
.
obj
.
roomText
=
e
.
name
;
this
.
roomMax
=
`该会议室可容纳
${
e
.
accommodation
}
人`
;
this
.
roomMax
=
`该会议室可容纳
${
e
.
accommodation
}
人`
;
}
}
};
};
return
data
;
return
data
;
...
@@ -275,6 +275,13 @@ export class RoomApplyPage {
...
@@ -275,6 +275,13 @@ export class RoomApplyPage {
}
}
submit
()
{
submit
()
{
const
max
=
this
.
roomMax
.
replace
(
/
[^
0-9
]
/ig
,
""
);
console
.
log
(
max
);
if
(
isNaN
(
this
.
obj
.
participantAmount
)
||
this
.
obj
.
participantAmount
>
max
)
{
console
.
log
(
this
.
obj
.
participantAmount
);
this
.
check
.
participantAmount
=
true
;
return
false
;
}
//校验
//校验
let
checkBool
=
false
;
let
checkBool
=
false
;
for
(
let
i
in
this
.
check
)
{
for
(
let
i
in
this
.
check
)
{
...
...
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