提交 3ceb4753 编写于 作者: C chengshiwen

[1.3.5-prepare][cherry-pick]#4110

上级 94643760
...@@ -169,7 +169,7 @@ ...@@ -169,7 +169,7 @@
* Download log * Download log
*/ */
_downloadLog () { _downloadLog () {
downloadFile('/dolphinscheduler/log/download-log', { downloadFile('log/download-log', {
taskInstanceId: this.stateId || this.logId taskInstanceId: this.stateId || this.logId
}) })
}, },
......
...@@ -81,7 +81,7 @@ ...@@ -81,7 +81,7 @@
this.$router.push({ name: 'file' }) this.$router.push({ name: 'file' })
}, },
_downloadFile () { _downloadFile () {
downloadFile('/dolphinscheduler/resources/download', { downloadFile('resources/download', {
id: this.$route.params.id id: this.$route.params.id
}) })
}, },
......
...@@ -179,7 +179,7 @@ ...@@ -179,7 +179,7 @@
findComponentDownward(this.$root, 'roof-nav')._fileReUpload('FILE',item) findComponentDownward(this.$root, 'roof-nav')._fileReUpload('FILE',item)
}, },
_downloadFile (item) { _downloadFile (item) {
downloadFile('/dolphinscheduler/resources/download', { downloadFile('resources/download', {
id: item.id id: item.id
}) })
}, },
......
...@@ -180,7 +180,7 @@ ...@@ -180,7 +180,7 @@
findComponentDownward(this.$root, 'roof-nav')._fileChildReUpload('FILE',item,this.$route.params.id) findComponentDownward(this.$root, 'roof-nav')._fileChildReUpload('FILE',item,this.$route.params.id)
}, },
_downloadFile (item) { _downloadFile (item) {
downloadFile('/dolphinscheduler/resources/download', { downloadFile('resources/download', {
id: item.id id: item.id
}) })
}, },
......
...@@ -155,7 +155,7 @@ ...@@ -155,7 +155,7 @@
methods: { methods: {
...mapActions('resource', ['deleteResource']), ...mapActions('resource', ['deleteResource']),
_downloadFile (item) { _downloadFile (item) {
downloadFile('/dolphinscheduler/resources/download', { downloadFile('resources/download', {
id: item.id id: item.id
}) })
}, },
......
...@@ -156,7 +156,7 @@ ...@@ -156,7 +156,7 @@
methods: { methods: {
...mapActions('resource', ['deleteResource']), ...mapActions('resource', ['deleteResource']),
_downloadFile (item) { _downloadFile (item) {
downloadFile('/dolphinscheduler/resources/download', { downloadFile('resources/download', {
id: item.id id: item.id
}) })
}, },
......
...@@ -16,12 +16,14 @@ ...@@ -16,12 +16,14 @@
*/ */
import i18n from '@/module/i18n' import i18n from '@/module/i18n'
import { resolveURL } from '@/module/io'
/** /**
* download file * download file
*/ */
const downloadFile = ($url, $obj) => { const downloadFile = ($url, $obj) => {
const param = { const param = {
url: $url, url: resolveURL($url),
obj: $obj obj: $obj
} }
......
...@@ -44,6 +44,7 @@ Permissions.prototype = { ...@@ -44,6 +44,7 @@ Permissions.prototype = {
if ($(el).prop('tagName') === 'BUTTON') { if ($(el).prop('tagName') === 'BUTTON') {
$(el).attr('disabled', true) $(el).attr('disabled', true)
} else { } else {
$(el).css('display', 'none')
setTimeout(function () { el.parentNode.removeChild(el) }, 100) setTimeout(function () { el.parentNode.removeChild(el) }, 100)
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册