一致性分析上传模板更改
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
dd0cd1ec64
commit
9e83d51037
|
@ -9,7 +9,7 @@
|
||||||
<el-upload
|
<el-upload
|
||||||
class="upload-demo"
|
class="upload-demo"
|
||||||
action
|
action
|
||||||
accept=".xlsx,.xls,.csv"
|
accept=".xlsx,.xls"
|
||||||
:before-upload="beforeUpload"
|
:before-upload="beforeUpload"
|
||||||
:http-request="handleUploadFile"
|
:http-request="handleUploadFile"
|
||||||
:on-preview="handlePreview"
|
:on-preview="handlePreview"
|
||||||
|
@ -72,7 +72,7 @@ export default {
|
||||||
this.$message.warning(this.$t('trials:consistencyCheck:message:onlyOneFile'))
|
this.$message.warning(this.$t('trials:consistencyCheck:message:onlyOneFile'))
|
||||||
},
|
},
|
||||||
checkFileSuffix(fileName) {
|
checkFileSuffix(fileName) {
|
||||||
var typeArr = ['xls', 'xlsx', 'csv']
|
var typeArr = ['xls', 'xlsx']
|
||||||
var extendName = fileName.substring(fileName.lastIndexOf('.') + 1).toLocaleLowerCase()
|
var extendName = fileName.substring(fileName.lastIndexOf('.') + 1).toLocaleLowerCase()
|
||||||
if (typeArr.indexOf(extendName) !== -1) {
|
if (typeArr.indexOf(extendName) !== -1) {
|
||||||
return true
|
return true
|
||||||
|
|
Loading…
Reference in New Issue