联调文件管理页面

This commit is contained in:
guanj
2026-04-02 09:08:57 +08:00
parent 762965b1e4
commit 0b9aafc1b5
25 changed files with 829 additions and 437 deletions

View File

@@ -65,7 +65,7 @@
<el-tree
:style="{
height:
bxsDeviceData.length != 0
treeType.length != 0
? `calc(100vh - 380px - ${props.height}px)`
: 'calc(100vh - 278px)'
}"
@@ -157,7 +157,7 @@
</el-collapse>
<div v-if="treeType == '2'" v-loading="loading">
<el-tree
:style="{ height: 'calc(100vh - 188px)' }"
:style="{ height: `calc(100vh - 188px - ${props.height}px )` }"
ref="treeRef4"
:props="defaultProps"
highlight-current
@@ -200,6 +200,7 @@ interface Props {
type?: string
data?: any
height?: number
engineering: boolean
}
const props = withDefaults(defineProps<Props>(), {
@@ -207,7 +208,8 @@ const props = withDefaults(defineProps<Props>(), {
canExpand: true,
type: '',
data: [],
height: 0
height: 0,
engineering: false
})
const treeType = ref('1')
const options = [
@@ -417,6 +419,7 @@ const treeRef3 = ref<InstanceType<typeof ElTree>>()
const treeRef4 = ref<InstanceType<typeof ElTree>>()
defineExpose({ treeRef1, treeRef2, treeRef3, treeRef4 })
onMounted(() => {
treeType.value = props.engineering ? '2' : '1'
setTimeout(() => {
setActiveName()
}, 500)