Commit 28718ad1 authored by yht15023815643's avatar yht15023815643

update

parent 28c08a2f
...@@ -295,6 +295,8 @@ export default { ...@@ -295,6 +295,8 @@ export default {
}, },
handleItem(item){ handleItem(item){
console.log(this.defaultRoute)
this.sideRoute = this.defaultRoute this.sideRoute = this.defaultRoute
this.$emit("currentPath", item) this.$emit("currentPath", item)
}, },
......
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
<skeleton style="margin-left:16px;" v-if="isSkeleton"></skeleton> <skeleton style="margin-left:16px;" v-if="isSkeleton"></skeleton>
<div v-else id="anchorRef_wrap"> <div v-else id="anchorRef_wrap">
<div class="contetn_wrap"> <div class="contetn_wrap">
<div class="wrap" id="anchorRef" @scroll="handleScroll"> <div class="wrap" :class="activeIndex==0?'':'wrap1'" id="anchorRef" @scroll="handleScroll">
<template v-if="activeIndex==0"> <template v-if="activeIndex==0">
<span class="count">{{ total }}</span><el-popover style="margin-left:8px;position: relative;top: 2px;color:#515a6e;" trigger="hover" content="央企集团数据包含国资委及财政部公示的央企名录。" placement="right"><i slot="reference" class="el-icon-warning-outline"></i></el-popover> <span class="count">{{ total }}</span><el-popover style="margin-left:8px;position: relative;top: 2px;color:#515a6e;" trigger="hover" content="央企集团数据包含国资委及财政部公示的央企名录。" placement="right"><i slot="reference" class="el-icon-warning-outline"></i></el-popover>
<div > <div >
...@@ -312,8 +312,8 @@ export default { ...@@ -312,8 +312,8 @@ export default {
anchorClick(i) { anchorClick(i) {
var a = document.getElementById('anchor-'+i) var a = document.getElementById('anchor-'+i)
a.scrollIntoView() a.scrollIntoView()
// document.body.scrollTop += -40 document.body.scrollTop += -40
// document.documentElement.scrollTop += -40 document.documentElement.scrollTop += -40
setTimeout(() => { setTimeout(() => {
this.anchorIndex = i this.anchorIndex = i
}, 1); }, 1);
...@@ -498,7 +498,6 @@ export default { ...@@ -498,7 +498,6 @@ export default {
background: #FFFFFF; background: #FFFFFF;
border-radius: 4px 4px 4px 4px; border-radius: 4px 4px 4px 4px;
padding: 16px; padding: 16px;
max-height: 848px;
.anchor{ .anchor{
height: 24px; height: 24px;
} }
...@@ -584,6 +583,9 @@ export default { ...@@ -584,6 +583,9 @@ export default {
} }
} }
} }
.wrap1{
max-height: 1048px;
}
.anchor_box { .anchor_box {
position: absolute; position: absolute;
top: 48px; top: 48px;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment