Commit df8207ac authored by baixian's avatar baixian

学员管理导出增加手机号

parent 67a10b61
...@@ -11,11 +11,12 @@ ...@@ -11,11 +11,12 @@
<script src="js/console-polyfill.js"></script> <script src="js/console-polyfill.js"></script>
<![endif]--> <![endif]-->
<script charset="utf-8" src="https://map.qq.com/api/js?v=2.exp&key=XSZBZ-5LHCV-5I2P7-UQHPW-6456F-JBB3B"></script> <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="/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> <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>
</head>
<body> <body>
<div id="root"></div> <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> </html>
...@@ -856,6 +856,19 @@ class StudentMgt extends React.Component { ...@@ -856,6 +856,19 @@ class StudentMgt extends React.Component {
); );
}, },
}, },
{
title: '手机号',
dataIndex: 'mobile',
key: 'mobile',
width: 150,
render: (text, record) => {
return (
<div>
{text || '-'}
</div>
);
},
},
{ {
title: '微信绑定', title: '微信绑定',
dataIndex: 'consumer_id', dataIndex: 'consumer_id',
......
...@@ -9,8 +9,10 @@ function exportExcel(headers, data, fileName = 'XXX.xlsx', type) { ...@@ -9,8 +9,10 @@ function exportExcel(headers, data, fileName = 'XXX.xlsx', type) {
thisdata = data.map((item) => { thisdata = data.map((item) => {
return { return {
name: item.name, name: item.name,
mobile: item.mobile,
consumer_id: item.consumer_id == 0 ? '未绑定' : '已绑定', 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, buy: item.buy,
give: item.give, give: item.give,
expend: item.expend, expend: item.expend,
......
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