Browse Source

GPU调试任务去掉数据集必选项。

Signed-off-by: zouap <zouap@pcl.ac.cn>
tags/v1.22.7.2^2^2
zouap 3 years ago
parent
commit
69e3ea800b
3 changed files with 5 additions and 3 deletions
  1. +1
    -0
      routers/repo/cloudbrain.go
  2. +2
    -2
      templates/repo/cloudbrain/new.tmpl
  3. +2
    -1
      web_src/js/components/dataset/selectDataset.vue

+ 1
- 0
routers/repo/cloudbrain.go View File

@@ -221,6 +221,7 @@ func CloudBrainNew(ctx *context.Context) {
ctx.ServerError("get new cloudbrain info failed", err)
return
}
ctx.Data["PageIsGPUDebug"] = true
ctx.HTML(200, tplCloudBrainNew)
}



+ 2
- 2
templates/repo/cloudbrain/new.tmpl View File

@@ -237,10 +237,10 @@
</select>
</div>

<div class="inline field">
<div class="inline required field">
<label>{{.i18n.Tr "cloudbrain.dataset_storage_path"}}</label>
<input name="dataset_path" id="cloudbrain_dataset_path" value="{{.dataset_path}}" tabindex="3"
disabled autofocus maxlength="255" readonly="readonly">
disabled autofocus required maxlength="255" readonly="readonly">
</div>
<div class="inline required field">
<label>{{.i18n.Tr "cloudbrain.model_storage_path"}}</label>


+ 2
- 1
web_src/js/components/dataset/selectDataset.vue View File

@@ -955,7 +955,8 @@ export default {
) {
this.benchmarkNew = true;
}
if (location.href.indexOf("modelarts/notebook/create") !== -1) {
if (location.href.indexOf("modelarts/notebook/create") !== -1 || location.href.indexOf("/cloudbrain/create") !== -1) {
console.log("required is false;");
this.required = false;
}
window.onresize = () => {


Loading…
Cancel
Save