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