Commit d9900e69 authored by tjy's avatar tjy
parents 00bd838a 089186ea
...@@ -7,31 +7,31 @@ import shopRoute from './shopRoutes' ...@@ -7,31 +7,31 @@ import shopRoute from './shopRoutes'
*/ */
const router = [ const router = [
{ {
path: '/user',
component: '@/layouts/UserLayouts',
routes: [
{
path: '/user/login',
component: '@/pages/user'
},
{
path: '/user/register',
component: '@/pages/user/register'
},
{
path: '/user/getBack',
component: '@/pages/user/getBack'
},
{
path: '/user/policy',
component: '@/pages/user/policy'
},
]
},
{
path: '/', path: '/',
component: '@/wrappers/getSiteConfig', component: '@/wrappers/getSiteConfig',
routes: [ routes: [
{
path: '/user',
component: '@/layouts/UserLayouts',
routes: [
{
path: '/user/login',
component: '@/pages/user'
},
{
path: '/user/register',
component: '@/pages/user/register'
},
{
path: '/user/getBack',
component: '@/pages/user/getBack'
},
{
path: '/user/policy',
component: '@/pages/user/policy'
},
]
},
memberCenterRoute, memberCenterRoute,
shopRoute, shopRoute,
{ {
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* @Author: ghua * @Author: ghua
* @Date: 2020-07-10 11:36:32 * @Date: 2020-07-10 11:36:32
* @Last Modified by: ghua * @Last Modified by: ghua
* @Last Modified time: 2020-07-10 15:37:39 * @Last Modified time: 2020-07-18 11:19:36
*/ */
const CommodityRoute = { const CommodityRoute = {
...@@ -67,12 +67,14 @@ const CommodityRoute = { ...@@ -67,12 +67,14 @@ const CommodityRoute = {
{ {
path: '/memberCenter/commodityAbility/trademark', path: '/memberCenter/commodityAbility/trademark',
name: 'trademark', name: 'trademark',
key: 'trademark',
icon: 'smile', icon: 'smile',
component: '@/pages/trademark', component: '@/pages/trademark',
}, },
{ {
path: '/memberCenter/commodityAbility/trademark/addBrand', path: '/memberCenter/commodityAbility/trademark/addBrand',
name: 'addBrand', name: 'addBrand',
key: 'addBrand',
icon: 'smile', icon: 'smile',
hideInMenu: true, hideInMenu: true,
component: '@/pages/trademark/addBrand', component: '@/pages/trademark/addBrand',
...@@ -80,6 +82,7 @@ const CommodityRoute = { ...@@ -80,6 +82,7 @@ const CommodityRoute = {
{ {
path: '/memberCenter/commodityAbility/trademark/viewBrand', path: '/memberCenter/commodityAbility/trademark/viewBrand',
name: 'viewBrand', name: 'viewBrand',
key: 'viewBrand',
hideInMenu: true, hideInMenu: true,
icon: 'smile', icon: 'smile',
component: '@/pages/trademark/viewBrand', component: '@/pages/trademark/viewBrand',
...@@ -87,6 +90,7 @@ const CommodityRoute = { ...@@ -87,6 +90,7 @@ const CommodityRoute = {
{ {
path: '/memberCenter/commodityAbility/commodity', path: '/memberCenter/commodityAbility/commodity',
name: 'commodity', name: 'commodity',
key: 'commodity',
icon: 'smile', icon: 'smile',
routes: [ routes: [
{ {
...@@ -154,12 +158,14 @@ const CommodityRoute = { ...@@ -154,12 +158,14 @@ const CommodityRoute = {
{ {
path: '/memberCenter/commodityAbility/repositories', path: '/memberCenter/commodityAbility/repositories',
name: 'repositories', name: 'repositories',
key: 'repositories',
icon: 'smile', icon: 'smile',
component: './repositories', component: './repositories',
}, },
{ {
path: '/memberCenter/commodityAbility/repositories/addRepository', path: '/memberCenter/commodityAbility/repositories/addRepository',
name: 'addRepository', name: 'addRepository',
key: 'addRepository',
icon: 'smile', icon: 'smile',
hideInMenu: true, hideInMenu: true,
component: './repositories/addRepository', component: './repositories/addRepository',
...@@ -167,6 +173,7 @@ const CommodityRoute = { ...@@ -167,6 +173,7 @@ const CommodityRoute = {
{ {
path: '/memberCenter/commodityAbility/repositories/adjustRepository', path: '/memberCenter/commodityAbility/repositories/adjustRepository',
name: 'adjustRepository', name: 'adjustRepository',
key: 'adjustRepository',
icon: 'smile', icon: 'smile',
hideInMenu: true, hideInMenu: true,
component: './repositories/adjustRepository', component: './repositories/adjustRepository',
...@@ -174,6 +181,7 @@ const CommodityRoute = { ...@@ -174,6 +181,7 @@ const CommodityRoute = {
{ {
path: '/memberCenter/commodityAbility/repositories/viewRepository', path: '/memberCenter/commodityAbility/repositories/viewRepository',
name: 'viewRepository', name: 'viewRepository',
key: 'viewRepository',
icon: 'smile', icon: 'smile',
hideInMenu: true, hideInMenu: true,
component: './repositories/viewRepository', component: './repositories/viewRepository',
......
/*
* @Author: LeeJiancong
* @Date: 2020-07-13 14:08:50
* @LastEditors: LeeJiancong
* @LastEditTime: 2020-07-18 18:56:08
*/
import CommodityRoute from './commodityRoute' // 商品能力路由 import CommodityRoute from './commodityRoute' // 商品能力路由
import MemberRoute from './memberRoute' // 会员能力路由 import MemberRoute from './memberRoute' // 会员能力路由
import ShopRoute from './shopRoute' // 店铺能力路由 import ShopRoute from './shopRoute' // 店铺能力路由
...@@ -9,14 +15,14 @@ const memberCenterRoute = { ...@@ -9,14 +15,14 @@ const memberCenterRoute = {
path: '/memberCenter', path: '/memberCenter',
component: '@/layouts/BasicLayout', component: '@/layouts/BasicLayout',
routes: [ routes: [
{ // {
path: '/memberCenter', // path: '/memberCenter',
redirect: '/memberCenter/home' // redirect: '/memberCenter/home'
}, // },
{ // {
path: '/memberCenter/shopAbility', // path: '/memberCenter/shopAbility',
redirect: '/memberCenter/shopAbility/infoManage' // redirect: '/memberCenter/shopAbility/infoManage'
}, // },
{ {
// 首页 // 首页
path: `/memberCenter/home`, path: `/memberCenter/home`,
......
...@@ -11,6 +11,11 @@ const LogisticsRoute = { ...@@ -11,6 +11,11 @@ const LogisticsRoute = {
icon: 'smile', icon: 'smile',
routes: [ routes: [
{ {
/**
* @description: 物流管理模块
* @param {type}
* @return:
*/
path: '/memberCenter/logisticsAbility/logistics', path: '/memberCenter/logisticsAbility/logistics',
name: 'logistics', name: 'logistics',
key: 'logistics', key: 'logistics',
...@@ -55,6 +60,26 @@ const LogisticsRoute = { ...@@ -55,6 +60,26 @@ const LogisticsRoute = {
hideInMenu: true hideInMenu: true
} }
]
},
/**
* @description: 物流单管理模块
* @param {type}
* @return:
*/
{
path: '/memberCenter/logisticsAbility/logisticsSubmit',
name: 'logisticsSubmit',
key: 'logisticsSubmit',
routes: [
{
path: '/memberCenter/logisticsAbility/logisticsSubmit/orderSearchList',
name: 'orderSearchList',
component: '@/pages/logistics/logisticsSubmit/orderSearchList',
}
] ]
} }
] ]
......
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
"scripts": { "scripts": {
"scripts:build": "node scripts/run", "scripts:build": "node scripts/run",
"start:analyze": "ANALYZE=1 umi dev", "start:analyze": "ANALYZE=1 umi dev",
"clean": "rimraf node_modules",
"start": "umi dev", "start": "umi dev",
"build": "umi build", "build": "umi build",
"build:analyze": "ANALYZE=1 umi build", "build:analyze": "ANALYZE=1 umi build",
...@@ -28,7 +29,7 @@ ...@@ -28,7 +29,7 @@
"@umijs/preset-react": "1.x", "@umijs/preset-react": "1.x",
"@umijs/test": "^3.2.0", "@umijs/test": "^3.2.0",
"bizcharts": "^4.0.7", "bizcharts": "^4.0.7",
"god": "^0.1.7", "god": "0.1.7",
"lint-staged": "^10.0.7", "lint-staged": "^10.0.7",
"mobx": "^5.15.4", "mobx": "^5.15.4",
"mobx-react": "^6.2.2", "mobx-react": "^6.2.2",
......
...@@ -70,10 +70,10 @@ const BasicLayout: React.FC<BasicLayoutProps> = (props) => { ...@@ -70,10 +70,10 @@ const BasicLayout: React.FC<BasicLayoutProps> = (props) => {
const { formatMessage } = useIntl(); const { formatMessage } = useIntl();
const basicInfo = getMenuData(props.route.routes, { locale: true }, formatMessage) const basicInfo = getMenuData(props.route.routes, { locale: true }, formatMessage)
const menuData = basicInfo.menuData const menuData = basicInfo.menuData ? basicInfo.menuData.filter(item => !item.redirect) : []
const menuRouter = getMenuRouter(menuData, location.pathname) const menuRouter = getMenuRouter(menuData, location.pathname)
console.log(menuData)
useEffect(() => { useEffect(() => {
if (menuRouter && menuRouter.children) { if (menuRouter && menuRouter.children) {
...@@ -82,7 +82,6 @@ const BasicLayout: React.FC<BasicLayoutProps> = (props) => { ...@@ -82,7 +82,6 @@ const BasicLayout: React.FC<BasicLayoutProps> = (props) => {
} else { } else {
setOpenKeys(initOpendKeys(menuRouter.children)) setOpenKeys(initOpendKeys(menuRouter.children))
} }
} else { } else {
setOpenKeys([]) setOpenKeys([])
} }
......
...@@ -41,7 +41,7 @@ const OuterSider: React.FC<OuterSiderProps> = (props) => { ...@@ -41,7 +41,7 @@ const OuterSider: React.FC<OuterSiderProps> = (props) => {
<li key={item.key} className={defaultSelectedKeys === item.key ? "currentItem" : ''}> <li key={item.key} className={defaultSelectedKeys === item.key ? "currentItem" : ''}>
<Link to={item.path}> <Link to={item.path}>
<AppstoreOutlined /> <AppstoreOutlined />
<span>{item.title}</span> <label>{item.title}</label>
</Link> </Link>
</li> </li>
)) ))
......
...@@ -19,7 +19,7 @@ const SelectLang: React.FC = () => { ...@@ -19,7 +19,7 @@ const SelectLang: React.FC = () => {
const [currentLangKey, setCurrentLangKey] = useState<string>('zh-CN') const [currentLangKey, setCurrentLangKey] = useState<string>('zh-CN')
useEffect(() => { useEffect(() => {
console.log(getLocale(), "getLocale()") console.log(getLocale(), "locale")
setCurrentLangKey(getLocale()) setCurrentLangKey(getLocale())
}, []) }, [])
......
...@@ -30,23 +30,33 @@ ...@@ -30,23 +30,33 @@
.menuBox { .menuBox {
padding: 0; padding: 0;
text-align: center; text-align: center;
padding-top: 24px;
li { li {
height: 60px; padding: 11px 0 2px 0;
line-height: 60px; margin-bottom: 16px;
margin: 28px 0;
span { a {
display: block;
}
label {
display: block; display: block;
height: 24px; line-height: 20px;
margin-top: 4px;
font-size: 12px; font-size: 12px;
font-weight: 400; font-weight: 400;
color: rgba(151, 160, 175, 1); color: rgba(151, 160, 175, 1);
line-height: 24px; }
span {
display: block;
// height: 24px;
font-size: 24px;
font-weight: 400;
color: rgba(151, 160, 175, 1);
& :first-child {
font-size: 24px;
}
} }
} }
} }
...@@ -56,6 +66,10 @@ ...@@ -56,6 +66,10 @@
span { span {
color: #fff !important; color: #fff !important;
} }
label {
color: #fff !important;
}
} }
.menuItem { .menuItem {
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: LeeJiancong * @Author: LeeJiancong
* @Date: 2020-07-13 14:08:50 * @Date: 2020-07-13 14:08:50
* @LastEditors: LeeJiancong * @LastEditors: LeeJiancong
* @LastEditTime: 2020-07-17 18:01:02 * @LastEditTime: 2020-07-18 16:25:18
*/ */
export default { export default {
...@@ -68,5 +68,8 @@ export default { ...@@ -68,5 +68,8 @@ export default {
'menu.logisticsAbility.logistics.addressForm':'新建发货地址', 'menu.logisticsAbility.logistics.addressForm':'新建发货地址',
'menu.logisticsAbility.logistics.receivingAddress':'收货地址管理', 'menu.logisticsAbility.logistics.receivingAddress':'收货地址管理',
'menu.logisticsAbility.logistics.template':'运费模板管理', 'menu.logisticsAbility.logistics.template':'运费模板管理',
'menu.logisticsAbility.logistics.templateForm':'新建运费模板' 'menu.logisticsAbility.logistics.templateForm':'新建运费模板',
'menu.logisticsAbility.logisticsSubmit':'物流单提交',
'menu.logisticsAbility.logisticsSubmit.orderSearchList':'物流单查询'
}; };
\ No newline at end of file
import React, {Component} from 'react'; import React, { Component } from 'react';
import { Link } from 'umi'
class Index extends Component<{}, {}> { class Index extends Component<{}, {}> {
render() { render() {
return <div> return <div>
index index
<Link to="/memberCenter/home">会员中心</Link>
</div> </div>
} }
} }
......
import React,{useState,useEffect,useRef, ReactNode} from 'react';
import { Card, Button} from 'antd'
import {PageHeaderWrapper} from '@ant-design/pro-layout'
import {StandardTable} from 'god'
import { ColumnType } from 'antd/lib/table/interface'
interface listProps{
title?:string,
fromPage?:string | number
}
const data = [
{
key:'12',
oredrNo:'WL 52653581',
status: 0
}
]
const statuStyle = {
default:{
padding:'2px 5px',
background:'rgba(244,245,247,1)',
borderRadius:'4px'
},
confirm:{
color:'#3F7ED2',
padding:'2px 5px',
background:'rgba(240, 248, 255, 1)',
borderRadius:'4px'
},
success:{
color:'#00B37A',
padding:'2px 5px',
background:'rgba(235,247,242,1)',
borderRadius:'4px'
},
warn:{
color:'#E63F3B',
padding:'2px 5px',
background:'rgba(255,235,230,1)',
borderRadius:'4px'
}
}
// 定义列的格式
interface Item {
oredrNo: string
}
const fetchData = (params: any) => {
return new Promise((resolve, reject) => {
const queryResult = data.find(v => v.key === params.keywords)
setTimeout(() => {
resolve({
code: 200,
message: '',
data: queryResult ? [queryResult] : data
})
}, 1000)
})
}
const orderSearchList: React.FC<listProps> = (props) => {
const ref = useRef({})
const [selectRow,setSelectRow] = useState<Item[]>([])
const [selectedRowKeys,setSelectedRowKeys] = useState<Array<string>>([])
const handleSee = () => {
}
const columns: ColumnType<any>[] = [
{
title:'物流单号',
align:'left',
dataIndex:'oredrNo',
key:'oredrNo'
},
{
title:'对应订单号',
align:'center',
dataIndex:'key13',
key:'key13'
},
{
title:'收货方',
align:'left',
dataIndex:'key12',
key:'key12'
},
{
title:'物流单号',
align:'center',
dataIndex:'key11',
key:'key11'
},
{
title:'总箱数',
align:'center',
dataIndex:'key222',
key:'key222'
},
{
title:'总重量',
align:'center',
dataIndex:'key222',
key:'key222'
},
{
title:'总体积',
align:'center',
dataIndex:'key22',
key:'key22'
},
{
title:'单据时间',
align:'left',
dataIndex:'key2',
key:'key2'
},
{
title:'外部状态',
align:'center',
dataIndex:'status',
key:'status',
render:(_:any,reconds) =>{
let component:ReactNode = null
if(reconds.status == 0){
component = <><span style={statuStyle.success}>接受物流</span></>
}else if(reconds.status == 2){
component = <><span style={statuStyle.warn}>不接受物流单</span></>
}else if(reconds.status == 3) {
component = <><span style={statuStyle.confirm}>待确认</span></>
}else if(reconds.status == 4) {
component = <><span style={statuStyle.default}>请提交</span></>
}
return component
}
},
{
title:'操作',
align:'center',
dataIndex:'option',
render: (_:any,reconds) => {
return (
<Button type="link" onClick={handleSee}>查看</Button>
)
}
}
]
const rowSelection = {
}
return (
<PageHeaderWrapper title='快递单查询'>
<Card>
<StandardTable
columns={columns}
currentRef={ref}
formAlign='left'
rowSelection={rowSelection}
fetchTableData={(params: any) => fetchData(params)}
rowClassName="editable-row"
/>
</Card>
</PageHeaderWrapper>
)
}
orderSearchList.defaultProps = {
}
export default orderSearchList
\ No newline at end of file
/* /*
* @Date: 2020-07-13 15:01:40 * @Date: 2020-07-13 15:01:40
* @LastEditors: LeeJiancong * @LastEditors: LeeJiancong
* @LastEditTime: 2020-07-17 15:13:08 * @LastEditTime: 2020-07-18 15:12:44
*/ */
import React, { ReactNode, useRef } from 'react' import React, { ReactNode, useRef } from 'react'
...@@ -170,13 +170,15 @@ const Company: React.FC<{}> = () => { ...@@ -170,13 +170,15 @@ const Company: React.FC<{}> = () => {
columns={columns} columns={columns}
currentRef={ref} currentRef={ref}
fetchTableData={(params: any) => fetchData(params)} fetchTableData={(params: any) => fetchData(params)}
formilyChilds={ formilyChilds={{
<> children: (
<Button type="primary" onClick={() => history.push('/memberCenter/logisticsAbility/logistics/list/addCompany')}> <>
新建 <PlusOutlined /> <Button type="primary" onClick={() => history.push('/memberCenter/logisticsAbility/logistics/list/addCompany')}>
</Button> 新建 <PlusOutlined />
</> </Button>
} </>
)
}}
/> />
</Card> </Card>
</PageHeaderWrapper> </PageHeaderWrapper>
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: LeeJiancong * @Author: LeeJiancong
* @Date: 2020-07-15 10:31:55 * @Date: 2020-07-15 10:31:55
* @LastEditors: LeeJiancong * @LastEditors: LeeJiancong
* @LastEditTime: 2020-07-17 18:04:19 * @LastEditTime: 2020-07-18 11:47:19
*/ */
import React, { Component, useState,useEffect } from 'react'; import React, { Component, useState,useEffect } from 'react';
import ReactDOM from 'react-dom' import ReactDOM from 'react-dom'
...@@ -21,13 +21,6 @@ import { Row, Col, Card, Button, Popconfirm, Select as ISelect } from 'antd'; ...@@ -21,13 +21,6 @@ import { Row, Col, Card, Button, Popconfirm, Select as ISelect } from 'antd';
import { PageHeaderWrapper } from '@ant-design/pro-layout' import { PageHeaderWrapper } from '@ant-design/pro-layout'
import { MegaLayout, Input, Switch, Select, FormMegaLayout } from '@formily/antd-components' import { MegaLayout, Input, Switch, Select, FormMegaLayout } from '@formily/antd-components'
import ReutrnEle from '@/components/ReturnEle' import ReutrnEle from '@/components/ReturnEle'
import 'antd/dist/antd.css'
let selectList: any = [
{ label: '+86', value: '1' },
{ label: 'Two', value: '2' },
{ label: 'Three', value: '3' },
{ label: 'Four', value: '4' }
];
import ChinaImg from '../../../../../mockStatic/china.png' import ChinaImg from '../../../../../mockStatic/china.png'
import gou from '../../../../../mockStatic/gou.png' import gou from '../../../../../mockStatic/gou.png'
import japenImg from '../../../../../mockStatic/japen.png' import japenImg from '../../../../../mockStatic/japen.png'
...@@ -76,6 +69,7 @@ const dropdownRender = () => { ...@@ -76,6 +69,7 @@ const dropdownRender = () => {
// registerFormFields({ prefixSelect: connect()(CustomSelect) }) // registerFormFields({ prefixSelect: connect()(CustomSelect) })
const diaLogForm: React.FC<ListProps> = (props) => { const diaLogForm: React.FC<ListProps> = (props) => {
const type:string = history.location.query.addType const type:string = history.location.query.addType
const [Options,setOptions] = useState([])
const [state, setState] = useState({ editable: true }) const [state, setState] = useState({ editable: true })
const [headerTitle,setHeaderTitle] = useState('') const [headerTitle,setHeaderTitle] = useState('')
const [select, setSelect] = useState<countryItem>({ const [select, setSelect] = useState<countryItem>({
...@@ -99,12 +93,7 @@ const diaLogForm: React.FC<ListProps> = (props) => { ...@@ -99,12 +93,7 @@ const diaLogForm: React.FC<ListProps> = (props) => {
const handleChangeSelect = () => { const handleChangeSelect = () => {
} }
useEffect(() => {
history.location.query.addType == '1'? setHeaderTitle('新建发货地址') : setHeaderTitle('新建收货地址')
return () => {
}
}, [])
const List:any = [ChinaImg,gou,japenImg,korenImg,us] const List:any = [ChinaImg,gou,japenImg,korenImg,us]
const selectList: any = [ const selectList: any = [
{ label: <><img src={ChinaImg} key='1' style={{width: _width, height: 17}}/> +86</>, value: '1' }, { label: <><img src={ChinaImg} key='1' style={{width: _width, height: 17}}/> +86</>, value: '1' },
...@@ -113,11 +102,19 @@ const diaLogForm: React.FC<ListProps> = (props) => { ...@@ -113,11 +102,19 @@ const diaLogForm: React.FC<ListProps> = (props) => {
{ label: <><img src={korenImg} key='4' style={{width: _width, height: 17}}/> +86</>, value: '4' }, { label: <><img src={korenImg} key='4' style={{width: _width, height: 17}}/> +86</>, value: '4' },
{ label: <><img src={us} key='5' style={{width: _width, height: 17}}/> +86</>, value: '5' } { label: <><img src={us} key='5' style={{width: _width, height: 17}}/> +86</>, value: '5' }
] ]
// List.map((item:any,key:number) => { let _Options:any = []
// let li = <><img src={item} key={key} style={{width: _width, height: 17}}/> +86</> List.forEach((item:any,index:number) => {
let tem = <><img src={item} key={'item' + index} style={{width: _width, height: _height}}/> +86</>
// }) _Options.push({label:tem,value:index+1})
})
useEffect(() => {
history.location.query.addType == '1'? setHeaderTitle('新建发货地址') : setHeaderTitle('新建收货地址')
setOptions(_Options)
return () => {
}
},[])
return ( return (
<PageHeaderWrapper <PageHeaderWrapper
...@@ -131,7 +128,7 @@ const diaLogForm: React.FC<ListProps> = (props) => { ...@@ -131,7 +128,7 @@ const diaLogForm: React.FC<ListProps> = (props) => {
<SchemaForm editable={state.editable} <SchemaForm editable={state.editable}
initialValues={{ initialValues={{
provic: '广东省', provic: '广东省',
phoneHead: '1' phoneHead: 1
}} }}
components={{ components={{
...@@ -206,7 +203,7 @@ const diaLogForm: React.FC<ListProps> = (props) => { ...@@ -206,7 +203,7 @@ const diaLogForm: React.FC<ListProps> = (props) => {
name="phoneHead" name="phoneHead"
required required
x-component="Select" x-component="Select"
enum={selectList} enum={Options}
x-component-props={{ x-component-props={{
placeholder: '+86' placeholder: '+86'
}} }}
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: LeeJiancong * @Author: LeeJiancong
* @Date: 2020-07-14 15:07:34 * @Date: 2020-07-14 15:07:34
* @LastEditors: LeeJiancong * @LastEditors: LeeJiancong
* @LastEditTime: 2020-07-16 19:43:48 * @LastEditTime: 2020-07-18 17:48:11
*/ */
import React, { Component, ReactNode, useRef, useState } from 'react' import React, { Component, ReactNode, useRef, useState } from 'react'
import { history } from 'umi' import { history } from 'umi'
...@@ -275,9 +275,7 @@ const AddressList: React.FC<ListProps> = (props) => { ...@@ -275,9 +275,7 @@ const AddressList: React.FC<ListProps> = (props) => {
formilyChilds={{ formilyChilds={{
children: ( children: (
<> <>
<Button type="primary" icon={<PlusOutlined />} onClick={() => history.push(`/logisticsAbility/logistics/list/addressForm?addType=${props.type}`)}> <Button type="primary" icon={<PlusOutlined />} onClick={() => history.push(`/memberCenter/logisticsAbility/logistics/list/addressForm?addType=${props.type}`)}>新建</Button>
新建
</Button>
</> </>
) )
}} }}
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: LeeJiancong * @Author: LeeJiancong
* @Date: 2020-07-14 15:07:34 * @Date: 2020-07-14 15:07:34
* @LastEditors: LeeJiancong * @LastEditors: LeeJiancong
* @LastEditTime: 2020-07-16 19:54:11 * @LastEditTime: 2020-07-18 15:13:49
*/ */
import React, { Component, ReactNode, useRef, useState } from 'react' import React, { Component, ReactNode, useRef, useState } from 'react'
import { history } from 'umi' import { history } from 'umi'
...@@ -270,13 +270,15 @@ const Template: React.FC<ListProps> = (props) => { ...@@ -270,13 +270,15 @@ const Template: React.FC<ListProps> = (props) => {
currentRef={ref} currentRef={ref}
fetchTableData={(params: any) => fetchData(params)} fetchTableData={(params: any) => fetchData(params)}
rowClassName="editable-row" rowClassName="editable-row"
formilyChilds={ formilyChilds={{
<> children: (
<Button type="primary" icon={<PlusOutlined />} onClick={() => history.push(`/memberCenter/logisticsAbility/logistics/list/templateForm?addType=${props.type}`)}> <>
<Button type="primary" icon={<PlusOutlined />} onClick={() => history.push(`/memberCenter/logisticsAbility/logistics/list/templateForm?addType=${props.type}`)}>
新建 新建
</Button> </Button>
</> </>
} )
}}
/> />
</Card> </Card>
</PageHeaderWrapper> </PageHeaderWrapper>
......
import React, { Component } from 'react'
import OrderList from '../components/orderSearchList'
const orderList = () => {
return (
<OrderList/>
)
}
export default OrderList
\ No newline at end of file
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