Commit 9e0fbec0 authored by MrShi's avatar MrShi

[fix]服务商模块

parent 41c626d6
...@@ -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: { '^': '' },
},*/ },
}, },
}; };
...@@ -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}>
......
...@@ -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"]}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment