|
|
|
@@ -90,16 +90,16 @@ |
|
|
|
<div class="r-title"><label>模型权限</label></div> |
|
|
|
<div class="field"> |
|
|
|
<div class="ui radio checkbox"> |
|
|
|
<input type="radio" name="is_private" checked="checked"> |
|
|
|
<input type="radio" name="isPrivate" checked="checked" value="false"> |
|
|
|
<label>公开</label> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="field"> |
|
|
|
<label> </label> |
|
|
|
<label> </label> |
|
|
|
</div> |
|
|
|
<div class="field"> |
|
|
|
<div class="ui radio checkbox"> |
|
|
|
<input type="radio" name="is_private"> |
|
|
|
<input type="radio" name="isPrivate" value="true"> |
|
|
|
<label>私有</label> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
@@ -179,6 +179,12 @@ export default { |
|
|
|
// }); |
|
|
|
return; |
|
|
|
} |
|
|
|
var radio = document.getElementsByName("isPrivate"); |
|
|
|
for (i=0; i<radio.length; i++) { |
|
|
|
if (radio[i].checked) { |
|
|
|
this.state.isPrivate=radio[i].value; |
|
|
|
} |
|
|
|
} |
|
|
|
const submintApi = this.type == '1' ? modifyModel : saveLocalModel; |
|
|
|
submintApi({ |
|
|
|
repo: location.pathname.split('/').slice(0, 3).join('/'), |
|
|
|
|