Merge pull request #3995 from BoYiZhang/pr_3988

[Improvement-3988][UI] Enhance user experience, add close button to file details page
This commit is contained in:
xingchun-chen 2020-11-24 11:57:59 +08:00 committed by GitHub
commit 3c181399e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -23,6 +23,9 @@
<div class="down">
<em class="ans-icon-download" style="font-size:20px" data-container="body" data-toggle="tooltip" :title="$t('Download Details')" @click="_downloadFile"></em>
<em>{{size}}</em>
&nbsp;&nbsp;
<em class="ans-icon-fail-empty" style="font-size:20px" data-container="body" data-toggle="tooltip" :title="$t('Return')" @click="close()"></em>
&nbsp;&nbsp;
</div>
</h2>
<template v-if="isNoType">
@ -80,6 +83,9 @@
_go () {
this.$router.push({ name: 'file' })
},
close () {
this.$router.go(-1)
},
_downloadFile () {
downloadFile('/dolphinscheduler/resources/download', {
id: this.$route.params.id