修改禅道已知bug
This commit is contained in:
@@ -191,17 +191,18 @@
|
|||||||
let index1 = fileName.lastIndexOf('.')
|
let index1 = fileName.lastIndexOf('.')
|
||||||
let index2 = fileName.length
|
let index2 = fileName.length
|
||||||
let fileSuffix = fileName.substring(index1, index2)
|
let fileSuffix = fileName.substring(index1, index2)
|
||||||
if (fileSuffix === '.pdf') {
|
|
||||||
window.open('/pdf/web/viewer.html?file=' + encodeURIComponent('/jero-boot/sys/common/pdf/viewFile?id=' + fileQuery.id+'&userName='+this.userInfo().username))
|
|
||||||
} else if (fileSuffix === '.docx') {
|
|
||||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id + fileSuffix)
|
|
||||||
window.open(url, '_blank')
|
|
||||||
} else if (fileSuffix === '.xlsx' || fileSuffix === '.xls') {
|
|
||||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id + fileSuffix)
|
|
||||||
window.open(url, '_blank')
|
|
||||||
} else {
|
|
||||||
downloadFile('/sys/common/downLoadFile', fileQuery.fileName, { id: fileQuery.id })
|
downloadFile('/sys/common/downLoadFile', fileQuery.fileName, { id: fileQuery.id })
|
||||||
}
|
// if (fileSuffix === '.pdf') {
|
||||||
|
// window.open('/pdf/web/viewer.html?file=' + encodeURIComponent('/jero-boot/sys/common/pdf/viewFile?id=' + fileQuery.id+'&userName='+this.userInfo().username))
|
||||||
|
// } else if (fileSuffix === '.docx') {
|
||||||
|
// let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id + fileSuffix)
|
||||||
|
// window.open(url, '_blank')
|
||||||
|
// } else if (fileSuffix === '.xlsx' || fileSuffix === '.xls') {
|
||||||
|
// let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id + fileSuffix)
|
||||||
|
// window.open(url, '_blank')
|
||||||
|
// } else {
|
||||||
|
// downloadFile('/sys/common/downLoadFile', fileQuery.fileName, { id: fileQuery.id })
|
||||||
|
// }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -128,10 +128,6 @@
|
|||||||
<a-icon type="delete"/>
|
<a-icon type="delete"/>
|
||||||
{{ $t('BatchDelete') }}
|
{{ $t('BatchDelete') }}
|
||||||
</div>
|
</div>
|
||||||
<div class="operator-text-title" @click="bringInRelevantPersonnelClick">
|
|
||||||
<a-icon type="user"/>
|
|
||||||
{{ $t('bringInRelevantPersonnel') }}
|
|
||||||
</div>
|
|
||||||
<div class="operator-text-title" @click="ExportReportClick">
|
<div class="operator-text-title" @click="ExportReportClick">
|
||||||
<a-icon type="export"/>
|
<a-icon type="export"/>
|
||||||
{{ $t('ExportReport') }}
|
{{ $t('ExportReport') }}
|
||||||
@@ -149,6 +145,10 @@
|
|||||||
<span style="position: absolute;left: -13px;top: -4px">...</span>{{ $t('more') }}
|
<span style="position: absolute;left: -13px;top: -4px">...</span>{{ $t('more') }}
|
||||||
</div>
|
</div>
|
||||||
</a-popconfirm>
|
</a-popconfirm>
|
||||||
|
<div class="operator-text" @click="bringInRelevantPersonnelClick">
|
||||||
|
<a-icon type="user"/>
|
||||||
|
{{ $t('bringInRelevantPersonnel') }}
|
||||||
|
</div>
|
||||||
<div @click="transferClick" class="operator-text">
|
<div @click="transferClick" class="operator-text">
|
||||||
<a-icon type="profile"/>
|
<a-icon type="profile"/>
|
||||||
{{ $t('Transfer') }}
|
{{ $t('Transfer') }}
|
||||||
|
|||||||
Reference in New Issue
Block a user