Commit 6ac28278 authored by danfuman's avatar danfuman

修改

parent d734da04
...@@ -99,14 +99,16 @@ export default { ...@@ -99,14 +99,16 @@ export default {
this.yearOptions=res.data.reverse(); this.yearOptions=res.data.reverse();
}) })
//列表一屏幕显示完整,底部滚动条隐藏 //列表一屏幕显示完整,底部滚动条隐藏
const targetTableWrapperEl = document.querySelector('.el-table__body-wrapper') // const targetTableWrapperEl = document.querySelector('.el-table__body-wrapper')
const viewHeight = window.innerHeight || document.documentElement.clientHeight // const viewHeight = window.innerHeight || document.documentElement.clientHeight
const { bottom } = targetTableWrapperEl.getBoundingClientRect() // const { bottom } = targetTableWrapperEl.getBoundingClientRect()
if (bottom <= viewHeight) { // if (bottom <= viewHeight) {
targetTableWrapperEl.style.display = 'initial' // console.log("222")
} else { // targetTableWrapperEl.style.display = 'none'
targetTableWrapperEl.style.display = 'none' // } else {
} // console.log("111")
// targetTableWrapperEl.style.display = 'initial'
// }
}, },
methods: { methods: {
getData(){ getData(){
......
...@@ -158,14 +158,17 @@ ...@@ -158,14 +158,17 @@
this.getYears() this.getYears()
//列表一屏幕显示完整,底部滚动条隐藏 //列表一屏幕显示完整,底部滚动条隐藏
const targetTableWrapperEl = document.querySelector('.el-table__body-wrapper') // const targetTableWrapperEl = document.querySelector('.el-table__body-wrapper')
const viewHeight = window.innerHeight || document.documentElement.clientHeight // console.log(targetTableWrapperEl)
const { bottom } = targetTableWrapperEl.getBoundingClientRect() // const viewHeight = window.innerHeight || document.documentElement.clientHeight
if (bottom <= viewHeight) { // const { bottom } = targetTableWrapperEl.getBoundingClientRect()
targetTableWrapperEl.style.display = 'initial' // if (bottom <= viewHeight) {
} else { // console.log("222")
targetTableWrapperEl.style.display = 'none' // targetTableWrapperEl.style.display = 'initial'
} // } else {
// console.log("1111")
// targetTableWrapperEl.style.display = 'none'
// }
}, },
mounted() { mounted() {
......
...@@ -23,8 +23,8 @@ export default { ...@@ -23,8 +23,8 @@ export default {
navigation: { isFixed: true, fixedHeight: 56, totalHeight: 68 }, // iframe之外页面顶部对象,ifFixed:是否浮动;fixedHeight:浮动对象高度;totalHeight:顶部整体高度 navigation: { isFixed: true, fixedHeight: 56, totalHeight: 68 }, // iframe之外页面顶部对象,ifFixed:是否浮动;fixedHeight:浮动对象高度;totalHeight:顶部整体高度
src: '', //iframe嵌套页面地址 src: '', //iframe嵌套页面地址
// domain: 'https://plug.jiansheku.com', // 插件地址 // domain: 'https://plug.jiansheku.com', // 插件地址
// domain: 'https://pre-plug.jiansheku.com', // 插件地址测试 domain: 'https://pre-plug.jiansheku.com', // 插件地址测试
domain: 'http://192.168.60.104:3400', // domain: 'http://192.168.60.104:3400',
ak: 'aec7b3ff2y2q8x6t49a7e2c463ce21912', // 需要携带的sdkId ak: 'aec7b3ff2y2q8x6t49a7e2c463ce21912', // 需要携带的sdkId
timelongs: 7200,//刷新token时间 timelongs: 7200,//刷新token时间
tokentimer: null, tokentimer: null,
......
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