Commit 25f23d87 authored by XieZhiXiong's avatar XieZhiXiong
parents a979a372 16c3d1d7
......@@ -87,7 +87,7 @@ export function render(oldRender: Function) {
const { data, code } = res
if (code === 1000) {
setAuth(data as any)
setRouters(data.urls as any)
setRouters(data.urls)
} else {
removeAuth()
removeRouters()
......
......@@ -121,8 +121,8 @@ const ModalTable:React.FC<ModalTableProps> = (props) => {
tableType='small'
currentRef={selfRef}
formRender={(child, ps) => <Row justify='space-between' style={{marginBottom: 16}}>
<Col span={22} style={{ zIndex: 99 }}>{child}</Col>
<Col span={2} style={{ marginTop: 4 }}>{ps}</Col>
<Col style={{ zIndex: 99, width: 'calc(100% - 130px)' }}>{child}</Col>
<Col style={{ marginTop: 4, minWidth: 128 }}>{ps}</Col>
</Row >}
formilyProps={
modalType === 'none' ? null : {
......
......@@ -306,3 +306,11 @@
.ant-table-filter-column {
justify-content: center !important;
}
// 修复所有输入框不对称搜索
.ant-input-group {
.ant-input {
padding-top: 6px;
padding-bottom: 6px;
}
}
......@@ -122,7 +122,6 @@ const UserSystem: React.FC<{}> = () => {
return (
<PageHeaderWrapper>
<Card className="common-wrapper">
<StandardTable
columns={columns}
......
......@@ -137,10 +137,6 @@ const AddUser: React.FC<{}> = () => {
}
}
const handleAddRole = () => {
setRoleVisible(true);
}
const handlePlateformSelect = (key, node) => {
setOriginSelectNode({ id: key * 1, name: node._title })
}
......@@ -233,7 +229,6 @@ const AddUser: React.FC<{}> = () => {
okText="确认"
cancelText="取消"
getContainer='#root'
// destroyOnClose={true}
>
<TabTree
fetchData={params => fetchOriginTreeData(params)}
......
......@@ -88,7 +88,7 @@ const MemberDetail: React.FC<{}> = () => {
if (!keywordName) {
return tableData
}
return tableData.filter(v => v.memberId.toString().includes(keywordName))
return tableData.filter(v => v.name.toString().includes(keywordName))
}, [tableData, keywordName])
const fetchMemberSaleChannel = async (params) => {
const userInfo = formAction.getFieldValue('userId')
......@@ -503,7 +503,7 @@ const MemberDetail: React.FC<{}> = () => {
<Button type='default' onClick={() => unBindMember()} disabled={pageStatus === PageStatus.PREVIEW}>批量解除绑定关系</Button>
</Col>
<Col style={{display: 'flex'}}>
<Input.Search value={keywordName} onChange={e => setKeywordName(e.target.value)} onPressEnter={handleSearchChannel}/>
<Input.Search placeholder='请搜索会员名称' value={keywordName} onChange={e => setKeywordName(e.target.value)} onPressEnter={handleSearchChannel}/>
<Button type='default' style={{marginLeft: 20}} onClick={() => setKeywordName('')}>重置</Button>
</Col>
</Row>
......
......@@ -85,6 +85,7 @@ const HandlingInfo: React.FC<HandlingInfoPropsType> = (props) => {
const data: any = res.data
if (res.code === 1000) {
if (data) {
setShopInfo(data);
setSelectCityData(initMemberShopArea(data.areaBOList))
setSelectCategoryData(initMemberCategory(data.categoryBOList))
setLogo(data.logo)
......
import React from 'react';
import moment from 'moment';
export const format = (text, fmt?: string) => {
......
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