Browse Source

增加模型公开及私有

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

+ 4
- 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="false" selected="">公开</el-radio-button>
<el-radio-button label="true" >私有</el-radio-button>
<el-radio-button label="false">公开</el-radio-button>
<el-radio-button label="true">私有</el-radio-button>
</el-radio-group>
</div>
</div>
@@ -141,6 +141,7 @@ export default {
engine: '0',
label: '',
description: '',
isPrivate : 'false',
},
nameErr: false,
isShowVersion: false,
@@ -157,7 +158,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";
},
submit() {
if (!this.checkName()) {


Loading…
Cancel
Save