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
4ad66726
Commit
4ad66726
authored
Apr 02, 2021
by
Sixiang_Zzb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
小区模块文案修改和排版修改,物业模块文案修改
parent
61fdac01
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
116 additions
and
101 deletions
+116
-101
TreeAction.tsx
src/components/TreeAction/TreeAction.tsx
+66
-42
menu.ts
src/locales/en-US/menu.ts
+1
-1
Adds.tsx
src/pages/CommunityManagement/CellList/Adds.tsx
+5
-7
Details.tsx
src/pages/CommunityManagement/CellList/Details.tsx
+2
-2
Bookings.tsx
src/pages/CommunityManagement/FacilityBookings/Bookings.tsx
+1
-1
Facility.tsx
src/pages/CommunityManagement/FacilityBookings/Facility.tsx
+19
-23
FacilityTow.tsx
...ages/CommunityManagement/FacilityBookings/FacilityTow.tsx
+19
-22
UsersAdd.tsx
src/pages/UserManagement/LIFEUserManagement/UsersAdd.tsx
+1
-1
power.js
src/utils/power.js
+2
-2
No files found.
src/components/TreeAction/TreeAction.tsx
View file @
4ad66726
import
React
,
{
useEffect
}
from
'react'
;
import
React
,
{
useEffect
}
from
'react'
;
import
styles
from
'./index.less'
;
import
{
Tree
}
from
'antd'
;
// const treeData = [
// {
// title: 'LIFE用户管理',
...
...
@@ -93,10 +92,10 @@ const treeData = [
title
:
'Life user management'
,
key
:
'A'
,
children
:
[
{
title
:
'View life users'
,
key
:
'2'
},
{
title
:
'View life users'
,
key
:
'2'
},
{
title
:
'Edit life user'
,
key
:
'3'
},
{
title
:
'Add owner file'
,
key
:
'4'
},
{
title
:
'Cancellation of owner files'
,
key
:
'5'
},
{
title
:
'Cancellation of owner files'
,
key
:
'5'
},
],
},
{
title
:
'Data center'
,
key
:
'1'
},
...
...
@@ -104,17 +103,17 @@ const treeData = [
title
:
'Service provider management'
,
key
:
'B'
,
children
:
[
{
title
:
'View service provider'
,
key
:
'6'
},
{
title
:
'View service provider'
,
key
:
'6'
},
{
title
:
'Editorial service provider'
,
key
:
'7'
},
{
title
:
'Add service provider'
,
key
:
'8'
},
{
title
:
'Cancellation of service provider'
,
key
:
'9'
},
{
title
:
'Cancellation of service provider'
,
key
:
'9'
},
],
},
{
title
:
'Property management'
,
key
:
'C'
,
children
:
[
{
title
:
'View property fee records'
,
key
:
'10'
},
{
title
:
'View property fee records'
,
key
:
'10'
},
{
title
:
'Add property fee record'
,
key
:
'11'
},
],
},
...
...
@@ -122,7 +121,7 @@ const treeData = [
title
:
'Estate management'
,
key
:
'D'
,
children
:
[
{
title
:
'View property services'
,
key
:
'12'
},
{
title
:
'View property services'
,
key
:
'12'
},
{
title
:
'Edit property services'
,
key
:
'13'
},
{
title
:
'Cancellation of property services'
,
key
:
'14'
},
],
...
...
@@ -131,7 +130,7 @@ const treeData = [
title
:
'Order management'
,
key
:
'E'
,
children
:
[
{
title
:
'View order'
,
key
:
'15'
},
{
title
:
'View order'
,
key
:
'15'
},
{
title
:
'Edit order'
,
key
:
'16'
},
],
},
...
...
@@ -139,26 +138,26 @@ const treeData = [
title
:
'Contract management'
,
key
:
'F'
,
children
:
[
{
title
:
'View contract'
,
key
:
'17'
},
{
title
:
'View contract'
,
key
:
'17'
},
{
title
:
'Edit contract'
,
key
:
'18'
},
{
title
:
'Add contract'
,
key
:
'19'
},
{
title
:
'Add contract'
,
key
:
'19'
},
],
},
{
title
:
'Community management'
,
key
:
'G'
,
children
:
[
{
title
:
'View community'
,
key
:
'20'
},
{
title
:
'View community'
,
key
:
'20'
},
{
title
:
'Edit community'
,
key
:
'21'
},
{
title
:
'Add cell'
,
key
:
'22'
},
],
},
{
title
:
'Visitor record'
,
key
:
'26'
},
{
title
:
'Visitor record
s
'
,
key
:
'26'
},
{
title
:
'Booking facilities'
,
key
:
'H'
,
children
:
[
{
title
:
'View booking services'
,
key
:
'27'
},
{
title
:
'View booking services'
,
key
:
'27'
},
{
title
:
'Edit booking service'
,
key
:
'28'
},
{
title
:
'Add booking service'
,
key
:
'29'
},
],
...
...
@@ -167,55 +166,80 @@ const treeData = [
title
:
'Back-stage management'
,
key
:
'I'
,
children
:
[
{
title
:
'View background account'
,
key
:
'30'
},
{
title
:
'View background account'
,
key
:
'30'
},
{
title
:
'Configure background account'
,
key
:
'31'
},
],
},
];
const
TreeAction
=
(
props
:
any
)
=>
{
const
{
value
,
onChange
}
=
props
const
onSelect
=
(
selectedKeys
:
any
,
info
:
any
)
=>
{
const
TreeAction
=
(
props
:
any
)
=>
{
const
{
value
,
onChange
}
=
props
;
const
onSelect
=
(
selectedKeys
:
any
,
info
:
any
)
=>
{
// console.log('selected', selectedKeys, info);
};
useEffect
(()
=>
{
useEffect
(()
=>
{
onChange
([
'2'
,
'3'
,
'4'
,
'5'
,
'1'
,
'6'
,
'7'
,
'8'
,
'9'
,
'10'
,
'11'
,
'12'
,
'13'
,
'14'
,
'15'
,
'16'
,
'17'
,
'18'
,
'19'
,
'20'
,
'21'
,
'22'
,
'26'
,
'27'
,
'28'
,
'29'
,
'30'
,
'31'
])
},[])
const
onCheck
=
(
checkedKeys
:
any
,
info
:
any
)
=>
{
const
checklist
=
[
'A'
,
'B'
,
'C'
,
'D'
,
'E'
,
'F'
,
'G'
,
'H'
,
'I'
]
var
array
=
new
Array
()
checkedKeys
.
map
((
items
:
any
,
index
:
any
)
=>
{
var
nothave
=
true
'2'
,
'3'
,
'4'
,
'5'
,
'1'
,
'6'
,
'7'
,
'8'
,
'9'
,
'10'
,
'11'
,
'12'
,
'13'
,
'14'
,
'15'
,
'16'
,
'17'
,
'18'
,
'19'
,
'20'
,
'21'
,
'22'
,
'26'
,
'27'
,
'28'
,
'29'
,
'30'
,
'31'
,
]);
},
[]);
const
onCheck
=
(
checkedKeys
:
any
,
info
:
any
)
=>
{
const
checklist
=
[
'A'
,
'B'
,
'C'
,
'D'
,
'E'
,
'F'
,
'G'
,
'H'
,
'I'
];
var
array
=
new
Array
();
checkedKeys
.
map
((
items
:
any
,
index
:
any
)
=>
{
var
nothave
=
true
;
checklist
.
map
((
check
,
i
)
=>
{
if
(
items
==
check
)
{
nothave
=
false
nothave
=
false
;
}
})
})
;
if
(
nothave
)
{
array
.
push
(
items
)
array
.
push
(
items
)
;
}
})
})
;
// props.onSubmit(array)
onChange
(
array
)
onChange
(
array
)
;
};
return
(
<>
<
Tree
checkable
defaultExpandedKeys=
{
[]
}
defaultSelectedKeys=
{
[]
}
defaultCheckedKeys=
{
[
'A'
,
'B'
,
'C'
,
'D'
,
'E'
,
'F'
,
'G'
,
'H'
,
'I'
,
'1'
,
'26'
]
}
<
Tree
checkable
defaultExpandedKeys=
{
[]
}
defaultSelectedKeys=
{
[]
}
defaultCheckedKeys=
{
[
'A'
,
'B'
,
'C'
,
'D'
,
'E'
,
'F'
,
'G'
,
'H'
,
'I'
,
'1'
,
'26'
]
}
onSelect=
{
onSelect
}
onCheck=
{
onCheck
}
treeData=
{
treeData
}
/>
treeData=
{
treeData
}
/>
</>
);
};
export
default
TreeAction
;
src/locales/en-US/menu.ts
View file @
4ad66726
...
...
@@ -77,7 +77,7 @@ export default {
'menu.communitymanagement.celllist'
:
'Community'
,
'menu.communitymanagement.communityannouncement'
:
'Announcements'
,
'menu.communitymanagement.facilitybookings'
:
'Facility Bookings'
,
'menu.communitymanagement.visitorrecord'
:
'Visitor Record'
,
'menu.communitymanagement.visitorrecord'
:
'Visitor Record
s
'
,
'menu.accountmanagement'
:
'General Admin Functions'
,
'menu.accountmanagement.accountmanagement1'
:
'Admin Account Management'
,
'menu.accountmanagement.systemfeedback'
:
'System Issue Feedback'
,
...
...
src/pages/CommunityManagement/CellList/Adds.tsx
View file @
4ad66726
...
...
@@ -305,13 +305,15 @@ const Adds = (props: any) => {
setForms
(
!
forms
);
};
console
.
log
(
match
);
return
(
<>
<
Spin
spinning=
{
loading
}
tip=
"loading..."
size=
"large"
>
<
div
className=
"form"
>
<
h3
className=
"capi"
>
<
EditOutlined
/>
{
match
&&
match
.
params
?
'edit'
:
'Create New'
}
community
{
match
&&
match
.
params
.
id
?
'edit'
:
'Create New'
}
community
<
div
className=
"back"
>
<
Button
onClick=
{
goToReturn
}
>
<
LeftOutlined
/>
...
...
@@ -356,11 +358,7 @@ const Adds = (props: any) => {
/>
</
Form
.
Item
>
{
/* 小区联系方式 */
}
<
Form
.
Item
name=
"residentialPhone"
label=
"Community Telephone"
rules=
{
village
[
4
]
as
any
}
>
<
Form
.
Item
name=
"residentialPhone"
label=
"Contact Number"
rules=
{
village
[
4
]
as
any
}
>
<
Input
style=
{
{
marginRight
:
'10px'
,
width
:
'240px'
}
}
placeholder=
"Please enter phone"
...
...
@@ -369,7 +367,7 @@ const Adds = (props: any) => {
/>
</
Form
.
Item
>
{
/* 小区邮箱 */
}
<
Form
.
Item
name=
"residentialEmail"
label=
"
Community Mailbox
"
rules=
{
village
[
5
]
as
any
}
>
<
Form
.
Item
name=
"residentialEmail"
label=
"
Email
"
rules=
{
village
[
5
]
as
any
}
>
<
Input
style=
{
{
width
:
'240px'
}
}
placeholder=
"Please enter email"
/>
</
Form
.
Item
>
{
/* 小区管理员 */
}
...
...
src/pages/CommunityManagement/CellList/Details.tsx
View file @
4ad66726
...
...
@@ -211,11 +211,11 @@ const Detail = (props: any) => {
{
/* ---------- */
}
<
div
className=
"inst"
>
<
div
className=
"item"
>
<
label
>
Co
mmunity Telephone
:
</
label
>
<
label
>
Co
ntact Number
:
</
label
>
<
span
>
{
detailData
.
communityData
.
residentialPhone
}
</
span
>
</
div
>
<
div
className=
"item"
>
<
label
>
Community
Email:
</
label
>
<
label
>
Email:
</
label
>
<
span
>
{
detailData
.
communityData
.
residentialEmail
}
</
span
>
</
div
>
</
div
>
...
...
src/pages/CommunityManagement/FacilityBookings/Bookings.tsx
View file @
4ad66726
...
...
@@ -361,7 +361,7 @@ const Bookings = (props: any) => {
<
TitleBack
title=
"Facility Bookings"
/>
<
div
className=
{
styles
.
box1
}
>
<
div
className=
{
styles
.
box1item1
}
>
Communit :
</
div
>
<
div
className=
{
styles
.
box1item1
}
>
Communit
y
:
</
div
>
<
div
className=
{
styles
.
box1item2
}
>
<
Spin
spinning=
{
loading
}
tip=
"Finding..."
>
<
SearchOptionsCommnity
...
...
src/pages/CommunityManagement/FacilityBookings/Facility.tsx
View file @
4ad66726
...
...
@@ -131,7 +131,7 @@ const Facility = (props: any) => {
}
else
{
tmp
.
tab
=
3
;
setPictrueExtend
(
tmp
);
setPATHNAME
(
'
Add
Facility'
);
setPATHNAME
(
'
Create New
Facility'
);
}
},
[]);
...
...
@@ -329,15 +329,29 @@ const Facility = (props: any) => {
</
Form
.
Item
>
{
/* 设施名称 以及费用 */
}
<
Form
.
Item
label=
"Facility C
lassification
"
name=
"facilityName"
rules=
{
NewFaci
[
1
]
}
>
<
Form
.
Item
label=
"Facility C
ategory
"
name=
"facilityName"
rules=
{
NewFaci
[
1
]
}
>
<
Input
placeholder=
"Facility C
lassification
"
placeholder=
"Facility C
ategory
"
disabled=
{
facilityDetail
}
maxLength=
{
30
}
style=
{
{
width
:
'200px'
}
}
/>
</
Form
.
Item
>
{
/* 设施详情上传 */
}
<
Form
.
Item
name=
"categoriesDetailsImageName"
label=
"Photo"
rules=
{
NewFaci
[
4
]
}
>
<
PictureOptionsRow
over=
{
imgOpen
}
data=
{
{
// userToken: token,
imageType
:
'categoriesDetailsImageName'
,
extends
:
ctyName
,
}
}
limitNums=
{
99
}
value=
{
fileList
}
/>
</
Form
.
Item
>
<
Input
.
Group
>
<
Form
.
Item
label=
"Fee($):"
name=
"communityManagerFee"
style=
{
{
marginRight
:
80
}
}
>
<
InputNumber
...
...
@@ -368,7 +382,7 @@ const Facility = (props: any) => {
<
hr
></
hr
>
{
/* 设施品类上传 */
}
<
Form
.
Item
label=
"Facilities"
className=
"flex required"
style=
{
{
marginBottom
:
0
}
}
>
<
Form
.
Item
label=
"
Add
Facilities"
className=
"flex required"
style=
{
{
marginBottom
:
0
}
}
>
<
Facilitys
disabled=
{
imgOpen
}
updata=
{
{
...
...
@@ -379,24 +393,6 @@ const Facility = (props: any) => {
></
Facilitys
>
</
Form
.
Item
>
{
/* 设施详情上传 */
}
<
Form
.
Item
name=
"categoriesDetailsImageName"
label=
"Facility Pictures"
rules=
{
NewFaci
[
4
]
}
>
<
PictureOptionsRow
over=
{
imgOpen
}
data=
{
{
// userToken: token,
imageType
:
'categoriesDetailsImageName'
,
extends
:
ctyName
,
}
}
limitNums=
{
99
}
value=
{
fileList
}
/>
</
Form
.
Item
>
{
/* 时间 */
}
<
Form
.
Item
label=
"Opening Hours"
className=
"required"
>
<
Form
.
Item
name=
"Time"
noStyle
>
...
...
@@ -430,7 +426,7 @@ const Facility = (props: any) => {
/>
</
Form
.
Item
>
<
Form
.
Item
label=
"Cancel
Reservation Without Payment
"
label=
"Cancel
Booking Without Payment
"
name=
"nomarginCancelReservationDay"
rules=
{
NewFaci
[
6
]
}
>
...
...
src/pages/CommunityManagement/FacilityBookings/FacilityTow.tsx
View file @
4ad66726
...
...
@@ -324,14 +324,29 @@ const FacilityTow = (props: any) => {
labelAlign=
"right"
>
{
/* 设施名称 以及费用 */
}
<
Form
.
Item
label=
"Facility C
lassification
"
name=
"facilityName"
rules=
{
NewFaci
[
1
]
}
>
<
Form
.
Item
label=
"Facility C
ategory
"
name=
"facilityName"
rules=
{
NewFaci
[
1
]
}
>
<
Input
placeholder=
"Facility C
lassification
"
placeholder=
"Facility C
ategory
"
disabled=
{
facilityDetail
}
maxLength=
{
30
}
style=
{
{
width
:
'200px'
}
}
/>
</
Form
.
Item
>
{
/* 设施详情上传 */
}
<
Form
.
Item
name=
"categoriesDetailsImageName"
label=
"Photo"
rules=
{
NewFaci
[
4
]
}
>
<
PictureOptionsRow
over=
{
facilityDetail
}
data=
{
{
// userToken: token,
imageType
:
'categoriesDetailsImageName'
,
extends
:
ctyName
,
}
}
limitNums=
{
99
}
imgs=
{
fileList
}
/>
</
Form
.
Item
>
<
Input
.
Group
>
<
Form
.
Item
label=
"Fee($):"
name=
"communityManagerFee"
style=
{
{
marginRight
:
80
}
}
>
<
InputNumber
...
...
@@ -361,7 +376,7 @@ const FacilityTow = (props: any) => {
{
/* 设施品类上传 */
}
<
Form
.
Item
label=
"Facilities"
label=
"
Add
Facilities"
className=
"flex required"
style=
{
{
marginBottom
:
0
,
minHeight
:
134
}
}
>
...
...
@@ -375,24 +390,6 @@ const FacilityTow = (props: any) => {
></
Facilitys
>
</
Form
.
Item
>
{
/* 设施详情上传 */
}
<
Form
.
Item
name=
"categoriesDetailsImageName"
label=
"Facility Pictures"
rules=
{
NewFaci
[
4
]
}
>
<
PictureOptionsRow
over=
{
facilityDetail
}
data=
{
{
// userToken: token,
imageType
:
'categoriesDetailsImageName'
,
extends
:
ctyName
,
}
}
limitNums=
{
99
}
imgs=
{
fileList
}
/>
</
Form
.
Item
>
{
/* 时间 */
}
<
Form
.
Item
label=
"Opening Hours"
className=
"required"
>
<
Form
.
Item
name=
"Time"
noStyle
>
...
...
@@ -430,7 +427,7 @@ const FacilityTow = (props: any) => {
/>
</
Form
.
Item
>
<
Form
.
Item
label=
"Cancel
Reservation
Without Payment"
label=
"Cancel
Booking
Without Payment"
name=
"nomarginCancelReservationDay"
rules=
{
NewFaci
[
6
]
}
>
...
...
src/pages/UserManagement/LIFEUserManagement/UsersAdd.tsx
View file @
4ad66726
...
...
@@ -92,7 +92,7 @@ const UsersAdd = (props: any) => {
</
div
>
<
div
className=
{
styles
.
box2
}
>
<
div
className=
{
styles
.
box2item1
}
>
Contact Detail
s
</
div
>
<
div
className=
{
styles
.
box2item1
}
>
Addres
s
</
div
>
<
div
className=
{
styles
.
box2item2
}
>
<
SearchOptionsCommnity
alone=
{
true
}
opname=
{
extendName
}
/>
</
div
>
...
...
src/utils/power.js
View file @
4ad66726
...
...
@@ -326,10 +326,10 @@ export const enUsFaci = [
],
},
{
title
:
'Visitor Record'
,
title
:
'Visitor Record
s
'
,
key
:
'60'
,
disabled
:
true
,
children
:
[{
title
:
'View Visitor Record'
,
key
:
'61'
,
disableCheckbox
:
true
}],
children
:
[{
title
:
'View Visitor Record
s
'
,
key
:
'61'
,
disableCheckbox
:
true
}],
},
{
title
:
'Building Condition Report'
,
...
...
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