|
|
@@ -101,6 +101,19 @@ |
|
|
|
<span class="text-over">{{ scope.row.computeResource }}</span> |
|
|
|
</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"> |
|
|
|
{{transStatus(scope.row.isPrivate)}} |
|
|
|
</span> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
|
|
|
|
<el-table-column |
|
|
|
prop="createdUnix" |
|
|
|
:label="i18n.model_create_time" |
|
|
@@ -130,19 +143,6 @@ |
|
|
|
</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%" |
|
|
@@ -157,8 +157,8 @@ |
|
|
|
: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">设为公开</a> |
|
|
|
<a class="op-btn" v-show="repoIsPrivate == false && scope.row.isPrivate==false">设为私有</a> |
|
|
|
<a class="op-btn" v-show="repoIsPrivate == false && scope.row.isPrivate==true">>{{ i18n.modelaccess_setpublic }}</a> |
|
|
|
<a class="op-btn" v-show="repoIsPrivate == false && scope.row.isPrivate==false">>{{ i18n.modelaccess_setprivate }}</a> |
|
|
|
|
|
|
|
<a class="op-btn" |
|
|
|
:href="loadhref + scope.row.id" |
|
|
@@ -546,6 +546,14 @@ export default { |
|
|
|
showinfoHref() { |
|
|
|
return this.url + "show_model_info?name="; |
|
|
|
}, |
|
|
|
transStatus(){ |
|
|
|
return function (state) { |
|
|
|
if(state){ |
|
|
|
return this.i18n.modelaccess_private; |
|
|
|
} |
|
|
|
return this.i18n.modelaccess_public; |
|
|
|
} |
|
|
|
}, |
|
|
|
transTime() { |
|
|
|
return function (time) { |
|
|
|
let date = new Date(time * 1000); //时间戳为10位需*1000,时间戳为13位的话不需乘1000 |
|
|
|