Browse Source

Merge pull request #3995 from BoYiZhang/pr_3988

[Improvement-3988][UI] Enhance user experience, add close button to file details page
pull/3/MERGE
xingchun-chen 4 years ago committed by GitHub
parent
commit
3c181399e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      dolphinscheduler-ui/src/js/conf/home/pages/resource/pages/file/pages/details/index.vue

6
dolphinscheduler-ui/src/js/conf/home/pages/resource/pages/file/pages/details/index.vue

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

Loading…
Cancel
Save