Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
TOSTUMI
Project
Project
Details
Activity
Releases
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
Maple
TOSTUMI
Commits
57d20fdc
Commit
57d20fdc
authored
Jan 20, 2021
by
cellee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Signed-off-by: cellee <893264950@qq.com>
parent
f0aec099
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
246 additions
and
222 deletions
+246
-222
Facility.tsx
src/pages/CommunityManagement/FacilityBookings/Facility.tsx
+5
-1
FacilityTow.tsx
...ages/CommunityManagement/FacilityBookings/FacilityTow.tsx
+241
-221
No files found.
src/pages/CommunityManagement/FacilityBookings/Facility.tsx
View file @
57d20fdc
...
...
@@ -164,8 +164,12 @@ const Facility = (props: any) => {
let
imgs
:
any
=
[];
// 小设施图片 -- 用作提交
let
name
=
[];
// 小设施名称 -- 用作判断重名
for
(
let
i
in
FacilitysList
)
{
// 设施名称不能为空
if
(
FacilitysList
[
i
].
name
==
''
)
{
message
.
error
(
'Facility name cannot be empty!'
);
return
false
;
}
name
.
push
(
FacilitysList
[
i
].
name
);
imgs
[
i
]
=
`
${
FacilitysList
[
i
].
name
}
&
${
FacilitysList
[
i
].
fileList
[
0
].
name
}
&
${
FacilitysList
[
i
].
fileList
[
0
].
uid
}
`
;
...
...
src/pages/CommunityManagement/FacilityBookings/FacilityTow.tsx
View file @
57d20fdc
...
...
@@ -82,7 +82,7 @@ const FacilityTow = (props: any) => {
return
n1
.
id
-
n2
.
id
;
});
}
else
{
history
.
push
(
'/CommunityManagement/FacilityBookings'
);
history
.
go
(
-
1
);
}
},
[
DataSave
]);
...
...
@@ -181,6 +181,12 @@ const FacilityTow = (props: any) => {
let
name
=
[];
// 小设施名称 -- 用作判断重名
for
(
let
i
in
FacilitysList
)
{
// 设施名称不能为空
if
(
FacilitysList
[
i
].
name
==
''
)
{
message
.
error
(
'Facility name cannot be empty!'
);
return
false
;
}
name
.
push
(
FacilitysList
[
i
].
name
);
imgs
[
i
...
...
@@ -281,6 +287,8 @@ const FacilityTow = (props: any) => {
);
return
(
<>
{
DataSave
?
(
<
div
style=
{
{
padding
:
16
}
}
>
{
/* 头部组件v1.2 */
}
<
TitleBack
title=
{
PATHNAME
}
url=
{
getUrlLast
(
location
.
pathname
)
+
'?Facility=true'
}
/>
...
...
@@ -298,7 +306,9 @@ const FacilityTow = (props: any) => {
tabBarExtraContent=
{
facilityDetail
?
operations
:
''
}
>
{
DataSave
?
DataSave
.
facilities
.
map
((
i
:
any
)
=>
<
TabPane
tab=
{
`${i.name}`
}
key=
{
i
.
id
}
></
TabPane
>)
?
DataSave
.
facilities
.
map
((
i
:
any
)
=>
(
<
TabPane
tab=
{
`${i.name}`
}
key=
{
i
.
id
}
></
TabPane
>
))
:
''
}
</
Tabs
>
...
...
@@ -406,7 +416,11 @@ const FacilityTow = (props: any) => {
{
/* 预约设置 */
}
<
Input
.
Group
>
<
Form
.
Item
name=
"cancelReservationDay"
label=
"Early Cancellation"
rules=
{
NewFaci
[
5
]
}
>
<
Form
.
Item
name=
"cancelReservationDay"
label=
"Early Cancellation"
rules=
{
NewFaci
[
5
]
}
>
<
Input
onKeyUp=
{
keyup
.
bind
(
this
,
'cancelReservationDay'
)
}
disabled=
{
facilityDetail
}
...
...
@@ -497,7 +511,9 @@ const FacilityTow = (props: any) => {
<
p
>
Closing of facilities :
{
' '
}
<
span
style=
{
{
color
:
'#f00'
}
}
>
{
DataSaveDetail
&&
DataSaveDetail
.
facilities
&&
DataSaveDetail
.
facilities
.
facilityName
{
DataSaveDetail
&&
DataSaveDetail
.
facilities
&&
DataSaveDetail
.
facilities
.
facilityName
?
DataSaveDetail
.
facilities
.
facilityName
:
''
}{
' '
}
</
span
>
...
...
@@ -505,6 +521,10 @@ const FacilityTow = (props: any) => {
</
p
>
</
Modal
>
</
div
>
)
:
(
''
)
}
</>
);
};
...
...
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