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
a54e0a6a
Commit
a54e0a6a
authored
Dec 29, 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
ac1c7cb5
6e6978bd
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
32 additions
and
19 deletions
+32
-19
ServiceProvider.ts
src/models/ServiceProvider.ts
+4
-4
Users.tsx
src/pages/UserManagement/LIFEUserManagement/Users.tsx
+2
-2
Edit.tsx
src/pages/UserManagement/ServiceProviderManagement/Edit.tsx
+24
-13
index.tsx
src/pages/user/login/index.tsx
+2
-0
No files found.
src/models/ServiceProvider.ts
View file @
a54e0a6a
...
...
@@ -64,8 +64,8 @@ export default {
yield
put
({
type
:
"returnCurData"
,
CurData
});
// message.error("Service scope selection error!!!")
Modal
.
error
({
title
:
'Service s
cope s
election error'
,
content
:
'
Accounting service / security service provider is a single option!!
!'
,
title
:
'Service selection error'
,
content
:
'
No multiple selection are not allowed once Accounting or Security server is being selected
!'
,
});
return
;
}
...
...
@@ -75,8 +75,8 @@ export default {
let
CurData
:
Boolean
=
false
;
yield
put
({
type
:
"returnCurData"
,
CurData
});
Modal
.
error
({
title
:
'
Community
selection error'
,
content
:
'
You cannot select a community that already has a scope of service!!
!'
,
title
:
'
Service
selection error'
,
content
:
'
The community selected has been assigned to other Accounting or Security service provider. Please select again
!'
,
});
return
;
}
...
...
src/pages/UserManagement/LIFEUserManagement/Users.tsx
View file @
a54e0a6a
...
...
@@ -95,8 +95,8 @@ const Users = (props: any) => {
const
propsUpload
=
{
name
:
'file'
,
action
:
()
=>
{
// return 'http://47.74.233.180:8651/tos/excel/upload?userId=' + getCookie('id')
;
return
'http://192.168.1.28:8651/tos/excel/upload?userId='
+
id
;
return
'http://47.74.233.180:8651/tos/excel/upload?userId='
+
id
;
//
return 'http://192.168.1.28:8651/tos/excel/upload?userId=' + id;
},
beforeUpload
:
(
file
:
any
)
=>
{
if
(
file
.
type
!==
'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'
)
{
...
...
src/pages/UserManagement/ServiceProviderManagement/Edit.tsx
View file @
a54e0a6a
...
...
@@ -48,11 +48,6 @@ const Edit = (props: any) => {
optionsList
=
[...
DataServices
.
data
.
rows
];
}
return
()
=>
{
}
},
[
DataServices
]);
// 判断是否有小区列表数据返回
...
...
@@ -72,14 +67,30 @@ const Edit = (props: any) => {
useEffect
(()
=>
{
if
(
SaveChooseData
!=
null
)
{
// 处理服务范围数据
optionsList
.
forEach
((
v
)
=>
{
if
(
v
.
serviceName
===
SaveChooseData
.
serviceScope
)
{
SaveChooseData
.
serviceScopeList
=
v
.
serviceCode
;
formRef
.
current
.
setFieldsValue
(
SaveChooseData
);
}
});
console
.
log
(
optionsList
);
console
.
log
(
SaveChooseData
);
if
(
SaveChooseData
.
serviceScopeList
.
length
<=
1
)
{
// 处理服务范围数据
optionsList
.
forEach
((
v
)
=>
{
if
(
v
.
serviceName
===
SaveChooseData
.
serviceScope
)
{
SaveChooseData
.
serviceScopeList
=
v
.
serviceCode
;
}
});
}
else
{
console
.
log
(
1122
);
// 处理服务范围数据
optionsList
.
forEach
((
v1
)
=>
{
SaveChooseData
.
serviceScopeList
.
forEach
((
v2
:
string
,
index
:
number
)
=>
{
console
.
log
(
v1
.
serviceName
);
console
.
log
(
v1
.
serviceName
===
v2
);
if
(
v1
.
serviceName
===
v2
)
{
SaveChooseData
.
serviceScopeList
[
index
]
=
v1
.
serviceCode
;
}
});
});
}
formRef
.
current
.
setFieldsValue
(
SaveChooseData
);
console
.
log
(
SaveChooseData
);
}
},
[
SaveChooseData
]);
...
...
@@ -239,7 +250,7 @@ function mapStateToProps(state: any) {
const
{
CurData
,
SaveChooseData
}
=
state
.
ServiceProvider
;
const
{
DataServices
}
=
state
.
User
;
const
{
CommunityList
}
=
state
.
Init
;
console
.
log
(
CurData
)
console
.
log
(
CurData
)
;
return
{
CurData
,
SaveChooseData
,
...
...
src/pages/user/login/index.tsx
View file @
a54e0a6a
...
...
@@ -101,6 +101,8 @@ const Login: React.FC<LoginProps> = (props) => {
console
.
log
(
result
);
if
(
result
.
error_code
===
'0000'
)
{
message
.
success
(
'Has Been Sent!'
);
}
else
{
message
.
error
(
result
.
error_msg
);
}
},
[]);
...
...
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