diff --git a/templates/repo/modelarts/notebook/show.tmpl b/templates/repo/modelarts/notebook/show.tmpl index 7ed54cef5..a75fb6f89 100755 --- a/templates/repo/modelarts/notebook/show.tmpl +++ b/templates/repo/modelarts/notebook/show.tmpl @@ -350,7 +350,7 @@
- {{.DatasetName}} {{.DatasetDownloadLink}} - {{$.i18n.Tr "dataset.download_copy"}} + {{$.i18n.Tr "dataset.download_copy"}} {{end}} @@ -491,5 +491,4 @@ $(document).ready(function () { $('.secondary.menu .item').tab(); }); - console.log({{$.datasetDownload}}) \ No newline at end of file diff --git a/web_src/js/components/dataset/referenceDataset.vue b/web_src/js/components/dataset/referenceDataset.vue index 1ca654c0b..e2c7d5b9c 100644 --- a/web_src/js/components/dataset/referenceDataset.vue +++ b/web_src/js/components/dataset/referenceDataset.vue @@ -339,19 +339,18 @@ overflow-y: auto; " > - - {{ - item.Title - }} - + {{ + item.Title + }}
{ - this.selectDatasetArray.push({ ID: item.ID, Title: item.Title }); + this.selectDatasetArray.push({ + ID: item.ID, + Title: item.Title, + isChecked: true, + }); return item.ID; }); this.dialogVisible = true; @@ -473,7 +476,11 @@ export default { return; } if (checked) { - this.selectDatasetArray.push({ ID: item.ID, Title: item.Title }); + this.selectDatasetArray.push({ + ID: item.ID, + Title: item.Title, + isChecked: true, + }); } else { let index = this.selectDatasetArray.findIndex((element) => { return element.ID === item.ID; @@ -482,12 +489,11 @@ export default { } }, changeCheckSelected(checked, item) { - if (!checked) { - let index = this.selectDatasetArray.findIndex((element) => { - return element.ID === item.ID; - }); - this.selectDatasetArray.splice(index, 1); - } + let index = this.selectDatasetArray.findIndex((element) => { + return element.ID === item.ID; + }); + this.selectDatasetArray.splice(index, 1); + this.checkList.splice(index, 1); }, postStar(item, isSigned) { if (!isSigned) { diff --git a/web_src/js/features/i18nVue.js b/web_src/js/features/i18nVue.js index 05932854a..4740f01cb 100644 --- a/web_src/js/features/i18nVue.js +++ b/web_src/js/features/i18nVue.js @@ -142,11 +142,11 @@ export const i18nVue = { disassociate: "Unlink", public_dataset: "Public Dataset", selected_data_file: "Selected DataSets", - sure: "Ok", + sure: "OK", search_dataset: "Search dataset name/description ...", citations: "Citations", downloads: "Downloads", - not_link_dataset: "No datasets have been associated yet", + not_link_dataset: "No datasets have been linked yet", no_link_dataset_tips1: "You can display public datasets on the platform here by clicking the New Linked Dataset button.",