Commit 56b29c01 authored by Sixiang_Zzb's avatar Sixiang_Zzb

切换用户模块批量上传的接口地址

parent 3d02c9b0
...@@ -95,8 +95,8 @@ const Users = (props: any) => { ...@@ -95,8 +95,8 @@ const Users = (props: any) => {
const propsUpload = { const propsUpload = {
name: 'file', name: 'file',
action: () => { action: () => {
return 'http://47.74.233.180:8651/tos/excel/upload?userId=' + id; // return 'http://47.74.233.180:8651/tos/excel/upload?userId=' + id;
// return 'http://192.168.1.28:8651/tos/excel/upload?userId=' + id; return 'http://192.168.1.28:8651/tos/excel/upload?userId=' + id;
}, },
beforeUpload: (file: any) => { beforeUpload: (file: any) => {
if (permissionArr.indexOf('4') < 0) { if (permissionArr.indexOf('4') < 0) {
...@@ -125,8 +125,8 @@ const Users = (props: any) => { ...@@ -125,8 +125,8 @@ const Users = (props: any) => {
'failed count is ' + 'failed count is ' +
info.file.response.data.count, info.file.response.data.count,
); );
setFileUploading(false);
} }
setFileUploading(false);
} else if (info.file.status === 'error') { } else if (info.file.status === 'error') {
message.error(`${info.file.name} file upload failed.`); message.error(`${info.file.name} file upload failed.`);
setFileUploading(false); setFileUploading(false);
......
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