Browse Source

Merge branch 'V20220616' into fix-2144

pull/2284/head
zhoupzh 3 years ago
parent
commit
59df73b3c9
3 changed files with 5 additions and 5 deletions
  1. +2
    -1
      templates/repo/create.tmpl
  2. +1
    -1
      templates/repo/datasets/index.tmpl
  3. +2
    -3
      web_src/js/index.js

+ 2
- 1
templates/repo/create.tmpl View File

@@ -155,7 +155,8 @@
<input class="hidden" name="auto_agree" type="checkbox">
<label
style="width: 76%;text-align: justify;line-height: 1.5;">{{.i18n.Tr "repo.use_repo_agreement"}}
<a href="/home/term/">{{.i18n.Tr "repo.openi_use_agreement"}}</a></label>
<a target="_blank"
href="/home/term/">{{.i18n.Tr "repo.openi_use_agreement"}}</a></label>
</div>
</div>
</div>


+ 1
- 1
templates/repo/datasets/index.tmpl View File

@@ -11,7 +11,7 @@

.dataset_title {
font-size: 14px;
max-width: 80%;
/* max-width: 80%; */
display: inline-block !important;
margin-left: 6px !important;
padding-right: 0 !important;


+ 2
- 3
web_src/js/index.js View File

@@ -5119,8 +5119,7 @@ function initChartsNpu() {
name: '时间(min)'
},
yAxis: {
min: 0,
max: 100,

show: true,
name: '占有率(%)',
axisLine: {
@@ -5162,7 +5161,7 @@ function initChartsNpu() {
return seriesOption
})
let xLength = res.MetricsInfo[0].value.length
options.xAxis.data = Array.from({ length: xLength }, (_, index) => index + 1)
options.xAxis.data = Array.from({ length: xLength }, (_, index) => index)
options.legend.data = legenData
options.series = seriesData
options && myCharts.setOption(options);


Loading…
Cancel
Save