| @@ -3,7 +3,11 @@ | |||||
| <div class="inline {{if eq .cloudbraintype 0}} required {{end}} field" id="dataset-base"> | <div class="inline {{if eq .cloudbraintype 0}} required {{end}} field" id="dataset-base"> | ||||
| <label>{{.i18n.Tr "dataset.dataset"}}</label> | <label>{{.i18n.Tr "dataset.dataset"}}</label> | ||||
| <input type="hidden" name="attachment" :value="dataset_uuid"> | <input type="hidden" name="attachment" :value="dataset_uuid"> | ||||
| <input type="text" :value="dataset_name" disabled> | |||||
| {{if eq .cloudbraintype 0}} | |||||
| <input class="disabled" type="text" :value="dataset_name" required onfocus="this.blur();"> | |||||
| {{else}} | |||||
| <input class="disabled" type="text" :value="dataset_name"> | |||||
| {{end}} | |||||
| <el-button type="text" @click="dialogVisible = true" icon="el-icon-plus"> {{.i18n.Tr "dataset.select_dataset"}}</el-button> | <el-button type="text" @click="dialogVisible = true" icon="el-icon-plus"> {{.i18n.Tr "dataset.select_dataset"}}</el-button> | ||||
| <el-dialog | <el-dialog | ||||
| title="{{.i18n.Tr "dataset.select_dataset"}}" | title="{{.i18n.Tr "dataset.select_dataset"}}" | ||||
| @@ -59,21 +59,7 @@ | |||||
| {{end}} | {{end}} | ||||
| </select> | </select> | ||||
| </div> | </div> | ||||
| <<<<<<< HEAD | |||||
| {{template "custom/select_dataset" .}} | {{template "custom/select_dataset" .}} | ||||
| ======= | |||||
| <div class="inline field"> | |||||
| <label>{{.i18n.Tr "cloudbrain.dataset"}}</label> | |||||
| <input type="text" list="cloudbrain_dataset" placeholder="{{.i18n.Tr "cloudbrain.select_dataset"}}" name="" id="answerInput" autofocus maxlength="36"> | |||||
| <datalist id="cloudbrain_dataset" class="ui search" style='width:385px' name="attachment"> | |||||
| {{range .attachments}} | |||||
| <option name="attachment" data-value="{{.UUID}}">{{.Attachment.Name}}</option> | |||||
| {{end}} | |||||
| </datalist> | |||||
| <input type="hidden" name="attachment" id="answerInput-hidden"> | |||||
| </div> | |||||
| >>>>>>> V20220328 | |||||
| <!--<div class="inline required field"> | <!--<div class="inline required field"> | ||||
| <label>工作环境</label> | <label>工作环境</label> | ||||
| @@ -413,7 +413,7 @@ | |||||
| identifier : 'display_job_name', | identifier : 'display_job_name', | ||||
| rules: [ | rules: [ | ||||
| { | { | ||||
| type: 'regExp[/^[a-zA-Z0-9-_]{1,64}[^-]$/]', | |||||
| type: 'regExp[/^[a-zA-Z0-9-_]{1,64}[a-zA-Z0-9_]$/]', | |||||
| } | } | ||||
| ] | ] | ||||
| }, | }, | ||||
| @@ -150,21 +150,21 @@ | |||||
| align="center"> | align="center"> | ||||
| </el-table-column> | </el-table-column> | ||||
| <el-table-column | <el-table-column | ||||
| prop="isMirror" | |||||
| prop="isFork" | |||||
| label="派生" | label="派生" | ||||
| align="center"> | align="center"> | ||||
| <template slot-scope="scope"> | <template slot-scope="scope"> | ||||
| {{scope.row.isMirror|changeType}} | |||||
| </template> | |||||
| </el-table-column> | |||||
| {{scope.row.isFork|changeType}} | |||||
| </template> | |||||
| </el-table-column> | |||||
| <el-table-column | <el-table-column | ||||
| prop="isFork" | |||||
| prop="isMirror" | |||||
| label="镜像" | label="镜像" | ||||
| align="center"> | align="center"> | ||||
| <template slot-scope="scope"> | <template slot-scope="scope"> | ||||
| {{scope.row.isFork|changeType}} | |||||
| {{scope.row.isMirror|changeType}} | |||||
| </template> | </template> | ||||
| </el-table-column> | |||||
| </el-table-column> | |||||
| <el-table-column | <el-table-column | ||||
| prop="createUnix" | prop="createUnix" | ||||
| label="项目创建时间" | label="项目创建时间" | ||||