沐若清辰
人生如茶,浓也好,淡也好,各有味道

 

<div class="summary">
          <div class="procedure_FT_leftSummary">
            <div class="procedure_FT_left_text">Summary记录</div>
          </div>
          <div class="procedure_FT_rightSummary">
            <div v-for="(page, idx) in Math.ceil(summaryTableHeader.length/10)" :key="idx" class="rightSummary">
              <div class="content_batch">
                <div v-for="(item, index) in summaryTableHeader.slice((page - 1) * 10, page* 10)" :key="index" class="div_p1">{{ item.lable }}</div>
              </div>
              <div v-for="(itemParent, indexParent) in summaryTableContent" :key="indexParent" class="content_batch">
                <div v-for="(item, index) in summaryTableHeader.slice((page - 1) * 10, page* 10)" :key="index" class="div_p1">{{ itemParent[item.prop] }}</div>
              </div>
            </div>
          </div>
        </div>

 

Math.ceil()  “向上取整”, 即小数部分直接舍去,并向正数部分进1

posted on 2021-10-21 19:06  沐若清辰  阅读(93)  评论(0编辑  收藏  举报