Browse Source

fix issue

tags/v1.22.11.3^2
zhoupzh 2 years ago
parent
commit
ba1a5c11c5
3 changed files with 13 additions and 9 deletions
  1. +3
    -1
      templates/repo/debugjob/index.tmpl
  2. +1
    -0
      web_src/js/features/cloudrbanin.js
  3. +9
    -8
      web_src/vuepages/pages/notebook/debug/index.vue

+ 3
- 1
templates/repo/debugjob/index.tmpl View File

@@ -296,7 +296,9 @@
<a id="ai-stop-{{.Cloudbrain.ID}}"
class='ui basic ai_stop {{if eq .Status "STOPPED" "FAILED" "START_FAILED" "STOPPING" "CREATING" "STARTING" "SUCCEEDED" "CREATE_FAILED" "DELETED"}}disabled {{else}}blue {{end}}button'
data-repopath="{{$.RepoLink}}{{if eq .ComputeResource "CPU/GPU"}}/cloudbrain{{else}}/modelarts/notebook{{end}}/{{.Cloudbrain.ID}}/stop"
data-jobid="{{.Cloudbrain.ID}}">
data-jobid="{{.Cloudbrain.ID}}"
{{if .BootFile}}data-bootfile="{{.BootFile}}"{{end}}>
{{$.i18n.Tr "repo.stop"}}
</a>
{{else}}


+ 1
- 0
web_src/js/features/cloudrbanin.js View File

@@ -308,6 +308,7 @@ export default async function initCloudrain() {
.addClass(res.status);
$("#" + ID + "-text").text(res.status);
if (res.status === "STOPPED") {
console.log(bootFile)
if (!bootFile) {
$("#ai-debug-" + ID)
.removeClass("disabled")


+ 9
- 8
web_src/vuepages/pages/notebook/debug/index.vue View File

@@ -67,7 +67,7 @@
</div>
</div>
<div class="resource-select">
<i v-if="selectIndex===2" :class="{'slide-in-top': slideActive && !initSelect}" class="ri-checkbox-circle-line green"></i>
<i v-if="selectIndex===2" :class="[slideActive && !initSelect ?'slide-in-top':'slide-in-bottom']" class="ri-checkbox-circle-line green"></i>
<i
class="ri-checkbox-blank-circle-line gray"
:class="{'fade-out':selectIndex===2}"
@@ -94,7 +94,7 @@
</div>
</div>
<div class="resource-select">
<i v-if="selectIndex===1 && !initSelect" :class="[slideActive && !initSelect ?'slide-in-top':'slide-in-bottom']" class="ri-checkbox-circle-line green"></i>
<i v-if="selectIndex===1 && !initSelect" :class="{'slide-in-top': slideActive && !initSelect}" class="ri-checkbox-circle-line green"></i>
<i v-if="selectIndex===1 && initSelect" class="ri-checkbox-circle-line green"></i>
<i
class="ri-checkbox-blank-circle-line gray"
@@ -237,11 +237,14 @@ export default {
this.getNotebookInfo()
if(index==this.selectIndex){
return
}
if(index>this.selectIndex){
this.slideActive = true
}
console.log(index,this.selectIndex)
if(index>this.selectIndex && this.selectIndex!==1){
this.slideActive = true
}else if(index<this.selectIndex && index==1){
this.slideActive = true
}else{
this.slideActive = false
this.slideActive = false
}
this.selectIndex = index;
this.initSelect = false
@@ -251,9 +254,7 @@ export default {
if(this.activeLoadFirst){
this.loading = true
}
getFileNotebook().then((res)=>{
if(res.data.code==0){
this.notebookInfo = res.data
}else{


Loading…
Cancel
Save