Browse Source

update

tags/v1.22.11.2^2
chenshihai 3 years ago
parent
commit
827961f03b
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      web_src/vuepages/pages/modelmanage/common/modelmanage-common-detail.vue

+ 2
- 2
web_src/vuepages/pages/modelmanage/common/modelmanage-common-detail.vue View File

@@ -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();


Loading…
Cancel
Save