|
|
|
@@ -137,26 +137,17 @@ |
|
|
|
> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<div class="space-around" > |
|
|
|
<!--<a |
|
|
|
:style="{ |
|
|
|
visibility: !scope.row.Children ? 'visible' : 'hidden', |
|
|
|
}" |
|
|
|
:class="{ disabled: !scope.row.isCanOper }" |
|
|
|
@click=" |
|
|
|
showcreateVue( |
|
|
|
scope.row.name, |
|
|
|
scope.row.version, |
|
|
|
scope.row.label |
|
|
|
) |
|
|
|
" |
|
|
|
>{{ i18n.model_create_new_ver }}</a |
|
|
|
>--> |
|
|
|
|
|
|
|
<a class="op-btn" |
|
|
|
v-show="scope.row.modelType == 1" |
|
|
|
: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="scope.repoIsPrivate == false && scope.row.isPrivate==true" style="color:transparent;cursor:default;" >设为公开</a> |
|
|
|
<a class="op-btn" v-show="scope.repoIsPrivate == false && scope.row.isPrivate==false" style="color:transparent;cursor:default;" >设为私有</a> |
|
|
|
|
|
|
|
<a class="op-btn" |
|
|
|
:href="loadhref + scope.row.id" |
|
|
|
:class="{ disabled: !scope.row.isCanOper }" |
|
|
|
@@ -191,7 +182,7 @@ |
|
|
|
|
|
|
|
<script> |
|
|
|
const { _AppSubUrl, _StaticUrlPrefix, csrf } = window.config; |
|
|
|
|
|
|
|
const REPOISPRIVATE = window.REPO_IS_PRIVATE; |
|
|
|
export default { |
|
|
|
components: {}, |
|
|
|
data() { |
|
|
|
@@ -211,6 +202,7 @@ export default { |
|
|
|
data: "", |
|
|
|
timer: null, |
|
|
|
timerFlag: false, |
|
|
|
repoIsPrivate: REPOISPRIVATE, |
|
|
|
}; |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
|