|
|
|
@ -70,7 +70,7 @@
|
|
|
|
|
<template slot="content"> |
|
|
|
|
<div class="file-update-box"> |
|
|
|
|
<template v-if="progress === 0"> |
|
|
|
|
<input name="file" id="file" type="file" class="file-update"> |
|
|
|
|
<input ref="file" name="file" type="file" class="file-update" @change="_onChange"> |
|
|
|
|
<el-button size="mini">{{$t('Upload')}}<em class="el-icon-upload"></em></el-button> |
|
|
|
|
</template> |
|
|
|
|
<div class="progress-box" v-if="progress !== 0"> |
|
|
|
@ -214,7 +214,7 @@
|
|
|
|
|
this.progress = 0 |
|
|
|
|
this.file = '' |
|
|
|
|
this.currentDir = localStore.getItem('currentDir') |
|
|
|
|
this.pid = -1 |
|
|
|
|
this.pid = this.id |
|
|
|
|
this.dragOver = false |
|
|
|
|
}, |
|
|
|
|
/** |
|
|
|
@ -226,17 +226,16 @@
|
|
|
|
|
this.name = file.name |
|
|
|
|
this.dragOver = false |
|
|
|
|
}, |
|
|
|
|
_onChange () { |
|
|
|
|
let file = this.$refs.file.files[0] |
|
|
|
|
this.file = file |
|
|
|
|
this.name = file.name |
|
|
|
|
this.$refs.file.value = null |
|
|
|
|
}, |
|
|
|
|
close () { |
|
|
|
|
this.$emit('closeResourceChildUpdate') |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
mounted () { |
|
|
|
|
$('#file').change(() => { |
|
|
|
|
let file = $('#file')[0].files[0] |
|
|
|
|
this.file = file |
|
|
|
|
this.name = file.name |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
components: { mPopup, mListBoxF, mProgressBar } |
|
|
|
|
} |
|
|
|
|
</script> |
|
|
|
|