Commit a0bc1a44 authored by cellee's avatar cellee

Signed-off-by: cellee <893264950@qq.com>

parent 570068fa
/* /*
* @Author: your name * @Author: your name
* @Date: 2021-01-14 09:23:51 * @Date: 2021-01-14 09:23:51
* @LastEditTime: 2021-05-21 15:32:36 * @LastEditTime: 2021-06-03 16:35:51
* @LastEditors: Please set LastEditors * @LastEditors: Please set LastEditors
* @Description: In User Settings Edit * @Description: In User Settings Edit
* @FilePath: \tostumi\src\models\CommunityManagement\Bug.ts * @FilePath: \tostumi\src\models\CommunityManagement\Bug.ts
...@@ -105,6 +105,13 @@ export default { ...@@ -105,6 +105,13 @@ export default {
history.push('/AccountManagement/service'); history.push('/AccountManagement/service');
} }
break; break;
case 78: // 下载
{
// console.log(resp.data);
window.open(resp.data, '_blank');
// history.push(resp.data.data);
}
break;
} }
} }
}, },
......
import React, { useState, useEffect } from 'react'; import React, { useState, useEffect } from 'react';
import { Space, message, Pagination, Button } from 'antd'; import { Space, message, Pagination, Button } from 'antd';
import { connect, history } from 'umi'; import { connect, history } from 'umi';
import { PlusOutlined } from '@ant-design/icons'; import { DownloadOutlined, PlusOutlined } from '@ant-design/icons';
import ProTable from '@ant-design/pro-table'; import ProTable from '@ant-design/pro-table';
...@@ -65,7 +65,8 @@ const service = (props: any) => { ...@@ -65,7 +65,8 @@ const service = (props: any) => {
<a <a
onClick={() => { onClick={() => {
message.warning('Under development'); // message.warning('Under development');
downlo(record.communityName);
}} }}
> >
Download Report Download Report
...@@ -107,6 +108,11 @@ const service = (props: any) => { ...@@ -107,6 +108,11 @@ const service = (props: any) => {
history.push(url + '/' + data.communityName); history.push(url + '/' + data.communityName);
}; };
// 点击下载
const downlo = (name: any) => {
RA(78, { communityName: name }, module, dispatch);
};
// 点击搜索 // 点击搜索
const CallBackTitleSearch = (comment: any) => { const CallBackTitleSearch = (comment: any) => {
......
/* /*
* @Author: your name * @Author: your name
* @Date: 2020-11-19 20:34:18 * @Date: 2020-11-19 20:34:18
* @LastEditTime: 2021-05-20 11:00:23 * @LastEditTime: 2021-06-03 16:03:33
* @LastEditors: Please set LastEditors * @LastEditors: Please set LastEditors
* @Description: In User Settings Edit * @Description: In User Settings Edit
* @FilePath: \tostumi\src\utils\params.ts * @FilePath: \tostumi\src\utils\params.ts
...@@ -103,4 +103,5 @@ export const requestList = [ ...@@ -103,4 +103,5 @@ export const requestList = [
['/tos/community/moveOut/record/get/detail', '75 迁出申请详情', {}], ['/tos/community/moveOut/record/get/detail', '75 迁出申请详情', {}],
['/tos/community/moveOut/record/reply', '76 迁出申请回复', {}], ['/tos/community/moveOut/record/reply', '76 迁出申请回复', {}],
['/tos/report/create', '77 报告新增', {}], ['/tos/report/create', '77 报告新增', {}],
['/tos/report/excel/download', '78 报告下载', {}],
]; ];
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