Browse Source

增加模型公开及私有

Signed-off-by: zouap <zouap@pcl.ac.cn>
tags/v1.22.12.1^2
zouap 3 years ago
parent
commit
6fbdfdbd73
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      web_src/vuepages/pages/modelmanage/local/modelmanage-local-create-1.vue

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

@@ -90,8 +90,8 @@
<div class="r-title"><label>模型权限</label></div>
<div class="r-content">
<el-radio-group v-model="state.isPrivate" >
<el-radio-button label="true">公开</el-radio-button>
<el-radio-button label="false">私有</el-radio-button>
<el-radio-button label="false" selected="">公开</el-radio-button>
<el-radio-button label="true" >私有</el-radio-button>
</el-radio-group>
</div>
</div>
@@ -157,7 +157,7 @@ export default {
const hasEndSpace = this.state.label[this.state.label.length - 1] == ' ';
const list = this.state.label.trim().split(' ').filter(label => label != '');
this.state.label = list.slice(0, MAX_LABEL_COUNT).join(' ') + (hasEndSpace && list.length < MAX_LABEL_COUNT ? ' ' : '');
this.state.isPrivate = false;
this.state.isPrivate = "false";
},
submit() {
if (!this.checkName()) {


Loading…
Cancel
Save