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
417acd93
Commit
417acd93
authored
Nov 25, 2020
by
cellee
Browse files
Options
Browse Files
Download
Plain Diff
合并
Signed-off-by:
cellee
<
893264950@qq.com
>
parents
264be1ad
1935e33d
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
32 additions
and
25 deletions
+32
-25
index.jsx
src/components/SelectOptions/index.jsx
+1
-1
TableShow.tsx
src/components/TableShow/TableShow.tsx
+2
-2
index.jsx
src/components/TagSelect/index.jsx
+10
-11
menu.ts
src/locales/en-US/menu.ts
+1
-1
ChargeManager.tsx
src/pages/PropertyManagement/ChargeManager.tsx
+1
-1
ServiceProviderManagement.tsx
...t/ServiceProviderManagement/ServiceProviderManagement.tsx
+2
-1
Services.tsx
...ges/UserManagement/ServiceProviderManagement/Services.tsx
+15
-8
No files found.
src/components/SelectOptions/index.jsx
View file @
417acd93
...
@@ -144,7 +144,7 @@ class SelectOptions extends React.PureComponent {
...
@@ -144,7 +144,7 @@ class SelectOptions extends React.PureComponent {
selectoptionsSelectAll
:
'Select All'
,
selectoptionsSelectAll
:
'Select All'
,
selectoptionsSelectNone
:
'Unselect All'
,
selectoptionsSelectNone
:
'Unselect All'
,
selectoptionsAll
:
'All'
,
selectoptionsAll
:
'All'
,
selectoptionsSearchCell
:
'Search
cell
'
,
selectoptionsSearchCell
:
'Search'
,
selectoptionsAllCell
:
' All'
,
selectoptionsAllCell
:
' All'
,
componetVisible
:
'Close'
,
componetVisible
:
'Close'
,
});
});
...
...
src/components/TableShow/TableShow.tsx
View file @
417acd93
...
@@ -119,13 +119,13 @@ const TableShow = (props: any) => {
...
@@ -119,13 +119,13 @@ const TableShow = (props: any) => {
pagination=
{
false
}
pagination=
{
false
}
></
Table
>
></
Table
>
</
Col
>
</
Col
>
<
Col
s
tyle=
{
{
textAlign
:
'center'
}
}
>
<
Col
s
pan=
{
4
}
>
<
Row
style=
{
{
marginTop
:
8
}
}
>
<
Row
style=
{
{
marginTop
:
8
}
}
>
<
div
style=
{
{
textAlign
:
'center'
}
}
>
<
div
style=
{
{
textAlign
:
'center'
}
}
>
<
img
width=
{
80
}
height=
{
80
}
src=
{
unit
.
imgUrl
}
/>
<
img
width=
{
80
}
height=
{
80
}
src=
{
unit
.
imgUrl
}
/>
<
br
/>
<
br
/>
{
item
.
owner
.
cdkCode
}
{
item
.
owner
.
cdkCode
}
<
br
/>
(
{
user_code
[
item
.
owner
.
cdkStatus
]
}
)
<
br
/>
(
{
user_code
[
item
.
owner
.
enable
]
}
)
</
div
>
</
div
>
</
Row
>
</
Row
>
</
Col
>
</
Col
>
...
...
src/components/TagSelect/index.jsx
View file @
417acd93
...
@@ -35,10 +35,10 @@ class TagSelect extends React.Component {
...
@@ -35,10 +35,10 @@ class TagSelect extends React.Component {
icon
:
<
ExclamationCircleOutlined
/>,
icon
:
<
ExclamationCircleOutlined
/>,
content
:
'Some descriptions'
,
content
:
'Some descriptions'
,
onOk
()
{
onOk
()
{
console
.
log
(
'OK'
);
//
console.log('OK');
console
.
log
(
removedTag
);
//
console.log(removedTag);
const
value
=
that
.
state
.
value
.
filter
((
tag
)
=>
tag
!==
removedTag
);
const
value
=
that
.
state
.
value
.
filter
((
tag
)
=>
tag
!==
removedTag
);
console
.
log
(
value
);
//
console.log(value);
that
.
props
.
onRemove
(
removedTag
);
that
.
props
.
onRemove
(
removedTag
);
that
.
setState
({
value
});
that
.
setState
({
value
});
that
.
props
.
onChange
(
value
);
that
.
props
.
onChange
(
value
);
...
@@ -101,8 +101,7 @@ class TagSelect extends React.Component {
...
@@ -101,8 +101,7 @@ class TagSelect extends React.Component {
render
()
{
render
()
{
const
{
value
,
inputVisible
,
inputValue
,
editInputIndex
,
editInputValue
,
visible
}
=
this
.
state
;
const
{
value
,
inputVisible
,
inputValue
,
editInputIndex
,
editInputValue
,
visible
}
=
this
.
state
;
console
.
log
(
this
.
props
.
value
);
console
.
log
(
value
);
return
(
return
(
<>
<>
<
Tag
className=
"editTag"
key=
"Accountant"
>
<
Tag
className=
"editTag"
key=
"Accountant"
>
...
@@ -114,7 +113,7 @@ class TagSelect extends React.Component {
...
@@ -114,7 +113,7 @@ class TagSelect extends React.Component {
return
(
return
(
<
Input
<
Input
ref=
{
this
.
saveEditInputRef
}
ref=
{
this
.
saveEditInputRef
}
key=
{
tag
}
key=
{
tag
.
serviceName
}
size=
"small"
size=
"small"
className=
{
styles
.
tagInput
}
className=
{
styles
.
tagInput
}
value=
{
editInputValue
}
value=
{
editInputValue
}
...
@@ -125,30 +124,30 @@ class TagSelect extends React.Component {
...
@@ -125,30 +124,30 @@ class TagSelect extends React.Component {
);
);
}
}
const
isLongTag
=
tag
.
length
>
20
;
const
isLongTag
=
value
.
length
>
20
;
const
tagElem
=
(
const
tagElem
=
(
<
Tag
<
Tag
className=
"editTag"
className=
"editTag"
key=
{
tag
}
key=
{
tag
.
serviceName
}
closable=
{
index
!==
-
1
}
closable=
{
index
!==
-
1
}
onClose=
{
(
e
)
=>
this
.
handleClose
(
tag
,
e
)
}
onClose=
{
(
e
)
=>
this
.
handleClose
(
tag
,
e
)
}
visible=
{
true
}
visible=
{
true
}
>
>
<
span
<
span
onDoubleClick=
{
(
e
)
=>
{
onDoubleClick=
{
(
e
)
=>
{
this
.
setState
({
editInputIndex
:
index
,
editInputValue
:
tag
},
()
=>
{
this
.
setState
({
editInputIndex
:
index
,
editInputValue
:
tag
.
serviceName
},
()
=>
{
this
.
editInput
.
focus
();
this
.
editInput
.
focus
();
});
});
e
.
preventDefault
();
e
.
preventDefault
();
}
}
}
}
>
>
{
isLongTag
?
`${
tag.slice(0, 20)}
...
`
:
tag
}
{
isLongTag
?
`${
value.slice(0, 20)}
...
`
:
tag
.
serviceName
}
</
span
>
</
span
>
</
Tag
>
</
Tag
>
);
);
return
isLongTag
?
(
return
isLongTag
?
(
<
Tooltip
title=
{
tag
}
key=
{
tag
}
>
<
Tooltip
title=
{
tag
.
serviceName
}
key=
{
tag
.
serviceName
}
>
{
tagElem
}
{
tagElem
}
</
Tooltip
>
</
Tooltip
>
)
:
(
)
:
(
...
...
src/locales/en-US/menu.ts
View file @
417acd93
...
@@ -54,7 +54,7 @@ export default {
...
@@ -54,7 +54,7 @@ export default {
'menu.monitoringcenter'
:
'Monitoring Center'
,
'menu.monitoringcenter'
:
'Monitoring Center'
,
'menu.usemanagement.lifeusers'
:
'LIFE User Management'
,
'menu.usemanagement.lifeusers'
:
'LIFE User Management'
,
'menu.usemanagement.serviceproviders'
:
'Service Provider Management'
,
'menu.usemanagement.serviceproviders'
:
'Service Provider Management'
,
'menu.propertymanagement'
:
'Property Management'
,
'menu.propertymanagement'
:
'Property
Fee
Management'
,
'menu.commercialservice'
:
'Commercial Service'
,
'menu.commercialservice'
:
'Commercial Service'
,
'menu.commercialservice.communitymaintenance'
:
'Community maintenance'
,
'menu.commercialservice.communitymaintenance'
:
'Community maintenance'
,
'menu.commercialservice.ownercomplaints'
:
'Owner Complaints'
,
'menu.commercialservice.ownercomplaints'
:
'Owner Complaints'
,
...
...
src/pages/PropertyManagement/ChargeManager.tsx
View file @
417acd93
...
@@ -154,7 +154,7 @@ const ChargeManager = (props: any) => {
...
@@ -154,7 +154,7 @@ const ChargeManager = (props: any) => {
<
div
className=
{
styles
.
base
}
>
<
div
className=
{
styles
.
base
}
>
<
TitleSearch
<
TitleSearch
listkey=
{
[
'tosOwnerName'
]
}
listkey=
{
[
'tosOwnerName'
]
}
list=
{
[
'
TosOwnerName
'
]
}
list=
{
[
'
Name Of Owner
'
]
}
communitySelect=
{
true
}
communitySelect=
{
true
}
onSubmit=
{
TitleSearchContent
}
onSubmit=
{
TitleSearchContent
}
defaultValue=
{
readyData
}
defaultValue=
{
readyData
}
...
...
src/pages/UserManagement/ServiceProviderManagement/ServiceProviderManagement.tsx
View file @
417acd93
...
@@ -163,7 +163,8 @@ const ServiceProviderManagement = (props: propsType) => {
...
@@ -163,7 +163,8 @@ const ServiceProviderManagement = (props: propsType) => {
...
location
.
query
,
...
location
.
query
,
};
};
}
}
// console.log(CommunityList, flag);
console
.
log
(
location
.
query
);
console
.
log
(
readyData
);
if
(
CommunityList
&&
flag
===
false
)
{
if
(
CommunityList
&&
flag
===
false
)
{
flag
=
true
;
flag
=
true
;
setLoading
(
true
);
setLoading
(
true
);
...
...
src/pages/UserManagement/ServiceProviderManagement/Services.tsx
View file @
417acd93
...
@@ -21,13 +21,20 @@ const Services = (props: any) => {
...
@@ -21,13 +21,20 @@ const Services = (props: any) => {
useEffect
(()
=>
{
useEffect
(()
=>
{
if
(
DataServices
!=
null
)
{
if
(
DataServices
!=
null
)
{
console
.
log
(
DataServices
);
console
.
log
(
DataServices
);
let
tmp
=
DataServices
.
data
.
rows
.
map
((
v
:
object
,
i
:
number
)
=>
{
// let tmp = DataServices.data.rows.map((v: object, i: number) => {
return
v
[
'serviceName'
];
// return v['serviceName'];
});
// });
// console.log(tmp);
// tmp = tmp.filter((v: string) => {
// return v !== 'Accountant';
// });
let
tmp
=
DataServices
.
data
.
rows
.
filter
(
(
v
:
{
serviceName
:
string
;
deleted
:
number
},
i
:
number
)
=>
{
return
v
.
serviceName
!==
'Accountant'
&&
v
.
deleted
!==
1
&&
v
;
},
);
console
.
log
(
tmp
);
console
.
log
(
tmp
);
tmp
=
tmp
.
filter
((
v
:
string
)
=>
{
return
v
!==
'Accountant'
;
});
formRef
.
current
[
'setFieldsValue'
]({
serviceName
:
tmp
});
formRef
.
current
[
'setFieldsValue'
]({
serviceName
:
tmp
});
}
}
},
[
DataServices
]);
},
[
DataServices
]);
...
@@ -50,12 +57,12 @@ const Services = (props: any) => {
...
@@ -50,12 +57,12 @@ const Services = (props: any) => {
};
};
// 删除服务范围
// 删除服务范围
const
Remove
=
(
values
:
string
)
=>
{
const
Remove
=
(
values
:
{
id
:
string
}
)
=>
{
console
.
log
(
values
);
console
.
log
(
values
);
RA
(
RA
(
53
,
53
,
{
{
serviceName
:
values
,
id
:
values
.
id
,
},
},
module
,
module
,
dispatch
,
dispatch
,
...
...
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