Browse Source

Enhance user experience, add close button to file details page

pull/3/MERGE
zhanglong 4 years ago
parent
commit
44a4864208
  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">
<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

Loading…
Cancel
Save