Browse Source

提交代码。

Signed-off-by: zouap <zouap@pcl.ac.cn>
tags/v1.22.12.1^2
zouap 3 years ago
parent
commit
b2c8137721
2 changed files with 11 additions and 5 deletions
  1. +2
    -2
      templates/repo/modelmanage/create_online.tmpl
  2. +9
    -3
      web_src/vuepages/pages/modelmanage/local/modelmanage-local-create-1.vue

+ 2
- 2
templates/repo/modelmanage/create_online.tmpl View File

@@ -141,13 +141,13 @@
</div> </div>
<div class="field"> <div class="field">
<div class="ui radio checkbox"> <div class="ui radio checkbox">
<input type="radio" name="is_private" checked="checked">
<input type="radio" name="isPrivate" checked="checked" value="false">
<label>公开</label> <label>公开</label>
</div> </div>
</div> </div>
<div class="field"> <div class="field">
<div class="ui radio checkbox"> <div class="ui radio checkbox">
<input type="radio" name="is_private">
<input type="radio" name="isPrivate" value="true">
<label>私有</label> <label>私有</label>
</div> </div>
</div> </div>


+ 9
- 3
web_src/vuepages/pages/modelmanage/local/modelmanage-local-create-1.vue View File

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


Loading…
Cancel
Save