zhouna 4 vuotta sitten
vanhempi
commit
46cb3859e9
1 muutettua tiedostoa jossa 3 lisäystä ja 3 poistoa
  1. 3 3
      src/js/qcListDeptYw.js

+ 3 - 3
src/js/qcListDeptYw.js

@@ -134,7 +134,7 @@ function getTabData(activePage,qcCheckMain){
             tabList = res.data.data.records
             const totalPage = res.data.data.pages
             const totalNum = res.data.data.total
-            renderTab(tabList)
+            renderTab(tabList,activePage)
             renderPagination(totalPage,Number(activePage),totalNum)
             if(totalPage > 1){
                 renderPagination(totalPage,Number(activePage),totalNum)
@@ -362,7 +362,7 @@ function bindMoreBtnEvent(){
         $(e.target).text("更多").siblings(".part-2").hide();
     });*/
 }
-function renderTab(data){
+function renderTab(data,activePage){
     let str = ``
     let hasSelectAll = true;
     if(data.length===0){
@@ -378,7 +378,7 @@ function renderTab(data){
         // <td  class="recordScoreOperaBtn textCenter" style="opacity:${hasData('FUNC000017')?'1':'0.5'}">评分</td>
         str += `
             <tr  data-index=${i}>
-                <td class="scoreOperaItem textCenter">${i+1}</td>
+                <td class="scoreOperaItem textCenter">${(activePage-1)*size+i+1}</td>
                 `
         for(let j = 0; j < pageSet.length; j++){
             if(pageSet[j].status === 1){