@@ -28,7 +28,10 @@ function UpXlsx({ url, xlsxResInfoFu, dirCode, existSn }: Props, ref: any) {
const filesInfo = e.target.files[0]
// 校验格式
- if (!filesInfo.name.endsWith('.xlsx')) return MessageFu.warning('只支持.xlsx格式!')
+ if (!filesInfo.name.endsWith('.xlsx')) {
+ e.target.value = ''
+ return MessageFu.warning('只支持.xlsx格式!')
+ }
// 校验大小
if (filesInfo.size > 5 * 1024 * 1024) {
@@ -35,6 +35,21 @@
display: none;
}
+ button {
+ &:nth-of-type(7) {
+ display: none !important;
+ &:nth-of-type(8) {
+ &:nth-of-type(18) {
+ &:nth-of-type(19) {
+
.bf-container {
height: 100%;