Commit 21617f0d authored by Sixiang_Zzb's avatar Sixiang_Zzb

用户模块批量上传 错误提示修改

parent 00ff682e
......@@ -99,6 +99,10 @@ const Users = (props: any) => {
// return 'http://192.168.1.28:8651/tos/excel/upload?userId=' + id;
},
beforeUpload: (file: any) => {
if (permissionArr.indexOf('4') < 0) {
message.error('No permissions');
return false;
}
if (file.type !== 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet') {
message.error(`${file.name} file format is incorrect!`);
}
......
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