From 575929f69aa06be13be4e5bfba005b9ba7ef7e4e Mon Sep 17 00:00:00 2001 From: taojinlong Date: Wed, 28 Sep 2022 17:10:23 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=88=9B=E5=BB=BA=E7=9B=AE=E5=BD=95?= =?UTF-8?q?=E5=8E=BB=E9=99=A4=E7=A9=BA=E6=A0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/dataset/group/Group.vue | 81 ++++++++++++---------- 1 file changed, 44 insertions(+), 37 deletions(-) diff --git a/frontend/src/views/dataset/group/Group.vue b/frontend/src/views/dataset/group/Group.vue index bbab6be283..3788236869 100644 --- a/frontend/src/views/dataset/group/Group.vue +++ b/frontend/src/views/dataset/group/Group.vue @@ -12,11 +12,11 @@ @command="(type) => clickAddData(type)" > - + @@ -58,12 +58,12 @@ class="main-area-input" > - - + + @@ -71,7 +71,7 @@
{{ $t('deDataset.no_dataset_click') }} - {{ + {{ $t('deDataset.create') }}
@@ -105,8 +105,7 @@ text-overflow: ellipsis; " :title="data.name" - >{{ data.name }} + >{{ data.name }} - + @@ -165,11 +164,11 @@ - + - + {{ $t('dataset.rename') }} @@ -224,11 +223,17 @@ /> - - {{ data.name }} + >{{ data.name }} - + - + {{ $t('dataset.rename') }} - + {{ $t('dataset.move_to') }} - + {{ $t('dataset.delete') }} @@ -305,13 +309,15 @@ @keypress.enter.native="saveGroup(groupForm)" > - + @@ -339,23 +345,25 @@ {{ $t('dataset.cancel') }} - {{ $t('dataset.confirm') }} + {{ $t('dataset.confirm') }}
@@ -367,18 +375,18 @@ :disabled="groupMoveConfirmDisabled" type="primary" @click="saveMoveGroup(tGroup)" - >{{ $t('dataset.confirm') }} + >{{ $t('dataset.confirm') }} @@ -390,7 +398,7 @@ :disabled="dsMoveConfirmDisabled" type="primary" @click="saveMoveDs(tDs)" - >{{ $t('dataset.confirm') }} + >{{ $t('dataset.confirm') }} @@ -431,7 +439,7 @@ export default { currentNodeId: { type: String, default: '' - }, + } }, data() { return { @@ -526,7 +534,7 @@ export default { } }, computed: { - hideCustomDs: function () { + hideCustomDs: function() { return this.$store.getters.hideCustomDs } }, @@ -629,7 +637,7 @@ export default { this.groupForm.pid = param.id this.groupForm.level = param.level + 1 }, - loadTree: _.debounce(function () { + loadTree: _.debounce(function() { this.searchPids = [] this.$refs.datasetTreeRef.filter(this.filterText) }, 600), @@ -876,7 +884,6 @@ export default { sceneId: param.id } }) - }, addData(name) { this.$emit('switchComponent', { name: name, param: this.currGroup }) @@ -1179,4 +1186,4 @@ export default { border-top: 1px solid rgba(31, 35, 41, 0.15); } } - \ No newline at end of file +