|
|
|
@@ -90,7 +90,7 @@ |
|
|
|
<div class="r-title"><label>{{ $t('modelManage.modelAccess') }}</label></div> |
|
|
|
<div class="field"> |
|
|
|
<div class="ui radio checkbox"> |
|
|
|
<input type="radio" name="isPrivate" checked="checked" value="false"> |
|
|
|
<input id="isPrivate_false" type="radio" name="isPrivate" checked="checked" value="false"> |
|
|
|
<label>{{ $t('modelManage.modelAccessPublic') }}</label> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
@@ -99,7 +99,7 @@ |
|
|
|
</div> |
|
|
|
<div class="field"> |
|
|
|
<div class="ui radio checkbox"> |
|
|
|
<input type="radio" name="isPrivate" value="true"> |
|
|
|
<input id="isPrivate_true" type="radio" name="isPrivate" value="true"> |
|
|
|
<label>{{ $t('modelManage.modelAccessPrivate') }}</label> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
@@ -152,7 +152,7 @@ export default { |
|
|
|
engine: '0', |
|
|
|
label: '', |
|
|
|
description: '', |
|
|
|
isPrivate : 'false', |
|
|
|
isPrivate : false, |
|
|
|
}, |
|
|
|
nameErr: false, |
|
|
|
isShowVersion: false, |
|
|
|
@@ -257,6 +257,13 @@ export default { |
|
|
|
this.state.label = data.label; |
|
|
|
this.state.description = data.description; |
|
|
|
this.state.isPrivate = data.isPrivate; |
|
|
|
if(data.isPrivate){ |
|
|
|
$('#isPrivate_true').attr("checked",true); |
|
|
|
$('#isPrivate_false').attr("checked",false); |
|
|
|
}else{ |
|
|
|
$('#isPrivate_true').attr("checked",false); |
|
|
|
$('#isPrivate_false').attr("checked",true); |
|
|
|
} |
|
|
|
} |
|
|
|
}).catch(err => { |
|
|
|
this.loading = false; |
|
|
|
|