修改禅道已知问题

This commit is contained in:
qq787203167
2022-03-10 19:13:11 +08:00
parent 7fcd61cbfd
commit ca0e81a9c0
7 changed files with 293 additions and 178 deletions
+7 -24
View File
@@ -15,7 +15,7 @@
:remove='remove'
@change="handleChange">
<p>
<a-icon style="font-size: 67px;color: #c0c4cc;" type="cloud-upload"/>
<a-icon class="action-upload" type="cloud-upload"/>
</p>
<p class="ant-upload-text" style="font-size: 14px;line-height: 30px">{{this.$t('clickUpload')}}</p>
</a-upload-dragger>
@@ -65,6 +65,7 @@
}
},
beforeUpload(file) {
console.log(file)
// let thisFileType = this.thisFileType.replace(/\s+/g, "");
this.fileTypeSatus = true
@@ -92,29 +93,6 @@
remove() {
this.fileTypeSatus = true
},
mydownload(item) {
var fileName = item.fileName
downFile(this.downLoadFileUrl + '/' + item.ext1, {}).then((data) => {
if (!data) {
this.$message.destroy()
this.$message.warning('文件下载失败')
return
}
if (typeof window.navigator.msSaveBlob !== 'undefined') {
window.navigator.msSaveBlob(new Blob([data], { type: 'application/vnd.ms-excel' }), fileName)
} else {
let url = window.URL.createObjectURL(new Blob([data], { type: 'application/vnd.ms-excel' }))
let link = document.createElement('a')
link.style.display = 'none'
link.href = url
link.setAttribute('download', fileName)
document.body.appendChild(link)
link.click()
document.body.removeChild(link) //下载完成移除元素
window.URL.revokeObjectURL(url) //释放掉blob对象
}
})
},
mypreview(item) {
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + encodeURIComponent(this.downLoadFileUrl + '/' + item.ext1)
window.open(url, '_blank')
@@ -221,4 +199,9 @@
.ant-upload-list-item-name {
color: rgba(0, 0, 0, 0.65) !important;
}
.action-upload {
font-size: 67px;
color: #c0c4cc;
}
</style>