+
{{
+ ele
+ }}
@@ -168,16 +177,20 @@ onMounted(() => {
padding: 12px 16px;
color: #646a73;
display: flex;
+ width: 100%;
+ overflow-x: auto;
align-items: center;
& > div {
display: flex;
align-items: center;
+ white-space: nowrap;
}
.label {
font-size: 14px;
font-weight: 400;
line-height: 20px;
+ max-width: 250px;
}
.ed-icon {
diff --git a/core/core-frontend/src/views/mobile/personal/index.vue b/core/core-frontend/src/views/mobile/personal/index.vue
index a1019b0679..db60c608cc 100644
--- a/core/core-frontend/src/views/mobile/personal/index.vue
+++ b/core/core-frontend/src/views/mobile/personal/index.vue
@@ -48,11 +48,47 @@ const findName = () => {
}
}
}
+
+let directIdCopy = []
+let directNameCopy = []
+
+const dfsOrgTree = (arr, depth) => {
+ arr.forEach(item => {
+ const { name, id } = item
+ if (depth <= directIdCopy.length) {
+ if (depth < directIdCopy.length) {
+ directIdCopy = directIdCopy.slice(0, depth)
+ directNameCopy = directNameCopy.slice(0, depth)
+ }
+ directIdCopy.splice(directIdCopy.length - 1, 1, id)
+ directNameCopy.splice(directNameCopy.length - 1, 1, name)
+ } else {
+ directIdCopy.push(id)
+ directNameCopy.push(name)
+ }
+
+ let nextDepth = depth + 1
+
+ if (id === userStore.getOid) {
+ directName.value = [...directNameCopy]
+ directId.value = [...directIdCopy]
+ nextDepth = 999
+ }
+ if (item?.children?.length && nextDepth !== 999) {
+ dfsOrgTree(item?.children, nextDepth)
+ }
+ })
+}
+
onMounted(() => {
mountedOrg().then(res => {
orgOption = res.data as OrgTreeNode[]
tableData.value = res.data as OrgTreeNode[]
findName()
+ dfsOrgTree(orgOption, 1)
+ directName.value.pop()
+ directId.value.pop()
+ activeDirectName.value = directName.value[directName.value.length - 1]
})
})
@@ -84,6 +120,13 @@ const orgCellClick = (type, val) => {
}
}
+const handleDir = index => {
+ if (index === directId.value.length - 1) return
+ directId.value = directId.value.slice(0, index + 1)
+ directName.value = directName.value.slice(0, index + 1)
+ activeDirectName.value = directName.value[directName.value.length - 1]
+}
+
const tableData = ref([])
const directName = ref([])
const directId = ref([])
@@ -134,8 +177,13 @@ const activeTableData = computed(() => {
@click-left="onClickLeft"
/>
-
-
{{ ele }}
+
+ {{ ele }}
@@ -202,6 +250,14 @@ const activeTableData = computed(() => {
display: flex;
align-items: center;
+ & > div {
+ white-space: nowrap;
+ }
+
+ .ellipsis {
+ max-width: 250px;
+ }
+
.active {
color: var(--ed-color-primary);
}
diff --git a/core/core-frontend/src/views/share/share/ShareGrid.vue b/core/core-frontend/src/views/share/share/ShareGrid.vue
index d1037b2256..1729e041bf 100644
--- a/core/core-frontend/src/views/share/share/ShareGrid.vue
+++ b/core/core-frontend/src/views/share/share/ShareGrid.vue
@@ -230,8 +230,8 @@ watch(
align-items: center;
}
.main-color {
- font-size: 21.33px;
- padding: 5.33px;
+ font-size: 18px;
+ padding: 3px;
margin-right: 12px;
border-radius: 4px;
color: #fff;
diff --git a/core/core-frontend/src/views/visualized/data/dataset/index.vue b/core/core-frontend/src/views/visualized/data/dataset/index.vue
index 2ce8e3a3fb..80c22e0cb8 100644
--- a/core/core-frontend/src/views/visualized/data/dataset/index.vue
+++ b/core/core-frontend/src/views/visualized/data/dataset/index.vue
@@ -1,6 +1,6 @@