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
32504f6a
Commit
32504f6a
authored
Feb 20, 2021
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
1867a7fc
d9778b50
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
33 additions
and
26 deletions
+33
-26
CardDetail.tsx
src/pages/CommercialService/CardDetail.tsx
+2
-2
RenovationDetail.tsx
src/pages/CommercialService/RenovationDetail.tsx
+2
-2
Edit.tsx
src/pages/UserManagement/ServiceProviderManagement/Edit.tsx
+29
-22
No files found.
src/pages/CommercialService/CardDetail.tsx
View file @
32504f6a
...
@@ -117,7 +117,7 @@ const CardDetail = (props: any) => {
...
@@ -117,7 +117,7 @@ const CardDetail = (props: any) => {
{
onwerDetail
.
owerName
}
{
onwerDetail
.
deleted
===
1
&&
'(Canceled)'
}{
' '
}
{
onwerDetail
.
owerName
}
{
onwerDetail
.
deleted
===
1
&&
'(Canceled)'
}{
' '
}
</
Col
>
</
Col
>
<
Col
>
Contact Details:
</
Col
>
<
Col
>
Contact Details:
</
Col
>
<
Col
span=
{
2
}
>
{
onwerDetail
.
owerPhone
}
</
Col
>
<
Col
span=
{
3
}
>
{
onwerDetail
.
owerPhone
}
</
Col
>
<
Col
>
{
onwerDetail
.
owerEmail
}
</
Col
>
<
Col
>
{
onwerDetail
.
owerEmail
}
</
Col
>
</
Row
>
</
Row
>
<
Line
/>
<
Line
/>
...
@@ -127,7 +127,7 @@ const CardDetail = (props: any) => {
...
@@ -127,7 +127,7 @@ const CardDetail = (props: any) => {
{
listData
.
apply_name
}
{
listData
.
exist
===
'1'
&&
'(Canceled)'
}
{
listData
.
apply_name
}
{
listData
.
exist
===
'1'
&&
'(Canceled)'
}
</
Col
>
</
Col
>
<
Col
>
Contact Details:
</
Col
>
<
Col
>
Contact Details:
</
Col
>
<
Col
span=
{
2
}
>
{
listData
.
apply_name_phone
}
</
Col
>
<
Col
span=
{
3
}
>
{
listData
.
apply_name_phone
}
</
Col
>
<
Col
>
{
listData
.
apply_name_email
}
</
Col
>
<
Col
>
{
listData
.
apply_name_email
}
</
Col
>
</
Row
>
</
Row
>
<
Row
gutter=
{
8
}
style=
{
{
marginTop
:
16
}
}
>
<
Row
gutter=
{
8
}
style=
{
{
marginTop
:
16
}
}
>
...
...
src/pages/CommercialService/RenovationDetail.tsx
View file @
32504f6a
...
@@ -116,7 +116,7 @@ const RenovationDetail = (props: any) => {
...
@@ -116,7 +116,7 @@ const RenovationDetail = (props: any) => {
{
onwerDetail
.
owerName
}
{
onwerDetail
.
deleted
===
1
&&
'(Canceled)'
}
{
onwerDetail
.
owerName
}
{
onwerDetail
.
deleted
===
1
&&
'(Canceled)'
}
</
Col
>
</
Col
>
<
Col
>
Contact Details:
</
Col
>
<
Col
>
Contact Details:
</
Col
>
<
Col
span=
{
2
}
>
{
onwerDetail
.
owerPhone
}
</
Col
>
<
Col
span=
{
3
}
>
{
onwerDetail
.
owerPhone
}
</
Col
>
<
Col
>
{
onwerDetail
.
owerEmail
}
</
Col
>
<
Col
>
{
onwerDetail
.
owerEmail
}
</
Col
>
</
Row
>
</
Row
>
...
@@ -127,7 +127,7 @@ const RenovationDetail = (props: any) => {
...
@@ -127,7 +127,7 @@ const RenovationDetail = (props: any) => {
{
listData
.
contactName
}
{
listData
.
exist
===
'1'
&&
'(Canceled)'
}
{
listData
.
contactName
}
{
listData
.
exist
===
'1'
&&
'(Canceled)'
}
</
Col
>
</
Col
>
<
Col
>
Contact Details:
</
Col
>
<
Col
>
Contact Details:
</
Col
>
<
Col
span=
{
2
}
>
{
listData
.
contactPhone
}
</
Col
>
<
Col
span=
{
3
}
>
{
listData
.
contactPhone
}
</
Col
>
<
Col
>
{
listData
.
contactEmail
}
</
Col
>
<
Col
>
{
listData
.
contactEmail
}
</
Col
>
</
Row
>
</
Row
>
<
Row
gutter=
{
8
}
style=
{
{
marginTop
:
16
}
}
>
<
Row
gutter=
{
8
}
style=
{
{
marginTop
:
16
}
}
>
...
...
src/pages/UserManagement/ServiceProviderManagement/Edit.tsx
View file @
32504f6a
import
React
,
{
useState
,
useEffect
,
useRef
}
from
'react'
;
import
React
,
{
useState
,
useEffect
,
useRef
}
from
'react'
;
import
{
Input
,
Button
,
Form
,
Spin
,
Modal
,
Checkbox
}
from
'antd'
;
import
{
Input
,
Button
,
Form
,
Spin
,
Checkbox
,
Modal
}
from
'antd'
;
import
{
connect
,
history
}
from
'umi'
;
import
{
connect
,
history
}
from
'umi'
;
import
{
RA
}
from
'@/utils/method'
;
import
{
RA
}
from
'@/utils/method'
;
import
{
CheckboxValueType
}
from
'antd/lib/checkbox/Group'
;
//
import { CheckboxValueType } from 'antd/lib/checkbox/Group';
import
SelectOptions
from
'../../../components/SelectOptions/index'
;
import
SelectOptions
from
'../../../components/SelectOptions/index'
;
import
ShowOptions
from
'@/components/ShowOptions/index'
;
import
TitleBack
from
'../../../components/TitleBack/TitleBack'
;
import
TitleBack
from
'../../../components/TitleBack/TitleBack'
;
import
styles
from
'./Edit.less'
;
import
styles
from
'./Edit.less'
;
import
type
{
CheckboxValueType
}
from
'antd/lib/checkbox/Group'
;
const
module
=
'User'
;
const
module
=
'User'
;
let
options
:
Array
<
{
label
:
string
;
value
:
number
}
>
=
[];
let
options
:
Array
<
{
label
:
string
;
value
:
number
}
>
=
[];
...
@@ -18,9 +20,7 @@ let optionsList: {
...
@@ -18,9 +20,7 @@ let optionsList: {
const
Edit
=
(
props
:
any
)
=>
{
const
Edit
=
(
props
:
any
)
=>
{
const
{
dispatch
,
CurData
,
SaveChooseData
,
CommunityList
,
DataServices
}
=
props
;
const
{
dispatch
,
CurData
,
SaveChooseData
,
CommunityList
,
DataServices
}
=
props
;
const
[
CList
,
setCList
]
=
useState
(
CommunityList
);
const
[
CList
,
setCList
]
=
useState
(
CommunityList
);
const
[
load
,
setload
]
=
useState
(
false
);
const
[
load
,
setload
]
=
useState
(
false
);
const
TosTosServiceProviderSave
=
(
values
:
any
)
=>
{
const
TosTosServiceProviderSave
=
(
values
:
any
)
=>
{
...
@@ -56,7 +56,6 @@ const Edit = (props: any) => {
...
@@ -56,7 +56,6 @@ const Edit = (props: any) => {
value
:
v
.
serviceCode
,
value
:
v
.
serviceCode
,
};
};
});
});
optionsList
=
[...
DataServices
.
data
.
rows
];
optionsList
=
[...
DataServices
.
data
.
rows
];
}
}
},
[
DataServices
]);
},
[
DataServices
]);
...
@@ -112,6 +111,7 @@ const Edit = (props: any) => {
...
@@ -112,6 +111,7 @@ const Edit = (props: any) => {
val
.
updater
=
'admin'
;
val
.
updater
=
'admin'
;
if
(
SaveChooseData
)
{
if
(
SaveChooseData
)
{
val
.
id
=
SaveChooseData
.
id
;
val
.
id
=
SaveChooseData
.
id
;
val
.
serviceScopeList
=
SaveChooseData
.
serviceScopeList
;
}
}
setload
(
true
);
setload
(
true
);
TosTosServiceProviderSave
(
val
);
TosTosServiceProviderSave
(
val
);
...
@@ -159,27 +159,34 @@ const Edit = (props: any) => {
...
@@ -159,27 +159,34 @@ const Edit = (props: any) => {
<
div
className=
{
styles
.
line
}
/>
<
div
className=
{
styles
.
line
}
/>
<
SelectOptions
{
SaveChooseData
!==
null
?
(
list=
{
CommunityList
?
CommunityList
.
sort
()
:
[]
}
<
ShowOptions
list=
{
SaveChooseData
.
serviceCommunityList
}
defaultValue=
"Close"
/>
checklist=
{
SaveChooseData
!=
null
?
SaveChooseData
.
serviceCommunityList
:
null
}
)
:
(
onSubmit=
{
printContent
}
<
SelectOptions
/>
list=
{
CommunityList
?
CommunityList
.
sort
()
:
[]
}
// checklist=
{
SaveChooseData
!=
null
?
SaveChooseData
.
serviceCommunityList
:
null
}
onSubmit=
{
printContent
}
/>
)
}
<
div
className=
{
styles
.
box2
}
>
<
div
className=
{
styles
.
box2
}
>
<
div
className=
{
styles
.
box2item1
}
>
Services Available
</
div
>
<
div
className=
{
styles
.
box2item1
}
>
Services Available
</
div
>
<
div
className=
{
styles
.
box2item2
}
>
<
div
className=
{
styles
.
box2item2
}
>
<
Form
.
Item
{
SaveChooseData
!==
null
?
(
name=
"serviceScopeList"
SaveChooseData
?.
serviceScope
rules=
{
[
)
:
(
{
<
Form
.
Item
required
:
true
,
name=
"serviceScopeList"
message
:
'Please select at least one service available!'
,
rules=
{
[
},
{
]
}
required
:
true
,
>
message
:
'Please select at least one service available!'
,
<
Checkbox
.
Group
options=
{
options
as
any
}
onChange=
{
onSelectCheckBox
}
/>
},
{
/* <Radio.Group options={options as any} /> */
}
]
}
</
Form
.
Item
>
>
<
Checkbox
.
Group
options=
{
options
}
onChange=
{
onSelectCheckBox
}
/>
</
Form
.
Item
>
)
}
</
div
>
</
div
>
</
div
>
</
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