| | |
| | | :content="'已报工良品数' + child.doneNum + ';工序计划数' + child.planNum" placement="top"> |
| | | <div class="scroll_item_row_item" @click="jump(child.procedureId, child.procedureName)"> |
| | | <div class="scroll_item_row_item_x"></div> |
| | | <span v-if="child.rate < 100">{{ child.rate.toFixed(0) }}%</span> |
| | | <span v-if="child.rate < 100">{{ Math.floor(child.rate) }}%</span> |
| | | <img v-else src="@/assets/img/ic_complete@2x.png" alt="" /> |
| | | <span class="scroll_item_row_item_wz">{{ child.procedureName.substring(0, 3) }}</span> |
| | | </div> |
| | |
| | | let option; |
| | | option = { |
| | | title: { |
| | | text: `近七日不良品总数:${data.num}`, |
| | | text: ` 近七日不良品总数:${data.num}`, |
| | | textStyle: { |
| | | color: '#fff', |
| | | fontSize: 12 |
| | | } |
| | | }, |
| | | grid: { |
| | | top: 40, |
| | | bottom: 30 |
| | | }, |
| | | xAxis: { |
| | | type: 'category', |
| | |
| | | } |
| | | // 组件进行滚动 |
| | | scrollDom.scrollTop += 2 |
| | | |
| | | // 判断是否滚动到底部 |
| | | if (scrollDom.scrollTop >= (scrollDom.scrollHeight - scrollDom.clientHeight - 2)) { |
| | | if (scrollDom.scrollTop >= (scrollDom.scrollHeight - scrollDom.clientHeight-0.5)) { |
| | | console.log(scrollDom.scrollTop); |
| | | console.log(scrollDom.scrollHeight, scrollDom.clientHeight); |
| | | // 获取组件第一个节点 |
| | | let first = scrollDom.children[0] |
| | | // 删除节点 |
| | |
| | | |
| | | $fixed-height: 690px; |
| | | .content1 { |
| | | scrollbar-width:none; |
| | | -ms-overflow-style:none; |
| | | ::-webkit-scrollbar{display:none} |
| | | |
| | | flex: 1; |
| | | width: 100%; |
| | | height: auto; |