|
@@ -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
|
|
|
}
|