This commit is contained in:
shijingjing
2023-03-02 08:48:53 +08:00
parent 799249336a
commit 25402fcfa4

View File

@@ -93,12 +93,13 @@ export default {
getDeptUser() { getDeptUser() {
this.selectEnterpriseContact({ this.selectEnterpriseContact({
fromDepartmentId: 0, fromDepartmentId: 0, // 从最上层开始
mode: "multi", mode: "multi", // 多选
type: ["department"], type: ["department"], // 选部门
selectedDepartmentIds: this.deptListArr?.map(e => e.id) selectedDepartmentIds: this.deptListArr?.map(e => e.id) // 已选部门ID列表。用于多次选人时可重入
}).then((res)=>{ }).then((res)=>{
if(res?.userList) { if(res?.userList) {
console.log(res,'企微通讯录');
this.deptListArr = res.userList this.deptListArr = res.userList
} }
} }
@@ -134,6 +135,7 @@ export default {
// 网格或者部门 // 网格或者部门
this.selectedUser = uni.getStorageSync('girdSelect') || [] this.selectedUser = uni.getStorageSync('girdSelect') || []
this.deptListArr = uni.getStorageSync('deptList') || [] this.deptListArr = uni.getStorageSync('deptList') || []
console.log(this.deptListArr, 'deptListArr')
// 添加时间 // 添加时间
this.startTime = uni.getStorageSync('startTime') this.startTime = uni.getStorageSync('startTime')
this.endTime = uni.getStorageSync('endTime') this.endTime = uni.getStorageSync('endTime')