Browse Source

Merge pull request #3485 from break60/1.3.2-release

[Feture-3327][ui]Add the function of re-uploading files in the udf su…
pull/3/MERGE
xingchun-chen 4 years ago committed by GitHub
parent
commit
927985c012
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 19
      dolphinscheduler-ui/src/js/conf/home/pages/resource/pages/udf/pages/subUdfDirectory/_source/list.vue

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

@ -43,7 +43,7 @@
<th scope="col" width="140">
<span>{{$t('Update Time')}}</span>
</th>
<th scope="col" width="110">
<th scope="col" width="130">
<span>{{$t('Operation')}}</span>
</th>
</tr>
@ -76,6 +76,16 @@
<span v-else>-</span>
</td>
<td>
<x-button
type="info"
shape="circle"
size="xsmall"
data-toggle="tooltip"
:title="$t('ReUpload File')"
:disabled="item.directory? true: false"
@click="_reUpload(item)"
icon="ans-icon-upload">
</x-button>
<x-button
type="info"
shape="circle"
@ -127,6 +137,7 @@
import mRename from './rename'
import { downloadFile } from '@/module/download'
import { bytesToSize } from '@/module/util/util'
import { findComponentDownward } from '@/module/util'
import localStore from '@/module/util/localStorage'
export default {
@ -155,6 +166,12 @@
this.$router.push({ path: `/resource/udf/subUdfDirectory/${item.id}` })
}
},
/**
* File Upload
*/
_reUpload (item) {
findComponentDownward(this.$root, 'roof-nav')._fileChildReUpload('UDF', item, this.$route.params.id)
},
_rtSize (val) {
return bytesToSize(parseInt(val))
},

Loading…
Cancel
Save