Commit ce938bda authored by cellee's avatar cellee

Merge branch 'final' of http://120.77.240.215:9701/Maple/tostumi.git into final

parents 1289f7d8 21617f0d
......@@ -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