Commit 4825a9d6 authored by tjy's avatar tjy

没有更改

parent 029b6622
......@@ -24,6 +24,13 @@ const MemberRoute = {
component: '@/pages/member/memberImport/index',
},
{
path: '/memberAbility/manage/addMember',
name: 'addMember',
key: 'addMember',
hideInMenu: true,
component: '@/pages/member/memberImport/addMember',
},
{
path: '/memberAbility/manage/maintian',
name: 'memberMaintain',
key: 'memberMaintain',
......
......@@ -3,7 +3,7 @@
* @Date: 2020-07-13 14:08:50
* @LastEditors: LeeJiancong
* @LastEditTime: 2020-07-15 10:43:55
*/
*/
export default {
'menu.welcome': '欢迎',
'menu.home': '首页',
......@@ -47,6 +47,7 @@ export default {
'menu.memberAbility': '会员',
'menu.memberAbility.memberManage': '会员管理',
'menu.memberAbility.memberManage.memberImport': '会员导入',
'menu.memberAbility.memberManage.addMember': '新增会员',
'menu.memberAbility.memberManage.memberMaintain': '会员维护',
'menu.memberAbility.memberManage.memberUpgradeRule': '会员升级规则',
'menu.memberAbility.memberManage.memberLevel': '会员等级',
......@@ -59,11 +60,11 @@ export default {
//物流能力
'menu.logisticsAbility': '物流',
'menu.logisticsAbility.logistics':'物流管理',
'menu.logisticsAbility.logistics.company':'物流公司管理',
'menu.logisticsAbility.logistics.addCompany':'新建物流公司',
'menu.logisticsAbility.logistics.deliveryAddress':'发货地址管理',
'menu.logisticsAbility.logistics.addressForm':'新建发货地址',
'menu.logisticsAbility.logistics': '物流管理',
'menu.logisticsAbility.logistics.company': '物流公司管理',
'menu.logisticsAbility.logistics.addCompany': '新建物流公司',
'menu.logisticsAbility.logistics.deliveryAddress': '发货地址管理',
'menu.logisticsAbility.logistics.addressForm': '新建发货地址',
// 'menu.logisticsAbility.logistics.receivingAddress':'收货地址管理',
// 'menu.logisticsAbility.logistics.template':'运费模板管理',
};
\ No newline at end of file
import React, { useState, useRef, } from 'react'
import { history } from 'umi'
import { Card, Button, Tabs } from 'antd'
import { PageHeaderWrapper } from '@ant-design/pro-layout'
import { ContainerOutlined } from '@ant-design/icons'
import './index.less'
const addMember: React.FC<[]> = () => {
return (
<PageHeaderWrapper
onBack={() => window.history.back()}
title={[
<>
<div className='headerTop'>
<span>返回</span>
<span>新建会员</span>
</div>
</>
]}
extra={[
<Button className='saveBtn' icon={<ContainerOutlined />}>保存</Button>
]}
>
<Card>
</Card>
</PageHeaderWrapper>
)
}
export default addMember
......@@ -24,4 +24,30 @@
background-size: 54px 16px;
margin-top : 8px;
}
}
.importBtn {
margin: 0 16px;
}
.headerTop {
display : flex;
align-items: center;
span {
font-size : 14px;
font-weight: 400;
&:nth-last-of-type(1) {
font-size : 20px;
font-weight: 500;
color : #172B4D;
margin-left: 16px;
}
}
}
.saveBtn {
color : #fff;
background: @main-color
}
\ No newline at end of file
import React, { useState, useRef, Children } from 'react'
import React, { useState, useRef } from 'react'
import { history } from 'umi'
import { Button, Card, Dropdown, Menu } from 'antd'
import { PageHeaderWrapper } from '@ant-design/pro-layout'
......@@ -10,8 +10,6 @@ import {
} from '@ant-design/icons'
import { StandardTable } from 'god'
import { ColumnType } from 'antd/lib/table/interface'
// import { Input, TimePicker, DatePicker } from '@formily/antd-components'
import 'antd/dist/antd.css'
import './index.less'
const data = [
......@@ -181,12 +179,18 @@ const memberImport: React.FC<{}> = () => {
schema: {
type: 'object',
properties: {
keywords: {
name: {
type: 'string',
'x-component': 'Search',
'x-component-props': {
placeholder: '搜索'
},
placeholder: '请输入'
}
},
names: {
type: 'string',
'x-component-props': {
placeholder: '请输入'
}
}
}
}
......@@ -199,8 +203,13 @@ const memberImport: React.FC<{}> = () => {
},
children: (
<>
<Button type='primary'><PlusOutlined />新建</Button>
<Button>导入</Button>
<Button
type='primary'
onClick={() => history.push('/memberAbility/manage/addMember')}
>
<PlusOutlined />新建
</Button>
<Button className='importBtn'>导入</Button>
<Dropdown.Button
overlay={menu}
trigger={['click']}
......
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