Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-platform
Project
Project
Details
Activity
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
陈智峰
jinfa-platform
Commits
4825a9d6
Commit
4825a9d6
authored
Jul 17, 2020
by
tjy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
没有更改
parent
029b6622
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
90 additions
and
14 deletions
+90
-14
memberRoute.ts
config/routes/memberRoute.ts
+7
-0
menu.ts
src/locales/zh-CN/menu.ts
+8
-6
addMember.tsx
src/pages/member/memberImport/addMember.tsx
+31
-0
index.less
src/pages/member/memberImport/index.less
+27
-0
index.tsx
src/pages/member/memberImport/index.tsx
+17
-8
No files found.
config/routes/memberRoute.ts
View file @
4825a9d6
...
...
@@ -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'
,
...
...
src/locales/zh-CN/menu.ts
View file @
4825a9d6
...
...
@@ -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
src/pages/member/memberImport/addMember.tsx
0 → 100644
View file @
4825a9d6
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
src/pages/member/memberImport/index.less
View file @
4825a9d6
...
...
@@ -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
src/pages/member/memberImport/index.tsx
View file @
4825a9d6
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'
]
}
...
...
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