Browse Source

增加公开私有两个属性

Signed-off-by: zouap <zouap@pcl.ac.cn>
tags/v1.22.12.1^2
zouap 2 years ago
parent
commit
ef507f9100
2 changed files with 18 additions and 4 deletions
  1. +16
    -4
      web_src/js/components/Model.vue
  2. +2
    -0
      web_src/js/features/i18nVue.js

+ 16
- 4
web_src/js/components/Model.vue View File

@@ -130,6 +130,19 @@
</template>
</el-table-column>

<el-table-column
prop="isPrivate"
:label="i18n.model_access"
align="center"
min-width="6.75%"
>
<template slot-scope="scope">
<span class="text-over" :title="scope.row.isPrivate">{{
scope.row.isPrivate
}}</span>
</template>
</el-table-column>

<el-table-column
:label="i18n.model_operation"
min-width="15%"
@@ -143,10 +156,9 @@
:href="url + 'create_local_model_1?type=1&name=' + encodeURIComponent(scope.row.name) + '&id=' + scope.row.id"
:class="{ disabled: !scope.row.isCanOper }"
>{{ i18n.modify }}</a>
<a class="op-btn" v-show="scope.row.modelType != 1" style="color:transparent;cursor:default;" >{{ i18n.modify }}</a>
<a class="op-btn" v-show="repoIsPrivate == false && scope.row.isPrivate==true" style="color:transparent;cursor:default;" >设为公开</a>
<a class="op-btn" v-show="repoIsPrivate == false && scope.row.isPrivate==false" style="color:transparent;cursor:default;" >设为私有</a>
<a class="op-btn" v-show="repoIsPrivate == false && scope.row.isPrivate==true">设为公开</a>
<a class="op-btn" v-show="repoIsPrivate == false && scope.row.isPrivate==false">设为私有</a>
<a class="op-btn"
:href="loadhref + scope.row.id"


+ 2
- 0
web_src/js/features/i18nVue.js View File

@@ -92,6 +92,7 @@ export const i18nVue = {
model_create_time: "创建时间",
model_creator: "创建者",
model_operation: "操作",
model_access: "权限",
model_create_new_ver: "创建新版本",
model_download: "下载",
model_delete: "删除",
@@ -208,6 +209,7 @@ export const i18nVue = {
model_create_time: "Created Time",
model_creator: "Creator",
model_operation: "Operation",
model_access: "Access",
model_create_new_ver: "New Version",
model_download: "Download",
model_delete: "Delete",


Loading…
Cancel
Save