李志伟 2 年前
父节点
当前提交
5135d90bfa

+ 0
- 1
src/pages/invoiceFill/components/ReimbursementPerson.jsx 查看文件

38
     setEditModal(true);
38
     setEditModal(true);
39
   }
39
   }
40
   const refrash=()=>{
40
   const refrash=()=>{
41
-    console.log(666);
42
     actionRef.current.reload()
41
     actionRef.current.reload()
43
   }
42
   }
44
   //删除人员
43
   //删除人员

+ 0
- 1
src/pages/invoiceFill/edit.jsx 查看文件

41
       message.info(err);
41
       message.info(err);
42
       console.log(err);
42
       console.log(err);
43
     })
43
     })
44
-
45
   }
44
   }
46
   return (
45
   return (
47
     <PageHeaderWrapper extra={[id && <Button key='addDetail' type='primary' onClick={addDetail}>生成模板</Button>]}>
46
     <PageHeaderWrapper extra={[id && <Button key='addDetail' type='primary' onClick={addDetail}>生成模板</Button>]}>

+ 0
- 4
src/services/user.js 查看文件

8
 
8
 
9
 // 修改密码
9
 // 修改密码
10
 export const changePassword = (data) => request('/change-password', { data, method: 'PUT' });
10
 export const changePassword = (data) => request('/change-password', { data, method: 'PUT' });
11
-
12
-
13
-// 企业登录
14
-export const orgLogin = (data) => request('/org/login', { method: 'post', data });

+ 1
- 0
src/utils/download.js 查看文件

3
 }
3
 }
4
 
4
 
5
 export function downloadBlob(blob, fileName) {
5
 export function downloadBlob(blob, fileName) {
6
+  console.info(blob)
6
   const url = window.URL.createObjectURL(blob);
7
   const url = window.URL.createObjectURL(blob);
7
   const link = document.createElement('a');
8
   const link = document.createElement('a');
8
   link.href = url;
9
   link.href = url;

+ 1
- 0
src/utils/request.js 查看文件

53
 
53
 
54
   if (contextType.indexOf('application/vnd.ms-excel') > -1) {
54
   if (contextType.indexOf('application/vnd.ms-excel') > -1) {
55
     const data = await response.clone().blob();
55
     const data = await response.clone().blob();
56
+    console.info(response)
56
     const content = response.headers.get('content-disposition');
57
     const content = response.headers.get('content-disposition');
57
     const fileName = content.replace('attachment;filename=', '');
58
     const fileName = content.replace('attachment;filename=', '');
58
     downloadBlob(data, decodeURIComponent(fileName));
59
     downloadBlob(data, decodeURIComponent(fileName));