Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
TOSTUMI
Project
Project
Details
Activity
Releases
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
Maple
TOSTUMI
Commits
28241246
Commit
28241246
authored
Dec 15, 2020
by
cellee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Signed-off-by: cellee <893264950@qq.com>
parent
b853f935
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
52 additions
and
56 deletions
+52
-56
CellList.tsx
src/pages/CommunityManagement/CellList/CellList.tsx
+21
-17
Details.tsx
src/pages/CommunityManagement/CellList/Details.tsx
+1
-1
VisitorRecord.tsx
...pages/CommunityManagement/VisitorRecord/VisitorRecord.tsx
+15
-19
VisitorRecord.tsx
...pages/CommunityManagement/visitorRecord/VisitorRecord.tsx
+15
-19
No files found.
src/pages/CommunityManagement/CellList/CellList.tsx
View file @
28241246
...
...
@@ -50,8 +50,20 @@ const CellLists = (props: any) => {
null
,
(
text
:
any
,
record
:
any
)
=>
(
<
Space
size=
"middle"
>
<
a
onClick=
{
goToEdit
.
bind
(
this
,
record
)
}
>
Edit
</
a
>
<
a
onClick=
{
goToDetail
.
bind
(
this
,
record
)
}
>
Detail
</
a
>
<
a
onClick=
{
()
=>
{
emptys
(
record
,
'/CommunityManagement/CellList/Add'
);
}
}
>
Edit
</
a
>
<
a
onClick=
{
()
=>
{
emptys
(
record
,
'/CommunityManagement/CellList/Detail'
);
}
}
>
Detail
</
a
>
</
Space
>
),
],
...
...
@@ -74,24 +86,12 @@ const CellLists = (props: any) => {
}
},
[
village
]);
const
goToAdd
=
()
=>
{
emptys
(
null
);
history
.
push
(
'/CommunityManagement/CellList/Add'
);
};
const
goToEdit
=
(
values
:
any
,
e
:
any
)
=>
{
emptys
(
values
);
history
.
push
(
'/CommunityManagement/CellList/Add'
);
};
const
goToDetail
=
(
values
:
any
,
e
:
any
)
=>
{
emptys
(
values
);
history
.
push
(
'/CommunityManagement/CellList/Detail'
);
};
// 清除操作之前的数据
const
emptys
=
(
data
:
any
)
=>
{
const
emptys
=
(
data
:
any
,
url
:
any
)
=>
{
dispatch
({
type
:
module
+
'/urlRemove'
});
// 清掉图片信息
SA
(
data
,
module
,
dispatch
);
dispatch
({
type
:
module
+
'/ResultClear'
});
// 清空之前保存成功的结果
history
.
push
(
url
);
};
// 点击搜索
...
...
@@ -147,7 +147,11 @@ const CellLists = (props: any) => {
search=
{
false
}
loading=
{
loading
}
toolBarRender=
{
()
=>
[
<
Button
key=
"3"
type=
"primary"
onClick=
{
goToAdd
}
>
<
Button
key=
"3"
type=
"primary"
onClick=
{
()
=>
emptys
(
null
,
'/CommunityManagement/CellList/Add'
)
}
>
<
PlusOutlined
/>
Create New Community
</
Button
>,
...
...
src/pages/CommunityManagement/CellList/Details.tsx
View file @
28241246
...
...
@@ -137,7 +137,7 @@ const Detail = (props: any) => {
<
div
className=
"code"
>
<
li
>
Community Activation Code
</
li
>
<
div
style=
{
{
width
:
122
,
height
:
122
,
border
:
'1px solid #f0f0f0'
,
margin
:
'auto'
}
}
style=
{
{
width
:
122
,
height
:
122
,
border
:
'1px solid #f0f0f0'
,
margin
:
'
0
auto'
}
}
>
<
Image
width=
{
120
}
src=
{
detailData
.
visitorUrl
}
/>
</
div
>
...
...
src/pages/CommunityManagement/VisitorRecord/VisitorRecord.tsx
View file @
28241246
import
React
,
{
useState
,
useEffect
,
useRef
}
from
'react'
;
import
{
Input
,
Tabs
,
Tag
,
Form
,
Button
,
message
,
DatePicker
}
from
'antd'
;
const
{
TabPane
}
=
Tabs
;
import
React
,
{
useEffect
}
from
'react'
;
import
{
Input
,
Form
,
Button
,
DatePicker
}
from
'antd'
;
import
{
connect
}
from
'umi'
;
import
{
objectColumns
}
from
'@/utils/string'
;
import
ProTable
from
'@ant-design/pro-table'
;
import
{
RA
,
SA
}
from
'@/utils/method'
;
import
{
PlusOutlined
,
SearchOutlined
,
ClearOutlined
}
from
'@ant-design/icons'
;
import
{
SearchOutlined
,
ClearOutlined
}
from
'@ant-design/icons'
;
import
'./index.less'
;
import
moment
from
'moment'
;
import
SearchOptionsCommnity
from
'@/components/SearchOptions/SearchOptionsCommnity'
;
import
SelectCommunity
from
'@/components/SelectCommunity'
;
...
...
@@ -17,10 +14,6 @@ const module = 'VisitorRecord';
const
VisitorRecord
=
(
props
:
any
)
=>
{
const
{
dispatch
,
Data
,
DataSave
,
loading
}
=
props
;
const
TosVisitorRecordGet
=
(
values
:
any
)
=>
{
dispatch
({
type
:
'tosVisitorRecord/get'
,
playload
:
values
});
};
// 新增搜索的时间 原来时间是时间戳格式
useEffect
(()
=>
{
if
(
Data
!=
null
)
{
...
...
@@ -28,7 +21,12 @@ const VisitorRecord = (props: any) => {
item
.
showTime
=
moment
(
item
.
updateTime
).
format
(
'YYYY-MM-DD'
);
});
}
else
{
RA
(
26
,
{
inviterAddress
:
''
,
visitorCommunity
:
''
},
module
,
dispatch
);
RA
(
26
,
{
communityNames
:
JSON
.
parse
(
localStorage
.
getItem
(
'CommunityList'
)
as
any
)
},
module
,
dispatch
,
);
}
},
[
Data
]);
...
...
@@ -65,13 +63,6 @@ const VisitorRecord = (props: any) => {
size
:
'default'
,
};
// 搜索配置
// const searchInfo = {
// filterType: 'light',
// searchText: 'Search',
// resetText: 'Reset',
// };
// 多条件筛选
//@param condition 过滤条件
//@param data 需要过滤的数据
...
...
@@ -132,7 +123,12 @@ const VisitorRecord = (props: any) => {
// 刷新
const
onReset
=
()
=>
{
SA
(
DataSave
,
module
,
dispatch
);
RA
(
26
,
{
inviterAddress
:
''
,
visitorCommunity
:
''
},
module
,
dispatch
);
RA
(
26
,
{
communityNames
:
JSON
.
parse
(
localStorage
.
getItem
(
'CommunityList'
)
as
any
)
},
module
,
dispatch
,
);
};
// 去掉null undefined 无效字段
...
...
src/pages/CommunityManagement/visitorRecord/VisitorRecord.tsx
View file @
28241246
import
React
,
{
useState
,
useEffect
,
useRef
}
from
'react'
;
import
{
Input
,
Tabs
,
Tag
,
Form
,
Button
,
message
,
DatePicker
}
from
'antd'
;
const
{
TabPane
}
=
Tabs
;
import
React
,
{
useEffect
}
from
'react'
;
import
{
Input
,
Form
,
Button
,
DatePicker
}
from
'antd'
;
import
{
connect
}
from
'umi'
;
import
{
objectColumns
}
from
'@/utils/string'
;
import
ProTable
from
'@ant-design/pro-table'
;
import
{
RA
,
SA
}
from
'@/utils/method'
;
import
{
PlusOutlined
,
SearchOutlined
,
ClearOutlined
}
from
'@ant-design/icons'
;
import
{
SearchOutlined
,
ClearOutlined
}
from
'@ant-design/icons'
;
import
'./index.less'
;
import
moment
from
'moment'
;
import
SearchOptionsCommnity
from
'@/components/SearchOptions/SearchOptionsCommnity'
;
import
SelectCommunity
from
'@/components/SelectCommunity'
;
...
...
@@ -17,10 +14,6 @@ const module = 'VisitorRecord';
const
VisitorRecord
=
(
props
:
any
)
=>
{
const
{
dispatch
,
Data
,
DataSave
,
loading
}
=
props
;
const
TosVisitorRecordGet
=
(
values
:
any
)
=>
{
dispatch
({
type
:
'tosVisitorRecord/get'
,
playload
:
values
});
};
// 新增搜索的时间 原来时间是时间戳格式
useEffect
(()
=>
{
if
(
Data
!=
null
)
{
...
...
@@ -28,7 +21,12 @@ const VisitorRecord = (props: any) => {
item
.
showTime
=
moment
(
item
.
updateTime
).
format
(
'YYYY-MM-DD'
);
});
}
else
{
RA
(
26
,
{
inviterAddress
:
''
,
visitorCommunity
:
''
},
module
,
dispatch
);
RA
(
26
,
{
communityNames
:
JSON
.
parse
(
localStorage
.
getItem
(
'CommunityList'
)
as
any
)
},
module
,
dispatch
,
);
}
},
[
Data
]);
...
...
@@ -65,13 +63,6 @@ const VisitorRecord = (props: any) => {
size
:
'default'
,
};
// 搜索配置
// const searchInfo = {
// filterType: 'light',
// searchText: 'Search',
// resetText: 'Reset',
// };
// 多条件筛选
//@param condition 过滤条件
//@param data 需要过滤的数据
...
...
@@ -132,7 +123,12 @@ const VisitorRecord = (props: any) => {
// 刷新
const
onReset
=
()
=>
{
SA
(
DataSave
,
module
,
dispatch
);
RA
(
26
,
{
inviterAddress
:
''
,
visitorCommunity
:
''
},
module
,
dispatch
);
RA
(
26
,
{
communityNames
:
JSON
.
parse
(
localStorage
.
getItem
(
'CommunityList'
)
as
any
)
},
module
,
dispatch
,
);
};
// 去掉null undefined 无效字段
...
...
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