Browse Source

Merge pull request #4110 from chengshiwen/dev

[Improvement][UI] download url resolve and security page disappear delay problem under GENERAL_USER
pull/3/MERGE
dailidong 4 years ago committed by GitHub
parent
commit
62c2e85252
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/log.vue
  2. 2
      dolphinscheduler-ui/src/js/conf/home/pages/resource/pages/file/pages/details/index.vue
  3. 2
      dolphinscheduler-ui/src/js/conf/home/pages/resource/pages/file/pages/list/_source/list.vue
  4. 2
      dolphinscheduler-ui/src/js/conf/home/pages/resource/pages/file/pages/subdirectory/_source/list.vue
  5. 2
      dolphinscheduler-ui/src/js/conf/home/pages/resource/pages/udf/pages/function/_source/list.vue
  6. 2
      dolphinscheduler-ui/src/js/conf/home/pages/resource/pages/udf/pages/resource/_source/list.vue
  7. 2
      dolphinscheduler-ui/src/js/conf/home/pages/resource/pages/udf/pages/subUdfDirectory/_source/list.vue
  8. 4
      dolphinscheduler-ui/src/js/module/download/index.js
  9. 1
      dolphinscheduler-ui/src/js/module/permissions/index.js

2
dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/log.vue

@ -169,7 +169,7 @@
* Download log
*/
_downloadLog () {
downloadFile('/dolphinscheduler/log/download-log', {
downloadFile('log/download-log', {
taskInstanceId: this.stateId || this.logId
})
},

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

@ -87,7 +87,7 @@
this.$router.go(-1)
},
_downloadFile () {
downloadFile('/dolphinscheduler/resources/download', {
downloadFile('resources/download', {
id: this.$route.params.id
})
},

2
dolphinscheduler-ui/src/js/conf/home/pages/resource/pages/file/pages/list/_source/list.vue

@ -162,7 +162,7 @@
}
},
_downloadFile (item) {
downloadFile('/dolphinscheduler/resources/download', {
downloadFile('resources/download', {
id: item.id
})
},

2
dolphinscheduler-ui/src/js/conf/home/pages/resource/pages/file/pages/subdirectory/_source/list.vue

@ -163,7 +163,7 @@
}
},
_downloadFile (item) {
downloadFile('/dolphinscheduler/resources/download', {
downloadFile('resources/download', {
id: item.id
})
},

2
dolphinscheduler-ui/src/js/conf/home/pages/resource/pages/udf/pages/function/_source/list.vue

@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
v-ps<template>
<template>
<div class="list-model">
<div class="table-box">
<table class="fixed">

2
dolphinscheduler-ui/src/js/conf/home/pages/resource/pages/udf/pages/resource/_source/list.vue

@ -143,7 +143,7 @@
methods: {
...mapActions('resource', ['deleteResource']),
_downloadFile (item) {
downloadFile('/dolphinscheduler/resources/download', {
downloadFile('resources/download', {
id: item.id
})
},

2
dolphinscheduler-ui/src/js/conf/home/pages/resource/pages/udf/pages/subUdfDirectory/_source/list.vue

@ -144,7 +144,7 @@
methods: {
...mapActions('resource', ['deleteResource']),
_downloadFile (item) {
downloadFile('/dolphinscheduler/resources/download', {
downloadFile('resources/download', {
id: item.id
})
},

4
dolphinscheduler-ui/src/js/module/download/index.js

@ -16,12 +16,14 @@
*/
import i18n from '@/module/i18n'
import { resolveURL } from '@/module/io'
/**
* download file
*/
const downloadFile = ($url, $obj) => {
const param = {
url: $url,
url: resolveURL($url),
obj: $obj
}

1
dolphinscheduler-ui/src/js/module/permissions/index.js

@ -44,6 +44,7 @@ Permissions.prototype = {
if ($(el).prop('tagName') === 'BUTTON') {
$(el).attr('disabled', true)
} else {
$(el).css('display', 'none')
setTimeout(function () { el.parentNode.removeChild(el) }, 100)
}
}

Loading…
Cancel
Save