Browse Source

fix issue

tags/v1.22.3.2^2
zhoupzh 4 years ago
parent
commit
73f94ab650
2 changed files with 18 additions and 4 deletions
  1. +12
    -3
      templates/repo/cloudbrain/new.tmpl
  2. +6
    -1
      web_src/js/index.js

+ 12
- 3
templates/repo/cloudbrain/new.tmpl View File

@@ -201,14 +201,23 @@
</datalist>
</div>

<div class="inline required field">
<div class="inline required field" id="dataset-base">
<label>数据集</label>
<select id="cloudbrain_dataset" class="ui search dropdown" placeholder="选择数据集" style='width:385px' name="attachment" required>
<!-- <select id="cloudbrain_dataset" class="ui search dropdown" placeholder="选择数据集" style='width:385px' name="attachment" required>
{{range .attachments}}
<option name="attachment" value="{{.UUID}}">{{.Attachment.Name}}</option>
{{end}}
</select>
</select> -->
<input type="text" name="" id="">
<el-button type="text" @click="dialogVisible = true">点击打开 Dialog</el-button>
<el-dialog
title="选择数据集"
:visible.sync="dialogVisible"
width="50%"
>
</el-dialog>
</div>

<div class="inline required field">


+ 6
- 1
web_src/js/index.js View File

@@ -3729,6 +3729,8 @@ function initVueDataset() {
showMoreHis:false,
star_active:false,
num_stars:0,
dialogVisible:false,
activeName: 'first',
ruleForm:{
title:'',
description:'',
@@ -3789,7 +3791,7 @@ function initVueDataset() {
// // this.getEditInit()
// this.getTypeList()
this.toggleHistoryData() //数据处理
},
created(){
if(document.getElementById('postPath')){
@@ -3993,6 +3995,9 @@ function initVueDataset() {
gotoDatasetEidt(id){
location.href = `/attachments/edit/${id}`

},
handleClick(tab, event) {
console.log(tab, event);
}



Loading…
Cancel
Save