Browse Source

fix issue

tags/v1.22.6.2^2
zhoupzh 3 years ago
parent
commit
d92552779f
4 changed files with 13 additions and 7 deletions
  1. +2
    -1
      templates/repo/cloudbrain/trainjob/new.tmpl
  2. +2
    -2
      templates/repo/modelarts/notebook/show.tmpl
  3. +2
    -1
      templates/repo/modelarts/trainjob/new.tmpl
  4. +7
    -3
      web_src/js/components/dataset/selectDataset.vue

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

@@ -27,7 +27,8 @@

.width85 {
width: 85% !important;
margin-left: 4.5rem !important;
margin-left: 10.5rem !important;
align-items: center;
}

.width81 {


+ 2
- 2
templates/repo/modelarts/notebook/show.tmpl View File

@@ -444,9 +444,9 @@
<tbody>
{{range $.datasetDownload}}
<tr>
<td style="word-wrap: break-word;word-break: break-all;" class="center aligned"><a>{{.DatasetName}}</a></td>
<td style="word-wrap: break-word;word-break: break-all;" class="center aligned"><a style="cursor: default;">{{.DatasetName}}</a></td>
<td style="word-wrap: break-word;word-break: break-all;">{{.DatasetDownloadLink}}</td>
<td class="center aligned"><a class="ui poping up clipboard" id="clipboard-btn" data-original="{{$.i18n.Tr "repo.copy_link"}}" data-success="{{$.i18n.Tr "repo.copy_link_success"}}" data-error="{{$.i18n.Tr "repo.copy_link_error"}}" data-content="{{$.i18n.Tr "repo.copy_link"}}" data-variation="inverted tiny" data-clipboard-text="asdasd">复制链接</a></td>
<td class="center aligned"><a class="ui poping up clipboard" id="clipboard-btn" data-original="{{$.i18n.Tr "repo.copy_link"}}" data-success="{{$.i18n.Tr "repo.copy_link_success"}}" data-error="{{$.i18n.Tr "repo.copy_link_error"}}" data-content="{{$.i18n.Tr "repo.copy_link"}}" data-variation="inverted tiny" data-clipboard-text="{{.DatasetDownloadLink}}">复制链接</a></td>
</tr>
{{end}}
</tbody>


+ 2
- 1
templates/repo/modelarts/trainjob/new.tmpl View File

@@ -22,7 +22,8 @@
}
.width85{
width: 85% !important;
margin-left: 4.5rem !important;
margin-left: 10.5rem !important;
align-items: center;
}
.width81{
margin-left: 1.5rem;


+ 7
- 3
web_src/js/components/dataset/selectDataset.vue View File

@@ -74,7 +74,7 @@
></i>
<input
type="text"
placeholder="搜数据集名称..."
placeholder="搜数据集名称/描述..."
v-model="search"
@keyup.enter="searchName"
/>
@@ -618,7 +618,10 @@ export default {
methods: {
openDataset() {
this.dialogVisible = true;
this.confirmFlag = false;
if (!this.confirmDatasetList) {
this.confirmFlag = false;
}

this.getCurrentRepoDataset();
},
handleClick(tab, event) {
@@ -651,7 +654,8 @@ export default {
console.log("111111111111");
if (
this.selectDatasetArray.some((item) => {
return item.label === data.label;
console.log(item.label.split(".")[0], data.label.split(".")[0]);
return item.label.split(".")[0] === data.label.split(".")[0];
})
) {
this.$refs[data.ref].setChecked(data.id, false, false);


Loading…
Cancel
Save