diff --git a/ui/dasadmin/src/views/backend/auth/Enumeration/index.vue b/ui/dasadmin/src/views/backend/auth/Enumeration/index.vue index ff2916be..31666896 100644 --- a/ui/dasadmin/src/views/backend/auth/Enumeration/index.vue +++ b/ui/dasadmin/src/views/backend/auth/Enumeration/index.vue @@ -3,29 +3,26 @@ - - + + + + + + + + + + + + + + + + + + + + { const enumTreeTypeList = () => { enumTreeQuery().then((res) => { if (res.code == 200) { - TypeData.value = res.data + //TypeData.value = res.data + TypeData.value[0].children = res.data nextTick(() => { enumTypeId.value=res.data[0]?.id - TypeTree.value?.setCurrentKey(res.data[0]?.id!, false) + //TypeTree.value?.setCurrentKey(res.data[0]?.id!, false) + TypeTree.value?.setCurrentKey(TypeData.value[0].id!, false) queryListData.description =queryName.value queryListData.enumTypeId = res.data[0].id queryListData.pageNum=currentPage.value, @@ -379,7 +385,6 @@ const queryenumValueMethod = (data: any) => { const onSubmitvalue = () => { formRef.value.validate((valid: any) => { if (valid) { - debugger if(formInlineValue.isActive==true){ formInlineValue.isActive=1 }else{ @@ -388,9 +393,7 @@ const onSubmitvalue = () => { console.log(formInlineValue) enumValueAdd(formInlineValue).then((res: any) => { - debugger if (res.code == 200) { - /* TypeTree.value?.setCurrentKey(res.data[0]?.id!, false)*/ queryListData.description =queryName.value queryListData.enumTypeId = enumTypeId.value queryListData.pageNum=currentPage.value, @@ -421,7 +424,6 @@ interface fromDelete { row?: any[] } const fromDelete = (data: any) => { - debugger dialogVisibleDelete.value = true fromDeleteData.id = data.row.id } @@ -487,6 +489,10 @@ const edithandleClosevalue = (done: () => void) => { onMounted(() => { enumTreeTypeList() + const firstNode = TypeTree.value.store.root.childNodes[0]; + /*if (firstNode) { + handleNodeClick(firstNode.data, null, TypeTree.value); + }*/ }) @@ -509,6 +515,35 @@ $paginationHeight: 32px; width: 260px; height: 100%; border-right: 1px solid #eaebed; + .el-main{ + .demo-collapse{ + .el-collapse{ + border: none; + border-color: transparent; + } + .el-collapse-item{ + :deep(.el-collapse-item__arrow){ + pointer-events: auto; + } + .collapse-title { + flex: 1 0 90%; + order: 1; + } + :deep(.el-collapse-item__header){ + background: #d0e5f2; + border-radius: 4px; + padding-left: 10px; + text-align:left + } + :deep(.el-collapse-item__wrap){ + border: none; + border-color: transparent; + } + } + + } + } + .treeMain{ .treeTitle{ height:40px;