| | |
| | | </div> |
| | | </div> |
| | | <!-- 设备巡检记录 --> |
| | | <div class="content_right_bottom"> |
| | | <div class="content_right_bottom" ref="bottom1"> |
| | | <div class="content_right_bottom_head"> |
| | | <span>设备巡检记录</span> |
| | | </div> |
| | |
| | | let timer3 = ref(null) |
| | | let timer4 = ref(null) |
| | | let timer5 = ref(null) |
| | | let bottomAuthHeight = 284; |
| | | let scrollContainer = ref(null) |
| | | let scrollContainer1 = ref(null) |
| | | let scrollContainer2 = ref(null) |
| | | let scrollContainer3 = ref(null) |
| | | let scrollContainer4 = ref(null) |
| | | let bottom1 = ref(null) |
| | | let cate = ref([ |
| | | { |
| | | name: '成品计划进度', |
| | |
| | | start1() |
| | | |
| | | const init = () => { |
| | | setBottomHeight(); |
| | | // 当日员工产量TOP10 |
| | | getTop(companyId.value, departId.value) |
| | | .then(res => { |
| | |
| | | .then(res => { |
| | | enterprise.setNum(res) |
| | | }) |
| | | } |
| | | function setBottomHeight(){ |
| | | const pageHeight = window.innerHeight; |
| | | bottomAuthHeight = pageHeight -700; |
| | | // bottom1.style.height=bottomAuthHeight; |
| | | } |
| | | |
| | | /** |
| | |
| | | scrollDom = scrollContainer3.value |
| | | } else { |
| | | // 如果列表数量过少不进行滚动 |
| | | if (scrollDom.children.length <= 5) { |
| | | let num = scrollContainer3.value.offsetHeight / 35; |
| | | // alert(scrollDom.children.length +"---------------"+num) |
| | | // 如果列表数量过少不进行滚动 |
| | | if (scrollDom.children.length <= num) { |
| | | clearTimeout(timer3.value) |
| | | return |
| | | } |
| | | // 组件进行滚动 |
| | | scrollDom.scrollTop += 1 |
| | | scrollDom.scrollTop = scrollDom.scrollTop+2 |
| | | // 判断是否滚动到底部 |
| | | if (scrollDom.scrollTop >= (scrollDom.scrollHeight - scrollDom.clientHeight)) { |
| | | // 获取组件第一个节点 |
| | |
| | | if (scrollDom.offsetHeight == 0) { |
| | | scrollDom = scrollContainer4.value |
| | | } else { |
| | | // console.log(bottom1.value.height); |
| | | let num = scrollContainer4.value.offsetHeight / 35; |
| | | // alert(scrollDom.children.length +"---------------"+num) |
| | | // 如果列表数量过少不进行滚动 |
| | | if (scrollDom.children.length < 5) { |
| | | if (scrollDom.children.length <= num) { |
| | | clearTimeout(timer4.value) |
| | | return |
| | | } |
| | | // 组件进行滚动 |
| | | scrollDom.scrollTop += 1 |
| | | scrollDom.scrollTop += 2 |
| | | // 判断是否滚动到底部 |
| | | if (scrollDom.scrollTop >= (scrollDom.scrollHeight - scrollDom.clientHeight)) { |
| | | if (scrollDom.scrollTop <(scrollDom.scrollHeight - scrollDom.clientHeight)) { |
| | | // 获取组件第一个节点 |
| | | let first = scrollDom.children[0] |
| | | // 删除节点 |
| | |
| | | margin-right: 20px; |
| | | .content_left_item1 { |
| | | width: 100%; |
| | | height: 284px; |
| | | height: calc(100vh - 690px); |
| | | // height: 284px; |
| | | margin-bottom: 20px; |
| | | .content_left_item1_head { |
| | | background: url('@/assets/img/home_title_short@2x.png'); |
| | |
| | | |
| | | .content_left_item1_content { |
| | | width: 100%; |
| | | height: 246px; |
| | | height: calc(100% - 38px); |
| | | padding: 20px; |
| | | overflow: hidden; |
| | | box-sizing: border-box; |
| | |
| | | |
| | | .main_container { |
| | | width: 100%; |
| | | height: calc(100% - 35px); |
| | | height: calc(100% - 38px); |
| | | |
| | | .scroll_container { |
| | | width: 100%; |
| | |
| | | |
| | | .content_center_bottom { |
| | | width: 100%; |
| | | height: 284px; |
| | | // height: 284px; |
| | | height: calc(100vh - 690px); |
| | | flex: 2; |
| | | .content_center_bottom_head { |
| | | width: 100%; |
| | |
| | | |
| | | .content_right_bottom { |
| | | width: 100%; |
| | | height: 284px; |
| | | // height: 284px; |
| | | |
| | | height: calc(100vh - 690px); |
| | | .content_right_bottom_head { |
| | | width: 100%; |
| | | height: 38px; |