| | |
| | | }) |
| | | |
| | | function initData() { |
| | | console.log(enterprise.departId); |
| | | // 计划数 |
| | | getProcedurePlanData(enterprise.companyId, enterprise.departId, { procedureId: route.query.procedureId }) |
| | | .then(res => { |
| | |
| | | scrollDom = planContainer.value |
| | | } else { |
| | | // 如果列表数量过少不进行滚动 |
| | | if (scrollDom.children.length < 10) { |
| | | if (scrollDom.children.length < 11) { |
| | | clearTimeout(planTimer.value) |
| | | return |
| | | } |
| | | // 组件进行滚动 |
| | | scrollDom.scrollTop += 1.5 |
| | | scrollDom.scrollTop += 2 |
| | | // 判断是否滚动到底部 |
| | | if (scrollDom.scrollTop >= (scrollDom.scrollHeight - scrollDom.clientHeight)) { |
| | | if (scrollDom.scrollTop >= (scrollDom.scrollHeight - scrollDom.clientHeight - 2)) { |
| | | // 获取组件第一个节点 |
| | | let first = scrollDom.children[0] |
| | | // 删除节点 |
| | |
| | | flex: 1; |
| | | margin-right: 20px; |
| | | .proccess-plan { |
| | | height: 424px; |
| | | height: 464px; |
| | | background: linear-gradient(180deg, rgba(52, 88, 159, 0) 0%, rgba(0, 86, 255, 0.4) 100%); |
| | | margin-bottom: 20px; |
| | | } |
| | | |
| | | .today-yield { |
| | | height: calc(100vh - 690px);; |
| | | height: calc(100vh - 690px); |
| | | min-height: 226px; |
| | | background: linear-gradient(180deg, rgba(52, 88, 159, 0) 0%, rgba(0, 86, 255, 0.4) 100%); |
| | | |
| | | .yield-content { |
| | |
| | | flex: 1; |
| | | |
| | | .report-log { |
| | | height: 424px; |
| | | height: 464px; |
| | | background: linear-gradient(180deg, rgba(52, 88, 159, 0) 0%, rgba(0, 86, 255, 0.4) 100%); |
| | | margin-bottom: 20px; |
| | | } |
| | | |
| | | .bad-diagram { |
| | | height:calc(100vh - 690px);; |
| | | min-height: 226px; |
| | | background: linear-gradient(180deg, rgba(52, 88, 159, 0) 0%, rgba(0, 86, 255, 0.4) 100%); |
| | | |
| | | .bad-content { |