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
b9d2af18
Commit
b9d2af18
authored
Nov 18, 2020
by
cellee
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'final' of
http://120.77.240.215:9701/Maple/tostumi.git
into final
parents
b8ae18d8
2db5bd87
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
344 additions
and
260 deletions
+344
-260
SearchOptionsTow.tsx
src/components/SearchOptions/SearchOptionsTow.tsx
+3
-0
index.jsx
src/components/TagSelect/index.jsx
+27
-25
ServiceProvider.ts
src/models/ServiceProvider.ts
+1
-1
CardAdd.tsx
src/pages/CommercialService/CardAdd.tsx
+63
-25
CardDetail.tsx
src/pages/CommercialService/CardDetail.tsx
+1
-1
ChargeDetail.tsx
src/pages/PropertyManagement/ChargeDetail.tsx
+0
-1
ChargeManager.tsx
src/pages/PropertyManagement/ChargeManager.tsx
+75
-67
UsersDetail.tsx
src/pages/UserManagement/LIFEUserManagement/UsersDetail.tsx
+3
-3
AccoutingContent.tsx
...Management/ServiceProviderManagement/AccoutingContent.tsx
+78
-51
Detail.tsx
...pages/UserManagement/ServiceProviderManagement/Detail.tsx
+75
-68
Services.tsx
...ges/UserManagement/ServiceProviderManagement/Services.tsx
+16
-3
params.ts
src/utils/params.ts
+2
-15
No files found.
src/components/SearchOptions/SearchOptionsTow.tsx
View file @
b9d2af18
...
@@ -12,6 +12,9 @@ const SearchOptionsTow = (porps: any) => {
...
@@ -12,6 +12,9 @@ const SearchOptionsTow = (porps: any) => {
));
));
function
onChange
(
value
:
any
)
{
function
onChange
(
value
:
any
)
{
// console.log(`selected ${value}`);
// console.log(`selected ${value}`);
if
(
!
value
)
{
value
=
''
;
}
extendName
(
value
);
extendName
(
value
);
}
}
return
(
return
(
...
...
src/components/TagSelect/index.jsx
View file @
b9d2af18
...
@@ -5,7 +5,7 @@ import styles from './index.less';
...
@@ -5,7 +5,7 @@ import styles from './index.less';
class
TagSelect
extends
React
.
Component
{
class
TagSelect
extends
React
.
Component
{
state
=
{
state
=
{
value
:
this
.
props
.
value
!=
null
?
this
.
props
.
value
:
[],
value
:
this
.
props
.
value
!=
null
?
this
.
props
.
value
:
[],
inputVisible
:
false
,
inputVisible
:
false
,
inputValue
:
''
,
inputValue
:
''
,
editInputIndex
:
-
1
,
editInputIndex
:
-
1
,
...
@@ -19,32 +19,31 @@ class TagSelect extends React.Component {
...
@@ -19,32 +19,31 @@ class TagSelect extends React.Component {
// console.log("--组件加载完成--")
// console.log("--组件加载完成--")
// console.log(this.state.value)
// console.log(this.state.value)
// }
// }
handleClose
=
removedTag
=>
{
handleClose
=
(
removedTag
)
=>
{
const
value
=
this
.
state
.
value
.
filter
(
tag
=>
tag
!==
removedTag
);
const
value
=
this
.
state
.
value
.
filter
(
(
tag
)
=>
tag
!==
removedTag
);
console
.
log
(
value
);
console
.
log
(
value
);
this
.
setState
({
value
});
this
.
setState
({
value
});
this
.
props
.
onChange
(
value
)
this
.
props
.
onChange
(
value
)
;
};
};
showInput
=
()
=>
{
showInput
=
()
=>
{
this
.
setState
({
inputVisible
:
true
},
()
=>
this
.
input
.
focus
());
this
.
setState
({
inputVisible
:
true
},
()
=>
this
.
input
.
focus
());
};
};
handleInputChange
=
e
=>
{
handleInputChange
=
(
e
)
=>
{
this
.
setState
({
inputValue
:
e
.
target
.
value
});
this
.
setState
({
inputValue
:
e
.
target
.
value
});
};
};
handleInputConfirm
=
()
=>
{
handleInputConfirm
=
()
=>
{
const
{
inputValue
}
=
this
.
state
;
const
{
inputValue
}
=
this
.
state
;
let
{
value
}
=
this
.
state
;
let
{
value
}
=
this
.
state
;
if
(
inputValue
&&
value
.
indexOf
(
inputValue
)
===
-
1
)
{
if
(
inputValue
&&
value
.
indexOf
(
inputValue
)
===
-
1
)
{
this
.
props
.
onAdd
(
inputValue
);
this
.
props
.
onAdd
(
inputValue
);
value
=
[...
value
,
inputValue
];
value
=
[...
value
,
inputValue
];
}
}
console
.
log
(
value
);
console
.
log
(
value
);
this
.
props
.
onChange
(
value
)
this
.
props
.
onChange
(
value
)
;
this
.
setState
({
this
.
setState
({
value
,
value
,
inputVisible
:
false
,
inputVisible
:
false
,
...
@@ -52,7 +51,7 @@ class TagSelect extends React.Component {
...
@@ -52,7 +51,7 @@ class TagSelect extends React.Component {
});
});
};
};
handleEditInputChange
=
e
=>
{
handleEditInputChange
=
(
e
)
=>
{
this
.
setState
({
editInputValue
:
e
.
target
.
value
});
this
.
setState
({
editInputValue
:
e
.
target
.
value
});
};
};
...
@@ -60,7 +59,7 @@ class TagSelect extends React.Component {
...
@@ -60,7 +59,7 @@ class TagSelect extends React.Component {
this
.
setState
(({
value
,
editInputIndex
,
editInputValue
})
=>
{
this
.
setState
(({
value
,
editInputIndex
,
editInputValue
})
=>
{
const
newTags
=
[...
value
];
const
newTags
=
[...
value
];
newTags
[
editInputIndex
]
=
editInputValue
;
newTags
[
editInputIndex
]
=
editInputValue
;
this
.
props
.
onChange
(
newTags
)
this
.
props
.
onChange
(
newTags
)
;
return
{
return
{
value
:
newTags
,
value
:
newTags
,
editInputIndex
:
-
1
,
editInputIndex
:
-
1
,
...
@@ -69,20 +68,26 @@ class TagSelect extends React.Component {
...
@@ -69,20 +68,26 @@ class TagSelect extends React.Component {
});
});
};
};
saveInputRef
=
input
=>
{
saveInputRef
=
(
input
)
=>
{
this
.
input
=
input
;
this
.
input
=
input
;
};
};
saveEditInputRef
=
input
=>
{
saveEditInputRef
=
(
input
)
=>
{
this
.
editInput
=
input
;
this
.
editInput
=
input
;
};
};
render
()
{
render
()
{
const
{
value
,
inputVisible
,
inputValue
,
editInputIndex
,
editInputValue
}
=
this
.
state
;
const
{
value
,
inputVisible
,
inputValue
,
editInputIndex
,
editInputValue
}
=
this
.
state
;
console
.
log
(
value
);
return
(
return
(
<>
<>
{
<
Tag
className=
"editTag"
key=
"Accountant"
>
value
.
map
((
tag
,
index
)
=>
{
Accountant
</
Tag
>
{
value
.
map
((
tag
,
index
)
=>
{
if
(
editInputIndex
===
index
)
{
if
(
editInputIndex
===
index
)
{
return
(
return
(
<
Input
<
Input
...
@@ -108,13 +113,11 @@ class TagSelect extends React.Component {
...
@@ -108,13 +113,11 @@ class TagSelect extends React.Component {
onClose=
{
()
=>
this
.
handleClose
(
tag
)
}
onClose=
{
()
=>
this
.
handleClose
(
tag
)
}
>
>
<
span
<
span
onDoubleClick=
{
e
=>
{
onDoubleClick=
{
(
e
)
=>
{
this
.
setState
({
editInputIndex
:
index
,
editInputValue
:
tag
},
()
=>
{
this
.
setState
({
editInputIndex
:
index
,
editInputValue
:
tag
},
()
=>
{
this
.
editInput
.
focus
();
this
.
editInput
.
focus
();
});
});
e
.
preventDefault
();
e
.
preventDefault
();
}
}
}
}
>
>
{
isLongTag
?
`${tag.slice(0, 20)}
...
`
:
tag
}
{
isLongTag
?
`${tag.slice(0, 20)}
...
`
:
tag
}
...
@@ -128,9 +131,8 @@ class TagSelect extends React.Component {
...
@@ -128,9 +131,8 @@ class TagSelect extends React.Component {
)
:
(
)
:
(
tagElem
tagElem
);
);
})
})
}
}
{
inputVisible
&&
(
{
inputVisible
&&
(
<
Input
<
Input
ref=
{
this
.
saveInputRef
}
ref=
{
this
.
saveInputRef
}
...
@@ -153,4 +155,4 @@ class TagSelect extends React.Component {
...
@@ -153,4 +155,4 @@ class TagSelect extends React.Component {
}
}
}
}
export
default
TagSelect
;
export
default
TagSelect
;
\ No newline at end of file
src/models/ServiceProvider.ts
View file @
b9d2af18
...
@@ -62,7 +62,7 @@ export default {
...
@@ -62,7 +62,7 @@ export default {
}
else
{
}
else
{
let
CurData
=
true
;
let
CurData
=
true
;
yield
put
({
type
:
'returnCurData'
},
CurData
);
yield
put
({
type
:
'returnCurData'
},
CurData
);
message
.
success
(
'
operator s
uccess!'
,
1.5
,
()
=>
{
message
.
success
(
'
Operator S
uccess!'
,
1.5
,
()
=>
{
window
.
location
.
href
=
'/UserManagement/ServiceProviderManagement'
;
window
.
location
.
href
=
'/UserManagement/ServiceProviderManagement'
;
});
});
}
}
...
...
src/pages/CommercialService/CardAdd.tsx
View file @
b9d2af18
import
React
,
{
useState
,
useEffect
,
useRef
}
from
'react'
;
import
React
,
{
useState
,
useEffect
}
from
'react'
;
import
{
Input
,
Tabs
,
Table
,
Space
,
Button
,
Form
,
Row
,
Col
,
Layout
,
message
,
Spin
}
from
'antd'
;
import
{
Input
,
Button
,
Form
,
message
,
Spin
}
from
'antd'
;
const
{
TabPane
}
=
Tabs
;
import
{
connect
,
history
}
from
'umi'
;
import
{
connect
,
history
}
from
'umi'
;
...
@@ -10,7 +9,6 @@ import SearchOptionsCommnity from '@/components/SearchOptions/SearchOptionsCommn
...
@@ -10,7 +9,6 @@ import SearchOptionsCommnity from '@/components/SearchOptions/SearchOptionsCommn
import
Line
from
'@/components/Line/Line'
;
import
Line
from
'@/components/Line/Line'
;
import
TextArea
from
'antd/lib/input/TextArea'
;
import
TextArea
from
'antd/lib/input/TextArea'
;
import
Relationship
from
'@/components/Relationship/Relationship'
;
import
Relationship
from
'@/components/Relationship/Relationship'
;
import
{
useForm
}
from
'antd/es/form/util'
;
import
{
validateMessages
}
from
'@/utils/params'
;
import
{
validateMessages
}
from
'@/utils/params'
;
import
styles
from
'./css/index.less'
;
import
styles
from
'./css/index.less'
;
...
@@ -69,23 +67,59 @@ const CardAdd = (props: any) => {
...
@@ -69,23 +67,59 @@ const CardAdd = (props: any) => {
form
.
resetFields
();
form
.
resetFields
();
},
[]);
},
[]);
const
checkData
=
(
rule
:
any
,
value
:
any
,
callback
:
any
)
=>
{
// const checkData: (rule: any, value: string, callback: any) => void = (
// rule: any,
// value: any,
// callback: any,
// ) => {
// if (value) {
// if (/^\d$/) {
// } else {
// }
// }
// callback()
// };
const
checkData2
:
(
rule
:
any
,
value
:
string
,
cb
:
any
)
=>
void
=
(
rule
,
value
,
cb
)
=>
{
if
(
value
)
{
if
(
value
)
{
if
(
/^
[
a-zA-Z0-9
]
+$/g
.
test
(
value
))
{
if
(
/^
[
a-zA-Z0-9
]
+$/g
.
test
(
value
))
{
c
allback
();
c
b
();
}
else
{
}
else
{
c
allback
(
new
Error
(
'Only numbers and letters can be entered!'
));
c
b
(
new
Error
(
'Only numbers and letters can be entered!'
));
}
}
}
}
c
allback
();
c
b
();
};
};
const
checkName
=
(
rule
:
any
,
value
:
any
,
callback
:
any
)
=>
{
// const checkName: (rule: any, value: string, callback: any) => void = (
if
(
!
value
||
!
value
.
trim
())
{
// rule: any,
callback
(
new
Error
(
'*it is required!'
));
// value: any,
// callback: any,
// ) => {
// if (value) {
// if () {
// } else {
// callback(new Error(''));
// }
// }
// callback();
// };
// 手机号码验证
const
phoneNumber
:
(
rule
:
any
,
value
:
string
,
cb
:
any
)
=>
void
=
(
rule
,
value
,
cb
)
=>
{
if
(
value
)
{
if
(
/^
\d{8}
$|^1
[
3|5|7|8|9
]\d{9}
$/
.
test
(
value
))
{
cb
();
}
else
{
cb
(
new
Error
(
'The format is incorrect!'
));
}
}
}
c
allback
();
c
b
();
};
};
return
(
return
(
<
div
style=
{
{
width
:
'100%'
,
minWidth
:
1020
,
padding
:
34
,
backgroundColor
:
'#ffffff'
}
}
>
<
div
style=
{
{
width
:
'100%'
,
minWidth
:
1020
,
padding
:
34
,
backgroundColor
:
'#ffffff'
}
}
>
<
TitleBack
title=
{
'Apply Card Add'
}
></
TitleBack
>
<
TitleBack
title=
{
'Apply Card Add'
}
></
TitleBack
>
...
@@ -101,7 +135,7 @@ const CardAdd = (props: any) => {
...
@@ -101,7 +135,7 @@ const CardAdd = (props: any) => {
name=
"buildNumber"
name=
"buildNumber"
style=
{
{
marginRight
:
16
}
}
style=
{
{
marginRight
:
16
}
}
className=
{
styles
.
buildNumber
}
className=
{
styles
.
buildNumber
}
rules=
{
[{
required
:
true
,
validator
:
checkData
}]
}
rules=
{
[{
required
:
true
,
type
:
'number'
,
message
:
'Only number can be entered'
}]
}
>
>
<
Input
style=
{
{
width
:
80
}
}
placeholder=
{
'BLK'
}
/>
<
Input
style=
{
{
width
:
80
}
}
placeholder=
{
'BLK'
}
/>
</
Form
.
Item
>
</
Form
.
Item
>
...
@@ -110,7 +144,7 @@ const CardAdd = (props: any) => {
...
@@ -110,7 +144,7 @@ const CardAdd = (props: any) => {
name=
"floorNumber"
name=
"floorNumber"
style=
{
{
marginRight
:
16
}
}
style=
{
{
marginRight
:
16
}
}
className=
{
styles
.
floorNumber
}
className=
{
styles
.
floorNumber
}
rules=
{
[{
required
:
true
,
validator
:
checkData
}]
}
rules=
{
[{
required
:
true
,
type
:
'number'
,
message
:
'Only number can be entered'
}]
}
>
>
<
Input
style=
{
{
width
:
80
}
}
placeholder=
{
'Floor'
}
/>
<
Input
style=
{
{
width
:
80
}
}
placeholder=
{
'Floor'
}
/>
</
Form
.
Item
>
</
Form
.
Item
>
...
@@ -118,18 +152,14 @@ const CardAdd = (props: any) => {
...
@@ -118,18 +152,14 @@ const CardAdd = (props: any) => {
<
Form
.
Item
<
Form
.
Item
name=
"roomNumber"
name=
"roomNumber"
className=
{
styles
.
roomNumber
}
className=
{
styles
.
roomNumber
}
rules=
{
[{
required
:
true
,
validator
:
checkData
}]
}
rules=
{
[{
required
:
true
,
validator
:
checkData
2
}]
}
>
>
<
Input
style=
{
{
width
:
120
}
}
placeholder=
{
'Room'
}
/>
<
Input
style=
{
{
width
:
120
}
}
placeholder=
{
'Room'
}
/>
</
Form
.
Item
>
</
Form
.
Item
>
</
Input
.
Group
>
</
Input
.
Group
>
</
Form
.
Item
>
</
Form
.
Item
>
<
Form
.
Item
<
Form
.
Item
name=
"zipCode"
wrapperCol=
{
{
offset
:
3
}
}
rules=
{
[{
required
:
true
}]
}
>
name=
"zipCode"
wrapperCol=
{
{
...
Layout
.
wrapperCol
,
offset
:
3
}
}
rules=
{
[{
required
:
true
}]
}
>
<
Input
<
Input
style=
{
{
width
:
580
}
}
style=
{
{
width
:
580
}
}
placeholder=
{
'Display the address and postcode automatically according to the'
}
placeholder=
{
'Display the address and postcode automatically according to the'
}
...
@@ -142,14 +172,18 @@ const CardAdd = (props: any) => {
...
@@ -142,14 +172,18 @@ const CardAdd = (props: any) => {
<
Form
.
Item
<
Form
.
Item
name=
"communityOwner"
name=
"communityOwner"
style=
{
{
marginRight
:
20
}
}
style=
{
{
marginRight
:
20
}
}
rules=
{
[{
required
:
true
,
validator
:
checkName
}]
}
rules=
{
[{
required
:
true
,
max
:
8
,
min
:
2
}]
}
>
>
<
Input
placeholder=
{
'Name'
}
/>
<
Input
placeholder=
{
'Name'
}
/>
</
Form
.
Item
>
</
Form
.
Item
>
<
Form
.
Item
style=
{
{
marginRight
:
20
}
}
label=
{
'Contact Information'
}
>
<
Form
.
Item
style=
{
{
marginRight
:
20
}
}
label=
{
'Contact Information'
}
>
<
Input
hidden=
{
true
}
/>
<
Input
hidden=
{
true
}
/>
</
Form
.
Item
>
</
Form
.
Item
>
<
Form
.
Item
name=
"communityOwnerPhone"
style=
{
{
marginRight
:
20
}
}
>
<
Form
.
Item
name=
"communityOwnerPhone"
style=
{
{
marginRight
:
20
}
}
rules=
{
[{
validator
:
phoneNumber
}]
}
>
<
Input
placeholder=
{
'Phone number'
}
/>
<
Input
placeholder=
{
'Phone number'
}
/>
</
Form
.
Item
>
</
Form
.
Item
>
<
Form
.
Item
name=
"communityOwnerEmail"
rules=
{
[{
required
:
true
,
type
:
'email'
}]
}
>
<
Form
.
Item
name=
"communityOwnerEmail"
rules=
{
[{
required
:
true
,
type
:
'email'
}]
}
>
...
@@ -165,14 +199,18 @@ const CardAdd = (props: any) => {
...
@@ -165,14 +199,18 @@ const CardAdd = (props: any) => {
<
Form
.
Item
<
Form
.
Item
name=
"applyName"
name=
"applyName"
style=
{
{
marginRight
:
20
}
}
style=
{
{
marginRight
:
20
}
}
rules=
{
[{
required
:
true
,
validator
:
checkName
}]
}
rules=
{
[{
required
:
true
,
max
:
8
,
min
:
2
}]
}
>
>
<
Input
placeholder=
{
'Name'
}
/>
<
Input
placeholder=
{
'Name'
}
/>
</
Form
.
Item
>
</
Form
.
Item
>
<
Form
.
Item
style=
{
{
marginRight
:
20
}
}
label=
{
'Contact Information'
}
>
<
Form
.
Item
style=
{
{
marginRight
:
20
}
}
label=
{
'Contact Information'
}
>
<
Input
hidden=
{
true
}
/>
<
Input
hidden=
{
true
}
/>
</
Form
.
Item
>
</
Form
.
Item
>
<
Form
.
Item
name=
"applyNamePhone"
style=
{
{
marginRight
:
20
}
}
>
<
Form
.
Item
name=
"applyNamePhone"
style=
{
{
marginRight
:
20
}
}
rules=
{
[{
validator
:
phoneNumber
}]
}
>
<
Input
placeholder=
{
'Phone number'
}
/>
<
Input
placeholder=
{
'Phone number'
}
/>
</
Form
.
Item
>
</
Form
.
Item
>
<
Form
.
Item
name=
"applyNameEmail"
rules=
{
[{
required
:
true
,
type
:
'email'
}]
}
>
<
Form
.
Item
name=
"applyNameEmail"
rules=
{
[{
required
:
true
,
type
:
'email'
}]
}
>
...
@@ -194,7 +232,7 @@ const CardAdd = (props: any) => {
...
@@ -194,7 +232,7 @@ const CardAdd = (props: any) => {
<
TextArea
style=
{
{
width
:
400
}
}
></
TextArea
>
<
TextArea
style=
{
{
width
:
400
}
}
></
TextArea
>
</
Form
.
Item
>
</
Form
.
Item
>
<
Line
></
Line
>
<
Line
></
Line
>
<
Form
.
Item
wrapperCol=
{
{
...
Layout
.
wrapperCol
,
offset
:
3
}
}
>
<
Form
.
Item
wrapperCol=
{
{
offset
:
3
}
}
>
<
Button
type=
"primary"
htmlType=
"submit"
>
<
Button
type=
"primary"
htmlType=
"submit"
>
Submit
Submit
</
Button
>
</
Button
>
...
...
src/pages/CommercialService/CardDetail.tsx
View file @
b9d2af18
...
@@ -80,7 +80,7 @@ const CardDetail = (props: any) => {
...
@@ -80,7 +80,7 @@ const CardDetail = (props: any) => {
<
Row
gutter=
{
8
}
style=
{
{
marginTop
:
16
}
}
>
<
Row
gutter=
{
8
}
style=
{
{
marginTop
:
16
}
}
>
<
Col
>
Address:
</
Col
>
<
Col
>
Address:
</
Col
>
<
Col
>
<
Col
>
{
DataSave
.
zip_address
}
{
DataSave
.
zip_code
}
{
DataSave
.
zip_address
}
,
{
DataSave
.
zip_code
}
</
Col
>
</
Col
>
</
Row
>
</
Row
>
...
...
src/pages/PropertyManagement/ChargeDetail.tsx
View file @
b9d2af18
...
@@ -20,7 +20,6 @@ const ChargeDetail = (props: any) => {
...
@@ -20,7 +20,6 @@ const ChargeDetail = (props: any) => {
useEffect
(()
=>
{
useEffect
(()
=>
{
console
.
log
(
CurData
);
console
.
log
(
CurData
);
console
.
log
(
stringSplit
(
CurData
.
billFileUrl
,
'm/cash'
));
if
(
!
CurData
)
{
if
(
!
CurData
)
{
history
.
back
();
history
.
back
();
}
}
...
...
src/pages/PropertyManagement/ChargeManager.tsx
View file @
b9d2af18
...
@@ -11,11 +11,27 @@ import { filterObj, urlEncode, filterObjbyTg } from '@/utils/method';
...
@@ -11,11 +11,27 @@ import { filterObj, urlEncode, filterObjbyTg } from '@/utils/method';
import
TitleSearch
from
'../../components/TitleSearch/TitleSearch'
;
import
TitleSearch
from
'../../components/TitleSearch/TitleSearch'
;
import
ProTable
,
{
ProColumns
,
TableDropdown
,
ActionType
}
from
'@ant-design/pro-table'
;
import
ProTable
,
{
ProColumns
}
from
'@ant-design/pro-table'
;
interface
readyData
{
interface
readyData
{
[
key
:
string
]:
any
;
[
key
:
string
]:
any
;
}
}
interface
GithubIssueItem
{
url
:
string
;
id
:
number
;
number
:
number
;
title
:
string
;
labels
:
{
name
:
string
;
color
:
string
;
}[];
state
:
string
;
comments
:
number
;
created_at
:
string
;
updated_at
:
string
;
closed_at
?:
string
;
}
let
readyData
=
{
let
readyData
=
{
tosOwnerName
:
''
,
tosOwnerName
:
''
,
communityName
:
''
,
communityName
:
''
,
...
@@ -24,16 +40,9 @@ let readyData = {
...
@@ -24,16 +40,9 @@ let readyData = {
const
ChargeManager
=
(
props
:
any
)
=>
{
const
ChargeManager
=
(
props
:
any
)
=>
{
const
{
dispatch
,
location
,
Data
}
=
props
;
const
{
dispatch
,
location
,
Data
}
=
props
;
const
{
formatMessage
}
=
useIntl
();
const
username
=
formatMessage
({
id
:
'R.charge.username'
});
const
project
=
formatMessage
({
id
:
'R.charge.project'
});
const
unit
=
formatMessage
({
id
:
'R.charge.unit'
});
const
submissionTime
=
formatMessage
({
id
:
'R.charge.submissionTime'
});
const
actions
=
formatMessage
({
id
:
'R.charge.actions'
});
const
[
loading
,
setLoading
]
=
useState
(
false
);
const
[
loading
,
setLoading
]
=
useState
(
false
);
// 详情页
const
goToDetail
=
(
values
:
any
)
=>
{
const
goToDetail
=
(
values
:
any
)
=>
{
const
permissionArr
=
JSON
.
parse
(
localStorage
.
getItem
(
'permission'
)
||
''
);
const
permissionArr
=
JSON
.
parse
(
localStorage
.
getItem
(
'permission'
)
||
''
);
if
(
permissionArr
.
indexOf
(
'10'
)
<
0
)
{
if
(
permissionArr
.
indexOf
(
'10'
)
<
0
)
{
...
@@ -44,22 +53,24 @@ const ChargeManager = (props: any) => {
...
@@ -44,22 +53,24 @@ const ChargeManager = (props: any) => {
history
.
push
(
'/PropertyManagementDetail'
);
history
.
push
(
'/PropertyManagementDetail'
);
};
};
// 存储详情页数据
const
getById
=
(
values
:
any
)
=>
{
const
getById
=
(
values
:
any
)
=>
{
dispatch
({
type
:
'PropertyManagement/getById'
,
playload
:
values
});
dispatch
({
type
:
'PropertyManagement/getById'
,
playload
:
values
});
};
};
// 获取数据
const
get
=
(
values
:
any
)
=>
{
const
get
=
(
values
:
any
)
=>
{
dispatch
({
type
:
'PropertyManagement/get'
,
playload
:
values
});
dispatch
({
type
:
'PropertyManagement/get'
,
playload
:
values
});
};
};
// 进入页面先请求一次
// 进入页面先请求一次
useEffect
(()
=>
{
useEffect
(()
=>
{
setLoading
(
true
);
setLoading
(
true
);
get
(
{
readyData
=
{
communityName
:
''
,
...
readyData
,
tosOwnerName
:
''
,
...
location
.
query
,
pageNum
:
1
,
};
}
);
get
(
readyData
);
},
[
1
]);
},
[
location
]);
// 监听数据返回
// 监听数据返回
useEffect
(()
=>
{
useEffect
(()
=>
{
...
@@ -71,29 +82,19 @@ const ChargeManager = (props: any) => {
...
@@ -71,29 +82,19 @@ const ChargeManager = (props: any) => {
// 搜索按钮
// 搜索按钮
const
TitleSearchContent
=
(
comment
:
any
)
=>
{
const
TitleSearchContent
=
(
comment
:
any
)
=>
{
setLoading
(
true
);
setLoading
(
true
);
get
({
console
.
log
(
comment
);
communityName
:
comment
.
communityName
,
history
.
push
(
tosOwnerName
:
comment
.
tosOwnerName
,
location
.
pathname
+
pageNum
:
1
,
urlEncode
(
});
filterObj
({
...
comment
,
pageNum
:
1
,
}),
),
);
};
};
interface
GithubIssueItem
{
// 列表数据
url
:
string
;
id
:
number
;
number
:
number
;
title
:
string
;
labels
:
{
name
:
string
;
color
:
string
;
}[];
state
:
string
;
comments
:
number
;
created_at
:
string
;
updated_at
:
string
;
closed_at
?:
string
;
}
const
columns
:
ProColumns
<
GithubIssueItem
>
[]
=
[
const
columns
:
ProColumns
<
GithubIssueItem
>
[]
=
[
{
{
title
:
'User Name'
,
title
:
'User Name'
,
...
@@ -132,18 +133,21 @@ const ChargeManager = (props: any) => {
...
@@ -132,18 +133,21 @@ const ChargeManager = (props: any) => {
pageNum
:
1
,
pageNum
:
1
,
tosOwnerName
:
''
,
tosOwnerName
:
''
,
};
};
get
({
history
.
push
(
location
.
pathname
+
urlEncode
(
filterObj
(
readyData
)));
...
readyData
,
});
};
};
// 切换页码
// 切换页码
const
changePage
=
(
value
:
any
)
=>
{
const
changePage
=
(
value
:
any
)
=>
{
readyData
.
pageNum
=
value
.
current
;
setLoading
(
true
);
setLoading
(
true
);
get
({
history
.
push
(
...
readyData
,
location
.
pathname
+
});
urlEncode
(
filterObj
({
...
readyData
,
pageNum
:
value
.
current
,
}),
),
);
};
};
return
(
return
(
...
@@ -153,31 +157,35 @@ const ChargeManager = (props: any) => {
...
@@ -153,31 +157,35 @@ const ChargeManager = (props: any) => {
list=
{
[
'TosOwnerName'
]
}
list=
{
[
'TosOwnerName'
]
}
communitySelect=
{
true
}
communitySelect=
{
true
}
onSubmit=
{
TitleSearchContent
}
onSubmit=
{
TitleSearchContent
}
// defaultValue={{ ...readyData }
}
defaultValue=
{
readyData
}
/>
/>
<
ProTable
<
GithubIssueItem
>
{
Data
!==
null
?
(
columns=
{
columns
}
<
ProTable
<
GithubIssueItem
>
dataSource=
{
Data
!==
null
?
Data
.
list
:
[]
}
columns=
{
columns
}
rowKey=
{
'id'
}
dataSource=
{
Data
.
list
}
search=
{
false
}
rowKey=
{
'id'
}
loading=
{
loading
}
search=
{
false
}
onChange=
{
changePage
}
loading=
{
loading
}
pagination=
{
{
onChange=
{
changePage
}
pageSize
:
Data
!==
null
?
Data
.
page
.
curPageSize
:
0
,
pagination=
{
{
showSizeChanger
:
false
,
pageSize
:
Data
.
page
.
curPageSize
,
total
:
Data
!==
null
?
Data
.
page
.
totalRow
:
''
,
showSizeChanger
:
false
,
current
:
Data
!==
null
?
Data
.
page
.
currentPage
:
1
,
total
:
Data
.
page
.
totalRow
,
}
}
current
:
+
readyData
.
pageNum
,
options=
{
{
}
}
density
:
true
,
options=
{
{
fullScreen
:
true
,
density
:
true
,
reload
:
()
=>
{
fullScreen
:
true
,
resetHandler
();
reload
:
()
=>
{
},
resetHandler
();
setting
:
false
,
},
}
}
setting
:
false
,
/
>
}
}
/
>
) : (
<></>
)
}
</
div
>
</
div
>
);
);
};
};
...
...
src/pages/UserManagement/LIFEUserManagement/UsersDetail.tsx
View file @
b9d2af18
...
@@ -155,7 +155,7 @@ const UsersDetail = (props: any) => {
...
@@ -155,7 +155,7 @@ const UsersDetail = (props: any) => {
};
};
const
deleteUnit
=
(
values
:
any
)
=>
{
const
deleteUnit
=
(
values
:
any
)
=>
{
const
permissionArr
=
JSON
.
parse
(
localStorage
.
getItem
(
'permission'
));
const
permissionArr
=
JSON
.
parse
(
localStorage
.
getItem
(
'permission'
)
||
'[]'
);
if
(
permissionArr
.
indexOf
(
'5'
)
<
0
)
{
if
(
permissionArr
.
indexOf
(
'5'
)
<
0
)
{
message
.
error
(
'No Permissions!!!'
,
3
);
message
.
error
(
'No Permissions!!!'
,
3
);
return
;
return
;
...
@@ -205,10 +205,10 @@ const UsersDetail = (props: any) => {
...
@@ -205,10 +205,10 @@ const UsersDetail = (props: any) => {
const
checkData
=
(
rule
:
any
,
value
:
any
,
callback
:
any
)
=>
{
const
checkData
=
(
rule
:
any
,
value
:
any
,
callback
:
any
)
=>
{
if
(
value
)
{
if
(
value
)
{
if
(
/^
\d{8}
|1
[
3|5|7|8
]\d{9}
$/g
.
test
(
value
))
{
if
(
/^
\d{8}
$|^1
[
3|5|7|8
]\d{9}
$/
.
test
(
value
))
{
callback
();
callback
();
}
else
{
}
else
{
callback
(
new
Error
(
'
Incorrect format of mobile phone number
!'
));
callback
(
new
Error
(
'
The format is incorrect
!'
));
}
}
}
}
callback
(
'*it is required!'
);
callback
(
'*it is required!'
);
...
...
src/pages/UserManagement/ServiceProviderManagement/AccoutingContent.tsx
View file @
b9d2af18
import
React
,
{
useEffect
}
from
'react'
;
import
React
,
{
useEffect
,
useState
}
from
'react'
;
import
styles
from
'./AccoutingContent.less'
;
import
styles
from
'./AccoutingContent.less'
;
import
{
Button
,
Modal
,
message
}
from
'antd'
;
import
{
Button
,
Modal
,
message
,
Spin
}
from
'antd'
;
import
{
connect
}
from
'umi'
;
import
{
connect
}
from
'umi'
;
...
@@ -17,6 +17,8 @@ const AccoutingContent = (props: {
...
@@ -17,6 +17,8 @@ const AccoutingContent = (props: {
})
=>
{
})
=>
{
const
{
SaveChooseData
,
dispatch
,
Result
,
history
}
=
props
;
const
{
SaveChooseData
,
dispatch
,
Result
,
history
}
=
props
;
const
[
loading
,
setLoading
]
=
useState
(
false
);
const
goToReturn
=
()
=>
{
const
goToReturn
=
()
=>
{
history
.
goBack
();
history
.
goBack
();
};
};
...
@@ -39,6 +41,7 @@ const AccoutingContent = (props: {
...
@@ -39,6 +41,7 @@ const AccoutingContent = (props: {
icon
:
<
ExclamationCircleOutlined
/>,
icon
:
<
ExclamationCircleOutlined
/>,
content
:
'Are you sure want to write off?'
,
content
:
'Are you sure want to write off?'
,
onOk
()
{
onOk
()
{
setLoading
(
true
);
dispatch
({
type
:
'ServiceProvider/DelServiceProvider'
,
playload
:
{
id
}
});
dispatch
({
type
:
'ServiceProvider/DelServiceProvider'
,
playload
:
{
id
}
});
},
},
onCancel
()
{
onCancel
()
{
...
@@ -50,6 +53,7 @@ const AccoutingContent = (props: {
...
@@ -50,6 +53,7 @@ const AccoutingContent = (props: {
useEffect
(()
=>
{
useEffect
(()
=>
{
console
.
log
(
Result
);
console
.
log
(
Result
);
if
(
Result
!==
null
)
{
if
(
Result
!==
null
)
{
setLoading
(
false
);
if
(
Result
)
{
if
(
Result
)
{
dispatch
({
type
:
'ServiceProvider/ResultClear'
});
dispatch
({
type
:
'ServiceProvider/ResultClear'
});
message
.
success
(
'Logout successful!'
,
3
,
()
=>
{
message
.
success
(
'Logout successful!'
,
3
,
()
=>
{
...
@@ -62,59 +66,82 @@ const AccoutingContent = (props: {
...
@@ -62,59 +66,82 @@ const AccoutingContent = (props: {
}
}
},
[
Result
]);
},
[
Result
]);
const
copy
=
()
=>
{
const
copyEle
=
document
.
querySelector
(
'#copy'
);
// 获取要复制的节点
const
range
=
document
.
createRange
();
// 创造range
window
.
getSelection
()?.
removeAllRanges
();
//清除页面中已有的selection
range
.
selectNode
(
copyEle
as
any
);
// 选中需要复制的节点
window
.
getSelection
()?.
addRange
(
range
);
// 执行选中元素
const
copyStatus
=
document
.
execCommand
(
'Copy'
);
// 执行copy操作
// 对成功与否定进行提示
if
(
copyStatus
)
{
message
.
success
(
'Copy Success'
);
}
else
{
message
.
error
(
'Copy Failure,Please copy manually'
);
}
window
.
getSelection
()?.
removeAllRanges
();
//清除页面中已有的selection
};
return
(
return
(
<
div
className=
{
styles
.
base
}
>
<
div
className=
{
styles
.
base
}
>
{
/* 头部组件 */
}
<
Spin
spinning=
{
loading
}
>
<
div
className=
{
styles
.
box
}
>
{
/* 头部组件 */
}
<
div
className=
{
styles
.
item1
}
>
Accounting information
</
div
>
<
div
className=
{
styles
.
box
}
>
<
button
className=
{
styles
.
item3
}
onClick=
{
goToReturn
}
>
<
div
className=
{
styles
.
item1
}
>
Accounting information
</
div
>
Back
<
button
className=
{
styles
.
item3
}
onClick=
{
goToReturn
}
>
</
button
>
Back
</
div
>
</
button
>
</
div
>
{
SaveChooseData
.
enable
===
'Normal'
?
(
<
div
className=
{
styles
.
writeOff
}
>
{
SaveChooseData
.
enable
===
'Normal'
?
(
<
Button
<
div
className=
{
styles
.
writeOff
}
>
icon=
{
<
PoweroffOutlined
/>
}
<
Button
type=
"primary"
icon=
{
<
PoweroffOutlined
/>
}
danger
type=
"primary"
onClick=
{
handleClick
.
bind
(
this
,
SaveChooseData
.
id
)
}
danger
>
onClick=
{
handleClick
.
bind
(
this
,
SaveChooseData
.
id
)
}
Write Off
>
Write Off
</
Button
>
</
div
>
)
:
(
<
div
/>
)
}
<
div
className=
{
styles
.
box1
}
>
<
div
className=
{
styles
.
box1item1
}
>
Company Name
</
div
>
<
div
className=
{
styles
.
box1item2
}
>
{
SaveChooseData
.
providerName
}
</
div
>
<
div
className=
{
styles
.
box1item3
}
>
Office Address
</
div
>
<
div
className=
{
styles
.
box1item4
}
>
{
SaveChooseData
.
providerAddress
}
</
div
>
</
div
>
<
Line
/>
<
div
style=
{
{
marginBottom
:
28
}
}
>
Service Community
</
div
>
<
ShowOptions
list=
{
SaveChooseData
.
serviceCommunityList
}
/>
<
div
className=
{
styles
.
box2
}
>
<
div
className=
{
styles
.
box2item1
}
>
Services Available
</
div
>
<
div
className=
{
styles
.
box2item2
}
>
Accounting
</
div
>
</
div
>
<
div
className=
{
styles
.
box2
}
>
<
div
className=
{
styles
.
box2item1
}
>
Person In Charge
</
div
>
<
div
className=
{
styles
.
box2item2
}
>
{
SaveChooseData
.
contactName
}
</
div
>
</
div
>
<
div
className=
{
styles
.
box3
}
>
<
div
className=
{
styles
.
box3item1
}
>
Contact Details
</
div
>
<
div
className=
{
styles
.
box3item2
}
>
{
SaveChooseData
.
contactPhone
}
</
div
>
<
div
className=
{
styles
.
box3item3
}
>
{
SaveChooseData
.
contactEmail
}
</
div
>
</
div
>
<
div
className=
{
styles
.
box4
}
>
<
div
className=
{
styles
.
box3item1
}
>
Upload the address
</
div
>
<
div
className=
{
styles
.
box3item2
}
id=
"copy"
>
http://bill.huahuico.com/
</
div
>
<
Button
size=
"small"
className=
{
styles
.
box3item3
}
onClick=
{
copy
.
bind
(
this
)
}
>
复制
</
Button
>
</
Button
>
</
div
>
</
div
>
)
:
(
</
Spin
>
<
div
/>
)
}
<
div
className=
{
styles
.
box1
}
>
<
div
className=
{
styles
.
box1item1
}
>
Company Name
</
div
>
<
div
className=
{
styles
.
box1item2
}
>
{
SaveChooseData
.
providerName
}
</
div
>
<
div
className=
{
styles
.
box1item3
}
>
Office Address
</
div
>
<
div
className=
{
styles
.
box1item4
}
>
{
SaveChooseData
.
providerAddress
}
</
div
>
</
div
>
<
Line
/>
<
div
style=
{
{
marginBottom
:
28
}
}
>
Service Community
</
div
>
<
ShowOptions
list=
{
SaveChooseData
.
serviceCommunityList
}
/>
<
div
className=
{
styles
.
box2
}
>
<
div
className=
{
styles
.
box2item1
}
>
Services Available
</
div
>
<
div
className=
{
styles
.
box2item2
}
>
Accounting
</
div
>
</
div
>
<
div
className=
{
styles
.
box2
}
>
<
div
className=
{
styles
.
box2item1
}
>
Person In Charge
</
div
>
<
div
className=
{
styles
.
box2item2
}
>
{
SaveChooseData
.
contactName
}
</
div
>
</
div
>
<
div
className=
{
styles
.
box3
}
>
<
div
className=
{
styles
.
box3item1
}
>
Contact Details
</
div
>
<
div
className=
{
styles
.
box3item2
}
>
{
SaveChooseData
.
contactPhone
}
</
div
>
<
div
className=
{
styles
.
box3item3
}
>
{
SaveChooseData
.
contactEmail
}
</
div
>
</
div
>
<
div
className=
{
styles
.
box4
}
>
<
div
className=
{
styles
.
box3item1
}
>
Upload the address
</
div
>
<
div
className=
{
styles
.
box3item2
}
>
http://bill.huahuico.com/
</
div
>
</
div
>
</
div
>
</
div
>
);
);
};
};
...
...
src/pages/UserManagement/ServiceProviderManagement/Detail.tsx
View file @
b9d2af18
import
React
,
{
useState
,
useEffect
}
from
'react'
;
import
React
,
{
useState
,
useEffect
}
from
'react'
;
import
styles
from
'./Detail.less'
;
import
styles
from
'./Detail.less'
;
import
{
Button
,
Table
,
Space
,
message
,
Modal
}
from
'antd'
;
import
{
Button
,
Table
,
Space
,
message
,
Modal
,
Spin
}
from
'antd'
;
import
{
Link
,
useIntl
,
connect
,
Dispatch
,
history
}
from
'umi'
;
import
{
Link
,
useIntl
,
connect
,
Dispatch
,
history
}
from
'umi'
;
...
@@ -13,6 +13,8 @@ const { confirm } = Modal;
...
@@ -13,6 +13,8 @@ const { confirm } = Modal;
const
Detail
=
(
props
:
any
)
=>
{
const
Detail
=
(
props
:
any
)
=>
{
const
{
dispatch
,
Data
,
CurDataFollow
,
location
,
SaveChooseData
,
Result
}
=
props
;
const
{
dispatch
,
Data
,
CurDataFollow
,
location
,
SaveChooseData
,
Result
}
=
props
;
const
[
loading
,
setLoding
]
=
useState
(
false
);
const
TosSecurityGuarderGet
=
(
values
:
any
)
=>
{
const
TosSecurityGuarderGet
=
(
values
:
any
)
=>
{
dispatch
({
type
:
'ServiceProvider/TosSecurityGuarderGet'
,
playload
:
values
});
dispatch
({
type
:
'ServiceProvider/TosSecurityGuarderGet'
,
playload
:
values
});
};
};
...
@@ -66,6 +68,7 @@ const Detail = (props: any) => {
...
@@ -66,6 +68,7 @@ const Detail = (props: any) => {
icon
:
<
ExclamationCircleOutlined
/>,
icon
:
<
ExclamationCircleOutlined
/>,
content
:
'Are you sure want to write off?'
,
content
:
'Are you sure want to write off?'
,
onOk
()
{
onOk
()
{
setLoding
(
true
);
dispatch
({
type
:
'ServiceProvider/DelServiceProvider'
,
playload
:
{
id
}
});
dispatch
({
type
:
'ServiceProvider/DelServiceProvider'
,
playload
:
{
id
}
});
},
},
onCancel
()
{
onCancel
()
{
...
@@ -77,9 +80,10 @@ const Detail = (props: any) => {
...
@@ -77,9 +80,10 @@ const Detail = (props: any) => {
useEffect
(()
=>
{
useEffect
(()
=>
{
console
.
log
(
Result
);
console
.
log
(
Result
);
if
(
Result
!==
null
)
{
if
(
Result
!==
null
)
{
setLoding
(
false
);
if
(
Result
)
{
if
(
Result
)
{
dispatch
({
type
:
'ServiceProvider/ResultClear'
});
dispatch
({
type
:
'ServiceProvider/ResultClear'
});
message
.
success
(
'Logout successful!'
,
3
,
()
=>
{
message
.
success
(
'Logout successful!'
,
2
,
()
=>
{
history
.
goBack
();
history
.
goBack
();
});
});
}
else
{
}
else
{
...
@@ -91,80 +95,83 @@ const Detail = (props: any) => {
...
@@ -91,80 +95,83 @@ const Detail = (props: any) => {
return
(
return
(
<
div
className=
{
styles
.
base
}
>
<
div
className=
{
styles
.
base
}
>
{
SaveChooseData
!==
null
?
(
<
Spin
spinning=
{
loading
}
>
<>
{
SaveChooseData
!==
null
?
(
<
TitleBack
title=
"Service Provider Details"
/>
<>
{
SaveChooseData
.
enable
===
'Normal'
?
(
<
TitleBack
title=
"Service Provider Details"
/>
<
div
className=
{
styles
.
writeOff
}
>
{
SaveChooseData
.
enable
===
'Normal'
?
(
<
Button
<
div
className=
{
styles
.
writeOff
}
>
icon=
{
<
PoweroffOutlined
/>
}
<
Button
type=
"primary"
icon=
{
<
PoweroffOutlined
/>
}
danger
type=
"primary"
onClick=
{
handleClick
.
bind
(
this
,
SaveChooseData
.
id
)
}
danger
>
onClick=
{
handleClick
.
bind
(
this
,
SaveChooseData
.
id
)
}
Write Off
>
</
Button
>
Write Off
</
div
>
</
Button
>
)
:
(
</
div
>
<
div
/>
)
:
(
)
}
<
div
/>
<
div
className=
{
styles
.
bigbox
}
>
)
}
<
div
className=
{
styles
.
box0
}
>
<
div
className=
{
styles
.
bigbox
}
>
{
/* <div className={styles.box0item1}></div> */
}
<
div
className=
{
styles
.
box0
}
>
{
/* <div className={styles.box0item2}>{SaveChooseData.serviceCommunityList}</div> */
}
{
/* <div className={styles.box0item1}></div> */
}
</
div
>
{
/* <div className={styles.box0item2}>{SaveChooseData.serviceCommunityList}</div> */
}
<
div
className=
{
styles
.
box1
}
>
</
div
>
<
div
className=
{
styles
.
box1item1
}
>
Company Name
</
div
>
<
div
className=
{
styles
.
box1
}
>
<
div
className=
{
styles
.
box1item2
}
>
{
SaveChooseData
.
providerName
}
</
div
>
<
div
className=
{
styles
.
box1item1
}
>
Company Name
</
div
>
</
div
>
<
div
className=
{
styles
.
box1item2
}
>
{
SaveChooseData
.
providerName
}
</
div
>
</
div
>
<
div
className=
{
styles
.
box2
}
>
<
div
className=
{
styles
.
box2
}
>
<
div
className=
{
styles
.
box2item1
}
>
Office Address
</
div
>
<
div
className=
{
styles
.
box2item1
}
>
Office Address
</
div
>
<
div
className=
{
styles
.
box2item2
}
>
{
SaveChooseData
.
providerAddress
}
</
div
>
<
div
className=
{
styles
.
box2item2
}
>
{
SaveChooseData
.
providerAddress
}
</
div
>
</
div
>
</
div
>
<
div
className=
{
styles
.
box3
}
>
<
div
className=
{
styles
.
box3
}
>
<
div
className=
{
styles
.
box3item1
}
>
Person In Charge
</
div
>
<
div
className=
{
styles
.
box3item1
}
>
Person In Charge
</
div
>
<
div
className=
{
styles
.
box3item2
}
>
{
SaveChooseData
.
contactName
}
</
div
>
<
div
className=
{
styles
.
box3item2
}
>
{
SaveChooseData
.
contactName
}
</
div
>
</
div
>
</
div
>
<
div
className=
{
styles
.
box4
}
>
<
div
className=
{
styles
.
box4
}
>
<
div
className=
{
styles
.
box4item1
}
>
Contact Details
</
div
>
<
div
className=
{
styles
.
box4item1
}
>
Contact Details
</
div
>
<
div
className=
{
styles
.
box4item2
}
>
<
div
className=
{
styles
.
box4item2
}
>
{
SaveChooseData
.
contactPhone
}
{
SaveChooseData
.
contactEmail
}
{
SaveChooseData
.
contactPhone
}
{
' '
}
{
SaveChooseData
.
contactEmail
}
</
div
>
</
div
>
</
div
>
</
div
>
<
div
className=
{
styles
.
box5
}
>
<
div
className=
{
styles
.
box5
}
>
<
div
className=
{
styles
.
box5item1
}
>
Services Available
</
div
>
<
div
className=
{
styles
.
box5item1
}
>
Services Available
</
div
>
<
div
className=
{
styles
.
box5item2
}
>
{
SaveChooseData
.
serviceScope
}
</
div
>
<
div
className=
{
styles
.
box5item2
}
>
{
SaveChooseData
.
serviceScope
}
</
div
>
</
div
>
<
div
className=
{
styles
.
box6
}
>
<
div
className=
{
styles
.
box1item1
}
>
Service Community
</
div
>
</
div
>
{
SaveChooseData
.
serviceCommunityList
!=
null
?
(
<
ShowOptions
list=
{
SaveChooseData
.
serviceCommunityList
}
defaultValue=
{
'Put It Away'
}
/>
)
:
(
<></>
)
}
</
div
>
</
div
>
<
div
className=
{
styles
.
box
6
}
>
<
div
className=
{
styles
.
box
7
}
>
<
div
className=
{
styles
.
box1item1
}
>
Se
rvice Community
</
div
>
<
div
className=
{
styles
.
box1item1
}
>
Se
curity Guard Account
</
div
>
</
div
>
</
div
>
{
SaveChooseData
.
serviceCommunityList
!=
null
?
(
<
Table
<
ShowOptions
rowKey=
{
'id'
}
list=
{
SaveChooseData
.
serviceCommunityList
}
style=
{
{
marginTop
:
16
}
}
defaultValue=
{
'Put It Away'
}
dataSource=
{
CurDataFollow
}
/>
columns=
{
columns
}
)
:
(
pagination=
{
pagination
}
<></>
/>
)
}
</>
</
div
>
)
:
null
}
</
Spin
>
<
div
className=
{
styles
.
box7
}
>
<
div
className=
{
styles
.
box1item1
}
>
Security Guard Account
</
div
>
</
div
>
<
Table
rowKey=
{
'id'
}
style=
{
{
marginTop
:
16
}
}
dataSource=
{
CurDataFollow
}
columns=
{
columns
}
pagination=
{
pagination
}
/>
</>
)
:
null
}
</
div
>
</
div
>
);
);
};
};
...
...
src/pages/UserManagement/ServiceProviderManagement/Services.tsx
View file @
b9d2af18
...
@@ -16,8 +16,8 @@ const Services = (props: any) => {
...
@@ -16,8 +16,8 @@ const Services = (props: any) => {
const
formRef
=
useRef
(
null
as
any
);
const
formRef
=
useRef
(
null
as
any
);
useEffect
(()
=>
{
useEffect
(()
=>
{
RA
(
43
,
{
serviceName
:
''
},
module
,
dispatch
);
RA
(
43
,
{},
module
,
dispatch
);
},
[
location
]);
},
[]);
useEffect
(()
=>
{
useEffect
(()
=>
{
if
(
DataServices
!=
null
)
{
if
(
DataServices
!=
null
)
{
...
@@ -26,10 +26,14 @@ const Services = (props: any) => {
...
@@ -26,10 +26,14 @@ const Services = (props: any) => {
return
v
[
'serviceName'
];
return
v
[
'serviceName'
];
});
});
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
]);
// 提交服务范围
const
onFinish
=
(
values
:
any
)
=>
{
const
onFinish
=
(
values
:
any
)
=>
{
console
.
log
(
values
);
console
.
log
(
values
);
// RA(
// RA(
...
@@ -42,10 +46,15 @@ const Services = (props: any) => {
...
@@ -42,10 +46,15 @@ const Services = (props: any) => {
// dispatch,
// dispatch,
// );
// );
};
};
// 添加服务范围
const
Add
=
(
values
:
any
)
=>
{
const
Add
=
(
values
:
any
)
=>
{
console
.
log
(
values
);
console
.
log
(
values
);
};
};
// 删除服务范围
const
Remove
=
(
values
:
any
)
=>
{};
const
Remove
=
(
values
:
any
)
=>
{};
return
(
return
(
<
div
className=
{
styles
.
base
}
>
<
div
className=
{
styles
.
base
}
>
<
TitleBack
title=
{
'Services Available Management'
}
></
TitleBack
>
<
TitleBack
title=
{
'Services Available Management'
}
></
TitleBack
>
...
@@ -57,7 +66,11 @@ const Services = (props: any) => {
...
@@ -57,7 +66,11 @@ const Services = (props: any) => {
</
Form
.
Item
>
</
Form
.
Item
>
)
:
null
}
)
:
null
}
<
Line
/>
<
Line
/>
{
/* <Form.Item ><Button type="primary" htmlType="submit">Submit</Button></Form.Item> */
}
<
Form
.
Item
>
<
Button
type=
"primary"
htmlType=
"submit"
>
Submit
</
Button
>
</
Form
.
Item
>
</
Form
>
</
Form
>
</
div
>
</
div
>
);
);
...
...
src/utils/params.ts
View file @
b9d2af18
...
@@ -106,21 +106,8 @@ export const requestList = [
...
@@ -106,21 +106,8 @@ export const requestList = [
permissionArray
:
[
'2'
,
'1'
,
'3'
,
'4'
],
permissionArray
:
[
'2'
,
'1'
,
'3'
,
'4'
],
},
},
],
],
[
[
'/tos/tosServiceScope/get'
,
'43 获取服务范围'
],
'/tos/tosServiceScope/get'
,
[
'/tos/tosServiceScope/save'
,
'44 添加服务范围'
],
'43 获取服务范围'
,
{
serviceName
:
''
,
},
],
[
'/tos/tosServiceScope/save'
,
'44 添加服务范围'
,
{
id
:
'5'
,
serviceName
:
'律政'
,
},
],
[
[
'/tos/user/getAllInfrom'
,
'/tos/user/getAllInfrom'
,
'45 获取后台列表'
,
'45 获取后台列表'
,
...
...
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