Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
B
biz.qingxiao.com
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
wangxuelai
biz.qingxiao.com
Commits
df8207ac
Commit
df8207ac
authored
Aug 21, 2020
by
baixian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
学员管理导出增加手机号
parent
67a10b61
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
3 deletions
+19
-3
index.html
index.html
+3
-2
index.js
src/pages/student/index.js
+13
-0
exportexcel.js
src/utils/exportexcel.js
+3
-1
No files found.
index.html
View file @
df8207ac
...
...
@@ -11,11 +11,12 @@
<script src="js/console-polyfill.js"></script>
<![endif]-->
<script
charset=
"utf-8"
src=
"https://map.qq.com/api/js?v=2.exp&key=XSZBZ-5LHCV-5I2P7-UQHPW-6456F-JBB3B"
></script>
<script
src=
"/js/ueeditor/ueditor.config.js?20200107"
charset=
"utf-8"
></script><script
src=
"/js/ueeditor/ueditor.all.js?20200107"
charset=
"utf-8"
></script>
<script
src=
"https://cdn.s.shangjiadao.cn/qingxiao/biz/js/console-polyfill.js?20200107"
charset=
"utf-8"
></script><script
src=
"https://cdn.s.shangjiadao.cn/qingxiao/biz/js/es6-shim.min.js?20200107"
charset=
"utf-8"
></script><script
src=
"https://cdn.s.shangjiadao.cn/qingxiao/biz/js/es5-shim.js?20200107"
charset=
"utf-8"
></script><script
src=
"https://cdn.s.shangjiadao.cn/qingxiao/biz/js/es5-sham.min.js?20200107"
charset=
"utf-8"
></script><script
src=
"https://cdn.s.shangjiadao.cn/qingxiao/biz/js/json3.min.js?20200107"
charset=
"utf-8"
></script><script
src=
"https://cdn.s.shangjiadao.cn/qingxiao/biz/js/html5shiv.min.js?20200107"
charset=
"utf-8"
></script><script
src=
"https://cdn.s.shangjiadao.cn/qingxiao/biz/js/polyfill.js?20200107"
charset=
"utf-8"
></script><script
src=
"https://cdn.s.shangjiadao.cn/qingxiao/biz/lib/vendor.dll.js?20200107"
charset=
"utf-8"
></script>
</head>
</head>
<body>
<div
id=
"root"
></div>
<script
type=
"text/javascript"
src=
"https://cdn.s.shangjiadao.cn/qingxiao/biz/dist/main.
c51ecc
.js"
></script></body>
<script
type=
"text/javascript"
src=
"https://cdn.s.shangjiadao.cn/qingxiao/biz/dist/main.
a45bed
.js"
></script></body>
</html>
src/pages/student/index.js
View file @
df8207ac
...
...
@@ -856,6 +856,19 @@ class StudentMgt extends React.Component {
);
},
},
{
title
:
'手机号'
,
dataIndex
:
'mobile'
,
key
:
'mobile'
,
width
:
150
,
render
:
(
text
,
record
)
=>
{
return
(
<
div
>
{
text
||
'-'
}
<
/div
>
);
},
},
{
title
:
'微信绑定'
,
dataIndex
:
'consumer_id'
,
...
...
src/utils/exportexcel.js
View file @
df8207ac
...
...
@@ -9,8 +9,10 @@ function exportExcel(headers, data, fileName = 'XXX.xlsx', type) {
thisdata
=
data
.
map
((
item
)
=>
{
return
{
name
:
item
.
name
,
mobile
:
item
.
mobile
,
consumer_id
:
item
.
consumer_id
==
0
?
'未绑定'
:
'已绑定'
,
birthday
:
(
new
Date
().
getFullYear
()
+
1
)
-
new
Date
(
item
.
birthday
).
getFullYear
(),
integral_count
:
item
.
integral_count
,
birthday
:
`
${(
new
Date
().
getFullYear
()
+
1
)
-
new
Date
(
item
.
birthday
).
getFullYear
()}
岁`
,
buy
:
item
.
buy
,
give
:
item
.
give
,
expend
:
item
.
expend
,
...
...
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