This is an automated email from the ASF dual-hosted git repository.

xxyu pushed a commit to branch kylin5
in repository https://gitbox.apache.org/repos/asf/kylin.git

commit 06884f6c931b4e76fa417f656f1b43b7622d934a
Author: Qian Xia <lauraxiaq...@gmail.com>
AuthorDate: Thu Jul 13 15:52:20 2023 +0800

    KYLIN-5625 fix table index shard by issue
---
 .../studio/StudioModel/TableIndexEdit/tableindex_edit.vue           | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git 
a/kystudio/src/components/studio/StudioModel/TableIndexEdit/tableindex_edit.vue 
b/kystudio/src/components/studio/StudioModel/TableIndexEdit/tableindex_edit.vue
index 946ac5ee48..e035e29a77 100644
--- 
a/kystudio/src/components/studio/StudioModel/TableIndexEdit/tableindex_edit.vue
+++ 
b/kystudio/src/components/studio/StudioModel/TableIndexEdit/tableindex_edit.vue
@@ -432,11 +432,17 @@
       this.allColumns.forEach(item => {
         if (v && this.getDisabledTableType(item)) return
         item.isUsed = v
+        if (!v) {
+          item.isShared = v
+        }
       })
     }
     selectTableIndex (status, col) {
       const selectedColumns = this.getSelectedColumns
       const unSelected = this.allColumns.filter(it => !it.isUsed)
+      if (!status) { // 如果取消选择,isSorted重置成false
+        col.isShared = status
+      }
       this.allColumns = [...selectedColumns, ...unSelected]
       selectedColumns.length === this.allColumns.length && 
(this.isSelectAllTableIndex = true)
       unSelected.length === this.allColumns.length && 
(this.isSelectAllTableIndex = false)

Reply via email to