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
9e0fbec0
Commit
9e0fbec0
authored
Oct 10, 2020
by
MrShi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[fix]服务商模块
parent
41c626d6
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
69 additions
and
59 deletions
+69
-59
proxy.ts
config/proxy.ts
+4
-4
Users.tsx
src/pages/UserManagement/LIFEUserManagement/Users.tsx
+35
-34
ServiceProviderManagement.tsx
...t/ServiceProviderManagement/ServiceProviderManagement.tsx
+30
-21
No files found.
config/proxy.ts
View file @
9e0fbec0
...
@@ -86,15 +86,15 @@ export default {
...
@@ -86,15 +86,15 @@ export default {
changeOrigin
:
true
,
changeOrigin
:
true
,
pathRewrite
:
{
'^'
:
''
},
pathRewrite
:
{
'^'
:
''
},
},
},
'/tos/'
:
{
/*
'/tos/': {
target: 'http://47.74.233.180:8651',
target: 'http://47.74.233.180:8651',
changeOrigin: true,
changeOrigin: true,
pathRewrite: { '^': '' },
pathRewrite: { '^': '' },
},
},
*/
/*
'/tos/': {
'/tos/'
:
{
target
:
'http://localhost:8651'
,
target
:
'http://localhost:8651'
,
changeOrigin
:
true
,
changeOrigin
:
true
,
pathRewrite
:
{
'^'
:
''
},
pathRewrite
:
{
'^'
:
''
},
},
*/
},
},
},
};
};
src/pages/UserManagement/LIFEUserManagement/Users.tsx
View file @
9e0fbec0
...
@@ -199,7 +199,8 @@ const Users = (props:any) => {
...
@@ -199,7 +199,8 @@ const Users = (props:any) => {
<
TitleSearch
listkey=
{
[
"OwnerName"
]
}
list=
{
[
"Owner Name"
]
}
community=
{
"serviceCommunityList"
}
onSubmit=
{
CallBackTitleSearch
}
/>
<
TitleSearch
listkey=
{
[
"OwnerName"
]
}
list=
{
[
"Owner Name"
]
}
community=
{
"serviceCommunityList"
}
onSubmit=
{
CallBackTitleSearch
}
/>
{
/* 内容组件 */
}
{
/* 内容组件 */
}
<
div
className=
{
styles
.
box2
}
>
<
div
className=
{
styles
.
box2
}
>
...
...
src/pages/UserManagement/ServiceProviderManagement/ServiceProviderManagement.tsx
View file @
9e0fbec0
...
@@ -7,6 +7,7 @@ import { LoadingOutlined } from '@ant-design/icons';
...
@@ -7,6 +7,7 @@ import { LoadingOutlined } from '@ant-design/icons';
import
{
Link
,
useIntl
,
connect
,
Dispatch
,
history
}
from
'umi'
;
import
{
Link
,
useIntl
,
connect
,
Dispatch
,
history
}
from
'umi'
;
import
TitleSearch
from
'../../../components/TitleSearch/TitleSearch'
;
import
TitleSearch
from
'../../../components/TitleSearch/TitleSearch'
;
import
{
filterObj
,
urlEncode
}
from
"@/utils/method"
;
const
ServiceProviderManagement
=
(
props
:
any
)
=>
{
const
ServiceProviderManagement
=
(
props
:
any
)
=>
{
const
{
formatMessage
}
=
useIntl
();
const
{
formatMessage
}
=
useIntl
();
...
@@ -75,12 +76,20 @@ const ServiceProviderManagement = (props: any) => {
...
@@ -75,12 +76,20 @@ const ServiceProviderManagement = (props: any) => {
const
CallBackTitleSearch
=
(
comment
:
any
)
=>
{
const
CallBackTitleSearch
=
(
comment
:
any
)
=>
{
console
.
log
(
comment
)
console
.
log
(
comment
)
console
.
log
(
location
.
pathname
)
//页面搜索
TosTosServiceProviderGet
({
providerName
:
comment
.
providerName
,
serviceCommunityList
:
CommunityList
})
// history.push(location.pathname+urlEncode(filterObj({ providerName: comment.providerName})))
}
}
return
(
return
(
<
div
className=
{
styles
.
base
}
>
<
div
className=
{
styles
.
base
}
>
{
/* 头部组件 */
}
<
TitleSearch
<
TitleSearch
listkey=
{
[
"providerName"
]
}
listkey=
{
[
"providerName"
]
}
...
...
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