flx:修复包含下级问题

This commit is contained in:
Rain_ 2025-06-25 17:29:14 +08:00
parent 2115ab0f16
commit 24aa249589

View File

@ -1376,17 +1376,21 @@ export default {
projectSn: this.$store.state.projectSn,
// enterpriseId: this.treeListDetail.id,
// userId: this.selectedInfo.userId,
enterpriseId: this.treeListDetail.id,
// enterpriseId: this.treeListDetail.id,
pageNo: 1,
pageSize: -1,
attendanceGroupV2IdIsNull: 1,
containEnterpriseId: this.searchInfo.checked ? this.treeListDetail.id : "",
};
if (this.searchInfo.searchType == 1) {
data.workerName = this.searchInfo.searchValue;
} else if (this.searchInfo.searchType == 2) {
data.idCard = this.searchInfo.searchValue;
}
if(this.searchInfo.checked) {
data.containEnterpriseId = this.treeListDetail.id;
}else {
data.enterpriseId = this.treeListDetail.id;
}
this.staffInfo.pageNo = 1;
getWorkerInfoList(data).then((res) => {
console.log(res);