项目评估流程修改分页和责任人bug
This commit is contained in:
@@ -640,7 +640,11 @@ export default {
|
||||
},
|
||||
//查询项目下的标准
|
||||
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
|
||||
}, res => {
|
||||
res.data.records.forEach(item => {
|
||||
@@ -649,6 +653,7 @@ export default {
|
||||
}
|
||||
})
|
||||
this.standData = res.data.records;
|
||||
this.totalNo = res.data.total
|
||||
let ids = [];
|
||||
this.standData.forEach(item => {
|
||||
ids.push(item.standId);
|
||||
|
||||
@@ -769,6 +769,10 @@ export default {
|
||||
if(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.total = this.dataList.length;
|
||||
} else {
|
||||
|
||||
@@ -465,13 +465,13 @@ export default {
|
||||
dataListChildren = dataListChildren.concat(item);
|
||||
});
|
||||
dataListChildren = this.dataList.concat(dataListChildren);
|
||||
let index = dataListChildren.findIndex(item => {
|
||||
return item.people
|
||||
let newDataListChildren = []
|
||||
dataListChildren.forEach(item => {
|
||||
if(!item.people){
|
||||
newDataListChildren.push(item)
|
||||
}
|
||||
})
|
||||
if(index > -1){
|
||||
dataListChildren.splice(index, 1)
|
||||
}
|
||||
this.dataList = dataListChildren;
|
||||
this.dataList = newDataListChildren;
|
||||
this.total = this.dataList.length;
|
||||
});
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user