修改手风琴治理设备便携式tree高度
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
size="18"
|
||||
class="fold ml10 mt20 menu-collapse"
|
||||
style="cursor: pointer"
|
||||
v-if="route.path!='/admin/govern/reportCore/statistics/index'"
|
||||
v-if="route.path != '/admin/govern/reportCore/statistics/index'"
|
||||
/>
|
||||
<div class="cn-tree" :style="{ opacity: menuCollapse ? 0 : 1 }">
|
||||
<div style="display: flex; align-items: center" class="mb10">
|
||||
@@ -28,14 +28,14 @@
|
||||
size="18"
|
||||
class="fold ml10 menu-collapse"
|
||||
style="cursor: pointer"
|
||||
v-if="props.canExpand&&route.path!='/admin/govern/reportCore/statistics/index'"
|
||||
v-if="props.canExpand && route.path != '/admin/govern/reportCore/statistics/index'"
|
||||
/>
|
||||
</div>
|
||||
|
||||
<el-collapse accordion v-model="activeName" style="flex: 1; overflow: auto" @change="changeDevice">
|
||||
<el-collapse accordion v-model="activeName" style="flex: 1; height: 100%" @change="changeDevice">
|
||||
<el-collapse-item title="治理设备" :name="0">
|
||||
<el-tree
|
||||
style="min-height: calc(100vh - 250px)"
|
||||
style="height: calc(100vh - 350px); overflow: auto"
|
||||
ref="treeRef1"
|
||||
:props="defaultProps"
|
||||
highlight-current
|
||||
@@ -60,7 +60,7 @@
|
||||
</el-collapse-item>
|
||||
<el-collapse-item title="便携式设备" :name="1">
|
||||
<el-tree
|
||||
style="min-height: calc(100vh - 250px)"
|
||||
style="height: calc(100vh - 290px); overflow: auto"
|
||||
ref="treeRef2"
|
||||
:props="defaultProps"
|
||||
highlight-current
|
||||
@@ -92,7 +92,7 @@
|
||||
import useCurrentInstance from '@/utils/useCurrentInstance'
|
||||
import { ElTree } from 'element-plus'
|
||||
import { ref, watch } from 'vue'
|
||||
import {useRoute} from 'vue-router'
|
||||
import { useRoute } from 'vue-router'
|
||||
defineOptions({
|
||||
name: 'govern/tree'
|
||||
})
|
||||
@@ -111,8 +111,8 @@ const props = withDefaults(defineProps<Props>(), {
|
||||
data: []
|
||||
})
|
||||
|
||||
const route=useRoute()
|
||||
console.log(route,"6666677788889")
|
||||
const route = useRoute()
|
||||
console.log(route, '6666677788889')
|
||||
const { proxy } = useCurrentInstance()
|
||||
const menuCollapse = ref(false)
|
||||
const activeName = ref(0)
|
||||
|
||||
Reference in New Issue
Block a user