Browse Source

数据大盘:需求人力 假分页

洪海涛 4 years ago
parent
commit
6ea824be07
1 changed files with 5 additions and 7 deletions
  1. 5 7
      src/views/dataBigManage/components/drawerModal/index.vue

+ 5 - 7
src/views/dataBigManage/components/drawerModal/index.vue

@@ -416,7 +416,7 @@ export default {
       paging.pageSize = value
       this.paging = _.cloneDeep(paging)
       window.localStorage.setItem('pageSize', value)
-      if (this.headerTitle === '效率' && this.title !== '需求人力') {
+      if (this.headerTitle === '效率') {
         this.tableListPagination()
       } else {
         this.setTableList()
@@ -428,7 +428,7 @@ export default {
       paging.curIndex = value
       this.paging = _.cloneDeep(paging)
       // console.log(this.title)
-      if (this.headerTitle === '效率' && this.title !== '需求人力') {
+      if (this.headerTitle === '效率') {
         this.tableListPagination()
       } else {
         this.setTableList()
@@ -817,11 +817,9 @@ export default {
       delete params.pageTotal
       const res = await getRequirePeopleData(params)
       if (res.code === 200) {
-        // console.log(res.data)
-        this.tableList = res.data
-        // this.tableListOld = res.data.length && res.data.map(e => e)
-        // this.tableListPagination()
-        paging.pageTotal = this.sourceData[0].IdList.length
+        this.tableListOld = res.data.length && res.data.map(e => e)
+        this.tableListPagination()
+        paging.pageTotal = this.tableListOld.length
         this.paging = { ...paging }
         this.loading = false
       }