Browse Source

fix issue

tags/v1.22.11.3^2
zhoupzh 3 years ago
parent
commit
f0ae92303a
3 changed files with 35 additions and 11 deletions
  1. +1
    -1
      web_src/vuepages/langs/config/en-US.js
  2. +1
    -1
      web_src/vuepages/langs/config/zh-CN.js
  3. +33
    -9
      web_src/vuepages/pages/notebook/debug/index.vue

+ 1
- 1
web_src/vuepages/langs/config/en-US.js View File

@@ -213,7 +213,7 @@ const en = {
debug: "Debug",
stop: "Stop",
stopping: "Stopping",
notebookRunning: "The debugging environment has been started, and it will automatically close after a single connection for 4 hours or no operation for half an hour",
notebookRunning: "The debugging environment has been started, and it will automatically close after 4 hours ",
stopSuccess: "Stop task succeeded",
specification: "Specification",
graphicMemory: "Graphic Memory",


+ 1
- 1
web_src/vuepages/langs/config/zh-CN.js View File

@@ -214,7 +214,7 @@ const zh = {
debug: "调试",
stop: "停止",
stopping: "停止中",
notebookRunning: "调试环境已启动,单次连接 4 小时或无操作半小时后自动关闭",
notebookRunning: "调试环境已启动,单次连接 4 小时后自动关闭",
stopSuccess: "停止任务成功",
specification: "规格",
graphicMemory: "显存",


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

@@ -352,19 +352,43 @@ export default {
},
computed: {
cpuSpec(){
return `${this.$t("notebook.specification")}:GPU: ${this.notebookInfo.specCpu.acc_cards_num}*${this.notebookInfo.specCpu.acc_card_type},
CPU: ${this.notebookInfo.specCpu.cpu_cores}, ${this.$t("notebook.graphicMemory")}: ${this.notebookInfo.specCpu.gpu_mem_gi_b}GB,
${this.$t("notebook.memory")}: ${this.notebookInfo.specCpu.mem_gi_b}GB, ${this.$t("notebook.sharedMemory")}: ${this.notebookInfo.specCpu.share_mem_gi_b}GB`
let cpu_spec = `${this.$t("notebook.specification")}:GPU: ${this.notebookInfo.specCpu.acc_cards_num}*${this.notebookInfo.specCpu.acc_card_type}, CPU: ${this.notebookInfo.specCpu.cpu_cores}, `
if(this.notebookInfo.specCpu.gpu_mem_gi_b!==0){
cpu_spec += `${this.$t("notebook.graphicMemory")}: ${this.notebookInfo.specCpu.gpu_mem_gi_b}GB, `
}
if(this.notebookInfo.specCpu.mem_gi_b!==0){
cpu_spec += `${this.$t("notebook.memory")}: ${this.notebookInfo.specCpu.mem_gi_b}GB, `
}
if(this.notebookInfo.specCpu.share_mem_gi_b!==0){
cpu_spec += `${this.$t("notebook.sharedMemory")}: ${this.notebookInfo.specCpu.share_mem_gi_b}GB`
}
return cpu_spec
},
npuSpec(){
return `${this.$t("notebook.specification")}:NPU: ${this.notebookInfo.specNpu.acc_cards_num}*${this.notebookInfo.specNpu.acc_card_type},
CPU: ${this.notebookInfo.specNpu.cpu_cores}, ${this.$t("notebook.graphicMemory")}: ${this.notebookInfo.specNpu.gpu_mem_gi_b}GB,
${this.$t("notebook.memory")}: ${this.notebookInfo.specNpu.mem_gi_b}GB, ${this.$t("notebook.sharedMemory")}: ${this.notebookInfo.specNpu.share_mem_gi_b}GB`
let npu_spec = `${this.$t("notebook.specification")}:NPU: ${this.notebookInfo.specNpu.acc_cards_num}*${this.notebookInfo.specNpu.acc_card_type}, CPU: ${this.notebookInfo.specNpu.cpu_cores}, `
if(this.notebookInfo.specNpu.gpu_mem_gi_b!==0){
npu_spec += `${this.$t("notebook.graphicMemory")}: ${this.notebookInfo.specNpu.gpu_mem_gi_b}GB, `
}
if(this.notebookInfo.specNpu.mem_gi_b!==0){
npu_spec += `${this.$t("notebook.memory")}: ${this.notebookInfo.specNpu.mem_gi_b}GB, `
}
if(this.notebookInfo.specNpu.share_mem_gi_b!==0){
npu_spec += `${this.$t("notebook.sharedMemory")}: ${this.notebookInfo.specNpu.share_mem_gi_b}GB`
}
return npu_spec
},
gpuSpec(){
return `${this.$t("notebook.specification")}:NPU: ${this.notebookInfo.specGpu.acc_cards_num}*${this.notebookInfo.specGpu.acc_card_type},
CPU: ${this.notebookInfo.specGpu.cpu_cores}, ${this.$t("notebook.graphicMemory")}: ${this.notebookInfo.specGpu.gpu_mem_gi_b}GB,
${this.$t("notebook.memory")}: ${this.notebookInfo.specGpu.mem_gi_b}GB, ${this.$t("notebook.sharedMemory")}: ${this.notebookInfo.specGpu.share_mem_gi_b}GB`
let gpu_spec = `${this.$t("notebook.specification")}:GPU: ${this.notebookInfo.specGpu.acc_cards_num}*${this.notebookInfo.specGpu.acc_card_type}, CPU: ${this.notebookInfo.specGpu.cpu_cores}, `
if(this.notebookInfo.specGpu.gpu_mem_gi_b!==0){
gpu_spec += `${this.$t("notebook.graphicMemory")}: ${this.notebookInfo.specGpu.gpu_mem_gi_b}GB, `
}
if(this.notebookInfo.specGpu.mem_gi_b!==0){
gpu_spec += `${this.$t("notebook.memory")}: ${this.notebookInfo.specGpu.mem_gi_b}GB, `
}
if(this.notebookInfo.specGpu.share_mem_gi_b!==0){
gpu_spec += `${this.$t("notebook.sharedMemory")}: ${this.notebookInfo.specGpu.share_mem_gi_b}GB`
}
return gpu_spec
}
},
beforeDestroy() {


Loading…
Cancel
Save