项目评估流程修改分页和责任人bug
This commit is contained in:
@@ -640,7 +640,11 @@ export default {
|
|||||||
},
|
},
|
||||||
//查询项目下的标准
|
//查询项目下的标准
|
||||||
getStandData() {
|
getStandData() {
|
||||||
this.$http.get("sarStandProjectLibrary/queryStandInfo", { id: this.projectId }, {
|
this.$http.get("sarStandProjectLibrary/queryStandInfo", {
|
||||||
|
id: this.projectId,
|
||||||
|
current: this.pageNo,
|
||||||
|
PageSize: this.pageSizeNo
|
||||||
|
}, {
|
||||||
_this: this
|
_this: this
|
||||||
}, res => {
|
}, res => {
|
||||||
res.data.records.forEach(item => {
|
res.data.records.forEach(item => {
|
||||||
@@ -649,6 +653,7 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
this.standData = res.data.records;
|
this.standData = res.data.records;
|
||||||
|
this.totalNo = res.data.total
|
||||||
let ids = [];
|
let ids = [];
|
||||||
this.standData.forEach(item => {
|
this.standData.forEach(item => {
|
||||||
ids.push(item.standId);
|
ids.push(item.standId);
|
||||||
|
|||||||
@@ -769,6 +769,10 @@ export default {
|
|||||||
if(index > -1){
|
if(index > -1){
|
||||||
dataListChildren.splice(index, 1)
|
dataListChildren.splice(index, 1)
|
||||||
}
|
}
|
||||||
|
dataListChildren.forEach(item => {
|
||||||
|
item.workPeople = this.$store.getters.userInfo.userName
|
||||||
|
item.workPeopleId = this.$store.getters.userInfo.userId
|
||||||
|
})
|
||||||
this.dataList = dataListChildren;
|
this.dataList = dataListChildren;
|
||||||
this.total = this.dataList.length;
|
this.total = this.dataList.length;
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -465,13 +465,13 @@ export default {
|
|||||||
dataListChildren = dataListChildren.concat(item);
|
dataListChildren = dataListChildren.concat(item);
|
||||||
});
|
});
|
||||||
dataListChildren = this.dataList.concat(dataListChildren);
|
dataListChildren = this.dataList.concat(dataListChildren);
|
||||||
let index = dataListChildren.findIndex(item => {
|
let newDataListChildren = []
|
||||||
return item.people
|
dataListChildren.forEach(item => {
|
||||||
})
|
if(!item.people){
|
||||||
if(index > -1){
|
newDataListChildren.push(item)
|
||||||
dataListChildren.splice(index, 1)
|
|
||||||
}
|
}
|
||||||
this.dataList = dataListChildren;
|
})
|
||||||
|
this.dataList = newDataListChildren;
|
||||||
this.total = this.dataList.length;
|
this.total = this.dataList.length;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user