|
|
|
@@ -177,7 +177,7 @@ |
|
|
|
</div> |
|
|
|
</a> |
|
|
|
<a v-else :class="!canOperate ? 'disabled-download' : ''" |
|
|
|
:href="canOperate ? `${repo}/modelmanage/${state.id}/downloadsingle?parentDir=${filePath[filePath.length - 1].path ? filePath[filePath.length - 1].path + '/' : ''}&fileName=${scope.row.FileName}` : 'javascript:;'"> |
|
|
|
:href="canOperate ? `${repo}/modelmanage/${state.id}/downloadsingle?parentDir=${filePath.length > 1 ? encodeURIComponent(filePath.map(item => item.path).join('/').slice(1) + '/') : ''}&fileName=${scope.row.FileName}` : 'javascript:;'"> |
|
|
|
<div class="fitted" :title="scope.row.FileName"> |
|
|
|
<i class="icon file" width="16" height="16" aria-hidden="true"></i> |
|
|
|
<span>{{ scope.row.FileName }}</span> |
|
|
|
@@ -255,7 +255,7 @@ export default { |
|
|
|
ID: this.state.id, |
|
|
|
parentDir: dir, |
|
|
|
}).then(res => { |
|
|
|
const list = res.data || []; |
|
|
|
const list = res.data || []; |
|
|
|
list.forEach(item => { |
|
|
|
item.SizeShow = item.IsDir ? '' : transFileSize(item.Size); |
|
|
|
item.ModTimeNum = new Date(item.ModTime).getTime(); |
|
|
|
|