修改导入的默认显示文件
This commit is contained in:
@@ -4,8 +4,8 @@
|
||||
class="upload-text"
|
||||
:multiple="false" :headers="tokenHeader"
|
||||
:action="importUrl+'?cut='+cut"
|
||||
@change="handleImportZip"
|
||||
accept=".zip">
|
||||
@change="handleImport"
|
||||
:accept="accept">
|
||||
<a-icon type="import" :rotate="270"/>
|
||||
{{$t('import')}}
|
||||
</a-upload>
|
||||
@@ -28,7 +28,11 @@
|
||||
isTrue:{
|
||||
type: Boolean,
|
||||
default: false
|
||||
}
|
||||
},
|
||||
accept:{
|
||||
type: String,
|
||||
default: ''
|
||||
},
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
@@ -47,7 +51,7 @@
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
handleImportZip(info) {
|
||||
handleImport(info) {
|
||||
this.spinning = true
|
||||
if (info.file.status !== 'uploading') {
|
||||
console.log(info.file, info.fileList)
|
||||
|
||||
Reference in New Issue
Block a user