一致性分析上传模板更改
continuous-integration/drone/push Build is passing Details

uat_us
caiyiling 2024-09-11 16:22:12 +08:00
parent dd0cd1ec64
commit 9e83d51037
1 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@
<el-upload
class="upload-demo"
action
accept=".xlsx,.xls,.csv"
accept=".xlsx,.xls"
:before-upload="beforeUpload"
:http-request="handleUploadFile"
:on-preview="handlePreview"
@ -72,7 +72,7 @@ export default {
this.$message.warning(this.$t('trials:consistencyCheck:message:onlyOneFile'))
},
checkFileSuffix(fileName) {
var typeArr = ['xls', 'xlsx', 'csv']
var typeArr = ['xls', 'xlsx']
var extendName = fileName.substring(fileName.lastIndexOf('.') + 1).toLocaleLowerCase()
if (typeArr.indexOf(extendName) !== -1) {
return true